1 A latch is a pair of cross-coupled inverters –They can be NAND or NOR gates as shown –Consider their behavior (each step is one gate delay in time) –From.

Slides:



Advertisements
Similar presentations
Registers Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens A clock is a free-running signal with a cycle time. A clock may.
Advertisements

Q R Flip Flops ATS 電子部製作 S Q For a NOR gate, the output would be logic 1 only when both the inputs are 0 : AB F A B F.
Finite State Machines (FSMs)
1 Introduction Sequential circuit –Output depends not just on present inputs (as in combinational circuit), but on past sequence of inputs Stores bits,
Computer Science 210 Computer Organization Clocks and Memory Elements.
1 Sequential Ckts, Latches and Timing Issues Today: Sequential Circuits, LatchesFirst Hour: Sequential Circuits, Latches –Section of Katz’s Textbook.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
1 SEQUENTIAL CIRCUITS DEFINITION OF SEQUENTIAL CIRCUIT SYNCHRONOUS SEQUENTIAL CIRCUIT ASYNCHRONOUS SEQUENTIAL CIRCUIT MEMORY ELEMENTS CLASSIFICATION: LATCHES.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
K-Maps, Timing Sequential Circuits: Latches & Flip-Flops Lecture 4 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier,
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
Digital Logic Circuits (Part 2) Computer Architecture Computer Architecture.
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
Assume array size is 256 (mult: 4ns, add: 2ns)
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
ENGIN112 L28: Timing Analysis November 7, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 28 Timing Analysis.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Sequential Logic 1  Combinational logic:  Compute a function all at one time  Fast/expensive  e.g. combinational multiplier  Sequential logic:  Compute.
Embedded Systems Hardware:
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
CS 151 Digital Systems Design Lecture 28 Timing Analysis.
A presentation on Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
COE 202: Digital Logic Design Sequential Circuits Part 1
Lecture 5. Sequential Logic 3 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
Rabie A. Ramadan Lecture 3
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
1 A counter counts Number of elements in counter determines how many different states we need For example, an eight-state counter can count eight steps.
Sequential Networks: Timing and Retiming
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Dr. Clincy Professor of CS
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Computer Architecture & Operations I
Chapter #6: Sequential Logic Design
Clocks A clock is a free-running signal with a cycle time.
Computer Architecture & Operations I
Timing issues.
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
FIGURE 5.1 Block diagram of sequential circuit
Flip-Flop.
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Latches, Flip-Flops and Registers
Computer Science 210 Computer Organization
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Yee-Wing Hsieh Steve Jacobs
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Satish Pradhan Dnyanasadhana college, Thane
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
Computer Science 210 Computer Organization
CSE 370 – Winter Sequential Logic - 1
1) Latched, initial state Q =1
Flip-Flops.
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
SEQUENTIAL CIRCUITS __________________________________________________
Week 11 Flip flop & Latches.
Presentation transcript:

1 A latch is a pair of cross-coupled inverters –They can be NAND or NOR gates as shown –Consider their behavior (each step is one gate delay in time) –From R and S to P and Q stable condition is reached in three gate delays Delays in Latches R S Q P R S Q P

2 G acts as a control signal in a gated latch –G = 0 means no writing, G = 1 allows writing In an edge-triggered flip-flop, data is written in flip-flop upon arrival of a clock edge This is achieved by connecting two gated latches as shown Actual implementation may be slightly different, concept is same Delays in Gated-Latch and Flip-Flops G D Q P G DQ P C D G DQ P R S Q P D G R S Q P D G R S Q P D G C D

3 When C is low, second gated latch does not record anything, but the first latch samples the D-input Before the clock changes from low to high –Changes in D propagate through many gates to output. Therefore D should be stable for at least five gate delays –This represents the set up time of a flip flop When clock changes from low to high –The first latch may still sample up to two gate delay time. Therefore, D should remain stable even after clock changes –This is called the hold time of a flip flop Timing Issues in D Flip-flops R S Q P D G R S Q P D G C D

4 The blocks of a Moore machine are shown below Next state logic determines the next state based on current state and next input Output logic determines the output based on current state From rising edge, stored state is stable after four gate delays Next state logic may take 2 or more gate delay worth of time –This is called contamination time, the minimum time taken for output to change after input changes And then input to latches must remain stable for set up time Timing in a State machine Next State Logic INPUTSINPUTS Output Logic OUTPUTSOUTPUTS

5 Consider a four states system State transition table, implementation level state transition table, output table, and implementation level output tables are Using the logic equations below, combination logic takes two gate delay Example S0S1S2S3 L2 = XY+XY = XX := XY+XY L1 = XY+XY = YY := XY+XY = Y L0 = XY+XY+XY+XY = X+X = 1

6 A combination circuit has –Contamination delay (t cd ) -- Minimum delay before output starts to change 2 to 3 gate delays (depends on # of levels) –Propagation delay (t pd ) -- Maximum delay after which all outputs are stable once input change A flip-flop has set up time -- about 5 gate delay A flip-flop has hold time -- minimum time for which input to latch should not change after a clock edge -- about 2 gate delay A flip-flops propagation delay is time from clock edge to time at which its output is stable. Clock low time > set up time Clock high time > FF Prop Clock time > FF Prop + compute + set up time Recap All Delays FF Hold Time FF Propagation Time FF Set up Time Compute Time

7 Computing contamination delay (t cd ) and propagation delay (t pd ) of a combinational circuit –It depends on various paths in the circuit –We need to find the shortest path for contamination and longest path for propagation For the circuit given below –Contamination delay = …. –Propagation delay = ….. Clock cycle time must allow for propagation delay of circuit, set up time of FF, and propagation time of FF Contamination time of combinational circuit must be lower than hold time of FF Clock Cycles T cd = 2 T pd = 5 T cd = 5 T pd = 10 T cd = 2 T pd = 5 T cd = 2 T pd = 5 T cd = 2 T pd = 5 T cd = 2 T pd = 5 T cd = 2 T pd = 8

8 Clock cycles are determined based on timing considerations Circuit runs at clock speed of f Corresponding clock cycle time (period) is T = 1/f Or f = 1/T A frequency of 1MHz gives a clock cycle time of 1 micro second A frequency of 500MHz gives a clock period of 2 nano second Let –T be the clock period –t pd be the propagation time of combinational circuit –t cd be the contamination time of combinational circuit –t rd be the propagation time of FF (register) circuit –t st be the set up time of FF (register) circuit –t ht be the hold time of FF (register) circuit Speed of the circuit and clock frequency

9 What is the minimum clock period? –T = t pd + t rd + t st By how long must any change in external inputs precede the next clock edge? –t pd + t st How long after the clock edge must the external inputs be held valid? –t ht - t cd what is the smallest time after the clock edge that external outputs can be expected to be valid? –t rd + t pd Some Relationships in state machine times