Skip to content

Commit 1bee484

Browse files
committed
Modifying NoC latency cost computation to represent actual latency
1 parent 813e42b commit 1bee484

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vtr_flow/scripts/noc/noc_benchmark_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ def process_vpr_runs(run_args, num_of_seeds, route):
551551
vpr_average_place_data[POST_ROUTED_FREQ] = 0.0
552552
vpr_average_place_data[ROUTE_TIME] = 0.0
553553

554+
# weight used for latency component of cost
555+
latency_weight = float(run_args[0][1][12])
556+
554557
for single_run_args in run_args:
555558

556559
# get the placement metrics for the current run
@@ -603,6 +606,12 @@ def process_vpr_runs(run_args, num_of_seeds, route):
603606
place_param: value / num_of_seeds for place_param, value in vpr_average_place_data.items()
604607
}
605608

609+
# need to divide the NoC latency cost by the weighting to conver it to
610+
# physical latency
611+
vpr_average_place_data[NOC_LATENCY_COST] = (
612+
vpr_average_place_data[NOC_LATENCY_COST] / latency_weight
613+
)
614+
606615
return vpr_average_place_data
607616

608617

0 commit comments

Comments
 (0)