1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-21 23:54:25 +00:00

Add #pragma HLS INTERFACE instructions

Co-authored-by: Fabio Zanichelli <274956@studenti.unimore.it>
Co-authored-by: Stefano Pigozzi <256895@studenti.unimore.it>
This commit is contained in:
Gattopandacorno 2022-12-19 09:55:46 +01:00
parent 47903a1217
commit dc9c54025d

View file

@ -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},