Hi,
I am new to Vivado HLS and waslooking to implement array of registers connected to each other serially. Kind of like a LSFR.
However I tried #pragma HLS unroll, #pragma HLS PIPELINE II=1, #pragma AP array_partition directives but the tool is still inferring it as a single array and implementing it as a memory. But I want it to be implemented as several registers connected serially.
This is my code:
#include "ap_cint.h"
void fir (
int *y,
int A[4];
int new_data[4]
)
{
int i;
#pragma HLS unroll
fir_label0:for(i = 0; i < 4; i++){
A[i] = A[i+1];
}
A[4] = new_data[0];
}
This is the reference I am using:
http://www.xilinx.com/support/documentation/application_notes/xapp793-memory-structures-video-vivado-hls.pdf
Any help is really appreciated.
Thanks In advance.