X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/e9f53048b4a0192d95382277e8f40e850998b256..2bdaa0aa3fab52f0808f60d9bbdabcd56d0efae9:/FunctionalBlock.h?ds=sidebyside diff --git a/FunctionalBlock.h b/FunctionalBlock.h index d3bd581..8c469d5 100644 --- a/FunctionalBlock.h +++ b/FunctionalBlock.h @@ -26,7 +26,7 @@ using namespace Qt; class FunctionalBlock : public AbstractBlock { public: - FunctionalBlock(GroupBlock* _parent, ReferenceBlock* _reference) throw(Exception); + FunctionalBlock(GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces = true) throw(Exception); ~FunctionalBlock(); // getters inline ReferenceBlock* getReference() { return reference; } @@ -51,7 +51,11 @@ public: // others void populate(); // create parameters and interface from reference block - void generateVHDL(const QString& path) throw(Exception); // main entry to generate the VHDL code + + QList getExternalResources(); + void generateVHDL(const QString& path) throw(Exception); // main entry to generate the VHDL code + QString getIfaceUserName(AbstractInterface* refIface); // get iface name from reference interface + void parametersValidation(QList *checkedBlocks, QList* blocksToConfigure); QString getReferenceXmlFile(); @@ -63,17 +67,17 @@ public: void computeOutputPattern(int nbExec = -1) throw(Exception); void computeAdmittanceDelays() throw(Exception); // compute differences between IP and admittance -private: +protected: // patterns void createDelta() throw(Exception); void createConsumptionPattern() throw(Exception); // initialize a QList for each interface from patterns defined in implementation void createProductionPattern() throw(Exception); // initialize a QList for each interface from patterns defined in implementation void createProductionCounter() throw(Exception); // initialize a QList from counter defined in implementation void createAdmittance(int nbExec) throw(Exception); // initialize a QList from consumption pattern and delta + void createInputPattern() throw(Exception); void clearConsumptionPattern(); - void clearProductionPattern(); - void createInputPattern() throw(Exception); + void clearProductionPattern(); void clearInputPattern(); void clearOutputPattern(); void clearAdmittanceDelays(); @@ -156,9 +160,9 @@ private: void generateComments(QTextStream& out, QDomElement &elt, QString coreFile) throw(Exception); // generates comments from element void generateLibraries(QTextStream& out, QDomElement &elt) throw(Exception); // generates libraries from element - void generateEntity(QTextStream& out, bool hasController=false) throw(Exception); // generate the entity using reference void generateArchitecture(QTextStream& out, QDomElement &elt ) throw(Exception); // generate the architecture using element void generateController(QTextStream& out) throw(Exception); // generate the wishbone controller of the block + void generateEntityOrComponentBody(QTextStream& out, int indentLevel, bool hasController=false) throw(Exception); // generate the entity/compo body using reference QMap* > consumptionPattern; QMap admittanceCyclic; // the admittance expressed as prologue-cyclic part-epilogue, deduced from admittance