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

Function FirstKernel

xilinx_test/kernels/MultipleKernels.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "hlslib/xilinx/Stream.h"
4
5void FirstKernel(uint64_t const *memory, hlslib::Stream<uint64_t> &stream, int n) {
6 #pragma HLS INTERFACE m_axi port=memory offset=slave bundle=gmem0
7 #pragma HLS INTERFACE axis port=stream
8 for (int i = 0; i < n; ++i) {
9 #pragma HLS PIPELINE II=1
10 stream.Push(memory[i] + 1);
11 }
12}
13
14void SecondKernel(hlslib::Stream<uint64_t> &stream, uint64_t *memory, int n) {
15 #pragma HLS INTERFACE axis port=stream

Callers

nothing calls this directly

Calls 1

PushMethod · 0.80

Tested by

no test coverage detected