CAS 701. Boolean Algebra. Mahnaz Ahmadi Oct. 14, 2004 McMaster University. References

Similar documents
Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

BOOLEAN ALGEBRA & LOGIC GATES

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

Logic in Computer Science: Logic Gates

NAND and NOR Implementation

6. BOOLEAN LOGIC DESIGN

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

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

Boolean Algebra Part 1

Understanding Logic Design

Elementary Logic Gates

5.2 Inverse Functions

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

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

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

Switching Algebra and Logic Gates

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

CSE140: Midterm 1 Solution and Rubric

HFCC Math Lab Beginning Algebra 13 TRANSLATING ENGLISH INTO ALGEBRA: WORDS, PHRASE, SENTENCES

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

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

Basic Logic Gates Richard E. Haskell

Simplifying Logic Circuits with Karnaugh Maps

CHAPTER 3 Boolean Algebra and Digital Logic

Digital Electronics Detailed Outline

C3: Functions. Learning objectives

2.0 Chapter Overview. 2.1 Boolean Algebra

CSE140: Components and Design Techniques for Digital Systems

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

Digital Logic Elements, Clock, and Memory Elements

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

Use order of operations to simplify. Show all steps in the space provided below each problem. INTEGER OPERATIONS

Binary Adders: Half Adders and Full Adders

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

SECTION 7-4 Algebraic Vectors

Two-level logic using NAND gates

Sect. 1.3: Factoring

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

ENGI 241 Experiment 5 Basic Logic Gates

Exponential Functions

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

3.Basic Gate Combinations

Introduction to Matrices for Engineers

Downloaded from equations. 2.4 The reciprocal function x 1 x

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

C H A P T E R. Logic Circuits

Core Maths C2. Revision Notes

Lecture 5: Gate Logic Logic Optimization

Logic Reference Guide

D.2. The Cartesian Plane. The Cartesian Plane The Distance and Midpoint Formulas Equations of Circles. D10 APPENDIX D Precalculus Review

1.3 Models & Applications

Counters and Decoders

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

Core Maths C3. Revision Notes

Multiplying and Dividing Algebraic Fractions

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

Zero and Negative Exponents and Scientific Notation. a a n a m n. Now, suppose that we allow m to equal n. We then have. a am m a 0 (1) a m

MEMORANDUM. All students taking the CLC Math Placement Exam PLACEMENT INTO CALCULUS AND ANALYTIC GEOMETRY I, MTH 145:

Exponential and Logarithmic Functions

15.1. Exact Differential Equations. Exact First-Order Equations. Exact Differential Equations Integrating Factors

Polynomials. Jackie Nicholas Jacquie Hargreaves Janet Hunter

Chapter 3 Digital Basics

A Quick Algebra Review

LESSON EIII.E EXPONENTS AND LOGARITHMS

Deriving MRS from Utility Function, Budget Constraints, and Interior Solution of Optimization

z 0 and y even had the form

More Equations and Inequalities

EE360: Digital Design I Course Syllabus

Mixed Logic A B A B. 1. Ignore all bubbles on logic gates and inverters. This means

Mathematical goals. Starting points. Materials required. Time needed

PROPERTIES OF ELLIPTIC CURVES AND THEIR USE IN FACTORING LARGE NUMBERS

CROSS-EFFECTS OF HOMOTOPY FUNCTORS AND SPACES OF TREES. WARNING: This paper is a draft and has not been fully checked for errors.

Functions and Graphs CHAPTER INTRODUCTION. The function concept is one of the most important ideas in mathematics. The study

INVESTIGATIONS AND FUNCTIONS Example 1

{ } Sec 3.1 Systems of Linear Equations in Two Variables

Digital Controller for Pedestrian Crossing and Traffic Lights

SAMPLE. Polynomial functions

Why? A central concept in Computer Science. Algorithms are ubiquitous.

Ladder and Functional Block Programming

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

2.6. The Circle. Introduction. Prerequisites. Learning Outcomes

Example 1: Model A Model B Total Available. Gizmos. Dodads. System:

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

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

SECTION 2.2. Distance and Midpoint Formulas; Circles

Sistemas Digitais I LESI - 2º ano

Gates, Circuits, and Boolean Algebra

Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and

Combinational Logic Design

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

POLYNOMIAL FUNCTIONS

Section 5.0A Factoring Part 1

5.1. A Formula for Slope. Investigation: Points and Slope CONDENSED

The GMAT Guru. Prime Factorization: Theory and Practice

(b) (b) f 1 = x 1 x 2 ( x 3 v x 4 )

Mathematics Placement Packet Colorado College Department of Mathematics and Computer Science

IAEA Training Course on Safety Assessment of NPPs to Assist Decision Making. System Analysis. Lecturer. Workshop Information IAEA Workshop

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA

You know from calculus that functions play a fundamental role in mathematics.

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Transcription:

S 701 oolean lgebra Mahna hmadi Oct. 14 2004 McMaster Universit References J. Eldon whitesitt oolean lgebra and its pplications Ralph P. Grimaldi Discrete and ombinational Mathematics Kenneth H.Rosen Discrete Mathematics and its pplications 1

2 oolean algebra Let be a nonempt set that contains two special elements 0 and 1 and on which we define closed binar operations. and a unar operation 01. is called a oolean algebra if the following aioms are satisfied for all Identit laws 1 0 Inverse laws 0 1 ommutative laws Distributive laws... ssociative laws....

From the aioms above we can derive the following theorems Idempotent Laws bsorption Laws Dominance Laws Demorgan s Laws Law of the Double omplement. 1 1.0 0.. The principle of Dualit n algebraic equalit derived from the aioms of oolean algebra remains true when the operators. and are interchanged and the identit elements 0 and 1 are interchanged. This propert is called the dualit principle. For eample: 11. 0 0 Dual ecause of the dualit principle for an given theorem we get it's dual for free. 3

4 n application of oolean algebra onsider an set X and let X P stands for the collection of all possible subsets of the set X. The power set of the set X. φ X X P ontains two special elements φ corresponding to 0 in oolean algebra and X orresponding to 1 in oolean algebra and closed binar operations and a unar operation is an instance of oolean algebra since the following aioms are satisfied for all X P. Identit laws X φ Inverse laws φ X ommutative laws Distributive laws ssociative laws

Logic Gates In 1938 laude Shannon showed how the basic rules of logic first given b Geoge ool in 1854 in his The Laws of Thought could be used to design circuits. oolean algebra is used to design and simplif circuits of electronic devices. Each input and output can be thought as a member of the set { 01}. The basic elements of circuits are called gates. Each tpe of gate implements a oolean operation. Inverter OR ND Inverter produces the complement of an input oolean variable as its output OR which produces the oolean sum of two or more oolean variables ND which produces the oolean products of two or more oolean variables 5

Each circuit can be designed using the rules of oolean algebra For eample: 1 circuit for Majorit Voting: 2 The Half dder: arr 6

Minimiation of ircuits oolean algebra finds its most practical use in the simplification of logic circuits. To do this: Translate a logic circuit's function into smbolic oolean form ppl certain algebraic rules to the resulting equation to reduce the number of terms and/or arithmetic operations The simplified equivalent function with fewer components will: 1 Increase efficienc and reliabilit 2 Decrease cost of manufacture. There are several was to reduce the number of terms in a oolean epression representing a circuit such as: 1 Rules of oolean algebra 2 Karnaugh Maps 3 The Quine-Mcluske Method 7

1 Rules of oolean algebra bsorption Laws 1 Identit Law 1 Distributive Law of. Over 1 Dominance Law and ommutative Law of Identit Law 8

2 Karnaugh Maps Karnaugh map is a graphical method to reduce the number of terms which was introduced b Maurice Karnaugh in 1953. This method is usuall applied onl when the function involves si or fewer variable. Karnaugh map uses the sum-of-products d.n.f epansion of a circuit to find a set of logic gates that implement circuits and to find terms to combine. Terms in a sum-of products epansion that differ in just one variable can be combined so that in one term this variable occurs and in the other term the complement of this variable occurs. 1 is placed in the square representing a minterm if this minterm is present in the epansion. The goal is to identif the largest blocks of 1s in the map and to cover all the 1s using the fewest blocks needed using the largest blocks first. 9

Suppose a oolean function in four variables is: w w w w w w w Karnaugh map in four variables is a square that is divided into 16 squares that means there are 16 possible minters in the sum-of-products epansion of a oolean function in the four variables w w w w w The minimal epansion is: w 10

3 The Quine-Mcluske Method It was developed in the 1950s b W.V.Quine and E.J.Mcluske. The Quine-Mcluske Method is procedure for simplifing sum of products epansions that can be mechanied. It can be used for oolean function in an number of variables. The Quine-Mcluske method consists of two parts. 1 Finds those terms that are candidates for inclusion in a minimal epansion as a oolean sum of oolean products 2 Determines which of these terms to actuall use Represent the minterms in the epansion b bit strings. The first bit will be 1 if occurs and 0 if occurs. The second and third bit as the same represent for and. Minterms that can be combined are those that differ in eactl one literal. Hence two terms that can be combined differ b eactl one in the number of 1s in the bit strings that represent them. product in two literals is represented using a dash to denote the variable that doesn t occur. 11

Find a minimal epansion equivalent to: Step1 Step2 Term it String Term String Term String 1 111 2 101 3 011 4 001 5 000 12 1-1 13-11 24-01 34 0-1 45 00-1234 --1 X X X X X X The minimal epansion is: 12