vijay82
Member level 2
verilog check for file
In Verilog, how can one check the existence of a file, without using PLI?
My aim is:
if (<file exists>)
readmemh (<file name>) //Read it
else
other code
Although directly using readmemh on the file name does not give a compile/runtime error, it does give an ugly-looking warning on the simulation window(ModelSim) during simulation, which I'd rather avoid.
In Verilog, how can one check the existence of a file, without using PLI?
My aim is:
if (<file exists>)
readmemh (<file name>) //Read it
else
other code
Although directly using readmemh on the file name does not give a compile/runtime error, it does give an ugly-looking warning on the simulation window(ModelSim) during simulation, which I'd rather avoid.