Professional Documents
Culture Documents
DF GTU Study Material Presentations Unit-2 11082020085346AM
DF GTU Study Material Presentations Unit-2 11082020085346AM
GTU # 3130704
Unit-2
Combinational Digital
Circuits
𝑓 ( 𝐴, 𝐵 , 𝐶 )= 𝐴 𝐵+𝐵 𝐶
¿ 𝐴 𝐵 ( 𝐶 +𝐶 ) + 𝐵 𝐶 ( 𝐴+ 𝐴 )
¿ 𝐴 𝐵𝐶 + 𝐴 𝐵 𝐶+ 𝐴 𝐵 𝐶+ 𝐴 𝐵 𝐶
Value of Minterm = 1
Variable appears in uncomplemented form if it has a value of 1 in the combination and
appears in complemented form if it has a value of 0 in the combination
Sum of minterms whose value is equal to 1 is the standard sum of products form of the
function.
Minterms are denoted as m0, m1, m2, …,
For 3 variable function, m0=, m1=, m2=, m3=, m4=, m5=, m6=, and m7=
A
0 1
B
A B Minterm 0 2
0
0 0 m0 = A’B’
1 3
0 1 m1 = A’B 1
1 0 m2 = AB’
1 1 m3 = AB
A B C Minterm
AB
0 0 0 m0 = A’B’C’ C 00 01 11 10
0 0 1 m1 = A’B’C 0 2 6 4
0
0 1 0 m2 = A’BC’
1 3 7 5
0 1 1 m3 = A’BC 1
1 0 0 m4 = AB’C’
1 0 1 m5 = AB’C
1 1 0 m6 = ABC’ Minterm Number
1 1 1 m7 = ABC
AB
00 01 11 10
C
0 2 6 4
0
1 3 7 5
1 1 1 1 1
𝑓 = 𝐵𝐷
2 6 14 10 2 6 14 10
10 1 1 10
𝑓 = 𝐴𝐵𝐶 𝐷 + ′
𝐵 ′
𝐷 ′
𝑓 = 𝐴′ 𝐵′ 𝐶 ′+ 𝐴′ 𝐶 ′ 𝐷
AB
00 01 11 10
CD
0 4 12 8
00 0 0
1 5 13 9
01 0 0
𝑓 =( 𝐴+ 𝐶)( 𝐴′ +𝐶 ′ )
3 7 15 11
11 0 0
2 6 14 10
10 0 0
WX
00 01 11 10
YZ
0 4 12 8
00 x
1 5 13 9
01 1 x
3 7 15 11
𝐹 =𝑊 ′ 𝑋+𝑌𝑍
′
11 1 1 1 1
2 6 14 10
10 x
Considering value of to be function of map location with the variable and plotting 2 variable
map.
A A
B 0 1 B 0 1
X=1 if X=1 if C’ C’
0 0
C’=1 C’=1
1 X=0 X=1 if C’=1 1 0 C + C’
or if C = 1
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 19
Reducing Expressions with VEM (Example)
Choose groups of similar terms to cover all nonzero terms appearing in the map except “don’t
care” terms.
Rest complete process is similar to K-Map
𝑓 = 𝐴 𝐵′ 𝐶 𝐷+ 𝐴′ 𝐵 𝐶 ′ 𝐷+ 𝐴 𝐵′ 𝐶 𝐷 ′ + 𝐴𝐵 𝐶′ 𝐷+ 𝐴′ 𝐵′ 𝐶 ′ 𝐷
AB
00 01 11 10
C
0 D D D
𝑓 = 𝐴′ 𝐶 ′ 𝐷 +𝐵𝐶′ 𝐷 + 𝐴 𝐵′ 𝐶
1 D
D+D’
𝑓 = 𝐴′ 𝐵′ 𝐶 ′ 𝐷+ 𝐴′ 𝐵 𝐶 ′ 𝐷′ + 𝐴′ 𝐵 𝐶 ′ 𝐷+ 𝐴 𝐵′ 𝐶 ′ 𝐷 ′+ 𝐴 𝐵′ 𝐶 𝐷′ + 𝐴 𝐵′ 𝐶𝐷+ 𝐴𝐵𝐶𝐷 ′
AB
00 01 11 10
C
0 D D+D’
D’ D’
𝑓 = 𝐴′ 𝐶 ′ 𝐷 + 𝐴′ 𝐵𝐶 ′+ 𝐴𝐶𝐷 ′+ 𝐴𝐵′ 𝐷 ′+ 𝐴 𝐵′ 𝐶
1 D’ D+D’
D’
AB
CD 00 01 11 10
00 E E+E’
E’
01 E E+E’
𝑓 = 𝐵′ 𝐶 ′ 𝐸+ 𝐴 𝐵′ 𝐶′+ 𝐴′ 𝐵𝐶 𝐷+′ 𝐴′ 𝐵𝐶𝐸 ′
11 E’
10 E+E’
E’
The above theorem is applied repeatedly to all adjacent pairs of terms which results in prime
implicants.
Consider the minimization of the expression
= A’B’C’ + A’B’C + AB’C’ + AB’C
= A’B’(C + C’) + AB’(C + C’)
= A’B’ + AB’
= B’(A + A’)
= B’
A
B
C
D
Put a circle at the output of each AND gate and at the inputs to all OR gates
A
B S = A ⊕ B ⊕ Cin
Cin
Cout = AB + (A ⊕ B)Cin
Inputs Outputs
A
A B d b d=A⊕B
B
0 0 0 0
0 1 1 1 b = A’B
1 0 1 0
1 1 0 0
Limitation:
Half subtractor can be used only for LSB subtraction.
A
B d = A ⊕ B ⊕ bi
bi
b = A’B + (A ⊕ B)’bi
1 1 1 0 0 1 1 0
B4 A4 B3 A3 B2 A2 B1 A1
0 0 0
C3 C2 C1 0
FA4 FA3 FA2 FA1 Cin
C4 S4 S3 S2 S1
1 0 1 1 1
A4 A3 A2 A1 = 1010
B4 B3 B2 B1 = 1101
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 43
Binary Parallel Subtractor
1 1 0 1 1 0 1 1
B4 A4 B3 A3 B2 A2 B1 A1
0 1 0 0
1 0 1
C3 C2 C1 Cin= 1
FA4 FA3 FA2 FA1
Cout S4 S3 S2 S1
1 0 0 1 0
A4 A3 A2 A1 = 1101
B4 B3 B2 B1 = 1011
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 44
Binary Adder-Subtractor
B4 A4 B3 A3 B2 A2 B1 A1
M Bi O/P
0 0 0
C3 C2 C1 Cin
FA4 FA3 FA2 FA1 0 1 1
1 0 1
1 1 0
C4 S4 S3 S2 S1
An Bn = Gn
An Cn+1 = (An ⊕ Bn) Cn + An Bn
HA An ⊕ Bn = Pn Pn Cn = Co
Bn
HA Sn = An ⊕ Bn ⊕ Cn
Cn
P4
C4 S4
G4
B3
A3 P3
P3
G3 C3 S3
Look ahead
B2 carry adder
A2 P2
P2
G2 C2 S2
B1
A1 P1
P1
G1 S1
C1 C1
𝐺 4=∑ 𝑚(8,9,10,11,12,13,14,15)
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
𝐺3 =∑ 𝑚(4,5,6,7,8,9,10,11)
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
𝐺2 =∑ 𝑚(2,3,4,5,10,11,12,13)
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
𝐺1 =∑ 𝑚(1,2,5,6,9,10,13,14)
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 50
Binary to Gray Code Converter
K-Map for G4, G3, G2, G1 function and their minimization are as follows:
𝐺2 =∑ 𝑚(2,3,4,5,10,11,12,13) 𝐺1 =∑ 𝑚(1,2,5,6,9,10,13,14)
B4B3 B4B3
00 01 11 10 00 01 11 10
B2B1 B2B1
0 4 12 8 0 4 12 8
00 1 1 00
1 5 13 9 1 5 13 9
01 1 1 01 1 1 1 1
3 7 15 11 3 7 15 11
11 1 1 11
2 6 14 10 2 6 14 10
10 1 1 10 1 1 1 1
G4 = B4 B4 G4
G3 = B4’B3 + B4B3’ = B4 B3 G3
B3
G2 = B3’B2 + B3B2’ = B3 B2
G2
G1 = B2’B1 + B2B1’ = B2 B1 B2
G1
B1
A < B : L = A0’B0
If A0 = 1 and B0 = 1 (coincides) then A = B
A > B(G)
A = B : E = A0 B0
A0 B0 L E G
0 0 0 1 0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 59
2-bit Magnitude Comparator
Let the two 2-bit numbers be A = A1A0 and B = B1B0
1. If A1 = 1 and B1 = 0, then A > B or
2. If A1 and B1 coincide and A0 = 1 and B0 = 0, then A > B.
A > B : G = A1B1’ + (A1 ⊙ B1) A0B0’
3. If A1 = 0 and B1 = 1, then A < B or
4. If A1 and B1 coincide and A0 = 0 and B0 = 1, then A < B.
A < B : L = A1’B1 + (A1 ⊙ B1) A0’B0
5. If A1 and B1 coincide and if A0 and B0 coincide then A = B.
A = B : E = (A1 ⊙ B1)(A0 ⊙ B0)
A1
B1
A = B(E)
A0
B0
B0 A0’
A < B(L)
A1’
B1
Inputs
Outputs AB
00 01 11 10
parity bit C
A B C
(f) 0 1 1 A
B f
0 0 0 0 C
1 1 1
0 0 1 1
0 1 0 1 𝑓 = 𝐴′ 𝐵′ 𝐶+ 𝐴′ 𝐵 𝐶′+ 𝐴 𝐵𝐶+ 𝐴 𝐵′ 𝐶 ′
0 1 1 0 𝑓 = 𝐴′ ( 𝐵′ 𝐶 + 𝐵 𝐶 ′ )+ 𝐴(𝐵𝐶 + 𝐵′ 𝐶 ′ )
1 0 0 1
𝑓 = 𝐴′ ( 𝐵 ⨁ 𝐶 ) + 𝐴 ( 𝐵 ⨁ 𝐶 ) ′
1 0 1 0
𝑓 = 𝐴⊕ 𝐵 ⨁ 𝐶
1 1 0 0
1 1 1
Prof. Krunal D. Vyas 1 # 3130704 (DF) Unit 2 – Combinational Digital Circuits 63
Multiplexer/De-multiplexer,
Encoder/Decoder
Section - 6
Multiplexer
A multiplexer(MUX) is a device that allows digital information from several sources to be routed
onto a single line for transmission over that line to a common destination.
Consider an integer ‘m’, which is constrained by the following relation:
m = 2n, where m and n are both integers.
A m-to-1 Multiplexer has
m Inputs: I0, I1, I2, ................ I(m-1)
One Output: Y
n Control inputs: S0, S1, S2, ...... S(n-1)
One (or more) Enable input(s)
Such that Y may be equal to one of the inputs, depending upon the control inputs.
I2
Y
I1
I0
S1 S0 Enable (G)
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 67
Logic function generator using Multiplexer
Implement the following function using 8 to 1 MUX
F(x,y,z) =
S2 S1 S0
F z S0
x y z
y S1
0 0 0 1 x S2
0 0 1 0
1 D0
0 1 0 1 0 D1 8x1
0 1 1 1 1 D2 MUX Output = F
1 D3
1 0 0 0 0 D4
1 0 1 1 1 D5
1 1 0 0 0 D6
0 D7
1 1 1 0
Multiplexer with n-data select inputs can implement any function of n + 1 variables.
The first n variables of the function as the select inputs and to use the least significant input
variable and its complement to drive some of the data inputs.
If the single variable is denoted by D, each data output of the multiplexer will be D, D’, 1, or 0.
Suppose, we wish to implement a 4-variable logic function using a multiplexer with three data
select inputs.
O0 D S1 S1’ S0 S0’
1x4 O1
D
DEMUX O2 O0 = D S 1’ S0’
O3
O1 = D S 1’ S0
S1 S0
O2 = D S 1 S0’
Select code Outputs
S1 S0 O3 O2 O1 O0
O3 = D S 1 S0
0 0 0 0 0 D
0 1 0 0 D 0
1 0 0 D 0 0
1 1 D 0 0 0
I0 O0
I1 O1
I2 O2
. .
N inputs Decoder .
M outputs M = 2N
.
. .
IN-2 OM-2
IN-1 OM-1
D7 = ABC
D6 = ABC’
D5 = AB’C
D4 = AB’C’
D3 = A’BC
D2 = A’BC’
D1 = A’B’C
D0 = A’B’C’
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 76
Encoder
Device to convert familiar numbers or symbols into coded format.
It has a number of input lines, only one of which is activated at a given time, and produces an
N-bit output code depending on which input is activated.
Figure shows the block diagram of an encoder with M inputs and N outputs.
I0 O0
I1 O1
I2 O2
. .
M inputs
. Encoder .
N outputs M = 2N
. .
IM-2 ON-2
IM-1 ON-1
D0 D1 D2 D3 A B V
𝐵=∑ (1 , 3 , 4 ,5 ,7 , 9 ,11 , 12 ,13 ,15)
0 0 0 0 x x 0 𝑚
1 0 0 0 0 0 1 𝑉 =∑ (1 , 2, 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 ,12 , 13 , 14 , 15)
𝑚
x 1 0 0 0 1 1
x x 1 0 1 0 1
x x x 1 1 1 1
Prof. Krunal D. Vyas # 3130704 (DF) Unit 2 – Combinational Digital Circuits 78
Priority Encoder
𝐴=∑ (1 , 2, 3 , 5 , 6 , 7 , 9 , 10 , 11 ,13 ,14 ,15) 𝐵=∑ (1 , 3 , 4 ,5 ,7 , 9 ,11 , 12 ,13 ,15)
𝑚 𝑚
D0D1 D0D1
00 01 11 10 00 01 11 10
D2D3 D2D3
0 4 12 8 0 4 12 8
00 x 00 x 1 1
1 5 13 9 1 5 13 9
01 1 1 1 1 01 1 1 1 1
3 7 15 11 3 7 15 11
11 1 1 1 1 11 1 1 1 1
2 6 14 10 2 6 14 10
10 1 1 1 1 10
A = D3 + D 2 B = D3 + D2’ D1
D0D1 D3 B = D3 + D 2 ’ D 1
00 01 11 10
D2D3
0 4 12 8 D2
00 0 1 1 1 D1
1 5 13 9
01 1 1 1 1 A = D3 + D2
3 7 15 11
11 1 1 1 1 V = D 3 + D 2 + D 1 + D0
D0
2 6 14 10
10 1 1 1 1
V = D3 + D2 + D1 + D0
SI
Shift SO
control Shift register A
CLK x S
y FA
SI C
Serial z
input SO
Shift register B
Q D
Clear
A B
A4 A3 A2 A1 B4 B3 B2 B1
S2 (Mode - select)
S1
Cout Arithmetic Logic Unit
(Function - select)
(Output carry) (ALU) S0