X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/bc5d59217a24b25c1b913bec4a41dd026d02720c..HEAD:/AbstractInterface.h?ds=sidebyside diff --git a/AbstractInterface.h b/AbstractInterface.h index 832fe48..0ad387a 100644 --- a/AbstractInterface.h +++ b/AbstractInterface.h @@ -30,7 +30,7 @@ public : enum IfaceDirection { AnyDirection = 0, Input = 1, Output = 2, InOut = 3 }; enum IfaceVHDLContext {AnyContext = 0, Entity = 1, Component = 2, Instance = 3, Signal = 4 }; enum IfaceVHDLFlags { NoComma = 1 }; - enum IfaceClockName { NoName = 0, ClockName, ParameterName }; + enum IfaceClockName { NoName = 0, ClockName, ParameterName, InheritedName }; static int getIntDirection(QString str); static int getIntPurpose(QString str); @@ -54,7 +54,7 @@ public : QString getDirectionString(); inline AbstractBlock *getOwner() { return owner;} inline AbstractInterface* getAssociatedIface() { return associatedIface; } - inline QString getClockIfaceString() { return clkIface; } + inline QString getClockIfaceString() { return clkIfaceName; } inline int getClockIfaceType() { return clkIfaceType; } AbstractInterface* getClockIface(); virtual int getClockDomain() throw(Exception) = 0; // determine on which clock domain is sync this interface @@ -71,7 +71,8 @@ public : void setPurpose(int _purpose); void setDirection(int _direction); bool setAssociatedIface(AbstractInterface* iface); - bool setClockIface(QString name); + inline void setClockIfaceType(int type) { clkIfaceType = type; } + inline void setClockIfaceName(QString name) { clkIfaceName = name; } // testers virtual bool isReferenceInterface(); @@ -112,7 +113,7 @@ protected: * Nevertheless, the designer has the possibility to connect the block taht owns this interface to another clkrstgen block. Moreover, * some blocks may have several clocks, e.g. dual port RAMs, FIFOs. */ - QString clkIface; + QString clkIfaceName; int clkIfaceType; // 0 for not affected, 1 for clock input name, 2 for user param name