Chapter 3 Digital Logic Structures

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

Chapter 3 Digital Logic Structures

CP 405/EC 422 MODEL TEST PAPER - 1 PULSE & DIGITAL CIRCUITS. Time: Three Hours Maximum Marks: 100

ELEC 204 Digital Systems Design

Design of FPGA- Based SPWM Single Phase Full-Bridge Inverter

Chapter 3 Digital Logic Structures

X-Bar and S-Squared Charts

Design of FPGA Based SPWM Single Phase Inverter

Department of Electrical and Computer Engineering, Cornell University. ECE 3150: Microelectronics. Spring Due on April 26, 2018 at 7:00 PM

PRACTICAL FILTER DESIGN & IMPLEMENTATION LAB

Technical Explanation for Counters

Roberto s Notes on Infinite Series Chapter 1: Series Section 2. Infinite series

Indicator No mark Single preset Dual preset DIN W144 H72mm DIN W48 H96mm No mark DIN W72 H72mm (4 digit) (6 digit) Counter/Timer

CONTROLLING FREQUENCY INFLUENCE ON THE OPERATION OF SERIAL THYRISTOR RLC INVERTERS

(2) The MOSFET. Review of. Learning Outcome. (Metal-Oxide-Semiconductor Field Effect Transistor) 2.0) Field Effect Transistor (FET)

HB860H 2-phase Hybrid Servo Drive

APPLICATION NOTE UNDERSTANDING EFFECTIVE BITS

ELEC 350 Electronics I Fall 2014

Lecture 13: DUART serial I/O, part I

Density Slicing Reference Manual

COS 126 Atomic Theory of Matter

Intermediate Information Structures

MEASUREMENT AND CONTORL OF TOTAL HARMONIC DISTORTION IN FREQUENCY RANGE 0,02-10KHZ.

Two and four-quadrant DC/DC converters with SCALE drivers

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

A SELECTIVE POINTER FORWARDING STRATEGY FOR LOCATION TRACKING IN PERSONAL COMMUNICATION SYSTEMS

信號與系統 Signals and Systems

AB1A Driver Box User Manual

Encode Decode Sample Quantize [ ] [ ]

INCREASE OF STRAIN GAGE OUTPUT VOLTAGE SIGNALS ACCURACY USING VIRTUAL INSTRUMENT WITH HARMONIC EXCITATION

信號與系統 Signals and Systems

Lecture 28: MOSFET as an Amplifier. Small-Signal Equivalent Circuit Models.

ICM7213. One Second/One Minute Timebase Generator. Features. Description. Ordering Information. Pinout. August 1997

Objectives. Some Basic Terms. Analog and Digital Signals. Analog-to-digital conversion. Parameters of ADC process: Related terms

Basic Symbols for Register Transfers. Symbol Description Examples

A Novel Three Value Logic for Computing Purposes

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Fall Semester, Introduction to EECS 2.

Spread Spectrum Signal for Digital Communications

}, how many different strings of length n 1 exist? }, how many different strings of length n 2 exist that contain at least one a 1

Data Mining the Online Encyclopedia of Integer Sequences for New Identities Hieu Nguyen

Delta- Sigma Modulator based Discrete Data Multiplier with Digital Output

Lab 2: Common Source Amplifier.

WAVE-BASED TRANSIENT ANALYSIS USING BLOCK NEWTON-JACOBI

Measurement of Equivalent Input Distortion AN 20

Application of Improved Genetic Algorithm to Two-side Assembly Line Balancing

Model Display digit Size Output Power supply 24VAC 50/60Hz, 24-48VDC 9999 (4-digit) 1-stage setting

E X P E R I M E N T 13

INF 5460 Electronic noise Estimates and countermeasures. Lecture 11 (Mot 8) Sensors Practical examples

By: Pinank Shah. Date : 03/22/2006

Smart Energy & Power Quality Solutions. ProData datalogger. Datalogger and Gateway

Single Bit DACs in a Nutshell. Part I DAC Basics

Zonerich AB-T88. MINI Thermal Printer COMMAND SPECIFICATION. Zonerich Computer Equipments Co.,Ltd MANUAL REVISION EN 1.

Revision: June 10, E Main Suite D Pullman, WA (509) Voice and Fax

Survey of Low Power Techniques for ROMs

Combined Scheme for Fast PN Code Acquisition

Slides copyright 1996, 2001, 2005, 2009 by Roger S. Pressman. For non-profit educational use only

sible number of wavelengths. The wave~~ngt~ ~ ~ ~ c ~ n b~dwidth is set low eno~gh to interfax One of the most im

SEE 3263: ELECTRONIC SYSTEMS

TMCM BLDC MODULE. Reference and Programming Manual

ECE 2201 PRELAB 4A MOSFET SWITCHING APPLICATIONS. Digital CMOS Logic Inverter

7. Counting Measure. Definitions and Basic Properties

Outline. Motivation. Analog Functional Testing in Mixed-Signal Systems. Motivation and Background. Built-In Self-Test Architecture

DIGITALLY TUNED SINUSOIDAL OSCILLATOR USING MULTIPLE- OUTPUT CURRENT OPERATIONAL AMPLIFIER FOR APPLICATIONS IN HIGH STABLE ACOUSTICAL GENERATORS

High-Order CCII-Based Mixed-Mode Universal Filter

Permutation Enumeration

The Silicon Controlled Rectifier (SCR)

Table Of Contents Blues Turnarounds

Multisensor transducer based on a parallel fiber optic digital-to-analog converter

x y z HD(x, y) + HD(y, z) HD(x, z)

T able 5.1 E xample of a S olid B eef Manur e T es t R epor t. Lab Units 1 % and ppm. Mois tur e Content Total N

Summary of pn-junction (Lec )

ECONOMIC LOT SCHEDULING

Lecture 29: Diode connected devices, mirrors, cascode connections. Context

Thermal nodes Input1 2 o-- ---O Input2 3 o O Junction Temp o

The Institute of Chartered Accountants of Sri Lanka

Reconfigurable architecture of RNS based high speed FIR filter

A Bipolar Cockcroft-Walton Voltage Multiplier for Gas Lasers

A study on the efficient compression algorithm of the voice/data integrated multiplexer

Your name. Scalable Regulated Three Phase Power Rectifier. Introduction. Existing System Designed in 1996 from Dr. Hess and Dr. Wall.

COMPRESSION OF TRANSMULTIPLEXED ACOUSTIC SIGNALS

THE LUCAS TRIANGLE RECOUNTED. Arthur T. Benjamin Dept. of Mathematics, Harvey Mudd College, Claremont, CA Introduction

OPTIMIZATION OF RNS FIR FILTERS FOR 6-INPUTS LUT BASED FPGAS

Analysis and Optimization Design of Snubber Cricuit for Isolated DC-DC Converters in DC Power Grid

The MOSFET. D PMOS and a fourth (substrate) which we normally omit from figures We use enhancement mode devices Normally turned off

A New 3-Bit Integrating Time to Digital Converter Using Time to Voltage Conversion Technique

Lossless image compression Using Hashing (using collision resolution) Amritpal Singh 1 and Rachna rajpoot 2

AME50461 SERIES EMI FILTER HYBRID-HIGH RELIABILITY

Compression Programs. Compression Outline. Multimedia. Lossless vs. Lossy. Encoding/Decoding. Analysis of Algorithms

lecture notes September 2, Sequential Choice

VLSI Implementations of Threshold Logic A Comprehensive Survey

PROJECT #2 GENERIC ROBOT SIMULATOR

Methods to Reduce Arc-Flash Hazards

A GHz Constant KVCO Low Phase Noise LC-VCO and an Optimized Automatic Frequency Calibrator Applied in PLL Frequency Synthesizer

H2 Mathematics Pure Mathematics Section A Comprehensive Checklist of Concepts and Skills by Mr Wee Wen Shih. Visit: wenshih.wordpress.

After completing this chapter you will learn

KMXP SERIES Anisotropic Magneto-Resistive (AMR) Linear Position Sensors

Output. Function f. Characteristic Predictor. Predicted Output Characteristic. Checker. Output. Error

We often find the probability of an event by counting the number of elements in a simple sample space.

Subject: Analog and Digital Electronics Code:15CS32

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

Transcription:

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Computig Layers Chapter 3 Digital Logic Structures Problems Algorithms Laguage Istructio Set Architecture Microarchitecture Origial slides from Gregory Byrd, North Carolia State Uiversity Modified slides by Chris Wilco, Colorado State Uiversity Circuits Devices CS270 - Sprig Semester 206 2 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Trasistor: Buildig Block of Computers Microprocessors cotai lots of trasistors Itel 8086 (978): 29 thousad Itel 8086 (982): 55 thousad Itel 80386 (985): 275 thousad Itel 80486 (989):. millio Itel Petium (993): 3. millio Itel Petium II (998): 7.5 millio Itel Petium III (200): 45 millio Itel Petium 4 (2006): 84 millio Itel Core 2 Duo (2006): 29 millio Itel Quad Core i7 (20):. billio Itel 8-core Xeo (202): 2.3 billio CS270 - Sprig Semester 206 3 CS270 - Sprig Semester 206 4

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Trasistor: Buildig Block of Computers Logically, each trasistor acts as a switch Combied to implemet logic fuctios (gates) AND, OR, NOT Combied to build higher-level structures Multipleer, decoder, register, memory Adder, multiplier Combied to build simple processor LC-3 CS270 - Sprig Semester 206 5 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Simple Switch Circuit Switch ope: Ope circuit, o curret Light is off V out is +2.9V Switch closed: Short circuit across switch, curret flows Light is o V out is 0V Switch-based circuits ca easily represet two states: o/off, ope/closed, voltage/o voltage. CS270 - Sprig Semester 206 6 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. -type MOS Trasistor MOS = Metal Oide Semicoductor two types: -type ad p-type -type whe Gate has positive voltage, short circuit betwee # ad #2 (switch closed) whe Gate has zero voltage, ope circuit betwee # ad #2 (switch ope) Termial #2 must be coected to GND (0V). Gate = Gate = 0 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. p-type MOS Trasistor p-type is complemetary to -type whe Gate has positive voltage, ope circuit betwee # ad #2 (switch ope) Gate = whe Gate has zero voltage, short circuit betwee # ad #2 (switch closed) Termial # must be coected to +2.9V. Gate = 0 CS270 - Sprig Semester 206 7 CS270 - Sprig Semester 206 8 2

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Physical Trasistor Trasistor Output (Ideal) http://e.wikipedia.org/wiki/cmos Logic aalyzer view of waveforms CS270 - Sprig Semester 206 9 CS270 - Sprig Semester 206 0 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Trasistor Output (Actual) Propagatio Delay Each gate has a propagatio delay, typically fractio of a aosecod (0-9 sec). Delays accumulate depedig o the chai of gates the sigals have to go through. Clock frequecy of a processor is determied by the delay of the logest combiatioal path betwee storage elemets, i.e. cycle time. Actual waveform is ot ideal! CS270 - Sprig Semester 206 CS270 - Sprig Semester 206 2 3

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Logic Gates Use switch behavior of MOS trasistors to implemet logical fuctios: AND, OR, NOT. Digital symbols: recall that we assig a rage of aalog voltages to each digital (logic) symbol assigmet of voltage rages depeds o electrical properties of trasistors beig used typical values for "": +5V, +3.3V, +2.9V from ow o we'll use +2.9V CMOS Circuit Complemetary MOS Uses both -type ad p-type MOS trasistors p-type Attached to + voltage Pulls output voltage UP whe iput is zero -type Attached to GND Pulls output voltage DOWN whe iput is oe For all iputs, make sure that output is either coected to GND or to +, but ot both! CS270 - Sprig Semester 206 3 CS270 - Sprig Semester 206 4 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Iverter (NOT Gate) Logical Operatio: OR ad NOR A B OR 0 0 0 0 0 A B NOR 0 0 0 0 0 0 0 Iputs: 2 or more I Out 0 V 2.9 V 2.9 V 0 V I Out 0 0 Output=A+B Output=A+B CS270 - Sprig Semester 206 5 CS270 - Sprig 6 Semester 206 4

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. AND ad NAND Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. NOR Gate (OR-NOT) A B AND 0 0 0 0 0 0 0 A B NAND 0 0 0 0 0 Iputs: 2 or more A B C 0 0 Output = AB Output = AB 0 0 0 0 Note: Serial structure o top, parallel o bottom. 0 CS270 - Sprig 7 Semester 206 CS270 - Sprig Semester 206 8 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. OR Gate A B C 0 0 0 0 0 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. NAND Gate (AND-NOT) Add iverter to NOR. A B C 0 0 0 Note: Parallel structure o top, serial o bottom. 0 CS270 - Sprig Semester 206 9 CS270 - Sprig Semester 206 0 20 5

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. AND Gate A B C 0 0 0 0 0 0 0 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Basic Logic Gates Add iverter to NAND. CS270 - Sprig Semester 206 2 CS270 - Sprig Semester 206 22 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Boolea Algebra Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Boolea Algebra Laws 0 0 0 0 = 0 = = 0 +0 = + = + = CS270 - Sprig 23 Semester 206 Remember Idetify, Domiatio, Negatio Laws from Logic! 0 Commutative A+B = B+A AB = BA Associative A+(B+C)=(A+B)+C = A+B+C A(BC)=(AB)C = ABC Distributive A(B+C)=AB+AC A+(BC)=(A+B)(A+C) CS270 - Sprig 24 Semester 206 6

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Some Useful Idetities for simplificatio AB+AB = A Proof: AB+AB = A(B+B) // Distributive Law = A(T) // Negatio Law = A // Idetity Law A+AB = A Proof: A+AB = A(+B) // Distributive Law = A() // Domiatio Law = A // Idetity Law Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. DeMorga's Law Covertig AND to OR (with some help from NOT) Cosider the followig gate: A B A B A B A B 0 0 0 0 0 0 0 0 0 0 0 0 Same as A OR B! To c ov ert AND t o OR (or vice versa), ivert iputs ad output. CS270 - Sprig 25 Semester 206 CS270 - Sprig Semester 206 26 Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. More tha 2 Iputs? AND/OR ca take ay umber of iputs. AND = if all iputs are. OR = if ay iput is. Similar for NAND/NOR. Ca implemet with multiple two-iput gates, or with sigle CMOS circuit. Summary MOS trasistors are used as switches to implemet logic fuctios. -type: coect to GND, tur o () to pull dow to 0 p-type: coect to +2.9V, tur o (0) to pull up to Basic gates: NOT, NOR, NAND Logic fuctios are usually epressed with AND, OR, ad NOT DeMorga's Law Covert AND to OR (ad vice versa) by ivertig iputs ad output CS270 - Sprig Semester 206 27 CS270 - Sprig Semester 206 28 7

Copyright The McGraw-HillCompaies, Ic. Permissio required for reproductio or display. Buildig Fuctios from Logic Gates Combiatioal Logic Circuit output depeds oly o the curret iputs stateless Sequetial Logic Circuit output depeds o the sequece of iputs (past ad preset) stores iformatio (state) from past iputs We'll first look at some useful combiatioal circuits, the show how to use sequetial circuits to store iformatio. CS270 - Sprig Semester 206 29 8