Skip to content

Commit

Permalink
Fix broken projectInputPinToINTNode too
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <eddie.hung@amd.com>
  • Loading branch information
eddieh-xlnx committed Nov 8, 2024
1 parent e229e2f commit abd15c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/com/xilinx/rapidwright/rwroute/RouterHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,13 @@ public static Node projectOutputPinToINTNode(SitePinInst output) {
*/
public static Node projectInputPinToINTNode(SitePinInst input) {
Node sink = input.getConnectedNode();
if (sink.getTile().getTileTypeEnum() == TileTypeEnum.INT) {
TileTypeEnum sinkTileType = sink.getTile().getTileTypeEnum();
if (sinkTileType == TileTypeEnum.INT) {
return sink;
}
// Only block clocking tiles if source is not in a clock tile
final boolean blockClocking = !Utils.isClocking(sinkTileType);

int watchdog = 40;

// Starting from the SPI's connected node, perform an uphill breadth-first search
Expand All @@ -198,7 +202,7 @@ public static Node projectInputPinToINTNode(SitePinInst input) {
EnumSet.of(IntentCode.NODE_CLE_CTRL, IntentCode.NODE_INTF_CTRL).contains(uphill.getIntentCode())) {
return uphill;
}
if (Utils.isClocking(uphillTileType)) {
if (uphillTileType != sinkTileType && Utils.isClocking(uphillTileType)) {
continue;
}
queue.add(uphill);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public void testProjectOutputPinToINTNode(String partName, String siteName, Stri
@ParameterizedTest
@CsvSource({
"xcvu3p,MMCM_X0Y0,PSEN,INT_X36Y56/IMUX_W0",
"xcvu3p,BUFGCE_X0Y58,CLK_IN,INT_X36Y151/IMUX_W34",
"xcvp1002,MMCM_X2Y0,PSEN,INT_X27Y0/IMUX_B_W24"
})
public void testProjectInputPinToINTNode(String partName, String siteName, String pinName, String nodeAsString) {
Expand Down

0 comments on commit abd15c7

Please sign in to comment.