Skip to content

Commit 53f3b3b

Browse files
committed
[vpr][route] return from set_nets_choking_spots if flat router is not selected
1 parent 05a2cef commit 53f3b3b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

vpr/src/route/route_utils.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,11 @@ vtr::vector<ParentNetId, std::vector<std::unordered_map<RRNodeId, int>>> set_net
398398
choking_spots[net_id].resize(net_list.net_pins(net_id).size());
399399
}
400400

401-
// Return if the architecture doesn't have any potential choke points
402-
if (!router_opt_choke_points) {
401+
// Return if the architecture doesn't have any potential choke points or flat router is not enabled
402+
if (!router_opt_choke_points || !is_flat) {
403403
return choking_spots;
404404
}
405405

406-
// We only identify choke points if flat_routing is enabled.
407-
VTR_ASSERT(is_flat);
408-
409406
const auto& device_ctx = g_vpr_ctx.device();
410407
const auto& rr_graph = device_ctx.rr_graph;
411408
const auto& route_ctx = g_vpr_ctx.routing();

0 commit comments

Comments
 (0)