Digital System Design Multiplexers and Demultiplexers, and Encoders and Decoders.

Slides:



Advertisements
Similar presentations
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Encoders.
Advertisements

Encoders Three-state devices Multiplexers
Modular Combinational Logic
Overview Part 2 – Combinational Logic Functions and functional blocks
Combinational Circuits
Functions and Functional Blocks
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
COE 202: Digital Logic Design Combinational Circuits Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
Design of Two-Level Multiple-Output Networks
Combinational Logic Building Blocks
EE2174: Digital Logic and Lab
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
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)
ETE Digital Electronics Multiplexers, Decoders and Encoders [Lecture:10] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Combinational Logic Chapter 4.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexers.
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.
Top-down modular design
Chapter 3 Decoder and Encoder Digital Logic Design III
Combinational Logic Design
Logic Design with MSI Circuits
Decoders.
1 Digital Logic Design Week 7 Decoders, encoders and multiplexers.
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
Digital Logic Problems (II) Prof. Sin-Min Lee Department of Mathematics and Computer Science.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
Combinational Design, Part 3: Functional Blocks
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
Multiplexers and Demultiplexers, and Encoders and Decoders
DLD Lecture 15 Magnitude Comparators and Multiplexers
ECE 331 – Digital System Design Multiplexers and Demultiplexers (Lecture #13)
Decoders, Encoders, Multiplexers
CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has.
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.
A. Yaicharoen 1 1/2551 Logic Design with MSI Circuits วัตถุประสงค์ของบทเรียน  รู้จักวงจรประเภท MSI  เข้าใจการทำงานของวงจร MSI ที่มีใช้ อยู่ทั่วไป  สามารถประยุกต์ใช้วงจร.
Digital Systems Section 11 Decoders and Encoders.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
Multiplexors Decoders  Decoders are used for forming separate signals for different combination of input signals.  The multiplexer circuit is a digital.
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 4 -Part 1.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Multiplexers.
MSI Combinational logic circuits
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
Combinational Circuits. Outline Boolean Algebra Decoder Encoder MUX.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
Digital Design Module 2 Multiplexer and Demultiplexer
Chapter4: Combinational Logic Part 4 Originally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
MSI Circuits.
Gunjeet kaur Dronacharya Group of Institutions. Demultiplexers.
Instructor: Alexander Stoytchev
ENG2410 Digital Design “Combinational Logic Design”
EKT 124 MUX AND DEMUX.
CS221: Digital Logic Design Combinational Circuits 3
Multiplexers and Demultiplexers,
Combinational Functions and Circuits
Combinational Circuit Design
Lecture 4: Combinational Functions and Circuits
COE 202: Digital Logic Design Combinational Circuits Part 3
Multiplexers Anindya IE CSE.
Digital Systems Section 17 Decoders and Encoders.
ECE 331 – Digital System Design
Digital System Design Combinational Logic
Arithmetic Circuits.
Presentation transcript:

Digital System Design Multiplexers and Demultiplexers, and Encoders and Decoders

2 Multiplexers

3 A multiplexer has  N control inputs  2 N 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.

4 Multiplexers Z = A′.I 0 + A.I 1 Data inputs Control input

5 Multiplexers Z = A′.B'.I 0 + A'.B.I 1 + A.B'.I 2 + A.B.I 3 ABF 00I0I0 01I1I1 10I2I2 11I3I3 MSBLSB

6 Multiplexers Z = A′.B'.C'.I 0 + A'.B'.C.I 1 + A'.B.C'.I 2 + A'.B.C.I 3 + A.B'.C'.I 0 + A.B'.C.I 1 + A'.B.C'.I 2 + A.B.C.I 3 MSBLSB ABCF 000I0I0 001I1I1 010I2I2 011I3I3 100I4I4 101I5I5 110I6I6 111I7I7

Fall 2010ECE Digital System Design7 Multiplexers

8 Exercise: Design an 8-to-1 multiplexer using 4-to-1 and 2-to-1 multiplexers only.

9 Multiplexers Exercise: Design a 16-to-1 multiplexer using 4-to-1 multiplexers only.

Fall 2010ECE Digital System Design10 Multiplexer (Bus)

11 Demultiplexers

12 Demultiplexers A demultiplexer has  N control inputs  1 data input  2 N outputs A demultiplexer routes (or connects) the data input to the selected output.  The value of the control inputs determines the output that is selected. A demultiplexer performs the opposite function of a multiplexer.

13 Demultiplexers ABWXYZ 00I I I I W = A'.B'.I X = A.B'.I Y = A'.B.I Z = A.B.I Out 0 In S1S1 S0S0 I W X Y Z AB Out 1 Out 2 Out 3

14 Decoders

15 Decoders A decoder has  N inputs  2 N outputs A decoder selects one of 2 N outputs by decoding the binary value on the N inputs. The decoder generates all of the minterms of the N input variables.  Exactly one output will be active for each combination of the inputs. What does “active” mean?

16 Decoders ABWXYZ Active-high outputs B W X Y Z I0I0 I1I1 A Out 0 Out 1 Out 2 Out 3 W = A'.B' X = A.B' Y = A'.B Z = A.B msb

Fall 2010ECE Digital System Design17 Decoders ABWXYZ Active-low outputs W = (A'.B')' X = (A.B')' Y = (A'.B)' Z = (A.B)' msb B W X Y Z I0I0 I1I1 A Out 0 Out 1 Out 2 Out 3

18 Decoders msb

19 Decoder with Enable EnABWXYZ xx0000 enabled disabled high-level enable Enable B W X Y Z I0I0 I1I1 A Out 0 Out 1 Out 2 Out 3 En

20 Decoder with Enable EnABWXYZ xx0000 enabled disabled Enable B W X Y Z I0I0 I1I1 A Out 0 Out 1 Out 2 Out 3 En low-level enable

21 Decoders Exercise: Design a 4-to-16 decoder using 2-to-4 decoders only.

22 Encoders

23 Encoders An encoder has  2 N inputs  N outputs An encoder outputs the binary value of the selected (or active) input. An encoder performs the inverse operation of a decoder. Issues  What if more than one input is active?  What if no inputs are active?

24 Encoders ABCDYZ D Z Y I0I0 I1I1 C B I2I2 I3I3 A Out 0 Out 1

25 Priority Encoders If more than one input is active, the higher-order input has priority over the lower-order input.  The higher value is encoded on the output A valid indicator, d, is included to indicate whether or not the output is valid.  Output is invalid when no inputs are active d = 0  Output is valid when at least one input is active d = 1 Why is the valid indicator needed?

26 Priority Encoders Valid bit msb

27 Designing logic circuits using multiplexers

28 Using an n-input Multiplexer Use an n-input multiplexer to realize a logic circuit for a function with n minterms.  m = 2 n, where m = # of variables in the function Each minterm of the function can be mapped to an input of the multiplexer. For each row in the truth table, for the function, where the output is 1, set the corresponding input of the multiplexer to 1.  That is, for each minterm in the minterm expansion of the function, set the corresponding input of the multiplexer to 1. Set the remaining inputs of the multiplexer to 0.

29 Using an n-input Mux Example: Using an 8-to-1 multiplexer, design a logic circuit to realize the following Boolean function F(A,B,C) =  m(2, 3, 5, 6, 7)

30 Using an n-input Mux Example: Using an 8-to-1 multiplexer, design a logic circuit to realize the following Boolean function F(A,B,C) =  m(1, 2, 4)

31 Using an (n / 2)-input Multiplexer Use an (n / 2)-input multiplexer to realize a logic circuit for a function with n minterms.  m = 2 n, where m = # of variables in the function Group the rows of the truth table, for the function, into (n / 2) pairs of rows.  Each pair of rows represents a product term of (m – 1) variables.  Each pair of rows can be mapped to a multiplexer input. Determine the logical function of each pair of rows in terms of the m th variable.  If the m th variable, for example, is x, then the possible values are x, x', 0, and 1.

32 Using an (n / 2)-input Mux Example: F(x,y,z) =  m(1, 2, 6, 7)

33 Using an (n / 2)-input Mux Example: F(A,B,C,D) =  m(1,3,4,11,12–15)

34 Using an (n / 4)-input Mux The design of a logic circuit using an (n / 2)-input multiplexer can be easily extended to the use of an (n / 4)-input multiplexer.

35 Designing logic circuits using decoders

36 Using an n-output Decoder Use an n-output decoder to realize a logic circuit for a function with n minterms. Each minterm of the function can be mapped to an output of the decoder. For each row in the truth table, for the function, where the output is 1, sum (or “OR”) the corresponding outputs of the decoder.  That is, for each minterm in the minterm expansion of the function, OR the corresponding outputs of the decoder. Leave remaining outputs of the decoder unconnected.

37 Using an n-output Decoder Example: Using a 3-to-8 decoder, design a logic circuit to realize the following Boolean function F(A,B,C) =  m(2, 3, 5, 6, 7)

38 Using an n-output Decoder Example: Using two 2-to-4 decoders, design a logic circuit to realize the following Boolean function F(A,B,C) =  m(0, 1, 4, 6, 7)

39 Questions?