Skip to content

Commit

Permalink
[TestDesignTools] Check return value
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Dec 24, 2024
1 parent d6e7b42 commit 4fd44cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/src/com/xilinx/rapidwright/eco/TestECOTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void testConnectNetSwapSinks() {
EDIFNetlist netlist = design.getNetlist();
Map<Net, Set<SitePinInst>> deferredRemovals = new HashMap<>();

DesignTools.updatePinsIsRouted(design);
Assertions.assertEquals(0, DesignTools.updatePinsIsRouted(design));

// Disconnect the ILA inputs
List<EDIFHierPortInst> disconnectPins = new ArrayList<>();
Expand Down Expand Up @@ -253,7 +253,7 @@ public void testConnectNetSwapSource() {
EDIFNetlist netlist = design.getNetlist();
Map<Net, Set<SitePinInst>> deferredRemovals = new HashMap<>();

DesignTools.updatePinsIsRouted(design);
Assertions.assertEquals(0, DesignTools.updatePinsIsRouted(design));

// Disconnect the outputs
List<EDIFHierPortInst> disconnectPins = new ArrayList<>();
Expand Down Expand Up @@ -386,7 +386,7 @@ public void testCreateCell() {
Design design = RapidWrightDCP.loadDCP("picoblaze_ooc_X10Y235.dcp");
EDIFNetlist netlist = design.getNetlist();

DesignTools.updatePinsIsRouted(design);
Assertions.assertEquals(0, DesignTools.updatePinsIsRouted(design));

EDIFCell reference = netlist.getCell("kcpsm6");
List<String> instNames = Arrays.asList("processor2", "processor3");
Expand Down Expand Up @@ -474,7 +474,7 @@ public void testCreateNet() {
Design design = RapidWrightDCP.loadDCP("picoblaze_ooc_X10Y235.dcp");
EDIFNetlist netlist = design.getNetlist();

DesignTools.updatePinsIsRouted(design);
Assertions.assertEquals(0, DesignTools.updatePinsIsRouted(design));

List<String> netNames = Arrays.asList("processor/foo", "your_program/bar");
ECOTools.createNet(design, netNames);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public void testSimulateSwappedLutPinsWithRWRoute(String path, @TempDir Path tem
inputDesign = null;

Assertions.assertTrue(LUTTools.swapLutPinsFromPIPs(outputDesign) > 0);
DesignTools.updatePinsIsRouted(outputDesign);
Assertions.assertEquals(0, DesignTools.updatePinsIsRouted(outputDesign));
TestRWRoute.assertAllSourcesRoutedFlagSet(outputDesign);
TestRWRoute.assertAllPinsRouted(outputDesign);
VivadoToolsHelper.assertFullyRouted(outputDesign);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public void testSymmetricClkRouting() {
if (node != null) used.add(node);
}
}
DesignTools.updatePinsIsRouted(net);
Assertions.assertEquals(0, DesignTools.updatePinsIsRouted(net));
for (SitePinInst spi : net.getPins()) {
Assertions.assertTrue(spi.isRouted());
}
Expand Down

0 comments on commit 4fd44cb

Please sign in to comment.