Chapter 3: Combinational Functions and Circuits 3-5 to 3-7: Decoders

Slides:



Advertisements
Similar presentations
1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
Advertisements

Give qualifications of instructors: DAP
Princess Sumaya University
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.
Henry Hexmoor1 C hapter 4 Henry Hexmoor-- SIUC Rudimentary Logic functions: Value fixing Transferring Inverting.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
Overview Part 2 – Combinational Logic
CPEN Digital System Design
CS 151 Digital Systems Design Lecture 17 Encoders and Decoders
Overview Functions and functional blocks Rudimentary logic functions
CS 151 Digital Systems Design Lecture 15 Magnitude Comparators and Multiplexers.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 2 –
Multiplexers, Decoders, and Programmable Logic Devices
Combinational Logic Building Blocks
EE2174: Digital Logic and Lab
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
Any logic circuits can be transformed to an implementation where only NAND gates (and inverters) are used. The general approach to finding a NAND-gate.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Combinational Logic Chapter 4.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexers.
Morgan Kaufmann Publishers
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
CS 151: Digital Design Chapter 3 3-8: Encoding. CS 151 Encoding Encoding - the opposite of decoding - the conversion of a maximum of 2 n input code to.
Chapter 4-part 2 Combinational Logic. 4-6 DecimalAdder   Add twoBCD's   9 inputs: two BCD's and one carry-in 5 outputs: one BCD and one carry-out.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 2 –
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Combinational Circuit – Arithmetic Circuit
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
1 Lecture #7 EGR 277 – Digital Logic Reading Assignment: Chapter 4 in Digital Design, 3 rd Edition by Mano Chapter 4 – Combinational Logic Circuits A)
Combinational Design, Part 3: Functional Blocks
1 Combinational Logic Design Digital Computer Logic Kashif Bashir
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
Modified by Bo-Gwan Kim, 2006
CHAPTER 4 Combinational Logic
COE 202: Digital Logic Design Combinational Circuits Part 3
Decoders, Encoders, Multiplexers
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
CS151 Introduction to Digital Design
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
Chapter Four Combinational Logic 1. Discrete quantities of information are represented in digital systems by binary codes. A binary code of n bits is.
Combinational Logic Design – Design Procedure, Encoders/Decoders
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Magnitude Comparator Dr. Ahmed Telba.
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-5 Combinational Functional Blocks 3-6 Rudimentary Logic Functions 3-7 Decoding.
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
Chapter4: Combinational Logic Part 4 Originally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Decoders Zhijian John Wang. What are they? Overview of a decoder A device that reverses the process of an encoder Convert information from one format.
MSI Circuits.
Chapter 3 Combinational Logic Design II
Overview Part 2 – Combinational Logic Functions and functional blocks
CS221: Digital Logic Design Combinational Circuits 3
Lecture 4: Combinational Functions and Circuits
Reference: Chapter 3 Moris Mano 4th Edition
NAND-ONLY LOGIC CIRCUITS
Programmable Configurations
Chapter 3 – Combinational Logic Design
COE 202: Digital Logic Design Combinational Circuits Part 3
Chapter 3 – Combinational Logic Design
Multiplexers Anindya IE CSE.
Overview Functions and functional blocks Rudimentary logic functions
Digital System Design Combinational Logic
Presentation transcript:

Chapter 3: Combinational Functions and Circuits 3-5 to 3-7: Decoders CS 151: Digital Design Chapter 3: Combinational Functions and Circuits 3-5 to 3-7: Decoders

Overview Part II Functions and functional blocks Rudimentary logic functions Decoding Encoding Selecting Implementing Combinational Functions Using: Decoders and OR gates Multiplexers (and inverter) CS 151

Functions and Functional Blocks The functions considered are those found to be very useful in design Corresponding to each of the functions is a combinational circuit implementation called a functional block. In the past, many functional blocks were implemented as SSI, MSI, and LSI circuits. Today, they are often simply parts within a VLSI circuits. CS 151

Rudimentary Logic Functions Functions of a single variable X Can be used on the inputs to functional blocks to implement other than the block’s intended function 1 F = (a) V CC or V DD (b) X (c) (d) CS 151

Multiple-bit Rudimentary Functions Multi-bit Examples: A wide line is used to represent a bus which is a vector signal In (b) of the example, F = (F3, F2, F1, F0) is a bus. The bus can be split into individual bits as shown in (b) Sets of bits can be split from the bus as shown in (c) for bits 2 and 1 of F. The sets of bits need not be continuous as shown in (d) for bits 3, 1, and 0 of F. A F A 3 2 3 1 F 1 2 4 4 2:1 F(2:1) 2 F F F 1 1 (c) A F A (a) (b) 3 3,1:0 4 F(3), F(1:0) F (d) CS 151

Enabling Function Enabling permits an input signal to pass through to an output Disabling blocks an input signal from passing through to an output, replacing it with a fixed value The value on the output when it is disable can be Hi-Z (as for three-state buffers and transmission gates), 0 , or 1 When disabled, 0 output When disabled, 1 output See Enabling App in text CS 151

Decoding A binary code of n bits is capable of representing 2n elements. Decoding - the conversion of an n-bit coded input to a maximum of 2n unique outputs. Circuits that perform decoding are called decoders. Here, functional blocks for decoding are called n-to-m line decoders, where m ≤ 2n, and generate 2n (or fewer) minterms for the n input variables n-to-m Line Decoder . . . m outputs m <= 2n n inputs CS 151

Decoder Examples 1-to-2-Line Decoder 2-to-4-Line Decoder = = Note that the 2-4-line made up of 2 1-to-2- line decoders and 4 AND gates. CS 151

Decoder Examples 3-to-8-Line Decoder: example: Binary-to-octal conversion. D0 = m0 = A2’A1’A0’ D1= m1 = A2’A1’A0 …etc CS 151

Decoder with Enable In general, attach m-enabling circuits to the outputs See truth table below for function Note use of X’s to denote both 0 and 1 Combination containing two X’s represent four binary combinations EN A 1 EN A A D D D D 1 1 2 3 A X X D 1 1 1 1 1 1 1 1 D 1 1 1 1 1 D (a) 2 D 3 (b) CS 151

Decoder Expansion - Example 1 Decoders with enable inputs can be connected together to form a larger decoder circuit. Enable CS 151

Decoder Expansion - Example 2 Construct a 5-to-32-line decoder using four 3-8-line decoders with enable inputs and a 2-to-4-line decoder. A0 A1 A2 3-8-line Decoder E D0 – D7 D8 – D15 D16 – D23 D24 – D31 2-4-line Decoder A3 A4 CS 151

Decoders can implement any function! Since any function can be represented as a some-of-minterms, a decoder can be used to generate the minterms, and an external OR gate to form their sum. A combinational circuit with n inputs and m outputs can be implemented with an n-to-2n line decoder and m OR gates. X Y Z C S 1 Number of Ones = 3 Number of Ones = 0 Number of Ones = 1 Number of Ones = 2 S(X,Y,Z)=  m (1,2,4,7) C(X,Y,Z)=  m (3,5,6,7) CS 151