Changes in input values are reflected immediately (subject to the speed of light and electrical delays) on the outputs Each gate has an associated “electrical.

Slides:



Advertisements
Similar presentations
1 Introduction Sequential circuit –Output depends not just on present inputs (as in combinational circuit), but on past sequence of inputs Stores bits,
Advertisements

Sequential Logic ENEL 111. Sequential Logic Circuits So far we have only considered circuits where the output is purely a function of the inputs With.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Give qualifications of instructors: DAP
Sequential Logic Building Blocks – Flip-flops
Digital Design - Sequential Logic Design Chapter 3 - Sequential Logic Design.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Sequential circuits Part 1: flip flops All illustrations  , Jones & Bartlett Publishers LLC, (
1 Fundamentals of Computer Science Sequential Circuits.
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
Flip-Flops, Registers, Counters, and a Simple Processor
EE2420 – Digital Logic Summer II 2013
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.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
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.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
ECE 424 – Introduction to VLSI Design Emre Yengel Department of Electrical and Communication Engineering Fall 2014.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Digital Logic Design Lecture 23. Announcements Homework 8 due Thursday, 11/20 Exam 3 coming up on Tuesday, 11/25.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
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.
A State Element “Zoo”.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Test #2 Combinational Circuits – MUX Sequential Circuits – Latches – Flip-flops – Clocked Sequential Circuits – Registers/Shift Register – Counters – Memory.
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
COE 202: Digital Logic Design Sequential Circuits Part 1
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
SEQUENTIAL LOGIC By Tom Fitch. Types of Circuits Combinational: Gates Combinational: Gates Sequential: Flip-Flops Sequential: Flip-Flops.
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Sequential logic circuits
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Synchronous Sequential Logic Part I
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Chapter5: Synchronous Sequential Logic – Part 1
CSE 140: Components and Design Techniques for Digital Systems Lecture 7: Sequential Networks CK Cheng Dept. of Computer Science and Engineering University.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Dept. of Electrical Engineering
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
7. Latches and Flip-Flops Digital Computer Logic.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Digital Design - Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential Circuits: Latches
Sequential Circuits: Latches
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Sequential Circuits: Latches
FLIP-FLOPS.
Presentation transcript:

Changes in input values are reflected immediately (subject to the speed of light and electrical delays) on the outputs Each gate has an associated “electrical delay” Delays are often ignored for the purpose of the logic design (but not for the real implementation!) As soon as inputs change, the outputs change – no memory of what happened before  (at least conceptually) Combinational Logic

Latches & Flip-Flops

Example Needing Bit Storage Flight attendant call button  Press call: light turns on Stays on after button released  Press cancel: light turns off  Logic gate circuit to implement this? Q Call Cancel Doesn’t work. Q=1 when Call=1, but doesn’t stay 1 when Call returns to 0 Need some form of “feedback” in the circuit a a Bit Storage Blue light Call button Cancel button 1. Call button pressed – light turns on Bit Storage Blue light Call button Cancel button 2. Call button released – light stays on Bit Storage Blue light Call button Cancel button 3. Cancel button pressed – light turns off

First attempt at Bit Storage We need some sort of feedback  Does circuit on the right do what we want? No: Once Q becomes 1 (when S=1), Q stays 1 forever – no value of S can bring Q back to 0 Q S t Q t S 0 t 1 Q S 0 0 t 1 Q S 1 1 t 1 Q S 1 1 t 0 Q S 1

Basic NOR (SR) Latch When Set = 0, Reset = 1  Q = 0 When Set = 1, Reset = 0  Q = 1 When Set = Reset = 0  Q = memory When Set = Reset = 1  Q = 0 Reset SetQ

Basic NOR Latch Redrawn Q Q R S SRQQ 000/11/ memory state

Timing Analysis of Basic Latch  What happens at t 10 ?? S and R both go from 1 to 0 simultaneously If gate delays are exactly the same  oscillation!!! R S Q Q ? ? t 1 t 2 t 3 t 4 t 5 t 6 t 7 t 8 t 9 t 10 Q Q R S

Gated SR Latch  To get better control of the state changes, we must limit when the input signals affect the outputs  Outputs change only when Clk = 1 Clk acts as an Enable signal Q Q R S Clk SRQ(t+1) 0xxQ(t) x undefined since we don't know which stable state will result

Comments on Latches  Need to avoid the unstable state Note that all other states have “correct” Q and Q  Can use the cross-coupled NOR approach, or can use the cross-coupled NAND approach All gates are the same type S R Clk Q Q S Q Q R

Gated D Latch  Provide only a single control signal D (for Data) More common than SR latch, and simpler Q S R Clk D (Data) Q ClkDQ(t+1) 0xQ(t) D Q QClk

D Latch Timing Diagram  Output Q changes only when Clk = 1 Q tracks D when Clk = 1  This latch is level-sensitive since the output is sensitive to the level of the clock t 1 t 2 t 3 t 4 Time Clk D Q

Master-Slave D Flip-Flop  Desire to remove the level-sensitive nature Want changes in Q only on the transition of the Clk signal from 1  0 (or from 0  1) When Clock = 1, master D latch tracks D; slave D latch remains unchanged (Q remains fixed) When Clock = 0, master D latch is unchanged; slave D latch tracks Q m D Q Q MasterSlave D Clock Q Q D Q Q Q Clk D Q Q negative edge-triggered flip-flop

Timing of Master-Slave D Flip-Flop Changes to Q occur only on the negative edge of the Clock D Q Q MasterSlave D Clock Q Q D Q Q Q m Q s Clk D Clock Q m QQ s =

Terms, Reviewed  Latch Two NANDs (or NORs) used to store one bit  Gated latch Latch with an control enable, called Clk Two basic types: SR and D, both level sensitive  Master-slave flip-flop State changes only on clock edge; made from two gated D latches

Registers  A flip-flop stores one bit of information  When you want to store n bits  register n flip-flops used Clock is shared by all so action is synchronous with clock edge  Some common register types Simple register Shift register Parallel access shift register Lots of counters: up counter, down counter, BCD counter, ring counter, Johnson counter

Simple 4-bit Register  A standard 4 bit register using D flip flops Q 3 Q 2 Q 1 Q 0 Clock Parallel input Parallel output D Q Q D Q Q D Q Q D Q Q

4-bit Register with Load Control  Controlling the load capability Q 3 Q 2 Q 1 Q 0 Clock Parallel input Parallel output D Q Q D Q Q D Q Q D Q Q Load