Skip to content

Commit b63fa7b

Browse files
committed
fixed unit test to reflect noc placement cost calculation updates
1 parent a1fd1a3 commit b63fa7b

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

vpr/test/test_noc_place_utils.cpp

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,6 @@ TEST_CASE("test_update_noc_normalization_factors", "[noc_place_utils]") {
10601060
costs.noc_aggregate_bandwidth_cost = 0.;
10611061
costs.noc_latency_cost = 1.;
10621062

1063-
placer_opts.place_algorithm = e_place_algorithm::SLACK_TIMING_PLACE;
1064-
10651063
// run the test function
10661064
update_noc_normalization_factors(costs, placer_opts);
10671065

@@ -1073,8 +1071,6 @@ TEST_CASE("test_update_noc_normalization_factors", "[noc_place_utils]") {
10731071
costs.noc_aggregate_bandwidth_cost = 1.;
10741072
costs.noc_latency_cost = 0.;
10751073

1076-
placer_opts.place_algorithm = e_place_algorithm::SLACK_TIMING_PLACE;
1077-
10781074
// run the test function
10791075
update_noc_normalization_factors(costs, placer_opts);
10801076

@@ -1086,8 +1082,6 @@ TEST_CASE("test_update_noc_normalization_factors", "[noc_place_utils]") {
10861082
costs.noc_aggregate_bandwidth_cost = 1.e9;
10871083
costs.noc_latency_cost = 0.;
10881084

1089-
placer_opts.place_algorithm = e_place_algorithm::SLACK_TIMING_PLACE;
1090-
10911085
// run the test function
10921086
update_noc_normalization_factors(costs, placer_opts);
10931087

@@ -1099,8 +1093,6 @@ TEST_CASE("test_update_noc_normalization_factors", "[noc_place_utils]") {
10991093
costs.noc_aggregate_bandwidth_cost = 1.;
11001094
costs.noc_latency_cost = 50.e-12;
11011095

1102-
placer_opts.place_algorithm = e_place_algorithm::SLACK_TIMING_PLACE;
1103-
11041096
// run the test function
11051097
update_noc_normalization_factors(costs, placer_opts);
11061098

@@ -1112,52 +1104,13 @@ TEST_CASE("test_update_noc_normalization_factors", "[noc_place_utils]") {
11121104
costs.noc_aggregate_bandwidth_cost = 1.;
11131105
costs.noc_latency_cost = 999.e-15;
11141106

1115-
placer_opts.place_algorithm = e_place_algorithm::SLACK_TIMING_PLACE;
1116-
11171107
// run the test function
11181108
update_noc_normalization_factors(costs, placer_opts);
11191109

11201110
// verify the latency normalized cost
11211111
// this should not be trimmed
11221112
REQUIRE(costs.noc_latency_cost_norm == 1.e12);
11231113
}
1124-
SECTION("Test case where the placement algorithm is timing based") {
1125-
costs.noc_aggregate_bandwidth_cost = 1.;
1126-
costs.noc_latency_cost = 1.;
1127-
1128-
costs.cost = 10.;
1129-
1130-
placer_opts.place_algorithm = e_place_algorithm::SLACK_TIMING_PLACE;
1131-
1132-
// run the test function
1133-
update_noc_normalization_factors(costs, placer_opts);
1134-
1135-
// cost should not be updated
1136-
REQUIRE(costs.cost == 10.);
1137-
1138-
// try the other timing algorithm
1139-
placer_opts.place_algorithm = e_place_algorithm::CRITICALITY_TIMING_PLACE;
1140-
1141-
// run the test function
1142-
update_noc_normalization_factors(costs, placer_opts);
1143-
1144-
// cost should not be updated
1145-
REQUIRE(costs.cost == 10.);
1146-
}
1147-
SECTION("Test case where the placement algorithm is not timing based") {
1148-
costs.noc_aggregate_bandwidth_cost = 1.;
1149-
costs.noc_latency_cost = 1.;
1150-
1151-
costs.cost = 10.;
1152-
1153-
placer_opts.place_algorithm = e_place_algorithm::BOUNDING_BOX_PLACE;
1154-
1155-
// run the test function
1156-
update_noc_normalization_factors(costs, placer_opts);
1157-
1158-
// cost should be updated
1159-
REQUIRE(costs.cost == 1.);
1160-
}
11611114
}
11621115
TEST_CASE("test_revert_noc_traffic_flow_routes", "[noc_place_utils]") {
11631116
// setup random number generation

0 commit comments

Comments
 (0)