Jump to content
chandan

running Questasim 10.2c in Cygwin using qverilog command for uvm-1.1d

Recommended Posts

Hi,

 

I am trying to run uvm code using qverilog command using shell script as :

 

qverilog \
 -timescale "1ns/1ns" \
 -mfcu \
  +acc=rmb \
  +incdir+../../../../../src+../sv\
  ../../../../../src/uvm.sv\
  $TB_HOME/tb_top.sv \
  -R \
  -sv_lib ../../../../../win32/uvm_dpi
 -supress 2181\
  +UVM_TESTNAME=$TEST_NAME\
  -c \
  -do "run -all; q" \
  -l questa.log

I get the error as :

 

** Error: ../../../../../src/uvm_pkg.sv(27): near "package": syntax error, unexpected IDENTIFIER, expecting class

./examples/tb_top.sv: line 1: ///*-----------------------------------------------------------------: No such file or directory

./examples/tb_top.sv: line 2: //File: No such file or directory

 

Where starting lines of tb_top are commented, but it is expecting file names there.

Please help.

 

Regards,

 

Chandan

 

 

Share this post


Link to post
Share on other sites

Hi Alan,

 

Thanks a lot. It is working now. I earlier had problem with DPI lib part. It was solved by using Dave's suggestion in go.mentor.com/uvm1-0-questa.

By using compiled DPI lib of questa. Still I was not able to run using qverilog command.

 

Regards,

 

Chandan

Share this post


Link to post
Share on other sites

You problem with the qverilog command is with the -R switch. To pass multiple arguments to the simulator, you need to include them in quotes, or whatever your shell requires to form a single argument. In either case, you should not be compiling the UVM source or DPI yourself.

Share this post


Link to post
Share on other sites

Thanks Dave for pointing out the -R switch ..I looked in the manual :

 

-R <vsim_options>
Specifies valid vsim arguments to be applied to the simulation. All vlog and vopt arguments
must come before -R is specified, as all arguments specified after -R are interpreted as vsim
arguments.

Share this post


Link to post
Share on other sites

Also I am using the following command :

 

qverilog +incdir+$UVM_HOME/src $UVM_HOME/src/uvm.sv +incdir+. hello_world.sv -R -sv_lib $UVM_HOME/win64/uvm_dpi
 
where UVM_HOME is set in Cygwin as : export UVM_HOME=C:/\cygwin/\home/\chandan/\uvm-1.1d/\uvm-1.1d
 
Please suggest if any changes are required.
 
Regards,
 
Chandan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×