Can anyone please tell me where can I get an entire running and simulated UVM example code . I tried checking in the downloads section but the code examples files seems to be corrupted.
Hi Clair,
You can download UVM class library from the below website
http://www.accellera.org/downloads/standards/uvm
Below website is good for basic setup and understanding
http://www.testbench.in/UL_00_INDEX.html
Let me know in case you face any issue.
Regards
Chetan Shah
In reply to cashah85:
Thank you for the reference links. I have been using the above link and complted few modules. However, for the driver module, I get a syntax error for “configuration cfg” in the below code. Could you please guide me thorough if possible.
class Driver extends uvm_driver #(Packet);
Configuration cfg;
virtual input_interface.IP input_intf;
virtual mem_interface.MEM mem_intf;
uvm_analysis_port #(Packet) Drvr2Sb_port;
`uvm_component_utils(Driver)
function new( string name = "" , uvm_component parent = null) ;
super.new( name , parent );
endfunction : new
virtual function void build();
super.build();
Drvr2Sb_port = new("Drvr2Sb", this);
endfunction : build
virtual function void end_of_elaboration();
uvm_object tmp;
super.end_of_elaboration();
assert(get_config_object("Configuration",tmp));
$cast(cfg,tmp);
this.input_intf = cfg.input_intf;
this.mem_intf = cfg.mem_intf;
endfunction : end_of_elaboration
…
In reply to Clair:
Hi Clair,
I am assuming that you are using the complete code available in below link.
http://www.testbench.in/uvm_switch_6.tar
Just use follow the steps mentioned.
At the same time, Can you please copy the complete log here with the error.
I am happy to help you out.
Regards,
Chetan Shah
In reply to cashah85:
Hi Clair,
You can use the examples listed on the link below:
https://verificationacademy.com/cookbook/cookbook-code-examples
You should be able to use the Register examples.
regards,
Pradeep Salla
In reply to Clair:
Hi Clair, thank you for your message. The code examples on the Academy Cookbook site here should be useful for you.
You mentioned corrupted files - some of our users reported problems recently, downloading and unpacking the code example tarballs - the problem seems to be dependent on different software versions, and we are investigating a permanent fix.
In the meantime, if you try to unpack a downloaded file with ‘tar zxf uvm_tb_build_ss_tb.tgz’ and get an error “does not look like a tar archive”, please try again with a 2-step unpacking as follows:
% gunzip uvm_tb_build_ss_tb.tgz
% tar xf uvm_tb_build_ss_tb.tar
Hopefully that will get you started with the many UVM code examples that are available on the site here.
Thanks,
In reply to psalla:
Thank you for your replies. I’ll try the above links.