From 1e171e3f18a21b875193036f9b51f237cd8f4162 Mon Sep 17 00:00:00 2001 From: Daniela Genius <Daniela.Genius@lip6.fr> Date: Mon, 21 Mar 2016 15:08:39 +0000 Subject: [PATCH] bugfix nbproc --- src/ddtranslatorSoclib/AvatarConnector.java | 2 +- src/ddtranslatorSoclib/toTopCell/TopCellGenerator.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ddtranslatorSoclib/AvatarConnector.java b/src/ddtranslatorSoclib/AvatarConnector.java index 5f6f39afaf..3cbdc9168a 100755 --- a/src/ddtranslatorSoclib/AvatarConnector.java +++ b/src/ddtranslatorSoclib/AvatarConnector.java @@ -18,7 +18,7 @@ public class AvatarConnector{ } AvatarConnectingPoint getconectingPoint1(){ - return connectingPoint2; + return connectingPoint1; } AvatarConnectingPoint getconectingPoint2(){ diff --git a/src/ddtranslatorSoclib/toTopCell/TopCellGenerator.java b/src/ddtranslatorSoclib/toTopCell/TopCellGenerator.java index 982e080095..86dd16cc5d 100755 --- a/src/ddtranslatorSoclib/toTopCell/TopCellGenerator.java +++ b/src/ddtranslatorSoclib/toTopCell/TopCellGenerator.java @@ -49,6 +49,7 @@ public class TopCellGenerator public String generateTopCell() { String icn; + /* first test validity of the hardware platform*/ if(TopCellGenerator.avatardd.getNbCPU()==0){ System.out.println("***Warning: require at least one CPU***"); @@ -108,7 +109,6 @@ public class TopCellGenerator } public void saveFile(String path) { - try { System.err.println(path + GENERATED_PATH + "top.cc"); FileWriter fw = new FileWriter(path + GENERATED_PATH + "/top.cc"); @@ -119,6 +119,7 @@ public class TopCellGenerator } saveFileDeploy(path); saveFileProcinfo(path); + saveFileNBproc(path); } public void saveFileDeploy(String path) { -- GitLab