From d91eb6bdd570c7f71630846d2c96b682c04cc575 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sat, 21 Oct 2023 11:08:07 +0200 Subject: [PATCH] FPGAIntegrationTest: Use multiple modules --- tests/FPGAIntegrationTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FPGAIntegrationTest.cpp b/tests/FPGAIntegrationTest.cpp index ae5c2972..c304f7d6 100644 --- a/tests/FPGAIntegrationTest.cpp +++ b/tests/FPGAIntegrationTest.cpp @@ -44,7 +44,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_custom_frame", "[FPGA][Ful DiffractionExperiment x((DetectorGeometry(nmodules))); - std::vector test_frame(RAW_MODULE_SIZE); + std::vector test_frame(FRAME_GENERATOR_MODULES*RAW_MODULE_SIZE); std::mt19937 g1(1387); std::uniform_int_distribution dist(0, 65535); @@ -73,7 +73,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_custom_frame", "[FPGA][Ful auto imageBuf = (uint16_t *) test.GetDeviceOutput(image, m)->pixels; for (int i = 0; i < RAW_MODULE_SIZE; i++) { - REQUIRE(imageBuf[i] == test_frame[i]); + REQUIRE(imageBuf[i] == test_frame[m * RAW_MODULE_SIZE + i]); } } }