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;