e4332: vlsi design laboratorynagendra/e4332/current/handouts/digital-clock.pdf · digital clock:...

28
E4332: VLSI Design Laboratory Nagendra Krishnapura Columbia University Spring 2005: Lectures [email protected] 1 Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Upload: others

Post on 25-Mar-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

E4332: VLSI Design Laboratory

Nagendra KrishnapuraColumbia University

Spring 2005: [email protected]

1Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 2: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital Clock: Timebase #1

● 60Hz from mains source● Clip, buffer, and divide by 60 to get 1Hz clock

28Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 3: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital Clock: Timebase #2

● Crystal oscillator● Accurate frequency, low drift

29Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 4: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Crystal equivalent circuit

● Series(ωs) and parallel(ω

p) resonance

● Extremely high Q ~ 10,000s● Oscillator freq. usually between ω

s and ω

p

30Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 5: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Crystal equivalent circuit

● Overtone modes present in the crystal● Can oscillate at these frequencies● Overtone modes need to be suppressed

31Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 6: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Oscillator principle

● C1, C

2, g

m result in a negative resistance and

compensate resonator loss.32Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 7: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Oscillator principle● Circuit oscillates at a frequency of net zero

reactance– Impedance zero (series mode)– Admittance zero (parallel mode)

● Series/shunt capacitors can tune the oscillation frequency slightly

● Oscillation frequency between ωs and ω

p

● |gm/ω2C

1C

2 | increases ⇒ greater loss

compensation (greater oscillator loop gain)● g

ds results in extra loss; minimize

33Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 8: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Oscillator principle

● Pole/zero of impedance and admittance lie between ω

s and ω

p

34Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 9: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Crystal oscillators

● Crystal replaces inductor-parallel mode● Inverter biased in high gain region acts as a g

m

35Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 10: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

CMOS crystal oscillators

● Crystal power dissipation in parallel resonant mode ~ V

rms

2/Rs•1/1+Q2(C

m/2C

0)2

36Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 11: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

CMOS crystal oscillator design

● 32,768Hz crystal: suitable for a digital clock● Determine C

m, L

m, R

m from crystal specs.

Crystal can be modeled using these.● Design a suitable active element for the

oscillator. e.g. inverter● Variable C

1 or C

2 useful for trimming the

frequency. ● Calculate crystal power dissipation. Ensure

that it is within specs. 37Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 12: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: dividers

● Cascade structure

38Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 13: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: dividers

● Dividers: simple state machines● Avoid glitches

39Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 14: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: latches

● Low speed-static latches

40Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 15: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: displays

● Display type: LED: bright / LCD: low power● Interface type: 7 segment / dot matrix /

anything else

41Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 16: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: display drivers

42Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 17: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: display drivers

43Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

● Switch+resistor– Used in discrete drivers

● Current source drive– Easily implemented in CMOS

● Gate switching– Small switches, complementary switching

control signals● Source switching

– Large switches, single switching control signal

Page 18: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: display drivers

44Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

● Output current drive ~ mA (LEDs)● Progressively larger driver for large loads

Page 19: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: continuous drive

● Simple● 7*N pins, drivers for N displays

45Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 20: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: multiplexed drive

46Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 21: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: Multiplexed drive

● Cycle through N displays at a high rate ~ few kHz to result in a persistent display

● N+7 pins, drivers for N displays● Display blanking to avoid wrong digit

flickering. Enable only when digit input is stable

● Larger peak current (~sqrt(N)) to preserve brightness

● Dot matrix displays: multiplexed row/column drivers

47Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 22: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: Time set function

● Advance minute/hour counter @ 1/sec.

48Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 23: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: Time set function

● Advance minute/hour counter @ input pulse rate.

49Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 24: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: Time set function

● Switching between “setting” mode and “normal” mode should be glitch free-i.e. No spurious edges.

● Off chip switch inputs should be debounced.

50Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 25: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: Alarm function

● Digital clock, AM radio: low frequency circuits, but– Need to complete it!– Minimize power– Minimize supply voltage– etc.

51Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 26: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: Alarm function

● Alarm circuitry core same as clock circuitry.

52Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 27: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: Design review

● Present details of – Timebase – Supply voltage– Dividers– Display– Decoders– Display drivers– Time setting– Alarm– Anything else you want to put in

53Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005 

Page 28: E4332: VLSI Design Laboratorynagendra/E4332/current/handouts/digital-clock.pdf · Digital clock: Multiplexed drive Cycle through N displays at a high rate ~ few kHz to result in a

Digital clock: design flow

● Dividers, decoders, drivers ...● Prioritize essential blocks.

54Nagendra Krishnapura: VLSI Design Laboratory, Spring 2005