Skip to content

Commit c408a87

Browse files
committed
[vpr][route][crr] instantiate CRR vars before if block
1 parent ca34e03 commit c408a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/rr_graph_generation/tileable_rr_graph/tileable_rr_graph_edge_builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,10 @@ void build_rr_graph_regular_edges(const RRGraphView& rr_graph,
328328

329329
// Building CRR Graph
330330
const crrgenerator::CRRConnectionBuilder* crr_connection_builder = nullptr;
331+
crrgenerator::SwitchBlockManager sb_manager;
332+
crrgenerator::NodeLookupManager node_lookup(rr_graph, grids.width(), grids.height());
331333
if (build_crr_edges) {
332-
crrgenerator::SwitchBlockManager sb_manager;
333334
sb_manager.initialize(crr_opts.sb_maps, crr_opts.sb_templates, crr_opts.annotated_rr_graph);
334-
crrgenerator::NodeLookupManager node_lookup(rr_graph, grids.width(), grids.height());
335335
node_lookup.initialize();
336336
crrgenerator::CRRGraphGenerator parser(crr_opts, rr_graph, node_lookup, sb_manager, "vpr_custom_rr_graph.xml");
337337
parser.run();

0 commit comments

Comments
 (0)