Skip to content

VHDL · Topic

VHDL Sequential Logic — Registers, Counters & State Machines

Clocked processes, synchronous and asynchronous reset, counters, shift registers and finite state machines in VHDL.

Sequential logic in VHDL is a clocked process and a small set of conventions that synthesis recognises. The conventions matter more than they look: where the reset is tested decides whether it is synchronous or asynchronous, and which signals are assigned on every path decides whether you get a register or an unintended latch. A state machine written without a default assignment inherits state it was never meant to hold.

Lessons in this topic(9)

Start hereModeling Sequential LogicVHDL Modeling Sequential Logic
  1. 2Detecting the Clock Edge
  2. 3The D Flip-Flop
  3. 4Registers and Register Banks
  4. 5Clock Enables
  5. 6Counters
  6. 7Shift Registers
  7. 8Gated Clocks and Why to Avoid Them
  8. 9Signals vs Variables in Clocked Processes