Skip to content

Commit

Permalink
find-rr-node: use xmlstarlet to look for rr_graph node information
Browse files Browse the repository at this point in the history
  • Loading branch information
HackerFoo committed Aug 20, 2019
1 parent 44315b8 commit e338337
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions functions/symbiflow
Expand Up @@ -475,3 +475,12 @@ SELECT phy_tile.name || "/" || wire_in_tile.name FROM graph_node
)

undefine({{QUERY}})dnl

GO(find-rr-node) (
NODE_ID=$1
RR_GRAPH=${SF_ROOT}/build/xc7/archs/artix7/devices/rr_graph_xc7a50t-basys3-x1y0_test.rr_graph.real.xml
xml sel -i -t \
-m "rr_graph/rr_nodes/node[@id='${NODE_ID}']" -c '.' -n -b \
-m "rr_graph/rr_edges/edge[@sink_node='${NODE_ID}' or @src_node='${NODE_ID}']" -c '.' -n \
${RR_GRAPH}
)

0 comments on commit e338337

Please sign in to comment.