RTL Studio Open IDE

3.6 · UVM CLASS

CDV: hit FIFO full and reach 100% coverage

Tune sequence constraints to flood writes until the FIFO-full coverpoint hits and LCOV reaches 100%.

Watch on YouTube

What you practice

CDV: hit FIFO full and reach 100% coverage (3.6). Tune sequence constraints to flood writes until the FIFO-full coverpoint hits and LCOV reaches 100%. It is in CDV mission — Part 3 · Env and Coverage of the UVM Masterclass. Assemble the verification environment, compare data, and hunt coverage.

The UVM bench compiles in that same browser SystemVerilog simulator. You edit the test in the IDE, run Verilator, and read the log beside the waveform.

What you will learn

Today you will tune UVM sequence constraints to flood the FIFO with writes until the full coverpoint hits, achieving 100% functional coverage.

Learning objectives

  • Understand how coverpoints drive constraint tuning in UVM sequences.
  • Modify sequence constraints to bias stimulus toward edge cases like FIFO full.
  • Use LCOV output in RtlStudio to verify 100% coverage.
  • Correlate simulation logs and coverage goals.

Theory

Coverage-driven verification (CDV) uses functional coverage models to guide stimulus generation. Coverpoints observe specific signal behaviors (e.g., full == 1) and collect bins to reach 100%. Constraints in sequences control the distribution of wr_en vs rd_en to steer coverage.

TechniquePurpose
dist constraintBias probability of write vs read (e.g., 80/20)
solve + beforeEnforce write bursts before reads
constraint orderEnforce sequential write bursts

Coverage is collected in a covergroup attached to the environment or subscriber. LCOV reports bin hits per covergroup; 100% means all bins hit at least once.

Practice

  1. Open this chapter in RtlStudio; confirm files in Explore.
  2. Open student/tb/seq/fifo_sequence.sv to edit constraints.
  3. Add or modify a fifo_full_constraint block to favor writes during reset release and early phases.
  4. Run Simulation and observe the Log panel for INFO: lines.
  5. Check the Coverage tab for LCOV report; verify full coverpoint hits.

Summary

Students practiced tuning sequence constraints to flood the FIFO with writes before reads, aiming to trigger the full coverpoint and achieve 100% line coverage. They learned how to use distribution constraints and dynamic checks against vif.full to steer coverage toward specific hardware states. The key takeaway is that intentional sequence biasing is essential for coverage-driven verification when targeting hard-to-reach corner cases. Passing this mission required both a successful simulation run and clear documentation of the coverage strategy in the README.

Run it in the Verilog IDE

  1. Open the UVM workspace in the IDE. The DUT and the testbench compile together in the browser.
  2. Run the SystemVerilog simulation with Verilator and read the phase and scoreboard lines in the log.
  3. When the check is on pins rather than a print, open the VCD next to that log.
  4. Edit the sequence, driver, or scoreboard in the IDE and rerun. You stay in the same simulator.

The lesson is done when the simulation matches CDV: hit FIFO full and reach 100% coverage. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.