Modifications in preparation to MAX IV experiment

This commit is contained in:
2024-01-27 21:23:56 +01:00
parent 2446643489
commit f5f86d9ab6
250 changed files with 9363 additions and 3022 deletions

View File

@@ -10,8 +10,9 @@ TEST_CASE("FPGA_spot_finder_core","[FPGA][SpotFinder]") {
STREAM_768 output;
hls::stream<ap_axiu<32,1,1,1>> strong_pixel;
ap_int<16> in_photon_count_threshold = 8;
ap_uint<8> in_strong_pixel_threshold = 16;
ap_int<32> in_photon_count_threshold = 8;
float_uint32 in_strong_pixel_threshold;
in_strong_pixel_threshold.f = 4.0;
std::vector<int32_t> input_frame(RAW_MODULE_SIZE), output_frame(RAW_MODULE_SIZE);
for (int i = 0; i < RAW_MODULE_SIZE; i++) {
@@ -32,11 +33,12 @@ TEST_CASE("FPGA_spot_finder_core","[FPGA][SpotFinder]") {
input << packet_768_t{.user = 1};
ap_uint<32> tmp_strong_pixel_threshold = in_strong_pixel_threshold.u;
spot_finder(input,
output,
strong_pixel,
in_photon_count_threshold,
in_strong_pixel_threshold);
tmp_strong_pixel_threshold);
REQUIRE(input.size() == 0);
REQUIRE(output.size() == RAW_MODULE_SIZE * sizeof(uint16_t) / 64 + 2);