RTL Studio Open IDE

7.2 · VERILOG CLASS

Rollover and enable

Implement a counter that increments only when enabled and resets at a custom maximum value.

Watch on YouTube

What you practice

Rollover and enable (7.2). Implement a counter that increments only when enabled and resets at a custom maximum value. It is in Counter — Part 2 · Practical Hardware Design of the Verilog Masterclass. Apply syntax to the blocks non-memory RTL engineers build in practice.

RTL Studio is a browser Verilog IDE and simulator. This free lesson runs there: the editor, Slang lint, Verilator, a VCD waveform viewer, and Yosys, with nothing to install.

Run it in the Verilog IDE

  1. Open this lesson in the IDE. The workspace is the Verilog module and its testbench.
  2. Edit the RTL so it matches the lesson goal, then lint it with Slang.
  3. Run the in-browser Verilator simulation. Read the log, then open the VCD in the waveform viewer.
  4. When the block is structural RTL, run Yosys in the same tab and compare the mapped cells with the behavior you just simulated.

The lesson is done when the simulation matches Rollover and enable. Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.