Skip to content

Commit

Permalink
Test for SiteInst.isEmpty() (#1128)
Browse files Browse the repository at this point in the history
* Test for SiteInst.isEmpty()

Signed-off-by: Chris Lavin <[email protected]>

* Restore import order

Signed-off-by: Chris Lavin <[email protected]>

---------

Signed-off-by: Chris Lavin <[email protected]>
  • Loading branch information
clavin-xlnx authored Jan 6, 2025
1 parent 0d78e1d commit d475105
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/src/com/xilinx/rapidwright/design/TestSiteInst.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,4 +401,15 @@ public void testSiteRouting(@TempDir Path dir) {
design.routeSites();
VivadoToolsHelper.assertRoutedSuccessfullyByVivado(design, dir);
}

@Test
public void testIsEmpty() {
Design d = RapidWrightDCP.loadDCP("picoblaze_2022.2.dcp");
for (SiteInst si : d.getSiteInsts()) {
Assertions.assertFalse(si.isEmpty());
}

SiteInst si = d.createSiteInst(d.getDevice().getSite("SLICE_X40Y10"));
Assertions.assertTrue(si.isEmpty());
}
}

0 comments on commit d475105

Please sign in to comment.