Jump to content

Recommended Posts

Posted

Limit use of drain_time to uvm_top or the top-level test, if used at all.

You could use it in start_of_simulation_phase or run_phase

here are the example for your reference.

function void start_of_simulation_phase(uvm_phase phase);

uvm_test_done.set_drain_time(this, 600);

uvm_test_done.set_report_verbosity_level(UVM_HIGH);

endfunction : start_of_simulation_phase

task run_phase(uvm_phase phase);

//set a drain-time for the environment if desired

phase.phase_done.set_drain_time(this, 50);

// or uvm_test_done.set_drain_time(this,10);

endtask : run_phase

Posted

hi, Roman.W

uvm_test_done is deprecated in uvm-1.1. if define UVM_NO_DEPRECATED when compiling, simulator reports errors.

so i know how to modify start_of_simulation_phase function to set drain time, but uvm_test_done is not used.

Thanks for your information.

BR

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.

Guest
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...