Skip to content

Commit

Permalink
DesignTools.makePhysNetNamesConsistent() to use hier name (#735)
Browse files Browse the repository at this point in the history
* DesignTools.makePhysNetNamesConsisntent() to use hier name

Signed-off-by: Eddie Hung <[email protected]>

* Another case

Signed-off-by: Eddie Hung <[email protected]>

* Remove unused

Signed-off-by: Eddie Hung <[email protected]>

---------

Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx authored Jun 29, 2023
1 parent 83807c9 commit 263cfe1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/com/xilinx/rapidwright/design/DesignTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -2814,13 +2814,11 @@ public static void makePhysNetNamesConsistent(Design design) {
Net parentPhysNet;
// Assume that a net named <const1> or <const0> is always a VCC or GND net
if (parentNetName.equals(EDIFTools.LOGICAL_VCC_NET_NAME)) {
parentNetName = Net.VCC_NET;
parentPhysNet = design.getVccNet();
} else if (parentNetName.equals(EDIFTools.LOGICAL_GND_NET_NAME)) {
parentNetName = Net.GND_NET;
parentPhysNet = design.getGndNet();
} else {
parentPhysNet = design.getNet(parentNetName);
parentPhysNet = design.getNet(parentHierNet.getHierarchicalNetName());
}
if (parentPhysNet != null) {
// Merge both physical nets together
Expand All @@ -2833,7 +2831,7 @@ public static void makePhysNetNamesConsistent(Design design) {
}
}
design.movePinsToNewNetDeleteOldNet(net, parentPhysNet, true);
} else if (!net.rename(parentNetName)) {
} else if (!net.rename(parentHierNet.getHierarchicalNetName())) {
System.out.println("WARNING: Failed to adjust physical net name " + net.getName());
}
}
Expand Down

0 comments on commit 263cfe1

Please sign in to comment.