FPGA: Name spot finder signals in consistent manner

This commit is contained in:
2023-10-19 20:52:09 +02:00
parent 67b9e08a5c
commit f04f7a274b
5 changed files with 149 additions and 141 deletions
+2 -2
View File
@@ -1160,7 +1160,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_spot_finder_count_threshol
test.SetInternalGeneratorFrame(frame);
test.SetSpotFinderParameters(9, 0.0);
test.SetSpotFinderParameters(10, 0.0);
REQUIRE_NOTHROW(test.StartAction(x));
REQUIRE_NOTHROW(test.WaitForActionComplete());
@@ -1177,7 +1177,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_spot_finder_count_threshol
auto spot_finder_result = test.GetDeviceOutput(0, 0)->spot_finding_result;
REQUIRE (spot_finder_result.strong_pixel_count == 3);
REQUIRE (spot_finder_result.snr_threshold == 0);
REQUIRE (spot_finder_result.count_threshold == 9);
REQUIRE (spot_finder_result.count_threshold == 10);
REQUIRE (spot_finder_result.strong_pixel[0] == (1<<0));
REQUIRE (spot_finder_result.strong_pixel[(123*1024 + 578) / 8] == (1<<2)); // 578 % 8 == 2
REQUIRE (spot_finder_result.strong_pixel[(121*1024 + 800) / 8] == (1<<0)); // 800 % 8 == 0