Digital Systems Logic Gates and Boolean Algebra

Slides:



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

ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Logic Gates.
Chapter 3 Logic Gates and Boolean Algebra – Part 1
Logic Gates.
Chap. 3 Logic Gates and Boolean Algebra
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Chapter 2 Logic Circuits.
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
Boolean Algebra and Logic Gates
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
Digital Systems Presented by Prof Tim Johnson
In science, technology, business, and, in fact, most other fields of endeavor, we are constantly dealing with quantities. Quantities are measured, monitored,
DeMorgan Theorem, Computer Simulation Exercises
Digital Systems: Boolean Algebra and Logic Gates
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
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.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
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 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.
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.
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
Using De’Morgan’s On of the most useful principles in boolean algebra is De’Morgan’s Theorem, which allows one to switch between ANDs and NORs and ORs.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
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.
Figure 2.6. A truth table for the AND and OR operations. 2.3 Truth Tables 1.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
5 - Digital Logic with Boolean Algebra
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
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,
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
1 Ch.3 Logic Gates and Boolean Algebra – Part 1
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
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
Eng. Mai Z. Alyazji October, 2016
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
Logic Gates.
De Morgan’s Theorem,.
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
EI205 Lecture 5 Dianguang Ma Fall 2008.
Boolean Algebra and Combinational Logic
ECE 331 – Digital System Design
Boolean Algebra.
Digital Systems: Logic Gates and Boolean Algebra
Boolean Algebra & Logic Circuits
Circuits, Truth Tables & Boolean Algebra
Digital Logic & Design Lecture 05
Logic Gates.
Boolean Algebra.
Digital Logic Chapter-2
Digital Logic Chapter-2
Introductory Concepts
Chap. 3 Describing Logic Circuits
Boolean Algebra and Gate Networks
Chapter 3 – Describing Logic Circuits
Presentation transcript:

Digital Systems Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D.

Objectives Perform the three basic logic operations. Describe the operation of and construct the truth tables for the AND, NAND, OR, and NOR gates, and the NOT (INVERTER) circuit. Draw timing diagrams for the various logic-circuit gates. Write the Boolean expression for the logic gates and combinations of logic gates. Implement logic circuits using basic AND, OR, and NOT gates. Appreciate the potential of Boolean algebra to simplify complex logic circuits.

Objectives (cont’d) Use DeMorgan's theorems to simplify logic expressions. Use either of the universal gates (NAND or NOR) to implement a circuit represented by a Boolean expression. Explain the advantages of constructing a logic-circuit diagram using the alternate gate symbols versus the standard logic-gate symbols. Describe the concept of active-LOW and active-HIGH logic symbols. Draw and interpret the IEEE/ANSI standard logic-gate symbols.

Boolean Constants and Variables Boolean 0 and 1 do not represent actual numbers but instead represent the state, or logic level. Logic 0 Logic 1 False True Off On Low High No Yes Open switch Closed switch

Three Basic Logic Operations OR AND NOT

Truth Tables A truth table is a means for describing how a logic circuit’s output depends on the logic levels present at the circuit’s inputs. Inputs Output A B x 1 A ? x B

OR Operation Boolean expression for the OR operation: x =A + B The above expression is read as “x equals A OR B” Figure 3-2 OR A B x 1 A B x= A+B

OR Gate An OR gate is a gate that has two or more inputs and whose output is equal to the OR combination of the inputs. Figure 3-3 B A C x = A + B + C

Examples Example 3-1: using an OR gate in an alarm system(refer to Fg03-04.ckt) Example 3-2: timing diagram (refer to Fg03-05.ckt)

AND Operation Boolean expression for the AND operation: x =A B The above expression is read as “x equals A AND B” AND A B x 1 A x= AB B

AND Gate An AND gate is a gate that has two or more inputs and whose output is equal to the AND product of the inputs. Figure 3-8 A B C x = ABC

Timing Diagram for AND Gate

Enable/Disable Circuit

NOT Operation The NOT operation is an unary operation, taking only one input variable. Boolean expression for the NOT operation: x = A The above expression is read as “x equals the inverse of A” Also known as inversion or complementation. Can also be expressed as: A’ Figure 3-11 A x=A’

NOT Circuit Also known as inverter. Always take a single input NOT A x=A’ 1

Describing Logic Circuits Algebraically Any logic circuits can be built from the three basic building blocks: OR, AND, NOT Example 1: x = A B + C Example 2: x = (A+B)C Example 3: x = (A+B) Example 4: x = ABC(A+D)

Evaluating Logic-Circuit Outputs x = ABC(A+D) Determine the output x given A=0, B=1, C=1, D=1. Can also determine output level from a diagram

Implementing Circuits from Boolean Expressions We are not considering how to simplify the circuit in this chapter. y = AC+BC’+A’BC x = AB+B’C x=(A+B)(B’+C)

NOR Gate Boolean expression for the NOR operation: x = A + B Figure 3-20: timing diagram NOR A B x 1

NAND Gate Boolean expression for the NAND operation: x = A B Figure 3-23: timing diagram NAND A B x 1 A B AB

Boolean Theorems (Single-Variable) x* 0 =0 x* 1 =x x*x=x x*x’=0 x+0=x x+1=1 x+x=x x+x’=1

Boolean Theorems (Multivariable) x+y = y+x x*y = y*x x+(y+z) = (x+y)+z=x+y+z x(yz)=(xy)z=xyz x(y+z)=xy+xz (w+x)(y+z)=wy+xy+wz+xz x+xy=x x+x’y=x+y x’+xy=x’+y

DeMorgan’s Theorems (x+y)’=x’y’ Implications and alternative symbol for NOR function (Figure 3-26) (xy)’=x’+y’ Implications and alternative symbol for NAND function (Figure 3-27) Example 3-17: Figure 3-28 Extension to N variables

Universality of NAND Gates

Universality of NOR Gates

Alternate Logic Symbols Step 1: Invert each input and output of the standard symbol Change the operation symbol from AND to OR, or from OR to AND. Examples: AND, OR, NAND, OR, INV

Logic Symbol Interpretation When an input or output on a logic circuit symbol has no bubble on it, that line is said to be active-HIGH. Otherwise the line is said to be active-LOW.

Which Gate Representation to Use? If the circuit is being used to cause some action when output goes to the 1 state, then use active-HIGH representation. If the circuit is being used to cause some action when output goes to the 0 state, then use active-LOW representation. Bubble placement: choose gate symbols so that bubble outputs are connected to bubble inputs , and vice versa.

IEEE Standard Logic Symbols NOT AND OR NAND NOR 1 A x A & x B A ≧1 x A & x A ≧1 x B B B