CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.

Slides:



Advertisements
Similar presentations
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Advertisements

Give qualifications of instructors: DAP
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Sequential Logic Latches and Flip-Flops. Sequential Logic Circuits The output of sequential logic circuits depends on the past history of the state of.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
Sequential Logic Latches & Flip-flops
Circuits require memory to store intermediate data
EKT 124 / 3 DIGITAL ELEKTRONIC 1
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
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 Introduction
COE 202: Digital Logic Design Sequential Circuits Part 1
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Flip-flops. Outline  Edge-Triggered Flip-flops  S-R Flip-flop  D Flip-flop  J-K Flip-flop  T Flip-flop  Asynchronous Inputs.
Introduction to Sequential Logic Design Flip-flops.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
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.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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.
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.
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.
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.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
Dept. of Electrical Engineering
7. Latches and Flip-Flops Digital Computer Logic.
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.
UNIT 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in the book includes: Objectives.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
LATCHED, FLIP-FLOPS,AND TIMERS
Flip-FLops and Latches
Flip Flops.
Flip-Flop.
CS1104 – Computer Organization
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip-FLops and Latches
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Flip-FLops and Latches
Sequential logic circuits
Flip-FLops and Latches
Flip-FLops and Latches
FLIP-FLOPS.
Flip-Flops.
Flip-FLops and Latches
Presentation transcript:

CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops

Overview °Latches respond to trigger levels on control inputs Example: If G = 1, input reflected at output °Difficult to precisely time when to store data with latches °Flip flips store data on a rising or falling trigger edge. Example: control input transitions from 0 -> 1, data input appears at output Data remains stable in the flip flop until until next rising edge. °Different types of flip flops serve different functions °Flip flops can be defined with characteristic functions.

D Latch Q Q’ C D S’ R’ S R S R C Q Q’ Q 0 Q 0 ’ Store Reset Set Disallowed X X 0 Q 0 Q 0 ’ Store X 0 Q 0 Q 0 ’ D C Q Q’ °When C is high, D passes from input to output (Q)

Clocking Event Lo-Hi Lo-Hi edge Hi-Lo Hi-Lo edge °What if the output only changed on a C transition? C DQ Q’ X 0 Q 0 Q 0 ’ D C Q Q’ Positive edge triggered

Master-Slave D Flip Flop °Consider two latches combined together °Only one C value active at a time °Output changes on falling edge of the clock

D Flip-Flop D gets latched to Q on the rising edge of the clock. °Stores a value on the positive edge of C °Input changes at other times have no effect on output C DQ Q’ X 0 Q 0 Q 0 ’ D C Q Q’ Positive edge triggered

Clocked D Flip-Flop °Stores a value on the positive edge of C °Input changes at other times have no effect on output

Positive and Negative Edge D Flip-Flop °D flops can be triggered on positive or negative edge °Bubble before Clock (C) input indicates negative edge trigger Lo-Hi Lo-Hi edge Hi-Lo Hi-Lo edge

Positive Edge-Triggered J-K Flip-Flop 0  Q 0 Q 0 ’ 0 1  1 0  1  TOGGLE QJ Q’ CLK K °Created from D flop °J sets °K resets °J=K=1 -> invert output

Clocked J-K Flip Flop °Two data inputs, J and K °J -> set, K -> reset, if J=K=1 then toggle output Characteristic Table

Positive Edge-Triggered T Flip-Flop 0  Q 0 Q 0 ’ 1  TOGGLE Q Q’ C T °Created from D flop °T=0 -> keep current °K resets °T=1 -> invert current

Asynchronous Inputs J, K are synchronous inputs o Effects on the output are synchronized with the CLK input. Asynchronous inputs operate independently of the synchronous inputs and clock o Set the FF to 1/0 states at any time.

Asynchronous Inputs

Note reset signal (R) for D flip flop If R = 0, the output Q is cleared This event can occur at any time, regardless of the value of the CLK

Parallel Data Transfer °Flip flops store outputs from combinational logic °Multiple flops can store a collection of data

Summary °Flip flops are powerful storage elements They can be constructed from gates and latches! °D flip flop is simplest and most widely used °Asynchronous inputs allow for clearing and presetting the flip flop output °Multiple flops allow for data storage The basis of computer memory! °Combine storage and logic to make a computation circuit °Next time: Analyzing sequential circuits.