Skip to content

Commit

Permalink
[DesignComparator] Ignore missing/extra nets that have no routing
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Jan 29, 2024
1 parent 6b5734a commit e8dd6b3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/com/xilinx/rapidwright/design/compare/DesignComparator.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,20 @@ public int compareDesigns(Design gold, Design test) {
for (Entry<String, Net> e : goldNetMap.entrySet()) {
Net testNet = testNetMap.remove(e.getKey());
if (testNet == null) {
addDiff(DesignDiffType.NET_MISSING, e.getValue(), null, gold, "");
Net goldNet = e.getValue();
if (goldNet.hasPIPs() || !goldNet.getSiteInsts().isEmpty()) {
addDiff(DesignDiffType.NET_MISSING, goldNet, null, gold, "");
}
continue;
}
compareNets(e.getValue(), testNet);
}

for (Entry<String, Net> e : testNetMap.entrySet()) {
addDiff(DesignDiffType.NET_EXTRA, null, e.getValue(), test, "");
Net testNet = e.getValue();
if (testNet.hasPIPs() || !testNet.getSiteInsts().isEmpty()) {
addDiff(DesignDiffType.NET_EXTRA, null, testNet, test, "");
}
}

return getDiffCount();
Expand Down

0 comments on commit e8dd6b3

Please sign in to comment.