From dc9c54025d2f313e96a84bfa057a6f8532d7496f Mon Sep 17 00:00:00 2001 From: Gattopandacorno Date: Mon, 19 Dec 2022 09:55:46 +0100 Subject: [PATCH] Add `#pragma HLS INTERFACE` instructions Co-authored-by: Fabio Zanichelli <274956@studenti.unimore.it> Co-authored-by: Stefano Pigozzi <256895@studenti.unimore.it> --- hls/assignment/sobel/sobel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hls/assignment/sobel/sobel.cpp b/hls/assignment/sobel/sobel.cpp index 3f3deb2..f9e0a1c 100644 --- a/hls/assignment/sobel/sobel.cpp +++ b/hls/assignment/sobel/sobel.cpp @@ -3,6 +3,11 @@ void sobel(uint8_t *__restrict__ out, uint8_t *__restrict__ in, const int width, const int height) { +#pragma HLS INTERFACE axis port=out bundle=boutput +#pragma HLS INTERFACE axis port=in bundle=binput +#pragma HLS INTERFACE s_axilite port=width bundle=bwidth +#pragma HLS INTERFACE s_axilite port=height bundle=bheight + const int sobelFilter[3][3] = { {-1, 0, 1}, {-2, 0, 2},