D10 Digital design, Verilog and FPGAs · Practice
Finite state machines in Verilog
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 6 kinds solid
Check
A state machine must wait 1 s, counting a 1 kHz clock. How many bits does its counter need?
Check
How many states can a binary-encoded state machine with 5 flip-flops have at most?
Check
A debounce timer must wait 50 ms on a 25 MHz clock.
(a)
How many ticks is that?
(b)
How wide must the counter be?
Check
A detector for an overlapping 4-bit sequence with no internal repeats (like 1000…01 patterns) is built as a Mealy machine.
(a)
How many states does it need (one for each prefix seen, from none to 4 − 1 bits)?
(b)
And as a Moore machine, which needs a state for the full match?
Check
Counter bits: 0.01 s at 1 kHz?
Check
Maximum states with 4 binary flip-flops?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in D10