FPGAIntegrationTest: Add test for spot finder based on count limit

This commit is contained in:
2023-10-19 19:48:40 +02:00
parent 90344eb251
commit 67b9e08a5c
2 changed files with 44 additions and 1 deletions

View File

@@ -22,7 +22,6 @@ TEST_CASE("FPGA_spot_finder_core","[FPGA][SpotFinder]") {
input_frame[i] = i % RAW_MODULE_COLS;
}
auto input_frame_512 = (ap_uint<512> *) input_frame.data();
auto output_frame_512 = (ap_uint<512> *) output_frame.data();
input << packet_512_t{.user = 0};
for (int i = 0; i < RAW_MODULE_SIZE * sizeof(uint16_t) / 64; i++)
@@ -39,4 +38,6 @@ TEST_CASE("FPGA_spot_finder_core","[FPGA][SpotFinder]") {
REQUIRE(input.size() == 0);
REQUIRE(output.size() == RAW_MODULE_SIZE * sizeof(uint16_t) / 64 + 2);
REQUIRE(strong_pixel.size() == RAW_MODULE_SIZE * sizeof(uint16_t) / 64 + 16 + 1);
}