Sequential vs. Combinational

Similar documents
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ELCT201: DIGITAL LOGIC DESIGN

Synchronous Sequential Logic

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

Chapter 7 Sequential Logic

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

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

Chapter #6: Sequential Logic Design

Topic 8: Sequential Circuits

Sequential Circuit Analysis

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Overview of Chapter 4

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Sequential Logic Circuits

Chapter 14 Sequential logic, Latches and Flip-Flops

Introduction to Digital Logic

Chapter 4. Sequential Logic Circuits

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

P2 (10 points): Given the circuit below, answer the following questions:

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Topic 8: Sequential Circuits. Bistable Devices. S-R Latches. Consider the following element. Readings : Patterson & Hennesy, Appendix B.4 - B.

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

Integrated Circuits & Systems

Using the NOT realization from the NAND, we can NOT the output of the NAND gate making it a NOT NOT AND or simply an AND gate.

Synchronous Sequential Circuit

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

I. Motivation & Examples

Gates and Flip-Flops

Fundamentals of Digital Design

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

CHAPTER 9: SEQUENTIAL CIRCUITS

ELEN Electronique numérique

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

EET 310 Flip-Flops 11/17/2011 1

ALU, Latches and Flip-Flops

EE141- Spring 2007 Digital Integrated Circuits

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

Chapter 5 Synchronous Sequential Logic

Sequential Circuits Sequential circuits combinational circuits state gate delay

Digital Electronics Sequential Logic

Lecture 9: Sequential Logic Circuits. Reading: CH 7

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

MODULE 5 Chapter 7. Clocked Storage Elements

Problem Set 9 Solutions

Different encodings generate different circuits

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Fundamentals of Computer Systems

Chapter 9 Asynchronous Sequential Logic

Digital Design. Sequential Logic

ELE2120 Digital Circuits and Systems. Tutorial Note 9

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

Digital Integrated Circuits A Design Perspective

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Digital Circuits ECS 371


MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Sample Test Paper - I

I. Motivation & Examples

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

Sequential Logic Worksheet

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Latches. October 13, 2003 Latches 1

CS221: Digital Design. Indian Institute of Technology Guwahati

Digital Integrated Circuits A Design Perspective

Chapter 5 Synchronous Sequential Logic

UMBC. At the system level, DFT includes boundary scan and analog test bus. The DFT techniques discussed focus on improving testability of SAFs.

Digital Electronics Circuits 2017

GMU, ECE 680 Physical VLSI Design

PGT104 Digital Electronics. PGT104 Digital Electronics

9/18/2008 GMU, ECE 680 Physical VLSI Design

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Chapter 13. Clocked Circuits SEQUENTIAL VS. COMBINATIONAL CMOS TG LATCHES, FLIP FLOPS. Baker Ch. 13 Clocked Circuits. Introduction to VLSI

Digital Integrated Circuits A Design Perspective

Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic. November Digital Integrated Circuits 2nd Sequential Circuits

Lecture 7: Sequential Networks

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

Lecture 3 Review on Digital Logic (Part 2)

Synchronous Sequential Logic Part I

6. Finite State Machines

Adders, subtractors comparators, multipliers and other ALU elements

Synchronous 4 Bit Counters; Binary, Direct Reset

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

University of Minnesota Department of Electrical and Computer Engineering

CPE100: Digital Logic Design I

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates

Fundamentals of Boolean Algebra

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

Fundamentals of Computer Systems

Module - 19 Gated Latches

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

5. Sequential Logic x Computation Structures Part 1 Digital Circuits. Copyright 2015 MIT EECS

EE 209 Logic Cumulative Exam Name:

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

DIGITAL LOGIC CIRCUITS

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Transcription:

Sequential Circuits

Sequential vs. Combinational Combinational Logic: Output depends only on current input TV channel selector (-9) inputs system outputs Sequential Logic: Output depends not only on current input but also on current state of the system (which depends on past input values) TV channel selector (up-down) Need some type of memory to remember the current state 2

Sequential Logic Sequential Logic circuits Remember past inputs and past circuit state. Outputs from the system are fed back as new inputs. The storage elements are circuits that are capable of storing binary information: memory. 3

Feedback Loop Feedback: A signal s depends on another signal whose value depends on s (perhaps with several intermediate signals). s 4

Base of Memory Consider the following circuit: It can differentiate between two different states as it has only one feedback line that can keep one of two values, or. A circuit with n feedback lines has 2 n potential states, and that the memory of our circuit depends on the number of its feedback lines: 5

Synchronous vs. Asynch. Synchronous sequential circuit: the behavior can be defined from knowledge of its signal at discrete instants of time. achieves synchronization by using a timing signal called the clock. Asynchronous sequential circuit: the behavior is dependent on the order of input signal changes over continuous time, and output can change at any time (clockless). 6

Clock Signal Rising Clock Edge Clock generator: Periodic train of clock pulses Different duty cycles Falling Clock Edge 7

Clock Signal Clock is distributed throughout the whole design All components synchronizes itself with it. 8

Synchronous Circuits Combinational Logic clk time 9

SR latch (NOR version) R Q R S S Q Truth Table: Next State = F(S, R, Current State) S(t) R(t) Q(t) Q(t+) (hold) (Hold) (reset) (reset) (set) (set) Not allowed Not allowed

SR Latch Truth Table: Next State = F(S, R, Current State) Derived K-Map: S(t) R(t) Q(t) Q(t+) (hold) (Hold) (reset) (reset) (set) (set) Not allowed Not allowed Characteristic Equation: S R R-S Latch Q+ Q+ = S + R Q t Q

R=S=?? Illegal output, because When S=R=, both outputs go to zero. If both inputs now go to, the state of the SR flip flop is depends on which input remains a longer before making transition to. Hence, undefined state. MUST be avoided. 2

Timing Diagram Reset Hold Set Reset Set Race R S Q Q Forbidden State Forbidden State 3

Timing Diagram of SR Latch 4

SR Latch State Diagram Observed State Diagram Q Q Q Q Q Q Very difficult to observe R-S Latch in the - state Ambiguously returns to state - or - 5

S R Latch (NAND version) S R Q Q S R Q Q Set S R R-S Latch Q Q X Y NAND 6

S R Latch (NAND version) S R Q Q S R Q Q Set Hold X Y NAND 7

S R Latch (NAND version) S R Q Q S R Q Q Set Reset Hold X Y NAND 8

S R Latch (NAND version) S R Q Q X Y NAND S R Q Q Set Reset Hold Hold 9

S R Latch (NAND version) S R Q Q X Y NAND S R Q Q Disallowed Set Reset Hold Hold 2

SR Latch with Control (Enable) S S Q C R R Q S R C S R Q Q Q Q Store Reset Set Disallowed X X Q Q Store 2

D Latch S-R latches are useful in control applications, where we often think in terms of setting a flag in response to some condition, and resetting it when conditions change We often need latches simply to store bits presented on a signal line D latch Can eliminate the undesirable indeterminate state in the RS flip flop: ensure that inputs S and R are never simultaneously. This is done in the D latch: D C D Latch Q Q 22

D Latch (cont.) D S S Q C R R Q D C Q Q X Q Q S R C Q Q Q Q Store Reset Set Disallowed X X Q Q Store 23

D Latch Timing Diagram D C D Latch Q Q C 24

D-Latch Circuit D C D Latch Q Q C D Q Q+ C D Q Q C D Q+ = C.Q + C.D 25

D Latch with Transmission Gates 2 C= TG closes and TG2 opens Q =D and Q=D C= TG opens and TG2 closes Hold Q and Q 26

JK Latch J Q J, K both one yields toggle K Q J(t) K(t) Q(t) Q(t+) (hold) (Hold) (reset) (reset) (set) (set) (toggle) (toggle) J K Q Q Derived K-Map: JK Q ( t ) J-K Latch K Characteristic Equation: Q+ = Q K + Q J J 27

JK Latch Using SR Latch How to eliminate the forbidden state in SR? Idea: use output feedback to guarantee that R and S are never both one J, K both one yields toggle J K S R R-S latch Q Q Q Q J(t) K(t) Q(t) Q(t+ ) HOLD RESET SET Characteristic Equation: Q+ = Q K + Q J TOGGLE 28

JK Latch Race Condition Set Reset Toggle Toggle Correctness: Single State change per clocking event Solution: Master/Slave Flipflop 29

Flip-Flops Latches are transparent (= any change on the inputs is seen at the outputs immediately). This causes synchronization problems! Solution: use latches to create flipflops that can respond (update) ONLY on SPECIFIC times (instead of ANY time). 3

Alternatives in FF choice Type of FF RS D JK T 3

D-FF Timing for D Flip-Flop (Falling-Edge Trigger) Truth table 32

Symbols 33

Compare 3 Types 34

Rising Edge D-FF What About Falling-Edge Circuit? 35

Setup & Hold Time and Propagation Delay Setup time: D input must be stable for a certain amount of time before the active edge of clock cycle Hold time: D input must be stable for a certain amount of time after the active edge of the clock Propagation Delay (Clock-to-Output): from the time the clock changes to the time the output changes Propagation Delay (Data-to-Output): from the time the data changes to the time the output changes 36

Setup & Hold Time and Propagation Delay Setup and Hold Times for an Edge-Triggered D Flip-Flop t plh may be different from t phl t p clock-to-output vs. t p D-to-output 37

Timing Parameters of a D-Latch t su not met in D-latch there may be SR-like metastability. 38

Edge-Triggered D Flip-Flop Determination of Minimum Clock Period 39

Master-Slave FF configuration using SR latches Enables level-triggered behavior 4

S R CLK Q Q Master-Slave FF configuration using SR latches (cont.) Q Q Store Reset Set Disallowed X X Q Q Store When C=, master is enabled and stores new data, slave stores old data. When C=, master s state passes to enabled slave (Q=Y), master not sensitive to new data (disabled). Master Slave 4

Master-Slave J-K Flip-Flop 42

Master-Slave J-K Flip-Flop P P Sample inputs while clock high J Sample inputs while clock low Uses time to break feedback path from outputs to inputs! 's Set Reset Catch T oggle K C P P Q Q Master outputs Slave outputs Correct Toggle Operation 43

Edge-Triggered FF 's Catching: a -- glitch on the J or K inputs leads to a state change! forces designer to use hazard-free logic Solution: edge-triggered logic Negative Edge-Triggered D flipflop 4-5 gate delays setup, hold times necessary to successfully latch the input Negative edge-triggered FF when clock is high Characteristic Equation: Q+ = D 44

T Flip-Flop T Flip-Flop Timing Diagram for T Flip-Flop (Falling-Edge Trigger) 45

Implementation of T-FF Implementation of T Flip-Flop 46

FFs with Additional Inputs D Flip-Flop with Clock Enable The characteristic equation : The MUX output : 47

Asynchronous Preset/Clear Many times it is desirable to asynchronously (i.e., independent of the clock) set or reset FFs. D S Q Example: At power-up to that we can start from a known state. C R Q Asynchronous set == direct set == Preset Asynchronous reset == direct reset == Clear There may be synchronous preset and clear. 48

Asynchronous Set/Reset S J K R C IEEE standard graphics symbol for JK- FF with direct set & reset Cn indicates that Cn controls all other inputs whose label starts with n. In this case, C controls J and K. Function Table S R C J K Q(t+) X X X Preset X X X Clear X X X Undefined Q(t) Hold Reset Set Q(t) -- Complement 49

Asynchronous Inputs 5

Synchronous Reset 5