Skip to content

Commit 3b85d48

Browse files
remove the check for duplicate port names across subtiles
1 parent f821768 commit 3b85d48

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ static void ProcessTileProps(pugi::xml_node Node,
143143

144144
static t_pin_counts ProcessSubTilePorts(pugi::xml_node Parent,
145145
t_sub_tile* SubTile,
146-
std::unordered_map<std::string, t_physical_tile_port>& tile_port_names,
147146
const pugiutil::loc_data& loc_data);
148147

149148
static void ProcessTilePort(pugi::xml_node Node,
@@ -3011,7 +3010,6 @@ static void ProcessTileProps(pugi::xml_node Node,
30113010

30123011
static t_pin_counts ProcessSubTilePorts(pugi::xml_node Parent,
30133012
t_sub_tile* SubTile,
3014-
std::unordered_map<std::string, t_physical_tile_port>& tile_port_names,
30153013
const pugiutil::loc_data& loc_data) {
30163014
pugi::xml_node Cur;
30173015

@@ -3045,17 +3043,6 @@ static t_pin_counts ProcessSubTilePorts(pugi::xml_node Parent,
30453043
SubTile->name, port.name);
30463044
}
30473045

3048-
//Check port name duplicates
3049-
auto [added_entry, tile_success] = tile_port_names.insert({port.name, port});
3050-
if (!tile_success) {
3051-
if (added_entry->second.num_pins != port.num_pins || added_entry->second.equivalent != port.equivalent) {
3052-
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Cur),
3053-
"Another port found with the same name in other sub tiles "
3054-
"that did not match the current port settings. '%s': port '%s'\n",
3055-
SubTile->name, port.name);
3056-
}
3057-
}
3058-
30593046
//Push port
30603047
SubTile->ports.push_back(port);
30613048

@@ -3540,7 +3527,7 @@ static void ProcessSubTiles(pugi::xml_node Node,
35403527
PhysicalTileType->capacity += capacity;
35413528

35423529
/* Process sub tile port definitions */
3543-
const auto pin_counts = ProcessSubTilePorts(CurSubTile, &SubTile, tile_port_names, loc_data);
3530+
const auto pin_counts = ProcessSubTilePorts(CurSubTile, &SubTile, loc_data);
35443531

35453532
/* Map Sub Tile physical pins with the Physical Tile Type physical pins.
35463533
* This takes into account the capacity of each sub tiles to add the correct offset.

libs/libarchfpga/src/read_xml_arch_file_noc_tag.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ static void process_mesh_topology(pugi::xml_node mesh_topology_tag,
1515

1616
static void process_router(pugi::xml_node router_tag,
1717
const pugiutil::loc_data& loc_data,
18-
t_noc_inf* noc_ref,
19-
std::map<int, std::pair<int, int>>& routers_info_in_arch);
18+
t_noc_inf* noc_ref,
19+
std::map<int, std::pair<int, int>>& routers_info_in_arch);
2020

2121
static void generate_noc_mesh(pugi::xml_node mesh_topology_tag,
2222
const pugiutil::loc_data& loc_data,

0 commit comments

Comments
 (0)