Lecture 3. Title goes here 1. level Networks. Boolean Algebra and Multi-level. level. level. level. level

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

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

12/31/2010. Overview. 05-Boolean Algebra Part 3 Text: Unit 3, 7. DeMorgan s Law. Example. Example. DeMorgan s Law

CMSC 313 Lecture 16 Postulates & Theorems of Boolean Algebra Semiconductors CMOS Logic Gates

Why digital? Overview. Number Systems. Binary to Decimal conversion

Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

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

Lecture 1. Notes. Notes. Notes. Introduction. Introduction digital logic February Bern University of Applied Sciences

Logic Gates and Boolean Algebra

Goals for Lecture. Binary Logic and Gates (MK 2.1) Binary Variables. Notation Examples. Logical Operations

CS 226: Digital Logic Design

Chapter 2: Switching Algebra and Logic Circuits

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Digital Fundamentals

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Digital Design 2. Logic Gates and Boolean Algebra

Boole Algebra and Logic Series

EEE130 Digital Electronics I Lecture #4

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

3.4 Set Operations Given a set A, the complement (in the Universal set U) A c is the set of all elements of U that are not in A. So A c = {x x / A}.

Logic Design. Chapter 2: Introduction to Logic Circuits

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

COSC3330 Computer Architecture Lecture 2. Combinational Logic

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

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

New Students Day Activity

CHAPTER 3 LOGIC GATES & BOOLEAN ALGEBRA

COMP2611: Computer Organization. Introduction to Digital Logic

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

CHAPTER1: Digital Logic Circuits Combination Circuits

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

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

Chapter 2 Part 7 Combinational Logic Circuits

Algebraic Methods for the Analysis and Synthesis

LOGIC GATES (PRACTICE PROBLEMS)

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

LOGIC GATES A Y=A+B. Logic symbol of OR gate B The Boolean expression of OR gate is Y = A + B, read as Y equals A 'OR' B.

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

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

Computer Organization: Boolean Logic

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Combinational Logic (mostly review!)

Electronics. Overview. Introducction to Synthetic Biology

Unit 2 Boolean Algebra

2. Associative Law: A binary operator * on a set S is said to be associated whenever (A*B)*C = A*(B*C) for all A,B,C S.

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

Chapter 2: Boolean Algebra and Logic Gates

Combinational Logic Design Principles

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

Possible logic functions of two variables

Lecture 4: More Boolean Algebra

Chapter 3 Combinational Logic Design

Part 5: Digital Circuits

CPE100: Digital Logic Design I

Chapter 2 Combinational Logic Circuits

Digital Logic (2) Boolean Algebra

CHAPTER 2 BOOLEAN ALGEBRA

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

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

MC9211 Computer Organization

Lecture 10: 09//25/03 A.R. Neureuther Version Date 09/14/03 EECS 42 Introduction to Digital Electronics Andrew R. Neureuther

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Logic Gate Level. Part 2

L2: Combinational Logic Design (Construction and Boolean Algebra)

Basic Gate Repertoire

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

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

Chapter 2 Combinational Logic Circuits

211: Computer Architecture Summer 2016

Unit 8A Computer Organization. Boolean Logic and Gates

Slides for Lecture 10

Digital electronics form a class of circuitry where the ability of the electronics to process data is the primary focus.

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

CHAPTER 7. Solutions for Exercises

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

CHAPTER 12 Boolean Algebra

WEEK 2.1 BOOLEAN ALGEBRA

L2: Combinational Logic Design (Construction and Boolean Algebra)

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

CS61c: Representations of Combinational Logic Circuits

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

Combinational Logic Fundamentals

Chapter 7 Logic Circuits

1. Name the person who developed Boolean algebra

EECS Variable Logic Functions

Chapter 2 Combinational Logic Circuits

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

Circuits & Boolean algebra.

THE LOGIC OF COMPOUND STATEMENTS

Lecture 9: Digital Electronics

THE LOGIC OF COMPOUND STATEMENTS

Propositional Equivalence

Digital Circuit And Logic Design I. Lecture 3

CHAPTER 3 BOOLEAN ALGEBRA

Transcription:

Lecture 3 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 53, Engineering uilding oolean lgebra and Multi- oolean algebra George oole, little formal education yet was a brilliant scholar. Made lasting contribution to mathematics in the areas of differential and difference equations as well as algebra. He published in 854 his work n Investigation of the Laws of Thought, on which are founded the Mathematical Theories of Logic an Probability. oole s stated intention was a mathematical analysis of logic. oolean lgebra and Multi- oolean algebra like any other deductive mathematical system, may be defined with a set of elements, a set of operators, and a number of unproved axioms or postulates, i.e. it is a mathematical analysis of logic Why do we use oolean lgebra? We use oolean algebra due to its ability for mathematical analysis of logic to study digital systems. oolean lgebra and Multi- In oolean algebra a proposition is either true or false (no inbetween state possible), these proposition are denoted by letters (usually at start of the alphabet) e.g.. The grass is green TRUE. 3 is an even number FLSE We can combine these propositions to get oolean Functions denoted by letters (from the end of the alphabet). e.g. Z = ND FLSE oolean lgebra and Multi- There are several advantages for having a mathematical method for description of the internal workings of a computer more convenient to calculate using expressions that represent switching circuits then it is to use schematic or even logical expressions just as an ordinary algebraic expression may be simplified by means of basic theorems, the expression describing a given switching circuit network may be reduced or simplified. oolean lgebra and Multi- enabling the designer to simplify the circuitry used achieving economy of construction and reliability of operation oolean algebra also provides an economical and straightforward way of describing the circuitry used in computers. Title goes here

Fundamental oncepts of oolean lgebra When a variable is used in an algebraic formula, it is generally assumed that the variable may take on any numerical value. assume x,y and z range 2x 5y = z through the entire field of real numbers However a variable in oolean equations has a unique characteristic. it may assume only one of two possible states these states can be represented by the symbols and. i.e. T or F Fundamental oncepts of oolean lgebra This concept becomes clearer once the + symbol is defined. Since each of the two variables, x and y can take on only the value of or we define the + symbol by listing all possible combinations for x and y and x+y Fundamental oncepts of oolean lgebra The input/output combinations are as follows : += += += += This is the LOGIL DDITION table This is logical addition. The symbol + does not have the normal meaning it is a logical addition of logical OR symbol. Fundamental oncepts of oolean lgebra nother important operation in oolean lgebra is logical multiplication or logical ND operation. This rules of this operation can be given by simply listing all the values that might occur.=.=.=.= This is the LOGIL MULTIPLITION table Fundamental oncepts of oolean lgebra oth + and. obey a mathematical rule called the associative law. i.e. ( x + y) + z = x + ( y + z) we can write without ambiguity. No matter what order the operation is performed Fundamental oncepts of oolean lgebra It is necessary to know both the terms : logical addition and OR operations for the symbol + and logical multiplication and ND operation for the. symbol. E : The two operations cannot be mixed without ambiguity in the absence of further rules i.e.. + = (. ) +. ( + ) Since all these terms are actually used in computer architecture manuals, technical journals trade magazines. Title goes here 2

oolean Operations : ND,OR and The + and. operations are physically realised by two types of electronic circuits called OR gates and ND gates. treat them simply as block boxes. Gate is simply an electronic circuit that operates on one or more input signals to produce an output signal. oolean Operations : ND,OR and oolean algebra uses the operation called complementation and the symbol of this is means take the complement of ( + ) means take the complement of + The complement operation can be defined quite simply as oolean Operations : ND,OR and s we have seen the complementation operation is physically realised by a gate or circuit called an inverter. omplement of oolean Operations : ND,OR and Examples of oolean Functions Z = + Y = + D + OR ND Logical Sum, True if either OR true Logical Product, True if both ND true To study a logical expression, it is very useful to construct a table of values for the variables. then evaluate the expression for each possible combination of variables. oolean Operations : ND,OR and oolean Operations : ND,OR and e.g. + Title goes here 3

oolean Operations : ND,OR and oolean Operations : ND,OR and Finally ORing or Logical ddition + Rules of oolean lgebra We represent FLSE with and TRUE with. If we have a large number of propositions and a complicated oolean function we may be able to simplify it using the concept of tautology (redundancy). e.g. Z = + Z = + Z = always TRUE always TRUE always FLSE We can use the complete set of rules of oolean lgebra to simplify expressions.. 2. 3. 4. 5. 6. 7. 8. 9. =. ommutative Laws + = + =. ( ) ( ) + + = + + = + + 2. ssociative Laws ( ) = ( ) = 3. 4. ( + ) = + Distributive Law 5. 6. 7. + = + = + = + = = = = = + = ( + ) = + = + 8. + + = + 9. De Morgan s Laws ( + ) = 2 ( ) = + ( + Rules of oolean lgebra 2. ( ) = + ) ( + + + + + + + = + + = ( ( + ) ) = + ( + ) = + + ( + ) + = = + We can extend De Morgan s Laws to... = + + +... + + +... =... Example of the pplication of the Rules Z = + + Rule 4 Rule 4 = + ( + ) + = + + + = + ( + ) + ( + ) Rule 5 truth table for each expression will verify that both are equivalent Title goes here 4

Specific Design Problem Specific Design Problem logical network has two inputs, and and output. put this into a truth table. The relationship between the inputs and outputs is as follows : When and are s is to be When is and is is to be When is and is is to be When and are s is to be Specific Design Problem Specific Design Problem Now add a new column for the product terms : will contain each of the input variables for each row, with the letter complemented when input value for the variable is and not complemented when the input value is. Product Terms When the product term is equal to product term is removed and used as a sum-of - products expansion in this case st, 2 nd and 4 th rows are selected. = + + Specific Design Problem Specific Design Problem simplify Rule 4 ( ) = + + heck using the Truth-Table : + Rule 8 = + Rule : + = = = + Implementation : Title goes here 5

Interconnecting Gates OR gates, ND gates etc. can be interconnected to form gating or logic networks. These are also called combinational networks. The oolean lgebra expression corresponding to a given gating network can be derived by systematically progressing from input to output of the gates. Interconnecting Gates We can analyse the operation of these gating networks by using the oolean lgebra expressions. e.g. in trouble-shooting a computer can determine which gates have failed by examining the inputs to the gating network and the outputs Thus we can see whether the oolean expression are properly performed. Sum of Products and Product of Sums ertain types of oolean algebra expressions lead to gating networks that are more desirable from most implementation viewpoints. an define two types of oolean expression: Sum of Products and Product of Sums Sum Term sum term is a single variable or logical sum of several variables. The variables may or may not be complemented e.g. + + is a sum term Product Term product term is a single variable or logical product of several variables. The variables may or may not be complemented e.g. is a product term UT + term. is neither a product term nor a sum Sum of Products and Product of Sums We can now define two very important types of expressions : Sum of Product Expressions is a product term or several product terms logically added. e.g. + Product of Sums Expressions Sum of Products and Product of Sums What is that main advantage? The main reason as we saw earlier, is that we convert them in a straightforward way to simple gating networks Þ Their purest form is represented by two- networks i.e. networks whose longest path from input to output is two gates. is a sum term or several sum terms logically multiplied. e.g. + + ( ) ( ) Title goes here 6

Derivation of Product of Sums Expression Derivation of Product of Sums Expression We have seen earlier the sequence of steps for deriving a SOP expression for a given circuit. e.g. nother method, a dual of the first, forms the required expression as a POS. Method:. onstruct a table of the input and output values 2. onstruct an additional column of sum terms if the input term for a given variable is variable will be complemented but if the input term for a given variable is variable not complemented 3. The desired expression is the product of the sum terms from the rows in which the output is. Derivation of Product of Sums Expression Derivation of Product of Sums Expression Sum Terms POS expression is formed only from 2 nd and 3 rd rows (as output is ) + + + + = ( + )( + ) = + = + + + + NND and NOR Implementations ND s and OR s and s have been used up to this point. Why not continue Why bother with NND s or NOR s use DeMorgan s Rules : NND and NOR Implementations = + The main reason is that the Silicon rea on an I is very valuable. Thus we must make optimised use of it. NND can be made to yield ND and OR gates an ND gate can be formed from 2 NND gates and 2-input OR can be formed from 3 NND gates + + + + Thus a set of NND s can thus be used to make any combinational network by substituting the above for ND and OR blocks Title goes here 7

NND and NOR Implementations Thus the combination of this substituting ability of NND s, make the design of the I have all the same type of gates. Thus manufacture is made simpler. Same applies for NOR s. + ombinational Logic We have already seen the basic digital logic gates :, ND, OR, NND and NOR. One we have not yet seen is the Exclusive OR. Exclusive OR gate Symbol Function Truth-Table Denote thus defined : = + ombinational Logic We can implement an exclusive-or gate directly as follows : + n alternative form of the Exclusive OR-Gate is ( ) + = = + = + ( + ) = This implementation requires 4 NND gates. Such a single gate type solution is elegant and cost effective. Title goes here 8