Module 3 Digital Gates and Combinational Logic

Similar documents
Gates, Circuits, and Boolean Algebra

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

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

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

ENGI 241 Experiment 5 Basic Logic Gates

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

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

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

CHAPTER 11: Flip Flops

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Binary Adders: Half Adders and Full Adders

Decimal Number (base 10) Binary Number (base 2)

BOOLEAN ALGEBRA & LOGIC GATES

The components. E3: Digital electronics. Goals:

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

Chapter 2 Logic Gates and Introduction to Computer Architecture

Lecture 5: Gate Logic Logic Optimization

CHAPTER 3 Boolean Algebra and Digital Logic

Logic in Computer Science: Logic Gates

Lecture 8: Synchronous Digital Systems

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Programming Logic controllers

Basic Logic Gates Richard E. Haskell

Figure 8-1 Four Possible Results of Adding Two Bits

Module 4 : Propagation Delays in MOS Lecture 22 : Logical Effort Calculation of few Basic Logic Circuits

3.Basic Gate Combinations

Digital Electronics Detailed Outline

Analog & Digital Electronics Course No: PH-218

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

Ladder and Functional Block Programming

Chapter 10 Advanced CMOS Circuits

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Two-level logic using NAND gates

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

Input, Process and Output

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

CSE140 Homework #7 - Solution

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Combinational Logic Design

Chapter 7 Memory and Programmable Logic

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

PLL frequency synthesizer

EXPERIMENT 3: TTL AND CMOS CHARACTERISTICS

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Chapter 6 TRANSISTOR-TRANSISTOR LOGIC. 3-emitter transistor.

Lab 1: Full Adder 0.0

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Upon completion of unit 1.1, students will be able to

CD4001BC/CD4011BC Quad 2-Input NOR Buffered B Series Gate Quad 2-Input NAND Buffered B Series Gate

GRADE 11A: Physics 5. UNIT 11AP.5 6 hours. Electronic devices. Resources. About this unit. Previous learning. Expectations

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

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

NEW adder cells are useful for designing larger circuits despite increase in transistor count by four per cell.

ECE124 Digital Circuits and Systems Page 1

Counters and Decoders

Module 3: Floyd, Digital Fundamental

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

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.

Digital Logic Elements, Clock, and Memory Elements

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

High-Speed, 5 V, 0.1 F CMOS RS-232 Driver/Receivers ADM202/ADM203

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

ANALOG & DIGITAL ELECTRONICS

6. BOOLEAN LOGIC DESIGN

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Asynchronous counters, except for the first block, work independently from a system clock.

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

COMBINATIONAL CIRCUITS

EGR 278 Digital Logic Lab File: N278L3A Lab # 3 Open-Collector and Driver Gates

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

Sistemas Digitais I LESI - 2º ano

Chapter 1. Computation theory

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Computer Architecture

A N. O N Output/Input-output connection

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

CS311 Lecture: Sequential Circuits

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

Let s put together a Manual Processor

Simplifying Logic Circuits with Karnaugh Maps

Controlling a Dot Matrix LED Display with a Microcontroller

ECE410 Design Project Spring 2008 Design and Characterization of a CMOS 8-bit Microprocessor Data Path

Serial Communications

Measuring Electric Phenomena: the Ammeter and Voltmeter

Multiplexers Two Types + Verilog

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Chapter 6: From Digital-to-Analog and Back Again

MM74C150 MM82C19 16-Line to 1-Line Multiplexer 3-STATE 16-Line to 1-Line Multiplexer

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Introduction to Digital System Design

EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors

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

Transcription:

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 1 Module 3 Digital Gates and Combinational Logic INTRODUCTION: The principles behind digital electronics were developed hundreds of years before technology allowed us to build the first logical gate. A system of controlling processes and making decisions based on simple "yes" or "no" answers was developed by the Irish mathematician, George Boole in the 1850 s. He formalized the way we express logical expressions and documented the AND, OR, NOT functions that are the foundation of all modern logical design today. CONCEPT 3-1: Basic Logic Gates All logical operations can be narrowed down to three basic gates: AND - A logical "1" is output only if all inputs are a logical "1". OR - A logical "1" is output if any of the inputs are a logical "1". NOT A single input, single output device that changes a logical "1" to a logical "0" or a logical "0" to a logical "1". CONCEPT 3-1A: AND Gates An AND gate has two or more input lines for parallel binary bits, and one output bit. The rule is that if all inputs are a high, or a logical "1", then the output is a high, or a logical "1". The output is a logical "0" for any other binary combination of ones and zeros on the input lines. The Boolean Algebra expression for an AND gate is: A B = Q. If the letters A and B that designate the two inputs of the gate in the figure are horizontally adjacent, or side by side with nothing in between, it indicates an AND operation. If the above gate had three inputs designated as A, B, and C with the output designated as Q; the Boolean Algebra expression would be:

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 2 CONCEPT 3-1B: OR Gates A B C = Q. An OR gate has two or more input lines for parallel binary bits, and one output bit. The rule is that if any of the inputs are a high, or a logical "1", then the output is a high, or a logical "1". The only time that the output is a low, or a logical "0", is when all inputs are low, or at logical "0". The Boolean Algebra expression for an OR gate is: A + B = Q. If the letters A and B that designate the two inputs of the gate in the figure are horizontally adjacent, or side by side with a + sign in between, it indicates an OR operation. If the above gate had three inputs designated as A, B, and C, with the output designated as Q; the Boolean Algebra expression would be: A + B + C = Q. CONCEPT 3.1C: INVERT OR NOT GATE An INVERTER is the simplest of all gates. It outputs the opposite binary level that it inputs. A logical "1" becomes a logical "0", and a logical "0" becomes a logical "1". It does nothing else to the data.

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 3 Another way to indicate that a function or a variable is inverted is to draw a line over the top. This is done in the mathematical expression. In a digital schematic diagram that shows the interconnections of an electronic circuit, a logical inversion is shown with a small circle. A line over the top of A is NOT A and means that if A is a logical 1, NOT A is a logical 0. A device in a schematic diagram that has a small circle takes the logical level of the signal going to the circle and inverts it to the opposite logical level. Notice in the figure above. The small circle on the point at the output of the INVERTER changes A to NOT A. CONCEPT 3-2: Advanced Gates By using combinations of AND, OR and NOT gates, three new types of gates are produced, Exclusive OR (XOR), Negative AND (NAND), and a Negative OR (NOR). The new gates have the following rules: NAND A logical "0" is output anytime all inputs are a logical "1". NOR A logical "0" is output if any of the inputs are a logical "1". XOR A logical "1" is output anytime the inputs have an odd number of logical "1"s. CONCEPT 3-2A: NAND Gates NAND gates are AND gates with the output inverted, or OR gates with all inputs inverted. If all of the inputs are at a logical "1" state, the output is zero. The output will be at a logical "1" state for all other input combinations. A NAND gate is produced by inverting the output of an AND gate, or by inverting all of the inputs to an OR gate. The rule simply becomes the inverse of the AND gate, or if all inputs to the NAND gate are high, or at a logical "1", then the output is low, or at a logical "0". The output is high, or at logical "1" for all other input combinations.

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 4 The Boolean Algebra expression for the NAND gate has two forms. One form is for the AND gate with the output inverted: Y = A B The other form is for the OR gate with the inputs inverted: Y = A + B This gives rise to two Boolean Algebra expressions that mean exactly the same thing, and two schematic symbols that express the same identical gate. Y = A B = A + B CONCEPT 3-2B: NOR Gates NOR gates are OR gates with the output inverted, or AND gates with all inputs inverted. If any of the inputs are at a logical "1" state, the output is zero. The output will be at a logical "1" state only when all inputs are at a logical "0" state. A NOR gate is produced by inverting the output of an OR gate, or by inverting all of the inputs to an AND gate. The rule simply becomes the inverse of the OR gate, or if any of the inputs to the NOR gate are high, or at a logical "1", then the output is low, or at a logical "0". The output is high or at logical "1" only when all inputs are zero. The Boolean Algebra expression for the NOR gate has two forms. One form is for the OR gate with the output inverted: Y = A + B Definition 3.1: Gate Equivalence When different configurations of logic gates produce the same outcome, they are said to be equivalent.

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 5 The other form is for the AND gate with the inputs inverted: Y = A B This gives rise to two Boolean Algebra expressions that mean exactly the same thing, and two schematic symbols that express the same identical gate. Y = A + B = A B CONCEPT 3-2C: XOR GATES The last gate considered here is the EXCLUSIVE OR, or XOR gate. The XOR gate has the rule that if there is an odd number of lgocial "1" or high states, then the output is at a high, or a logical "1". An XOR gate is produced by building a circuit that has AND gates, an OR gate, and NOT or INVERT gates. The Boolean Algebra expression for the XOR gate comes from the truth table in the above figure. The output Q will be high for two of the input combinations: Q = A B + A B The above Boolean Algebra expression will yield the correct result in a larger expression, but the common shorthand way of writing the XOR expression is like an OR expression with a circle around the + sign. A double parenthesis can also be used when typing the expression : Q = A (+) B To describe the circuit, the inputs of a two-input OR gate are two AND gates. One of the AND gates has the input coming from signal A inverted, and the

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 6 signal coming from B is input to the same AND gate without being inverted. The other AND gate has the B signal input inverted, and the A signal input not inverted. The following figure illustrates how this works. Definition 3.2: Multiplexer A multiplexer is digitally controlled switch that switches data from multiple sources to a single output. Definition 3.3: Boolean Algebra Boolean Algebra uses two state, or binary logic, to control outcomes based on all possible combinations of numerous input, or driving factors. Boolean Algebra was formalized by the Irish Mathematician, George Boole in the mid 1800 s. Definition 3.4: Truth Table A truth table is a tabulation of all possible outcomes for combinations of binary, or two state, logic. Truth Tables are used in digital logic designs to describe which combination input states result in a positive output, and which combinations result in no action.

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 7 Definition 3.5: Combinational Logic This is a logic system made up of basic logic gates that will interpret all possible combinations of inputs, and will output a signal (logical "1" or "0"), when a desired combination is present. CONCEPT 3.3: Truth Tables Translate into Combinational Logic Circuits A Truth Table is organized into rows and columns with all possible combinations of the inputs to the left, and resulting outputs to the right. For each combination of inputs that result in a desired output, a combination of AND, OR and INVERT gates can be assembled that will output a logical "1" or "0" when the input combinations are present. Consider the following example. A farmer has a pump P that pumps water onto his crop. The pump will only come on if the crop is dry D, and there is water in the canal C. The pump also has an over ride switch that the farmer F can press and turn the pump on any time. The design starts by generating a truth table that will control the pump. You may assume that the sensors for wet or dry crop are there, and there is a sensor that tells if there is water in the canal. You may also assume that a logical 1 signal to a control circuit will turn on the pump. 1. Generate the truth table with all possible combinations on the inputs F, D, and C. Notice the inputs can be taken in any order. F = a logical 1 for pump on, and a 0 for off. D = a logical 1 for crop wet, and 0 for dry. C = a logical 1 for water in the canal, and a 0 for no water. P = a logical 1 for pump ON, and a logical 0 for off. F D C P 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 The logic that controls the pump reduces down to an OR gate, an AND gate, and an INVERTER.

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 8 The Boolean Algebra expression for the pump control logic is: _ P = F + D C CONCEPT 3.4: Families and Types of Logic Families refer to the gate design and intended application. Different families of logic are faster or slower, can drive larger or smaller electrical loads, and require more or less of a driving source. Type refers to how the logic is packaged, and what configurations of gates are in the package. There can be just a few gates in a package, or there can be millions of transistors and complex logic matrices in a single IC chip, such as the circuits in programmable logic devices. The table below outlines some of the more common families and types of logic gates, gives their common part reference numbers, and lists speed, input loads, output drive capability, and package considerations. Family characteristics in the table are compared to the original Transistor-Transistor Logic (TTL) logic specifications of 1 TTL load = 1.4 ma of current, called Fan In, and an output drive capability of 10 TTL loads called, Fan Out. FAMILY DESCRIPTION PART # DELAY FAN IN FAN OUT APPLICATION TTL Early Logic 74 10 ns 1.4 ma 14 ma General S Schottky 74S 2 ns 5 ma 20 ma High Speed LS Low Pwr Schottky 74LS 8 ns 1.4 ma 14 ma Med. Speed AS Adv. Schottky 74AS 1.5 ns 3 ma 20 ma High Speed F Fast 74F 4 ns 5 ma 20 ma High Speed HC High Speed CMOS 74HC 5 ns 1 ua 2 ma Low Power HCT TTL Compat. HC 74HCT 5 ns 0.1 ma 14 ma CMOS to TTL AC Advanced CMOS 74AC 4 ns 1 ua 2 ma Low Power ACT TTL Compat. AC 74ACT 4 ns 0.1 ma 20 ma CMOS to TTL LVC Low Voltage CMOS 74LVC 8 ns 1 ua 2 ma 3.3 V Power BiCMOS TTL & CMOS 74BCT 3 ns 1 ua 20 ma Fast&Lo Pwr

Introduction to Digital Electronics, Module 3: Digital Gates and Combinational Logic 9 PINOUTS OF SEVERAL COMMON GATES: CONCEPT 3.5: Programmable Logic Special devices now exist that have arrays of AND, OR and INVERT gates with their inputs and outputs connected together in a grid pattern, much like the wires in a window screen. The intersections of each horizontal and vertical line in the grid can be electrically connected or disconnected by a computer controlled programmer. The ability to connect any gate inputs and outputs to those of any other gate give the designer the ability to program any combinational logic circuit imaginable involving the gates in the programmable logic array. The capability of programmable logic is so vast that entire computers are now being built using one of these devices.