Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
duck2 committed Sep 10, 2024
1 parent 58b5eac commit 7b48306
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions vpr/src/pack/sync_netlists_to_routing_flat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ inline ClusterBlockId get_cluster_block_from_rr_node(RRNodeId inode){

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

ClusterBlockId clb = place_ctx.grid_blocks.block_at_location({
ClusterBlockId clb = place_ctx.grid_blocks().block_at_location({
rr_graph.node_xlow(inode),
rr_graph.node_ylow(inode),
subtile,
Expand Down Expand Up @@ -151,7 +151,7 @@ static void sync_pb_routes_to_routing(void){
auto& device_ctx = g_vpr_ctx.device();
auto& atom_ctx = g_vpr_ctx.atom();
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
auto& placement_ctx = g_vpr_ctx.placement();
auto& place_ctx = g_vpr_ctx.placement();
auto& route_ctx = g_vpr_ctx.routing();
auto& rr_graph = device_ctx.rr_graph;

Expand Down Expand Up @@ -193,7 +193,7 @@ static void sync_pb_routes_to_routing(void){

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

ClusterBlockId clb = placement_ctx.grid_blocks.block_at_location({
ClusterBlockId clb = place_ctx.grid_blocks().block_at_location({
rr_graph.node_xlow(source_inode),
rr_graph.node_ylow(source_inode),
subtile,
Expand Down Expand Up @@ -297,7 +297,7 @@ static void sync_clustered_netlist_to_routing(void){

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

ClusterBlockId clb = place_ctx.grid_blocks.block_at_location({
ClusterBlockId clb = place_ctx.grid_blocks().block_at_location({
rr_graph.node_xlow(rt_node.inode),
rr_graph.node_ylow(rt_node.inode),
subtile,
Expand Down Expand Up @@ -338,11 +338,12 @@ static void sync_clustered_netlist_to_routing(void){
rebuild_atom_nets_lookup(remapped);
/* 5. Rebuild place_ctx.physical_pins lookup
* TODO: maybe we don't need this fn and pin_index is enough? */
place_ctx.physical_pins.clear();
auto& blk_loc_registry = place_ctx.mutable_blk_loc_registry();
auto& physical_pins = place_ctx.mutable_physical_pins();
physical_pins.clear();
for(auto clb: clb_netlist.blocks()){
place_sync_external_block_connections(clb);
blk_loc_registry.place_sync_external_block_connections(clb);
}
/* TODO: Remove rr_nodes added by the flat router */
}

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

0 comments on commit 7b48306

Please sign in to comment.