Skip to main content
SystemVerilogBeginner

Testbench: 4-bit LFSR (SystemVerilog)

Verify the pseudo-random sequence and the non-zero state after reset.

Exercise objective

The DUT generates a pseudo-random sequence from its internal state.

Prerequisites

  • Read signals and write assertions in a SystemVerilog testbench.
  • Understand the circuit under test: The DUT generates a pseudo-random sequence from its internal state.

Skills you will practice

  • Reset
  • Enable
  • Sequence
  • Non-zero

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.