Skip to content

Commit d92c9b5

Browse files
committed
run make format
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 08a013c commit d92c9b5

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,6 @@ static void LoadPinLoc(pugi::xml_node Locations,
795795
for (int height = 0; height < type->height; ++height) {
796796
for (e_side side : {TOP, RIGHT, BOTTOM, LEFT}) {
797797
for (int pin = 0; pin < type->num_pin_loc_assignments[width][height][side]; ++pin) {
798-
799798
auto pin_range = ProcessCustomPinLoc(Locations,
800799
type,
801800
type->pin_loc_assignments[width][height][side][pin],
@@ -840,23 +839,23 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
840839

841840
if (token.type != TOKEN_STRING || 0 != strcmp(token.data, type->name)) {
842841
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
843-
"Wrong physical type name of the port: %s\n", pin_loc_string);
842+
"Wrong physical type name of the port: %s\n", pin_loc_string);
844843
}
845844

846845
token_index++;
847846
token = tokens[token_index];
848847

849848
if (token.type != TOKEN_DOT) {
850849
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
851-
"No dot is present to separate type name and port name: %s\n", pin_loc_string);
850+
"No dot is present to separate type name and port name: %s\n", pin_loc_string);
852851
}
853852

854853
token_index++;
855854
token = tokens[token_index];
856855

857856
if (token.type != TOKEN_STRING) {
858857
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
859-
"No port name is present: %s\n", pin_loc_string);
858+
"No port name is present: %s\n", pin_loc_string);
860859
}
861860

862861
auto port = get_port_by_name(type, token.data);
@@ -876,15 +875,15 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
876875

877876
if (token.type != TOKEN_OPEN_SQUARE_BRACKET) {
878877
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
879-
"No open square bracket present: %s\n", pin_loc_string);
878+
"No open square bracket present: %s\n", pin_loc_string);
880879
}
881880

882881
token_index++;
883882
token = tokens[token_index];
884883

885884
if (token.type != TOKEN_INT) {
886885
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
887-
"No integer to indicate least significant pin index: %s\n", pin_loc_string);
886+
"No integer to indicate least significant pin index: %s\n", pin_loc_string);
888887
}
889888

890889
int first_pin = vtr::atoi(token.data);
@@ -896,14 +895,14 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
896895
if (token.type != TOKEN_COLON) {
897896
if (token.type != TOKEN_CLOSE_SQUARE_BRACKET) {
898897
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
899-
"No closing bracket: %s\n", pin_loc_string);
898+
"No closing bracket: %s\n", pin_loc_string);
900899
}
901900

902901
token_index++;
903902

904903
if (token_index != num_tokens) {
905904
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
906-
"pin location should be completed, but more tokens are present: %s\n", pin_loc_string);
905+
"pin location should be completed, but more tokens are present: %s\n", pin_loc_string);
907906
}
908907

909908
return std::make_pair(abs_first_pin_idx + first_pin, abs_first_pin_idx + first_pin + 1);
@@ -914,7 +913,7 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
914913

915914
if (token.type != TOKEN_INT) {
916915
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
917-
"No integer to indicate most significant pin index: %s\n", pin_loc_string);
916+
"No integer to indicate most significant pin index: %s\n", pin_loc_string);
918917
}
919918

920919
int last_pin = vtr::atoi(token.data);
@@ -924,14 +923,14 @@ static std::pair<int, int> ProcessCustomPinLoc(pugi::xml_node Locations,
924923

925924
if (token.type != TOKEN_CLOSE_SQUARE_BRACKET) {
926925
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
927-
"No closed square bracket: %s\n", pin_loc_string);
926+
"No closed square bracket: %s\n", pin_loc_string);
928927
}
929928

930929
token_index++;
931930

932931
if (token_index != num_tokens) {
933932
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Locations),
934-
"pin location should be completed, but more tokens are present: %s\n", pin_loc_string);
933+
"pin location should be completed, but more tokens are present: %s\n", pin_loc_string);
935934
}
936935

937936
if (first_pin > last_pin) {
@@ -2977,7 +2976,6 @@ static void ProcessTiles(pugi::xml_node Node,
29772976
SetupPinLocationsAndPinClasses(Cur, &PhysicalTileType, loc_data);
29782977
LoadPinLoc(Cur, &PhysicalTileType, loc_data);
29792978

2980-
29812979
//Warn that gridlocations is no longer supported
29822980
//TODO: eventually remove
29832981
try {

0 commit comments

Comments
 (0)