EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 12: Multiplexers, Decoders, Encoders, Shift.

Slides:



Advertisements
Similar presentations
Modular Combinational Logic
Advertisements

Digital Logic Design Week 7 Encoders, Decoders, Multiplexers, Demuxes.
Multiplexer / Demultiplexer
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
CPEN Digital System Design
Combinational Logic Building Blocks
 Combinational circuit that selects binary information from one of many input lines and directs information to a single output line.
Multiplexers DeMultiplexers XOR gates
Combinational Logic Chapter 4.
3 rd IT PREPARED BY:- Zeel Jani ( ) Maitri Purabiya ( ) Manju Chufal( )
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
Combinational Logic Design
Figure 6.1. A 2-to-1 multiplexer.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Combinational Circuit – Arithmetic Circuit
Sneha.  Introduction to MUX and DEMUX Introduction to MUX and DEMUX  Multiplexer Multiplexer  4-to-1 Multiplexer (MUX) 4-to-1 Multiplexer (MUX)  Typical.
MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5) Dr. Costas Kyriacou and Dr. Konstantinos Tatas ACOE161 - Digital Logic.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
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.
Adders Half-adder  Adds two bits Produces a sum and carry  Problem: Cannot use it to build larger inputs Full-adder  Adds three 1-bit values Like half-adder,
Combinational Design, Part 3: Functional Blocks
Multiplexers XOR gates. Multiplexers A multiplexer is a digital switch - it connects data from one of n sources to its output. An n-input and b-bit multiplexer.
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1.
EKT 221 : Chapter 4 Computer Design Basics
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
CS/EE 3700 : Fundamentals of Digital System Design
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Multiplexers.
CSE 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
Digital Design Module 2 Multiplexer and Demultiplexer
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 23 Introduction Computer Specification –Instruction Set Architecture (ISA) - the specification.
Chapter4: Combinational Logic Part 4 Originally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1.
Multiplexer.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
ACOE161 (Spring2007)MSI Devices1 Revision on MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5)
MSI Circuits.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
1 Digital Logic Design (41-135) Chapter 6 Combinational Circuit Building Blocks Younglok Kim Dept. of Electrical Engineering Sogang University Spring 2006.
ECE 3130 Digital Electronics and Design
ECE 3130 Digital Electronics and Design
Instructor: Alexander Stoytchev
Multiplexer.
EKT 124 MUX AND DEMUX.
CSE 140 Lecture 12 Combinational Standard Modules
Multiplexer / Demultiplexer
Multiplexers and Demultiplexers,
Homework Reading Machine Projects Labs
Combinational Logic Circuits
Multiplexer / Demultiplexer
What is a Multiplexer (MUX)?
Instructor: Alexander Stoytchev
CSE 140 Lecture 12 Combinational Standard Modules
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Instructor: Alexander Stoytchev
Multiplexer / Demultiplexer
Multiplexers & Demultiplexers
13 Digital Logic Circuits.
Logic Circuits I Lecture 3.
Digital System Design Combinational Logic
Instructor: Alexander Stoytchev
Arithmetic Circuits.
ECE2030 HW-6.
Presentation transcript:

EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 12: Multiplexers, Decoders, Encoders, Shift Register Class book: Chapter 6 Online book: chapter 8

Multiplexer  In its standard form, a multiplexer takes an N-bit control input to determine which of 2 N data inputs will be passed to its single output.  In other words, a multiplexer selects one of multiple inputs  Functions may be implemented by using a combination of the control inputs and data inputs. 2

(a) Graphical symbol f s w 0 w (b) Truth table 0 1 f f s w 0 w 1 (c) Sum-of-products circuit s w 0 w 1 A 2-to-1 multiplexer 3

f s 1 w 0 w (b) Truth table w 0 w 1 s 0 w 2 w fs 1 0 s 0 w 2 w 3 f (c) Circuit s 1 w 0 w 1 s 0 w 2 w 3 (a) Graphic symbol A 4-to-1 multiplexer. 4

0 w 0 w w 2 w f 0 1 s 1 s Using 2-to-1 multiplexers to build a 4- to-1 multiplexer 5

w 8 w 11 s 1 w 0 s 0 w 3 w 4 w 7 w 12 w 15 s 3 s 2 f A 16-to-1 multiplexer. 6

x x s y 1 y 2 x 1 x 2 y 1 y 2 (a) A 2x2 crossbar switch (b) Implementation using multiplexers s A practical application of multiplexers 7

(a) Implementation using a 4-to-1 multiplexer f w w fw 1 0 w (b) Modified truth table fw 1 0 w f w 2 w f w 1 w 2 w 2 (c) Circuit Synthesis of a logic function using multiplexers 8

w 3 w 3 f w 1 0 w 2 1 (a) Modified truth table (b) Circuit fw 1 0 w w 1 w 2 w 3 f w 3 9 Implementation of the three-input majority function using a 4-to-1 multiplexer.

(a) Truth table w 1 w 2 w 3 f w 2 w 3  w 2 w 3  f w 3 w 1 (b) Circuit w 2 Three-input XOR implemented wit 2-to- 1 multiplexers 10

f w 1 w 2 (a) Truth table (b) Circuit w 1 w 2 w 3 f w 3 w 3 w 3 w 3 w 3 Three-input XOR function implemented with a 4-to-1 multiplexer 11

w 1 w 2 w 3 f (b) Circuit 0 1 f w 1 w 2 w 3 w 2 w 3 + f w 3 w 1 w 2 (b) Truth table 12 The three-input majority function implemented using a 2-to-1 multiplexer.

What is a Demultiplexer (DEMUX)?  A DEMUX is a digital switch with a single input (source) and a multiple outputs (destinations).  The select lines determine which output the input is connected to.  DEMUX Types  1-to-2 (1 select line)  1-to-4 (2 select lines)  1-to-8 (3 select lines)  1-to-16 (4 select lines) 13 Demultiplexer Block Diagram Select Lines Input (source) Outputs (destinations) 2N2N 1 N DEMUX

Typical Application of a DEMUX 14 Single Source Multiple Destinations Selector D0 D1 D2 D3 X DEMUX BASelected Destination 00B/W Laser Printer 01Fax Machine 10Color Inkjet Printer 11Pen Plotter B/W Laser Printer Color Inkjet Printer Pen Plotter Fax Machine

Decoder  In its standard form, a decoder takes an N-bit input and outputs 2 N functions, each of which is active for exactly one input combination.  In other words, a decoder outputs the minterms of the inputs (or with inverted outputs, the maxterms)  Functions may be implemented with the addition of a single extra gate. For example, an OR gate may be used to combine minterms for a sum-of-products implementation or an AND gate may be used to combine maxterms for a product-of-sums implementation. 15

0 w n1– n inputs En Enable 2 n outputs y 0 y 2 n 1– w An n-to-2 n binary decoder. 16

A 2-to-4 decoder y 0 w 1 0 w 0 (c) Logic circuit w 1 w 0 xx En y y y y 0 y 1 y 2 y 3 w 0 y 0 w 1 y 1 y 2 y 3 (a) Truth table(b) Graphical symbol 17

w 2 w 0 y 0 y 1 y 2 y 3 w 0 En y 0 w 1 y 1 y 2 y 3 w 0 y 0 w 1 y 1 y 2 y 3 y 4 y 5 y 6 y 7 w 1 A 3-to-8 decoder using two 2-to-4 decoders. 18

A 4-to-16 decoder built using a decoder tree. w 0 En y 0 w 1 y 1 y 2 y 3 y 8 y 9 y 10 y 11 w 2 w 0 y 0 y 1 y 2 y 3 w 0 En y 0 w 1 y 1 y 2 y 3 w 0 y 0 w 1 y 1 y 2 y 3 y 4 y 5 y 6 y 7 w 1 w 0 y 0 w 1 y 1 y 2 y 3 y 12 y 13 y 14 y 15 w 0 En y 0 w 1 y 1 y 2 y 3 w 3 19

w 1 w 0 w 0 En y 0 w 1 y 1 y 2 y 3 w 2 w 3 f s 0 s A 4-to-1 multiplexer built using a decoder.

21 Decoders: Designing Logic Circuits F =  m(0,2)

Sel m 1– Address Read d 0 d n1– d n2– m -to-2 m decoder 0/1 Data a 0 a 1 a m1– 22 A 2 m x n read-only memory (ROM) block.

2 n inputs w 0 w 2 n 1– y 0 y n1– n outputs 23 A 2 n -to-n binary encoder.

w 3 y 1 0 y 0 w 1 w w w w y 0 w 2 w 3 y 1 (a) Truth table 24 A 4-to-2 binary encoder.

4-bit Data Shifter  Data Shifter  A combinational logic shifter is a device that produces an output obtained by shifting its input  Right Shift: The Most Significant bit is called the fill bit and the Least Significant bit is called the spill bit  Left Shift: MSB is the spill bit – LSB is the fill bit  Processes:  Logical Shift => a logic zero is inserted in the fill position  Arithmetic => the sign bit is extended in a right shift  End-around [or rotate] 25

4-bit Logical Shifter Problem Statement  Step 1: Clear Problem Statement  Design and implement a 4-bit logical shifter that has 4-bit input “A”, 4-bit output “S”, and 1-bit controls X and Y where: 26

4-bit Logical Shifter Conceptualization  Step 2: Conceptualization  This 4-bit shifter can be represented by the black-box model below with the associated Output Table 27

4-bit Logical Shifter Solution/Simplification  Step 3: Solution/Simplification  The output table, with it’s different terms and exact duplication of bit values - - Should suggest a multiplexer  The logic functions describing the assignment of the values is: 28

4-bit Logical Shifter Realization and Verification  Step 4: Realization  Those 4 output values can be implemented using four 4-to- 1 mux’s as follows:  Step 5: Verification  Lab time! - - Does it really do what you designed it to do?  Return to that K-map/Truth table and be sure! 29