G
Ganesh
Guest
Hi,
Is there any way to know at run-time whether a file read using
$readmemh has been successful or not? Does it have a return value?
Also, is there a limit to the size of the file which can be read by
$readmemh in NCSim?
I have a huge memory array (256 MB) to be initialized and an
appropriate sized file for reading through $readmemh. NCSim appears to
execute the $readmemh and continues the simulation, but the memory is
not initialized. The statement executes correctly if I fill 2-3 MB of
the memory array initially, and use the rest of the memory array
locations during run time for other purposes. For one of the runs, I
need to initialize all the 256 MB, but $readmemh is turning out to be a
stumbling block.
Any help would be greatly appreciated.
Thanks & Regards
Ganesh
Is there any way to know at run-time whether a file read using
$readmemh has been successful or not? Does it have a return value?
Also, is there a limit to the size of the file which can be read by
$readmemh in NCSim?
I have a huge memory array (256 MB) to be initialized and an
appropriate sized file for reading through $readmemh. NCSim appears to
execute the $readmemh and continues the simulation, but the memory is
not initialized. The statement executes correctly if I fill 2-3 MB of
the memory array initially, and use the rest of the memory array
locations during run time for other purposes. For one of the runs, I
need to initialize all the 256 MB, but $readmemh is turning out to be a
stumbling block.
Any help would be greatly appreciated.
Thanks & Regards
Ganesh