Smoke Regressions
Build a small, fast regression suite that quickly proves the UVM environment is healthy before expensive verification runs begin.
Learning objectives
- Explain the purpose and scope of a UVM smoke regression.
- Select a small set of high-value tests that detect fundamental environment failures.
- Use stable seeds, clear reports, and explicit pass/fail criteria to make smoke failures actionable.
- Distinguish a smoke regression from broader functional, random, and coverage regressions.
Step 1: Understand the concept
A smoke regression is the fast health check for a verification environment. It should run frequently and answer a simple question: “Is the environment healthy enough to justify running larger regressions?”
Smoke tests should exercise the most important paths without trying to provide comprehensive coverage. Typical checks include reset, basic stimulus, one representative transaction, scoreboard connectivity, required configuration, and clean test completion.
A smoke suite is valuable because many failures are not sophisticated DUT bugs. A broken virtual interface, missing configuration value, incorrect agent mode, disconnected analysis port, or prematurely ending test can invalidate an entire regression. Catching these problems in minutes is much cheaper than discovering them after hours of simulation.
Step 2: Define a useful smoke suite
Start with a small number of deterministic tests. Each test should have one clear responsibility and a predictable expected result.
| Smoke test | Primary purpose | Example evidence |
|---|---|---|
reset_smoke_test |
Verify reset and basic initialization. | Reset completes and expected state is observed. |
register_access_smoke_test |
Verify basic bus connectivity. | Read/write transactions complete with expected data. |
packet_loopback_smoke_test |
Verify representative data flow. | Expected packet reaches the checking component. |
interrupt_smoke_test |
Verify event detection and handling. | Expected interrupt is observed within the allowed window. |
Keep the suite intentionally small. Four strong tests that run quickly are often more useful as a smoke gate than dozens of slow tests with overlapping objectives.
Step 3: Study the example
A smoke test should report its identity and important execution information, then perform a focused scenario. The test should also make its completion observable.
class register_access_smoke_test extends uvm_test;
`uvm_component_utils(register_access_smoke_test)
function new(string name = "register_access_smoke_test",
uvm_component parent = null);
super.new(name, parent);
endfunction
task run_phase(uvm_phase phase);
register_access_seq seq;
phase.raise_objection(this);
`uvm_info("SMOKE",
$sformatf("Starting %s seed=%0d",
get_type_name(),
$get_initial_random_seed()),
UVM_LOW)
seq = register_access_seq::type_id::create("seq");
seq.start(env.bus.sequencer);
`uvm_info("SMOKE",
"Register access scenario completed",
UVM_LOW)
phase.drop_objection(this);
endtask
endclass
The important design choice is the narrow scope. This test does not attempt to randomize every field, exercise every protocol feature, or measure all coverage. It establishes that the basic environment can start, drive a transaction, observe the result, and finish normally.
Step 4: Build the smoke regression
- Choose the minimum test set. Select tests covering reset, basic connectivity, one representative transaction, and one critical event path.
- Keep tests deterministic. Prefer predictable scenarios so that a failure can be reproduced immediately.
- Define pass criteria. A test should require the expected observable behavior, not merely the absence of fatal errors.
- Record useful metadata. Preserve the test name, seed, configuration, and first meaningful failure.
- Measure runtime. If the suite grows significantly slower, identify which tests became expensive and decide whether they belong in a broader regression tier.
Step 5: Make failures actionable
A smoke regression should fail loudly enough to identify what needs attention, but not produce pages of unnecessary diagnostic output. Use meaningful report IDs and include the scenario or transaction context that matters.
`uvm_error("SMOKE_REG",
$sformatf("Register access failed: addr=0x%0h expected=0x%0h actual=0x%0h",
addr, expected_data, actual_data))
When the smoke suite fails, first determine whether the failure is isolated to one test or affects several tests. Multiple failures that begin at the same initialization stage often indicate an environment or infrastructure problem. A single scenario-specific failure is more likely to require focused functional debugging.
Try it yourself
Design a four-test smoke regression for a simple bus-based subsystem:
- Reset and initialization.
- One register write followed by a readback.
- One representative data transaction.
- One interrupt or error-response scenario.
For each test, write down its expected observable result, required configuration, and the metadata you would record when it fails.
Then introduce one controlled environment error—for example, an incorrect configuration value or disconnected analysis path—and determine whether your smoke suite detects it quickly and reports enough information to begin debugging.
Key takeaways
- A smoke regression is a fast health check, not a replacement for comprehensive functional or coverage regression.
- Choose a small set of high-value tests covering initialization, connectivity, representative behavior, and critical events.
- Prefer deterministic scenarios and explicit pass criteria so failures are easy to reproduce.
- Record test names, seeds, configuration, and meaningful failure context for efficient triage.
- Keep smoke tests fast and focused; move expensive corner cases and broad random testing into larger regression tiers.