Skip to content

Commit 8d6ce93

Browse files
committed
make format
1 parent e3f8e13 commit 8d6ce93

File tree

2 files changed

+50
-51
lines changed

2 files changed

+50
-51
lines changed

libs/libarchfpga/src/physical_types.h

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,108 +1602,108 @@ enum e_Fc_type {
16021602
/**
16031603
* @brief Lists all the important information about a certain segment type. Only
16041604
* used if the route_type is DETAILED. [0 .. det_routing_arch.num_segment]
1605-
*/
1605+
*/
16061606
struct t_segment_inf {
16071607
/** @var name
16081608
* @brief The name of the segment type
1609-
*/
1609+
*/
16101610
std::string name;
16111611

16121612
/** @var frequency
16131613
* @brief ratio of tracks which are of this segment type.
1614-
*/
1614+
*/
16151615
int frequency;
16161616

16171617
/** @var length
16181618
* @brief Length (in clbs) of the segment.
1619-
*/
1619+
*/
16201620
int length;
16211621

16221622
/** @var arch_wire_switch
16231623
* @brief Index of the switch type that connects other wires to this segment.
16241624
* Note that this index is in relation to the switches from the architecture file,
16251625
* not the expanded list of switches that is built at the end of build_rr_graph.
1626-
*/
1626+
*/
16271627
short arch_wire_switch;
1628-
1628+
16291629
/** @var arch_opin_switch
16301630
* @brief Index of the switch type that connects output pins to this segment.
16311631
* Note that this index is in relation to the switches from the architecture file,
16321632
* not the expanded list of switches that is built at the end of build_rr_graph.
1633-
*/
1633+
*/
16341634
short arch_opin_switch;
1635-
1635+
16361636
/** @var arch_wire_switch_dec
16371637
* @brief Same as arch_wire_switch but used only for decremental tracks if it is
16381638
* specified in the architecture file. If -1, this value was not set in the
16391639
* architecture file and arch_wire_switch should be used for "DEC_DIR" wire segments.
1640-
*/
1640+
*/
16411641
short arch_wire_switch_dec = -1;
1642-
1642+
16431643
/** @var arch_opin_switch_dec
16441644
* @brief Same as arch_opin_switch but used only for decremental tracks if
16451645
* it is specified in the architecture file. If -1, this value was not set in
16461646
* the architecture file and arch_opin_switch should be used for "DEC_DIR" wire segments.
1647-
*/
1647+
*/
16481648
short arch_opin_switch_dec = -1;
1649-
1649+
16501650
/** @var arch_opin_between_dice_switch
16511651
* @brief Index of the switch type that connects output pins (OPINs) to this
16521652
* segment from another die (layer). Note that this index is in relation to
16531653
* the switches from the architecture file, not the expanded list of switches
16541654
* that is built at the end of build_rr_graph.
1655-
*/
1655+
*/
16561656
short arch_inter_die_switch = -1;
1657-
1657+
16581658
/** @var frac_cb
16591659
* @brief The fraction of logic blocks along its length to which this segment can connect.
16601660
* (i.e. internal population).
1661-
*/
1661+
*/
16621662
float frac_cb;
1663-
1663+
16641664
/** @var frac_sb
16651665
* @brief The fraction of the length + 1 switch blocks along the segment to which the segment can connect.
16661666
* Segments that aren't long lines must connect to at least two switch boxes.
1667-
*/
1667+
*/
16681668
float frac_sb;
1669-
1669+
16701670
bool longline;
1671-
1671+
16721672
/** @var Rmetal
16731673
* @brief The resistance of a routing track, per unit logic block length. */
16741674
float Rmetal;
1675-
1675+
16761676
/** @var Cmetal
16771677
* @brief The capacitance of a routing track, per unit logic block length. */
16781678
float Cmetal;
1679-
1679+
16801680
enum e_directionality directionality;
1681-
1681+
16821682
/** @var parallel_axis
16831683
* @brief Defines what axis the segment is parallel to. See e_parallel_axis
16841684
* comments for more details on the values.
1685-
*/
1685+
*/
16861686
enum e_parallel_axis parallel_axis;
1687-
1687+
16881688
/** @var cb
16891689
* @brief A vector of booleans indicating whether the segment can connect to a logic block.
1690-
*/
1690+
*/
16911691
std::vector<bool> cb;
1692-
1692+
16931693
/** @var sb
16941694
* @brief A vector of booleans indicating whether the segment can connect to a switch block.
1695-
*/
1695+
*/
16961696
std::vector<bool> sb;
1697-
1697+
16981698
/** @var seg_index
16991699
* @brief The index of the segment as stored in the appropriate Segs list.
17001700
* Upon loading the architecture, we use this field to keep track of the
17011701
* segment's index in the unified segment_inf vector. This is useful when
17021702
* building the rr_graph for different Y & X channels in terms of track
17031703
* distribution and segment type.
1704-
*/
1704+
*/
17051705
int seg_index;
1706-
1706+
17071707
/** @var res_type
17081708
* @brief Determines the routing network to which the segment belongs.
17091709
* Possible values are:
@@ -1716,21 +1716,21 @@ struct t_segment_inf {
17161716
};
17171717

17181718
inline bool operator==(const t_segment_inf& a, const t_segment_inf& b) {
1719-
return a.name == b.name
1720-
&& a.frequency == b.frequency
1721-
&& a.length == b.length
1722-
&& a.arch_wire_switch == b.arch_wire_switch
1723-
&& a.arch_opin_switch == b.arch_opin_switch
1724-
&& a.arch_inter_die_switch == b.arch_inter_die_switch
1725-
&& a.frac_cb == b.frac_cb
1726-
&& a.frac_sb == b.frac_sb
1727-
&& a.longline == b.longline
1728-
&& a.Rmetal == b.Rmetal
1729-
&& a.Cmetal == b.Cmetal
1730-
&& a.directionality == b.directionality
1731-
&& a.parallel_axis == b.parallel_axis
1732-
&& a.cb == b.cb
1733-
&& a.sb == b.sb;
1719+
return a.name == b.name
1720+
&& a.frequency == b.frequency
1721+
&& a.length == b.length
1722+
&& a.arch_wire_switch == b.arch_wire_switch
1723+
&& a.arch_opin_switch == b.arch_opin_switch
1724+
&& a.arch_inter_die_switch == b.arch_inter_die_switch
1725+
&& a.frac_cb == b.frac_cb
1726+
&& a.frac_sb == b.frac_sb
1727+
&& a.longline == b.longline
1728+
&& a.Rmetal == b.Rmetal
1729+
&& a.Cmetal == b.Cmetal
1730+
&& a.directionality == b.directionality
1731+
&& a.parallel_axis == b.parallel_axis
1732+
&& a.cb == b.cb
1733+
&& a.sb == b.sb;
17341734
}
17351735

17361736
/*provide hashing for t_segment_inf to enable the use of many std containers.

vpr/src/base/vpr_types.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,29 +1363,29 @@ struct t_det_routing_arch {
13631363
struct t_seg_details {
13641364
/** @var length
13651365
* @brief Length (in clbs) of the segment.
1366-
*/
1366+
*/
13671367
int length = 0;
13681368

13691369
/** @var start
13701370
* @brief Index at which a segment starts in channel 0.
1371-
*/
1371+
*/
13721372
int start = 0;
13731373

13741374
/** @var longline
13751375
* @brief True if this segment spans the entire channel.
1376-
*/
1376+
*/
13771377
bool longline = false;
13781378

13791379
/** @var sb
13801380
* @brief [0..length]: true for every channel intersection, relative to the
13811381
* segment start, at which there is a switch box.
1382-
*/
1382+
*/
13831383
std::unique_ptr<bool[]> sb;
13841384

13851385
/** @var cb
13861386
* @brief [0..length]: true for every logic block along the segment at
13871387
* which there is a connection box.
1388-
*/
1388+
*/
13891389
std::unique_ptr<bool[]> cb;
13901390

13911391
/** @var arch_wire_switch
@@ -1420,7 +1420,6 @@ struct t_seg_details {
14201420
*/
14211421
float Cmetal = 0;
14221422

1423-
14241423
bool twisted = false;
14251424

14261425
/** @var direction

0 commit comments

Comments
 (0)