Digital Fundamentals Floyd Chapter 3 Tenth Edition

Slides:



Advertisements
Similar presentations
Digital logic gates.
Advertisements

Chapter 3 Logic Gates.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
CT455: Computer Organization Logic gate
EET 1131 Unit 3 Basic Logic Gates
Chapter 3 Basic Logic Gates 1.
Digital Fundamentals CHAPTER 3 Logic Gates.
© 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 Tenth Edition Floyd.
ECE 331 – Digital System Design Basic Logic Functions, Truth Tables, and Standard Logic Gates.
UNIT-V PART-II Combinational Circuits using TTL 74XX ICs.
Boolean Algebra and Truth Table The mathematics associated with binary number system (or logic) is call Boolean: –“0” and “1”, or “False” and “True” –Calculation.
Digital Fundamentals with PLD Programming Floyd Chapter 4
© 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.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
UNIT-8 LOGIC GATES.
Chapter 4 Gates and Circuits.
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
NOCTI Review Lesson 4 Objectives:
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Digital Logic Design Week 3
Basic Logic Operations and Standard Logic Gates (Lecture #1) ECE 331 – Digital System Design.
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.
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.
CHAPTER 1 : INTRODUCTION
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Pp244 In Sum-of-Products (SOP) form, basic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights Reserved Floyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
1 Multiplexers (Data Selectors) A multiplexer (MUX) is a device that allows several low-speed signals to be sent over one high-speed output line. “Select.
Programmable logic devices. CS Digital LogicProgrammable Logic Device2 Outline PLAs PALs ROMs.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
ECE DIGITAL LOGIC LECTURE 5: BINARY LOGIC AND DIGITAL LOGIC GATES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/28/2016.
ECE 331 – Digital System Design Basic Logic Operations, Boolean Expressions and Truth Tables, and Standard Logic Gates The slides included herein were.
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
Logic Gates Chapter 5 Subject: Digital System Year: 2009.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Copyright ©2009 by Pearson Higher Education, Inc. Upper Saddle River, New Jersey All rights reserved. Digital Fundamentals, Tenth Edition Thomas.
Digital Fundamentals Floyd Chapter 3 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Engr. Micaela Renee Bernardo
EI205 Lecture 3 Dianguang Ma Fall, 2008.
Logic Gates and Boolean Algebra
Digital Fundamentals Floyd Chapter 3 Tenth Edition
ECE 331 – Digital System Design
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 3 Tenth Edition
KS4 Electricity – Electronic systems
EET 1131 Unit 3 Basic Logic Gates
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 4 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Department of Electronics
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Presentation transcript:

Digital Fundamentals Floyd Chapter 3 Tenth Edition © 2008 Pearson Education

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

The Inverter A X The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. LOW (0) HIGH (1) HIGH (1) LOW(0) The NOT operation (complement) is shown with an overbar. Thus, the Boolean expression for an inverter is 𝑋= 𝐴 .

The Inverter Example waveforms: A X A group of inverters can be used to form the 1’s complement of a binary number: Binary number 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 0 1’s complement

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

The AND Gate A X B The AND gate produces a HIGH output when all inputs are HIGH; otherwise, the output is LOW. For a 2-input gate, the truth table is 0 0 0 1 1 0 1 1 1 The AND operation is usually shown with a dot between the variables but it may be implied (no dot). Thus, the AND operation is written as X = A .B or X = AB.

The AND Gate Example Example waveforms: A B X The AND operation is used in computer programming as a selective mask. If you want to retain certain bits of a binary number but reset the other bits to 0, you could set a mask with 1’s in the position of the retained bits. If the binary number 10100011 is ANDed with the mask 00001111, what is the result? Example 00000011

The AND Gate Example In an automobile seat belt alarm system, when will the alarm go off?

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

The OR Gate A X B The OR gate produces a HIGH output if any input is HIGH; if all inputs are LOW, the output is LOW. For a 2-input gate, the truth table is 0 0 0 1 1 0 1 1 1 The OR operation is shown with a plus sign (+) between the variables. Thus, the OR operation is written as X = A + B.

The OR Gate Example Example waveforms: A B X The OR operation can be used in computer programming to set certain bits of a binary number to 1. ASCII letters have a 1 in the bit 5 position for lower case letters and a 0 in this position for capitals. (Bit positions are numbered from right to left starting with 0.) What will be the result if you OR an ASCII letter with the 8-bit mask 01000000? Example

ASCII Solution The resulting letter will be lower case.

The OR Gate Example When will the alarm go off in an intrusion detection system?

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

The NAND Gate A X B The NAND gate produces a LOW output when all inputs are HIGH; otherwise, the output is HIGH. For a 2-input gate, the truth table is 0 0 0 1 1 0 1 1 1 The NAND operation is shown with a dot between the variables and an overbar covering them. Thus, the NAND operation is written as 𝑋= 𝐴∙𝐵 (Alternatively, 𝑋= 𝐴𝐵 .)

The NAND Gate Question A B X Example waveforms: How would you connect a 2-input NAND gate to form a basic inverter? Question

The NAND Gate Example NAND gate acts as negative-OR gate 0 0 0 1 1 0 Input Intermediate Output A B X 0 0 0 1 1 0 1 1 1 0 0 0 1 1 0 1 1 1 1 1 0 0 1 0 0 1

The NAND Gate Example NAND gate acts as negative-OR gate

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

The NOR Gate A X B The NOR gate produces a LOW output if any input is HIGH; if all inputs are HIGH, the output is LOW. For a 2-input gate, the truth table is 0 0 0 1 1 0 1 1 1 The NOR operation is shown with a plus sign (+) between the variables and an overbar covering them. Thus, the NOR operation is written as 𝑋= 𝐴+𝐵 .

The NOR Gate Example Solution A B X Example waveforms: The NOR operation will produce a LOW if any input is HIGH. Example When is the LED is ON for the circuit shown? Solution The LED will be on when any of the four inputs are HIGH.

The NOR Gate Example NOR gate acts as negative-AND gate 0 0 0 1 1 0 Input Intermediate Output A B X 0 0 0 1 1 0 1 1 1 0 0 0 1 1 0 1 1 1 1 1 0 0 1 0 0 1

The NOR Gate Example Aircraft landing monitoring system

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

The XOR Gate A X B The XOR gate produces a HIGH output only when both inputs are at opposite logic levels. The truth table is 0 0 0 1 1 0 1 1 1 The XOR operation is written as 𝑋= 𝐴 𝐵+𝐴 𝐵 . Alternatively, it can be written with a circled plus sign between the variables as 𝑋=𝐴⨁𝐵.

The XOR Gate Question A B X Example waveforms: Notice that the XOR gate will produce a HIGH only when exactly one input is HIGH. If the A and B waveforms are both inverted for the above waveforms, how is the output affected? Question There is no change in the output.

The XOR Gate Example XOR Gate used as a two-bit modulo-2 adder

The XNOR Gate A X B The XNOR gate produces a HIGH output only when both inputs are at the same logic level. The truth table is 0 0 0 1 1 0 1 1 1 The XNOR operation shown as 𝑋= 𝐴𝐵 + 𝐴𝐵. Alternatively, the XNOR operation can be shown with a circled dot between the variables. Thus, it can be shown as X = A . B.

The XNOR Gate A X B The XNOR gate produces a HIGH output only when both inputs are at the same logic level. The truth table is 0 0 0 1 1 0 1 1 1 The XNOR operation shown as 𝑋= 𝐴 𝐵 +𝐴𝐵. Alternatively, the XNOR operation can be shown with a circled dot between the variables. Thus, it can be shown as 𝑋=𝐴⊙𝐵.

The XNOR Gate Question A B X Example waveforms: Notice that the XNOR gate will produce a HIGH when both inputs are the same. This makes it useful for comparison functions. If the A waveform is inverted but B remains the same, how is the output affected? Question The output will be inverted.

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

Fixed Function Logic Cannot be programmed Two Major families: TTL: transistor-transistor logic CMOS: complementary metal-oxide semi-conductor (more prevalent) Examples: DIP package SOIC package

74 series NAND gate device Fixed Function Logic Logic symbols show the gates and associated pin numbers. 74xx00 74 series NAND gate device 74xx27 74 series NOR gate device

Fixed Function Logic Some common gate configurations are shown.

Fixed Function Logic Data sheets include limits and conditions set by the manufacturer as well as DC and AC characteristics. For example, some maximum ratings for a 74HC00A are:

Outline 3-1 The Inverter 3-2 The AND Gate 3-3 The OR Gate 3-4 The NAND Gate 3-5 The NOR Gate 3-6 The Exclusive-OR and Exclusive-NOR Gates 3-7 Fixed Function Logic 3-8 Programmable Logic

Programmable Logic A Programmable Logic Device (PLD) can be programmed to implement logic. There are various technologies available for PLDs. Many use an internal array of AND gates to form logic terms. Many PLDs can be programmed multiple times.

Programmable Logic A Programmable Logic Device (PLD) can be programmed to implement logic. There are various technologies available for PLDs. Many use an internal array of AND gates to form logic terms. Many PLDs can be programmed multiple times.

Programmable Logic In general, the required logic for a PLD is developed with the aid of a computer. The logic can be entered using a Hardware Description Language (HDL) such as VHDL. Logic can be specified to the HDL as a text file, a schematic diagram, or a state diagram.

Programmable Logic entity NandGate is port(A, B: in bit; LED: out bit); end entity NandGate; architecture GateBehavior of NandGate is signal A, B: bit; begin X <= A nand B; LED <= X; end architecture GateBehavior;

Selected Key Terms Inverter Truth table Timing diagram Boolean algebra AND gate A logic circuit that inverts or complements its inputs. A table showing the inputs and corresponding output(s) of a logic circuit. A diagram of waveforms showing the proper time relationship of all of the waveforms. The mathematics of logic circuits. A logic gate that produces a HIGH output only when all of its inputs are HIGH.

Selected Key Terms OR gate NAND gate NOR gate Exclusive-OR gate Exclusive-NOR gate A logic gate that produces a HIGH output when one or more inputs are HIGH. A logic gate that produces a LOW output only when all of its inputs are HIGH. A logic gate that produces a LOW output when one or more inputs are HIGH. A logic gate that produces a HIGH output only when its two inputs are at opposite levels. A logic gate that produces a LOW output only when its two inputs are at opposite levels.