X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/5d4e709cb8d460b2efc083e6e7999f1c3a0eb602..18fecf25efe710631fabecbb9f689c2997fdfe18:/BlockImplementation.h diff --git a/BlockImplementation.h b/BlockImplementation.h index 4866e85..fb9c77c 100644 --- a/BlockImplementation.h +++ b/BlockImplementation.h @@ -37,6 +37,10 @@ public: inline QHash getProductionPattern() { return productionPattern; } inline QString getProductionCounter() { return productionCounter; } // setters + inline void setDelta(QString _delta) { delta = _delta; } + inline void setConsumptionPattern(QHash pattern) { consumptionPattern = pattern; } + inline void setProductionPattern(QHash pattern) { productionPattern = pattern; } + inline void setProductionCounter(QString pattern) { productionCounter = pattern; } QString eval(QString line, QTextStream& out); QString evalComplex(QString line, int num); @@ -48,8 +52,7 @@ public: inline void setReference(ReferenceBlock* _reference) { reference = _reference; } void loadPatterns(QDomElement &root) throw(Exception); - bool checkPatterns(); - void generateVHDL(FunctionalBlock* _block, const QString& path) throw(Exception); // main entry to generate the VHDL code + bool checkPatterns(); private: @@ -66,12 +69,6 @@ private: QHash productionPattern; // key = reference interface name, value = pattern expression QString productionCounter; - void generateComments(QDomElement &elt,QString coreFile, QTextStream& out) throw(Exception); // generates comments from element - void generateLibraries(QDomElement &elt, QTextStream& out) throw(Exception); // generates libraries from element - void generateEntity(QTextStream& out, bool hasController=false) throw(Exception); // generate the entity using reference - void generateArchitecture(QDomElement &elt, QTextStream& out) throw(Exception); // generate the architecture using element - void generateController(QTextStream& out) throw(Exception); // generate the wishbone controller of the block - QString getIfaceUserName(AbstractInterface* refIface); // get the name of an interface given by the user, from the reference interface friend QDataStream &operator<<(QDataStream &out, const BlockImplementation &impl);