Lecture 5 EGRE 254 1/28/09. 2 Boolean algebra a.k.a. “switching algebra” –deals with Boolean values -- 0, 1 Positive-logic convention –analog voltages.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Types of Logic Circuits
CS2100 Computer Organisation
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Chapter 2 Logic Circuits.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
ECE 331 – Digital System Design
EE365 Boolean algebra Combinational-circuit analysis.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis.
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
Gate Circuits and Boolean Equations BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
CHAPTER 2 Boolean Algebra
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
Binary Logic and Gates Binary variables take on one of two values.
Boolean Algebra and Digital Circuits
©2004 Brooks/Cole FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
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 and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
Boolean Algebra and Logic Gates
Boolean Functions and Boolean Algebra Laxmikant Kale.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
KU College of Engineering Elec 204: Digital Systems Design 1 Review D: n bit binary number D = (d n-1 ∙ ∙ ∙ d 1 d 0 ) 2 If D is an unsigned binary number.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
ECE 2110: Introduction to Digital Systems
Boolean Algebra ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
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.
CHAPTER 2 Boolean algebra and Logic gates
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
ECE 301 – Digital Electronics
Chapter 3 Notes – Part II Review Questions
Chapter 11 (Part 1): Boolean Algebra
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
Unit 2 Boolean Algebra.
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Overview Part 1 – Gate Circuits and Boolean Equations
Princess Sumaya University
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA
Lecture 3: Boolean Algebra
Modified from John Wakerly Lecture #2 and #3
Boolean Algebra.
Boolean Algebra.
Boolean Algebra & Logic Circuits
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Digital Systems Design
EE121 John Wakerly Lecture #3
Digital Logic Chapter-2
Instructor: Alexander Stoytchev
Digital Logic Chapter-2
Introductory Concepts
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Presentation transcript:

Lecture 5 EGRE 254 1/28/09

2 Boolean algebra a.k.a. “switching algebra” –deals with Boolean values -- 0, 1 Positive-logic convention –analog voltages LOW, HIGH --> 0, 1 Negative logic -- seldom used Signal values denoted by variables (X, Y, FRED, etc.)

3 Boolean operators Complement:X or (opposite of X) AND:X  Y OR:X + Y binary operators, described functionally by truth table.

4 More definitions Literal: a variable or its complement –X, X, FRED, CS_L Expression: literals combined by AND, OR, parentheses, complementation –X+Y –P  Q  R –A + B  C –((FRED  Z) + CS_L  A  B  C + Q5)  RESET Equation: Variable = expression –P = ((FRED  Z) + CS_L  A  B  C + Q5)  RESET

5 Logic symbols

6 Basic Axioms A1A1’ A2A2’ A3A3’ A4A4’ A5A5’

7 Proving theorems Using axioms or theorems already proven. Perfect induction – Verify theorem for all possible values of the variables. 1 variable 2 = 2 1 possible values. 0, 1 2 variables 4 = 2 2 possible values. 00, 01, 10, 11 3 variables 8 = 2 3 possible values. 000, 001, …, 111 n variables 2 n possible values. For general case of n variable we use the mathematical technique of finite induction.

8 Prove T1 and T1’ T1 : X + 0 = X Proof 1a –If X = 0 then X + 0 = X by A4’ –If X = 1 then X + 0 = X by A5’ Proof 2a,b T1’: X  1 = X Proof 1b –If X = 1 then X  1= X by A4 –If X = 0 then X  1= X by A5 Proof 3b –T1’ follows from duality of T1. XX+0 X1X

9 Basic Theorems T1T1’ T2T2’ T3 Idempotent law T3’ T4T4’Same as T4 T5T5’

10 Theorems T6 Commutative law T6’ T7 Associative law T7’ T8 Distributive law T8’ T9 Adsorption law T9’ T10 T10’ T11 T11’

11 T8’ Not what we would expect! Proof 1: using truth table (perfect induction) XYZX+YX+ZYZ(X+Y)(X+Z)X + YZ

12 T8’ Proof 2: Algebraically using proved theorems (X + Y)(X + Z) = (X+Y)X +(X+Y)Z ;Why? = XX+YX+XZ+YZ ; T6’, T8 = X+XY+XZ+YZ ; T3’, T6’ = X  1 + X(Y+Z) + YZ ; T1’, T8 = X(1+(Y+Z)) + YZ ; T8 = X  1 + YZ ; T6, T1’ = X + YZ ; T1’ Better (X + Y)(X + Z) = X + XZ + XY + YZ = X(1+Z+Y) + YZ = X + YZ Proof 3: Follows from T8 and duality.

13 Algebraic Proofs T10: XY+XY’ = X(Y+Y’) = X  1 = X T10’: (X+Y)(X+Y’) = X+XY+XY’+YY’ = X(1+Y+Y’) + 0 = X(1) = X T11: XY+X’Z+YZ = XY+X’Z+(XYZ+X’YZ) = XY(1+Z) + X’Z(1+Z) = XY + X’Z T11’: Do as an exercise.

14 Example using T9 (A+B)’C + (A+B)’CD’(E+F) = (A+B)’C – Treat (A+B)’C as X, treat D’(E+F) as Y Or instead of using T9 recognize that (A+B)’C + (A+B)’CD’(E+F) = (A+B)’C(1+D’(E+F)) = (A+B)’C It is not necessary to memorize all of these theorems. –Know through T5’ and couple that with your knowledge of ordinary algebra.

15 XOR X  Y = XY’ + X’Y X  0 = X X  1 = X’ X  X = 0 X  X’ = 1 X  Y  Z = X  (Y  Z) = Z  X  Y XY XYXY

16 How are these XOR gates used?

17 DeMorgan’s Theorem These are the equations you must memorize But notice that given one it is trivial to obtain the others.

18 Prove XYX’Y’X’Y’X+Y(X+Y)’ Alternative proof. Let X = 0 then 1Y’ = (0 + Y)’ Let X = 1, then 0Y’ = (1+Y)’ = 1’ = 0

19 DeMorgans Theorem in n variables

20 Generalizations DeMorgan’s Theorem Duality. If then

21

22 Shannon’s expansion theorem Proof: Consider f(x i ) = x i ’f(0) xi + x i f(1) xi When x i = 0 then f(0) xi = 1f(0) xi + 0f(1) xi = f(0) xi When x i = 1 then f(1) xi = 0f(0) xi + 1f(1) xi = f(1) xi Thus, by perfect induction f(x i ) = x i ’f(0) xi + x i f(1) xi

23 Implementation example Draw circuit directly from equations. Draw circuit using only NAND gates.

24 Design example Design a 3-input majority circuit XYZF

25 Design example Design a 3-input majority circuit XYZF

26 Design example Design a 3-input majority circuit

27 Design example Design a 3-input majority circuit XYZF

28 Design example Design a 3-input majority circuit

29 Example Show how to build an 8 input and gate using several two input and gates. Which is better? Why?

30 Schmitt-trigger gates contain input hysteresis. Useful for interfacing to slow or noisy signals.

31

32 Tri-state buffers