Home › Practice › RTL Design › Make a tap visible

Make a tap visible

EasyRTLsequential

A button tap lasts one clock cycle. That is far too short to see on an LED, so the LED must stay on for 3 cycles after a tap.

Concept first. The circuit needs to remember how long ago something happened. A flip-flop remembers one cycle. Two common ways to remember longer: a small down-counter that you load with the wanted time and count down to zero, or a short shift register that carries the tap along one cycle at a time. With both, the LED is on while the memory is not empty. Think about what a second tap should do while the first is still being counted.

What to build.

Solve in your browser →

No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.

More in this track

← Electronic diceMetro gate →