Skip to content

Commit

Permalink
[TestNet] Add testSingleClockNetSource()
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Sep 20, 2024
1 parent 29ca463 commit f40257b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/src/com/xilinx/rapidwright/design/TestNet.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,13 @@ public void testInternalConnectNet() {

Assertions.assertEquals("I1", net0.getLogicalNet().getPortInst(f7mux0.getEDIFCellInst(), "I1").getName());
}

@Test
public void testSingleClockNetSource() {
Design design = RapidWrightDCP.loadDCP("bug349.dcp");
Net net = design.getNet("CLK_BUFG_BOT_R_X60Y48_BUFGCTRL_X0Y0_O");
SitePinInst bufg_o = design.getSiteInstFromSiteName("BUFGCTRL_X0Y0").getSitePinInst("O");
Assertions.assertSame(bufg_o, net.getSource());
Assertions.assertNull(net.getAlternateSource());
}
}

0 comments on commit f40257b

Please sign in to comment.