Skip to content

Commit ce276bc

Browse files
committed
[DesignComparator] Ignore missing/extra nets that have no routing
Signed-off-by: Eddie Hung <[email protected]>
1 parent 9f27b35 commit ce276bc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/com/xilinx/rapidwright/design/compare/DesignComparator.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,20 @@ public int compareDesigns(Design gold, Design test) {
113113
for (Entry<String, Net> e : goldNetMap.entrySet()) {
114114
Net testNet = testNetMap.remove(e.getKey());
115115
if (testNet == null) {
116-
addDiff(DesignDiffType.NET_MISSING, e.getValue(), null, gold, "");
116+
Net goldNet = e.getValue();
117+
if (goldNet.hasPIPs() || !goldNet.getSiteInsts().isEmpty()) {
118+
addDiff(DesignDiffType.NET_MISSING, goldNet, null, gold, "");
119+
}
117120
continue;
118121
}
119122
compareNets(e.getValue(), testNet);
120123
}
121124

122125
for (Entry<String, Net> e : testNetMap.entrySet()) {
123-
addDiff(DesignDiffType.NET_EXTRA, null, e.getValue(), test, "");
126+
Net testNet = e.getValue();
127+
if (testNet.hasPIPs() || !testNet.getSiteInsts().isEmpty()) {
128+
addDiff(DesignDiffType.NET_EXTRA, null, testNet, test, "");
129+
}
124130
}
125131

126132
return getDiffCount();

0 commit comments

Comments
 (0)