$fscanf in Icarus verilog?

B

baaji

Guest
Hi
I have my testbenches written using $fscanf to load the testcases. This is
working fine in Modelsim. Recently i tried to run the test bench in Icarus
verilog and facing problems. The vvp is telling that it could not fine the
$fscanf module. How can i get it working?
 
Larry Doolittle wrote:

baaji wrote:

Hi
I have my testbenches written using $fscanf to load the testcases. This is
working fine in Modelsim. Recently i tried to run the test bench in Icarus
verilog and facing problems. The vvp is telling that it could not fine the
$fscanf module. How can i get it working?


1. google fscanf vpi iverilog
2. google fileio iverilog
3. make a serious attempt to get it working
4. use the mailing list geda-user@seul.org if you still have trouble

- Larry
$fscanf is not standard verilog. You'd have to implement a vpi procedure
and link it to iverilog.
 
baaji wrote:
Hi
I have my testbenches written using $fscanf to load the testcases. This is
working fine in Modelsim. Recently i tried to run the test bench in Icarus
verilog and facing problems. The vvp is telling that it could not fine the
$fscanf module. How can i get it working?
1. google fscanf vpi iverilog
2. google fileio iverilog
3. make a serious attempt to get it working
4. use the mailing list geda-user@seul.org if you still have trouble

- Larry
 
In article <cg5r12$iq5$1@nntp1.jpl.nasa.gov>, Jason Zheng wrote:
Larry Doolittle wrote:
baaji wrote:
I have my testbenches written using $fscanf to load the testcases.
$fscanf is not standard verilog. You'd have to implement a vpi procedure
and link it to iverilog.
IEEE Std 1364-2001 Version C section 17.2.4.3
describes $fscanf and $sscanf.

These are now standardized VPI routines, admittedly new since the
1995 version of the standard. Old or incomplete Verilog compilers
will not support it. I know Icarus does not currently have native
$fscanf support; it will be included as soon as someone writes and
submits a useful implementation.

- Larry
 

Welcome to EDABoard.com

Sponsor

Back
Top