Skip to content

Commit

Permalink
LUTTools.swapLutPinsFromPIPs() to warn when site pin not found
Browse files Browse the repository at this point in the history
Ignore, rather than die cryptically.

Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Jan 6, 2024
1 parent f1741e0 commit 1678b87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/com/xilinx/rapidwright/design/tools/LUTTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,11 @@ public static int swapLutPinsFromPIPs(Design design) {
continue;
}
SitePinInst newSpi = si.getSitePinInst(newSitePinName);
if (!siteToLutSpis.get(site).remove(newSpi)) {
List<SitePinInst> spis = siteToLutSpis.get(site);
if (spis == null) {
System.out.println("WARNING: SitePin " + newSitePin + " visited by PIP " + pip +
" is not a SitePinInst on net " + net + ". Ignoring.");
} else if (!spis.remove(newSpi)) {
// spi is not already on this net
unmatchedSitePins.add(newSitePin);
}
Expand Down

0 comments on commit 1678b87

Please sign in to comment.