Combinatorial Logic Design Principles

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

Combinational Logic Design Principles

This form sometimes used in logic circuit, example:

Digital Circuit And Logic Design I. Lecture 3

CS 226: Digital Logic Design

Unit 2 Session - 6 Combinational Logic Circuits

14:332:231 DIGITAL LOGIC DESIGN

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

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

MC9211 Computer Organization

Logic Design. Chapter 2: Introduction to Logic Circuits

Digital Logic Design. Combinational Logic

211: Computer Architecture Summer 2016

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

Combinational Logic. Review of Combinational Logic 1

Digital Circuit And Logic Design I. Lecture 4

ENG2410 Digital Design Combinational Logic Circuits

Combinational Logic Fundamentals

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

CHAPTER1: Digital Logic Circuits Combination Circuits

Chapter 2 Boolean Algebra and Logic Gates

Week-I. Combinational Logic & Circuits

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

Standard Expression Forms

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Chapter 2. Boolean Algebra and Logic Gates

Introduction to Digital Logic Missouri S&T University CPE 2210 Karnaugh Maps

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

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

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

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

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

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

Simplifying Logic Circuits with Karnaugh Maps

Chapter 2 Combinational Logic Circuits

Number System conversions

Chapter 2 Boolean Algebra and Logic Gates

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Boolean Algebra and Logic Simplification

Review for Test 1 : Ch1 5

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

Lecture 4: More Boolean Algebra

CHAPTER III BOOLEAN ALGEBRA

DO NOT COPY DO NOT COPY

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

Chapter 2 Boolean Algebra and Logic Gates

Gate-Level Minimization

UNIT 5 KARNAUGH MAPS Spring 2011

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

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2: Switching Algebra and Logic Circuits

Chapter 2 Combinational Logic Circuits

Optimizations and Tradeoffs. Combinational Logic Optimization

Chapter 4 Optimized Implementation of Logic Functions

Signals and Systems Digital Logic System

Introduction to Digital Logic Missouri S&T University CPE 2210 Boolean Representations

Boolean Algebra & Logic Gates. By : Ali Mustafa

Chap 2. Combinational Logic Circuits

CHAPTER III BOOLEAN ALGEBRA

Unit 2 Boolean Algebra

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

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

Part 5: Digital Circuits

Logic Design I (17.341) Fall Lecture Outline

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

Possible logic functions of two variables

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

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

Boolean Algebra and Logic Gates

Chapter 2: Boolean Algebra and Logic Gates

Boolean Algebra, Gates and Circuits

Chapter 2 : Boolean Algebra and Logic Gates

DIGITAL ELECTRONICS & it0203 Semester 3

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

Administrative Notes. Chapter 2 <9>

Chapter 2 Combinational logic

Karnaugh Maps Objectives

Logic Gate Level. Part 2

CprE 281: Digital Logic

Lecture 2 Review on Digital Logic (Part 1)

CSE 140, Lecture 2 Combinational Logic CK Cheng CSE Dept. UC San Diego

L2: Combinational Logic Design (Construction and Boolean Algebra)

CPE100: Digital Logic Design I

Chapter 2 Boolean Algebra and Logic Gates

1 Boolean Algebra Simplification

Chapter 2 Combinational Logic Circuits

Review: Additional Boolean operations

WEEK 2.1 BOOLEAN ALGEBRA

Contents. Chapter 2 Digital Circuits Page 1 of 30

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

EECS Variable Logic Functions

Lecture 22 Chapters 3 Logic Circuits Part 1

EC-121 Digital Logic Design

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

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

Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Transcription:

Combinatorial Logic Design Principles ECGR2181 Chapter 4 Notes Logic System Design I 4-1

Boolean algebra a.k.a. switching algebra deals with boolean values -- 0, 1 Positive-logic convention analog voltages LOW, HIGH --> 0, 1 Negative logic -- seldom used Signal values denoted by variables (X, Y, FRED, etc.) Logic System Design I 4-2

Boolean operators Complement:X (opposite of X) AND: X Y OR: X + Y binary operators, described functionally by truth table. Axiomatic definition: A1-A5, A1 -A5 Logic System Design I 4-3

More definitions Literal: a variable or its complement X, X, FRED, CS_L Expression: literals combined by AND, OR, parentheses, complementation X+Y P Q R A + B C ((FRED Z ) + CS_L A B C + Q5) RESET Equation: Variable = expression P = ((FRED Z ) + CS_L A B C + Q5) RESET Logic System Design I 4-4

Logic symbols Logic System Design I 4-5

Theorems Proofs by perfect induction Logic System Design I 4-6

More Theorems Logic System Design I 4-7

N-variable Theorems Prove using finite induction Logic System Design I 4-8

DeMorgan Symbol Equivalence Logic System Design I 4-9

Likewise for OR Logic System Design I 4-10

DeMorgan Symbols Logic System Design I 4-11

Even more definitions (Sec. 4.1.6) Product term Sum-of-products expression Sum term Product-of-sums expression Normal term Minterm (n variables) Maxterm (n variables) Logic System Design I 4-12

Truth table vs. minterms & maxterms Logic System Design I 4-13

Combinational analysis Logic System Design I 4-14

Signal expressions Multiply out: F = ((X + Y ) Z) + (X Y Z ) = (X Z) + (Y Z) + (X Y Z ) Logic System Design I 4-15

New circuit, same function Logic System Design I 4-16

Add out logic function Circuit: Logic System Design I 4-17

Shortcut: Symbol substitution Logic System Design I 4-18

Different circuit, same function Logic System Design I 4-19

Another example Logic System Design I 4-20

Combinational-Circuit Analysis Combinational circuits -- outputs depend only on current inputs (not on history). Kinds of combinational analysis: exhaustive (truth table) algebraic (expressions) simulation / test bench Write functional description in HDL Define test conditions / test vecors Compare circuit output with functional description (or knowngood realization) Logic System Design I 4-21

Combinational-Circuit Design Sometimes you can write an equation or equations directly. Example (alarm circuit): Corresponding circuit: Logic System Design I 4-22

Alarm-circuit transformation Sum-of-products form Useful for programmable logic devices Multiply out : Logic System Design I 4-23

Sum-of-products form AND-OR NAND-NAND Logic System Design I 4-24

Product-of-sums form OR-AND NOR-NOR Logic System Design I 4-25

Brute-force design Truth table --> canonical sum (sum of minterms) Example: prime-number detector 4-bit input, N 3 N 2 N 1 N 0 F = Σ Ν3Ν2Ν1Ν0 (1,2,3,5,7,11,13) row N 3 N 2 N 1 N 0 F 0 0 0 0 0 0 1 0 0 0 1 1 2 0 0 1 0 1 3 0 0 1 1 1 4 0 1 0 0 0 5 0 1 0 1 1 6 0 1 1 0 0 7 0 1 1 1 1 8 1 0 0 0 0 9 1 0 0 1 0 10 1 0 1 0 0 11 0 0 1 1 1 12 1 1 0 0 0 13 1 1 0 1 1 14 1 1 1 0 0 15 1 1 1 1 0 Logic System Design I 4-26

Minterm list --> canonical sum Logic System Design I 4-27

Algebraic simplification Theorem T8, Reduce number of gates and gate inputs Logic System Design I 4-28

Resulting circuit Logic System Design I 4-29

3-variable Karnaugh map Logic System Design I 4-30

3-variable Karnaugh map X Y Z X YZ XYZ XY Z X Y Z X YZ XYZ XY Z Logic System Design I 4-31

Visualizing T10 -- Karnaugh maps Logic System Design I 4-32

Visualizing T10 -- Karnaugh maps Logic System Design I 4-33

Example: F = Σ(1,2,5,7) Logic System Design I 4-34

Karnaugh-map usage Plot 1s corresponding to minterms of function. Circle largest possible rectangular sets of 1s. # of 1s in set must be power of 2 OK to cross edges Read off product terms, one per circled set. Variable is 1 ==> include variable Variable is 0 ==> include complement of variable Variable is both 0 and 1 ==> variable not included Circled sets and corresponding product terms are called prime implicants Minimum number of gates and gate inputs Logic System Design I 4-35

Prime-number detector Logic System Design I 4-36

Resulting Circuit. Logic System Design I 4-37

Another example Logic System Design I 4-38

Yet another example Distinguished 1 cells Essential prime implicants Logic System Design I 4-39

Another Example F(W,X,Y,Z) = Σm(0,1,2,4,5,6,8,9,12,13,14) Logic System Design I 4-40

Another Example F(W,X,Y,Z) = Σm(0,1,2,3,6,8,9,10,11,14) Logic System Design I 4-41

Another Example Logic System Design I 4-42

Don t Cares Copyright 2000 by Prentice Hall, Inc. Digital Design Principles and Practices, 3/e (a) N 3 N 2 N 00 01 11 10 1 N 0 0 4 12 00 d N 1 01 11 10 1 3 2 5 7 6 13 1 1 d 1 1 1 15 d 14 d N 3 8 9 11 10 d d N 0 (b) N 3 N 3 N 2 N 1 N 0 00 01 11 10 N 00 d 3 N0 01 1 1 d N 1 11 1 1 d d 10 1 d d N 0 N 2 N 0 N 2 F = Σ N3,N2,N1,N0 (1,2,3,5,7) + d(10,11,12,13,14,15) N 2 N 1 N 2 F = N 3 N 0 + N 2 N 1 Logic System Design I 4-43

Another Example F(W,X,Y,Z) = Σm(0,1,2,3,6,8,9,10,11,14) + d(7,15) Logic System Design I 4-44

Current Logic Design Lots more than 6 inputs -- can t use Karnaugh maps Use software to synthesize logic expressions and minimize logic Hardware Description Languages -- VHDL and Verilog Logic System Design I 4-45