Zero Clock Nano was my first FPGA project. I wanted to make a clock from the logic up, using a Tang Nano 9K and a four-digit seven-segment display.

Tang Nano 9K and seven-segment display on a breadboard
The clock prototype / Tang Nano 9K

Start with a timebase.

The board's 27 MHz clock gives the design its timebase. A counter turns those cycles into a one-second pulse, which advances the seconds, minutes, and hours. The display is multiplexed: the FPGA switches between digits quickly enough for them to look like one steady display.

I also wrote the real-time clock logic inside the FPGA. Two buttons handle setting the time, including a small confirmation step before saving it.

Make the logic visible.

The project took about five days of writing code and getting the hardware to work. It was a useful first pass at seeing how counters, timing, and display logic fit together in a physical build.

Explore Zero Clock Nano on GitHub

A note from the workbench.