Skip to content

Commit

Permalink
Rename to NetTools.getNodeTrees()
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Oct 30, 2024
1 parent d582d75 commit 4a10263
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/com/xilinx/rapidwright/design/DesignTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -4324,7 +4324,7 @@ public static void updatePinsIsRouted(Net net) {
}

Queue<NetTools.NodeTree> 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;
Expand Down
4 changes: 2 additions & 2 deletions src/com/xilinx/rapidwright/design/NetTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<NodeTree> getRouteTrees(Net net) {
public static List<NodeTree> getNodeTrees(Net net) {
List<NodeTree> subtrees = new ArrayList<>();
Map<Node, NodeTree> nodeMap = new HashMap<>();
for (PIP pip : net.getPIPs()) {
Expand Down
2 changes: 1 addition & 1 deletion test/src/com/xilinx/rapidwright/design/TestNetTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<NetTools.NodeTree> trees = NetTools.getRouteTrees(net);
List<NetTools.NodeTree> trees = NetTools.getNodeTrees(net);
Assertions.assertEquals(1, trees.size());

// Taken directly from Vivado's report_route_status
Expand Down

0 comments on commit 4a10263

Please sign in to comment.