Computer Organization I. Lecture 7: Boolean Algebra

Similar documents
BOOLEAN ALGEBRA & LOGIC GATES

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Boolean Algebra Part 1

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

CSE140: Midterm 1 Solution and Rubric

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Simplifying Logic Circuits with Karnaugh Maps

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

2.0 Chapter Overview. 2.1 Boolean Algebra

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

CSE140: Components and Design Techniques for Digital Systems

Basic Logic Gates Richard E. Haskell

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Elementary Logic Gates

Logic Reference Guide

Boolean Algebra (cont d) UNIT 3 BOOLEAN ALGEBRA (CONT D) Guidelines for Multiplying Out and Factoring. Objectives. Iris Hui-Ru Jiang Spring 2010

Gates, Circuits, and Boolean Algebra

CH3 Boolean Algebra (cont d)

Unit 3 Boolean Algebra (Continued)

Karnaugh Maps (K-map) Alternate representation of a truth table

C H A P T E R. Logic Circuits

Binary Adders: Half Adders and Full Adders

Philadelphia University Faculty of Information Technology Department of Computer Science Semester, 2007/2008.

Logic in Computer Science: Logic Gates

Switching Algebra and Logic Gates

EE360: Digital Design I Course Syllabus

Two-level logic using NAND gates

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

CHAPTER 3 Boolean Algebra and Digital Logic

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, The Binary Adder

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Understanding Logic Design

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

DESIGN OF GATE NETWORKS

CS101 Lecture 11: Number Systems and Binary Numbers. Aaron Stevens 14 February 2011

Click on the links below to jump directly to the relevant section

Course Requirements & Evaluation Methods

Combinational circuits

Digital Logic Design

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Basic Proof Techniques

Scilab Textbook Companion for Digital Electronics: An Introduction To Theory And Practice by W. H. Gothmann 1

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Lecture 2 Matrix Operations

Lecture 5 Principal Minors and the Hessian

MEP Y9 Practice Book A

Digital Electronics Detailed Outline

Set operations and Venn Diagrams. COPYRIGHT 2006 by LAVON B. PAGE

Sample Problems. Practice Problems

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Chapter 1. Computation theory

1.4. Arithmetic of Algebraic Fractions. Introduction. Prerequisites. Learning Outcomes

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

3.Basic Gate Combinations

Computer Engineering 290. Digital Design: I. Lecture Notes Summer 2002

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

6. BOOLEAN LOGIC DESIGN

Introduction. The Quine-McCluskey Method Handout 5 January 21, CSEE E6861y Prof. Steven Nowick

NAND and NOR Implementation

Lecture 5: Gate Logic Logic Optimization

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Cloud Computing is NP-Complete

The string of digits in the binary number system represents the quantity

Binary full adder. 2-bit ripple-carry adder. CSE 370 Spring 2006 Introduction to Digital Design Lecture 12: Adders

Combinational Logic Design Process

Computer Programming Lecturer: Dr. Laith Abdullah Mohammed

ENGI 241 Experiment 5 Basic Logic Gates

EG1108: Electrical Engineering

Chapter 1: Digital Systems and Binary Numbers

ANALOG & DIGITAL ELECTRONICS

A Little Set Theory (Never Hurt Anybody)

Boolean Design of Patterns

Grade Level Year Total Points Core Points % At Standard %

The GMAT Guru. Prime Factorization: Theory and Practice

Levent EREN A-306 Office Phone: INTRODUCTION TO DIGITAL LOGIC

Theory of Logic Circuits. Laboratory manual. Exercise 3

Combinational Logic Design

Sum-of-Products and Product-of-Sums expressions

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

A Concrete Introduction. to the Abstract Concepts. of Integers and Algebra using Algebra Tiles

Recall that two vectors in are perpendicular or orthogonal provided that their dot

Chapter 7 Memory and Programmable Logic

NUMBER SYSTEMS. 1.1 Introduction

CM2202: Scientific Computing and Multimedia Applications General Maths: 2. Algebra - Factorisation

Solving Rational Equations

COMBINATIONAL CIRCUITS

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

6 EXTENDING ALGEBRA. 6.0 Introduction. 6.1 The cubic equation. Objectives

Lecture 1: Course overview, circuits, and formulas

Resolution. Informatics 1 School of Informatics, University of Edinburgh

Course Manual Automata & Complexity 2015

Standards for Mathematical Practice: Commentary and Elaborations for 6 8

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Adder.PPT(10/1/2009) 5.1. Lecture 13. Adder Circuits

Lecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved

Transcription:

Computer Organization I Lecture 7: Boolean Algebra

Overview Standard Form of Logic Expression (1) Implementing Logic Function in Sum of Minterm (2) Implementing Logic Function in Product of Maxterm Alternative Standard Form of Logic Expression (1) Sum of Product (SOP) (2) Product of Sum (POS)

Objectives Know how to implement a logic function in SOM and POM given any logic expression

Standard Forms of Logic Expression - Sum of Minterms Any Boolean function can be expressed as a Sum of Minterms. For the function table, the minterms used are the terms corresponding to the 1's For expressions, expand all terms first to explicitly list all minterms. Do this by ANDing any term missing a variable x with a term ( x + x ). Example: Implement F = X + X Y as a sum of minterms. First expand terms: F = X (Y + Y) + X Y Then distribute terms: F = X Y + X Y + X Y Express as sum of minterms: F = m 3 + m 2 + m 0

Standard Forms of Logic Expression - Another Example about Sum of Minterms Example: Implement F = A + B C There are three variables, A, B, and C which we take to be the standard order. Expanding the terms with missing variables Collect terms (i.e. removing the duplicate terms) Express as SOM F = A (B + B) (C + C) + (A + A) B C = (A B + A B ) (C + C) + A B C + A B C = (A B C + A B C + A B C + A B C) + A B C + A B C = m 7 + m 6 + m 5 + m 4 + m 1 = m 1 + m 4 + m 5 + m 6 + m 7

Standard Forms of Logic Expression - Shorthand SOM Form Start with F = A + B C and end up with F = m 1 + m 4 + m 5 + m 6 + m 7 F can be denoted in the formal shorthand: F = Ʃm (1,4,5,6,7), Ʃ is the logical sum of minterms Note that we explicitly show the standard variables in order and drop the m designators.

Standard Forms of Logic Expression - Product of Maxterms Any Boolean function can be expressed as a Product of Maxterms. For the function table, the maxterms used are the terms corresponding to the 0's For expressions, expand all terms first to explicitly list all maxterms. Do this by first applying the distributive law, ORing terms missing variable x with a term equal to x x and then applying the distributive law again. Example: Convert F (X,Y,Z) = X + X Y as a product of maxterms. First apply distributive law: F = (X + X) (X + Y) = 1 (X + Y) = X + Y Then add missing variable: F = X + Y + Z Z = (X + Y + Z) (X+Y+Z) Express as sum of maxterms: F = M 2 M 3

Standard Forms of Logic Expression - Another Example about POM Example: Convert F(A,B,C) = A C + B C + A B Apply the distributive law repeatedly Collect terms F = (A + B + C) (A + B + C) Express as POM F = M 2 M 5

Standard Forms of Logic Expression - Shorthand POM Form Start with F = A C + B C + A B and end up with F = M 2 M 5 F can be denoted in the formal shorthand: F = M(2,5), is the logical consecutive product maxterms Note that we explicitly show the standard variables in order and drop the M designators.

A B C m 0 ABC 0 1 0 1 0 1 0 1 0 0 1 1 1 1 0 1 1 1 0 1 1 1 Standard Forms of Logic Expression - Complement Function by SOM m 1 ABC m 2 ABC 1 0 0 1 m 3 ABC m 4 ABC 1 0 0 1 m 5 ABC m 6 ABC 1 0 0 1 m 7 ABC The complement of a function expressed as a sum of minterms is constructed by selecting the minterms missing in the sum-of-minterms forms. F (A,B,C) = m 0 + m 2 + m 5 + m 7 = Ʃm (0,2,5,7) F (A,B,C) = m 1 + m 3 + m 4 + m 6 = Ʃm (1,3,4,6) F 1 0 1 0 0 1 0 1 F 0 1 0 1 1 0 1 0

Standard Forms of Logic Expression - Complement Function by POM the complement of a function expressed by a Sum of Minterms form is simply the Product of Maxterms with the same indices according to DeMorgan Theorem. Example: given F (A,B,C) = Ʃm (0,2,5,7) we have F in maxterms: F (A,B,C) = M (0,2,5,7) we have F in minterms: F (A,B,C) = Ʃm (1,3,4,6) we have F in maxterms: F (A,B,C) = M (1,3,4,6)

Standard Forms of Logic Expression - Conversion between SOM and POM To convert between sum-of-minterms and product-of-maxterms form (or vice-versa) we follow these steps: Find the function complement by swapping terms in the list with terms not in the list. Change from products to sums, or vice versa. Example: Given F as: F (A,B,C) = Ʃm (1,3,5,7) Form the Complement: F (A,B,C) = Ʃm (0,2,4,6) Then use the other form with the same indices this forms the complement again, giving the other form of the original function: F (A,B,C) = M (0,2,4,6)

Alternative Standard Form of Logic Expression So far we have known that any logic function with a given truth table can be expressed as a standard form using sum of minterms or product of maxterms. This can be considered as the first step of logic circuit design. Once the standard form is obtained according to truth table, the second step is to try to simplify expression to see if the number of product or the number of literals can be reduced in order to simplify circuit. The result might be in a sum of product (SOP) form or a product of sum (POS) form, and we call the SOP and POS form as the alternative standard form of logic expression

Alternative Standard Form of Logic Expression Sum-of-Product (SOP) form: logic expressions are written as an OR of AND terms Product-of-Sums (POS) form: logic expressions are written as an AND of OR terms Examples: SOP: A B C + A B C + B POS: (A + B) (A + B + C) C These mixed forms are neither SOP nor POS (A B + C) (A + C) A B C + AC (A + B)

Summary Implementing any logic function in SOM and POM based on Truth Table or Boolean Algebraic Manipulation Introduction to SOP and POS

Thank you Q & A