diff --git a/libs/libclkarchopenfpga/src/base/clock_network.cpp b/libs/libclkarchopenfpga/src/base/clock_network.cpp index db3bf0cf7..e989e88f4 100644 --- a/libs/libclkarchopenfpga/src/base/clock_network.cpp +++ b/libs/libclkarchopenfpga/src/base/clock_network.cpp @@ -535,13 +535,17 @@ std::vector ClockNetwork::flatten_internal_driver_from_pin( std::vector flatten_taps; BasicPort des_pin = internal_driver_to_pin(int_driver_id); if (!des_pin.is_valid()) { - VTR_LOG_ERROR("Invalid internal driver destination port name '%s' whose index is not valid\n", - des_pin.to_verilog_string().c_str()); + VTR_LOG_ERROR( + "Invalid internal driver destination port name '%s' whose index is not " + "valid\n", + des_pin.to_verilog_string().c_str()); exit(1); } if (des_pin.get_width() != 1) { - VTR_LOG_ERROR("Invalid internal driver destination port name '%s' whose width is not 1\n", - des_pin.to_verilog_string().c_str()); + VTR_LOG_ERROR( + "Invalid internal driver destination port name '%s' whose width is not " + "1\n", + des_pin.to_verilog_string().c_str()); exit(1); } if (des_pin.get_lsb() != size_t(clk_pin_id)) { @@ -795,8 +799,8 @@ ClockInternalDriverId ClockNetwork::add_spine_switch_point_internal_driver( PortParser to_pin_parser(int_driver_to_port); /* Find any existing id for the driver port */ for (ClockInternalDriverId int_driver_id : internal_driver_ids_) { - if (internal_driver_from_pins_[int_driver_id] == int_driver_from_port - && internal_driver_to_pins_[int_driver_id] == to_pin_parser.port()) { + if (internal_driver_from_pins_[int_driver_id] == int_driver_from_port && + internal_driver_to_pins_[int_driver_id] == to_pin_parser.port()) { spine_switch_internal_drivers_[spine_id][size_t(switch_point_id)] .push_back(int_driver_id); return int_driver_id; diff --git a/libs/libclkarchopenfpga/src/base/clock_network.h b/libs/libclkarchopenfpga/src/base/clock_network.h index 088a238f9..2f1a09592 100644 --- a/libs/libclkarchopenfpga/src/base/clock_network.h +++ b/libs/libclkarchopenfpga/src/base/clock_network.h @@ -225,7 +225,8 @@ class ClockNetwork { const vtr::Point& coord); ClockInternalDriverId add_spine_switch_point_internal_driver( const ClockSpineId& spine_id, const ClockSwitchPointId& switch_point_id, - const std::string& internal_driver_from_port, const std::string& internal_driver_to_port); + const std::string& internal_driver_from_port, + const std::string& internal_driver_to_port); ClockTapId add_tree_tap(const ClockTreeId& tree_id, const BasicPort& from_port, const std::string& to_port); diff --git a/libs/libclkarchopenfpga/src/io/read_xml_clock_network.cpp b/libs/libclkarchopenfpga/src/io/read_xml_clock_network.cpp index 8e7116f62..46f74641d 100644 --- a/libs/libclkarchopenfpga/src/io/read_xml_clock_network.cpp +++ b/libs/libclkarchopenfpga/src/io/read_xml_clock_network.cpp @@ -169,9 +169,9 @@ static void read_xml_clock_spine_switch_point_internal_driver( XML_CLOCK_SPINE_SWITCH_POINT_INTERNAL_DRIVER_ATTRIBUTE_FROM_PIN, loc_data) .as_string(); std::string int_driver_to_port_name = - get_attribute( - xml_int_driver, - XML_CLOCK_SPINE_SWITCH_POINT_INTERNAL_DRIVER_ATTRIBUTE_TO_PIN, loc_data) + get_attribute(xml_int_driver, + XML_CLOCK_SPINE_SWITCH_POINT_INTERNAL_DRIVER_ATTRIBUTE_TO_PIN, + loc_data) .as_string(); clk_ntwk.add_spine_switch_point_internal_driver(spine_id, switch_point_id, int_driver_from_port_name, diff --git a/libs/libclkarchopenfpga/src/io/write_xml_clock_network.cpp b/libs/libclkarchopenfpga/src/io/write_xml_clock_network.cpp index d570c7607..1d9937141 100644 --- a/libs/libclkarchopenfpga/src/io/write_xml_clock_network.cpp +++ b/libs/libclkarchopenfpga/src/io/write_xml_clock_network.cpp @@ -130,7 +130,9 @@ static int write_xml_clock_spine_switch_point( clk_ntwk.internal_driver_from_pin(int_driver_id).c_str()); write_xml_attribute( fp, XML_CLOCK_SPINE_SWITCH_POINT_INTERNAL_DRIVER_ATTRIBUTE_TO_PIN, - clk_ntwk.internal_driver_to_pin(int_driver_id).to_verilog_string().c_str()); + clk_ntwk.internal_driver_to_pin(int_driver_id) + .to_verilog_string() + .c_str()); fp << "/>" << "\n"; } diff --git a/openfpga/src/annotation/append_clock_rr_graph.cpp b/openfpga/src/annotation/append_clock_rr_graph.cpp index a6695c678..3552cdc33 100644 --- a/openfpga/src/annotation/append_clock_rr_graph.cpp +++ b/openfpga/src/annotation/append_clock_rr_graph.cpp @@ -590,8 +590,7 @@ static void try_find_and_add_clock_opin2track_node( std::vector& opin_nodes, const DeviceGrid& grids, const RRGraphView& rr_graph_view, const size_t& layer, const vtr::Point& grid_coord, const e_side& pin_side, - const ClockNetwork& clk_ntwk, - const ClockTreePinId& clk_pin, + const ClockNetwork& clk_ntwk, const ClockTreePinId& clk_pin, const ClockInternalDriverId& int_driver_id) { t_physical_tile_type_ptr grid_type = grids.get_physical_type( t_physical_tile_loc(grid_coord.x(), grid_coord.y(), layer)); @@ -637,8 +636,7 @@ static void try_find_and_add_clock_opin2track_node( static std::vector find_clock_opin2track_node( const DeviceGrid& grids, const RRGraphView& rr_graph_view, const size_t& layer, const vtr::Point& sb_coord, - const ClockNetwork& clk_ntwk, - const ClockTreePinId& clk_pin, + const ClockNetwork& clk_ntwk, const ClockTreePinId& clk_pin, const std::vector& int_driver_ids) { std::vector opin_nodes; /* Find opins from @@ -661,9 +659,9 @@ static std::vector find_clock_opin2track_node( vtr::Point grid_coord = grid_coords[igrid]; for (e_side grid_side : grid_sides[igrid]) { for (ClockInternalDriverId int_driver_id : int_driver_ids) { - try_find_and_add_clock_opin2track_node(opin_nodes, grids, rr_graph_view, - layer, grid_coord, grid_side, - clk_ntwk, clk_pin, int_driver_id); + try_find_and_add_clock_opin2track_node( + opin_nodes, grids, rr_graph_view, layer, grid_coord, grid_side, + clk_ntwk, clk_pin, int_driver_id); } } }