Skip to content

Commit 66f4e72

Browse files
committed
[vpr][route] rename has_choking_spot to has_choke_point
1 parent 176b4a4 commit 66f4e72

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

vpr/src/base/SetupVPR.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void SetupVPR(const t_options* options,
318318
vtr::ScopedStartFinishTimer timer("Allocate intra-cluster resources");
319319
// The following two functions should be called when the data structured related to t_pb_graph_node, t_pb_type,
320320
// and t_pb_graph_edge are initialized
321-
alloc_and_load_intra_cluster_resources(routerOpts->has_choking_spot);
321+
alloc_and_load_intra_cluster_resources(routerOpts->has_choke_point);
322322
add_intra_tile_switches();
323323
}
324324

@@ -510,7 +510,7 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
510510
RouterOpts->max_logged_overused_rr_nodes = Options.max_logged_overused_rr_nodes;
511511
RouterOpts->generate_rr_node_overuse_report = Options.generate_rr_node_overuse_report;
512512
RouterOpts->flat_routing = Options.flat_routing;
513-
RouterOpts->has_choking_spot = Options.router_opt_choke_points;
513+
RouterOpts->has_choke_point = Options.router_opt_choke_points;
514514
RouterOpts->custom_3d_sb_fanin_fanout = Options.custom_3d_sb_fanin_fanout;
515515
RouterOpts->with_timing_analysis = Options.timing_analysis;
516516
}

vpr/src/base/ShowSetup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static void ShowRouterOpts(const t_router_opts& RouterOpts) {
256256
}
257257

258258
VTR_LOG("RouterOpts.has_choking_spot: ");
259-
if (RouterOpts.has_choking_spot) {
259+
if (RouterOpts.has_choke_point) {
260260
VTR_LOG("true\n");
261261
} else {
262262
VTR_LOG("false\n");

vpr/src/base/place_and_route.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ int binary_search_place_and_route(const Netlist<>& placement_net_list,
398398

399399
init_route_structs(router_net_list,
400400
router_opts.bb_factor,
401-
router_opts.has_choking_spot,
401+
router_opts.has_choke_point,
402402
is_flat);
403403

404404
restore_routing(best_routing,

vpr/src/base/read_route.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ bool read_route(const char* route_file, const t_router_opts& router_opts, bool v
109109
const Netlist<>& router_net_list = (flat_router) ? (const Netlist<>&)g_vpr_ctx.atom().nlist : (const Netlist<>&)g_vpr_ctx.clustering().clb_nlist;
110110
init_route_structs(router_net_list,
111111
router_opts.bb_factor,
112-
router_opts.has_choking_spot,
112+
router_opts.has_choke_point,
113113
flat_router);
114114

115115
/*Check dimensions*/

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ struct t_router_opts {
13391339
bool generate_rr_node_overuse_report;
13401340

13411341
bool flat_routing;
1342-
bool has_choking_spot;
1342+
bool has_choke_point;
13431343

13441344
int custom_3d_sb_fanin_fanout = 1;
13451345

vpr/src/route/route.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ bool route(const Netlist<>& net_list,
7171

7272
init_route_structs(net_list,
7373
router_opts.bb_factor,
74-
router_opts.has_choking_spot,
74+
router_opts.has_choke_point,
7575
is_flat);
7676

7777
IntraLbPbPinLookup intra_lb_pb_pin_lookup(device_ctx.logical_block_types);
@@ -80,7 +80,7 @@ bool route(const Netlist<>& net_list,
8080
auto choking_spots = set_nets_choking_spots(net_list,
8181
route_ctx.net_terminal_groups,
8282
route_ctx.net_terminal_group_num,
83-
router_opts.has_choking_spot,
83+
router_opts.has_choke_point,
8484
is_flat);
8585

8686
//Initially, the router runs normally trying to reduce congestion while

vpr/src/route/route_net.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ inline NetResultFlags route_sink(ConnectionRouter& router,
436436
bool sink_critical = (cost_params.criticality > HIGH_FANOUT_CRITICALITY_THRESHOLD);
437437
bool net_is_clock = route_ctx.is_clock_net[net_id] != 0;
438438

439-
bool has_choking_spot = ((int)choking_spots[target_pin].size() != 0) && router_opts.has_choking_spot;
439+
bool has_choking_spot = ((int)choking_spots[target_pin].size() != 0) && router_opts.has_choke_point;
440440
ConnectionParameters conn_params(net_id, target_pin, has_choking_spot, choking_spots[target_pin]);
441441

442442
//We normally route high fanout nets by only adding spatially close-by routing to the heap (reduces run-time).

0 commit comments

Comments
 (0)