In UVM tb_top, I wanted to run two tests. So, I have considered as below.
//--------------------------------------------
initial begin
run_test(“test1”); // calling test1
end
initial begin
run_test(“test2”); //// calling test2
end
//---------------------------------------------
but it is throwing an error as follows
//---------------------------------------------------------------------------------
UVM_INFO @ 0: reporter [RNTST] Running test test1…
KERNEL: UVM_FATAL @ 0: reporter [TTINST] An uvm_test_top already exists via a previous call to run_test
KERNEL:
KERNEL: — UVM Report Summary —
KERNEL:
KERNEL: ** Report counts by severity
KERNEL: UVM_INFO : 1
KERNEL: UVM_WARNING : 0
KERNEL: UVM_ERROR : 0
KERNEL: UVM_FATAL : 1
KERNEL: ** Report counts by id
KERNEL: [RNTST] 1
KERNEL: [TTINST] 1
RUNTIME: Info: RUNTIME_0068 uvm_report_object.svh (292): $finish called.
//----------------------------------------------------------------------------------------
Can anyone help me how to run multiple tests in a single tb_top.