@@ -1748,11 +1748,11 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17481748
17491749 /* Get the pin index in the rr_graph */
17501750 t_physical_tile_loc from_tile_loc (from_grid_coordinate.x (), from_grid_coordinate.y (), layer);
1751- int from_grid_width_ofs = grids.get_width_offset (from_tile_loc);
1752- int from_grid_height_ofs = grids.get_height_offset (from_tile_loc);
1751+ // int from_grid_width_ofs = grids.get_width_offset(from_tile_loc);
1752+ // int from_grid_height_ofs = grids.get_height_offset(from_tile_loc);
17531753 t_physical_tile_loc to_tile_loc (to_grid_coordinate.x (), to_grid_coordinate.y (), layer);
1754- int to_grid_width_ofs = grids.get_width_offset (to_tile_loc);
1755- int to_grid_height_ofs = grids.get_height_offset (to_tile_loc);
1754+ // int to_grid_width_ofs = grids.get_width_offset(to_tile_loc);
1755+ // int to_grid_height_ofs = grids.get_height_offset(to_tile_loc);
17561756
17571757 /* Find the side of grid pins, the pin location should be unique!
17581758 * Pin location is required by searching a node in rr_graph
@@ -1783,12 +1783,12 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17831783 }
17841784
17851785 RRNodeId opin_node_id = rr_graph.node_lookup ().find_node (layer,
1786- from_grid_coordinate.x () - from_grid_width_ofs ,
1787- from_grid_coordinate.y () - from_grid_height_ofs ,
1786+ from_grid_coordinate.x () + grid_type-> pin_width_offset [opin] ,
1787+ from_grid_coordinate.y () + grid_type-> pin_height_offset [opin] ,
17881788 e_rr_type::OPIN, opin, opin_grid_side[0 ]);
17891789 RRNodeId ipin_node_id = rr_graph.node_lookup ().find_node (layer,
1790- to_grid_coordinate.x () - to_grid_width_ofs ,
1791- to_grid_coordinate.y () - to_grid_height_ofs ,
1790+ to_grid_coordinate.x () + to_grid_type-> pin_width_offset [ipin] ,
1791+ to_grid_coordinate.y () + to_grid_type-> pin_height_offset [ipin] ,
17921792 e_rr_type::IPIN, ipin, ipin_grid_side[0 ]);
17931793
17941794 /* add edges to the opin_node */
0 commit comments