From 3c2bf5159b0ace49c6d6341ced50741c6fb0e001 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 17 Aug 2022 14:38:40 -0700 Subject: [PATCH] [engine] use new API to get node side --- openfpga/src/fabric/build_routing_module_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openfpga/src/fabric/build_routing_module_utils.cpp b/openfpga/src/fabric/build_routing_module_utils.cpp index 36d7c0a3c..2328794d4 100644 --- a/openfpga/src/fabric/build_routing_module_utils.cpp +++ b/openfpga/src/fabric/build_routing_module_utils.cpp @@ -74,7 +74,7 @@ std::string generate_sb_module_grid_port_name(const e_side& sb_side, /* Collect the attributes of the rr_node required to generate the port name */ int pin_id = rr_graph.node_pin_num(rr_node); - e_side pin_side = rr_graph.node_side(rr_node); + e_side pin_side = get_rr_graph_single_node_side(rr_graph, rr_node); t_physical_tile_type_ptr physical_tile = vpr_device_grid[rr_graph.node_xlow(rr_node)][rr_graph.node_ylow(rr_node)].type; int pin_width_offset = physical_tile->pin_width_offset[pin_id]; int pin_height_offset = physical_tile->pin_height_offset[pin_id]; @@ -103,7 +103,7 @@ std::string generate_cb_module_grid_port_name(const e_side& cb_side, /* Collect the attributes of the rr_node required to generate the port name */ int pin_id = rr_graph.node_pin_num(rr_node); - e_side pin_side = rr_graph.node_side(rr_node); + e_side pin_side = get_rr_graph_single_node_side(rr_graph, rr_node); t_physical_tile_type_ptr physical_tile = vpr_device_grid[rr_graph.node_xlow(rr_node)][rr_graph.node_ylow(rr_node)].type; int pin_width_offset = physical_tile->pin_width_offset[pin_id]; int pin_height_offset = physical_tile->pin_height_offset[pin_id]; @@ -180,7 +180,7 @@ ModulePinInfo find_switch_block_module_input_port(const ModuleManager& module_ma rr_graph.node_ylow(input_rr_node)); /* Find the side where the grid pin locates in the grid */ - enum e_side grid_pin_side = rr_graph.node_side(input_rr_node); + enum e_side grid_pin_side = get_rr_graph_single_node_side(rr_graph, input_rr_node); VTR_ASSERT(NUM_SIDES != grid_pin_side); std::string input_port_name = generate_sb_module_grid_port_name(input_side,