Digital Logic Design 1. Truth Tables. Truth Tables. OR Operation With OR Gates

Similar documents
6. BOOLEAN LOGIC DESIGN

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Elementary Logic Gates

Basic Logic Gates Richard E. Haskell

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

Gates, Circuits, and Boolean Algebra

ENGI 241 Experiment 5 Basic Logic Gates

Understanding Logic Design

Digital Logic Elements, Clock, and Memory Elements

Ladder and Functional Block Programming

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Karnaugh Maps (K-map) Alternate representation of a truth table

Logic in Computer Science: Logic Gates

BOOLEAN ALGEBRA & LOGIC GATES

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Binary Adders: Half Adders and Full Adders

Mixed Logic A B A B. 1. Ignore all bubbles on logic gates and inverters. This means

Boolean Algebra Part 1

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

Sum-of-Products and Product-of-Sums expressions

NAND and NOR Implementation

CHAPTER 11 LATCHES AND FLIP-FLOPS

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Combinational circuits

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Counters and Decoders

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

Upon completion of unit 1.1, students will be able to

Math 2443, Section 16.3

Figure 8-1 Four Possible Results of Adding Two Bits

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Chapter 3 Digital Basics

Digital Electronics Detailed Outline

CSE140: Components and Design Techniques for Digital Systems

ASYNCHRONOUS COUNTERS

Lecture 5: Gate Logic Logic Optimization

Two-level logic using NAND gates

2.0 Chapter Overview. 2.1 Boolean Algebra

CSE140: Midterm 1 Solution and Rubric

COMBINATIONAL CIRCUITS

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Algebraic expressions are a combination of numbers and variables. Here are examples of some basic algebraic expressions.

SECTION 7-4 Algebraic Vectors

Chapter 2 Logic Gates and Introduction to Computer Architecture

7.7 Solving Rational Equations

Gates. J. Robert Jump Department of Electrical And Computer Engineering Rice University Houston, TX 77251

Polynomial Degree and Finite Differences

SUNY ECC. ACCUPLACER Preparation Workshop. Algebra Skills

Solutions of Linear Equations in One Variable

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

7 Literal Equations and

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Logic Reference Guide

1 Determine whether an. 2 Solve systems of linear. 3 Solve systems of linear. 4 Solve systems of linear. 5 Select the most efficient

Functions and their Graphs

Lecture 4: Binary. CS442: Great Insights in Computer Science Michael L. Littman, Spring I-Before-E, Continued

Switching Algebra and Logic Gates

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Two's Complement Adder/Subtractor Lab L03

[ 4 ] Logic Symbols and Truth Table

Systems I: Computer Organization and Architecture

Lab 1: Full Adder 0.0

Electromechanical relay logic

Lecture 8: Synchronous Digital Systems

SECTION P.5 Factoring Polynomials

CHAPTER 3 Boolean Algebra and Digital Logic

Chapter 1. Computation theory

LINEAR INEQUALITIES. less than, < 2x + 5 x 3 less than or equal to, greater than, > 3x 2 x 6 greater than or equal to,

Unit/Standard Number. High School Graduation Years 2010, 2011 and 2012

Triangles

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Number Sense and Operations

7. Latches and Flip-Flops

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Study Guide for the Electronics Technician Pre-Employment Examination

Module 3: Floyd, Digital Fundamental

Theory of Logic Circuits. Laboratory manual. Exercise 3

Electrical and Electronics. ENGR 150 Engineering Graphics. E and E Drawings. Electrical Engineering. Connection Diagram (highway) Electrical One-Line

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Lines and Planes in R 3

def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

26 Integers: Multiplication, Division, and Order

Geometry Notes RIGHT TRIANGLE TRIGONOMETRY

WORK SCHEDULE: MATHEMATICS 2007

2 SYSTEM DESCRIPTION TECHNIQUES

2011, The McGraw-Hill Companies, Inc. Chapter 5

Equations Involving Fractions

Circuits and Boolean Expressions

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

The 104 Duke_ACC Machine

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

Chapter 4. Polynomial and Rational Functions. 4.1 Polynomial Functions and Their Graphs

3. Solve the equation containing only one variable for that variable.

POLYNOMIAL FUNCTIONS

Transcription:

2007 oolean Constants and Variables K TP.HCM Tran Ngoc Thinh HCMC University of Technology http://www.cse.hcmut.edu.vn/~tnthinh oolean algebra is an important tool in describing, analyzing, designing, and implementing digital circuits. oolean algebra allows only two values; 0 and 1. Logic 0 can be: false, off, low, no, open switch. Logic 1 can be: true, on, high, yes, closed switch. Three basic logic operations: OR, ND, and NOT. Truth Tables truth table describes the relationship between the input and output of a logic circuit. The number of entries corresponds to the number of inputs. For eample a 2 input table would have 2 2 = 4 entries. 3 input table would have 2 3 = 8 entries. Truth Tables Eamples of truth tables with 2, 3, and 4 inputs. OR Operation With OR Gates The oolean epression for the OR operation is X = + This is read as equals or. X = 1 when = 1 or = 1. Truth table, circuit symbol and timing diagram for a two input OR gate: OR Operation With OR Gates The OR operation is similar to addition but when = 1 and = 1, the OR operation produces 1 + 1 = 1. In the oolean epression =1+1+1=1 We could say that is true (1) when is true (1) OR is true (1) OR C is true (1). In general, the output of an OR gate is HIGH whenever one or more inputs are HIGH C D

OR Operation With OR Gates There are many eamples of applications where an output function is desired when one of multiple inputs is activated. ND Operations with ND gates The oolean epression for the ND operation is X = This is read as equals and. = 1 when = 1 and = 1. Truth table and circuit symbol for a two input ND gate are shown. Notice the difference between OR and ND gates. ND Operation With ND Gates The ND operation is similar to multiplication. In the oolean epression X = C X = 1 only when = 1, = 1, and C = 1. The output of an ND gate is HIGH only when all inputs are HIGH. NOT Operation The oolean epression for the NOT operation is X = This is read as: equals NOT, or equals the inverse of, or equals the complement of Truth table, symbol, and sample waveform for the NOT circuit. C Describing Logic Circuits lgebraically The three basic oolean operations (OR, ND, NOT) can describe any logic circuit. Eamples of oolean epressions for logic circuits: Describing Logic Circuits lgebraically The output of an inverter is equivalent to the input with a bar over it. Input through an inverter equals. Eamples using inverters.

Evaluating Logic Circuit Outputs Rules for evaluating a oolean epression: Perform all inversions of single terms. Perform all operations within parenthesis. Perform ND operation before an OR operation unless parenthesis indicate otherwise. If an epression has a bar over it, perform the operations inside the epression and then invert the result. Evaluating Logic Circuit Outputs Evaluate oolean epressions by substituting values and performing the indicated operations: = 0, = 1, C = 1, and D = 1 = C( + D) = 0 1 1 (0 + 1) = 1 1 1 (0 + 1) = 1 1 1 (1) = 1 1 1 0 = 0 Evaluating Logic Circuit Outputs Output logic levels can be determined directly from a circuit diagram. Technicians frequently use this method. The output of each gate is noted until a final output is found. Implementing Circuits From oolean Epressions It is important to be able to draw a logic circuit from a oolean epression. The epression = C could be drawn as a three input ND gate. more comple eample such as y = C + C + C could be drawn as two 2-input ND gates and one 3-input ND gate feeding into a 3-input OR gate. Two of the ND gates have inverted inputs. NOR Gates and NND Gates Combine basic ND, OR, and NOT operations. The NOR gate is an inverted OR gate. n inversion bubble is placed at the output of the OR gate. The oolean epression is = + NOR Gates and NND Gates The NND gate is an inverted ND gate. n inversion bubble is placed at the output of the ND gate. The oolean epression is =

oolean Theorems The theorems or laws below may represent an epression containing more than one variable. 0 = 0 = + 1 = 1 + = 1 1 = 1 = 0 + = Laws of oolean lgebra Commutative Laws ssociative Laws Distributive Law Commutative Laws of oolean lgebra + = + ssociative Laws of oolean lgebra + ( + C) = ( + ) + C = ( C) = ( ) C Distributive Laws of oolean lgebra ( + C) = + C ( + C) = + C Rules of oolean lgebra ( + C) = + C ( + C) = + C ( C) = ( ) C

Rules of oolean lgebra ( + C) = + C ( + C) = + C Rules of oolean lgebra ( + C) = + C ( + C) = + C Rules of oolean lgebra Rules of oolean lgebra Rule 11: + = + Rule 10: + = Rule 12: ( + )( + C) = + C DeMorgan s Theorems Theorem 1: When the OR sum of two variables is inverted, it is equivalent to inverting each variable individually and NDing them. + =. Theorem 2: When the ND product of two variables is inverted, it is equivalent to inverting each variable individually and ORing them.. = + DeMorgan s Theorems NOR gate is equivalent to an ND gate with inverted inputs. NND gate is equivalent to an OR gate with inverted inputs. For N variables, DeMorgan s theorem is epressed as: and

Universality of NND and NOR Gates Universality of NND and NOR Gates NND or NOR gates can be used to create the three basic logic epressions (OR, ND, and INVERT) lternate Logic-Gate Representations To convert a standard symbol to an alternate: Invert each input and output (add an inversion bubble where there are none on the standard symbol, and remove bubbles where they eist on the standard symbol. Change a standard OR gate to and ND gate, or an ND gate to an OR gate. lternate Logic-Gate Representations Standard and alternate symbols for various logic gates and inverter lternate Logic-Gate Representations lternate Logic-Gate Representations The equivalence can be applied to gates with any number of inputs. No standard symbols have bubbles on their inputs. ll of the alternate symbols do. The standard and alternate symbols represent the same physical circuitry. ctive high an input or output has no inversion bubble. ctive low an input or output has an inversion bubble. n ND gate will produce an active output when all inputs are in their active states. n OR gate will produce an active output when any input is in an active state.

lternate Logic-Gate Representations Interpretation of the two NND gate symbols. lternate Logic-Gate Representations Interpretation of the two OR gate symbols. Which Gate Representation to Use Which Gate Representation to Use Using alternate and standard logic gate symbols together can make circuit operation clearer. When possible choose gate symbols so that bubble outputs are connected to bubble input and nonbubble outputs are connected to nonbubble inputs. When a logic signal is in the active state (high or low) it is said to be asserted. When a logic signal is in the inactive state (high or low) it is said to be unasserted. bar over a signal means asserted (active) low. The absence of a bar over a signal means asserted (active) high. IEEE/NSI Standard Logic Symbols (a) Original circuit using standard NND symbols; (b) equivalent representation where output Z is active- HIGH; (c) equivalent representation where output Z is active- LOW; (d) truth table. Rectangular symbols represent logic gates and circuits. Dependency notation inside symbols show how output depends on inputs. small triangle replaces the inversion bubble.