}
}
- if (iface->getInputModifier() != NULL) {
- removeModifier = menu.addAction("Remove input modifier");
- }
- if (iface->getInputModifier() != NULL) {
- showModifier = menu.addAction("Show input modifier parameters");
+ if (iface->getAssociatedIface() != NULL) {
+ ConnectedInterface* assoIface = AI_TO_CON(iface->getAssociatedIface());
+ if (assoIface->getInputModifier() != NULL) {
+ removeModifier = menu.addAction("Remove input modifier");
+ }
+ if (assoIface->getInputModifier() != NULL) {
+ showModifier = menu.addAction("Show input modifier parameters");
+ }
}
}
throw(Exception(PROJECTFILE_CORRUPTED));
}
if (referenceMd5 != referenceXml) {
- throw(Exception(PROJECTFILE_CORRUPTED));
+ reference = referenceXml;
}
else {
reference = referenceMd5;
functionalBlock->addInterface(ctlIface);
}
}
+ // connect clk and rst to group clk/rst or to clkrstgen
+ if ((name != "clkrstgen") && (parentGroupBlock != NULL)) {
+ try {
+ functionalBlock->connectClkReset();
+ }
+ catch(Exception e) {
+ AbstractBlock* source = (AbstractBlock *)(e.getSource());
+ cerr << qPrintable(source->getName()) << ":" << qPrintable(e.getMessage()) << endl;
+ throw(e);
+ }
+ }
// creating InterfaceItem
initInterfaceItems();