Skip to content

Commit

Permalink
Added --seed arg to strong_router_lookahead
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Shreve committed Jul 8, 2024
1 parent 83447ea commit 9c5efed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions libs/librrgraph/src/base/rr_graph_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void set_sink_locs(const RRGraphView& rr_graph, RRGraphBuilder& rr_graph_builder
if (x == new_sink_loc.x() && y == new_sink_loc.y()) /* The new sink location */
continue;

if (rr_graph_builder.node_lookup().find_node((int)layer, (int)x, (int)y, SINK, (int)ptc) == RRNodeId::INVALID())
if (rr_graph_builder.node_lookup().find_node((int)layer, (int)x, (int)y, SINK, (int)ptc) == RRNodeId::INVALID()) /* Already removed */
continue;

rr_graph_builder.node_lookup().remove_node(node, (int)layer, (int)x, (int)y, SINK, (int)ptc);
Expand All @@ -169,10 +169,11 @@ void set_sink_locs(const RRGraphView& rr_graph, RRGraphBuilder& rr_graph_builder
size_t node_ylow = rr_graph.node_ylow(node_id);

size_t tile_layer = rr_graph.node_layer(node_id);
t_physical_tile_type_ptr tile_type = grid.get_physical_type({(int)node_xlow, (int)node_ylow, (int)tile_layer});
t_physical_tile_loc tile_loc = {(int)node_xlow, (int)node_ylow, (int)tile_layer};
t_physical_tile_type_ptr tile_type = grid.get_physical_type(tile_loc);

size_t tile_xlow = node_xlow - grid.get_width_offset({(int)node_xlow, (int)node_ylow, (int)tile_layer});
size_t tile_ylow = node_ylow - grid.get_height_offset({(int)node_xlow, (int)node_ylow, (int)tile_layer});
size_t tile_xlow = node_xlow - grid.get_width_offset(tile_loc);
size_t tile_ylow = node_ylow - grid.get_height_offset(tile_loc);
size_t tile_xhigh = tile_xlow + tile_type->width - 1;
size_t tile_yhigh = tile_ylow + tile_type->height - 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ pass_requirements_file=pass_requirements_fixed_chan_width.txt
script_params_common = -starting_stage vpr --route_chan_width 60
script_params_list_add = --router_lookahead classic
script_params_list_add = --router_lookahead map
script_params_list_add = --router_lookahead extended_map
script_params_list_add = --router_lookahead extended_map --reorder_rr_graph_nodes_algorithm random_shuffle
script_params_list_add = --router_lookahead extended_map --seed 3
script_params_list_add = --router_lookahead extended_map --reorder_rr_graph_nodes_algorithm random_shuffle --seed 3

0 comments on commit 9c5efed

Please sign in to comment.