UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor trikalosss
Visitor
88 Views
Registered: ‎05-22-2019

Vivado HLS problem in SDSoc build -Streaming Array-

Hello,

so i am trying to create a streaming interface for an array. The size of the array is n*16. Once i do that i want to read the first 16 elements of my array and store them into a temporary array that i create inside the top function. Every cycle i want to read an element until i reach 16 element reads from the stream. But for some reason i am getting an error. Here is a sample of my code on my top function:

#include <stdio.h>
#include <stdlib.h>

#pragma SDS data access_pattern(x1_stream:SEQUENTIAL)

#pragma SDS data copy(x1_stream[0:(n*16)])

void top_function(double *x1_stream, int n)

{

     double *x1,x1_temp[16];

     int i,j;

     for (i=0; i<n; i++)

     {

          x1=&x1_stream[i*16];

          for(j = 0; j < 16; j++)

          {

               x1_temp[j]=x1[j];

          }

     }

}

 

The error i get is:

 ERROR: [SYNCHK 200-61] : unsupported memory access on variable 'x1_stream' which is (or contains) an array with unknown size at compile time.

Inside the J-loop i have also tried this:

x1_temp[j]=*x1;

x1++;

and this:

x1_temp=*x1_stream[(i*16)+j];

and this:

x1_temp=*x1_stream;

x1_stream++;

I got the same error...

Please note that i want a fifo streaming interface for my x1_stream Array. Nothing else.

What am i doing wrong here?

Tags (3)
0 Kudos