Flip-Flops and Registers

Slides:



Advertisements
Similar presentations
Flip-Flops and Registers
Advertisements

Chapter 13 Shift Registers
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.
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Chapter 6 -- Introduction to Sequential Devices
Sequential Logic Building Blocks – Flip-flops
Flip-Flops Basic concepts. 1/50A. Yaicharoen2 Flip-Flops A flip-flop is a bi-stable device: a circuit having 2 stable conditions (0 or 1) 3 classes of.
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
Digital Logic Chapter 5 Presented by Prof Tim Johnson
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 circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
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 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
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.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
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.
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D. 4/10/2002.
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.
Flip-Flops and Related Devices
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.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
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.
Chap 4. Sequential Circuits
ENG241 Digital Design Week #6 Sequential Circuits (Part A)
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
D Latch Delay (D) latch:a) logic symbolb) NAND implementationc) NOR implementation.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
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.
Introduction to Sequential Logic
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 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
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
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
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.
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.
Ch.5 Flip Flops and Related Devices
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.
©2010 Cengage Learning SLIDES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
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.
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.
LATCHES AND FLIP-FLOPS
LATCHED, FLIP-FLOPS,AND TIMERS
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Flip-Flop.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
LECTURE 15 – DIGITAL ELECTRONICS
FLIP-FLOPS.
Presentation transcript:

Flip-Flops and Registers 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. Compare the operation of D latches and D flip-flops by using timing diagrams. Describe the difference between pulse-triggered and edge-triggered flip-flops. 2

Objectives (Continued) Explain the theory of operation of master-slave devices. Connect IC J-K flip-flops as toggle and D flip-flops. Use timing diagrams to illustrate the synchronous and asynchronous operation of J-K flip-flops. Use VHDL to design flip-flops for CPLD implementation. 3

S-R Flip-Flop Data storage circuit Cross-coupled NOR scheme Asynchronous set and reset 4

S-R Flip-Flop Function table 5

S-R Flip-Flop Cross-coupled NAND scheme 6

S-R Flip-Flop Function table 7

S-R Flip-Flop Both true and complemented Q outputs Symbols for a S-R FF 8

S-R Flip-Flop Timing Analysis 9

S-R Flip-Flop Application Storage register to remember time of day when a temperature limit switch goes high. 11

Gated S-R Flip-Flop Asynchronous – output responds immediately to input Synchronous – output responds in step with a control input 13

Gated S-R Flip-Flop Function table and symbol 14

Gated D Flip-Flop Data flip-flop with example inputs and outputs 15

Discussion Point How will the complement of an output differ from the output? Explain the difference between synchronous and asynchronous inputs. 16

D Latch: 7475 IC; VHDL Description Four transparent D latches Logic symbol and pin configuration 17

D Latch: 7475 IC; Function table shows that Q output follows D (transparent) if enable line is HIGH. When E is low, Q is latched to prior value of D. 17

VHDL Description of a D Latch Block design file

VHDL Description of a D Latch VHDL design file

VHDL Description of a D Latch Simulation file

D Flip-Flop: 7474 IC VHDL Description Positive edge-triggered device Transitions of output occur at the rising edge of input trigger pulse Clock signal usually used as trigger pulse instead of an enable line 19

7474 Integrated Circuit D Flip-Flop Logic symbol and pin configuration 20

Integrated Circuit D Flip-Flop Positive edge-detection circuit 21

Integrated Circuit D Flip-Flop Synchronous inputs D (Data) Cp (Clock) Asynchronous inputs SD (Set) RD (Reset) Setup Time D must be stable before transition of Cp 22

Integrated Circuit D Flip-Flop 22

VHDL Description of a D Flip-Flop Block design file 22

VHDL Description of a D Flip-Flop Listing file 22

VHDL Description of a D Flip-Flop Flow chart 22

VHDL Description of a D Flip-Flop Simulation file 22

Master-Slave J-K Flip-Flop Toggle mode Switches to opposite state at active clock edge Master-slave Master receives data while input trigger is HIGH Slave receives data from master and outputs it when clock goes LOW 24

Master-Slave J-K Flip-Flop Function Table 25

Master-Slave J-K Flip-Flop Equivalent circuit and logic symbol 26

Master-Slave J-K Flip-Flop Enable/disable operation of the CP line 27

Master-Slave J-K Flip-Flop Pulse-triggered (level-triggered) Input data are read during entire time clock pulse is at a HIGH level Noise can appear on J and K while CP is high Called “Ones catching” Eliminated by newer designs using edge triggering 27

Edge-Triggered J-K Flip-Flop Accepts data on the J and K inputs only at the active clock edge Symbols for positive and negative edge triggered J-K FFs 28

Edge-Triggered J-K Flip-Flop Function Table 29

VHDL Description of an Edge-Triggered J-K Flip-Flop Block design file 29

VHDL Description of an Edge-Triggered J-K Flip-Flop VHDL design file 29

VHDL Description of an Edge-Triggered J-K Flip-Flop Flowchart 29

VHDL Description of an Edge-Triggered J-K Flip-Flop Simulation file 29

Discussion Point How are pulse triggered (level triggered) devices different from edge triggered devices? What is ones catching? Identify the synchronous and asynchronous inputs on a JK flip-flop logic symbol 30

Integrated Circuit J-K Flip-Flop 7476 – positive pulse-triggered 74LS76 - negative edge-triggered Logic symbol and pin configuration 31

Integrated Circuit J-K Flip-Flop 31

Integrated Circuit J-K Flip-Flop To form a D flip-flop add an inverter 33

Integrated Circuit J-K Flip-Flop To form a toggle flip-flop tie inputs HIGH 34

Using an Octal D Flip-Flop in a Microcontroller Application Octal ICs - eight on a chip 8-bit register 74HCT273 logic diagram 35

Using an Octal D Flip-Flop in a Microcontroller Application The 74HCT273 as an update and hold register Figure 10-45 36

Altera’s LPM Flip-Flop Quartus II provides a general-purpose flip-flop called LPM_F Found in Library of Parameterized Modules subdirectory /megafunctions/storage Can be used to implement several types of flip-flops

Altera’s LPM Flip-Flop LPM D flip-flop block design file

Altera’s LPM Flip-Flop LPM D flip-flop simulation file

Altera’s LPM Flip-Flop LPM octal D flip-flop block design file

Altera’s LPM Flip-Flop LPM octal D flip-flop simulation file

Summary The S-R flip-flop is a single-bit data storage circuit that can be constructed using basic gates. Adding gate enable circuitry to the S-R flip-flop makes it synchronous. This means that it will operate only under the control of a clock or enable signal. 37

Summary The D flip-flop operates similar to the S-R, except it has only a single data input, D. The 7475 is an integrated-circuit D latch. The output (Q) follows D while the enable (E) is HIGH. When E goes LOW, Q remains latched. 38

Summary The 7474 is an integrated-circuit D flip-flop. It has two synchronous inputs, D and Cp, and two asynchronous inputs, SD and RD. Q changes to the level of D at the positive edge of Cp. Q responds immediately to the asynchronous inputs regardless of the synchronous operations. 39

Summary The J-K flip-flop differs from the S-R flip-flop because it can also perform a toggle operation. Toggling means that Q flips to its opposite state. The master-slave J-K slip-flop consists of two latches: a master that receives data while the clock trigger is HIGH, and a slave that receives data from the master and outputs it to Q when the clock goes LOW. 40

Summary The 74LS76 is an edge-triggered J-K flip-flop IC. It has synchronous and asynchronous inputs. The 7476 is similar, except it is a pulse-triggered master-slave type. The 74HCT273 is an example of an octal D flip-flop. It has eight D flip-flops in a single IC package, making it ideal for microprocessor applications. 41

Summary The Quartus II software provides a general-purpose flip-flop in the LPM subdirectory that can be used to implement multi-bit D and toggle flip-flops. 41