Skip to content

Commit

Permalink
createPhysNetFromLogical() now works with GND and VCC nets
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Cook <[email protected]>
  • Loading branch information
haydenc-amd committed Aug 21, 2023
1 parent 908ad82 commit 31e782c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/com/xilinx/rapidwright/design/DesignTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -3960,7 +3960,7 @@ public static void createPhysNetsFromLogical(Design d) {
// Iterate through all canonical nets
Map<EDIFHierNet, EDIFHierNet> parentNetMap = d.getNetlist().getParentNetMap();
for (EDIFHierNet n : parentNetMap.values()) {
if (n.getNet().equals(gnd) || n.getNet().equals(vcc)) continue; // Static nets do not have physical equivalents
// if (n.getNet().equals(gnd) || n.getNet().equals(vcc)) continue; // Static nets do not have physical equivalents
createPhysNetFromLogical(d, n);
}
}
Expand All @@ -3975,7 +3975,13 @@ public static List<SitePinInst> createPhysNetFromLogical(Design d, EDIFHierNet e
//check whether net already exists
if (d.getNet(edifNet.getHierarchicalNetName()) != null) return null;

Net net = d.createNet(edifNet); //create physical net
Net net; //create physical net
if(edifNet.getNet().equals(EDIFTools.getStaticNet(NetType.GND, d.getTopEDIFCell(), d.getNetlist())))
net = d.getGndNet();
else if(edifNet.getNet().equals(EDIFTools.getStaticNet(NetType.VCC, d.getTopEDIFCell(), d.getNetlist())))
net = d.getVccNet();
else
net = d.createNet(edifNet);

// Get source EDIF port inst
EDIFHierPortInst srcPort = null;
Expand Down

0 comments on commit 31e782c

Please sign in to comment.