Sequential circuits Part 1: flip flops All illustrations  2009-2010, Jones & Bartlett Publishers LLC, (www.jbpub.com)

Slides:



Advertisements
Similar presentations
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.
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.
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Sequential Logic Building Blocks – Flip-flops
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Digital Logic Design ESGD2201
1 Fundamentals of Computer Science Sequential Circuits.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch:
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Introduction to Sequential Logic Design Bistable elements Latches.
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 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
1 CS 151: Digital Design Chapter 5: Sequential Circuits 5-3: Flip-Flops I.
CP208 Digital Electronics Class Lecture 11 May 13, 2009.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Digital Logic Design Lecture 22. Announcements Homework 7 due today Homework 8 on course webpage, due 11/20. Recitation quiz on Monday on material from.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
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.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
CS1Q Computer Systems Lecture 11 Simon Gay. Lecture 11CS1Q Computer Systems - Simon Gay2 The D FlipFlop A 1-bit register is called a D flipflop. When.
Chap 4. Sequential Circuits
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
CS 151: Digital Design Chapter 5: Sequential Circuits 5-3: Flip-Flops II.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
JK Flip-Flop. JK Flip-flop The most versatile of the flip-flops Has two data inputs (J and K) Do not have an undefined state like SR flip-flops – When.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
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.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.

Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Chapter5: Synchronous Sequential Logic – Part 1
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.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
LATCHED, FLIP-FLOPS,AND TIMERS
Digital Design Lecture 9
Chapter 11 Sequential Circuits.
Sequential logic circuits
LECTURE 15 – DIGITAL ELECTRONICS
CSE 370 – Winter Sequential Logic - 1
FLIP-FLOPS.
Sequential Digital Circuits
Presentation transcript:

Sequential circuits Part 1: flip flops All illustrations  , Jones & Bartlett Publishers LLC, (

Maintaining values over time Electronic signals (e.g. clock pulses) are transient In order for value to survive (be retained by receiving device), must be trapped & held after transient signal/connection broken So can’t build computer from combinational nets alone – such devices don’t retain info

Sequential networks Distinguishing characteristic: can maintain state, so output not solely dependent on input Sequential nets built from same gates as combinational – difference is presence in sequential device of feedback loop – output of gate can become input to same gate

Stable vs. unstable network Unstable: remains constant for only a few gate delays – suppose d=0; then a=0, b=1, c=0, d=1 – changed Stable: state retained indefinitely (or at least as long as power is on) – if c=0, then a=0, b=1, c=0 – no change

S-R latch S-R: Set-Reset Mechanism for holding signal in a device – bi-stable device: can maintain one of 2 stable conditions – when signal arrives, S-R latch is set – remains set until second signal arrives, making it unset

S-R latch Output depends on both input & state Normal input position condition for input latch is SR=00 To set or unset, change S or R to 1, then back to 0 (S & R never 1 at same time) Stable states: SRQQ’

Timing diagram for SR latch: 2 cycles Initial state: Q=0, Q’=1 a)S gets 1; Q=1, Q’=0; when S goes back to 0, output doesn’t change b)R gets 1; resets Q to 0, Q’ to 1 (initial state) c)S gets 1; sets Q to 1 d)1 to 0 transition in S; no change e)another reset; back to initial state

Clock pulses Signal sent at regular intervals Time between pulses called period of clock Shorter the period, faster the machine

Effect of clock pulse As machine executes Von Neumann cycle, states of all sequential devices change with time Machine maintains clock to synchronize these state changes (all occur simultaneously) Clock generates series of pulses – CP: clock pulse – Every sequential device has CP input along with other inputs S-R latch with CP: Flip-flop

Operation of sequential net t 0 : initial state t 1 : set (1) S – passes through OR gate; value point a – signal negated; b – since no signal has R, both R & b are false, so c is false – At point 2, signal negated, so Q is true – this result is fed back to lower OR-gate

Operation of sequential net t 2 : S ceases – no impact on flip-flop, since Q is true; so regardless of S value, OR-gate produces point a, b, c, Q – output of flip-flop remains available at Q

Flip-flop symmetry Provides mechanism for terminating set state Reset mechanism – R causes change at point c, Q=false – This cuts off support to bottom gate – signal now Q’, Q – If a second signal S before signal R, no change to outputs

Expanded view of clocked SR flip flop SR signals go through AND gates that act as enables: With CP=0, NOR inputs are 0 regardless of SR values, so latch won’t change state With CP=1, S & R pass through enable gates unchanged; device acts like SR described previously

Clock effect Evenly spaced clock pulses force state change to occur only at evenly spaced time intervals – clock makes time digital just as voltage made digital by electronic circuitry – state change can only occur at pulse, not between them

Level-sensitive flip-flop Latch responds to CP only when CP high Can cause problem when combined with combinational devices in feedback loop: can lead to unstable state every few gate delays Need: – SR constrained by CP – immune to further changes through feedback connection – sensitive to input for extremely short time period

Techniques for addressing level- sensitive flip flop problem Edge-triggered flip flop: sensitive to input only when clock is making transition from low to high Master-slave flip flop Diagram at left: timing detail of single clock pulse

Master-slave flip flop Combine 2 level sensitive, clocked SR flip flops – Q’ of master connects to R of slave – Q of master connects to S of slave – CP connects to enable of master – CP’ connects to enable of slave When slave is clocked, will be set or reset depending on state of master; slave takes state of master Threshold of gate: input value that causes change in output

Timing detail of single clock pulse t 1 : isolate slave from master – signal reaches threshold of master; inverter output goes 1 to 0 – slave now shielded from its own SR inputs t 2 : connect master to input – signal reaches threshold of master enable gates – master now sensitive to SR inputs, but change in master can’t affect slave

Timing detail of single clock pulse t 3 : isolate master from input – CP in high to low transition – master becomes insensitive to input – slave still isolated t 4 : connect slave to master – CP now below inverter threshold – output goes 0 to 1, slave now connected to master – slave assumes state of master

Master-slave flip flop

Timing diagram of master-slave SR flip flop Clock transition not instantaneous; gradually increase from V1 to V2, decreases through V2, V1 Change occurs in Q (state of slave latch) when slave is connected to master (at time t4 – during CP transition from hight to low

Representing flip flop states Flip flop is sequential, not combinatorial – can’t describe using truth table Alternatives: – Finite state machine – Characteristic table

Characteristic table Specifies state of device after one clock pulse for given input & initial state Similar to state transition table for FSM

Finite State Machine SR flip flop is FSM with 2 possible states (Q=0, Q=1) As FSM can characterize using state transition diagram