ECE124 Digital Circuits and Systems Page 1

Similar documents
Chapter 10 Advanced CMOS Circuits

Here we introduced (1) basic circuit for logic and (2)recent nano-devices, and presented (3) some practical issues on nano-devices.

CHAPTER 11: Flip Flops

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

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

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

Set-Reset (SR) Latch

Lesson 12 Sequential Circuits: Flip-Flops

Layout of Multiple Cells

The MOSFET Transistor

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

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Latch Timing Parameters. Flip-flop Timing Parameters. Typical Clock System. Clocking Overhead

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.

Pass Gate Logic An alternative to implementing complex logic is to realize it using a logic network of pass transistors (switches).

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

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

Lecture 5: Gate Logic Logic Optimization

Sequential 4-bit Adder Design Report

The components. E3: Digital electronics. Goals:

Bi-directional level shifter for I²C-bus and other systems.

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Notes about Small Signal Model. for EE 40 Intro to Microelectronic Circuits

Chapter 9 Latches, Flip-Flops, and Timers

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Interfacing 3V and 5V applications

Lecture 11: Sequential Circuit Design

Counters and Decoders

Analog & Digital Electronics Course No: PH-218

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

Sequential Logic: Clocks, Registers, etc.

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Field-Effect (FET) transistors

Small Signal Analysis of a PMOS transistor Consider the following PMOS transistor to be in saturation. Then, 1 2

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

PLL frequency synthesizer

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

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

CMOS, the Ideal Logic Family

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

AN2680 Application note

Sequential Logic Design Principles.Latches and Flip-Flops

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

True Single Phase Clocking Flip-Flop Design using Multi Threshold CMOS Technique

CMOS Power Consumption and C pd Calculation

Upon completion of unit 1.1, students will be able to

CHAPTER 11 LATCHES AND FLIP-FLOPS

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Lecture 10: Sequential Circuits

Lecture 10: Latch and Flip-Flop Design. Outline

Lecture 30: Biasing MOSFET Amplifiers. MOSFET Current Mirrors.

Introduction to CMOS VLSI Design

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

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

The enable pin needs to be high for data to be fed to the outputs Q and Q bar.

CSE140: Components and Design Techniques for Digital Systems

[ 4 ] Logic Symbols and Truth Table

AN Level shifting techniques in I 2 C-bus design. Document information

Gates, Circuits, and Boolean Algebra

CMOS Logic Integrated Circuits

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

Module 7 : I/O PADs Lecture 33 : I/O PADs

Bob York. Transistor Basics - MOSFETs

ECE380 Digital Logic

LFSR BASED COUNTERS AVINASH AJANE, B.E. A technical report submitted to the Graduate School. in partial fulfillment of the requirements

Application Note AN-940

GLOLAB Two Wire Stepper Motor Positioner

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

CMOS Binary Full Adder

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

MOS Transistors as Switches

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

DM7474 Dual Positive-Edge-Triggered D-Type Flip-Flops with Preset, Clear and Complementary Outputs

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

CHAPTER 16 MEMORY CIRCUITS

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

Design and analysis of flip flops for low power clocking system

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Sequential Circuit Design

Memory Elements. Combinational logic cannot remember

Push-Pull FET Driver with Integrated Oscillator and Clock Output

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

Application Examples

Lecture 7: Clocking of VLSI Systems

TRUE SINGLE PHASE CLOCKING BASED FLIP-FLOP DESIGN

TIMING-DRIVEN PHYSICAL DESIGN FOR DIGITAL SYNCHRONOUS VLSI CIRCUITS USING RESONANT CLOCKING

Application Note 83 Fundamentals of RS 232 Serial Communications

Design of Low Power One-Bit Hybrid-CMOS Full Adder Cells

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

Fairchild Solutions for 133MHz Buffered Memory Modules

Digital Logic Design Sequential circuits

Lecture 8: Synchronous Digital Systems

Agilent Technologies 1670G Series (Option 004) Pattern Generator Specifications and Characteristics

H-Bridge Motor Control

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

INTEGRATED CIRCUITS. 74F74 Dual D-type flip-flop. Product specification Supercedes data of 1990 Oct 23 IC15 Data Handbook.

Transcription:

ECE124 Digital Circuits and Systems Page 1

Chip level timing Have discussed some issues related to timing analysis. Talked briefly about longest combinational path for a combinational circuit. Talked briefly about timing with flip-flops; i.e., Data input must be stable before active clock edge (setup time). Data input must be stable after active clock edge (hold time). Data output doesn t change immediately after the active clock edge (clock-tooutput time). When we build an entire circuit (one with both flip-flops and combinational logic), there are other important timing concepts to understand. ECE124 Digital Circuits and Systems Page 2

Cycle times (1) Consider flip-flop outputs being used to generate flip-flop inputs: Tco Tdata Tsu clk combinatorial D Q D Q logic (and delay) Tclk1 Tclk2 It takes time for signals to arrive where they need to be ECE124 Digital Circuits and Systems Page 3

Cycle times (2) Sequence of events in transfer of data between flip-flops : Takes time for active clock edge to arrive at first FF (Tclk1). Once active clock edge arrives, takes time for output of first FF to change (+Tco). Takes time for output of first FF to cause changes in the input value to the second FF due to combinatorial logic between FF (+Tdata). Input at second FF must be present prior to active clock edge at second FF (Tsu). Takes time for clock to arrive at second FF (Tclk2). Must be some limit of how fast we can clock the circuit (i.e., the frequency of clock signal): Data output from first FF must get to data input of second FF prior to the next active clock edge. ECE124 Digital Circuits and Systems Page 4

Cycle times (3) For the data output of the first FF to get to the data input of the second FF in sufficient time, the following must be true: The minimum period (maximum frequency) of the circuit is: ECE124 Digital Circuits and Systems Page 5

Cycle times (4) Tco Tdata Tsu clk combinatorial D Q D Q logic (and delay) Tclk1 Tclk2 The equation for Tcycle tells us a minimum clock period (or maximum frequency) at which our circuit can operate without violating the setup time at the second FF input. ECE124 Digital Circuits and Systems Page 6

Cycle times (5) Tclk1 Tco Tdata Tsu CLK FF1 CLK FF2 CLK FF1 Q FF2 D Tclk1 Tcycle ECE124 Digital Circuits and Systems Page 7

Clock skew If we look at our equation for maximum frequency: Circuit frequency <= 1/Tcycle The term (Tclk1 Tclk2) that measures the difference in time between the arrival of the active clock edge at the two flip-flops. This difference is called clock skew and it can be positive or negative. In general, clock skew is a big hassle, and we would like to avoid it if possible. ECE124 Digital Circuits and Systems Page 8

Inverted clocks (1) Sometimes we might have flip-flops clocked on different edges of the clock; some flipflops trigger on the rising edge and others on the falling edge. This can limit the maximum frequency of the circuit too since we have less time to get data to where it needs to be! Tco Tdata Tsu clk combinatorial D Q D Q logic (and delay) Tclk1 Tclk2 Rising edge Falling edge ECE124 Digital Circuits and Systems Page 9

Inverted clocks (2) Tclk1 Tco Tdata Tsu CLK FF1 CLK FF2 CLK FF1 Q FF2 D Tclk1 Tcycle Since the second FF is triggered on the falling edge, either Tdata must be short enough, or the cycle time for the clock needs to be lengthened (lower frequency) to allow the data to get to the second FF. ECE124 Digital Circuits and Systems Page 10

Tclk1 Tco Tdata Tsu CLK FF1 CLK FF2 CLK FF1 Q FF2 D Tclk1 Tcycle ECE124 Digital Circuits and Systems Page 11

Duty cycles Sometimes the clock signal is not symmetric; It has a non-uniform duty cycle. If we use both rising and falling edge triggering, this can also affect the clock frequency. 2/3 high (66% duty cycle) CLK 1/3 low ECE124 Digital Circuits and Systems Page 12

Setup and hold times at the pins of a chip (1) Say we have a circuit implemented inside of an integrated circuit (IC) chip. The circuit and IC now looks like a black-box. Timing at the pins of the chip are now important. Suppose you have a data present at at input pin on the IC. The signal might go through some logic inside the IC prior to reaching a flipflop input inside of the IC. The flip-flop inside of the IC is clocked by another clock signal applied at another pin of the IC. ECE124 Digital Circuits and Systems Page 13

Setup and hold times at the pins of a chip (2) There is a setup and hold time at the flip-flop inside of the IC and a relationship between the FF-D input and the FF-CLK input. Therefore, there must be a relationship between the data input and the clock input at the chip pins. data Tdata Tsu combinatorial logic (and delay) Tsu/Th D Q clk pins at IC boundary Tclk logic inside IC flip-flop inside IC ECE124 Digital Circuits and Systems Page 14

Setup and hold times at the pins of a chip (3) Let: cf - time when active clock edge arrives at FF CLK INPUT. cc - time when active clock edge arrives at CLK PIN. df - time when data input at FF D INPUT makes a transition. dc - time when data input at DATA PIN makes a transition. Let: Tsu - the setup time of the FF D input w.r.t. the FF CLK input. Th - the hold time of the FF D input w.r.t. the FF CLK input. Let: Tsetup - the setup time of the DATA PIN input w.r.t. the CLK PIN. Thold - the hold time of the DATA PIN input w.r.t. the CLK PIN. ECE124 Digital Circuits and Systems Page 15

Setup and hold times at the pins of a chip (4) The following must be true at the flip-flop: df not in [cf-tsu,cf+th] otherwise the flipflop might not work correctly (data must be stable around the active clock edge). Two inequalities: df not in [cf-tsu,cf+th] implies: df not in [cf-tsu,cf+th] implies: df < cf Tsu dc+tdata = df cc + Tclk = cf dc+tdata < cc+tclk-tsu but: and: so: and: df > cf + Th dc+tdata = df cc + Tclk = cf dc+tdata > cc+tclk+th but: and: so: and: dc < cc (Tsu-Tclk+Tdata). df can occur here Recall: cf - time when active clock edge arrives at FF CLK INPUT. cc - time when active clock edge arrives at CLK PIN. df - time when data input at FF D INPUT makes a transition. dc - time when data input at DATA PIN dc+tdata makes a transition. dc > cc + (Th+Tclk-Tdata). cc cf-tsu Tsu cf cc+tclk ECE124 Digital Circuits and Systems Page 16

Setup and hold times at the pins of a chip (5) We find a relationship between the data input and clock input at the IC PINS due to the relationship at the FF inputs inside the chip: dc < cc (Tsu-Tclk+Tdata). dc > cc + (Th+Tclk-Tdata). So, we have the relationship: dc not in [cc-tsetup,cc+thold] There are setup and hold times at the IC inputs. When we use an IC, we must pay attention to these times to make sure that the IC will work correctly. ECE124 Digital Circuits and Systems Page 17

Setup and hold times at the pins of a chip (6) data Tdata Tsu combinatorial logic (and delay) Tsu/Th D Q clk Tseup Thold Tsu Th pins at IC boundary Tclk logic inside IC flip-flop inside IC Tclk CLK FF CLK FF D DATA Tdata Tdata ECE124 Digital Circuits and Systems Page 18

Setup and hold times at the pins of a chip (7) When active clock edge arrives at a FF CLK input, the FF Q output changes after Tco. Consider that the FF Q output drives OUTPUT PIN of IC. Output will not appear for an amount of time called CLOCK-TO-OUTPUT TIME. Tdata clk D Tco Q combinatorial logic (and delay) data Tclk pins at IC boundary flip-flop inside IC logic inside IC Tclock_to_output = Tclk + Tco + Tdata ECE124 Digital Circuits and Systems Page 19

Setup and hold times at the pins of a chip (8) Tdata clk D Tco Q combinatorial logic (and delay) data Tclk Tco Tdata Tclk pins at IC boundary flip-flop inside IC logic inside IC CLK FF CLK FF D FF Q DATA ECE124 Digital Circuits and Systems Page 20

Implementing logic gates in CMOS Logic gates are implemented via transistors. One popular technology for implementing transistors is Complementary Metal Oxide Semiconductor (CMOS) technology. Transistors effectively implement switches. There are two types of Metal Oxide Semiconductor Field Effect Transistors (MOSFETs), namely the n-channel (NMOS) and p- channel (PMOS) transistor. CMOS uses both NMOS and CMOS transistors to implement logic gates in a complementary way. ECE124 Digital Circuits and Systems Page 21

Voltages and logic levels Logic levels are represented with voltages. The logic level 0 is represented by the lowest voltage (GND) The logic level 1 is represented by the highest voltage (VDD) Transistors are used as switches to open or close and connect wires to either VDD or GND. ECE124 Digital Circuits and Systems Page 22

NMOS transistor Simplified NMOS transistor has 3 terminals: 1) the Gate (G); 2) the Source (S) and 3) the Drain (D). The source is at a lower voltage; The drain is at a higher voltage. When a high voltage is applied to G (w.r.t. to S) and V GS is above some threshold voltage V T the switch closes and D is connected to S (current flows from D to S). This pulls down the voltage at D to the voltage at S. When the voltage between G and S is less than some threshold voltage V T the switch opens and D is disconnected from S (no current flows from D to S). ECE124 Digital Circuits and Systems Page 23

PMOS transistor Simplified PMOS transistor has 3 terminals: 1) the Gate (G); 2) the Source (S) and 3) the Drain (D). The source is at a higher voltage; The drain is at a lower voltage. When a low voltage is applied to G (w.r.t. to S) and V SG is above some threshold voltage V T the switch closes and S is connected to D (current flows from S to D). This pulls up the voltage at D to the voltage at S. When the voltage between S and G is less than some threshold voltage V T the switch opens and S is disconnected from D (no current flows from S to D). ECE124 Digital Circuits and Systems Page 24

CMOS structure CMOS combines NMOS and PMOS transistors in a structure which consists of a Pull-Up Network (PUN) and a Pull-Down Network (PDN) to implement logic functions. PUN and PDN are duals of each other. g A current path (connection) from V DD to V F means V F is high (f is logic 1) A current path (connection) from V F to GND means V F is low (f is logic 0).!f AND corresponds to transistors in series OR corresponds to transistors in parallel ECE124 Digital Circuits and Systems Page 25

CMOS inverter When V X is high (logic 1): 1) NMOS is closed; 2) PMOS is open;3) current flows from V F to GND V F is GND (logic 0). When V X is low (logic 0): 1) NMOS is open; 2) PMOS is closed;3) current flows from V DD to V F V F is V DD (logic 1). ECE124 Digital Circuits and Systems Page 26

CMOS NAND!x +!y 4 transistors!(xy) ECE124 Digital Circuits and Systems Page 27

CMOS NOR!x!y!(x+y) 4 transistors ECE124 Digital Circuits and Systems Page 28

CMOS AND Uses a CMOS NAND followed by a CMOS inverter 6 transistors ECE124 Digital Circuits and Systems Page 29

What s this? A B C V0o ut 0 0 0 Vdd 0 0 1 Vdd 0 1 0 Vdd 0 1 1 Vdd 1 0 0 Vdd 1 0 1 Gnd 1 1 0 Gnd 1 1 1 Gnd ECE124 Digital Circuits and Systems Page 30

Transmission gates When S is high (!S is low), both NMOS and PMOS are closed f = x. When S is low (!S is high), both NMOS and PMOS are open f is disconnected from x (high impedence). ECE124 Digital Circuits and Systems Page 31

XOR (using transmission gates) 8 transistors ECE124 Digital Circuits and Systems Page 32