Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile.getWireConnections() not consistent with Vivado #1096

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion test/src/com/xilinx/rapidwright/device/TestTile.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class TestTile {
"xcku025,true",
"xcku035,false"
})
public void testGetWireConnections(String partName, boolean expectThrow) {
public void testGetWireConnectionsThrows(String partName, boolean expectThrow) {
Device dev = Device.getDevice(partName);
Tile tile = dev.getTile("RCLK_CLE_M_L_X31Y149");
Executable e = () -> tile.getWireConnections(8);
Expand All @@ -47,6 +47,20 @@ public void testGetWireConnections(String partName, boolean expectThrow) {
}
}

@ParameterizedTest
@CsvSource({
// get_nodes -downhill -of [get_nodes -of [get_wires CLK_REBUF_VERT_VNOC_BAO_TILE_X30Y471/IF_WRAP_CLK_V_BOT_CLK_VDISTR21]]
"xcvp1002,CLK_REBUF_VERT_VNOC_BAO_TILE_X30Y471,IF_WRAP_CLK_V_BOT_CLK_VDISTR21,[]",
// get_nodes -downhill -of [get_nodes -of [get_wires CLK_REBUF_VERT_VNOC_ACO_TILE_X30Y279/IF_WRAP_CLK_V_BOT_CLK_VDISTR21]]
"xcvp1002,CLK_REBUF_VERT_VNOC_ACO_TILE_X30Y279,IF_WRAP_CLK_V_BOT_CLK_VDISTR21," +
"'[RCLK_BRAM_CLKBUF_CORE_X24Y239/IF_HCLK_R_CLK_HDISTR21, CLK_VNOC_AAO_TILE_X30Y239/CLKE2_PD_OPT_DELAY_SSIT_142_I]'",
})
public void testGetWireConnections(String partName, String tileName, String wireName, String wireConnections) {
Device dev = Device.getDevice(partName);
Tile tile = dev.getTile(tileName);
Assertions.assertEquals(wireConnections, tile.getWireConnections(wireName).toString());
}

@ParameterizedTest
@CsvSource({
"xcvu5p,LAG_LAG_X30Y250,'[LAGUNA_X6Y140, LAGUNA_X6Y141, LAGUNA_X7Y140, LAGUNA_X7Y141]',true",
Expand Down
Loading