Skip to content

Commit 502be5a

Browse files
committed
archfpga: Improve error reporting for tile/block pin mismatches
We now include the relevant block/tile names to aid debugging.
1 parent 5007035 commit 502be5a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4711,7 +4711,8 @@ static void check_port_equivalence(t_physical_tile_type& physical_tile, t_logica
47114711

47124712
if (pb_type->num_ports != (int)physical_tile.ports.size()) {
47134713
archfpga_throw(__FILE__, __LINE__,
4714-
"Logical and Physical types have a different number of ports.\n");
4714+
"Logical block (%s) and Physical tile (%s) have a different number of ports.\n",
4715+
logical_block.name, physical_tile.name);
47154716
}
47164717

47174718
for (auto& tile_port : physical_tile.ports) {
@@ -4722,7 +4723,8 @@ static void check_port_equivalence(t_physical_tile_type& physical_tile, t_logica
47224723
|| tile_port.num_pins != block_port.num_pins
47234724
|| tile_port.equivalent != block_port.equivalent) {
47244725
archfpga_throw(__FILE__, __LINE__,
4725-
"Logical and Physical types do not have equivalent port specifications.\n");
4726+
"Logical block (%s) and Physical tile (%s) do not have equivalent port specifications.\n",
4727+
logical_block.name, physical_tile.name);
47264728
}
47274729
}
47284730
}

0 commit comments

Comments
 (0)