diff --git a/src/main/java/syscamstranslator/SysCAMSSpecification.java b/src/main/java/syscamstranslator/SysCAMSSpecification.java index fcc5b90f46393baf2fc173ad439fb80792ed5e51..32e7efae711716c4c6cd075d679768f8474b1327 100644 --- a/src/main/java/syscamstranslator/SysCAMSSpecification.java +++ b/src/main/java/syscamstranslator/SysCAMSSpecification.java @@ -126,11 +126,14 @@ public class SysCAMSSpecification{ return portsDE; } - public LinkedList<SysCAMSTConnector> getAllConnector(){ + public LinkedList<SysCAMSTConnector> getAllConnectorCluster(){ LinkedList<SysCAMSTConnector> cons = new LinkedList<SysCAMSTConnector>(); for (SysCAMSTConnector con : connectors) { if (con instanceof SysCAMSTConnector) { + if (!((con.get_p1().getComponent() instanceof SysCAMSTPortConverter && con.get_p2().getComponent() instanceof SysCAMSTPortDE) + || (con.get_p2().getComponent() instanceof SysCAMSTPortConverter && con.get_p1().getComponent() instanceof SysCAMSTPortDE))) { cons.add(con); + } } } return cons; diff --git a/src/main/java/syscamstranslator/toSysCAMS/TopCellGenerator.java b/src/main/java/syscamstranslator/toSysCAMS/TopCellGenerator.java index 381d6f5fbcaada292aef83d37b1a3ee908449bbf..d71ffee1b32ff578bbe9517a7420b7af1e2e2207 100644 --- a/src/main/java/syscamstranslator/toSysCAMS/TopCellGenerator.java +++ b/src/main/java/syscamstranslator/toSysCAMS/TopCellGenerator.java @@ -97,7 +97,7 @@ public class TopCellGenerator { public void saveFile(String path) { LinkedList<SysCAMSTCluster> clusters = TopCellGenerator.syscams.getAllCluster(); - LinkedList<SysCAMSTConnector> connectors = TopCellGenerator.syscams.getAllConnector(); + LinkedList<SysCAMSTConnector> connectors = TopCellGenerator.syscams.getAllConnectorCluster(); String top, makefile;