ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.

Slides:



Advertisements
Similar presentations
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Advertisements

Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
Chapter 2 Logic Circuits.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 3 Dr. Shi Dept. of Electrical and Computer Engineering.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Gate Circuits and Boolean Equations BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Boolean Algebra Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
ECEN 248: INTRODUCTION TO DIGITAL DESIGN
Binary Logic and Gates Binary variables take on one of two values.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Laws (Theorems) of Boolean algebra Laws of Complementation oThe term complement means, to invert or to change 1's to 0's and 0's to 1's, for which purpose.
LOGIC GATES & BOOLEAN ALGEBRA
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Boolean Algebra and Reduction Techniques
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
Boolean Algebra Computer Architecture. Digital Representation Digital is an abstraction of analog voltage –Voltage is a continuous, physical unit Typically.
ECE2030 Introduction to Computer Engineering Lecture 5: Boolean Algebra Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Introduction to Digital Electronics Lecture.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Algebra How gates get picked. Boolean Arithmetic Boolean ≠ Binary – Boolean – 1/0 only, no places Boolean addition:
Hoda Roodaki Boolean Algebra Hoda Roodaki
Logic Gates and Logic Circuits
Chapter 3 Notes – Part II Review Questions
De Morgan’s Theorem,.
Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 1 : INTRODUCTION
Overview Part 1 – Gate Circuits and Boolean Equations
TN 221: DIGITAL ELECTRONICS 1
Jeremy R. Johnson Wed. Sept. 29, 1999
Lecture 3: Boolean Algebra
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Boolean Algebra.
Basic Logic Gates 1.
CSE 370 – Winter Combinational Logic - 1
Boolean Algebra Introduction CSCI 240
COMS 361 Computer Organization
Chapter 4 Gates and Circuits.
Boolean Algebra How gates get picked.
ECE 352 Digital System Fundamentals
Introductory Concepts
BOOLEAN ALGEBRA.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.
Presentation transcript:

ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra

ENGIN112 L5: Boolean Algebra September 12, 2003 Overview °Logic functions with 1’s and 0’s Building digital circuitry °Truth tables °Logic symbols and waveforms °Boolean algebra °Properties of Boolean Algebra Reducing functions Transforming functions

ENGIN112 L5: Boolean Algebra September 12, 2003 Digital Systems °Analysis problem: Determine binary outputs for each combination of inputs °Design problem: given a task, develop a circuit that accomplishes the task Many possible implementation Try to develop “best” circuit based on some criterion (size, power, performance, etc.) Logic Circuit InputsOutputs

ENGIN112 L5: Boolean Algebra September 12, 2003 Toll Booth Controller °Consider the design of a toll booth controller °Inputs: quarter, car sensor °Outputs: gate lift signal, gate close signal °If driver pitches in quarter, raise gate. °When car has cleared gate, close gate. Logic Circuit $.25 Car? Raise gate Close gate

ENGIN112 L5: Boolean Algebra September 12, 2003 Describing Circuit Functionality: Inverter °Basic logic functions have symbols. °The same functionality can be represented with truth tables. Truth table completely specifies outputs for all input combinations. °The above circuit is an inverter. An input of 0 is inverted to a 1. An input of 1 is inverted to a 0. AY InputOutput A Y Symbol Truth Table

ENGIN112 L5: Boolean Algebra September 12, 2003 The AND Gate °This is an AND gate. °So, if the two inputs signals are asserted (high) the output will also be asserted. Otherwise, the output will be deasserted (low). ABY A B Y Truth Table

ENGIN112 L5: Boolean Algebra September 12, 2003 The OR Gate °This is an OR gate. °So, if either of the two input signals are asserted, or both of them are, the output will be asserted. ABY A B Y

ENGIN112 L5: Boolean Algebra September 12, 2003 Describing Circuit Functionality: Waveforms °Waveforms provide another approach for representing functionality. °Values are either high (logic 1) or low (logic 0). °Can you create a truth table from the waveforms? ABY AND Gate

ENGIN112 L5: Boolean Algebra September 12, 2003 Consider three-input gates 3 Input OR Gate

ENGIN112 L5: Boolean Algebra September 12, 2003 Ordering Boolean Functions °How to interpret A  B+C? Is it A  B ORed with C ? Is it A ANDed with B+C ? °Order of precedence for Boolean algebra: AND before OR. °Note that parentheses are needed here :

ENGIN112 L5: Boolean Algebra September 12, 2003 Boolean Algebra °A Boolean algebra is defined as a closed algebraic system containing a set K or two or more elements and the two operators,. and +. °Useful for identifying and minimizing circuit functionality °Identity elements a + 0 = a a. 1 = a °0 is the identity element for the + operation. °1 is the identity element for the. operation.

ENGIN112 L5: Boolean Algebra September 12, 2003 Commutativity and Associativity of the Operators °The Commutative Property: For every a and b in K, a + b = b + a a. b = b. a °The Associative Property: For every a, b, and c in K, a + (b + c) = (a + b) + c a. (b. c) = (a. b). c

ENGIN112 L5: Boolean Algebra September 12, 2003 Distributivity of the Operators and Complements °The Distributive Property: For every a, b, and c in K, a + ( b. c ) = ( a + b ). ( a + c ) a. ( b + c ) = ( a. b ) + ( a. c ) °The Existence of the Complement: For every a in K there exists a unique element called a’ (complement of a) such that, a + a’ = 1 a. a’ = 0 °To simplify notation, the. operator is frequently omitted. When two elements are written next to each other, the AND (.) operator is implied… a + b. c = ( a + b ). ( a + c ) a + bc = ( a + b )( a + c )

ENGIN112 L5: Boolean Algebra September 12, 2003 Duality °The principle of duality is an important concept. This says that if an expression is valid in Boolean algebra, the dual of that expression is also valid. °To form the dual of an expression, replace all + operators with. operators, all. operators with + operators, all ones with zeros, and all zeros with ones. °Form the dual of the expression a + (bc) = (a + b)(a + c) °Following the replacement rules… a(b + c) = ab + ac °Take care not to alter the location of the parentheses if they are present.

ENGIN112 L5: Boolean Algebra September 12, 2003 Involution °This theorem states: a’’ = a °Remember that aa’ = 0 and a+a’=1. Therefore, a’ is the complement of a and a is also the complement of a’. As the complement of a’ is unique, it follows that a’’=a. °Taking the double inverse of a value will give the initial value.

ENGIN112 L5: Boolean Algebra September 12, 2003 Absorption °This theorem states: a + ab = aa(a+b) = a °To prove the first half of this theorem: a + ab = a. 1 + ab = a (1 + b) = a (b + 1) = a (1) a + ab= a

ENGIN112 L5: Boolean Algebra September 12, 2003 DeMorgan’s Theorem °A key theorem in simplifying Boolean algebra expression is DeMorgan’s Theorem. It states: (a + b)’ = a’b’(ab)’ = a’ + b’ °Complement the expression a(b + z(x + a’)) and simplify. (a(b+z(x + a’)))’ = a’ + (b + z(x + a’))’ = a’ + b’(z(x + a’))’ = a’ + b’(z’ + (x + a’)’) = a’ + b’(z’ + x’a’’) = a’ + b’(z’ + x’a)

ENGIN112 L5: Boolean Algebra September 12, 2003 Summary °Basic logic functions can be made from AND, OR, and NOT (invert) functions °The behavior of digital circuits can be represented with waveforms, truth tables, or symbols °Primitive gates can be combined to form larger circuits °Boolean algebra defines how binary variables can be combined °Rules for associativity, commutativity, and distribution are similar to algebra °DeMorgan’s rules are important. Will allow us to reduce circuit sizes.