X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..8fb3c55ee009a11db5e1c08a4cfb286979412745:/BlockParameter.h diff --git a/BlockParameter.h b/BlockParameter.h index e0c4af2..746a574 100644 --- a/BlockParameter.h +++ b/BlockParameter.h @@ -19,9 +19,18 @@ public : enum ParamType { Expression = 1, Character, String, Bit, BitVector, Boolean, Integer, Natural, Positive, Real, Time}; // a bit ugly to put that here but more practical for using them + /*! + * \brief The ParamWBAccess enum + * Read means that the block setup the value of this parameter and it is possible to + * to read that value from outside the FPGA (via the wrapper of the wishbone). Thus, + * from the block point of view, the parameter corresponds to an output port. + * Write means that it is possible to setup the value of this paramter from outside the FPGA (via + * the wrapper of the wishbone) so that the block can read that value. Thus, + * from the block point of view, the parameter corresponds to an input port. + */ enum ParamWBAccess { Read = 1, Write = 2}; enum ParamWBDuration { Permanent = 1, Trigger = 2 }; - enum ParamVHDLContext { Entity = 1, Component = 2, Architecture = 3 }; // NB : 3 is when creating an instance of the block that owns this iface + enum ParamVHDLContext { Entity = 1, Component = 2, Instance = 3 }; // NB : 3 is when creating an instance of the block that owns this iface enum ParamVHDLFlags { NoComma = 1 }; BlockParameter(); @@ -35,6 +44,10 @@ public : inline int getType() { return type; } QString getTypeString(); virtual QVariant getValue(); // may be overriden + int getIntValue(bool* ok); + double getDoubleValue(bool* ok); + bool getBooleanValue(bool* ok); + QString getStringValue(); virtual QString getContext() = 0; // setters