@@ -209,8 +209,7 @@ std::vector<Connection> CRRConnectionBuilder::get_tile_connections(size_t tile_x
209209 return tile_connections;
210210}
211211
212- std::map<size_t , RRNodeId> CRRConnectionBuilder::get_vertical_nodes (Coordinate x, Coordinate y, const DataFrame& df,
213- const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup) const {
212+ std::map<size_t , RRNodeId> CRRConnectionBuilder::get_vertical_nodes (Coordinate x, Coordinate y, const DataFrame& df, const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup) const {
214213 std::map<size_t , RRNodeId> source_nodes;
215214 std::string prev_seg_type = " " ;
216215 int prev_seg_index = -1 ;
@@ -239,8 +238,7 @@ std::map<size_t, RRNodeId> CRRConnectionBuilder::get_vertical_nodes(Coordinate x
239238 return source_nodes;
240239}
241240
242- std::map<size_t , RRNodeId> CRRConnectionBuilder::get_horizontal_nodes (Coordinate x, Coordinate y, const DataFrame& df,
243- const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup) const {
241+ std::map<size_t , RRNodeId> CRRConnectionBuilder::get_horizontal_nodes (Coordinate x, Coordinate y, const DataFrame& df, const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup) const {
244242 std::map<size_t , RRNodeId> sink_nodes;
245243 std::string prev_seg_type = " " ;
246244 int prev_seg_index = -1 ;
@@ -273,7 +271,7 @@ std::map<size_t, RRNodeId> CRRConnectionBuilder::get_horizontal_nodes(Coordinate
273271 return sink_nodes;
274272}
275273
276- CRRConnectionBuilder::SegmentInfo CRRConnectionBuilder::parse_segment_info (const DataFrame& df,
274+ CRRConnectionBuilder::SegmentInfo CRRConnectionBuilder::parse_segment_info (const DataFrame& df,
277275 size_t row_or_col,
278276 bool is_vertical) const {
279277 SegmentInfo info;
@@ -324,8 +322,7 @@ CRRConnectionBuilder::SegmentInfo CRRConnectionBuilder::parse_segment_info(const
324322 return info;
325323}
326324
327- RRNodeId CRRConnectionBuilder::process_opin_ipin_node (const SegmentInfo& info, Coordinate x, Coordinate y,
328- const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup) const {
325+ RRNodeId CRRConnectionBuilder::process_opin_ipin_node (const SegmentInfo& info, Coordinate x, Coordinate y, const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup) const {
329326 assert (info.side == Side::OPIN || info.side == Side::IPIN);
330327 e_rr_type node_type = (info.side == Side::OPIN) ? e_rr_type::OPIN : e_rr_type::IPIN;
331328 NodeHash hash = std::make_tuple (node_type,
@@ -340,10 +337,7 @@ RRNodeId CRRConnectionBuilder::process_opin_ipin_node(const SegmentInfo& info, C
340337 return RRNodeId::INVALID ();
341338}
342339
343- RRNodeId CRRConnectionBuilder::process_channel_node (const SegmentInfo& info, Coordinate x, Coordinate y,
344- const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup,
345- int & prev_seg_index, Side& prev_side, std::string& prev_seg_type, int & prev_ptc_number,
346- bool is_vertical) const {
340+ RRNodeId CRRConnectionBuilder::process_channel_node (const SegmentInfo& info, Coordinate x, Coordinate y, const std::unordered_map<NodeHash, RRNodeId, NodeHasher>& node_lookup, int & prev_seg_index, Side& prev_side, std::string& prev_seg_type, int & prev_ptc_number, bool is_vertical) const {
347341 // Check grid boundaries
348342 if ((info.side == Side::RIGHT && x == fpga_grid_x_) || (info.side == Side::TOP && y == fpga_grid_y_)) {
349343 return RRNodeId::INVALID ();
@@ -398,10 +392,14 @@ RRNodeId CRRConnectionBuilder::process_channel_node(const SegmentInfo& info, Coo
398392}
399393
400394void CRRConnectionBuilder::calculate_segment_coordinates (const SegmentInfo& info,
401- Coordinate x, Coordinate y,
402- Coordinate& x_low, Coordinate& x_high,
403- Coordinate& y_low, Coordinate& y_high,
404- int & physical_length, int & truncated,
395+ Coordinate x,
396+ Coordinate y,
397+ Coordinate& x_low,
398+ Coordinate& x_high,
399+ Coordinate& y_low,
400+ Coordinate& y_high,
401+ int & physical_length,
402+ int & truncated,
405403 bool is_vertical) const {
406404 int seg_length = std::stoi (info.seg_type .substr (1 ));
407405 int tap = info.tap ;
@@ -527,9 +525,7 @@ std::string CRRConnectionBuilder::get_ptc_sequence(int seg_index,
527525 return result;
528526}
529527
530- SwitchId CRRConnectionBuilder::get_edge_switch_id (const std::string& cell_value, const std::string& sink_node_type,
531- RRNodeId /* source_node*/ , RRNodeId /* sink_node*/ ,
532- int /* segment_length*/ ) const {
528+ SwitchId CRRConnectionBuilder::get_edge_switch_id (const std::string& cell_value, const std::string& sink_node_type, RRNodeId /* source_node*/ , RRNodeId /* sink_node*/ , int /* segment_length*/ ) const {
533529 std::string lower_case_sink_node_type = sink_node_type;
534530 std::transform (lower_case_sink_node_type.begin (),
535531 lower_case_sink_node_type.end (),
0 commit comments