Skip to content

Commit 4794d13

Browse files
make format
1 parent c731f9a commit 4794d13

File tree

6 files changed

+25
-26
lines changed

6 files changed

+25
-26
lines changed

vpr/src/base/setup_vpr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ static void setup_server_opts(const t_options& Options,
4444
static void setup_routing_arch(const t_arch& Arch, t_det_routing_arch& RoutingArch);
4545

4646
static void setup_timing(const t_options& Options, const bool TimingEnabled, t_timing_inf* Timing);
47+
48+
///@brief This loads up VPR's arch_switch_inf data by combining the switches
49+
/// from the arch file with the special switches that VPR needs.
4750
static void setup_switches(const t_arch& arch,
4851
t_det_routing_arch& routing_arch,
4952
const std::vector<t_arch_switch_inf>& arch_switches);
53+
5054
static void setup_analysis_opts(const t_options& Options, t_analysis_opts& analysis_opts);
5155
static void setup_power_opts(const t_options& Options, t_power_opts* power_opts, t_arch* Arch);
5256

@@ -358,10 +362,6 @@ static void setup_timing(const t_options& Options, const bool TimingEnabled, t_t
358362
Timing->SDCFile = Options.SDCFile;
359363
}
360364

361-
/**
362-
* @brief This loads up VPR's arch_switch_inf data by combining the switches
363-
* from the arch file with the special switches that VPR needs.
364-
*/
365365
static void setup_switches(const t_arch& arch,
366366
t_det_routing_arch& routing_arch,
367367
const std::vector<t_arch_switch_inf>& arch_switches) {

vpr/src/route/rr_graph_generation/clock_network_builders.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ size_t ClockRib::estimate_additional_nodes(const DeviceGrid& grid) {
204204

205205
// Adjust for boundry conditions
206206
int x_offset = 0;
207-
if ((x_start == 0) || // CHANX wires left boundry
207+
if ((x_start == 0) || // CHANX wires left boundry
208208
(x_start + repeat_.x == x_end)) // Avoid overlap
209209
{
210210
x_offset = 1;
@@ -258,7 +258,7 @@ void ClockRib::create_rr_nodes_and_internal_edges_for_one_instance(ClockRRGraphB
258258

259259
// Adjust for boundry conditions
260260
int x_offset = 0;
261-
if ((x_start == 0) || // CHANX wires left boundry
261+
if ((x_start == 0) || // CHANX wires left boundry
262262
(x_start + repeat_.x == x_end)) // Avoid overlap
263263
{
264264
x_offset = 1;

vpr/src/route/rr_graph_generation/rr_graph.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,10 +1579,10 @@ static vtr::NdMatrix<std::vector<int>, 4> alloc_and_load_pin_to_track_map(const
15791579
// allocate 'result' matrix and initialize entries to UNDEFINED. also allocate and initialize matrix which will be used
15801580
// to index into the correct entries when loading up 'result'
15811581
auto result = vtr::NdMatrix<std::vector<int>, 4>({
1582-
size_t(tile_type->num_pins), // [0..num_pins-1]
1583-
size_t(tile_type->width), // [0..width-1]
1584-
size_t(tile_type->height), // [0..height-1]
1585-
size_t(e_side::NUM_2D_SIDES), // [0..sides-1]
1582+
size_t(tile_type->num_pins), // [0..num_pins-1]
1583+
size_t(tile_type->width), // [0..width-1]
1584+
size_t(tile_type->height), // [0..height-1]
1585+
size_t(e_side::NUM_2D_SIDES), // [0..sides-1]
15861586
});
15871587

15881588
// multiplier for unidirectional vs bidirectional architectures

vpr/src/route/rr_graph_generation/rr_graph_chan_chan_edges.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -693,19 +693,19 @@ static void get_switchblocks_edges(RRGraphBuilder& rr_graph_builder,
693693
}
694694

695695
static int get_track_to_ipins(RRGraphBuilder& rr_graph_builder,
696-
int layer,
697-
int seg,
698-
int chan,
699-
int track,
700-
int tracks_per_chan,
701-
RRNodeId from_rr_node,
702-
t_rr_edge_info_set& rr_edges_to_create,
703-
const t_track_to_pin_lookup& track_to_pin_lookup,
704-
const t_chan_seg_details* seg_details,
705-
e_rr_type chan_type,
706-
int chan_length,
707-
int wire_to_ipin_switch,
708-
e_directionality directionality) {
696+
int layer,
697+
int seg,
698+
int chan,
699+
int track,
700+
int tracks_per_chan,
701+
RRNodeId from_rr_node,
702+
t_rr_edge_info_set& rr_edges_to_create,
703+
const t_track_to_pin_lookup& track_to_pin_lookup,
704+
const t_chan_seg_details* seg_details,
705+
e_rr_type chan_type,
706+
int chan_length,
707+
int wire_to_ipin_switch,
708+
e_directionality directionality) {
709709
const DeviceContext& device_ctx = g_vpr_ctx.device();
710710

711711
// End of this wire

vpr/src/route/rr_graph_generation/rr_graph_sg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void add_edges_opin_chanz_per_side(const RRGraphView& rr_graph,
120120

121121
// Two switch-block location adjacent to this channel segment
122122
std::array<t_physical_tile_loc, 2> adjacent_sb_loc;
123-
123+
124124
switch (side) {
125125
case TOP:
126126
adjacent_sb_loc[0] = {x, y, layer};

vpr/src/route/rr_graph_generation/rr_types.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ typedef std::vector<vtr::NdMatrix<std::vector<int>, 4>> t_pin_to_track_lookup;
2626
* [0..device_ctx.physical_tile_types.size()-1][0..max_chan_width - 1][0..width][0..height][0..3]
2727
*
2828
* @note When we model different channels based on position not axis,
29-
we can't use this anymore and need to have a lookup for each grid location.
29+
* we can't use this anymore and need to have a lookup for each grid location.
3030
*/
3131
typedef std::vector<vtr::NdMatrix<std::vector<int>, 4>> t_track_to_pin_lookup;
3232

33-
3433
/**
3534
* @brief Lists detailed information about wire segments. [0 .. W-1].
3635
*/

0 commit comments

Comments
 (0)