Home / Learn Verilog / Flip-Flop with Enable

Flip-Flop with Enable

Load only when allowed.

Bottom lineLoad only when allowed.

Breaking it down

enable FFDCLKRSTQif (en) q <= d
enable FF

In plain terms

An enable lets the register hold its value except when en=1.

Why we use it

Registers that update only on certain cycles.

Under the hood

if (en) q <= d;

Real-world use

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

Enable registerVerilog: edit and run

FPGAs have clock-enable pins in every flip-flop.

Quick quiz

1. Without enable the register...