Combinatinal Logic Circuits
Combinatinal Logic Circuits
B.V.V.L.KALA BHARATHI
Dept of ELECTRICAL AND ELECTRONICS ENGINEERING
Aditya Engineering College(A)
Surampalem.
Aditya Engineering College (A)
n inputs
• Combinational • m outputs
• •
• Circuits •
When input changes, output may change (after a delay)
A
C
B
F2
?
C
• Boolean function
• Truth table
• Design
• Given a desired function, determine its circuit
• Function may be expressed as:
• Boolean function ?
• Truth table
Digital Circuits and logic design 8/24/20
Aditya Engineering College (A)
Analysis Procedure
• Boolean Expression Approach
A
B
F1
C T2=ABC
A T1=A+B+C
B T3=AB'C'+A'BC'+A'B'C
C
A
B F’2=(A’+B’)(A’+C’)(B’+C’)
A
F2
C
F2=AB+AC+BC
B
C F1=AB'C'+A'BC'+A'B'C+ABC
Digital Circuits and logic design F2=AB+AC+BC 8/24/20
Aditya Engineering College (A)
Analysis Procedure
• Truth Table Approach
A=0
B=0 0 0 A B C F1 F2
F1
C=0
0 0 0 0 0
A=0 0
B=0 0
C=0
0 1
A=0
B=0
0
A=0 0
F2
C=0
0
B=0
C=0
0 1 0 1 0 0 1 0
A 1 0 1 0 A 0 1 1 1
C C
F1=AB'C'+A'BC'+A'B'C+ABC F2=AB+AC+BC
Digital Circuits and logic design 8/24/20
Aditya Engineering College (A)
Design Procedure
• BCD-to-Excess 3 Converter
C C
A B C D w x y z
0 0 0 0 0 0 1 1 1 1 1
0 0 0 1 0 1 0 0 1 1 1 1
x x x x B x x x x B
0 0 1 0 0 1 0 1 A 1 1 x x
A 1 x x
0 0 1 1 0 1 1 0 D D
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0 w = A+BC+BD x = B’C+B’D+BC’D’
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0 C C
1 0 0 0 1 0 1 1
1 1 1 1
1 0 0 1 1 1 0 0 1 1 1 1
1 0 1 0 x x x x x x x x B x x x x B
A 1 x x A 1 x x
1 0 1 1 x x x x
1 1 0 0 x x x x D D
1 1 0 1 x x x x
1 1 1 0 x x x x y = C’D’+CD z = D’
1 1Circuits
Digital 1 1and logic design
x x x x 8/24/20
Aditya Engineering College (A)
Design Procedure
• BCD-to-Excess 3 Converter
A B C D w x y z
A
0 0 0 0 0 0 1 1 w
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1 x
0 1 0 1 1 0 0 0 B
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1 C y
1 0 0 1 1 1 0 0
1 0 1 0 x x x x
D z
1 0 1 1 x x x x
1 1 0 0 x x x x
1 1 0 1 x x x x w = A + B(C+D) y = (C+D)’ + CD
1 1 1 0 x x x x x = B’(C+D) + B(C+D)’ z = D’
1 1Circuits
Digital 1 1and logic design
x x x x 8/24/20
Aditya Engineering College (A)
Basic Adders
There are full-adder and half-adder
Half-adder:
• The half-adder accepts two binary digits on its inputs and produces
two binary digits on its outputs, a sum bit and a carry bit
• Similar to XOR
Full-adder:
• The full-adder accepts two input bits and an input carry and
generates a sum output and an output carry
Full Adder
Ripple-Carry Adder
Subtraction
Two binary numbers are subtracted by subtracting each pair of bits together with
borrowing, where needed.
Subtraction Example:
0 0 1 1 1 1 1 0 0 Borrow
X 229 1 1 1 0 0 1 0 1
Y - 46 - 0 0 1 0 1 1 1 0
183 1 0 1 1 0 1 1 1
Half Subtractor
• Subtracting a single-bit binary value Y from anther X (I.e. X -Y ) produces a difference bit D and a borrow
out bit B-out.
• This operation is called half subtraction and the circuit to realize it is called a half subtractor.
X Y B-in D B-out Y
0 0 0 0 0 S = X’Y’(B-in) + XY’(B-in)’ + XY’(B-in)’ + XY(B-in)
S = X Å Y Å (C-in)
0 0 1 1 1
0 1 0 1 1 Borrow B-out X
0 1 1 0 1 XY
1 0 0 1 0 B-in 00 01 11 10
0 2 6 4
1 0 1 0 0 0 1
1 1 0 0 0 1 1 3 7 5
1 1 1 B-in
1 1 1 1 1
Y
D(X,Y, C-in) = S (1,2,4,7)
B-out = X’Y + X’(B-in) + Y(B-in)
B-out(x, y, C-in) = S (1,2,3,7)
Digital Circuits and logic design 8/24/20
Aditya Engineering College (A)
THANK YOU