Digital Electronics Combinational Logic
Digital Electronics Combinational Logic
Digital Electronics Combinational Logic
COMBINATIONAL LOGIC
Combinational Circuits
Combinational
n inputs • • m outputs
• Circuits •
• •
When input changes, output may change (after a delay)
Combinational Circuits
?
■ Boolean function
A
F2
C
B
C
■ Truth table
■ Design
– Given a desired function, determine its circuit
– Function may be expressed as:
■ Boolean function
■ Truth table
?
Analysis Procedure
■ Boolean Expression Approach
A
B
F1
C
ABC
A A+B+C
B AB'C'+A'BC'+A'B'C
C
A (A’+B’)(A’+C’)(B’+C’)
B
A
F2
C AB+AC+BC
B
C
F1=AB'C'+A'BC'+A'B'C+ABC
F2=AB+AC+BC
Analysis Procedure
■ Truth Table Approach A B C F1 F2
A= 0
0
0 0 0 0 0
B= 0 0
F1
C= 0
A= 0 0
B= 0 0
C= 0
0 1
A= 0
B= 0
0
0
A= 0
F2
C= 0 0
B= 0
C= 0
Analysis Procedure
x S
y HA HA
z C
x
S
y
C
z
Half Subtractor
X
D=XY+XY X Y D B
Y 0 0 0 0
B=XY
0 1 1 1
1 0 1 0
1 1 0 0
Half Subtractor using NANDgate
A B
•Taking the
double
B=AB inversion
D=AB+AB
Half Subtractor using NANDgate
D=AB . AB
B = AB = AB
Full subtractor
The full-subtractor is a combinational circuit which is used to
perform subtraction of three bits.
0 1 1 0 1
D=X-Y-Z (don't bother about sign)
1 0 0 1 0
B = 1 If X<(Y+Z)
1 0 1 0 0
1 1 0 0 0
Truth table 1 1 1 1 1
The truth table for the fullsubtractor
is given below.
Full subtractor
=X Y Z
B3 B2 B1 B0 G3 G2 G1 G1
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 0 0 0 1 1
3 0 0 1 1 0 0 1 0
4 0 1 0 0 0 1 1 0
5 0 1 0 1 0 1 1 1
6 0 1 1 0 0 1 0 1
7 0 1 1 1 0 1 0 0
8 1 0 0 0 1 1 0 0
9 1 0 0 1 1 1 0 1
Gray code to Binary code converter
Decimal Gray code I/P Binary O/p
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
3 0 0 1 1 0 0 1 0
2 0 0 1 0 0 0 1 1
6 0 1 1 0 0 1 0 0
7 0 1 1 1 0 1 0 1
4 0 1 0 0 0 1 1 1
12 1 1 0 0 1 0 0 0
13 1 1 0 1 1 0 0 1
15 1 1 1 1 1 0 1 0
14 1 1 1 0 1 0 1 1
Excess-3 to Binary code converter
Excess-3 I/p BCD O/P
E3 E2 E1 E0 D3 D2 D1 D0
0 0 1 1 0 0 0 0
0 1 0 0 0 0 0 1
0 1 0 1 0 0 1 0
0 1 1 0 0 0 1 1
0 1 1 1 0 1 0 0
1 0 0 0 0 1 0 1
1 0 0 1 0 1 1 0
1 0 1 0 0 1 1 1
1 0 1 1 1 0 0 0
1 1 0 0 1 0 0 1
Binary to BCD code converter
Decimal Binary I/p BCD O/P
B3 B2 B1 B0 D4 D3 D2 D1 D0
0 0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 0 1
2 0 0 1 0 0 0 0 1 0
4 0 1 0 0 0 0 1 0 0
5 0 1 0 1 0 0 1 0 1
6 0 1 1 0 0 0 1 1 0
7 0 1 1 1 0 0 1 1 1
10 1 0 1 0 1 1 0 0 0
11 1 0 1 1 1 0 0 0 1
Binary to Excess-3 converter
Binary I/p Excess-3 O/P
B3 B2 B1 B0 E3 E2 E1 E0
0 0 0 0 0 0 1 1
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
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0
THANKS…