zjinf
Occasional Contributor
6 years agoquestion about RTL to openCL kernel interface
hi
In my openCL kernel , part of the function i want to wirte by RTL code. and now the RTL is function simulation correctly . i have read the "Intel® FPGA SDK for OpenCL™ ProEdition Best Practices Guide" for many times! Still some part not well understand::
- my RLT output is parallel output 128bit data(here i want it parallel output), named reg [127:0] dataout in rtl. that is 4 32 bit int data for kernel, how opencl kernel code received the 128bit data(4 int ), like this:
int mydata[3:0];
#pragma unroll
for(int i = 0; i <4;i++)
{
mydata[i]= ???
}
how to do here???
2 if the RTL part has two output data return to the opencl kernel , dataout1[127:0]( that is 4 32bit int data for kernel ), data_out2[127:0] (16 8bit char for kernel). how to do ???
Thanks for your help!!!