HLSSimulatedDevice: Add frame_summation

This commit is contained in:
2023-10-27 15:36:19 +02:00
parent 700d5b25af
commit b08071887b
+10 -6
View File
@@ -232,13 +232,14 @@ void HLSSimulatedDevice::HLSMainThread() {
STREAM_512 converted_9;
STREAM_512 converted_10;
STREAM_512 converted_11;
STREAM_512 converted_12;
hls::stream<axis_addr> addr0;
hls::stream<axis_addr> addr1;
hls::stream<axis_addr> addr2;
hls::stream<axis_addr> addr3;
hls::stream<axis_completion> compl0, compl1, compl2, compl3, compl4, compl5, compl6;
hls::stream<axis_completion> compl0, compl1, compl2, compl3, compl4, compl5, compl6, compl7;
hls::stream<ap_uint<16>> hbm_handles;
hls::stream<ap_uint<512>> adu_histo_result;
@@ -362,19 +363,22 @@ void HLSSimulatedDevice::HLSMainThread() {
hls_cores.emplace_back([&] { axis_128_to_512(integration_result_0, integration_result_1);});
// 8. Frame summation
hls_cores.emplace_back([&] { frame_summation(converted_8, converted_9, compl6, compl7);});
// 9. Extend multipixels
hls_cores.emplace_back([&] { add_multipixel(converted_8, converted_9);});
hls_cores.emplace_back([&] { add_multipixel(converted_9, converted_10);});
// 10. Apply bitshuffle
hls_cores.emplace_back([&] { bitshuffle(converted_9, converted_10);});
hls_cores.emplace_back([&] { bitshuffle(converted_10, converted_11);});
// Timer procedure - count how many times write_data is not accepting input (to help track down latency issues)
hls_cores.emplace_back([&] { timer_host(converted_10, converted_11, counter_host); });
hls_cores.emplace_back([&] { timer_host(converted_11, converted_12, counter_host); });
// 11. Prepare data to write to host memory
hls_cores.emplace_back([&] {
host_writer(converted_11, adu_histo_result, integration_result_1, spot_finder_result_1,
compl6, datamover_out.GetDataStream(),
host_writer(converted_12, adu_histo_result, integration_result_1, spot_finder_result_1,
compl7, datamover_out.GetDataStream(),
datamover_out.GetCtrlStream(), work_request_stream, completion_stream,
packets_processed, host_writer_idle, err_reg); });