diff --git a/src/com/xilinx/rapidwright/design/DesignTools.java b/src/com/xilinx/rapidwright/design/DesignTools.java index faa42c659..54d747d44 100644 --- a/src/com/xilinx/rapidwright/design/DesignTools.java +++ b/src/com/xilinx/rapidwright/design/DesignTools.java @@ -4324,7 +4324,7 @@ public static void updatePinsIsRouted(Net net) { } Queue queue = new ArrayDeque<>(); - for (NetTools.NodeTree node : NetTools.getRouteTrees(net)) { + for (NetTools.NodeTree node : NetTools.getNodeTrees(net)) { if (node.fanouts.isEmpty()) { // Skip source pins with no fanout continue; diff --git a/src/com/xilinx/rapidwright/design/NetTools.java b/src/com/xilinx/rapidwright/design/NetTools.java index 0f85e3ca5..827a6d18e 100644 --- a/src/com/xilinx/rapidwright/design/NetTools.java +++ b/src/com/xilinx/rapidwright/design/NetTools.java @@ -108,13 +108,13 @@ public String toString() { } /** - * Compute the routing tree of the given Net by examining its PIPs. + * Compute the node routing tree of the given Net by examining its PIPs. * Note that this method: (a) assumes that no loops are present, (b) only discovers subtrees that start at an * output SitePinInst or a node tied to VCC/GND (i.e. gaps and islands will be ignored). * @param net Net to analyze * @return A list of NodeTree objects, corresponding to the root of each subtree. */ - public static List getRouteTrees(Net net) { + public static List getNodeTrees(Net net) { List subtrees = new ArrayList<>(); Map nodeMap = new HashMap<>(); for (PIP pip : net.getPIPs()) { diff --git a/test/src/com/xilinx/rapidwright/design/TestNetTools.java b/test/src/com/xilinx/rapidwright/design/TestNetTools.java index d4726fcc3..c3acdddc9 100644 --- a/test/src/com/xilinx/rapidwright/design/TestNetTools.java +++ b/test/src/com/xilinx/rapidwright/design/TestNetTools.java @@ -117,7 +117,7 @@ public void testisGlobalClock(String pathAndlobalClockNames) { public void testGetRouteTrees() { Design design = RapidWrightDCP.loadDCP("picoblaze_ooc_X10Y235.dcp"); Net net = design.getNet("processor/data_path_loop[0].output_data.sy_kk_mux_lut/O5"); - List trees = NetTools.getRouteTrees(net); + List trees = NetTools.getNodeTrees(net); Assertions.assertEquals(1, trees.size()); // Taken directly from Vivado's report_route_status