Skip to main content
SystemVerilogIntermediate

Testbench: Credit counter (SystemVerilog)

Verify consume, return, boundary saturation and simultaneous events.

Exercise objective

The DUT tracks available credits and allows the corresponding operations.

Prerequisites

  • Read signals and write assertions in a SystemVerilog testbench.
  • Understand the circuit under test: The DUT tracks available credits and allows the corresponding operations.

Skills you will practice

  • Credit
  • Boundary

Equipment and tools

  • The SystemVerilog editor and validation are available in the browser. You do not need an FPGA board for this exercise.

Access the exercise

You unlock this exercise as you progress through the learning path. Club membership gives you access to the full path. Access to solutions and downloads depends on your account.