Professional Documents
Culture Documents
Chapter 6 - Part 1 3
Inputs .
Combinational
. Outputs
. .
Logic Gates
Memory
Elements
(Flip-Flops)
Clock
Memory storage elements
◦ Latches
◦ Flip-flops
The two most popular varieties of storage cells
used to build sequential circuits are: latches
and flip-flops.
S R Q
R Q 0 0 hold
Reset R Q 0 1 0
Set S Q 1 0 1
S Q' 1 1 disallow
10
The o/p of NOR gate is 0, if any
i/p is 1 & o/p is 1, only when all R
Q
i/ps are 0.
In the RS FF
Q
At starting point, set i/p is 1 &
S
reset is 0
When a 1 is applied to both set S R Q Q’
& reset i/ps, both Q & Q’ o/ps 1 0 1 0
leads to 0 0 0 1 0
0 1 0 1
0 0 0 1
1 1 0 0
NAND basic FF circuit
operates with both i/ps at 1
S
Q
CLK
Q
R
CLK SR Q
0 XX No change
1 00 No change
1 01 0
1 10 1
1 11 Undefined
D CLK Q Q
D Q 0 0 1
1 1 0
CLK Q
: Rising Edge of Clock
15
D Flip-Flop Circuit
D
Q
CLK
CLK
Q
It is the refinement of RS FF.
K
T
Q
CLK
Q
Construction of Flip Flop
Positive Pulse
1
0
+ve Edge -ve Edge
0
-ve Edge +ve Edge
ADDERS
INPUTS OUTPUTS
A B C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
INPUTS OUTPUTS Notice the C column
(carry line) from the
A B C S truth table?
Recognize it? It’s an
0 0 0 0
AND!:
0 1 0 1 C=A•B
1 0 0 1
1 1 1 0
S is high if one and
INPUTS OUTPUTS exactly one input is
high …
A B C S
1 1 1 0 It is Exclusive OR. It is
usually labeled XOR
The XOR circuit delivers
INPUTS OUTPUTS the Sum Line (S) of adding
two single digits.
Q R
A B The AND circuit produces
A•B A + B the Carry Line (C).
0 0 0 0 A fundamental circuit
0 1 0 1 called a Half Adder,
which provides the
1 0 0 1 capability of adding two
single bit numbers.
1 1 1 0
Half Adder
A B
A
Sum
B
S
Half
Adder
C
Carry
A B S(um) C(arry)
0 0 0 0
0 1 1 0 S = AB + A B = A B
1 0 1 0 C = AB
1 1 0 1
to add 3 single digit numbers by stringing together
two half-adders:
◦ Two input lines feed into the first half adder; the third
input line functions as a carry-in line.
S = Cin A B
Cout = AB + Cin(A B)
3 single digit binary numbers can be added by
connecting two half-adders together
S = Cin A B
Cout = AB + Cin(A B)
A S
A S A S
Half Half
Adder Adder
B B C B C Cout
Cin
S = Cin A B
Cout = AB + Cin(A B)
H.A. H.A.
A
B S
Cin
Cout