qinhailiang Posted July 7, 2011 Report Posted July 7, 2011 In UVM-1.1, how to set drain time in the start_of_simulation_phase or other phases if the deprecated features is not used, for example, uvm_test_done? Quote
Roman Posted July 7, 2011 Report Posted July 7, 2011 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 Quote
qinhailiang Posted July 7, 2011 Author Report Posted July 7, 2011 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 Quote
Recommended Posts
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.