i use $fopen
integer file1;
file1=$fopen("~/a.txt");
it dosent work
why?
simulator is modelsim6
another question
when i used $readmemb
error encounted,
no system task readmemb?
why
i use $fopen
integer file1;
file1=$fopen("~/a.txt");
it dosent work
why?
simulator is modelsim6
another question
when i used $readmemb
error encounted,
no system task readmemb?
why
Hi, tarkyss
Does the text file read contains other data except for the binary or heximal data?
Verilog only provides $readmemb and $readmemh system tasks, which can not read string types and other types supported by C and VHDL.
make sure u have the file a.txt in the right directory . It should be in the directory from where u run ur simulations not where the verilog file might have been kept. Check that