Jump to content

Failed to find 'uvm_test_done' in hierarchical name /uvm_test_done/set_drain_time

Recommended Posts

We have defined the start_of_simuluation_phase in my testbench class as follow:

function void start_of_simulation_phase(uvm_phase phase);

uvm_test_done.set_drain_time(this, 1000000);


endfunction : start_of_simulation_phase

Now, we use the +define+UVM_NO_DEPRECATED switch in Makefile file as follow:


VLOG = vlog \

-timescale "1ns/1ps" \



$(OPT_C) \

-mfcu \

-incr \

-suppress 2181 \

+acc=rmb \

-writetoplevels questa.tops \

+incdir+$(UVM_HOME)/src \

$(UVM_HOME)/src/uvm.sv \

But the simulator reports errors as follow:

# vsim +UVM_VERBOSITY=UVM_MEDIUM +UVM_TESTNAME=sbi_simple_test -do {do wave.do; run -all; q} -l questa.log -sv_lib ../../../../../uvm-1.1/lib/uvm_dpi itdm_tb_top

# ** Note: (vsim-3812) Design is being optimized...

# ** Error: ../../../tb/itdm_ctrl_tb.sv(60): Failed to find 'uvm_test_done' in hierarchical name /uvm_test_done/set_drain_time.

# ** Error: ../../../tb/itdm_ctrl_tb.sv(61): Failed to find 'uvm_test_done' in hierarchical name /uvm_test_done/set_report_verbosity_level.

# Optimization failed

# Error loading design

Would everyone like to tell how to modify it?

Link to comment
Share on other sites


the usage of "uvm_test_done" is deprecated. adding "-define UVM_NO_DEPRECATED" hides all deprecated code from compilation. in order to fix that you should

1. move from using the uvm_test_done objection to an end-of-phase objection

2. probably you also have to change the calls to set_drain_time and set_report_verbosity_level to their UVM10 counterparts.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...