Circuit analysis summary

Similar documents
Boolean algebra. June 17, Howard Huang 1

Standard Forms of Expression. Minterms and Maxterms

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Review: Standard forms of expressions

Boolean Algebra. P1. The OR operation is closed for all x, y B x + y B

Experiment 3: Logic Simplification

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

Binary logic. Dr.Abu-Arqoub

Unit-IV Boolean Algebra

ENGIN 112 Intro to Electrical and Computer Engineering

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Lecture 5. Chapter 2: Sections 4-7

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

Chapter 3. Boolean Algebra and Digital Logic

Introduction to Boolean logic and Logical Gates

CS February 17

S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 2016/2017

IT 201 Digital System Design Module II Notes

Dr. Chuck Cartledge. 10 June 2015

2.1 Binary Logic and Gates

Objectives: 1- Bolean Algebra. Eng. Ayman Metwali

X Y Z F=X+Y+Z

Announcements. Chapter 2 - Part 1 1

Computer Science. Unit-4: Introduction to Boolean Algebra

Summary. Boolean Addition

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Experiment 4 Boolean Functions Implementation

Boolean Algebra and Logic Gates

Variable, Complement, and Literal are terms used in Boolean Algebra.

Basic circuit analysis and design. Circuit analysis. Write algebraic expressions or make a truth table

Permutation Matrices. Permutation Matrices. Permutation Matrices. Permutation Matrices. Isomorphisms of Graphs. 19 Nov 2015

UNIT 2 BOOLEAN ALGEBRA

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

1. Mark the correct statement(s)

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

Lecture 4: Implementation AND, OR, NOT Gates and Complement

2.6 BOOLEAN FUNCTIONS

Combinational Logic & Circuits

3. According to universal addressing, what is the address of vertex d? 4. According to universal addressing, what is the address of vertex f?

Lecture (05) Boolean Algebra and Logic Gates

Chapter 2 Boolean algebra and Logic Gates

Combinational Circuits Digital Logic (Materials taken primarily from:

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Introduction to Boolean Algebra

Gate Level Minimization Map Method

Introduction to Computer Architecture

Introduction to Boolean Algebra

Boolean Algebra. BME208 Logic Circuits Yalçın İŞLER

01 Introduction to Digital Logic. ENGR 3410 Computer Architecture Mark L. Chang Fall 2008

Boolean Logic CS.352.F12

DSAS Laboratory no 4. Laboratory 4. Logic forms

Chapter 2 Combinational Logic Circuits

QUESTION BANK FOR TEST

CS8803: Advanced Digital Design for Embedded Hardware

Boolean Analysis of Logic Circuits

Combinational Logic Circuits

Gate Level Minimization

Chapter 2. Boolean Expressions:

Lecture (04) Boolean Algebra and Logic Gates

Lecture (04) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee

Designing Computer Systems Boolean Algebra

Code No: R Set No. 1

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

Combinational Devices and Boolean Algebra

ELCT201: DIGITAL LOGIC DESIGN

Combinational Logic Circuits

01 Introduction to Digital Logic. ENGR 3410 Computer Architecture Mark L. Chang Fall 2006

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

Computer Engineering Chapter 3 Boolean Algebra

Simplification of Boolean Functions

Lecture 3: Binary Subtraction, Switching Algebra, Gates, and Algebraic Expressions

CS470: Computer Architecture. AMD Quad Core

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

Module -7. Karnaugh Maps

ENGIN 112. Intro to Electrical and Computer Engineering

Logic Design: Part 2

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

2008 The McGraw-Hill Companies, Inc. All rights reserved.

EEE130 Digital Electronics I Lecture #4_1

Section 1.8. Simplifying Expressions

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Chapter 2: Combinational Systems

Simplification of Boolean Functions

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

Code No: 07A3EC03 Set No. 1

SWITCHING THEORY AND LOGIC CIRCUITS

Chapter 4. Combinational Logic. Dr. Abu-Arqoub

Ch. 5 : Boolean Algebra &

Digital Logic Design (CEN-120) (3+1)

CS61C : Machine Structures

Digital Logic Lecture 7 Gate Level Minimization

ELCT201: DIGITAL LOGIC DESIGN

Gate-Level Minimization

Gate-Level Minimization

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Transcription:

Boolean Algebra

Circuit analysis summary After finding the circuit inputs and outputs, you can come up with either an expression or a truth table to describe what the circuit does. You can easily convert between expressions and truth tables. Find the circuit s inputs and outputs Find a Boolean expression for the circuit Find a truth table for the circuit CS231 Boolean Algebra 2

Boolean Functions summary We can interpret high or low voltage as representing true or false. A variable whose value can be either 1 or 0 is called a Boolean variable. AND, OR, and NOT are the basic Boolean operations. We can express Boolean functions with either an expression or a truth table. Every Boolean expression can be converted to a circuit. Now, we ll look at how Boolean algebra can help simplify expressions, which in turn will lead to simpler circuits. CS231 Boolean Algebra 3

Boolean Algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we ll learn how to how use Boolean algebra to simplify Booleans expressions. Last time, we saw this expression and converted it to a circuit: (x + y )z + x Can we make this circuit better? Cheaper: fewer gates Faster: fewer delays from inputs to outputs June 11, 2002 2000-2002 Howard Huang4

Expression simplification Normal mathematical expressions can be simplified using the laws of algebra For binary systems, we can use Boolean algebra, which is superficially similar to regular algebra There are many differences, due to having only two values (0 and 1) to work with having a complement operation the OR operation is not the same as addition CS231 Boolean Algebra 5

Formal definition of Boolean algebra A Boolean algebra requires A set of elements B, which needs at least two elements (0 and 1) Two binary (two-argument) operations OR and AND A unary (one-argument) operation NOT The axioms below must always be true (textbook, p. 42) The magenta axioms deal with the complement operation Blue axioms (especially 15) are different from regular algebra 1. x + 0 = x 2. x 1 = x 3. x + 1 = 1 4. x 0 = 0 5. x + x = x 6. x x = x 7. x + x = 1 8. x x = 0 9. (x ) = x 10. x + y = y + x 11. xy = yx Commutative 12. x + (y + z) = (x + y) + z 13. x(yz) = (xy)z Associative 14. x(y + z) = xy + xz 15. x + yz = (x + y)(x + z) Distributive 16. (x + y) = x y 17. (xy) = x + y DeMorgan s CS231 Boolean Algebra 6

Comments on the axioms The associative laws show that there is no ambiguity about a term such as x + y + z or xyz, so we can introduce multiple-input primitive gates: The left and right columns of axioms are duals exchange all ANDs with ORs, and 0s with 1s The dual of any equation is always true 1. x + 0 = x 2. x 1 = x 3. x + 1 = 1 4. x 0 = 0 5. x + x = x 6. x x = x 7. x + x = 1 8. x x = 0 9. (x ) = x 10. x + y = y + x 11. xy = yx Commutative 12. x + (y + z) = (x + y) + z 13. x(yz) = (xy)z Associative 14. x(y + z) = xy + xz 15. x + yz = (x + y)(x + z) Distributive 16. (x + y) = x y 17. (xy) = x + y DeMorgan s CS231 Boolean Algebra 7

Are these axioms for real? We can show that these axioms are valid, given the definitions of AND, OR and NOT x y xy 0 0 0 0 1 0 1 0 0 1 1 1 x y x+y 0 0 0 0 1 1 1 0 1 1 1 1 x x 0 1 1 0 The first 11 axioms are easy to see from these truth tables alone. For example, x + x = 1 because of the middle two lines below (where y = x ) x y x+y 0 0 0 0 1 1 1 0 1 1 1 1 CS231 Boolean Algebra 8

Proving the rest of the axioms We can make up truth tables to prove (both parts of) DeMorgan s law For (x + y) = x y, we can make truth tables for (x + y) and for x y x y x + y (x + y) x y x y x y 0 0 0 1 0 0 1 1 1 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 1 0 0 0 In each table, the columns on the left (x and y) are the inputs. The columns on the right are outputs. In this case, we only care about the columns in blue. The other outputs are just to help us find the blue columns. Since both of the columns in blue are the same, this shows that (x + y) and x y are equivalent CS231 Boolean Algebra 9

Simplification with axioms We can now start doing some simplifications x y + xyz + x y = x (y + y) + xyz [ Distributive; x y + x y = x (y + y) ] = x 1 + xyz [ Axiom 7; y + y = 1 ] = x + xyz [ Axiom 2; x 1 = x ] = (x + x)(x + yz) [ Distributive ] = 1 (x + yz) [ Axiom 7; x + x = 1 ] = x + yz [ Axiom 2 ] 1. x + 0 = x 2. x 1 = x 3. x + 1 = 1 4. x 0 = 0 5. x + x = x 6. x x = x 7. x + x = 1 8. x x = 0 9. (x ) = x 10. x + y = y + x 11. xy = yx Commutative 12. x + (y + z) = (x + y) + z 13. x(yz) = (xy)z Associative 14. x(y + z) = xy + xz 15. x + yz = (x + y)(x + z) Distributive 16. (x + y) = x y 17. (xy) = x + y DeMorgan s CS231 Boolean Algebra 10

Here are two different but equivalent circuits. In general the one with fewer gates is better : It costs less to build Let s compare the resulting circuits It requires less power But we had to do some work to find the second form CS231 Boolean Algebra 11

Some more laws Here are some more useful laws. Notice the duals again! 1. x + xy = x 4. x(x + y) = x 2. xy + xy = x 5. (x + y)(x + y ) = x 3. x + x y = x + y 6. x(x + y) = xy xy + x z + yz = xy + x z (x + y)(x + z)(y + z) = (x + y)(x + z) We can prove these laws by either Making truth tables: Using the axioms: x + x y = (x + x )(x + y) [ Distributive ] = 1 (x + y) [ x + x = 1 ] = x + y [ Axiom 2 ] CS231 Boolean Algebra 12

The complement of a function The complement of a function always outputs 0 where the original function outputted 1, and 1 where the original produced 0. In a truth table, we can just exchange 0s and 1s in the output column(s) f(x,y,z) = x(y z + yz) x y z f(x,y,z) 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 0 x y z f (x,y,z) 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 CS231 Boolean Algebra 13

Complementing a function algebraically You can use DeMorgan s law to keep pushing the complements inwards f(x,y,z) = x(y z + yz) f (x,y,z) = ( x(y z + yz) ) [ complement both sides ] = x + (y z + yz) [ because (xy) = x + y ] = x + (y z ) (yz) [ because (x + y) = x y ] = x + (y + z)(y + z ) [ because (xy) = x + y, twice] You can also take the dual of the function, and then complement each literal If f(x,y,z) = x(y z + yz) the dual of f is x + (y + z )(y + z) then complementing each literal gives x + (y + z)(y + z ) so f (x,y,z) = x + (y + z)(y + z ) CS231 Boolean Algebra 14

Summary so far So far: A bunch of Boolean algebra trickery for simplifying expressions and circuits The algebra guarantees us that the simplified circuit is equivalent to the original one Next: Introducing some standard forms and terminology An alternative simplification method We ll start using all this stuff to build and analyze bigger, more useful, circuits CS231 Boolean Algebra 15

Simplify the expression (x+y )(x+y) + x yz A: x + xy +y x + x yz B: 0 C: x + yz D: x + x yz 1. x + xy = x 4. x(x + y) = x 2. xy + xy = x 5. (x + y)(x + y ) = x 3. x + x y = x + y 6. x(x + y) = xy xy + x z + yz = xy + x z (x + y)(x + z)(y + z) = (x + y)(x + z) 16

SIMPLIFY THE EXPRESSION ab c + a bc + b(a c +a (a+c )) A: b+ac B: b+ba+ca C: ca+cb+ba+bc D: abc 1. x + xy = x 4. x(x + y) = x 2. xy + xy = x 5. (x + y)(x + y ) = x 3. x + x y = x + y 6. x(x + y) = xy xy + x z + yz = xy + x z (x + y)(x + z)(y + z) = (x + y)(x + z) CS231 Boolean Algebra 17