CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-5 Combinational Functional Blocks 3-6 Rudimentary Logic Functions 3-7 Decoding.

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

Overview Part 2 – Combinational Logic Functions and functional blocks
Functions and Functional Blocks
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.
9/15/09 - L14 Functional BlocksCopyright Joanne DeGroat, ECE, OSU1 Combinational Functional Blocks & Rudimentary Logic functions.
Overview Part 2 – Combinational Logic
CPEN Digital System Design
COE 202: Digital Logic Design Combinational Circuits Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
CS 151 Digital Systems Design Lecture 17 Encoders and Decoders
Overview Functions and functional blocks Rudimentary logic functions
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
OTHER COMBINATIONAL LOGIC CIRCUITS
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.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
Combinational Logic Design
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 –
Combinational and Sequential Logic Circuits.
Combinational Circuit – Arithmetic Circuit
Unit 9 Multiplexers, Decoders, and Programmable Logic Devices
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /10/2013 Lecture 5: Combinational Logic Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE.
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)
ENG241 Digital Design Week #4 Combinational Logic Design.
Combinational Design, Part 3: Functional Blocks
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
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.
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.
Chapter 3: Combinational Functions and Circuits 3-5 to 3-7: Decoders
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
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
Combinational Functions and Circuits
Lecture 4: Combinational Functions and Circuits
Reference: Chapter 3 Moris Mano 4th Edition
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
NAND-ONLY LOGIC CIRCUITS
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
ECE434a Advanced Digital Systems L02
Programmable Configurations
Chapter 3 – Combinational Logic Design
COE 202: Digital Logic Design Combinational Circuits Part 3
Chapter 3 – Combinational Logic Design
Overview Functions and functional blocks Rudimentary logic functions
Digital System Design Combinational Logic
Presentation transcript:

CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-5 Combinational Functional Blocks 3-6 Rudimentary Logic Functions 3-7 Decoding 1Created by: Ms.Amany AlSaleh

2 Overview  Part 2 – Combinational Logic Functions and functional blocks Rudimentary logic functions Decoding using Decoders Implementing Combinational Functions with Decoders Encoding using Encoders Selecting using Multiplexers Implementing Combinational Functions with Multiplexers Created by: Ms.Amany AlSaleh

3 3-5 Combinational 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, functional blocks were packaged as small- scale-integrated (SSI), medium-scale integrated (MSI), and large-scale-integrated (LSI) circuits.  Today, they are often simply implemented within a very- large-scale-integrated (VLSI) circuit. Created by: Ms.Amany AlSaleh

4 3-6 Rudimentary Logic Functions  Most elementary combinational logic functions: Value fixing Transferring Inverting Enabling Use only variables and constants Do not involve Boolean operators Involves only one logic gate per variable. Involves one or two logic gates per variable. Created by: Ms.Amany AlSaleh

5 3-6 Rudimentary Logic Functions (Cont.)  Value fixing, Transferring and Inverting Functions of a single variable X. Transferring Inverting Value Fixing Transferring Inverting Value Fixing Created by: Ms.Amany AlSaleh

6 3-6 Rudimentary Logic Functions (Cont.) Multiple-Bit Rudimentary Functions:  Suppose we have four functions: F3, F2, F1, and F0 that make up a 4-bit function F.  This multiple-bit function can be referred to as F(3:0) or simply F.  F3  msb & F0  lsb then F = (F3, F2, F1, F0)  E.g. if F3= 0, F2= 1, F1= A, and F0= A’ then F is defined as (0, 1, A, A’) For A= 0  F= (0, 1, 0, 1) 0 F 3 1 F 2 F 1 A F 0 A Created by: Ms.Amany AlSaleh

7 3-6 Rudimentary Logic Functions (Cont.) Multiple-Bit Rudimentary Functions (Cont.)  A wide line is used to represent a bus which is a vector signal  In (b) of the example, F = (F 3, F 2, F 1, F 0 ) 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.  See Example 3-8 on page 117 in your text book. (d) (a)(b) 4 2:1 F(2:1) 2 F (c) F 4 3,1:0 F(3), F(1:0) 3 0 F 3 1 F 2 F 1 A F 0 A 0 1 A F 0 A Created by: Ms.Amany AlSaleh

8 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 EN= 0  Output fixed at 0 EN= 0  Output fixed at 1 Created by: Ms.Amany AlSaleh

9 Enabling Function Example  Car Electrical Control Using Enabling: Ignition Switch IG: 0  Off & 1  On Light Switch LS: 0  Off & 1  On Radio Switch RS: 0  Off & 1  On Window Switch WS: 0  Off & 1  On Lights L: 0  Off & 1  On Radio R: 0  Off & 1  On Power Windows W: 0  Off & 1  On Created by: Ms.Amany AlSaleh

Decoding (Cont.)  An n-bit binary code is capable of representing up to 2 n distinct elements of coded information.  Decoding is the conversion of an n-bit input code to an m- bit output code with n ≤m ≤ 2 n.  Circuits that perform decoding are called decoders.  A decoder is a combinational circuit that converts binary information from n input lines to 2 n unique output lines. n-to-m Line Decoder n inputs m outputs m <= 2 n Created by: Ms.Amany AlSaleh

Decoding (Cont.)  Functional blocks for decoding are called n-to-m line decoders, where m ≤ 2 n, and generate 2 n (or fewer) minterms for the n input variables  decoder may have unused bit combinations on its input for which no corresponding m-bit code appears at the output.  Applications: Microprocessor memory system: selecting different banks of memory. Microprocessor I/O: Selecting different devices. Microprocessor instruction decoding: Enabling different functional units. Memory: Decoding memory addresses (e.g. in ROM). Created by: Ms.Amany AlSaleh

12 Decoder Example 1  1-to-2-Line Decoder: n=1  m= 2 If A=0  D 0 = 1 and D 1 = 0 If A=1  D 0 = 0 and D 1 = 1 D0= A’ D1= A Created by: Ms.Amany AlSaleh

13 Decoder Example 2  2-to-4-Line Decoder: n=2  m= 4  Notice they are minterms.  Note that the 2-4-line made up of:  2 1-to-2- line decoders  4 AND gates. Number of AND gates: 4 Created by: Ms.Amany AlSaleh

14 Decoder Example 3  3-to-8-Line Decoder: example: Binary-to-octal conversion. n=3  m= 8  Notice they are minterms Created by: Ms.Amany AlSaleh

15 Decoder Example 3  3-to-8-Line Decoder (Cont.): n=3  m= 8 m0 m1 m2 m3 m4 m5 m6 m7 Note: the 3-8-line made up of:  2-to-4-line decoder  1-to-2-line decoder  8 AND gates Number of AND gates= 8 Created by: Ms.Amany AlSaleh

16 Decoder with Enable  In general, attach m-enabling circuits to the outputs  The decoder is disabled when E = 1  all outputs are 0.  The decoder is enabled when E = 1. The output whose value is 1 represents the minterm is selected by inputs A 0 and A 1.  A Decoder with enable input is called a decoder/demultiplexer.  See truth table below for the function: Note use of X’s to denote both 0 and 1 Combination containing two X’s represent four binary combinations Created by: Ms.Amany AlSaleh

17 Decoder Expansion - Example 1 Enable Used for Expansion  Decoders with enable inputs can be connected together to form a larger decoder circuit. Enable Created by: Ms.Amany AlSaleh

18 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. D 0 – D 7 D 8 – D 15 D 16 – D 23 D 24 – D 31 A3A4A3A4 A0A1A2A0A1A2 2-4-line Decoder 3-8-line Decoder E E E E Created by: Ms.Amany AlSaleh

19 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-2 n line decoder and m OR gates. S(X,Y,Z)=  m (1,2,4,7) C(X,Y,Z)=  m (3,5,6,7) Number of Ones = 3 Number of Ones = 0 Number of Ones = 1 Number of Ones = 2 X Y ZCS Created by: Ms.Amany AlSaleh

20 F1 Decoders Can Implement Any Function!  F1 = A' B C' D + A' B' C D + A B C D AB 0A'B'C'D' 1A'B'C'D 2A'B'CD' 3A'B'CD 4A'BC'D' 5A'BC'D 6A'BCD' 7A'BCD 8AB'C'D' 9AB'C'D 10AB'CD' 11AB'CD 12ABC'D' 13ABC'D 14ABCD' 15ABCD 4:16 DEC Enable CD Created by: Ms.Amany AlSaleh