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();
34 bool checkSetClockIface(QString _name);
36 static int translatePurpose(const QString& txt);
37 static int translateMultiplicity(const QString& txt);
39 inline AbstractInterface *clone(){ return NULL; }
43 int multiplicity; // -1 means infinite multiplicity, and X>1, the max. number of instances
48 #endif // __REFERENCEINTERFACE_H__