Hi.
I am trying to read a file from my verilog-AMS program (.csv, it is a lookup table with 2 lists of arrays).
real code[41:0];
real thresh[41:0];
initial begin
openfile = $fopen("file", "rb");
readfile = $fscanf("file", "%g %g\n",code[40:0],thresh[40:0]);
end
ncvlog: *E,NOPSOM file,33|72): Part-select or indexed part-select cannot be applied to memory [4.2.2(IEEE)].
readfile = $fscanf("file", "%g %g\n",code[40:0],thresh[40:0]);
|
ncvlog: *E,NOPSOM (file,33|85): Part-select or indexed part-select cannot be applied to memory [4.2.2(IEEE)].
module testlib.adcdiscrete:verilogams
The $fopen part of the codes is OK. The syntax/s of the $fscanf function is the same as the one in the manual.
I have no idea what's going on