@@ -882,7 +882,7 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
882
882
i = 1 ;
883
883
}
884
884
885
- annotation->pairs .resize (i);
885
+ annotation->annotation_entries .resize (i);
886
886
annotation->line_num = loc_data.line (Parent);
887
887
/* Todo: This is slow, I should use a case lookup */
888
888
i = 0 ;
@@ -891,14 +891,12 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
891
891
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
892
892
Prop = get_attribute (Parent, " max" , loc_data, ReqOpt::OPTIONAL).as_string (nullptr );
893
893
if (Prop) {
894
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_MAX;
895
- annotation->pairs [i].second = Prop;
894
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_DELAY_MAX, Prop};
896
895
i++;
897
896
}
898
897
Prop = get_attribute (Parent, " min" , loc_data, ReqOpt::OPTIONAL).as_string (nullptr );
899
898
if (Prop) {
900
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_MIN;
901
- annotation->pairs [i].second = Prop;
899
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_DELAY_MIN, Prop};
902
900
i++;
903
901
}
904
902
Prop = get_attribute (Parent, " in_port" , loc_data).value ();
@@ -911,13 +909,13 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
911
909
annotation->type = E_ANNOT_PIN_TO_PIN_DELAY;
912
910
annotation->format = E_ANNOT_PIN_TO_PIN_MATRIX;
913
911
Prop = get_attribute (Parent, " type" , loc_data).value ();
914
- annotation->pairs [i].second = Parent.child_value ();
912
+ annotation->annotation_entries [i].second = Parent.child_value ();
915
913
916
914
if (0 == strcmp (Prop, " max" )) {
917
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_MAX;
915
+ annotation->annotation_entries [i].first = E_ANNOT_PIN_TO_PIN_DELAY_MAX;
918
916
} else {
919
917
VTR_ASSERT (0 == strcmp (Prop, " min" ));
920
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_MIN;
918
+ annotation->annotation_entries [i].first = E_ANNOT_PIN_TO_PIN_DELAY_MIN;
921
919
}
922
920
923
921
i++;
@@ -931,8 +929,7 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
931
929
annotation->type = E_ANNOT_PIN_TO_PIN_CAPACITANCE;
932
930
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
933
931
Prop = get_attribute (Parent, " C" , loc_data).value ();
934
- annotation->pairs [i].second = Prop;
935
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_CAPACITANCE_C;
932
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_CAPACITANCE_C, Prop};
936
933
i++;
937
934
938
935
Prop = get_attribute (Parent, " in_port" , loc_data, ReqOpt::OPTIONAL).as_string (nullptr );
@@ -945,8 +942,7 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
945
942
} else if (0 == strcmp (Parent.name (), " C_matrix" )) {
946
943
annotation->type = E_ANNOT_PIN_TO_PIN_CAPACITANCE;
947
944
annotation->format = E_ANNOT_PIN_TO_PIN_MATRIX;
948
- annotation->pairs [i].second = Parent.child_value ();
949
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_CAPACITANCE_C;
945
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_CAPACITANCE_C, Parent.child_value ()};
950
946
i++;
951
947
952
948
Prop = get_attribute (Parent, " in_port" , loc_data, ReqOpt::OPTIONAL).as_string (nullptr );
@@ -960,9 +956,7 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
960
956
annotation->type = E_ANNOT_PIN_TO_PIN_DELAY;
961
957
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
962
958
Prop = get_attribute (Parent, " value" , loc_data).value ();
963
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_TSETUP;
964
- annotation->pairs [i].second = Prop;
965
-
959
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_DELAY_TSETUP, Prop};
966
960
i++;
967
961
Prop = get_attribute (Parent, " port" , loc_data).value ();
968
962
annotation->input_pins = vtr::strdup (Prop);
@@ -979,15 +973,13 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
979
973
980
974
bool found_min_max_attrib = false ;
981
975
if (Prop) {
982
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_CLOCK_TO_Q_MAX;
983
- annotation->pairs [i].second = Prop;
976
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_DELAY_CLOCK_TO_Q_MAX, Prop};
984
977
i++;
985
978
found_min_max_attrib = true ;
986
979
}
987
980
Prop = get_attribute (Parent, " min" , loc_data, ReqOpt::OPTIONAL).as_string (nullptr );
988
981
if (Prop) {
989
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_CLOCK_TO_Q_MIN;
990
- annotation->pairs [i].second = Prop;
982
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_DELAY_CLOCK_TO_Q_MIN, Prop};
991
983
i++;
992
984
found_min_max_attrib = true ;
993
985
}
@@ -1010,8 +1002,7 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
1010
1002
annotation->type = E_ANNOT_PIN_TO_PIN_DELAY;
1011
1003
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
1012
1004
Prop = get_attribute (Parent, " value" , loc_data).value ();
1013
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_DELAY_THOLD;
1014
- annotation->pairs [i].second = Prop;
1005
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_DELAY_THOLD, Prop};
1015
1006
i++;
1016
1007
1017
1008
Prop = get_attribute (Parent, " port" , loc_data).value ();
@@ -1026,8 +1017,7 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
1026
1017
annotation->type = E_ANNOT_PIN_TO_PIN_PACK_PATTERN;
1027
1018
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
1028
1019
Prop = get_attribute (Parent, " name" , loc_data).value ();
1029
- annotation->pairs [i].first = E_ANNOT_PIN_TO_PIN_PACK_PATTERN_NAME;
1030
- annotation->pairs [i].second = Prop;
1020
+ annotation->annotation_entries [i] = {E_ANNOT_PIN_TO_PIN_PACK_PATTERN_NAME, Prop};
1031
1021
i++;
1032
1022
1033
1023
Prop = get_attribute (Parent, " in_port" , loc_data).value ();
@@ -1041,7 +1031,7 @@ static void ProcessPinToPinAnnotations(pugi::xml_node Parent,
1041
1031
" Unknown port type %s in %s in %s" , Parent.name (),
1042
1032
Parent.parent ().name (), Parent.parent ().parent ().name ());
1043
1033
}
1044
- VTR_ASSERT (i == static_cast <int >(annotation->pairs .size ()));
1034
+ VTR_ASSERT (i == static_cast <int >(annotation->annotation_entries .size ()));
1045
1035
}
1046
1036
1047
1037
static void ProcessPb_TypePowerPinToggle (pugi::xml_node parent, t_pb_type* pb_type, const pugiutil::loc_data& loc_data) {
0 commit comments