| 51 | } |
| 52 | |
| 53 | extern "C" void ShiftRegister(Data_t const *const memory_in, |
| 54 | Data_t *const memory_out) { |
| 55 | #pragma HLS INTERFACE m_axi port=memory_in offset=slave bundle=gmem0 |
| 56 | #pragma HLS INTERFACE m_axi port=memory_out offset=slave bundle=gmem1 |
| 57 | #pragma HLS INTERFACE s_axilite port=memory_in bundle=control |
| 58 | #pragma HLS INTERFACE s_axilite port=memory_out bundle=control |
| 59 | #pragma HLS INTERFACE s_axilite port=return bundle=control |
| 60 | #pragma HLS DATAFLOW |
| 61 | hlslib::Stream<Data_t> s_in, s_out; |
| 62 | HLSLIB_DATAFLOW_INIT(); |
| 63 | HLSLIB_DATAFLOW_FUNCTION(Read, memory_in, s_in); |
| 64 | HLSLIB_DATAFLOW_FUNCTION(Compute, s_in, s_out); |
| 65 | HLSLIB_DATAFLOW_FUNCTION(Write, s_out, memory_out); |
| 66 | HLSLIB_DATAFLOW_FINALIZE(); |
| 67 | } |
nothing calls this directly
no outgoing calls
no test coverage detected