Jump to content

how to set drain time in UVM-1.1?


Recommended Posts

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

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.

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.

 Share

×
×
  • Create New...