MCPcopy Create free account
hub / github.com/definelicht/hlslib / ShiftRegister

Function ShiftRegister

xilinx_test/kernels/ShiftRegister.cpp:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53extern "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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected