R
rubin
Guest
Greeting to all,
I'm using $fread() function in spectreHDL. The code is as the
following:
finput = $fopen("dataFileName","r");
while(! $fread(finput,"%e %e\n",V1[size],I1[size]));
//"V1,I1" are real type array, "finput" is the input file handle
to read in the following data file in:
0.0e-1 3.0e-1
1.0e-1 2.969e-1
2.0e-1 2.875e-1
3.0e-1 2.711e-1
4.0e-1 2.462e-1
5.0e-1 2.100e-1
6.0e-1 1.545e-1
7.0e-1 0.000e-1
This data file is exactly of the format "%e %e\n" (At least, I think
it is). But when I simulate it in Cadence, it keeps on complaining as
the following:
******************************************************************
Fatal error found by spectre during DC analysis `dc'.
"/usr/local/cadence/db/rect/ahdl/ahdl.def" 19: format string in
$fread() does not match input file.
Analysis `dc' terminated prematurely due to error.
******************************************************************
Line 19 is the the $fread() code line described at the beginning.
Anybody has similar experience? Does this mean something is wrong with
our cadence enviorment? We use ic446. Any advice will be appriciated.
Thanks,
Tian
I'm using $fread() function in spectreHDL. The code is as the
following:
finput = $fopen("dataFileName","r");
while(! $fread(finput,"%e %e\n",V1[size],I1[size]));
//"V1,I1" are real type array, "finput" is the input file handle
to read in the following data file in:
0.0e-1 3.0e-1
1.0e-1 2.969e-1
2.0e-1 2.875e-1
3.0e-1 2.711e-1
4.0e-1 2.462e-1
5.0e-1 2.100e-1
6.0e-1 1.545e-1
7.0e-1 0.000e-1
This data file is exactly of the format "%e %e\n" (At least, I think
it is). But when I simulate it in Cadence, it keeps on complaining as
the following:
******************************************************************
Fatal error found by spectre during DC analysis `dc'.
"/usr/local/cadence/db/rect/ahdl/ahdl.def" 19: format string in
$fread() does not match input file.
Analysis `dc' terminated prematurely due to error.
******************************************************************
Line 19 is the the $fread() code line described at the beginning.
Anybody has similar experience? Does this mean something is wrong with
our cadence enviorment? We use ic446. Any advice will be appriciated.
Thanks,
Tian