1 Ch.3 Logic Gates and Boolean Algebra – Part 1

Slides:



Advertisements
Similar presentations
Digital Systems: Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D.
Advertisements

Logic Gates.
Chapter 3 Logic Gates and Boolean Algebra – Part 1
Chap. 3 Logic Gates and Boolean Algebra
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
Boolean Algebra and Combinational Logic
Digital Systems Logic Gates and Boolean Algebra
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Digital Design.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
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.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Digital Systems Presented by Prof Tim Johnson
Digital Systems: Boolean Algebra and Logic Gates
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Combinational Logic 1.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Introduction to Chapter 3  Now that we understand the concept of binary numbers, we will study ways of describing how systems using binary logic levels.
Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D. 11/2/2001.
Basic Gates 3.1 Basic Digital Logic: NAND and NOR Gates ©Paul Godin Created September 2007 Last Update Sept 2009.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
Basic Digital Logic: NAND and NOR Gates Technician Series ©Paul Godin Last Update Dec 2014.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
Boolean Algebra and Reduction Techniques
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
AGBell – EECT by Andrew G. Bell (260) Lecture 3.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Constants and Variables Boolean 0 and 1 do not represent actual numbers but instead represent the state, or logic level. Closed switchOpen switch.
DATA REPRESENTATION IN COMPUTER MEMORY.  Describe the coding system:  Sign and magnitude  1’s Complement and 2’s Complement  Binary Coded Decimal.
Boolean Algebra & Logic Gates
Combinational Circuits Part 1
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
De Morgan’s Theorem,.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Unit 2 Boolean Algebra.
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Boolean Algebra and Combinational Logic
Boolean Algebra – Part 1 ECEn 224.
CHAPTER 2 Boolean Algebra
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Systems: Logic Gates and Boolean Algebra
Boolean Algebra & Logic Circuits
Logic Gates.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Chapter 5 Combinational Logic Analysis
Chap. 3 Describing Logic Circuits
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Chapter 3 – Describing Logic Circuits
Presentation transcript:

1 Ch.3 Logic Gates and Boolean Algebra – Part 1

2 Objectives Three basic logic operations: AND, OR, NOT Operation of logic circuits and construction of truth tables Timing diagrams for the various logic-circuit gates Boolean expression for the logic circuits Implement logic circuits using AND, OR, NOT Simplify logic expressions –DeMorgan’s theorem Using NAND or NOR to implement a circuit Alternate gate symbols vs. standard logic-gate symbols Active high & Active low

3 3-1 Boolean Constants and variables Boolean constants and variables are allowed to have only two possible values, 0 or 1. Boolean 0 and 1 do not represent actual numbers but instead represent the state of a voltage variable, or what is called its logic level. 0/1 and Low/High are used most of the time. Three Logic operations: AND, OR, NOT Logic Gates –Digital circuits constructed from diodes, transistors, and resistors whose output is the result of a basic logic operation(OR, AND, NOT) performed on the inputs.

4 3-2 Truth Tables How a logic circuit’s output depends on the logic levels present at the inputs.

5 3-3 OR Operation with OR gates Truth Table and circuit symbol

6 3-3 symbol and truth table for a three- input OR gate

7 Summary of OR operation Produce a result of 1 whenever any input is 1. Otherwise 0. An OR gate is a logic circuit that performs an OR operation on the circuit's input The expression x=A+B is read as “x equals A OR B”

8 Example of the use of an OR gate in an Alarm system

9 Example 2

10 Example3

11 Review Questions What is the only set of input conditions that will produce a LOW output for any OR gate? Write the Boolean expression for a six-input OR gate If the A input in previous example is permanently kept at the 1 level, what will the resultant output waveform be?

And Operation with And Gates Truth Table and Gate symbol

13 Truth Table and Symbol for a three-input AND gate

14 Summary of the AND operation The AND operation is performed the same as ordinary multiplication of 1s and 0s. An AND gate is a logic circuit that performs the AND operation on the circuit’s inputs. An AND gate output will be 1 only for the case when all inputs are 1; for all other cases the output will be 0. The expression x=AB is read as “x equals A AND B.”

15 Chapter 3 Notes – Part II Review Questions What is the only input combination that will produce a HIGH at the output of a five-input AND gate? What logic level should be applied to the second input of a two-input AND gate if the logic signal at the first input is to be inhibited(prevented) from reaching the output? True or false: An AND gate output will always differ from an OR gate output for the same input conditions.

16 NOT operation Truth table, Symbol, Sample waveform

17 Summary of Boolean Operations OR 0+0=00+1=11+0=11+1=1 AND 00=001=010=011=1 NOT 1’=00’=1 (NOTE THE SYMBOL USED FOR NOT!)

Describing logic circuits algebraically Any logic circuit, no matter how complex, can be completely described using the three basic Boolean operations: OR, AND, NOT. Example: logic circuit with its Boolean expression

19 Parentheses (Often needed to establish precedence; sometimes used optionally for clarity) 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. Parentheses make the expression clearer, but they are not needed for the case on the preceding slide. Note that parentheses are needed here :

20 Circuits Contains INVERTERs Whenever an INVERTER is present in a logic-circuit diagram, its output expression is simply equal to the input expression with a bar over it.

21 More Examples

22 Precedence First, perform all inversions of single terms Perform all operations with parentheses Perform an AND operation before an OR operation unless parentheses indicate otherwise If an expression has a bar over it, perform the operations inside the expression first and then invert the result

23 Determining output level from a diagram Determine the output for the condition where all inputs are LOW.

Implementing Circuits From Boolean Expressions When the operation of a circuit is defined by a Boolean expression, we can draw a logic-circuit diagram directly from that expression.

25 Example Draw the circuit diagram to implement the expression

26 Review Question Draw the circuit diagram that implements the expression Using gates having no more than three inputs.

NOR GATES AND NAND GATES NOR Symbol, Equivalent Circuit, Truth Table

28 Example

29 Example Determine the Boolean expression for a three-input NOR gate followed by an INVERTER

30 NAND Gate Symbol, Equivalent circuit, truth table

31 Example

32 Example Implement the logic circuit that has the expression using only NOR and NAND gates

33 Example Determine the output level in last example for A=B=C=1 and D=0

34 Review Questions What is the only set of input conditions that will produce a HIGH output from a three-input NOR gate? Determine the output level in last example for A=B=1, C=D=0 Change the NOR gate at last example to a NAND gate, and change the NAND to a NOR. What is the new expression for x?

Boolean Theorems (single-variable)

36 Multivariable Theorems x+y = y+xxy = yx commutativity (x+y) + z = x + (y + z)(xy)z = x(yz)associativity x(y+z) = xy + xzx + yz = (x+y) (x+z)distributivity x + xy = x pf: x+xy = x1 + xy = x(1+y) = x1 = x

37 Examples Simplify the expression Simplify

38 Review Questions Simplify

Demorgan’s Theorems

40 Example Simplify the expression to one having only single variables inverted.

41 Implications of DeMorgan’s Theorems(I)

42 Implications of DeMorgan’s Theorems(II)

43 Example Determine the output expression for the below circuit and simplify it using DeMorgan’s Theorem

44 Review Questions Using DeMorgan’s Theorems to convert the expressions to one that has only single-variable inversions. Use only a NOR gate and an INVERTER to implement a circuit having output expression: Use DeMorgan’s theorems to convert below expression to an expression containg only single-variable inversions.

Universality of NAND and NOR gates

46 Universality of NOR gate

47 Example

48 Example

Alternate Logic-Gate Representations Standard and alternate symbols for various logic gates and inverter.

50 How to obtain the alternative symbol from standard ones Invert each input and output of the standard symbol, This is done by adding bubbles(small circles) on input and output lines that do not have bubbles and by removing bubbles that are already there. Change the operation symbol from AND to OR, or from OR to AND.(In the special case of the INVERTER, the operation symbol is not changed)

51 Several points The equivalences can be extended to gates with any number of inputs. None of the standard symbols have bubbles on their inputs, and all the alternate symbols do. The standard and alternate symbols for each gate represent the same physical circuit; there is no difference in the circuits represented by the two symbols. NAND and NOR gates are inverting gates, and so both the standard and the alternate symbols for each will have a bubble on either the input or the output, AND and OR gates are noninverting gates, and so the alternate symbols for each will have bubbles on both inputs and output.

52 Logic-symbol interpretation Active high/low –When an input or output line on a logic circuit symbol has no bubble on it, that line is said to be active-high, otherwise it is active-low.

53 Interpretation of the two NAND gate symbols

54 Interpretation of the two OR gate symbols

55 Review Questions Write the interpretation of the operation performed by the below gate symbols –Standard NOR gate symbol –Alternate NOR gate symbol –Alternate AND gate symbol –Standard AND gate symbol