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.

Slides:



Advertisements
Similar presentations
Overview Part 1 – Gate Circuits and Boolean Equations
Advertisements

Digital Design: Combinational Logic Blocks
Overview Part 2 – Combinational Logic Functions and functional blocks
Overview Programmable Implementation Technologies (section 6.8)
Functions and Functional Blocks
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
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
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 2 – Chapter.
Overview Functions and functional blocks Rudimentary logic functions
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 3.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 – Selected Design Topics Part 4 – Programmable.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 2 –
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 4 Technology.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 10 – Computer.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 13 – Programmable.
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.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Combinational Circuits Chapter 3 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 2003.
Overview Part 1 Part 2 Sequential Circuit Design
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 12 – Design Procedure.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 2 –
Based on slides by: Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 9 – Multilevel Optimization.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 6 – Selected Design Topics Part 4 – Programmable.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
1 Lecture 9 Demultiplexers Programmable Logic Devices  Programmable logic array (PLA)  Programmable array logic (PAL)
Combinational Design, Part 3: Functional Blocks
Modified by Bo-Gwan Kim, 2006
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
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.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 10 – Computer.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 2.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 2.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
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.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Verilog Part 3 – Chapter.
CS 151  What does the full truth table look like? InputsOutputs D3D3 D2D2 D1D1 D0D0 A1A1 A0A0 V 0000XX
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Chapter # 4: Programmable Logic
CSET 4650 Field Programmable Logic Devices
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
This chapter in the book includes: Objectives Study Guide
Overview Part 2 – Combinational Logic Functions and functional blocks
Overview Part 1 - Implementation Technology and Logic Design
Lecture 3 – Binary Arithmetic
Logic and Computer Design Fundamentals
Overview Part 1 – Design Procedure Beginning Hierarchical Design
This chapter in the book includes: Objectives Study Guide
Programmable Configurations
EE2174: Digital Logic and Lab
Lecture 26 – Hardwired and Microprogrammed Control
Overview Part 1 - Registers, Microoperations and Implementations
Overview Functions and functional blocks Rudimentary logic functions
Lecture 4 – Binary Logic and Logic Gates
Presentation transcript:

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 Fundamentals Lecture 15 – Structured Implementation Methods

Chapter 4 2 Overview  Implementing Combinational Functions Using: Decoders and OR gates Multiplexers (and inverter) ROMs PLAs PALs Lookup Tables

Chapter 4 3 Combinational Function Implementation  Alternative implementation techniques: Decoders and OR gates Multiplexers (and inverter) ROMs PLAs PALs Lookup Tables  Can be referred to as structured implementation methods since a specific underlying structure is assumed in each case

Chapter 4 4 Decoder and OR Gates  Implement m functions of n variables with: Sum-of-minterms expressions One n-to-2 n -line decoder m OR gates, one for each output  Procedure: Find the truth table for the functions or identify all minterms Connect corresponding decoder outputs to OR gate

Chapter 4 5 Decoder and OR Gates Example  Implement the following set of odd parity functions of (A 7, A 6, A 5, A 3 ) P 1 = A 7 A 5 A 3 P 2 = A 7 A 6 A 3 P 4 = A 7 A 6 A 5  Finding sum of minterms expressions P 1 =  m (1,2,5,6,8,11,12,15) P 2 =  m (1,3,4,6,8,10,13,15) P 4 =  m (2,3,4,5,8,9,14,15)  Find circuit  Is this a good idea? A7A6A5A4A7A6A5A4 P1P1 P4P4 P2P2

Chapter 4 6 Multiplexer Approach 1  Implement m functions of n variables with: Sum-of-minterms expressions An m-wide 2 n -to-1-line multiplexer  Design: Find the truth table for the functions. In the order they appear in the truth table:  Apply the function input variables to the multiplexer inputs S n  1, …, S 0  Label the outputs of the multiplexer with the output variables Value-fix the information inputs to the multiplexer using the values from the truth table (for don’t cares, apply either 0 or 1)

Chapter 4 7 Example: Gray to Binary Code  Design a circuit to convert a 3-bit Gray code to a binary code  The formulation gives the truth table on the right  It is obvious from this table that X = C and the Y and Z are more complex

Chapter 4 8 Gray to Binary (continued)  Rearrange the table so that the input combinations are in counting order  Functions y and z can be implemented using a dual 8-to-1-line multiplexer by: connecting A, B, and C to the multiplexer select inputs placing y and z on the two multiplexer outputs connecting their respective truth table values to the inputs

Chapter 4 9  Note that the multiplexer with fixed inputs is identical to a ROM with 3-bit addresses and 2-bit data! Gray to Binary (continued) D04 D05 D06 D07 S1 S0 A B S2 D03 D02 D01 D00 Out C D14 D15 D16 D17 S1 S0 A B S2 D13 D12 D11 D10 Out C Y Z 8-to-1 MUX 8-to-1 MUX

Chapter 4 10 Multiplexer Approach 2  Implement any m functions of n + 1 variables by using: An m-wide 2 n -to-1-line multiplexer A single inverter  Design: Find the truth table for the functions. Based on the values of the first n variables, separate the truth table rows into pairs For each pair and output, define a rudimentary function of the final variable (0, 1, X, ) Using the first n variables as the index, value-fix the information inputs to the multiplexer with the corresponding rudimentary functions Use the inverter to generate the rudimentary function X X

Chapter 4 11 Example: Gray to Binary Code  Design a circuit to convert a 3-bit Gray code to a binary code  The formulation gives the truth table on the right  It is obvious from this table that X = C and the Y and Z are more complex

Chapter 4 12 Gray to Binary (continued)  Rearrange the table so that the input combinations are in counting order, pair rows, and find rudimentary functions Gray A B C Binary x y z Rudimentary Functions of C for y Rudimentary Functions of C for z F = C

Chapter 4 13  Assign the variables and functions to the multiplexer inputs:  Note that this approach (Approach 2) reduces the cost by almost half compared to Approach 1.  This result is no longer ROM-like  Extending, a function of more than n variables is decomposed into several sub-functions defined on a subset of the variables. The multiplexer then selects among these sub-functions. Gray to Binary (continued) S1 S0 A B D03 D02 D01 D00 Out Y 8-to-1 MUX C C C C D13 D12 D11 D10 Out Z 8-to-1 MUX S1 S0 A B C C C C C C

Chapter 4 14 Read Only Memory  Functions are implemented by storing the truth table  Other representations such as equations more convenient  Generation of programming information from equations usually done by software  Text Example 4-10 Issue Two outputs are generated outside of the ROM In the implementation of the system, these two functions are “hardwired” and even if the ROM is reprogrammable or removable, cannot be corrected or updated

Chapter 4 15 Programmable Logic Array

Chapter 4 16 Programmable Logic Array  Limited number of product terms Often complement function contains fewer product terms  PLAs typically support output inversion Literal count per product term is not limited  For small circuits, K-maps can be used to visualize product term sharing and use of complements  For larger circuits, software is used to do the optimization including use of complemented functions

Chapter 4 17 Programmable Logic Array Example  K-map specification  How can this be implemented with four terms?  Complete the programming table

Chapter 4 18 Programmable Logic Array Example XFuse intact + Fuse blown 0 1 F 1 F 2 A B C CBACBA X X XX X X X X X X X X X X X X X X

Chapter 4 19 Programmable Array Logic

Chapter 4 20 Programmable Array Logic  No sharing of AND gates  Limited number of product terms (e.g. 3) Can “daisy-chain” multiple levels (factor)

Chapter 4 21 Product term AND Inputs OutputsA B C DW W = C F1 = X = A + B + W — — — — — — — — — — — — — — — AB C + ABC F2 = Y = AB + BC +AC BC A 1 0 — 0 1 — 0 0 — — — — — — 1 —— — — — — — — — 1 — — — 1 1 — — — — — —  Equations: F1 = A + B + C + ABC F2 = AB + BC + AC  F1 must be factored since four terms  Factor out last two terms as W ABBCCA Programmable Array Logic Example

Chapter 4 22 Programmable Array Logic Example

Chapter 4 23 Lookup Tables  Lookup tables Field-Programmable Gate Arrays (FPGAs) Complex Programmable Logic Devices (CPLDs)  Typically small Four inputs, one output, and 16 entries  Possible to implement any 4-input function  Design: How to optimally decompose a set of given functions into a set of 4-input two-level functions.  We will illustrate this by a manual attempt

Chapter 4 24 Lookup Table Example  Equations to be implemented: F 1 (A,B,C,D,E) = A D E + B D E + C D E F 2 (A,B,D,E,F) = A E D + B D E + F D E  Extract 4-input function: F 3 (A,B,D,E) = A D E + B D E F 1 (C,D,E,F 3 ) = F 3 + C D E F 2 (D,E,F,F 3 ) = F 3 + F D E  The cost of the solution is 3 lookup tables

Chapter 4 25 Summary  Implementing Combinational Functions Using: Decoders and OR gates Multiplexers (and inverter) ROMs PLAs PALs Lookup Tables

Chapter 4 26 Terms of Use  © 2004 by Pearson Education,Inc. All rights reserved.  The following terms of use apply in addition to the standard Pearson Education Legal Notice.Legal Notice  Permission is given to incorporate these materials into classroom presentations and handouts only to instructors adopting Logic and Computer Design Fundamentals as the course text.  Permission is granted to the instructors adopting the book to post these materials on a protected website or protected ftp site in original or modified form. All other website or ftp postings, including those offering the materials for a fee, are prohibited.  You may not remove or in any way alter this Terms of Use notice or any trademark, copyright, or other proprietary notice, including the copyright watermark on each slide.  Return to Title Page Return to Title Page