K- Map Implementation With Mux
K- Map Implementation With Mux
Mux
Multiplexer
• Also called data selectors.
• Basic function: select one of its data input
lines and place the corresponding information
onto a single output line.
• input bits needed to specify which input line
is to be selected.
– Place binary code for a desired data input line
onto its select input lines.
I0
Use of Multiplexers/Selectors
2:1
mux Z Z = A' I 0 + A I 1
I1
I0
I1
4:1 Z Z = A' B' I0 + A' B I1 + A B' I2 + A B I3
I2 mux
I3
A B
I0
I1
I2
I3
I4
8:1
Z Z = A' B' C' I0 + A' B' C I1 + A' B C' I2 + A' B C I3 +
mux
I5 A B' C' I4 + A B' C I5 + A B C' I6 + A B C I7
I6
I7 n
In general, Z = S 2 -1m I
k=0 k k
A B C in minterm shorthand form for a 2 n :1 Mux
ECE C03 Lecture 5 3
Realization of 4-to-1 line multiplexer
Symbol
Logic Diagram
Truth Table
Realization of 4-to-1 line multiplexer
• Alternate description:
𝑓0 𝐼0 8-to-1
𝑓1 𝐼1 MUX
𝑓2 𝐼2
𝑓3 𝐼3
𝑓
𝑓4 𝐼4
𝑓5 𝐼5
𝑓6 𝐼6
𝑓7 𝐼7
1 𝐸𝑆 2𝑆 1𝑆 0
𝑥 𝑦𝑧
Example:
1 𝐼0 8-to-1
0 0 0 MUX
0 0 1 0 𝐼1
0 1 0 1 𝐼2
0 1 1
1 𝐼3
1 0 0
0 𝐼4 𝑓
1 0 1
1 1 0 1 𝐼5
1 1 1 0 𝐼6
0 𝐼7
1 𝐸𝑆 2𝑆 1𝑆 0
𝑥 𝑦𝑧
Logic Design with Multiplexers
• If at least one input variable of a Boolean
function is available in both its complemented
and uncomplemented form, any -variable
function is realizable with a -to-1-line multiplexer.
• For the case of a 3-variable function, only a 4-to-
1 multiplexer is needed.
0 0 0
0 0 1 𝑓 0 ⋅ 𝑧+ 𝑓 1 ⋅ 𝑧
0 1 0 𝑓 2 ⋅ 𝑧+ 𝑓 3 ⋅ 𝑧
0 1 1 𝑓 4 ⋅ 𝑧 + 𝑓 5 ⋅𝑧
1 0 0
𝑓 6 ⋅ 𝑧 + 𝑓 7⋅ 𝑧
1 0 1
1 1 0
1
1 1 1
𝑥𝑦
Example
0 0 0 𝑧
0 0 1 1
0 1 0 𝑧
0 1 1
0
1 0 0
1 0 1
1
1 1 0
1 1 1
𝑥𝑦
Logic Design with Multiplexers and K-maps
00 01 1 1 1 0
𝑆 1= 𝑥 𝐼 0 𝐼 1
𝐼 2 𝐼 3
𝑧 𝑧 𝑧 𝑧
0 1 0 1 0 1 0 1
0 0 0 00 01 1 1 1 0
0 0 1 1 0 1 1
0 1 0 𝑆 1= 𝑥
0 1 1 0 1 0 0
1 0 0
1 0 1 𝑧 𝑧 𝑧 𝑧
1 1 0
0 1 0 1 0 1 0 1
1 1 1 1 0 1 1 0 1 0 0
map map map map
𝐼 0= 𝑧𝐼 1 =1𝐼 2= 𝑧
𝐼 3= 0
Realization
0 0 0 𝑧
0 0 1 1
0 1 0 𝑧
0 1 1
0
1 0 0
1 0 1
1
1 1 0
1 1 1
𝑥𝑦
Alternative Structures
00 01 1 1 1 0
𝑥
00 01 1 1 1 0
𝑆 0= 𝑥 𝐼 0 𝐼 2
𝐼 1 𝐼 3
8-to-1-line multiplexers and 4-variable
Boolean functions
• Can do the same thing, three variables are placed on select
lines, inputs to the data lines are single-variable functions.
• Example:
Can we do better?
• By allowing realizations of -variable functions
as inputs to the data input lines, -to-1-line
multiplexers can be used in the realization of -
variable functions.
• E.g.: input variables w and x are applied to
the select inputs. Functions of the y and z
variables appear at the data input lines.
K-map Structure
Example:
𝑓 ( 𝑥 , 𝑦 , 𝑧 ) =∑𝑚(0 ,1 ,5 , 6, 7 ,9 , 13, 14)
Example
Example
Multiplexer Tree
• implement by 4x1 mux
• implement by 2x1 mux