Skip to content
An-Ting Hsu edited this page Apr 23, 2015 · 2 revisions

Counters

  • Due Date: 2015.04.03 Fri.

Objective

  • Review synchronous sequential circuits.
  • Review counter logics.

Prerequisite

  • Fundamentals of logic gates.
  • Clocking concepts
  • Logic modeling in Verilog HDL.

Pre-labs

  1. Consider a 4-bit synchronous binary up counter.
    1. Draw the logic diagram
    2. Construct Verilog RTL representation for the logics with verification.

Experiments

  1. Frequency Divider: Construct a 25-bit synchronous binary counter. Use the MSB of the counter, we can get a frequency divider which provides a 1/225 frequency output (fout) of the original clock (fcrystal, 40MHz). Construct a frequency divider of this kind.
    1. Write the specification of the frequency divider.
    2. Draw the block diagram of the frequency divider.
    3. Implement the frequency divider with the following parameters.
      • fcrystal : R10
      • fout : H5
  2. Construct a single digit BCD up counter with the divided clock as the clock frequency and display on the seven-segment display.
    1. Construct a BCD up counter.
    2. Construct a BCD-to-seven-segment display decoder.
    3. Combine the above two together.
  3. Construct a 2-digit BCD up counter (from 00 to 99) using exp2 as a building block. Use the divided clock as the clock frequency and display on the seven-segment display.
  4. (Bonus) Construct a 30 seconds count down timer (stop at 00).

Clone this wiki locally