原始代码及log
cpp
package pkg;
import uvm_pkg::*;
`include "uvm_macros.svh"
class my_component extends uvm_component;
function new(string name, uvm_component parent);
super.new(name, parent);
endfunction
task run_phase(uvm_phase phase);
phase.raise_objection(this);
`uvm_info("component", "hello out there!", UVM_MEDIUM)
phase.drop_objection(this);
endtask
endclass
endpackage
module test;
import uvm_pkg::*;
import pkg::*;
my_component t;
initial begin
t = new("Top", null);
run_test();
end
endmodule // test
----------------------------------------------------------------
*********** IMPORTANT RELEASE NOTES ************
You are using a version of the UVM library that has been compiled
with `UVM_NO_DEPRECATED undefined.
See http://www.eda.org/svdb/view.php?id=3313 for more details.
(Specify +UVM_NO_RELNOTES to turn off this notice)
UVM_INFO @ 0: reporter [RNTST] Running test ...
UVM_INFO ../../../src/base/uvm_objection.svh(1267) @ 0: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
--- UVM Report Summary ---
** Report counts by severity
UVM_INFO : 2
UVM_WARNING : 0
UVM_ERROR : 0
UVM_FATAL : 0
** Report counts by id
[RNTST] 1
[TEST_DONE] 1
$finish called from file "../../../src/base/uvm_root.svh", line 430.
$finish at simulation time 0
V C S S i m u l a t i o n R e p o r t
Time: 0 ns
"trivial" :"微不足道的"或"简单的"
上面是极其简单的UVM用例,算起走入UVM的钥匙,没啥好分析的