1 #ifndef __REFERENCEINTERFACE_H__
2 #define __REFERENCEINTERFACE_H__
9 #include "AbstractInterface.h"
11 #include "Exception.h"
17 class ReferenceInterface : public AbstractInterface {
21 ReferenceInterface(AbstractBlock *_owner) throw(Exception);
22 ReferenceInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width, int _endianess = LittleEndian, int _multiplicity=1) throw (Exception);
25 inline int getMultiplicity() { return multiplicity; }
26 int getClockDomain() throw(Exception); // determine at which freq. is synchronized iface
28 void setMultiplicity(int _multiplicity);
31 bool isReferenceInterface();
35 static int translatePurpose(const QString& txt);
36 static int translateMultiplicity(const QString& txt);
38 inline AbstractInterface *clone(){ return NULL; }
42 int multiplicity; // -1 means infinite multiplicity, and X>1, the max. number of instances
47 #endif // __REFERENCEINTERFACE_H__