@@ -436,7 +436,7 @@ void xml_read_arch(const char* ArchFile,
436
436
Next = get_single_child (architecture, " layout" , loc_data);
437
437
process_layout (Next, arch, loc_data, num_of_avail_layers);
438
438
439
- /* Precess vib_layout */
439
+ // Precess vib_layout
440
440
Next = get_single_child (architecture, " vib_layout" , loc_data, ReqOpt::OPTIONAL);
441
441
if (Next) {
442
442
process_vib_layout (Next, arch, loc_data);
@@ -480,13 +480,13 @@ void xml_read_arch(const char* ArchFile,
480
480
arch->directs = process_directs (Next, arch->switches , loc_data);
481
481
}
482
482
483
- /* Process vib_arch */
483
+ // Process vib_arch
484
484
Next = get_single_child (architecture, " vib_arch" , loc_data, ReqOpt::OPTIONAL);
485
485
if (Next) {
486
486
process_vib_arch (Next, PhysicalTileTypes, arch, loc_data);
487
487
}
488
488
489
- /* Process Clock Networks */
489
+ // Process Clock Networks
490
490
Next = get_single_child (architecture, " clocknetworks" , loc_data, ReqOpt::OPTIONAL);
491
491
if (Next) {
492
492
std::vector<std::string> expected_children = {" metal_layers" , " clock_network" , " clock_routing" };
@@ -505,11 +505,10 @@ void xml_read_arch(const char* ArchFile,
505
505
loc_data);
506
506
}
507
507
508
- /* Process architecture power information */
508
+ // Process architecture power information
509
509
510
- /* If arch->power has been initialized, meaning the user has requested power estimation,
511
- * then the power architecture information is required.
512
- */
510
+ // If arch->power has been initialized, meaning the user has requested power estimation,
511
+ // then the power architecture information is required.
513
512
if (arch->power ) {
514
513
POWER_REQD = ReqOpt::REQUIRED;
515
514
} else {
@@ -521,9 +520,7 @@ void xml_read_arch(const char* ArchFile,
521
520
if (arch->power ) {
522
521
process_power (Next, arch->power , loc_data);
523
522
} else {
524
- /* This information still needs to be read, even if it is just
525
- * thrown away.
526
- */
523
+ // This information still needs to be read, even if it is just thrown away.
527
524
t_power_arch* power_arch_fake = new t_power_arch ();
528
525
process_power (Next, power_arch_fake, loc_data);
529
526
delete power_arch_fake;
@@ -536,9 +533,7 @@ void xml_read_arch(const char* ArchFile,
536
533
if (arch->clocks ) {
537
534
process_clocks (Next, *arch->clocks , loc_data);
538
535
} else {
539
- /* This information still needs to be read, even if it is just
540
- * thrown away.
541
- */
536
+ // This information still needs to be read, even if it is just thrown away.
542
537
std::vector<t_clock_network> clocks_fake;
543
538
process_clocks (Next, clocks_fake, loc_data);
544
539
}
@@ -2921,7 +2916,7 @@ static void process_device(pugi::xml_node Node, t_arch* arch, t_default_fc_spec&
2921
2916
Cur = get_single_child (Node, " switch_block" , loc_data);
2922
2917
expect_only_attributes (Cur, {" type" , " fs" , " sub_type" , " sub_fs" }, loc_data);
2923
2918
Prop = get_attribute (Cur, " type" , loc_data).value ();
2924
- /* Parse attribute 'type', representing the major connectivity pattern for switch blocks */
2919
+ // Parse attribute 'type', representing the major connectivity pattern for switch blocks
2925
2920
if (strcmp (Prop, " wilton" ) == 0 ) {
2926
2921
arch->sb_type = WILTON;
2927
2922
} else if (strcmp (Prop, " universal" ) == 0 ) {
@@ -2935,19 +2930,18 @@ static void process_device(pugi::xml_node Node, t_arch* arch, t_default_fc_spec&
2935
2930
archfpga_throw (loc_data.filename_c_str (), loc_data.line (Cur),
2936
2931
vtr::string_fmt (" Unknown property %s for switch block type x\n " , Prop).c_str ());
2937
2932
}
2938
- /* Parse attribute 'sub_type', representing the minor connectivity pattern for switch blocks
2939
- * If not specified, the 'sub_type' is the same as major type
2940
- * This option is only valid for tileable routing resource graph builder
2941
- * Note that sub_type does not support custom switch block pattern!!!
2942
- * If 'sub_type' is specified, the custom switch block for 'type' is not allowed!
2943
- */
2933
+ // Parse attribute 'sub_type', representing the minor connectivity pattern for switch blocks
2934
+ // If not specified, the 'sub_type' is the same as major type
2935
+ // This option is only valid for tileable routing resource graph builder
2936
+ // Note that sub_type does not support custom switch block pattern!!!
2937
+ // If 'sub_type' is specified, the custom switch block for 'type' is not allowed!
2944
2938
std::string sub_type_str = get_attribute (Cur, " sub_type" , loc_data, BoolToReqOpt (false )).as_string (" " );
2945
2939
if (!sub_type_str.empty ()) {
2946
- if (sub_type_str == std::string ( " wilton" ) ) {
2940
+ if (sub_type_str == " wilton" ) {
2947
2941
arch->sb_sub_type = WILTON;
2948
- } else if (sub_type_str == std::string ( " universal" ) ) {
2942
+ } else if (sub_type_str == " universal" ) {
2949
2943
arch->sb_sub_type = UNIVERSAL;
2950
- } else if (sub_type_str == std::string ( " subset" ) ) {
2944
+ } else if (sub_type_str == " subset" ) {
2951
2945
arch->sb_sub_type = SUBSET;
2952
2946
} else {
2953
2947
archfpga_throw (loc_data.filename_c_str (), loc_data.line (Cur),
@@ -2957,8 +2951,8 @@ static void process_device(pugi::xml_node Node, t_arch* arch, t_default_fc_spec&
2957
2951
arch->sb_sub_type = arch->sb_type ;
2958
2952
}
2959
2953
2960
- ReqOpt CUSTOM_SWITCHBLOCK_REQD = BoolToReqOpt (!custom_switch_block);
2961
- arch->Fs = get_attribute (Cur, " fs" , loc_data, CUSTOM_SWITCHBLOCK_REQD ).as_int (3 );
2954
+ ReqOpt custom_switchblock_reqd = BoolToReqOpt (!custom_switch_block);
2955
+ arch->Fs = get_attribute (Cur, " fs" , loc_data, custom_switchblock_reqd ).as_int (3 );
2962
2956
arch->sub_fs = get_attribute (Cur, " sub_fs" , loc_data, BoolToReqOpt (false )).as_int (arch->Fs );
2963
2957
2964
2958
Cur = get_single_child (Node, " default_fc" , loc_data, ReqOpt::OPTIONAL);
@@ -4056,7 +4050,7 @@ static std::vector<t_segment_inf> process_segments(pugi::xml_node Parent,
4056
4050
process_cb_sb (SubElem, Segs[i].sb , loc_data);
4057
4051
}
4058
4052
4059
- /* Setup the bend list if they give one, otherwise use default */
4053
+ // Setup the bend list if they give one, otherwise use default
4060
4054
if (length > 1 ) {
4061
4055
Segs[i].is_bend = false ;
4062
4056
SubElem = get_single_child (Node, " bend" , loc_data, ReqOpt::OPTIONAL);
@@ -4065,12 +4059,12 @@ static std::vector<t_segment_inf> process_segments(pugi::xml_node Parent,
4065
4059
}
4066
4060
}
4067
4061
4068
- /* Store the index of this segment in Segs vector*/
4062
+ // Store the index of this segment in Segs vector
4069
4063
Segs[i].seg_index = i;
4070
- /* Get next Node */
4064
+ // Get next Node
4071
4065
Node = Node.next_sibling (Node.name ());
4072
4066
}
4073
- /* We need at least one type of segment that applies to each of x- and y-directed wiring.*/
4067
+ // We need at least one type of segment that applies to each of x- and y-directed wiring.
4074
4068
4075
4069
if (!x_axis_seg_found || !y_axis_seg_found) {
4076
4070
archfpga_throw (loc_data.filename_c_str (), loc_data.line (Node),
0 commit comments