Skip to content

Commit cc5090b

Browse files
committed
[core] add error messages
1 parent 9cb1d96 commit cc5090b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

vpr/src/route/rr_graph_generation/tileable_rr_graph/tileable_rr_graph_gsb.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,18 +1748,14 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17481748

17491749
/* Get the pin index in the rr_graph */
17501750
t_physical_tile_loc from_tile_loc(from_grid_coordinate.x(), from_grid_coordinate.y(), layer);
1751-
//int from_grid_width_ofs = grids.get_width_offset(from_tile_loc);
1752-
//int from_grid_height_ofs = grids.get_height_offset(from_tile_loc);
17531751
t_physical_tile_loc to_tile_loc(to_grid_coordinate.x(), to_grid_coordinate.y(), layer);
1754-
//int to_grid_width_ofs = grids.get_width_offset(to_tile_loc);
1755-
//int to_grid_height_ofs = grids.get_height_offset(to_tile_loc);
17561752

17571753
/* Find the side of grid pins, the pin location should be unique!
17581754
* Pin location is required by searching a node in rr_graph
17591755
*/
17601756
std::vector<e_side> opin_grid_side = find_grid_pin_sides(grids, layer, from_grid_coordinate.x() + grid_type->pin_width_offset[opin], from_grid_coordinate.y() + grid_type->pin_height_offset[opin], opin);
17611757
if (1 != opin_grid_side.size()) {
1762-
VTR_ASSERT(1 == opin_grid_side.size());
1758+
VPR_FATAL_ERROR(VPR_ERROR_ARCH, "[Arch LINE %d] From pin (index=%d) of direct connection '%s' does not exist on any side of the programmable block '%s'.\n", directs[i].line, opin, directs[i].from_pin.c_str());
17631759
}
17641760

17651761
/* directs[i].sub_tile_offset is added to from_capacity(z) to get the target_capacity */
@@ -1779,7 +1775,7 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17791775
int ipin = get_physical_pin_from_capacity_location(to_grid_type, relative_ipin, to_subtile_cap);
17801776
std::vector<e_side> ipin_grid_side = find_grid_pin_sides(grids, layer, to_grid_coordinate.x() + to_grid_type->pin_width_offset[ipin], to_grid_coordinate.y() + to_grid_type->pin_height_offset[ipin], ipin);
17811777
if (1 != ipin_grid_side.size()) {
1782-
VTR_ASSERT(1 == ipin_grid_side.size());
1778+
VTR_FATAL_ERROR(VPR_ERROR_ARCH, "[Arch LINE %d] To pin (index=%d) of direct connection '%s' does not exist on any side of the programmable block '%s'.\n", directs[i].line, relative_ipin, directs[i].to_pin.c_str());
17831779
}
17841780

17851781
RRNodeId opin_node_id = rr_graph.node_lookup().find_node(layer,

0 commit comments

Comments
 (0)