X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/756baf5c8eaf003e8271dab9c395de2b0e704857..e45bacc6bd342a1b19e42b62133ddabc99aa9edd:/Dispatcher.cpp?ds=inline diff --git a/Dispatcher.cpp b/Dispatcher.cpp index a9beb48..946f5ec 100644 --- a/Dispatcher.cpp +++ b/Dispatcher.cpp @@ -179,10 +179,8 @@ void Dispatcher::generateBlockVHDL(BoxItem *item){ if (item->getRefBlock()->isFunctionalBlock()) { FunctionalBlock* block = AB_TO_FUN(item->getRefBlock()); - ReferenceBlock* ref = block->getReference(); - BlockImplementation* impl = ref->getImplementations().at(0); try { - impl->generateVHDL(block,params->projectPath); + block->generateVHDL(params->projectPath); } catch(Exception e) { cout << qPrintable(e.getMessage()) << endl; @@ -559,7 +557,7 @@ GroupWidget *Dispatcher::createTopScene(){ GroupBlock *topBlock = graph->getTopGroup(); // creating the clkrstgen block ReferenceBlock* ref = params->getHiddenReferenceBlock("clkrstgen"); - FunctionalBlock* newOne = params->getGraph()->createFunctionalBlock(topBlock, ref); + FunctionalBlock* newOne = params->getGraph()->createFunctionalBlock(topBlock, ref); ConnectedInterface* fromIface = AI_TO_CON(topBlock->getIfaceFromName("ext_clk")); ConnectedInterface* toIface = AI_TO_CON(newOne->getIfaceFromName("ext_clk")); fromIface->connectTo(toIface);