@@ -5450,7 +5450,7 @@ static void ProcessVib(pugi::xml_node Vib_node, std::vector<t_physical_tile_type
5450
5450
arch->vib_infs .push_back (vib);
5451
5451
}
5452
5452
5453
- static void ProcessFirstStage (pugi::xml_node Stage_node, std::vector<t_physical_tile_type>& PhysicalTileTypes, std::vector<t_first_stage_mux_inf>& first_stages, const pugiutil::loc_data& loc_data) {
5453
+ static void ProcessFirstStage (pugi::xml_node Stage_node, std::vector<t_physical_tile_type>& /* PhysicalTileTypes */ , std::vector<t_first_stage_mux_inf>& first_stages, const pugiutil::loc_data& loc_data) {
5454
5454
pugi::xml_node Node;
5455
5455
pugi::xml_node SubElem;
5456
5456
// pugi::xml_node Cur;
@@ -5479,7 +5479,7 @@ static void ProcessFirstStage(pugi::xml_node Stage_node, std::vector<t_physical_
5479
5479
}
5480
5480
}
5481
5481
5482
- static void ProcessSecondStage (pugi::xml_node Stage_node, std::vector<t_physical_tile_type>& PhysicalTileTypes, std::vector<t_second_stage_mux_inf>& second_stages, const pugiutil::loc_data& loc_data) {
5482
+ static void ProcessSecondStage (pugi::xml_node Stage_node, std::vector<t_physical_tile_type>& /* PhysicalTileTypes */ , std::vector<t_second_stage_mux_inf>& second_stages, const pugiutil::loc_data& loc_data) {
5483
5483
pugi::xml_node Node;
5484
5484
pugi::xml_node SubElem;
5485
5485
// pugi::xml_node Cur;
@@ -5665,81 +5665,81 @@ static void ProcessSecondStage(pugi::xml_node Stage_node, std::vector<t_physical
5665
5665
// }
5666
5666
// }
5667
5667
5668
- void parse_pin_name (char * src_string, int * start_pin_index, int * end_pin_index, char * pb_type_name, char * port_name) {
5669
- /* Parses out the pb_type_name and port_name *
5670
- * If the start_pin_index and end_pin_index is specified, parse them too. *
5671
- * Return the values parsed by reference. */
5668
+ // void parse_pin_name(char* src_string, int* start_pin_index, int* end_pin_index, char* pb_type_name, char* port_name) {
5669
+ // /* Parses out the pb_type_name and port_name *
5670
+ // * If the start_pin_index and end_pin_index is specified, parse them too. *
5671
+ // * Return the values parsed by reference. */
5672
5672
5673
- char * source_string = nullptr ;
5674
- char * find_format = nullptr ;
5675
- int ichar, match_count;
5673
+ // char* source_string = nullptr;
5674
+ // char* find_format = nullptr;
5675
+ // int ichar, match_count;
5676
5676
5677
- // parse out the pb_type and port name, possibly pin_indices
5678
- find_format = strstr (src_string, " [" );
5679
- if (find_format == nullptr ) {
5680
- /* Format "pb_type_name.port_name" */
5681
- *start_pin_index = *end_pin_index = -1 ;
5677
+ // // parse out the pb_type and port name, possibly pin_indices
5678
+ // find_format = strstr(src_string, "[");
5679
+ // if (find_format == nullptr) {
5680
+ // /* Format "pb_type_name.port_name" */
5681
+ // *start_pin_index = *end_pin_index = -1;
5682
5682
5683
- strcpy (source_string, src_string);
5683
+ // strcpy(source_string, src_string);
5684
5684
5685
- for (ichar = 0 ; ichar < (int )(strlen (source_string)); ichar++) {
5686
- if (source_string[ichar] == ' .' )
5687
- source_string[ichar] = ' ' ;
5688
- }
5685
+ // for (ichar = 0; ichar < (int)(strlen(source_string)); ichar++) {
5686
+ // if (source_string[ichar] == '.')
5687
+ // source_string[ichar] = ' ';
5688
+ // }
5689
5689
5690
- match_count = sscanf (source_string, " %s %s" , pb_type_name, port_name);
5691
- if (match_count != 2 ) {
5692
- VTR_LOG_ERROR (
5693
- " Invalid pin - %s, name should be in the format "
5694
- " \" pb_type_name\" .\" port_name\" or \" pb_type_name\" .\" port_name[end_pin_index:start_pin_index]\" . "
5695
- " The end_pin_index and start_pin_index can be the same.\n " ,
5696
- src_string);
5697
- exit (1 );
5698
- }
5699
- } else {
5700
- /* Format "pb_type_name.port_name[end_pin_index:start_pin_index]" */
5701
- strcpy (source_string, src_string);
5702
- for (ichar = 0 ; ichar < (int )(strlen (source_string)); ichar++) {
5703
- // Need white space between the components when using %s with
5704
- // sscanf
5705
- if (source_string[ichar] == ' .' )
5706
- source_string[ichar] = ' ' ;
5707
- if (source_string[ichar] == ' [' )
5708
- source_string[ichar] = ' ' ;
5709
- }
5710
-
5711
- match_count = sscanf (source_string, " %s %s %d:%d]" ,
5712
- pb_type_name, port_name,
5713
- end_pin_index, start_pin_index);
5714
- if (match_count != 4 ) {
5715
- match_count = sscanf (source_string, " %s %s %d]" ,
5716
- pb_type_name, port_name,
5717
- end_pin_index);
5718
- *start_pin_index = *end_pin_index;
5719
- if (match_count != 3 ) {
5720
- VTR_LOG_ERROR (
5721
- " Invalid pin - %s, name should be in the format "
5722
- " \" pb_type_name\" .\" port_name\" or \" pb_type_name\" .\" port_name[end_pin_index:start_pin_index]\" . "
5723
- " The end_pin_index and start_pin_index can be the same.\n " ,
5724
- src_string);
5725
- exit (1 );
5726
- }
5727
- }
5728
- if (*end_pin_index < 0 || *start_pin_index < 0 ) {
5729
- VTR_LOG_ERROR (
5730
- " Invalid pin - %s, the pin_index in "
5731
- " [end_pin_index:start_pin_index] should not be a negative value.\n " ,
5732
- src_string);
5733
- exit (1 );
5734
- }
5735
- if (*end_pin_index < *start_pin_index) {
5736
- int temp;
5737
- temp = *end_pin_index;
5738
- *end_pin_index = *start_pin_index;
5739
- *start_pin_index = temp;
5740
- }
5741
- }
5742
- }
5690
+ // match_count = sscanf(source_string, "%s %s", pb_type_name, port_name);
5691
+ // if (match_count != 2) {
5692
+ // VTR_LOG_ERROR(
5693
+ // "Invalid pin - %s, name should be in the format "
5694
+ // "\"pb_type_name\".\"port_name\" or \"pb_type_name\".\"port_name[end_pin_index:start_pin_index]\". "
5695
+ // "The end_pin_index and start_pin_index can be the same.\n",
5696
+ // src_string);
5697
+ // exit(1);
5698
+ // }
5699
+ // } else {
5700
+ // /* Format "pb_type_name.port_name[end_pin_index:start_pin_index]" */
5701
+ // strcpy(source_string, src_string);
5702
+ // for (ichar = 0; ichar < (int)(strlen(source_string)); ichar++) {
5703
+ // //Need white space between the components when using %s with
5704
+ // //sscanf
5705
+ // if (source_string[ichar] == '.')
5706
+ // source_string[ichar] = ' ';
5707
+ // if (source_string[ichar] == '[')
5708
+ // source_string[ichar] = ' ';
5709
+ // }
5710
+
5711
+ // match_count = sscanf(source_string, "%s %s %d:%d]",
5712
+ // pb_type_name, port_name,
5713
+ // end_pin_index, start_pin_index);
5714
+ // if (match_count != 4) {
5715
+ // match_count = sscanf(source_string, "%s %s %d]",
5716
+ // pb_type_name, port_name,
5717
+ // end_pin_index);
5718
+ // *start_pin_index = *end_pin_index;
5719
+ // if (match_count != 3) {
5720
+ // VTR_LOG_ERROR(
5721
+ // "Invalid pin - %s, name should be in the format "
5722
+ // "\"pb_type_name\".\"port_name\" or \"pb_type_name\".\"port_name[end_pin_index:start_pin_index]\". "
5723
+ // "The end_pin_index and start_pin_index can be the same.\n",
5724
+ // src_string);
5725
+ // exit(1);
5726
+ // }
5727
+ // }
5728
+ // if (*end_pin_index < 0 || *start_pin_index < 0) {
5729
+ // VTR_LOG_ERROR(
5730
+ // "Invalid pin - %s, the pin_index in "
5731
+ // "[end_pin_index:start_pin_index] should not be a negative value.\n",
5732
+ // src_string);
5733
+ // exit(1);
5734
+ // }
5735
+ // if (*end_pin_index < *start_pin_index) {
5736
+ // int temp;
5737
+ // temp = *end_pin_index;
5738
+ // *end_pin_index = *start_pin_index;
5739
+ // *start_pin_index = temp;
5740
+ // }
5741
+ // }
5742
+ // }
5743
5743
5744
5744
/* Process vib layout */
5745
5745
static void ProcessVibLayout (pugi::xml_node vib_layout_tag, t_arch* arch, const pugiutil::loc_data& loc_data) {
0 commit comments