Академический Документы
Профессиональный Документы
Культура Документы
Sequential
(FlipFlop) Logic
Bruce Mayer, PE
Licensed Electrical & Mechanical Engineer
BMayer@ChabotCollege.edu
Engineering-43: Engineering Circuit Analysis
1
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Notice 1s in Rows
1, 5, 9, 13, 14, 15
Need only put 1s in these
locations; other cells
Assumed to be Zero
Engineering-43: Engineering Circuit Analysis
2
Row
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
A
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
B
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
C
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
D
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Q
0
1
0
0
0
1
0
0
0
1
0
0
0
1
1
1
01
11
00
01
11
10
00
ABCD
ABCD
ABCD
ABCD
01
ABCD
ABCD
ABCD
ABCD
11
11
ABCD
ABCD
ABCD
ABCD
10
10
ABCD
ABCD
ABCD
ABCD
00
01
10 AB\CD
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
F AC D A B C D A B
An Example of NAND-Gate Synthesis
NANDS are easier to construct than
ANDs, ORs, NORs
NANDs are the preferred gate for logic circuits
Engineering-43: Engineering Circuit Analysis
5
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Sequential Circuit
A sequential circuit
consists of a
feedback path,
and employs
some memory
elements
Combination
al outputs
Combination
al logic
Memory
outputs
Memory
elements
External
inputs
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Synchronous vs Asynchronous
Almost all Logic Chips Include a Clock
The Clock helps to Synchronize the
Operation of the Circuits.
The Clock is simply a very regular Hi/Lo
Pulse train
Logic Forms are divided into two groups:
SYNCHRONUS Depend on Clock
Asynchronous NO Clock-Dependency
Engineering-43: Engineering Circuit Analysis
8
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
R
S
Q
Q'
R
S
Q'
n-1
Q
Q'
n-1
1
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
??
??
Q
Q'
S'
R'
Q'
NAND notes
Any LO input HI output
Any LO HI
R
0
0
1
1
0
0
1
1
Qn-1
0
1
0
1
0
1
0
1
Qn
0 hold
1 reset
0
0 set
1 not allowed
1
X
X
characteristic equation
Qn = S + RQn-1
R
Q'
REset
SET
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
S
Reset
Hold
Set
All LO HI
Reset
Set
Race
100
R
S
Q
Q
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Clocked SR FlipFlop
Control times when
R and S
inputs matter
Otherwise, the slightest glitch on R or S while
enable is low could cause change in value stored
Ensure R & S stable before utilized (to avoid
transient R=1, S=1)
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Clocked SR FlipFlops
NOR-NOR
Implementation
Truth
Table
R
0
0
1
1
x
S En R S
Qn
0 0 1 1 NotAllowed
1 0 1 0 Reset to 0
0 0 0 1
Set to 1
1 x 0 0
Qn1
x 1 0 0
Qn1
x Dont Care
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Clocked SR FlipFlops
NAND-NOR
Implementation
Truth
Table
R
0
0
1
1
x
S C
Qn
0 x
Qn1
1 1
Set to 1
0 1 Reset to 0
1 1 NotAllowed
x 0
Qn1
x Dont Care
Circuit Symbol
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
SR FlipFlop Clock-Overide
Sometimes Need to Set or Reset the
FlipFlop withOUT Regard to the Clock
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
0
R
Clk=1
Q
S
0
holds D when
clock goes low
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
positive edge-triggered FF
negative edge-triggered FF
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
CLK
0
1
D Qn
x Qn1
x Qn1
0 0
1 1
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
A NAND Nest:
Circuit Symbol
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
ReCall NAND
Any LO Hi
ALL Hi LO
C
0
1
J
x
x
0
0
1
1
K
x
x
0
1
0
1
Qn
Qn1
Qn1
Qn1
0
1
Qn1
Notes
No Chg
No Chg
No Chg
Reset to 0
Set to 1
TOGGLE
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
D Q
Q0
D Q
Q1
OUT
CLK
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Clocked
Synchronous
System
D Q
Synchronizer
Q0
Async
Input D Q
Clock
Clock
D Q
Q1
Q0
Q1
Clock
is asynchronous and
fans out to D0 and D1
one FF catches the
signal, one does not
inconsistent state may
be reached!
CLK
Engineering-43: Engineering Circuit Analysis
23
Q1
D Q
Clock
In
Q0
D Q
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
FlipFlops Summarized
Development of D-FF
Level-sensitive used in custom integrated
circuits
can be made with 4 pairs of gates
Usually follows multiphase non-overlapping
clock discipline
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
FlipFlops Summarized
Historically J-K FF was popular but now
never used
Similar to R-S but with 1-1 being used to
toggle output (complement state)
Same Operation Can always be
implemented using D FlipFlops
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
FlipFlops Summarized
Reset (set state to 0) R
Synchronous: Dnew = R' Dold
Transition only when next clock edge arrives
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
WhiteBoard Work
Use Gates and a DFF to Implement the
JK-FF operation
C
0
1
J
x
x
0
0
1
1
K
x
x
0
1
0
1
Qn
Qn1
Qn1
Qn1
0
1
Qn1
Notes
No Chg
No Chg
No Chg
Reset to 0
Set to 1
TOGGLE
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
IEEE
91-1984
Gates
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Engineering 43
Appendix
Logic Syn
Bruce Mayer, PE
Licensed Electrical & Mechanical Engineer
BMayer@ChabotCollege.edu
Engineering-43: Engineering Circuit Analysis
29
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Row
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
A
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
B
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
C
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
D
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Q
0
1
0
0
0
1
0
0
0
1
0
0
0
1
1
1
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx
Bruce Mayer, PE
BMayer@ChabotCollege.edu ENGR-43_Lec-05c_Thevenin_AC_Power.pptx