I have the following function with the directive set_directive_interface -mode axis -register -register_mode both "FIR" Result
in Vivado HLS:
void Func(int A[2], int B[2], int* Result)
{
int Temp = 0x00;
Loop: for(int i = 0x00; i < 0x02; i++)
{
Temp += A[i] * B[i];
}
*Result = Temp;
}
This function will produce the following report:
I got two memory interfaces with address, CE and a data input. Everything as expected.
Now I use the following function:
void Func(int A[2], int B[2], int* Result)
{
int Temp = 0x00;
Temp = A[1] * B[1] + A[0] * B[0];
*Result = Temp;
}
This will produce the following output:
So why does the second function produce an interface with two RAM ports?