Advanced Project | 20+ hours

SoC Subsystem Capstone

Integrate bus, data, interrupt, register, and end-to-end verification into one environment.

What you will learn

A subsystem capstone tests architecture as much as RTL. The environment must coordinate agents, model state across interfaces, preserve transaction identity, and present evidence that maps back to the verification plan.

  • Write a verification plan
  • Coordinate agents end to end
  • Present coverage and regression evidence
Project method: write the behavior first, build the smallest working DUT, observe it with a self-checking testbench, then add boundary and error scenarios.

Step 1: Understand the design contract

Before writing stimulus, identify the input transaction, the expected behavior, the boundary conditions, and the evidence that proves the result. This contract is the reference for both the DUT and the verification environment.

Verification questionAnswer to define
What does the DUT receive?inputs, transactions, configuration, or protocol requests
What should it produce?output data, state transition, response, flag, or error
What does the testbench observe?monitor data, response timing, status, waveform, or coverage
What can fail?normal operation, boundary, reset, timing, ordering, and invalid input

Step 2: Study the DUT contract or starter snippet

// Subsystem includes control registers, data movement,
// interrupts, memory traffic, and reset domains.
// End-to-end behavior is the primary verification target.

This project may provide RTL, a behavioral contract, or pseudocode here. Treat it as the stated project scope, not as a complete implementation. Identify the inputs, outputs, acceptance event, response timing, and reset behavior before writing checks.

Questions to answer

  1. What is the legal input range?
  2. What is the exact acceptance event?
  3. What happens at the minimum and maximum values?
  4. How does reset affect pending or stored state?
  5. What response indicates an invalid operation?

Step 3: Build the verification stimulus

Keep the stimulus separate from the checking logic. A driver or task applies inputs; a monitor or observation block samples what the DUT actually did.

class soc_virtual_sequence extends uvm_sequence;
    task body();
        configure_seq.start(p_sequencer.bus_seqr);
        fork data_seq.start(p_sequencer.data_seqr);
             irq_seq.start(p_sequencer.irq_seqr);
        join
    endtask
endclass

For an intermediate or advanced project, move this operation into a sequence item and driver. The sequence should describe the scenario, while the driver should own protocol timing and signal assignment.

Step 4: Verify the important scenarios

Write a risk-based plan, integrate typed agents, use virtual sequences, connect cross-interface scoreboards, collect coverage and assertions, and define signoff evidence.

ScenarioExpected evidence
Nominal operationone legal request produces one correct result
Boundary operationminimum, maximum, last, or transition value is handled correctly
Invalid operationerror, rejection, ignore, or documented recovery occurs
Reset interruptionstate and pending work return to the specified condition
Repeated/concurrent trafficordering, correlation, and no-loss behavior remain correct

Make the result self-checking

The code above is a project-specific starting point, not a complete testbench. Your finished test should calculate expectations independently from the DUT and report failures with enough context to reproduce them.

  1. Count each check and fail the run when an expected behavior is violated.
  2. Use monitor observations as evidence; do not pass a test solely because the driver requested an operation.
  3. Include the scenario, expected value, actual value, and transaction context in mismatch messages.
  4. End only after outstanding responses are checked and the scoreboard is drained.

Example successful summary

SOC PASS: configuration and data flow
SOC PASS: interrupt completion
SOC PASS: regression and coverage evidence

This is an illustrative pass summary, not a captured simulator transcript. Your run should report the scenarios and checks you actually executed, along with zero unexpected errors.

Common mistakes and debugging

SymptomFirst thing to inspect
Expected result never arrivesreset, handshake, enable condition, and end-of-test drain
Data mismatchtransaction ordering, bit/byte order, and reference-model calculation
Only boundary cases failinclusive versus exclusive limits and width truncation
Only random tests failseed, race, uninitialized state, or unsupported combination
Test hangsobjections, waits, queues, and missing response timeout
Test passes too easilyensure checking uses monitor observations, not driver intent
Debug rule: preserve the first failure, seed, configuration, timestamp, transaction ID, expected value, and actual value before changing the test.

UVM extension

Once the direct testbench works, organize the project as UVM components: a sequence item carries the transaction, a sequence creates scenarios, a driver applies protocol activity, a monitor publishes observations, and a scoreboard checks an independent expectation.

class project_item extends uvm_sequence_item;
    rand logic [31:0] data;
    `uvm_object_utils(project_item)

    function new(string name = "project_item");
        super.new(name);
    endfunction
endclass

class project_scoreboard extends uvm_scoreboard;
    `uvm_component_utils(project_scoreboard)
    uvm_analysis_imp #(project_item, project_scoreboard) analysis_export;

    function void write(project_item observed);
        // Calculate expected behavior independently.
        // Compare with observed and report useful context.
    endfunction
endclass

Do not add UVM classes just for decoration. The value is the separation of responsibilities and the ability to reuse the same sequence and checks when the interface or DUT configuration changes.

Project goals and acceptance criteria

  1. Write a verification plan.
  2. Coordinate agents end to end.
  3. Present coverage and regression evidence.
  4. Include at least one boundary and one negative or error scenario.
  5. Capture console and waveform evidence for the first failure and final passing run.
  6. Document assumptions, unsupported cases, and remaining verification risk.
Acceptance criteria: the DUT implements the documented contract; the testbench checks observed behavior independently; nominal and boundary scenarios pass; the relevant error path is detected; reset and end-of-test behavior are controlled; and the UVM extension has a clear item, driver, monitor, and scoreboard responsibility.