]> AND Private Git Repository - blast.git/blobdiff - DelayInputModifier.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
finished testbench generation
[blast.git] / DelayInputModifier.cpp
index db89107a4614a9a9bad39bde1cac761a8c562329..242547c1e05ee9d854adfc772cb73b92253afa39 100644 (file)
@@ -34,11 +34,12 @@ QString DelayInputModifier::toVHDL(int context, int flags) throw(Exception) {
   dm2.setNum(delayLength-2);\r
   dm3.setNum(delayLength-3);\r
   QString ret="";\r
   dm2.setNum(delayLength-2);\r
   dm3.setNum(delayLength-3);\r
   QString ret="";\r
-  QString clkName = "clk";\r
-  QString resetName = "reset";\r
+  int idClock = toIface->getClockDomain();\r
+  QString clkName = "ext_clk_"+QString::number(idClock);\r
+  QString resetName = "ext_reset_"+QString::number(idClock);\r
   if (toIface->getOwner()->getParent()->isTopGroupBlock()) {\r
   if (toIface->getOwner()->getParent()->isTopGroupBlock()) {\r
-    clkName = "from_clkrstgen_clk";\r
-    resetName ="from_clkrstgen_reset";\r
+    clkName = "from_clkrstgen_"+QString::number(idClock)+"_clk";\r
+    resetName ="from_clkrstgen_"+QString::number(idClock)+"_reset";\r
   }\r
 \r
   if (context == Architecture) {\r
   }\r
 \r
   if (context == Architecture) {\r