1 #ifndef __BLOCKPARAMETERWISHBONE_H__
\r
2 #define __BLOCKPARAMETERWISHBONE_H__
\r
9 #include "BlockParameter.h"
\r
10 class BlockParameter;
\r
12 using namespace std;
\r
15 class BlockParameterWishbone : public BlockParameter {
\r
19 BlockParameterWishbone();
\r
20 BlockParameterWishbone(AbstractBlock* _owner, const QString& _name , const QString& _type, const QString& _width, const QString& _value, int _wbAccess = BlockParameter::Read, QString _wbValue = QString(), int _wbDuration = BlockParameter::Permanent);
\r
23 QVariant getValue();
\r
24 inline QString getContext() { return "wb";}
\r
25 inline QString getWidth() { return width; }
\r
26 inline int getWBAccess() { return wbAccess; }
\r
27 inline QString getWBValue() { return wbValue; }
\r
28 inline int getWBDuration() { return wbDuration; }
\r
31 void setValue(const QString& _value);
\r
32 inline void resetToDefaultValue() { userValue = defaultValue; }
\r
33 inline void setWBAccess(int _wbAccess) { wbAccess = _wbAccess; }
\r
34 inline void setWBValue(QString _wbValue) { wbValue = _wbValue; }
\r
35 inline void setWBDuration(int _wbDuration) { wbDuration = _wbDuration; }
\r
39 bool isDefaultValue();
\r
40 bool isWishboneParameter();
\r
43 BlockParameter* clone();
\r
44 QString toVHDL(int context, int flags);
\r
57 #endif // __BLOCKPARAMETERWISHBONE_H__
\r