Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks for your continuous support Dave. I don't think this problem is related to ASE, because I have just installed the full edition (I didn't even know we had this license!) and I still face the same problem. The error is happening with the $fread command. For example, in the following line, read_index stays at 57671 when I look at the waveform window. It's expected to be NUMBER_OF_PIXEL_VALUES-1 instead.
read_index = $fread(storage_values, fileInput, 0, `NUMBER_OF_PIXEL_VALUES-1);
I then tried to use $readmemb but not much luck with this either... it sent modelsim crashing when I tried to simulate it! I'm attaching the zip file which contains the simulation script(sopc_system_tb.sv) and the input data file(image_binval.bin) in folder sopc_system_sim. Could you have a go at reading the data file please? It contains 153,600 values of unsigned 8-bit integers.