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:
parent
47903a1217
commit
dc9c54025d
1 changed files with 5 additions and 0 deletions
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue