Skip to content

Commit 90d4938

Browse files
specify the domain of latency overrun vars based on the noc dimensions
1 parent 09b5802 commit 90d4938

File tree

6 files changed

+99
-427
lines changed

6 files changed

+99
-427
lines changed

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ struct t_noc_opts {
15041504
double noc_congestion_weighting; ///<controls the significance of the link congestions relative to the other NoC placement costs range:[0-inf)
15051505
double noc_centroid_weight; ///<controls how much the centroid location is adjusted towards NoC routers in NoC-biased centroid move:[0, 1]
15061506
int noc_swap_percentage; ///<controls the number of NoC router block swap attempts relative to the total number of swaps attempted by the placer range:[0-100]
1507-
int noc_sat_routing_bandwidth_resolution; ///<the resolution by which traffic flow and link bandwidths are converted to integers in SAT routing algorithm
1507+
int noc_sat_routing_bandwidth_resolution; ///<if this number is N, the SAT formulation models link utilization in increments of 1/N
15081508
int noc_sat_routing_latency_overrun_weighting; ///<controls the importance of reducing traffic flow latency overrun in SAT routing [0-inf)
15091509
int noc_sat_routing_congestion_weighting; ///<controls the importance of reducing the number of congested NoC links in SAT routing [0-inf)
15101510
int noc_sat_routing_num_workers; ///<the number of parallel worker threads that the SAT solver can use to explore the solution space

vpr/src/noc/odd_even_routing.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ const std::vector<TurnModelRouting::Direction>& OddEvenRouting::get_legal_direct
3434
const auto curr_router_pos = curr_router.get_router_physical_location();
3535
const auto dst_router_pos = dst_router.get_router_physical_location();
3636

37-
// get the compressed location for source, current, and destination NoC routers
37+
/* get the compressed location for source, current, and destination NoC routers
38+
* Odd-even routing algorithm restricts turn based on whether the current NoC router
39+
* in an odd or even NoC column. This information can be extracted from the NoC compressed grid.
40+
*/
3841
auto compressed_src_loc = get_compressed_loc_approx(compressed_noc_grid, t_pl_loc{src_router_pos, 0}, num_layers)[src_router_pos.layer_num];
3942
auto compressed_curr_loc = get_compressed_loc_approx(compressed_noc_grid, t_pl_loc{curr_router_pos, 0}, num_layers)[curr_router_pos.layer_num];
4043
auto compressed_dst_loc = get_compressed_loc_approx(compressed_noc_grid, t_pl_loc{dst_router_pos, 0}, num_layers)[dst_router_pos.layer_num];

0 commit comments

Comments
 (0)