24
24
#include " clock_modeling.h"
25
25
#include " ShowSetup.h"
26
26
27
- static void SetupNetlistOpts (const t_options& Options, t_netlist_opts& NetlistOpts);
28
- static void SetupAPOpts (const t_options& options,
27
+ static void setup_netlist_opts (const t_options& Options, t_netlist_opts& NetlistOpts);
28
+ static void setup_ap_opts (const t_options& options,
29
29
t_ap_opts& apOpts);
30
- static void SetupPackerOpts (const t_options& Options,
30
+ static void setup_packer_opts (const t_options& Options,
31
31
t_packer_opts* PackerOpts);
32
- static void SetupPlacerOpts (const t_options& Options,
32
+ static void setup_placer_opts (const t_options& Options,
33
33
t_placer_opts* PlacerOpts);
34
- static void SetupAnnealSched (const t_options& Options,
34
+ static void setup_anneal_sched (const t_options& Options,
35
35
t_annealing_sched* AnnealSched);
36
- static void SetupRouterOpts (const t_options& Options, t_router_opts* RouterOpts);
37
- static void SetupNocOpts (const t_options& Options,
36
+ static void setup_router_opts (const t_options& Options, t_router_opts* RouterOpts);
37
+ static void setup_noc_opts (const t_options& Options,
38
38
t_noc_opts* NocOpts);
39
- static void SetupServerOpts (const t_options& Options,
39
+ static void setup_server_opts (const t_options& Options,
40
40
t_server_opts* ServerOpts);
41
41
42
- static void SetupRoutingArch (const t_arch& Arch, t_det_routing_arch& RoutingArch);
42
+ static void setup_routing_arch (const t_arch& Arch, t_det_routing_arch& RoutingArch);
43
43
44
- static void SetupTiming (const t_options& Options, const bool TimingEnabled, t_timing_inf* Timing);
45
- static void SetupSwitches (const t_arch& Arch,
44
+ static void setup_timing (const t_options& Options, const bool TimingEnabled, t_timing_inf* Timing);
45
+ static void setup_switches (const t_arch& Arch,
46
46
t_det_routing_arch& RoutingArch,
47
47
const std::vector<t_arch_switch_inf>& arch_switches);
48
- static void SetupAnalysisOpts (const t_options& Options, t_analysis_opts& analysis_opts);
49
- static void SetupPowerOpts (const t_options& Options, t_power_opts* power_opts, t_arch* Arch);
48
+ static void setup_analysis_opts (const t_options& Options, t_analysis_opts& analysis_opts);
49
+ static void setup_power_opts (const t_options& Options, t_power_opts* power_opts, t_arch* Arch);
50
50
51
- static void SetupVibInf (const std::vector<t_physical_tile_type>& PhysicalTileTypes,
51
+ static void setup_vib_inf (const std::vector<t_physical_tile_type>& PhysicalTileTypes,
52
52
const std::vector<t_arch_switch_inf>& Switches,
53
53
const std::vector<t_segment_inf>& Segments,
54
54
std::vector<VibInf>& vib_infs);
55
55
56
- static void ProcessFromOrToTokens (const std::vector<std::string> Tokens, const std::vector<t_physical_tile_type>& PhysicalTileTypes, const std::vector<t_segment_inf> segments, std::vector<t_from_or_to_inf>& froms);
56
+ static void process_from_or_to_tokens (const std::vector<std::string> Tokens, const std::vector<t_physical_tile_type>& PhysicalTileTypes, const std::vector<t_segment_inf> segments, std::vector<t_from_or_to_inf>& froms);
57
57
static void parse_pin_name (const char * src_string, int * start_pin_index, int * end_pin_index, char * pb_type_name, char * port_name);
58
58
59
59
/* *
@@ -151,14 +151,14 @@ void SetupVPR(const t_options* options,
151
151
152
152
fileNameOpts->verify_file_digests = options->verify_file_digests ;
153
153
154
- SetupNetlistOpts (*options, *netlistOpts);
155
- SetupPlacerOpts (*options, placerOpts);
156
- SetupAnnealSched (*options, &placerOpts->anneal_sched );
157
- SetupRouterOpts (*options, routerOpts);
158
- SetupAnalysisOpts (*options, *analysisOpts);
159
- SetupPowerOpts (*options, powerOpts, arch);
160
- SetupNocOpts (*options, nocOpts);
161
- SetupServerOpts (*options, serverOpts);
154
+ setup_netlist_opts (*options, *netlistOpts);
155
+ setup_placer_opts (*options, placerOpts);
156
+ setup_anneal_sched (*options, &placerOpts->anneal_sched );
157
+ setup_router_opts (*options, routerOpts);
158
+ setup_analysis_opts (*options, *analysisOpts);
159
+ setup_power_opts (*options, powerOpts, arch);
160
+ setup_noc_opts (*options, nocOpts);
161
+ setup_server_opts (*options, serverOpts);
162
162
163
163
// save the device layout, which is required to parse the architecture file
164
164
arch->device_layout = options->device_layout ;
@@ -236,17 +236,17 @@ void SetupVPR(const t_options* options,
236
236
237
237
segments = arch->Segments ;
238
238
239
- SetupSwitches (*arch, routingArch, arch->switches );
240
- SetupRoutingArch (*arch, routingArch);
241
- SetupTiming (*options, timingenabled, timing);
242
- SetupPackerOpts (*options, packerOpts);
243
- SetupAPOpts (*options, *apOpts);
239
+ setup_switches (*arch, routingArch, arch->switches );
240
+ setup_routing_arch (*arch, routingArch);
241
+ setup_timing (*options, timingenabled, timing);
242
+ setup_packer_opts (*options, packerOpts);
243
+ setup_ap_opts (*options, *apOpts);
244
244
routingArch.write_rr_graph_filename = options->write_rr_graph_file ;
245
245
routingArch.read_rr_graph_filename = options->read_rr_graph_file ;
246
246
routingArch.read_rr_edge_override_filename = options->read_rr_edge_override_file ;
247
247
248
248
if (!arch->vib_infs .empty ()) {
249
- SetupVibInf (device_ctx.physical_tile_types , arch->switches , arch->Segments , arch->vib_infs );
249
+ setup_vib_inf (device_ctx.physical_tile_types , arch->switches , arch->Segments , arch->vib_infs );
250
250
}
251
251
252
252
for (auto has_global_routing : arch->layer_global_routing ) {
@@ -353,7 +353,7 @@ void SetupVPR(const t_options* options,
353
353
}
354
354
}
355
355
356
- static void SetupTiming (const t_options& Options, const bool TimingEnabled, t_timing_inf* Timing) {
356
+ static void setup_timing (const t_options& Options, const bool TimingEnabled, t_timing_inf* Timing) {
357
357
/* Don't do anything if they don't want timing */
358
358
if (!TimingEnabled) {
359
359
Timing->timing_analysis_enabled = false ;
@@ -368,7 +368,7 @@ static void SetupTiming(const t_options& Options, const bool TimingEnabled, t_ti
368
368
* @brief This loads up VPR's arch_switch_inf data by combining the switches
369
369
* from the arch file with the special switches that VPR needs.
370
370
*/
371
- static void SetupSwitches (const t_arch& Arch,
371
+ static void setup_switches (const t_arch& Arch,
372
372
t_det_routing_arch& RoutingArch,
373
373
const std::vector<t_arch_switch_inf>& arch_switches) {
374
374
auto & device_ctx = g_vpr_ctx.mutable_device ();
@@ -425,7 +425,7 @@ static void SetupSwitches(const t_arch& Arch,
425
425
*
426
426
* Since checks are already done, this just copies values across
427
427
*/
428
- static void SetupRoutingArch (const t_arch& Arch,
428
+ static void setup_routing_arch (const t_arch& Arch,
429
429
t_det_routing_arch& RoutingArch) {
430
430
RoutingArch.switch_block_type = Arch.SBType ;
431
431
RoutingArch.switch_block_subtype = Arch.SBSubType ;
@@ -451,7 +451,7 @@ static void SetupRoutingArch(const t_arch& Arch,
451
451
RoutingArch.concat_pass_wire = Arch.concat_pass_wire ;
452
452
}
453
453
454
- static void SetupRouterOpts (const t_options& Options, t_router_opts* RouterOpts) {
454
+ static void setup_router_opts (const t_options& Options, t_router_opts* RouterOpts) {
455
455
RouterOpts->do_check_rr_graph = Options.check_rr_graph ;
456
456
RouterOpts->astar_fac = Options.astar_fac ;
457
457
RouterOpts->astar_offset = Options.astar_offset ;
@@ -539,7 +539,7 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
539
539
RouterOpts->with_timing_analysis = Options.timing_analysis ;
540
540
}
541
541
542
- static void SetupAnnealSched (const t_options& Options,
542
+ static void setup_anneal_sched (const t_options& Options,
543
543
t_annealing_sched* AnnealSched) {
544
544
AnnealSched->alpha_t = Options.PlaceAlphaT ;
545
545
if (AnnealSched->alpha_t >= 1 || AnnealSched->alpha_t <= 0 ) {
@@ -575,7 +575,7 @@ static void SetupAnnealSched(const t_options& Options,
575
575
* Error checking, such as checking for conflicting params is assumed
576
576
* to be done beforehand
577
577
*/
578
- void SetupAPOpts (const t_options& options,
578
+ void setup_ap_opts (const t_options& options,
579
579
t_ap_opts& apOpts) {
580
580
apOpts.analytical_solver_type = options.ap_analytical_solver .value ();
581
581
apOpts.partial_legalizer_type = options.ap_partial_legalizer .value ();
@@ -596,7 +596,7 @@ void SetupAPOpts(const t_options& options,
596
596
* Error checking, such as checking for conflicting params is assumed
597
597
* to be done beforehand
598
598
*/
599
- void SetupPackerOpts (const t_options& Options,
599
+ void setup_packer_opts (const t_options& Options,
600
600
t_packer_opts* PackerOpts) {
601
601
PackerOpts->output_file = Options.NetFile ;
602
602
@@ -627,7 +627,7 @@ void SetupPackerOpts(const t_options& Options,
627
627
PackerOpts->timing_update_type = Options.timing_update_type ;
628
628
}
629
629
630
- static void SetupNetlistOpts (const t_options& Options, t_netlist_opts& NetlistOpts) {
630
+ static void setup_netlist_opts (const t_options& Options, t_netlist_opts& NetlistOpts) {
631
631
NetlistOpts.const_gen_inference = Options.const_gen_inference ;
632
632
NetlistOpts.absorb_buffer_luts = Options.absorb_buffer_luts ;
633
633
NetlistOpts.sweep_dangling_primary_ios = Options.sweep_dangling_primary_ios ;
@@ -643,7 +643,7 @@ static void SetupNetlistOpts(const t_options& Options, t_netlist_opts& NetlistOp
643
643
* Error checking, such as checking for conflicting params
644
644
* is assumed to be done beforehand
645
645
*/
646
- static void SetupPlacerOpts (const t_options& Options, t_placer_opts* PlacerOpts) {
646
+ static void setup_placer_opts (const t_options& Options, t_placer_opts* PlacerOpts) {
647
647
if (Options.do_placement ) {
648
648
PlacerOpts->doPlacement = STAGE_DO;
649
649
}
@@ -725,7 +725,7 @@ static void SetupPlacerOpts(const t_options& Options, t_placer_opts* PlacerOpts)
725
725
PlacerOpts->placer_debug_net = Options.placer_debug_net ;
726
726
}
727
727
728
- static void SetupAnalysisOpts (const t_options& Options, t_analysis_opts& analysis_opts) {
728
+ static void setup_analysis_opts (const t_options& Options, t_analysis_opts& analysis_opts) {
729
729
if (Options.do_analysis ) {
730
730
analysis_opts.doAnalysis = STAGE_DO;
731
731
}
@@ -749,7 +749,7 @@ static void SetupAnalysisOpts(const t_options& Options, t_analysis_opts& analysi
749
749
analysis_opts.generate_net_timing_report = Options.generate_net_timing_report ;
750
750
}
751
751
752
- static void SetupPowerOpts (const t_options& Options, t_power_opts* power_opts, t_arch* Arch) {
752
+ static void setup_power_opts (const t_options& Options, t_power_opts* power_opts, t_arch* Arch) {
753
753
auto & device_ctx = g_vpr_ctx.mutable_device ();
754
754
755
755
power_opts->do_power = Options.do_power ;
@@ -774,7 +774,7 @@ static void SetupPowerOpts(const t_options& Options, t_power_opts* power_opts, t
774
774
/*
775
775
* Go through all the NoC options supplied by the user and store them internally.
776
776
*/
777
- static void SetupNocOpts (const t_options& Options, t_noc_opts* NocOpts) {
777
+ static void setup_noc_opts (const t_options& Options, t_noc_opts* NocOpts) {
778
778
// assign the noc specific options from the command line
779
779
NocOpts->noc = Options.noc ;
780
780
NocOpts->noc_flows_file = Options.noc_flows_file ;
@@ -798,7 +798,7 @@ static void SetupNocOpts(const t_options& Options, t_noc_opts* NocOpts) {
798
798
NocOpts->noc_placement_file_name = Options.noc_placement_file_name ;
799
799
}
800
800
801
- static void SetupServerOpts (const t_options& Options, t_server_opts* ServerOpts) {
801
+ static void setup_server_opts (const t_options& Options, t_server_opts* ServerOpts) {
802
802
ServerOpts->is_server_mode_enabled = Options.is_server_mode_enabled ;
803
803
ServerOpts->port_num = Options.server_port_num ;
804
804
}
@@ -1040,7 +1040,7 @@ static void do_reachability_analysis(t_physical_tile_type* physical_tile,
1040
1040
}
1041
1041
}
1042
1042
1043
- static void SetupVibInf (const std::vector<t_physical_tile_type>& PhysicalTileTypes,
1043
+ static void setup_vib_inf (const std::vector<t_physical_tile_type>& PhysicalTileTypes,
1044
1044
const std::vector<t_arch_switch_inf>& switches,
1045
1045
const std::vector<t_segment_inf>& Segments,
1046
1046
std::vector<VibInf>& vib_infs) {
@@ -1068,7 +1068,7 @@ static void SetupVibInf(const std::vector<t_physical_tile_type>& PhysicalTileTyp
1068
1068
for (auto & first_stage : first_stages) {
1069
1069
auto & from_tokens = first_stage.from_tokens ;
1070
1070
for (const auto & from_token : from_tokens) {
1071
- ProcessFromOrToTokens (from_token, PhysicalTileTypes, Segments, first_stage.froms );
1071
+ process_from_or_to_tokens (from_token, PhysicalTileTypes, Segments, first_stage.froms );
1072
1072
}
1073
1073
}
1074
1074
vib_inf.set_first_stages (first_stages);
@@ -1077,22 +1077,22 @@ static void SetupVibInf(const std::vector<t_physical_tile_type>& PhysicalTileTyp
1077
1077
for (auto & second_stage : second_stages) {
1078
1078
std::vector<t_from_or_to_inf> tos;
1079
1079
1080
- ProcessFromOrToTokens (second_stage.to_tokens , PhysicalTileTypes, Segments, tos);
1080
+ process_from_or_to_tokens (second_stage.to_tokens , PhysicalTileTypes, Segments, tos);
1081
1081
for (auto & to : tos) {
1082
1082
VTR_ASSERT (to.from_type == SEGMENT || to.from_type == PB);
1083
1083
second_stage.to .push_back (to);
1084
1084
}
1085
1085
1086
1086
auto from_tokens = second_stage.from_tokens ;
1087
1087
for (const auto & from_token : from_tokens) {
1088
- ProcessFromOrToTokens (from_token, PhysicalTileTypes, Segments, second_stage.froms );
1088
+ process_from_or_to_tokens (from_token, PhysicalTileTypes, Segments, second_stage.froms );
1089
1089
}
1090
1090
}
1091
1091
vib_inf.set_second_stages (second_stages);
1092
1092
}
1093
1093
}
1094
1094
1095
- static void ProcessFromOrToTokens (const std::vector<std::string> Tokens, const std::vector<t_physical_tile_type>& PhysicalTileTypes, const std::vector<t_segment_inf> segments, std::vector<t_from_or_to_inf>& froms) {
1095
+ static void process_from_or_to_tokens (const std::vector<std::string> Tokens, const std::vector<t_physical_tile_type>& PhysicalTileTypes, const std::vector<t_segment_inf> segments, std::vector<t_from_or_to_inf>& froms) {
1096
1096
for (int i_token = 0 ; i_token < (int )Tokens.size (); i_token++) {
1097
1097
std::string Token = Tokens[i_token];
1098
1098
const char * Token_char = Token.c_str ();
0 commit comments