v1.0.0-rc.91

This commit is contained in:
2025-10-20 20:43:44 +02:00
parent 6524365ffa
commit 061152279c
260 changed files with 4854 additions and 1061 deletions
+6 -2
View File
@@ -859,7 +859,7 @@ TEST_CASE("HLS_C_Simulation_check_threshold_full_range", "[FPGA][Full]") {
const uint16_t nmodules = 1;
for (int threshold: {1, 2,4,8}) {
for (int threshold: {1, 2, 4, 8}) {
DiffractionExperiment x(DetJF(nmodules));
x.Mode(DetectorMode::Raw).PixelSigned(true).BitDepthImage(16);
@@ -2029,7 +2029,9 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_pixel_threshold_summation"
DiffractionExperiment x(DetJF(nmodules));
x.Mode(DetectorMode::Raw);
x.UseInternalPacketGenerator(true).ImagesPerTrigger(1).PedestalG0Frames(0).Summation(4).PixelValueLowThreshold(4).AutoSummation(true);
x.UseInternalPacketGenerator(true).ImagesPerTrigger(1).PedestalG0Frames(0).Summation(4)
.PixelValueLowThreshold(4).AutoSummation(true).PixelSigned(true)
.PixelValueHighThreshold(500);
HLSSimulatedDevice test(0, 64);
@@ -2039,6 +2041,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_pixel_threshold_summation"
frame [1024+3] = 4;
frame [1024+4] = 5;
frame [1024+5] = 100;
frame [1024+6] = 501;
for (int m = 0; m < x.GetModulesNum(); m++)
test.SetInternalGeneratorFrame(frame.data(), m);
@@ -2054,6 +2057,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_pixel_threshold_summation"
REQUIRE(imageBuf[1024+3] == 4*4);
REQUIRE(imageBuf[1024+4] == 4*5);
REQUIRE(imageBuf[1024+5] == 4*100);
REQUIRE(imageBuf[1024+6] == INT16_MAX);
CHECK(test.GetDeviceOutput(0, 0)->module_statistics.pixel_sum == 4 * (4+5+100));
CHECK(test.GetDeviceOutput(0,0)->module_statistics.max_value == 4*100);