ECE2030 Introduction to Computer Engineering Lecture 14: Sequential Logic Circuits Prof. Hsien-Hsin Sean Lee Prof. Hsien-Hsin Sean Lee School of Electrical and Computer School of Electrical and Computer Engineering Engineering Georgia Tech Georgia Tech
33
Embed
Lec14 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Sequential Logic
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
ECE2030 Introduction to Computer Engineering
Lecture 14: Sequential Logic Circuits
Prof. Hsien-Hsin Sean LeeProf. Hsien-Hsin Sean LeeSchool of Electrical and Computer EngineeringSchool of Electrical and Computer EngineeringGeorgia TechGeorgia Tech
2
Sequential Logic Circuits
• Sequential circuits – Combinational logic circuits– State information (stored in memory)
• Output is a function of inputs and present state• Can be synchronous or asynchronous
Combinationalcircuits
inputs outputs
StorageElementdelaydelay
Present Present StateState
Next Next StateState
Controller by a periodic clock or an event
trigger
3
State machine exampleA TV channel control
CH 2CH 2 CH 3CH 3
CH 1CH 1
0
0
1 1
1
0
4
Sequential Logic Circuits
• Synchronous Circuits use clock pulse to synchronize• For a typical synchronous design, data are latched
into the storage upon clock transition (edge-triggered)
Combinationalcircuits
inputs outputs
StorageElement
Present Present StateState
Next Next StateState
clock
5
Closed-Loop Logic for Storing Information
10
A buffer
Tpd Tpd
XX
6
SR Latch
SS
RR
QQQQNN
7
SR Latch
S R Q QN
0 0 Q Q0 1 0 11 0 1 01 1 0 0
SS
QQ
QQNN
RR
ResetSetUndefined
No Change
8
SR Latch
S R Q QN
0 0 1 10 1 1 01 0 0 11 1 Q Q
RR
QQ
QQNN
SS
ResetSet
Undefined
No Change
9
SR Latch w/ Control
C S R Q QN
0 X X Q Q
1 0 0 Q Q
1 0 1 0 1
1 1 0 1 0
1 1 1 1 1
QQ
QQNN
RR
CC
SS
ResetSetUndefined
No ChangeNo Change
10
Issue of an SR Latch or SR Latch
SS
QQ
QQNN
RR
SS
RR
S R Q QN
0 0 Q Q
0 1 0 1
1 0 1 0
1 1 0 0
QQ
QQNN
Race, and UnstableRace, and Unstable
11
D LatchQQ
QQNN
CC
DD
C D Q QN
0 X Q Q
1 0 0 1
1 1 1 0
12
D Latch Keeping Data for Read
QQ
QQ
13
D Latch Writing Data DD
DD QQ
QQ
14
10T D Latch w/ Transmission Gates
DD
EnEn
EnEn
EnEn
QQ
QQ
15
10T D Latch w/ Transmission Gates
DD
En=1En=1
EnEn
QQ
QQ
DD
Writing Data
DD
DDEnEn
16
10T D Latch w/ Transmission Gates
D_newD_new
En=0En=0
EnEn
QQ
QQ
Writing Data
DD
DD
DD
EnEn
17
D Latch Symbol
DD
EnEn
QQ
QQ
En D Q Q0 X NC NC
1 0 0 1
1 1 1 0
NC: No Change
18
Latch is Transparent• D Latch is called “transparent” or “level
sensitive”• Output follows input instantaneously
EnEn
DD
QQ
QQ
Transparent
19
Transparency PropertyDD
EnEn
QQTransparent
Latch
DD
EnEn
QQStorage
Cell
00
DD
EnEn
QQStorage
Cell
11
Latch acts like a WireLatch acts like a Wire
20
Problem of Transparency
• A momentary input change tunnels through the latch and the entire circuitry