I tried to compile all the OVM source codes into a lib, because I wish it will accelerate my future work. I use QuestaSim 6.3c, it tells me there is something wrong in file “base.svh”. on the line 25, I found “const string s_deprecated_3_0 = "Deprecated in AVM 3.0 and later";" Could you help me explain the "
const” here?
QuestaSim says:near “const”: syntax error, unexpected “IDENTIFIER”, expecting “class”.
Thank you very much!:)
I believe that Questa 6.3d or later is required to compile OVM. The README-Questa file is wrong.
Regards,
-Kurt
Thank you very much! I will try!
I just downloaded and installed QuestaSim 6.3f, the newest version from http://www.modelsim.com
However, the same error came out again:
** Error: E:/TMP/ovm-1.0.1/src/base/base.svh(25): near “const”: syntax error, unexpected “IDENTIFIER”, expecting “class”
I don’t know how to deal with it now.:(
Is there anyone who compiled the OVM source codes into a lib before?
Thank you very much!
I have compiled OVM successfully with both 6.3e and 6.3f versions of Questasim.
Commands used:
vlib ovm_lib_63
vlog -work ovm_lib_63 +incdir+/somepath/ovm-1.0.1/src /somepath/ovm-1.0.1/src/ovm_pkg.sv
Hope this helps,
Neil
That error message looks like the error you would receive if you try to compile the file “base.svh” directly.
The ovm source files are set up to use the SystemVerilog include construct to pull in all the individual source files. As Neil points out in his post, you want to compile the "ovm_pkg.sv" file directly. All the other files will be pulled in as needed through
include statements
Yes, you are right, thank you very much!
Neil’s reply is just the right answer to my question, and alexgran explained it much clearer to me. I’m a new hand in verification using ovm. Thank you all for all your help!
In reply to logokey:
Hi,
I’ve downloaded the express ovm 2.1.2, I’m using VCS tool license [B-2008.12-11],
I’m trying to compile the hello_world.sv with the run command
#> vcs +v2k +disable_ext -sverilog -lca +incidir+…/…/…/src/ovm_pkg.sv hello_world.sv
It is poping up a error saying that “ovm.svh” source file not known, I tried to compile it by commenting one of the .svh file [i knew error would come but just to ensure .sv files were compiled]
Should i add any other switches to the vcs run command to make header file compile?
In reply to avinashcks:
Hi
You can try below command :-
vcs +v2k +disable_ext -sverilog -lca +incidir+…/…/…/src/ …/…/…/src/ovm_pkg.sv hello_world.sv