Skip to content

Commit 7b48306

Browse files
committed
oops
1 parent 58b5eac commit 7b48306

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

vpr/src/pack/sync_netlists_to_routing_flat.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ inline ClusterBlockId get_cluster_block_from_rr_node(RRNodeId inode){
4141

4242
auto [_, subtile] = get_sub_tile_from_pin_physical_num(physical_tile, source_pin);
4343

44-
ClusterBlockId clb = place_ctx.grid_blocks.block_at_location({
44+
ClusterBlockId clb = place_ctx.grid_blocks().block_at_location({
4545
rr_graph.node_xlow(inode),
4646
rr_graph.node_ylow(inode),
4747
subtile,
@@ -151,7 +151,7 @@ static void sync_pb_routes_to_routing(void){
151151
auto& device_ctx = g_vpr_ctx.device();
152152
auto& atom_ctx = g_vpr_ctx.atom();
153153
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
154-
auto& placement_ctx = g_vpr_ctx.placement();
154+
auto& place_ctx = g_vpr_ctx.placement();
155155
auto& route_ctx = g_vpr_ctx.routing();
156156
auto& rr_graph = device_ctx.rr_graph;
157157

@@ -193,7 +193,7 @@ static void sync_pb_routes_to_routing(void){
193193

194194
auto [_, subtile] = get_sub_tile_from_pin_physical_num(physical_tile, source_pin);
195195

196-
ClusterBlockId clb = placement_ctx.grid_blocks.block_at_location({
196+
ClusterBlockId clb = place_ctx.grid_blocks().block_at_location({
197197
rr_graph.node_xlow(source_inode),
198198
rr_graph.node_ylow(source_inode),
199199
subtile,
@@ -297,7 +297,7 @@ static void sync_clustered_netlist_to_routing(void){
297297

298298
auto [_, subtile] = get_sub_tile_from_pin_physical_num(physical_tile, pin_index);
299299

300-
ClusterBlockId clb = place_ctx.grid_blocks.block_at_location({
300+
ClusterBlockId clb = place_ctx.grid_blocks().block_at_location({
301301
rr_graph.node_xlow(rt_node.inode),
302302
rr_graph.node_ylow(rt_node.inode),
303303
subtile,
@@ -338,11 +338,12 @@ static void sync_clustered_netlist_to_routing(void){
338338
rebuild_atom_nets_lookup(remapped);
339339
/* 5. Rebuild place_ctx.physical_pins lookup
340340
* 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();
342344
for(auto clb: clb_netlist.blocks()){
343-
place_sync_external_block_connections(clb);
345+
blk_loc_registry.place_sync_external_block_connections(clb);
344346
}
345-
/* TODO: Remove rr_nodes added by the flat router */
346347
}
347348

348349
/** Fix up pin rotation maps and the atom pin -> pb graph pin lookup for every block */

0 commit comments

Comments
 (0)