Skip to content

Commit 6b65825

Browse files
committed
createPhysNetFromLogical() now works with GND and VCC nets
Signed-off-by: Hayden Cook <[email protected]>
1 parent 218aa37 commit 6b65825

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/com/xilinx/rapidwright/design/DesignTools.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3960,7 +3960,7 @@ public static void createPhysNetsFromLogical(Design d) {
39603960
// Iterate through all canonical nets
39613961
Map<EDIFHierNet, EDIFHierNet> parentNetMap = d.getNetlist().getParentNetMap();
39623962
for (EDIFHierNet n : parentNetMap.values()) {
3963-
if (n.getNet().equals(gnd) || n.getNet().equals(vcc)) continue; // Static nets do not have physical equivalents
3963+
// if (n.getNet().equals(gnd) || n.getNet().equals(vcc)) continue; // Static nets do not have physical equivalents
39643964
createPhysNetFromLogical(d, n);
39653965
}
39663966
}
@@ -3975,7 +3975,13 @@ public static List<SitePinInst> createPhysNetFromLogical(Design d, EDIFHierNet e
39753975
//check whether net already exists
39763976
if (d.getNet(edifNet.getHierarchicalNetName()) != null) return null;
39773977

3978-
Net net = d.createNet(edifNet); //create physical net
3978+
Net net; //create physical net
3979+
if(edifNet.getNet().equals(EDIFTools.getStaticNet(NetType.GND, d.getTopEDIFCell(), d.getNetlist())))
3980+
net = d.getGndNet();
3981+
else if(edifNet.getNet().equals(EDIFTools.getStaticNet(NetType.VCC, d.getTopEDIFCell(), d.getNetlist())))
3982+
net = d.getVccNet();
3983+
else
3984+
net = d.createNet(edifNet);
39793985

39803986
// Get source EDIF port inst
39813987
EDIFHierPortInst srcPort = null;

0 commit comments

Comments
 (0)