X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/4cf57e6db08da791233d75237f62e74bc88dd427..18fecf25efe710631fabecbb9f689c2997fdfe18:/FunctionalBlock.h diff --git a/FunctionalBlock.h b/FunctionalBlock.h index 404ce17..d3bd581 100644 --- a/FunctionalBlock.h +++ b/FunctionalBlock.h @@ -51,6 +51,7 @@ 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 void parametersValidation(QList *checkedBlocks, QList* blocksToConfigure); QString getReferenceXmlFile(); @@ -74,6 +75,7 @@ private: void clearProductionPattern(); void createInputPattern() throw(Exception); void clearInputPattern(); + void clearOutputPattern(); void clearAdmittanceDelays(); int createTriggers(); // compute the clock cycle at which the block is triggered @@ -152,6 +154,12 @@ private: */ void shiftRightPattern(const QMap* >& pattern, int offset); + 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 + QMap* > consumptionPattern; QMap admittanceCyclic; // the admittance expressed as prologue-cyclic part-epilogue, deduced from admittance QMap* > admittance; // the admittance taking into account nb exec.