Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Intel HLS compiler issue

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
No RepliesBe the first to reply