Lecture 2: Digital Logic Basis

Similar documents
Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

Chapter 3 Describing Logic Circuits Dr. Xu

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

Practice 6: CMOS Digital Logic

ECE380 Digital Logic. Logic values as voltage levels

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

ECE 334: Electronic Circuits Lecture 10: Digital CMOS Circuits

Subject: Analog and Digital Electronics Code:15CS32

Digital Microelectronic Circuits ( ) CMOS Digital Logic. Lecture 6: Presented by: Adam Teman

Logic Design I (17.341) Fall Lecture Outline

Shorthand Notation for NMOS and PMOS Transistors

University of Technology

Positive and Negative Logic

Chapter 3 Digital Logic Structures

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 4: Combinational Logic Circuits. Name: Date:

BOOLEAN ALGEBRA AND LOGIC FAMILIES

Chapter 3 Digital Logic Structures

ECE/CoE 0132: FETs and Gates

Chapter 1: Digital logic

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

Function Table of an Odd-Parity Generator Circuit

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Topic 6. CMOS Static & Dynamic Logic Gates. Static CMOS Circuit. NMOS Transistors in Series/Parallel Connection

Lecture 7: Digital Logic

ECE Digital Logic Lecture 2. Digital Design Circuit Types: Combinational vs. Sequential

ECE 2300 Digital Logic & Computer Organization

Logic diagram: a graphical representation of a circuit

Gates and Circuits 1

Lecture 15 Analysis of Combinational Circuits

INTRODUCTION TO DIGITAL CONCEPT

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Electronics. Digital Electronics

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

Lecture #1. Course Overview

Combinational logic. ! Regular logic: multiplexers, decoders, LUTs and FPGAs. ! Switches, basic logic and truth tables, logic functions

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

Spiral 1 / Unit 8. Transistor Implementations CMOS Logic Gates

Digital Logic Circuits

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

A SUBSTRATE BIASED FULL ADDER CIRCUIT

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

Digital Fundamentals. Logic gates

ECE380 Digital Logic

OBJECTIVE TYPE QUESTIONS FOR PRACTICAL EXAMINATION Subject : Electronics-I ( EC 112)

UNIT-III GATE LEVEL DESIGN

Chapter 4 Combinational Logic Circuits

Formal Foundation of Digital Design

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

DIGITAL CIRCUITS AND SYSTEMS ASSIGNMENTS 1 SOLUTIONS

Lecture Summary Module 1 Switching Algebra and CMOS Logic Gates

Digital Fundamentals

Chapter 4 Combinational Logic Circuits

Exercise 2: OR/NOR Logic Functions

Transistor Digital Circuits

2-Bit Magnitude Comparator Design Using Different Logic Styles

Lab 2 Revisited Exercise

EE40 Lecture 35. Prof. Chang-Hasnain. 12/5/07 Reading: Ch 7, Supplementary Reader

Introduction to CMOS VLSI Design (E158) Lecture 5: Logic

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

ENG2410 Digital Design CMOS Technology. Fall 2017 S. Areibi School of Engineering University of Guelph

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

Chapter 4: FLIP FLOPS. (Sequential Circuits) By: Siti Sabariah Hj. Salihin ELECTRICAL ENGINEERING DEPARTMENT EE 202 : DIGITAL ELECTRONICS 1

Combinational Logic Design CH002

Lecture 02: Digital Logic Review

Digital Fundamentals

Lecture 7: Components of Phase Locked Loop (PLL)

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Digital Fundamentals 8/29/2016. Summary. Summary. Floyd. Chapter 3 A X. The Inverter

1. Short answer questions. (30) a. What impact does increasing the length of a transistor have on power and delay? Why? (6)

ECE 410: VLSI Design Course Lecture Notes (Uyemura textbook)

ECE 471/571 The CMOS Inverter Lecture-6. Gurjeet Singh

Gates and and Circuits

Power-Area trade-off for Different CMOS Design Technologies

Exercise 1: AND/NAND Logic Functions

EE 330 Lecture 42. Other Logic Styles Digital Building Blocks

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

Name EGR 2131 Lab #2 Logic Gates and Boolean Algebra Objectives Equipment and Components Part 1: Reading Pin Diagrams 7400 (TOP VIEW)

Engr354: Digital Logic Circuits

Lecture 9 Transistors

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Dynamic Logic. Domino logic P-E logic NORA logic 2-phase logic Multiple O/P domino logic Cascode logic 11/28/2012 1

EXPERIMENT NO 1 TRUTH TABLE (1)

Digital Fundamentals 9/4/2017. Summary. Summary. Floyd. Chapter 3. The Inverter

CMOS Circuits CONCORDIA VLSI DESIGN LAB

Fan in: The number of inputs of a logic gate can handle.

EE 42/100 Lecture 23: CMOS Transistors and Logic Gates. Rev A 4/15/2012 (10:39 AM) Prof. Ali M. Niknejad

Digital Fundamentals. Lab 4 EX-OR Circuits & Combinational Circuit Design

Multiple input gates. The AND gate

EECS 150 Homework 4 Solutions Fall 2008

Electronics Basic CMOS digital circuits

Introduction (concepts and definitions)

(B) The simplest way to measure the light intensity is using a photodiode in the photoconductive mode:

EEE 301 Digital Electronics

Lecture 16. Complementary metal oxide semiconductor (CMOS) CMOS 1-1

Multiple Category Scope and Sequence: Scope and Sequence Report For Course Standards and Objectives, Content, Skills, Vocabulary

Lecture 6: Electronics Beyond the Logic Switches Xufeng Kou School of Information Science and Technology ShanghaiTech University

Digital Electronics Course Objectives

Transcription:

Lecture 2: Digital Logic Basis Xufeng Kou School of Information Science and Technology ShanghaiTech University 1

Outline Truth Table Basic Logic Operation and Gates Logic Circuits NOR Gates and NAND Gates Boolean Theorems Demorgan s Theorems 2

Analog vs. Digital 3

Analog vs. Digital Analog Digital Audio System CD Player 4

Analog vs. Digital Signal CONTINUOUS (Sine Waves) DISCRETE (Square Waves) Applications Audio and Video trans. Computing Bandwidth Can be done in real time Less bandwidth More bandwidth to carry out the same information Memory Form of wave signal Form of binary bit Accuracy High Low Response to Noise Subjected to deterioration Noise-Immune w/o deterioration during trans. Power Large Small 5

Boolean Constants and Variables Boolean algebra allows only two values 0 and 1 Three basic logic operations: OR AND NOT 6

Truth Table Describes the relationship between the input and output of a logic circuit. # of entries corresponds to # of inputs. A 2-input table: 2 2 = 4 entries A 3-input table: 2 3 = 8 entries 7

Truth Table Example Examples of truth tables with 2, 3, and 4 inputs.

Simplest Logic Function - NOT The Boolean expression for the NOT operation: X = A The overbar represents the NOT operation. Read as: X equals NOT A X equals the inverse of A X equals the complement of A NOT Truth Table This NOT Gate always has only a single input, and the output logic level is always opposite to the logic level of this input.

Review NMOS & PMOS NMOS V G = HIGH -> ON V G = LOW -> OFF PMOS V G = LOW -> ON V G = HIGH -> OFF

NOT Gate Circuit Implementation Inverter V out Input V in Output Whenever the input = 0, output = 1, and vice versa.

Application of NOT Gate This circuit provides an expression that is true when the button is not pressed.

OR Operation The Boolean expression for the OR operation is: X = A + B Read as X equals A OR B The + sign does not stand for ordinary addition it stands for the OR operation The OR operation is similar to addition, but when A = 1 and B = 1, the OR operation produces: 1 + 1 = 1 not 1 + 1 = 2 In the Boolean expression x = 1 + 1 + 1 = 1 x is true (1) when A is true (1) OR B is true (1) OR C is true (1)

OR Gate An OR gate is a circuit with two or more inputs, whose output is equal to the OR combination of the inputs. 2-Input OR gate Symbol Truth Table Waveform

3-Input OR Gate Truth table/circuit symbol for a 3 input OR gate. The OR symbol means the output will go HIGH when any input is HIGH.

Application of OR Gate Question: What function does this system implement?

AND Operation The Boolean expression for the AND operation is: X = A B C Read as X equals A AND B AND C 2-Input AND gate The sign does not stand for ordinary multiplication it stands for the AND operation. Symbol Truth Table Waveform

3-Input AND Gate Truth table/circuit symbol for a 3 input AND gate. The AND symbol on a logic-circuit diagram tells you output will go HIGH only when all inputs are HIGH.

Application of AND Gate Seat Belt Alarm System Question: How does this system work?

Boolean Operations Summarized rules for OR, AND and NOT These three basic Boolean operations can describe any logic circuit.

Logic Circuit Algebra If an expression contains both AND and OR gates, the AND operation will be performed first. Unless there is a parenthesis in the expression.

Logic Circuit Algebra (Cont.) Whenever an INVERTER is present, output is equivalent to input, with a bar over it. Input A through an inverter equals A.

Exercise Question: What is the output state?

Evaluate Logic Circuit Outputs Rules for evaluating a Boolean expression: Perform all inversions of single terms. Perform all operations within parenthesis. Perform AND operation before an OR operation unless parenthesis indicate otherwise. If an expression has a bar over it, perform operations inside the expression, and then invert the result.

Evaluate Logic Circuit Outputs The best way to analyze a circuit made up of multiple logic gates is to use a truth table. It allows you to analyze one gate or logic combination at a time. It allows you to easily double-check your work. When you are done, you have a table of tremendous benefit in troubleshooting the logic circuit.

Step 1 List all input combinations. Create a column in the truth table for each node. Fill the values for u.

Step 2 Fill in the values for column v. v =AB Node v should be HIGH when A (node u) is HIGH AND B is HIGH

Step 3 Predict the values at node w which is the logical product of BC. This column is HIGH whenever B is HIGH AND C is HIGH

Step 4 Logically combine columns v and w to predict the output x. Since x = v + w, the x output will be HIGH when v OR w is HIGH

Draw the Circuit from Boolean Expression A circuit with output y = AC + BC + ABC contains three terms which are ORed together. Backward

Draw the Circuit from Boolean Expression Each OR gate input is an AND product term, An AND gate with appropriate inputs can be used to generate each of these terms.

Exercise Question: Draw the circuit to implement x = (A + B) (B + C)

NOR and NAND Gates Combine basic AND, OR, and NOT operations. Simplifying the writing of Boolean expressions Output of NAND and NOR gates may be found by determining the output of an AND or OR gate, and inverting it. The truth tables for NOR and NAND gates show the complement of truth tables for OR and AND gates.

NOR Gate The NOR gate is an inverted OR gate. x = A + B Only if both inputs are 0, the output will be 1

NAND Gate The NAND gate is an inverted AND gate. x = AB

Logic Circuit using NOR/NAND Gates Logic circuit with the expression x = AB (C + D) using only NOR and NAND gates.

Universality of NOR and NAND Gates NAND or NOR gates can be used to create the three basic logic expressions. OR, AND, and INVERT. Provides flexibility very useful in logic circuit design.

Universality of NAND Gate

Universality of NOR Gate

74 Series IC Packages

Logic Circuit using 74 Series x = AB + CD Possible Implementations # 1

Logic Circuit using 74 Series x = AB + CD Possible Implementations # 2

Boolean Theorems Th1: if any variable is ANDed with 0, the result must be 0. Th2: if any variable is ANDed with 1, the result must be itself Logic AND is just like ordinary multiplication!

Boolean Theorems Th3: A variable ANDed with itself is always equal to itself Th4: A variable ANDed with its complement is always 0

Boolean Theorems Th5: A variable ORed with 0 is always equal to itelf Th6: A variable ORed with 1 is always 1

Boolean Theorems Th7: A variable ORed with itself is always equal to itself Th8: A variable ORed with its complement is always 1

Commutative laws Multivariable Theorems Associative laws Distributive law

Multivariable Theorems Theorems (14) and (15) do not have counterparts in ordinary algebra. Each can be proved by - Trying all possible cases for x and y. Analysis table & factoring for Theorem (14)

DeMorgan s Theorems Each of DeMorgan s theorems can readily be proven by checking for all possible combinations of x and y.

DeMorgan s Theorems Equivalent circuits implied by Theorem (16) The alternative symbol for the NOR function.

DeMorgan s Theorems Equivalent circuits implied by Theorem (17) The alternative symbol for the NOR function.

References David M. Harris and Sarah L. Harris, Digital Design and Computer Architecture Thomas L. Floyd, Digital Fundamentals,11 th edition Ronald J. Tocci and Neal Widmer, Digital Systems Principles and Applications,11 th edition

Advanced Topic: CMOS Logic

NMOS Transistors in Series/Parallel Transistor switch controlled by its gate signal - NMOS switch closes when switch control input is high AND Y = X if A AND B OR Y = X if A OR B

PMOS Transistors in Series/Parallel PMOS switch closes when switch control input is low NOR Y = X if A AND B (A+B) NAND Y = X if A OR B (AB) 55

Complementary CMOS Logic Style Apply DeMorgan s Theorems A+B = A B AB = A + B The complementary gate is inverting AND = NAND + INV 56

Example: NAND Gate PDN: G = AB -> Conduction to GND PUN: F = A + B = AB -> Conduction to V DD G(In 1, In 2, In 3, ) = F (In 1, In 2, In 3, ) 57

Example: NOR Gate 58

Complex CMOS Gate 59

Constructing a Complex Gate F = D +A(B+C) Pull-down network Deriving the pull-up network hierarchically by identifying sub-nets Complete gate 60