Skip to content

Commit

Permalink
Support clock routing on Versal devices
Browse files Browse the repository at this point in the history
Signed-off-by: Wenhao Lin <wenhao.lin@amd.com>
  • Loading branch information
WenhaoLin-AMD committed Nov 13, 2024
1 parent a3af7dc commit 8d7aaf7
Show file tree
Hide file tree
Showing 3 changed files with 889 additions and 58 deletions.
14 changes: 14 additions & 0 deletions src/com/xilinx/rapidwright/router/RouteNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import com.xilinx.rapidwright.device.PIP;
import com.xilinx.rapidwright.device.Tile;
import com.xilinx.rapidwright.device.Wire;
import com.xilinx.rapidwright.rwroute.RouterHelper;


/**
Expand Down Expand Up @@ -381,6 +382,19 @@ public ArrayList<PIP> getPIPsBackToSource() {
return pips;
}

public ArrayList<PIP> getPIPsBackToSourceByNodes() {
ArrayList<PIP> pips = new ArrayList<>();
RouteNode curr = this;
while (curr.parent != null) {
PIP pip = RouterHelper.findPIPbetweenNodes(Node.getNode(curr.parent), Node.getNode(curr));
if (pip != null) {
pips.add(pip);
}
curr = curr.parent;
}
return pips;
}

public Wire[] getWiresInNode() {
return Node.getWiresInNode(getTile(),getWire());
}
Expand Down
Loading

0 comments on commit 8d7aaf7

Please sign in to comment.