UVM_FATAL: reporter [TTINST] An uvm_test_top already exists via a previous call to run_test

Hello All,

I’m a newbie to UVM. What I’m trying to do is to have a simple UVM environment set up for my DUT. I’ve followed the standard guideline, such as creating a agent (sequencer + driver -driving the DUT), and a simple testcase.

However, when I call run_test() from the initial block of my top_tb (by using +UVM_TESTNAME=testcase), I always got the UVM_FATAL reported as:

UVM_FATAL @ 0: reporter [TTINST] An uvm_test_top already exists via a previous call to run_test

I’m wondering what the cause for the UVM_FATAL is?

Thanks in advance for your help.

Tam Nguyen

You either called run_test() twice in the same simulation, or you’ve explicitly created a component called “uvm_test_top”, neither of which is allowed.

In reply to dave_59:

Thanks for the reply.

I found the cause for this issue - that was due to the way I used asim command.