chandan Posted November 9, 2014 Report Share Posted November 9, 2014 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 Quote Link to comment Share on other sites More sharing options...
apfitch Posted November 9, 2014 Report Share Posted November 9, 2014 It's easier to let Questa use it's own built-in copy of UVM. What happens if you try qverilog -timescale "1ns/1ns" -mfcu +acc=rmb +incdir+../../../../../src +incdir+../sv $TB_HOME/tb_top.sv -R +UVM_TESTNAME=$TEST_NAME regards Alan chandan 1 Quote Link to comment Share on other sites More sharing options...
chandan Posted November 9, 2014 Author Report Share Posted November 9, 2014 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 Quote Link to comment Share on other sites More sharing options...
dave_59 Posted November 9, 2014 Report Share Posted November 9, 2014 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. chandan 1 Quote Link to comment Share on other sites More sharing options...
chandan Posted November 24, 2014 Author Report Share Posted November 24, 2014 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. Quote Link to comment Share on other sites More sharing options...
chandan Posted November 24, 2014 Author Report Share Posted November 24, 2014 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.