Skip to content

Commit

Permalink
[LUTTools] Revert to using updated DesignTools.getConnectedCells()
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 3, 2025
1 parent 9c6fc71 commit ec2d536
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/com/xilinx/rapidwright/design/tools/LUTTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ public static String getLUTEquation(String init) {
*/
public static int swapMultipleLutPins(Map<SitePinInst, String> oldPinToNewPins) {
Map<String,Map<String,PinSwap>> pinSwaps = new HashMap<>();
Boolean isVersal = null;

for (Map.Entry<SitePinInst, String> e : oldPinToNewPins.entrySet()) {
SitePinInst oldSinkSpi = e.getKey();
Expand All @@ -497,18 +496,7 @@ public static int swapMultipleLutPins(Map<SitePinInst, String> oldPinToNewPins)
continue;
}

if (isVersal == null) {
isVersal = si.getDesign().getSeries() == Series.Versal;
}

Set<Cell> cells = DesignTools.getConnectedCells(oldSinkSpi);
if (isVersal) {
assert(cells.size() == 1);
Cell cell = cells.iterator().next();
BEL bel = cell.getBEL();
assert(bel.isIMR());
cells = DesignTools.getConnectedCells(bel.getPin("Q"), si);
}
if (cells.isEmpty()) {
continue;
}
Expand Down

0 comments on commit ec2d536

Please sign in to comment.