Digital Clock in Quartus

Discussion in 'Homework Help' started by samar86, Mar 4, 2012.

  1. samar86

    Thread Starter New Member

    Mar 4, 2012
    i have to design a digital clock in quartus that displays minutes and hours and its a 12 hr clock that indicates AM/PM.

    i know how to design the clock but i am having some trouble assigning clock to the seconds counter.Can some one tell me what the frequency should be and how to assign that in VHDL?
  2. panic mode

    Senior Member

    Oct 10, 2011
    you only need one clock (1second period or frequency 1HZ).
    pair of leds representing column are powered by it (0.5sec on, 0.5sec off: this is period of T=1sec, and frequency is 1/T=1Hz).

    this clock should be driving Seconds counter (base 60).
    output of which goes into Minute counter (base 60).
    output of which goes into Hour counter (base 12).
    output of which goes into one last flip-flop (1bit counter) to turn on AM/PM indicator.