@@ -41,7 +41,7 @@ inline ClusterBlockId get_cluster_block_from_rr_node(RRNodeId inode){
41
41
42
42
auto [_, subtile] = get_sub_tile_from_pin_physical_num (physical_tile, source_pin);
43
43
44
- ClusterBlockId clb = place_ctx.grid_blocks .block_at_location ({
44
+ ClusterBlockId clb = place_ctx.grid_blocks () .block_at_location ({
45
45
rr_graph.node_xlow (inode),
46
46
rr_graph.node_ylow (inode),
47
47
subtile,
@@ -151,7 +151,7 @@ static void sync_pb_routes_to_routing(void){
151
151
auto & device_ctx = g_vpr_ctx.device ();
152
152
auto & atom_ctx = g_vpr_ctx.atom ();
153
153
auto & cluster_ctx = g_vpr_ctx.mutable_clustering ();
154
- auto & placement_ctx = g_vpr_ctx.placement ();
154
+ auto & place_ctx = g_vpr_ctx.placement ();
155
155
auto & route_ctx = g_vpr_ctx.routing ();
156
156
auto & rr_graph = device_ctx.rr_graph ;
157
157
@@ -193,7 +193,7 @@ static void sync_pb_routes_to_routing(void){
193
193
194
194
auto [_, subtile] = get_sub_tile_from_pin_physical_num (physical_tile, source_pin);
195
195
196
- ClusterBlockId clb = placement_ctx .grid_blocks .block_at_location ({
196
+ ClusterBlockId clb = place_ctx .grid_blocks () .block_at_location ({
197
197
rr_graph.node_xlow (source_inode),
198
198
rr_graph.node_ylow (source_inode),
199
199
subtile,
@@ -297,7 +297,7 @@ static void sync_clustered_netlist_to_routing(void){
297
297
298
298
auto [_, subtile] = get_sub_tile_from_pin_physical_num (physical_tile, pin_index);
299
299
300
- ClusterBlockId clb = place_ctx.grid_blocks .block_at_location ({
300
+ ClusterBlockId clb = place_ctx.grid_blocks () .block_at_location ({
301
301
rr_graph.node_xlow (rt_node.inode ),
302
302
rr_graph.node_ylow (rt_node.inode ),
303
303
subtile,
@@ -338,11 +338,12 @@ static void sync_clustered_netlist_to_routing(void){
338
338
rebuild_atom_nets_lookup (remapped);
339
339
/* 5. Rebuild place_ctx.physical_pins lookup
340
340
* TODO: maybe we don't need this fn and pin_index is enough? */
341
- place_ctx.physical_pins .clear ();
341
+ auto & blk_loc_registry = place_ctx.mutable_blk_loc_registry ();
342
+ auto & physical_pins = place_ctx.mutable_physical_pins ();
343
+ physical_pins.clear ();
342
344
for (auto clb: clb_netlist.blocks ()){
343
- place_sync_external_block_connections (clb);
345
+ blk_loc_registry. place_sync_external_block_connections (clb);
344
346
}
345
- /* TODO: Remove rr_nodes added by the flat router */
346
347
}
347
348
348
349
/* * Fix up pin rotation maps and the atom pin -> pb graph pin lookup for every block */
0 commit comments