The LibFPGA blog

Practical FPGA design, one problem at a time: FIFOs and clock domains, timing closure, RISC-V soft cores, and the tools that make the hard parts routine.

Mealy vs Moore: two ways to build a state machine (and a note on feedback)

Every finite state machine is a small loop: a register holds the current state, some logic decides the next state, and some logic decides the outputs. The only real choice is where the outputs come from, and that single decision is the whole difference between a Moore machine and a Mealy machine.

Jul 7, 2026 · 8 min read