Working with Combinational Logic. Design example: 2x2-bit multiplier

Similar documents
Working with combinational logic

for Digital Systems Simplification of logic functions Tajana Simunic Rosing Sources: TSR, Katz, Boriello & Vahid

Combinational Logic (mostly review!)

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Boolean cubes EECS150. Mapping truth tables onto cubes. Simplification. The Uniting Theorem. Three variable example

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions

Possible logic functions of two variables

This form sometimes used in logic circuit, example:

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

Unit 2 Session - 6 Combinational Logic Circuits

14:332:231 DIGITAL LOGIC DESIGN. Combinational Circuit Synthesis

211: Computer Architecture Summer 2016

Karnaugh Maps (K-Maps)

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Combinatorial Logic Design Principles

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

UNIT 5 KARNAUGH MAPS Spring 2011

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Fundamentals of Computer Systems

Learning Objectives. Boolean Algebra. In this chapter you will learn about:

Fundamentals of Computer Systems

Chapter 2. Introduction. Chapter 2 :: Topics. Circuits. Nodes. Circuit elements. Introduction

CMSC 313 Lecture 19 Combinational Logic Components Programmable Logic Arrays Karnaugh Maps

Digital Circuit And Logic Design I. Lecture 4

ELCT201: DIGITAL LOGIC DESIGN

Digital Logic Design. Combinational Logic

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

Week-I. Combinational Logic & Circuits

Chapter 2 Combinational logic

Karnaugh Maps Objectives

Logic Design Combinational Circuits. Digital Computer Design

CMSC 313 Lecture 19 Homework 4 Questions Combinational Logic Components Programmable Logic Arrays Introduction to Circuit Simplification

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

ENG2410 Digital Design Combinational Logic Circuits

L2: Combinational Logic Design (Construction and Boolean Algebra)

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

Combinational Logic Fundamentals

Chapter 4 Optimized Implementation of Logic Functions

WEEK 3.1 MORE ON KARNAUGH MAPS

Karnaugh Maps ف ر آ ا د : ا ا ب ا م آ ه ا ن ر ا

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

12/31/2010. Overview. 10-Combinational Circuit Design Text: Unit 8. Limited Fan-in. Limited Fan-in. Limited Fan-in. Limited Fan-in

Combinational Logic. Review of Combinational Logic 1

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

L2: Combinational Logic Design (Construction and Boolean Algebra)

ENGR 303 Introduction to Logic Design Lecture 3. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

Spiral 1 / Unit 5. Karnaugh Maps

Digital Circuit And Logic Design I. Lecture 3

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

9.1. Unit 9. Implementing Combinational Functions with Karnaugh Maps or Memories

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

L2: Combinational Logic Design (Construction and Boolean Algebra)

NAND3_X1. Page 104 of 969

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Copyright 2007 Elsevier 2-<101>

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

Minimization techniques

Digital Logic & Computer Design CS Professor Dan Moldovan Spring 2010

Optimizations and Tradeoffs. Combinational Logic Optimization

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Simplifying Logic Circuits with Karnaugh Maps

CPE100: Digital Logic Design I

Lecture 2. Notes. Notes. Notes. Boolean algebra and optimizing logic functions. BTF Electronics Fundamentals August 2014

Fundamentals of Computer Systems

Chapter 7 Logic Circuits

CHAPTER 5 KARNAUGH MAPS

EECS Variable Logic Functions

CHAPTER 12 Boolean Algebra

14:332:231 DIGITAL LOGIC DESIGN

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Number System conversions

CHAPTER III BOOLEAN ALGEBRA

1. Name the person who developed Boolean algebra

Chapter 2: Switching Algebra and Logic Circuits

3. PRINCIPLES OF COMBINATIONAL LOGIC

Combinational Logic Design Principles

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Motivation. CS/EE 3700 : Fundamentals of Digital System Design

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

Figure 1-1 Basic Gates

Lecture 2 Review on Digital Logic (Part 1)

ECE/Comp Sci 352 Digital System Fundamentals Quiz # 1 Solutions

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

ﻮﻧﺭﺎﮐ ﺔﺸﻘﻧ ﺎﺑ ﻱﺯﺎﺳ ﻪﻨﻴﻬﺑ

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

Lecture A: Logic Design and Gates

CHAPTER III BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Boolean Algebra and Logic Simplification

Combinational Logic Circuits Part II -Theoretical Foundations

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Theorem/Law/Axioms Over (.) Over (+)

Gate-Level Minimization

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Chapter # 3: Multi-Level Combinational Logic

Transcription:

Working with ombinational Logic Simplification two-level simplification exploiting don t cares algorithm for simplification Logic realization two-level logic and canonical forms realized with NNs and NORs multi-level logic, converting between Ns and ORs Winter 2010 SE370 - VI - Logic Minimization 1 esign example: 2x2-bit multiplier 1 2 1 2 block diagram and truth table P1 P2 P4 P8 2 1 2 1 P8 P4 P2 P1 1 0 1 0 1 0 1 1 1 0 1 1 4-variable K-map for each of the 4 output functions Winter 2010 SE370 - VI - Logic Minimization 2

esign example: 2x2-bit multiplier (activity) 2 K-map for P8 K-map for P4 2 1 1 2 1 2 1 2 K-map for P2 K-map for P1 2 1 1 2 1 2 1 Winter 2010 SE370 - VI - Logic Minimization 3 efinition of terms for two-level simplification Implicant single element of ON-set or -set or any group of these elements that can be combined to form a subcube Prime implicant implicant that can't be combined with another to form a larger subcube Essential prime implicant prime implicant is essential if it alone covers an element of ON-set will participate in LL possible covers of the ON-set -set used to form prime implicants but not to make implicant essential Objective: grow implicant into prime implicants (minimize literals per term) cover the ON-set with as few prime implicants as possible (minimize number of product terms) Winter 2010 SE370 - VI - Logic Minimization 4

Examples to illustrate terms 0 X 6 prime implicants: '', ',, '',, ' essential minimum cover: + ' + '' 5 prime implicants:, ',, ', '' essential minimum cover: 4 essential implicants Winter 2010 SE370 - VI - Logic Minimization 5 lgorithm for two-level simplification lgorithm: minimum sum-of-products expression from a Karnaugh map Step 1: choose an element of the ON-set Step 2: find "maximal" groupings of 1s and Xs adjacent to that element consider top/bottom row, left/right column, and corner adjacencies this forms prime implicants (number of elements always a power of 2) Repeat Steps 1 and 2 to find all prime implicants Step 3: revisit the 1s in the K-map if covered by single prime implicant, it is essential, and participates in final cover 1s covered by essential prime implicant do not need to be revisited Step 4: if there remain 1s not covered by essential prime implicants select the smallest number of prime implicants that cover the remaining 1s Winter 2010 SE370 - VI - Logic Minimization 6

lgorithm for two-level simplification (example) 0 X X 0 2 primes around ''' 2 primes around ' 3 primes around ''' 2 essential primes minimum cover (3 primes) Winter 2010 SE370 - VI - Logic Minimization 7 ctivity List all prime implicants for the following K-map: X 0 X 0 0 X X 0 Which are essential prime implicants? What is the minimum cover? Winter 2010 SE370 - VI - Logic Minimization 8

Implementations of two-level logic Sum-of-products N gates to form product terms (minterms) OR gate to form sum Product-of-sums OR gates to form sum terms (maxterms) N gates to form product Winter 2010 SE370 - VI - Logic Minimization 9 Two-level logic using NN gates (cont d) OR gate with inverted inputs is a NN gate de Morgan s: + = ( ) Two-level NN-NN network inverted inputs are not counted in a typical circuit, inversion is done once and signal distributed Winter 2010 SE370 - VI - Logic Minimization 10

Two-level logic using NOR gates (cont d) N gate with inverted inputs is a NOR gate de Morgan s: = ( + ) Two-level NOR-NOR network inverted inputs are not counted in a typical circuit, inversion is done once and signal distributed Winter 2010 SE370 - VI - Logic Minimization 11 Multi-level logic x = + E + + E + + E + G reduced sum-of-products form already simplified 6 x 3-input N gates + 1 x 7-input OR gate (that may not even exist!) 25 wires (19 literals plus 6 internal wires) x = ( + + ) ( + E) + G factored form not written as two-level S-o-P 1 x 3-input OR gate, 2 x 2-input OR gates, 1 x 3-input N gate 10 wires (7 literals plus 3 internal wires) E G Winter 2010 SE370 - VI - Logic Minimization 12 X

onversion of multi-level logic to NN gates = ( + ) + original N-OR network \ Level 1 Level 2 Level 3 Level 4 introduction and conservation of bubbles \ redrawn in terms of conventional NN gates \ \ Winter 2010 SE370 - VI - Logic Minimization 13 onversion of multi-level logic to NORs = ( + ) + introduction and conservation of bubbles original N-OR network \ Level 1 Level 2 Level 3 Level 4 \ redrawn in terms of conventional NOR gates \ \ \ \ Winter 2010 SE370 - VI - Logic Minimization 14

Summary for multi-level logic dvantages circuits may be smaller gates have smaller fan-in circuits may be faster isadvantages more difficult to design tools for optimization are not as good as for two-level analysis is more complex Winter 2010 SE370 - VI - Logic Minimization 15