Hello All,
Now here I m trying to run a simple example, hello world from downloaded UVM library uvm1.0p1.I am using questasim10.0b. I followed the instruction to run the example from testbench.in at the following link:
http://www.testbench.in/UT_01_INTRODUCTION.html
But it doesnt work the command " qverilog -f compile_questa.f " It is giving me errors.
Can someone plz tell me the proper commands I need in order to run a simple example. Help would be appreciated.
Hi Swapnil,
Can you let me know what your UVM_HOME is set it?
It must be set to <directory_in_which_uvm_lib_is_stored>/uvm1.0p1
As per the instructions in the Testbench.in, it is asking you to set to …/uvm1.0p1/src and that might be causing the unwanted errors in your case.
Correct the UVM_HOME setting and try again.
Thanks,
Rajkumar.
In reply to S.P.Rajkumar.V:
Hello Sir,
I properly set the UVM library home to …/uvm1.0p1/src . Infact I put all .sv files in the same folder so that there is no directory issue. But still its causing errors.
I am not aware of the total commands use to run any uvm example. I am reading some new stuff about DPI compiled libraries? I didnt understand it at all?
I am using questasim10.0b version on windows 7, 64 bit version. I thought the libraries are already built in and no need to complile them again. Please give me some guidance about this and for the proper commands to run the hello world example or any uvm example from the web.
Thanks for your reply,
Swapnil
In reply to swapnilm:
Hi Swapnil,
If you are pointing …/uvm1.0p1/src, then you are doing the same mistake again.
Point your UVM_HOME to …/uvm1.0p1 and not …/uvm1.0p1/src.
In general, UVM_HOME shouldn’t point to src, rather it should point to the top of UVM library installation.
Thanks,
Rajkumar.
In reply to S.P.Rajkumar.V:
Hello Sir,
Thanks for the reply.
Is this command correct?
qverilog -f uvm_hello_world.f
If yes, whats the purpose of this command? At many sites on web this command has been used but it doesnt seem to work? Rather "qverilog uvm_hello_world.sv " command works.
Can u plx put some light on it?
Thanks,
Swapnil
In reply to swapnilm:
Swapnil,
If I remember correctly, ‘qverilog’ is a single step command to compile/elaborate/simulate the design. In other words it is equivalent to VLOG+VOPT+VSIM in questa. Please double check this.
Now coming to the usage part of it, I’d recommend you to do ‘qverilog -help’ to get more details, or refer to Questasim user guide. (Unfortunately at this moment, I don’t have access to Questa to help you out.)
Hope your issues are resolved by correcting UVM_HOME.
Thanks,
Rajkumar.
In reply to S.P.Rajkumar.V:
I think you look at the examples that come with Questa to learn how run the tool before you attempt to run UVM examples. Learning how to run Questa is beyond the scope of the Verification Academy, but there are many tutorials that come with Questa plus a search online should provide the info you need.
In reply to dave_59:
Yes Sir, qverilog actually does compile,simulate the design in one shot. But then why most of the websites have used this command “qverilog -f uvm_hello_world.f”? I dont seem to understand this command actually.Whats the purpose of this command as most of the training websites have used it a lot.
My UVM_HOME issue got solved. Thanks for your help.
Swapnil
In reply to swapnilm:
Swapnil,
The purpose of -f argument is to supply filelist which contains the list of all .sv files. It is very useful when there are multiple files and it is not feasible to mention all the files on the command line during compilation (whether it be vlog/ncvlog/vcs). Say for ex: “vlog one.sv two.sv three.sv”
Hopeflly this -f argument of qverilog is also to supply the filelist for the compiler underhood. In this case you may not need it as you have only one file which is uvm_hello_world.sv and you can supply it directly to qverilog.
Thanks,
Rajkumar.