FPGA: spot_finder added

This commit is contained in:
2023-09-26 18:54:31 +02:00
parent 84bf69b8a6
commit 79aef71ce3
9 changed files with 104 additions and 28 deletions
+26
View File
@@ -0,0 +1,26 @@
// Copyright (2019-2023) Paul Scherrer Institute
#include "hls_jfjoch.h"
void axis_broadcast(STREAM_512 &data_in,
STREAM_512 &data_out_0,
STREAM_512 &data_out_1) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis register both port=data_in
#pragma HLS INTERFACE axis register both port=data_out_0
#pragma HLS INTERFACE axis register both port=data_out_1
packet_512_t packet;
data_in >> packet;
data_out_0 << packet;
data_out_1 << packet;
data_in >> packet;
while (!packet.user) {
#pragma HLS PIPELINE II=1
data_out_0 << packet;
data_out_1 << packet;
data_in >> packet;
}
data_out_0 << packet;
data_out_1 << packet;
}