return NULL;
}
+ QFileInfo info(filename);
+ params->projectPath = info.absolutePath();
+ cout << "project path = " << qPrintable(params->projectPath) << endl;
groupList.append(topGroup);
return topGroup;
}
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;
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);