X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/60c13e8b4c7ea3d595969c1e7c0a28b068a17ca6..a13795fc34cd1e74f94695d35253c3d00abec9bc:/SpecialBlock.cpp?ds=sidebyside diff --git a/SpecialBlock.cpp b/SpecialBlock.cpp index 8f2271d..9576dc9 100644 --- a/SpecialBlock.cpp +++ b/SpecialBlock.cpp @@ -1,7 +1,7 @@ #include "SpecialBlock.h" #include "FunctionalInterface.h" -SpecialBlock::SpecialBlock(int _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces) throw(Exception) : FunctionalBlock(_parent, _reference, createIfaces) { +SpecialBlock::SpecialBlock(Graph *_graph, int _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces) throw(Exception) : FunctionalBlock(_graph, _parent, _reference, createIfaces) { specialType = _type; } @@ -58,7 +58,7 @@ void SpecialBlock::checkInputPatternCompatibilitySource() throw(Exception) { } void SpecialBlock::computeOutputPatternSource(int nbExec) throw(Exception) { - cout << "computing output pattern of " << qPrintable(name) << " for " << nbExec << " executions" << endl; + cout << "computing output pattern of special block " << qPrintable(name) << " for " << nbExec << " executions" << endl; foreach(AbstractInterface* iface, getControlOutputs()) { FunctionalInterface* connIface = AI_TO_FUN(iface); // create output pattern @@ -97,14 +97,15 @@ void SpecialBlock::computeOutputPatternClockConvert(int nbExec) throw(Exception) #ifdef DEBUG_FCTNAME cout << "call to " << qPrintable(fctName) << endl; #endif - cout << "computing output pattern of " << qPrintable(name) << endl; + cout << "computing output pattern of special block " << qPrintable(name) << endl; /* CAUTION: it is assumed that all clock domain converters are using * a clk_in and clk_out signals for input and output clocks. */ AbstractInterface* clkIn = getIfaceFromName("clk_in"); AbstractInterface* clkOut = getIfaceFromName("clk_out"); - cout << "freq clk_in = " << clkIn- + cout << "freq clk_in = " << clkIn->getClockFrequency() << endl; + cout << "freq clk_out = " << clkOut->getClockFrequency() << endl; // in case of inputPattern not created, do it if (lengthIP <= 0) {