v.1.0.0-rc.32

This commit is contained in:
2025-03-24 12:16:33 +01:00
parent 19be3575f0
commit a30707964d
176 changed files with 1360 additions and 710 deletions

View File

@@ -10,8 +10,6 @@ TEST_CASE("FPGA_spot_finder_core","[FPGA][SpotFinder]") {
STREAM_768 input;
STREAM_768 output;
hls::stream<ap_axiu<32,1,1,1>> strong_pixel;
hls::stream<ap_axiu<32,1,1,1>> mask_in;
hls::stream<ap_axiu<32,1,1,1>> mask_out;
ap_int<32> in_photon_count_threshold = 8;
float_uint32 in_strong_pixel_threshold;
@@ -31,19 +29,14 @@ TEST_CASE("FPGA_spot_finder_core","[FPGA][SpotFinder]") {
for (int j = 0; j < 32; j++)
tmp[j] = input_frame[i * 32 + j];
input << packet_768_t{.data = pack32(tmp), .user = 0};
mask_in << ap_axiu<32,1,1,1>{.data = UINT32_MAX, .user = 0};
input << packet_768_t{.data = pack32(tmp), .keep = UINT32_MAX, .user = 0};
}
mask_in << ap_axiu<32,1,1,1>{.data = 0, .user =1};
input << packet_768_t{.user = 1};
ap_uint<32> tmp_strong_pixel_threshold = in_strong_pixel_threshold.u;
spot_finder(input,
mask_in,
output,
mask_out,
strong_pixel,
in_photon_count_threshold,
tmp_strong_pixel_threshold);
@@ -51,8 +44,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);
REQUIRE(mask_out.size() == RAW_MODULE_SIZE * sizeof(uint16_t) / 64 + 1);
}
void spot_finder_prepare(hls::stream<spot_finder_packet> &data_in,