In reply to dave_59:
Thnaks Dave,
Here my sample code is
`include"ovm.svh"
import ovm_pkg::*;
module top;
class test extends ovm_test;
`ovm_component_utils(test);
function new(string name="test",ovm_component parent =null);
super.new(name,parent);
endfunction
function void build();
ovm_report_info(get_full_name(),"Welcome to OVM",OVM_LOG);
endfunction
task run();
#100ns;
endtask
test t1;
initial
begin
t1=new("t1",null);
end
endmodule
here my log file is…
OVM_INFO @ 0: reporter [RNTST] Running test test…
OVM_INFO @ 0: ovm_test_top [ovm_test_top] Welcome to OVM
OVM_INFO @ 0: t1 [t1] Welcome to OVM
my questions are
1.How the hierarchy is display(differentiate ovm_test_top and t1)
2.I confused with (ovm_component parent) in new function