DescriptionQ026
Q026DVASIC interview problem
End run phase with a forever monitor
TechniquesUVMObjectionsRun phaseDrain time
DifficultyMedium
TopicUVM Components
LanguageSystemVerilog
Requirements4 checkpoints
01
Problem
A test owns finite traffic and also starts a forever monitor in run_phase. Show how the test ends without waiting for the monitor to return.
Task headerSystemVerilog
task run_phase(uvm_phase phase);Example input and output
Use this case to check your interpretationInput
traffic completes, the last objection drops, and no new objection is raised during drain timeOutput
run phase ends; the forever monitor is terminated; later phases runExplanation
The forever process belongs to the task phase and does not prevent phase completion after objections and drain handling finish.
02
Requirements (4)
- Raise the objection before starting finite traffic.
- Drop it only after all test-owned traffic completes.
- Explain what happens to forever processes spawned by the task phase.
- State the default effect of UVM's finish_on_completion setting.
