@@ -790,7 +790,6 @@ static void LoadPinLoc(pugi::xml_node Locations,
790
790
791
791
} else {
792
792
VTR_ASSERT (type->pin_location_distribution == E_CUSTOM_PIN_DISTR);
793
- int count = 0 ;
794
793
for (int width = 0 ; width < type->width ; ++width) {
795
794
for (int height = 0 ; height < type->height ; ++height) {
796
795
for (e_side side : {TOP, RIGHT, BOTTOM, LEFT}) {
@@ -807,7 +806,6 @@ static void LoadPinLoc(pugi::xml_node Locations,
807
806
type->pin_width_offset [pin_num + capacity * type->num_pins / type->capacity ] += width;
808
807
type->pin_height_offset [pin_num + capacity * type->num_pins / type->capacity ] += height;
809
808
physical_pin_counts[pin_num + capacity * type->num_pins / type->capacity ] += 1 ;
810
- VTR_ASSERT (count < type->num_pins );
811
809
}
812
810
}
813
811
}
@@ -868,6 +866,7 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
868
866
869
867
// All the pins of the port are taken or the port has a single pin
870
868
if (token_index == num_tokens) {
869
+ freeTokens (tokens, num_tokens);
871
870
return std::make_pair (abs_first_pin_idx, abs_first_pin_idx + port->num_pins );
872
871
}
873
872
@@ -905,6 +904,7 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
905
904
" pin location should be completed, but more tokens are present: %s\n " , pin_loc_string);
906
905
}
907
906
907
+ freeTokens (tokens, num_tokens);
908
908
return std::make_pair (abs_first_pin_idx + first_pin, abs_first_pin_idx + first_pin + 1 );
909
909
}
910
910
@@ -937,6 +937,7 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
937
937
std::swap (first_pin, last_pin);
938
938
}
939
939
940
+ freeTokens (tokens, num_tokens);
940
941
return std::make_pair (abs_first_pin_idx + first_pin, abs_first_pin_idx + last_pin + 1 );
941
942
}
942
943
0 commit comments