Multiplexers Mux.

Slides:



Advertisements
Similar presentations
1 EECS 465: Digital Systems Design Lecture Notes Logic Design Using Compound Components: Multiplexers SHANTANU DUTT Department of Electrical and Computer.
Advertisements

Combinational Circuits
Documentation Standards
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Princess Sumaya University
Princess Sumaya Univ. Computer Engineering Dept. Review:
1 Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO.
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 3 OF 3) MULTIPLEXERS DEMULTIPLEXERS.
CS 151 Digital Systems Design Lecture 15 Magnitude Comparators and Multiplexers.
EECC341 - Shaaban #1 Lec # 10 Winter Implementing n-variable Functions Using 2 n -to-1 Multiplexers Any n-variable logic function, in canonical.
Computer Arithmetic, Multiplexers Prof. Sin-Min Lee Department of Computer Science.
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Multiplexers and Demultiplexers (Lecture #12)
Multiplexer MUX. 2 Multiplexer Multiplexer (Selector)  2 n data inputs,  n control inputs,  1 output  Used to connect 2 n points to a single point.
Example of a Combinatorial Circuit: A Multiplexer (MUX)
Chapter2 Digital Components Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
ETE Digital Electronics Multiplexers, Decoders and Encoders [Lecture:10] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Princess Sumaya Univ. Computer Engineering Dept. Review:
Combinational Circuits
Shannon’s Expansion Muxes and Encoders. Tri-State Buffers  A tri-state buffer has one input x, one output f and one control line e Z means high impedance,
Combinational Logic Chapter 4.
Outline Decoder Encoder Mux. Decoder Accepts a value and decodes it Output corresponds to value of n inputs Consists of: Inputs (n) Outputs (2 n, numbered.
Chapter 3 Decoder and Encoder Digital Logic Design III
Combinational Logic Design
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Digital Logic Problems (II) Prof. Sin-Min Lee Department of Mathematics and Computer Science.
Multiplexers and Demultiplexers, and Encoders and Decoders
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
(Combinational Logic Circuit)
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
DLD Lecture 15 Magnitude Comparators and Multiplexers
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 12: Multiplexers, Decoders, Encoders, Shift.
Multiplexers. Outline  Larger Multiplexers  Standard MSI Multiplexer  Implementing Functions with Multiplexers  Implementing Functions with Smaller.
Computer Science 210 Computer Organization Control Circuits Decoders and Multiplexers.
Combinational Circuits by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Digital System Design Multiplexers and Demultiplexers, and Encoders and Decoders.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Multiplexers.
Combinational Circuits. Outline Boolean Algebra Decoder Encoder MUX.
Multiplexer (MUX) A multiplexer can use addressing bits to select one of several input bits to be the output. A selector chooses a single data input and.
A multiplexer (MUX) selects one data line from two or more input lines and routes data from the selected line to the output. The particular data line that.
Digital Design Module 2 Multiplexer and Demultiplexer
Chapter4: Combinational Logic Part 4 Originally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Multiplexer.
EECS 465: Digital Systems Design Lecture Notes
ECE 3130 Digital Electronics and Design
ECE 3130 Digital Electronics and Design
Multiplexers (Data Selectors)
EKT 124 MUX AND DEMUX.
Combinational Circuits
CS221: Digital Logic Design Combinational Circuits 3
Combinational Circuits
EECS 465: Digital Systems Design Lecture Notes #3
Multiplexers and Demultiplexers,
OTHER COMBINATIONAL LOGIC CIRCUITS
Princess Sumaya University
The Digital Logic Level
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
EET107/3 DIGITAL ELECTRONICS 1
COE 202: Digital Logic Design Combinational Circuits Part 3
Princess Sumaya University
EECS 465: Digital Systems Design Lecture Notes #3
Digital System Design Combinational Logic
Arithmetic Circuits.
ECE 352 Digital System Fundamentals
Computer Architecture
Example of a Combinatorial Circuit: A Multiplexer (MUX)
Presentation transcript:

Multiplexers Mux

Multiplexer (MUX) A multiplexer can use addressing bits to select one of several input bits to be the output. A selector chooses a single data input and passes it to the MUX output It has one output selected at a time. 2

Multiplexers A multiplexer has N control inputs 2N data inputs 1 output A multiplexer routes (or connects) the selected data input to the output. The value of the control inputs determines the data input that is selected.

Multiplexer (MUX) Consists of: Inputs (multiple) = 2n Output (single) Selectors (# depends on # of inputs) = n Enable (active high or active low)

A 2:1 MUX selects input Ii if S0 = I [If S0 = 0, Z = I0 The same can be said about a 4:1 MUX: Input Ii is selected (Z=Ii) if S1S0 combination represents the number i in binary. Z I1 4:1 MUX I2 I3 S1 S0

In general, # of data inputs (Iis) is 2n # of control I/Ps = n [If S1S0 = 00 (#0), Z = Io S1S0 = 01 (#1), Z = I1 S1S0 = 10 (#2), Z = I2 S1S0 = 11 (#3), Z = I3] A generalized or symbolic TT S1 S0 Z 0 0 I0 0 1 I1 1 0 I2 1 1 I3

4 to 1 line multiplexer 4 to 1 line multiplexer 2n MUX to 1 n for this MUX is 2 This means 2 selection lines s0 and s1 S1 S0 F I0 1 I1 I2 I3 7

Design of MUXes using Divide-&-Conquer • A 4:1 MUX can be hierarchically constructed using 2:1 MUXes Idea: Divide the selection problem by bits of the select/control variables These inputs should have different lsb or S0 values, since their sel. is based on S0. All other bits should be equal. I1 2:1 MUX S0 I0 I3 I2 Z S1 MSB Inputs selected are those w/ the same lsb or S0 values. So further selection needs to be based on the non-lsb bits. I0 Z I1 4:1 MUX I2 I3 S0 S1 These inputs should have different lsb or S0 values, since their sel. is based on S0. All other bits should be equal. LSB of control variables

Opening up the 8:1 MUX’s hierarchical design Selected when S0 = 0 I0 I0 2:1 MUX I1 Selected when S0 = 0, S1 = 1, S2=1 S0 2:1 MUX 8:1 MUX I0 I1 I2 I3 I4 I5 I6 I7 S2 S1 S0 I2 I2 2:1 MUX I2 I6 2:1 MUX I3 S1 Z Z 2:1 MUX S0 I6 S2 I4 I4 2:1 MUX S1 I5 S0 Selected when S0 = 0, S1 = 1. These i/ps should differ in S2 I6 I6 2:1 MUX These inputs should have different lsb or S0 values, since their sel. is based on S0 (all other remaining, i.e., unselected bit values should be the same). Similarly for other i/p pairs at 2:1 Muxes at this level. These inputs should have different S1 values, since their sel. is based on S1 (all other remaining, i.e., unselected bit values should be the same). Similarly for other i/p pairs at 2:1 Muxes at this level. I7 S0

An 8:1 MUX is designed similarly. Selected when S0 = 0 I0 I0 2:1 MUX I1 S0 I1 I2 I2 2:1 MUX I3 4:1 MUX I0 I1 I2 I3 I4 I5 I6 I7 I3 Z 8:1 MUX I5 S0 Z I4 I4 2:1 MUX I5 S2 S1 S0 I6 S2 S1 S0 I6 2:1 MUX I7 I7 These inputs should have different lsb or S0 values, since their sel. is based on S0 (all other remaining, i.e., unselected bit values should be the same). Similarly for other i/p pairs at 2:1 Muxes at this level. S0 Selected when S0 = 1

Multiplexers Z = A′.B'.C'.I0 + A'.B'.C.I1 + A'.B.C'.I2 + A'.B.C.I3 + MSB LSB A B C F I0 1 I1 I2 I3 I4 I5 I6 I7 Z = A′.B'.C'.I0 + A'.B'.C.I1 + A'.B.C'.I2 + A'.B.C.I3 + A.B'.C'.I0 + A.B'.C.I1 + A'.B.C'.I2 + A.B.C.I3

Princess Sumaya University Multiplexers 4241 - Digital Logic Design S1 S0 Y 0 0 I0 0 1 I1 1 0 I2 1 1 I3 MUX Y I0 I1 I2 I3 S1 S0 Dr. Bassam Kahhaleh

Princess Sumaya University Multiplexers 4241 - Digital Logic Design 2-to-1 MUX 4-to-1 MUX MUX Y I0 I1 S MUX Y I0 I1 I2 I3 S1 S0 Dr. Bassam Kahhaleh

Princess Sumaya University Multiplexers 4241 - Digital Logic Design Quad 2-to-1 MUX x3 x2 x1 x0 MUX Y I0 I1 S y3 y2 y1 y0 MUX A3 A2 A1 A0 S E Y3 Y2 Y1 Y0 B3 B2 B1 B0 S Dr. Bassam Kahhaleh

Princess Sumaya University 4241 - Digital Logic Design Multiplexers Quad 2-to-1 MUX MUX A3 A2 A1 A0 S E Y3 Y2 Y1 Y0 B3 B2 B1 B0 Extra Buffers Dr. Bassam Kahhaleh

Implementation Using Multiplexers Princess Sumaya University 4241 - Digital Logic Design Implementation Using Multiplexers Example F(x, y) = ∑(0, 1, 3) x y F 0 0 1 0 1 1 0 1 1 MUX Y I0 I1 I2 I3 S1 S0 1 F x y Dr. Bassam Kahhaleh

Implementation Using Multiplexers Princess Sumaya University 4241 - Digital Logic Design Implementation Using Multiplexers Example F(x, y, z) = ∑(1, 2, 6, 7) MUX Y I0 I1 I2 I3 I4 I5 I6 I7 S2 S1 S0 1 x y z F 0 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 F x y z Dr. Bassam Kahhaleh

Implementation Using Multiplexers Princess Sumaya University 4241 - Digital Logic Design Implementation Using Multiplexers Example F(x, y, z) = ∑(1, 2, 6, 7) x y z F 0 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 MUX Y I0 I1 I2 I3 S1 S0 z F = z F z F = z 1 F = 0 x y F = 1 Dr. Bassam Kahhaleh

Implementation Using Multiplexers Princess Sumaya University 4241 - Digital Logic Design Implementation Using Multiplexers Example F(A, B, C, D) = ∑(1, 3, 4, 11, 12, 13, 14, 15) A B C D F 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 MUX Y I0 I1 I2 I3 I4 I5 I6 I7 S2 S1 S0 D F = D D F = D D F = D F F = 0 D F = 0 1 F = D 1 F = 1 F = 1 A B C Dr. Bassam Kahhaleh

Thank you