Skip to content

Commit

Permalink
Ignore unconnected ports, use GLOBAL_LOGIC[01] for gnd/vcc nets
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Jun 22, 2023
1 parent b494343 commit 5c3fde4
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions src/com/xilinx/rapidwright/design/ModuleInst.java
Original file line number Diff line number Diff line change
Expand Up @@ -687,14 +687,24 @@ public void connect(String portName, int busIndex0, ModuleInst other, String oth
if (p0.isOutPort()) {
physicalNet = getCorrespondingNet(p0);
if (physicalNet == null) {
// This must be a pass-thru situation
List<String> passThruPortNames = p0.getPassThruPortNames();
if (passThruPortNames.isEmpty()) {
throw new RuntimeException("Expecting a pass-thru situation");
if (p0.getType() == PortType.UNCONNECTED) {
return;
}
if (p0.getType() == PortType.POWER) {
physicalNet = design.getVccNet();
} else if (p0.getType() == PortType.GROUND) {
physicalNet = design.getGndNet();
} else {
// This must be a pass-thru situation
List<String> passThruPortNames = p0.getPassThruPortNames();
if (passThruPortNames.isEmpty()) {
throw new RuntimeException("Expecting a pass-thru situation");
}

// No updates needed for the physical netlist -- with the logical netlist
// already updated, the two physical nets will be interpreted as aliases
return;
}
// No updates needed for the physical netlist -- with the logical netlist
// already updated, the two physical nets will be interpreted as aliases
return;
}
inPort = p1;
modInst = other;
Expand Down

0 comments on commit 5c3fde4

Please sign in to comment.