A decimal counter with a display

The problem

Build a model of a counter that counts 0 to 9 and shows each digit on a seven-segment display, using a mod-10 counter and a decoder built from a truth table.

Requirements

Technologies

Step by step

  1. Write the next-state function of the mod-10 counter and check that it goes 0, 1, ..., 9, 0.
  2. Write the segment table for the digits, one row for each digit.
  3. Pick the segment e and simplify it with a K-map with don't-cares.
  4. Check the simplified formula against the table on the rows 0 to 9.
  5. Draw each digit as a small picture of text lines, and run the counter for 12 clocks.

Expected result

A program that counts 0 to 9 and back to 0, and prints each digit as a seven-segment picture, together with a verified formula for one segment.

How it is evaluated

Ways to improve it