OpenRAM icon indicating copy to clipboard operation
OpenRAM copied to clipboard

ROM simulation model using $readmemb for binary file will NOT work

Open tvd040562 opened this issue 1 year ago • 0 comments

Describe the bug ROM simulation model using $readmemb for binary file will NOT work. It should use $fread for binary file to initialize the memory array

Version Which commit are you using? v1.2.48

To Reproduce What did you do to demonstrate the bug? Simulation

Expected behavior initial begin int FILE_ID_L = $fopen("sineL.bin", "rb"); $fread(mem, FILE_ID_L); $fclose(FILE_ID_L); end

Logs If applicable, add logs or output to help explain your problem.

Additional context Add any other context about the problem here.

tvd040562 avatar Sep 24 '24 07:09 tvd040562