EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

Similar documents
Sequential Logic. References:

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

ECE321 Electronics I

CMOS Latches and Flip-Flops

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Topic 8. Sequential Circuits 1

Experiment 8 Introduction to Latches and Flip-Flops and registers

Chapter 11 Latches and Flip-Flops

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram

11. Sequential Elements

CS/EE 6710 Digital VLSI Design CAD Assignment #3 Due Thursday September 21 st, 5:00pm

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Digital Integrated Circuits EECS 312

EL302 DIGITAL INTEGRATED CIRCUITS LAB #3 CMOS EDGE TRIGGERED D FLIP-FLOP. Due İLKER KALYONCU, 10043

Logic Design. Flip Flops, Registers and Counters

UNIT III COMBINATIONAL AND SEQUENTIAL CIRCUIT DESIGN

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

Introduction to Microprocessor & Digital Logic

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Sequential Logic Circuits

SEQUENTIAL LOGIC. Sequential Logic

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Advanced Digital Logic Design EECS 303

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Sequential Design Basics

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

ECE 341. Lecture # 2

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Digital Integrated Circuit Design II ECE 426/526, Chapter 10 $Date: 2016/04/07 00:50:16 $

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Chapter 7 Sequential Circuits

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Hardware Design I Chap. 5 Memory elements

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Lecture 11: Sequential Circuit Design

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

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

Introduction to Sequential Circuits

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

IT T35 Digital system desigm y - ii /s - iii

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Lecture 21: Sequential Circuits. Review: Timing Definitions

INTRODUCTION TO SEQUENTIAL CIRCUITS

Lecture 7: Sequential Networks

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Sequential Circuits: Latches & Flip-Flops

Chapter 5 Synchronous Sequential Logic

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

Combinational vs Sequential

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

D Latch (Transparent Latch)

MODULE 3. Combinational & Sequential logic

Lecture 8: Sequential Logic

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Chapter 5: Synchronous Sequential Logic

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Synchronous Sequential Logic

Unit 11. Latches and Flip-Flops

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

Engr354: Digital Logic Circuits

CS8803: Advanced Digital Design for Embedded Hardware

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Clocking Spring /18/05

SEQUENTIAL CIRCUITS SEQUENTIAL CIRCUITS

Clock - key to synchronous systems. Lecture 7. Clocking Strategies in VLSI Systems. Latch vs Flip-Flop. Clock for timing synchronization

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Clock - key to synchronous systems. Topic 7. Clocking Strategies in VLSI Systems. Latch vs Flip-Flop. Clock for timing synchronization

ELCT201: DIGITAL LOGIC DESIGN

Rangkaian Sekuensial. Flip-flop

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

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

Digital Fundamentals: A Systems Approach

Introduction. Serial In - Serial Out Shift Registers (SISO)

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

6. Sequential Logic Flip-Flops

MUX AND FLIPFLOPS/LATCHES

CHAPTER 4: Logic Circuits

CHAPTER 1 LATCHES & FLIP-FLOPS

Unit-5 Sequential Circuits - 1

Design of a Low Power Four-Bit Binary Counter Using Enhancement Type Mosfet

CHAPTER 4: Logic Circuits

CPS311 Lecture: Sequential Circuits

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Review of Flip-Flop. Divya Aggarwal. Student, Department of Physics and Astro-Physics, University of Delhi, New Delhi. their state.

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Transcription:

EEC 118 Lecture #9: Sequential Logic Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

Outline Review: Static CMOS Logic Finish Static CMOS transient analysis Sequential MOS Logic Circuits: Rabaey, 7.1-7.3 (Kang & Leblebici, 8.1-8.5) Amirtharajah/Parkhurst, EEC 118 Spring 2010 3

Sequential Logic Basic Definition Combinational circuits output is a function of the circuit inputs and a delay time Examples: NAND, NOR, XOR, adder, multiplier Sequential circuits output is a function of the circuit inputs, previous circuit state, and a delay time Examples: Latches, flip-flops, FSMs, pipelined adders and multipliers, microprocessors Sequential elements are critical to implementing techniques such as feedback or blocks such as memory Amirtharajah/Parkhurst, EEC 118 Spring 2010 4

Sequential Logic Example: Mealy FSM In LOGIC t p,comb Out Φ Two information storage mechanisms Positive feedback-based (static) circuits Charge storage-based (dynamic) circuits Clock signal Φ controls timing of state (memory) updates Amirtharajah/Parkhurst, EEC 118 Spring 2010 5

Positive Feedback: Bistability V i1 V = V 2 o1 i2 V o A V = V i1 o2 V = V C (metastable) i2 o1 V = V i1 o2 Amirtharajah/Parkhurst, EEC 118 Spring 2010 6 B

Metastability A A V o1 =V i2 C V o1 =V i2 C B B δ V i1 =V o2 δ V i1 =V o2 Gain should be larger than 1 in the transition region Amirtharajah/Parkhurst, EEC 118 Spring 2010 7

Bistable Elements Bistable elements have two stable states or operation modes Cross-coupled inverters are the most basic bistable element Circuit forms the basis of latches and SRAM memory Stable points on the VTC are those with the lowest energy Points with high energy are unstable, perturbations are amplified Amirtharajah/Parkhurst, EEC 118 Spring 2010 8

Set-Reset (SR) Latch Change inverters to NAND or NOR gates, with second inputs = S(set) and R(reset) S S R R Allows control of the state of the bistable element One input state is not allowed Gating S and R with the clock prevents the latch from responding except during one phase of the clock cycle Amirtharajah/Parkhurst, EEC 118 Spring 2010 9

SR Latch Sequential circuits: circuits which store state : circuits with memory elements Latches: store previous output value for certain input combinations SR latch (NAND-based): S R not allowed memory S R next next 0 0 1 1 0 1 1 0 1 0 0 1 1 1 Amirtharajah/Parkhurst, EEC 118 Spring 2010 10

Clocked SR latch Other Latches Adds clock input. Latch output can only be set/reset when clk=1 (or clk=0) Other latch types: JK latch: Removes not allowed state e.g., toggles when inputs are both 1 T latch: Toggles when T input = 1 D latch: Output = D input Amirtharajah/Parkhurst, EEC 118 Spring 2010 11

Latch Circuits Many methods for implementing latches Standard CMOS gates (cross-coupled NAND, etc) Transmission gates Tri-state inverters en A en tri-state inverter F When en=0, F is floating, i.e. high impedance Amirtharajah/Parkhurst, EEC 118 Spring 2010 12

Positive Dynamic Transmission Gate Latch D I0 C 0 No feedback devices Data stored on input capacitance of inverter I0 Dynamic logic issues apply: leakage, capacitive coupling, charge sharing Amirtharajah/Parkhurst, EEC 118 Spring 2010 13

Transmission Gate Positive Static Latch D Amirtharajah/Parkhurst, EEC 118 Spring 2010 14

NMOS Pass Gate Positive Static Latch D VDD V Tn Fewer devices, less area, lower clock load Threshold drop on internal nodes implies more static power, less noise margin Amirtharajah/Parkhurst, EEC 118 Spring 2010 15

Master-Slave Flip-Flop By cascading two level-sensitive latches, one type of edge triggered flip-flop is created JK latch can be used for first stage so that no input combinations are invalid SR latch is then used for the second stage because inputs cannot be invalid Rather than using logic gate-based latches, can cascade latches such as above (e.g., transmission gate dynamic or static latches) Amirtharajah/Parkhurst, EEC 118 Spring 2010 16

Edge-Triggered Flip-Flops Types of latches/flip-flops: Level-sensitive: output is set when clock is a certain level (0 or 1) Edge-triggered: output can only be set on a clock edge (rising or falling) Advantages of edge-triggered flip-flops: Data only needs to be stable at clock edge Reduces race conditions: potential errors where an input data change travels through multiple latches during their transparent phase Amirtharajah/Parkhurst, EEC 118 Spring 2010 17

Dynamic Positive Edge-Triggered FF D I0 I1 C0 C1 No feedback devices Data stored on input capacitances of inverters I0 and I1 Dynamic logic issues apply: leakage, capacitive coupling, charge sharing Amirtharajah/Parkhurst, EEC 118 Spring 2010 18

Timing definitions: Clocked Circuit Timing Clock-to- or Propagation Delay (t clk ): delay of flip-flop from clock edge to output Setup Time (t setup ): amount of time before clock edge that data has to be stable. If data arrives after this time, it will not be latched correctly. Hold Time (t hold ): amount of time after clock edge that data has to be stable. It is possible to trade off setup and hold time with flip-flop circuit design Modify data and clock timing relationship by delaying one of the two signals Amirtharajah/Parkhurst, EEC 118 Spring 2010 19

Flip-Flop: Timing Definitions φ t In t setup t hold DATA STABLE t Out t pff DATA STABLE t From Digital Integrated Circuits Jan Rabaey Notes Amirtharajah/Parkhurst, EEC 118 Spring 2010 20

Maximum Clock Frequency In LOGIC t p,comb Out t pff + t p Φ + t < T =, comb setup Signals must propagate out of flip-flop, through combinational logic, and be stable before next clock edge (clock period = T, clock frequency = f) Amirtharajah/Parkhurst, EEC 118 Spring 2010 21 1 f

Staticized Dynamic Positive Edge-Triggered FF I1 I3 D I0 I2 C0 C1 Use weak feedback inverters to enhance robustness Returns to reduced clock load static flip-flop with same sizing issues Amirtharajah/Parkhurst, EEC 118 Spring 2010 22

Clock Overlap Failures B D A 1. Both high simultaneously, race condition from D to 2. Node A can be driven simultaneously by D and B Amirtharajah/Parkhurst, EEC 118 Spring 2010 23

Race Through and Feedback Paths B D A 1. Both high simultaneously, race condition from D to 2. Node A can be driven simultaneously by D and B Amirtharajah/Parkhurst, EEC 118 Spring 2010 24

Nonoverlapping Clocks Methodology PHI0 B D A PHI1 PHI1 PHI0 PHI0 PHI1 Guarantee nonoverlap period long enough Note: internal nodes left high Z during nonoverlap Amirtharajah/Parkhurst, EEC 118 Spring 2010 25

C 2 MOS Edge Triggered Flip-Flop D C0 C1 Tristate inverters eliminate clock overlap race condition Amirtharajah/Parkhurst, EEC 118 Spring 2010 26

Zero-Zero Overlap Condition Gnd Gnd D C0 C1 Both phases low simultaneously enables opposite nets Amirtharajah/Parkhurst, EEC 118 Spring 2010 27

High-High Overlap Condition D V DD V DD C0 C1 Both phases high simultaneously enables opposite nets Amirtharajah/Parkhurst, EEC 118 Spring 2010 28

C 2 MOS Design Clock overlap problems eliminated as long as rise and fall times remain fast Slow rise / fall times imply pullup and pulldown nets on simultaneously resulting in potential errors, static power Dynamic flip-flop style leaves output high Z Must take care when using since output wire could be exposed to many more noise sources than internal nodes Mix and match styles by using C 2 MOS as master and other types of latch as slave Clock load small, but potentially larger than transmission gate dynamic latches due to PMOS sizing Amirtharajah/Parkhurst, EEC 118 Spring 2010 29

Pipelining a REG a REG φ. log REG Out φ REG. REG log REG Out b REG φ φ b REG φ φ Non-pipelined version Pipelined version φ φ From Digital Integrated Circuits Jan Rabaey Notes Amirtharajah/Parkhurst, EEC 118 Spring 2010 30

Next Topic: Arithmetic Circuits Computing arithmetic functions with CMOS logic Half adder and full adder circuits Circuit architectures for addition Array multipliers Amirtharajah/Parkhurst, EEC 118 Spring 2010 31