File tree 2 files changed +12
-0
lines changed 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -790,6 +790,10 @@ double NocCostHandler::get_total_congestion_bandwidth_ratio() const {
790
790
return accum_congestion_ratio;
791
791
}
792
792
793
+ double NocCostHandler::get_link_used_bandwidth (NocLinkId link_id) const {
794
+ return link_bandwidth_usages[link_id];
795
+ }
796
+
793
797
std::vector<NocLink> NocCostHandler::get_top_n_congested_links (int n) {
794
798
// get NoC links
795
799
vtr::vector<NocLinkId, NocLink> noc_links = g_vpr_ctx.noc ().noc_model .get_noc_links ();
Original file line number Diff line number Diff line change @@ -279,6 +279,11 @@ class NocCostHandler {
279
279
*/
280
280
double get_total_congestion_bandwidth_ratio () const ;
281
281
282
+ /* *
283
+ * @brief Returns the utilized bandwidth of a NoC link.
284
+ * @param link_id The Id of the NoC link whose used bandwidth is desired.
285
+ * @return The used bandwidth of the given NoC link.
286
+ */
282
287
double get_link_used_bandwidth (NocLinkId link_id) const ;
283
288
284
289
/* *
@@ -505,6 +510,9 @@ class NocCostHandler {
505
510
506
511
// /Represents the bandwidth of the data being transmitted on the link. Units in bits-per-second(bps)
507
512
vtr::vector<NocLinkId, double > link_bandwidth_usages;
513
+
514
+
515
+ friend void test_revert_noc_traffic_flow_routes ();
508
516
};
509
517
510
518
/* *
You can’t perform that action at this time.
0 commit comments