Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
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 interpretation
Input
traffic completes, the last objection drops, and no new objection is raised during drain time
Output
run phase ends; the forever monitor is terminated; later phases run
Explanation

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.