Tests: Improve t_uvm_hello.v
This commit is contained in:
parent
b9b0bf2e19
commit
1b2e13a0d8
|
|
@ -11,8 +11,23 @@
|
||||||
|
|
||||||
module t;
|
module t;
|
||||||
import uvm_pkg::*;
|
import uvm_pkg::*;
|
||||||
|
// verilator lint_off UNUSEDSIGNAL
|
||||||
|
// verilator lint_off WIDTHTRUNC
|
||||||
|
class test extends uvm_test;
|
||||||
|
|
||||||
|
`uvm_component_utils(test)
|
||||||
|
|
||||||
|
function new(string name, uvm_component parent = null);
|
||||||
|
super.new(name, parent);
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
virtual function void report_phase(uvm_phase phase);
|
||||||
|
super.report_phase(phase);
|
||||||
|
$write("** UVM TEST PASSED **\n");
|
||||||
|
endfunction
|
||||||
|
endclass
|
||||||
|
|
||||||
initial begin
|
initial begin
|
||||||
// verilator lint_off WIDTHTRUNC
|
run_test("test");
|
||||||
`uvm_info("TOP", "UVM TEST PASSED", UVM_MEDIUM);
|
|
||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue