Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20644 Discussions

Intel HLS compiler issue

Altera_Forum
Honored Contributor II
995 Views

Hi, 

 

I've been using the Intel HLS compiler for a bit now and have gone ahead and started using the tool beyond the examples provided, but I ran into an issue. Typically the software (x86) and the verilog match up. However in this instance I got a discrepancy. At first I thought it was due to using random to generate values, but as I don't change the seed the pattern should be the same across runs. Here's a small snippet: 

 

int main(){ 

int ret; 

bool same; 

for(i=0;i<100;i++){ 

data = rand() % 10; 

ret = comp_func(data, &same); 

printf("ret : %d same?: %s\n",ret,(same)?"yes":"no"); 

... 

... 

 

Is this okay that there exist discrepancies between the two versions? 

 

Thanks, 

Elias
0 Kudos
0 Replies
Reply