delta = -1;\r
evaluator = NULL;\r
\r
+ BlockParameter* p;\r
+ // create parameters from reference block\r
+ QList<BlockParameter*> lstParam = reference->getParameters();\r
+ for(int i=0;i<lstParam.size();i++) {\r
+ p = lstParam.at(i)->clone();\r
+ addParameter(p);\r
+ }\r
+\r
if (createIfaces) {\r
populate();\r
}\r
-\r
}\r
\r
FunctionalBlock::~FunctionalBlock() {\r
}\r
\r
void FunctionalBlock::populate() {\r
- int i;\r
- BlockParameter* p;\r
- AbstractInterface* inter;\r
-\r
- // create parameters from reference block\r
- QList<BlockParameter*> lstParam = reference->getParameters();\r
- for(i=0;i<lstParam.size();i++) {\r
- p = lstParam.at(i)->clone();\r
- addParameter(p);\r
- }\r
+ int i; \r
\r
+ AbstractInterface* inter;\r
ConnectedInterface* toClk = NULL;\r
ConnectedInterface* toRst = NULL;\r
// create interfaces from reference block\r