Jump to content


  • Content Count

  • Joined

  • Last visited

  1. 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
  2. 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.
  3. 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
  4. 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: ///*---------------------------------------------------------
  5. I am able to run by defining -sv_lib as suggested in http://go.mentor.com/uvm1-0-questa. qverilog +incdir+../../../src ../../../src/uvm.sv +incdir+. ${FILES} -R -sv_lib ../../../win64/uvm_dpi
  6. Hi Alan, Thanks for your reply. I have mingw-4.2.1 in questa-10.0b installation.Now I cd to uvm-1.1d/uvm-1.1d/examples/simple/hello_world. Then run : vlib work vlog +incdir+../../../src ../../../src/uvm_pkg.sv ../../../src/dpi/uvm_dpi.cc which gives following error message : Top level modules: --none-- ** Error: (vlog-71) Creation of "work/_dpi/qv_dpi.dll" failed with the error messages given below. work/_dpi/uvm_dpi.obj:uvm_dpi.cc:(.text+0x13): undefined reference to `regfree' work/_dpi/uvm_dpi.obj:uvm_dpi.cc:(.text+0x4b): undefined reference to `regexec' work/_dpi/uvm_dpi
  7. Hi Dave, I am getting the following errors : /cygdrive/c/questasim_10.0b/gcc-4.2.1-mingw32vc9/bin/g++.exe -g -DQUESTA -W -shared -Bsymbolic -x c -I/cygdrive/c/questasim_10.0b/include ../../../src/dpi/uvm_dpi.cc -o ../../../lib/uvm_dpi.dll /cygdrive/c/questasim_10.0b/win32/mtipli.dll -lregex In file included from ../../../src/dpi/uvm_dpi.cc:34: ../../../src/dpi/uvm_regex.cc:26:22: error: vpi_user.h: No such file or directory Please help Regards, Chandan
  8. Hi Swapnil,Dave, I have cygwin and able to run hello_world example of uvm-1.0pl only with it in questa 10.0b. As pointed out by Dave in http://forums.accellera.org/topic/767-questasim-with-cygwin/ . But after that I am not able to proceed neither I am able to run ubus examples in uvm-1,0pl nor able to compile dpi library in other versions. Kindly help
  9. hi uwes, thanks a lot it is working perfectly. Regards, Chandan
  10. Hi Dave, Coming back to this post again. How to compile the DPI library in questa 10.0b. If I use makefile provided in uvm1.0p1. Messages are : ------------------------------------------ make -f Makefile.questa BITS=32 dpi_lib make[1]: Entering directory `/home/chandan/uvm-1.0p1/examples/simple/hello_world' mkdir -p /cygdrive/c/questasim_10.0b/uvm-1.0p1/lib g++ -m32 -fPIC -DQUESTA -g -W -shared -I/cygdrive/c/questasim_10.0b/win32/include /cygdrive/c/questasim_10.0b/uv m-1.0p1/src/dpi/uvm_dpi.cc -o /cygdrive/c/questasim_10.0b/uvm-1.0p1/lib/uvm_dpi.so /cygdrive/c/questasim_
  11. hi uwe, thanks for your reply. i am able to run with ius 10.20s10 version. but is there a way to compile the dpi library with ius 10.20-p008 regards, Chandan
  12. Hi All, I am new to methodology. The command I am using: 1) irun $UVMHOME/src/uvm_pkg.sv $UVMHOME/src/dpi/uvm_dpi.cc -incdir $UVMHOME/src test.sv Following is the log message as it appears : irun: 10.20-p008: © Copyright 1995-2010 Cadence Design Systems, Inc. file: /projects1/tools/methodology_library/uvm/1.1a/src/uvm_pkg.sv package worklib.uvm_pkg:sv errors: 0, warnings: 0 file: test.sv module worklib.top:sv errors: 0, warnings: 0 $CDSROOT = /projects1/tools/cadence/old_version/incisive/ccstools/cdsind1/Software/INCISIV102_lnx86 $TE
  13. Thanks Dave. With `include "uvm_macros.svh" it works now. I am using : vlog hello_world.sv -writetoplevels questa.tops vsim -sv_lib /cygdrive/c/questasim_10.0b/uvm-1.0p1/lib/uvm_dpi -c -do "run -all; q" -f questa.tops Is there any better option with switches or any modification needed?
  14. Thanks Dave. I have now: 1) $MTI_HOME as /cygdrive/c/questasim_10.0b 2)$UVM_HOME as /cygdrive/c/questasim_10.0b/verilog_src/uvm-1.0p1 But I am still getting error as : $ vlog hello_world.sv QuestaSim vlog 10.0b Compiler 2011.05 May 5 2011 -- Compiling module hello_world -- Importing package mtiUvm.uvm_pkg (uvm-1.0p1 Built-in) ** Error: packet.sv(29): (vlog-2163) Macro `uvm_object_utils_begin is undefined. ** Error: packet.sv(29): near "(": syntax error, unexpected '(', expecting function or task ** Error: packet.sv(30): (vlog-2163) Macro `uvm_field_int is undefined. ** Error: packe
  • Create New...