Hands-On Labs

Short, guided verification exercises. Each lab teaches one practical skill before you use it in a larger UVM project.

Hands-On Labs

20-90 minute guided exercises. You receive a narrow task, expected result, and a clear next step.

UVM Projects

Multi-hour independent builds. You choose the architecture and assemble complete verification evidence.

Verilog and SystemVerilog Labs

20 minutesVerilog

1. Complete a Gate Testbench

Turn a simple AND gate into a self-checking simulation.

Lab steps and expected result
  1. Declare testbench inputs and connect the DUT.
  2. Apply all four input combinations.
  3. Use $error for a mismatch.

Expected: the final log reports all checks passed.

Open lab lesson
30 minutesVerilog

2. Debug a Broken Multiplexer

Find and fix a selection bug in a small combinational module.

Lab steps and expected result
  1. Run the supplied select cases.
  2. Observe the incorrect output.
  3. Correct the conditional assignment.

Expected: select 0 chooses input a and select 1 chooses input b.

Open lab lesson
35 minutesSystemVerilog

3. Create a Clock and Reset Task

Package a reset sequence into a reusable SystemVerilog task.

Lab steps and expected result
  1. Generate a periodic clock.
  2. Write an automatic reset task.
  3. Call the task from the testbench.

Expected: reset stays active for two rising edges.

Open lab lesson
45 minutesSystemVerilog

4. Bundle a Bus Interface

Replace separate protocol wires with an interface and modports.

Lab steps and expected result
  1. Declare valid, ready, and data in an interface.
  2. Add master and slave modports.
  3. Connect the DUT and testbench through the interface.

Expected: the design compiles with one interface connection.

Open lab lesson
45 minutesSystemVerilog

5. Randomize a Legal Transaction

Generate constrained traffic with an address and operation rule.

Lab steps and expected result
  1. Create a class with rand fields.
  2. Constrain address range and alignment.
  3. Print ten randomized transactions.

Expected: every printed address obeys the constraint.

Open lab lesson
45 minutesAssertions

6. Assert Stable Data

Write one protocol assertion for stalled valid/ready traffic.

Lab steps and expected result
  1. Define a property sampled on the clock.
  2. Disable it during reset.
  3. Introduce a changing-data failure.

Expected: the assertion identifies the deliberate violation.

Open lab lesson

UVM Building-Block Labs

45 minutesUVM

7. Create a Transaction Class

Define the sequence item passed between UVM stimulus components.

Lab steps and expected result
  1. Extend uvm_sequence_item.
  2. Register fields with the UVM macros.
  3. Randomize and print the item.

Expected: a generated transaction appears in the simulator log.

Open lab lesson
60 minutesUVM

8. Connect a Driver and Sequence

Complete the item handshake between a sequencer and driver.

Lab steps and expected result
  1. Implement get_next_item.
  2. Drive one item to the interface.
  3. Call item_done.

Expected: the driver reports one completed item.

Open lab lesson
60 minutesUVM

9. Publish a Monitor Transaction

Observe a completed transfer and send it through an analysis port.

Lab steps and expected result
  1. Sample the interface at the correct clock edge.
  2. Create a fresh transaction object.
  3. Write it to an analysis port.

Expected: a subscriber receives the observed transaction.

Open lab lesson
75 minutesUVM

10. Complete a FIFO Scoreboard

Implement the queue operations that predict and compare FIFO reads.

Lab steps and expected result
  1. Push expected data on writes.
  2. Pop it on reads.
  3. Report a data mismatch with context.

Expected: an intentional bad read triggers one useful UVM error.

Open lab lesson
60 minutesUVM

11. Pass a Virtual Interface

Configure a driver through uvm_config_db instead of a global handle.

Lab steps and expected result
  1. Set the interface before run_test.
  2. Get it in the driver build phase.
  3. Fail clearly when it is missing.

Expected: the driver receives the configured interface.

Open lab lesson
75 minutesUVM

12. Add Functional Coverage

Sample a covergroup from monitor observations and identify one missing bin.

Lab steps and expected result
  1. Add operation and data coverpoints.
  2. Create a cross.
  3. Write a targeted sequence for one hole.

Expected: coverage changes after the targeted sequence.

Open lab lesson