Skip to content

Commit

Permalink
[core] code format
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxifan committed Sep 26, 2023
1 parent 76f446c commit 1624dc9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions openfpga/src/fabric/build_grid_module_duplicated_pins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ void add_grid_module_duplicated_pb_type_ports(
/* If the port is required to be merged, we deposit zero as subtile
* index */
if (tile_annotation.is_tile_port_to_merge(
std::string(grid_type_descriptor->name), pin_info.get_name())) {
std::string(grid_type_descriptor->name),
pin_info.get_name())) {
if (subtile_index == 0) {
port_name = generate_grid_port_name(
0, 0, 0, TOP, pin_info);
port_name = generate_grid_port_name(0, 0, 0, TOP, pin_info);
} else {
continue;
}
Expand Down
3 changes: 1 addition & 2 deletions openfpga/src/fabric/build_grid_module_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ void add_grid_module_net_connect_pb_graph_pin(
if (tile_annotation.is_tile_port_to_merge(
std::string(grid_type_descriptor->name), pin_info.get_name())) {
/* Exception: use top side for these merged ports */
grid_port_name = generate_grid_port_name(
0, 0, 0, TOP, pin_info);
grid_port_name = generate_grid_port_name(0, 0, 0, TOP, pin_info);
VTR_LOG("Use source pin '%s'\n", grid_port_name.c_str());
}
ModulePortId grid_module_port_id =
Expand Down
3 changes: 2 additions & 1 deletion openfpga/src/fabric/build_top_module_child_tile_instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,8 @@ static int build_top_module_global_net_for_given_tile_module(
if (tile_annotation.is_tile_port_to_merge(
std::string(physical_tile->name), grid_pin_info.get_name())) {
if (subtile_index != 0) {
grid_port_name = generate_grid_port_name(0, 0, 0, TOP, grid_pin_info);
grid_port_name =
generate_grid_port_name(0, 0, 0, TOP, grid_pin_info);
} else {
continue;
}
Expand Down
3 changes: 2 additions & 1 deletion openfpga/src/fabric/build_top_module_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,8 @@ static int build_top_module_global_net_for_given_grid_module(
if (tile_annotation.is_tile_port_to_merge(
std::string(physical_tile->name), grid_pin_info.get_name())) {
if (subtile_index != 0) {
grid_port_name = generate_grid_port_name(0, 0, 0, TOP, grid_pin_info);
grid_port_name =
generate_grid_port_name(0, 0, 0, TOP, grid_pin_info);
} else {
continue;
}
Expand Down

0 comments on commit 1624dc9

Please sign in to comment.