@@ -29,6 +29,24 @@ static void build_rr_chan(RRGraphBuilder& rr_graph_builder,
2929 int wire_to_ipin_switch,
3030 e_directionality directionality);
3131
32+ /* *
33+ * @brief Collects the edges fanning-out of the 'from' track which connect to
34+ * the 'to' tracks, according to the switch block pattern.
35+ *
36+ * It returns the number of connections added, and updates edge_list_ptr to
37+ * point at the head of the (extended) linked list giving the nodes to which
38+ * this segment connects and the switch type used to connect to each.
39+ *
40+ * An edge is added from this segment to a y-segment if:
41+ * (1) this segment should have a switch box at that location, or
42+ * (2) the y-segment to which it would connect has a switch box, and the switch
43+ * type of that y-segment is unbuffered (bidirectional pass transistor).
44+ *
45+ * For bidirectional:
46+ * If the switch in each direction is a pass transistor (unbuffered), both
47+ * switches are marked as being of the types of the larger (lower R) pass
48+ * transistor.
49+ */
3250static int get_track_to_tracks (RRGraphBuilder& rr_graph_builder,
3351 int layer,
3452 int from_chan,
@@ -345,24 +363,6 @@ static void build_rr_chan(RRGraphBuilder& rr_graph_builder,
345363 }
346364}
347365
348- /*
349- * Collects the edges fanning-out of the 'from' track which connect to the 'to'
350- * tracks, according to the switch block pattern.
351- *
352- * It returns the number of connections added, and updates edge_list_ptr to
353- * point at the head of the (extended) linked list giving the nodes to which
354- * this segment connects and the switch type used to connect to each.
355- *
356- * An edge is added from this segment to a y-segment if:
357- * (1) this segment should have a switch box at that location, or
358- * (2) the y-segment to which it would connect has a switch box, and the switch
359- * type of that y-segment is unbuffered (bidirectional pass transistor).
360- *
361- * For bidirectional:
362- * If the switch in each direction is a pass transistor (unbuffered), both
363- * switches are marked as being of the types of the larger (lower R) pass
364- * transistor.
365- */
366366static int get_track_to_tracks (RRGraphBuilder& rr_graph_builder,
367367 int layer,
368368 int from_chan,
@@ -400,12 +400,12 @@ static int get_track_to_tracks(RRGraphBuilder& rr_graph_builder,
400400
401401 int from_switch = from_seg_details[from_track].arch_wire_switch ();
402402
403- // The absolute coordinate along the channel where the switch block at the
404- // beginning of the current wire segment is located
403+ // The absolute coordinate along the channel where the switch block at the
404+ // beginning of the current wire segment is located
405405 int start_sb_seg = from_seg - 1 ;
406406
407- // The absolute coordinate along the channel where the switch block at the
408- // end of the current wire segment is located
407+ // The absolute coordinate along the channel where the switch block at the
408+ // end of the current wire segment is located
409409 int end_sb_seg = get_seg_end (from_seg_details, from_track, from_seg, from_chan, chan_len);
410410
411411 // Figure out the sides of SB the from_wire will use
@@ -430,8 +430,8 @@ static int get_track_to_tracks(RRGraphBuilder& rr_graph_builder,
430430 end = to_seg;
431431 }
432432
433- // Walk along the 'from' wire segment identifying if a switchblock is located
434- // at each coordinate and add any related fan-out connections to the 'from' wire segment
433+ // Walk along the 'from' wire segment identifying if a switchblock is located
434+ // at each coordinate and add any related fan-out connections to the 'from' wire segment
435435 int num_conn = 0 ;
436436 for (int sb_seg = start; sb_seg <= end; ++sb_seg) {
437437 if (sb_seg < start_sb_seg || sb_seg > end_sb_seg) {
@@ -454,7 +454,7 @@ static int get_track_to_tracks(RRGraphBuilder& rr_graph_builder,
454454 // Get the coordinates of the current SB from the perspective of the destination channel.
455455 // i.e. for segments laid in the x-direction, sb_seg corresponds to the x coordinate and from_chan to the y,
456456 // but for segments in the y-direction, from_chan is the x coordinate and sb_seg is the y. So here we reverse
457- // the coordinates if necessary
457+ // the coordinates if necessary
458458 if (from_type == to_type) {
459459 // Same channel
460460 to_chan = from_chan;
@@ -566,8 +566,8 @@ static int get_track_to_tracks(RRGraphBuilder& rr_graph_builder,
566566 }
567567 if (UNI_DIRECTIONAL == directionality) {
568568 // No fanout if no SB.
569- /* Also, we are connecting from the bottom or left of SB so it
570- * makes the most sense to only get there from Direction::INC wires. */
569+ // Also, we are connecting from the bottom or left of SB so it
570+ // makes the most sense to only get there from Direction::INC wires.
571571 if ((from_is_sblock)
572572 && (Direction::INC == from_seg_details[from_track].direction ())) {
573573 num_conn += get_unidir_track_to_chan_seg (rr_graph_builder, layer, from_track, to_chan,
0 commit comments