Instructor: Alexander Stoytchev CprE 281: Digital Logic.

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

Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
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
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.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Flip-Flops, Registers, Counters, and a Simple Processor
EE2420 – Digital Logic Summer II 2013
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.
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
Nonlinear & Neural Networks LAB. CHAPTER 11 LATCHES AND FLIP-FLOPS 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered D Flip-Flop.
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.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
INTRODUCTION TO SEQUENCIAL CIRCUIT
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
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.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
Introduction to Sequential Logic Design Flip-flops.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Chap 4. Sequential Circuits
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Instructor: Alexander Stoytchev Presented by: Mohamed Selim (PhD Student) TA for Cpr E 281 CprE 281: Digital.
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
Synchronous Sequential Logic Part I
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.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
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.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
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.
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered.
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.
LATCHES AND FLIP-FLOPS
Instructor: Alexander Stoytchev
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Presentation transcript:

Instructor: Alexander Stoytchev CprE 281: Digital Logic

D Flip-Flops CprE 281: Digital Logic Iowa State University, Ames, IA Copyright © Alexander Stoytchev

Quick Review

[ Figure 5.2 from the textbook ] A simple memory element with NOT Gates x x x

A simple memory element with NAND Gates x x x

A simple memory element with NOR Gates x x x

Basic Latch

A simple memory element with NOR Gates

ResetSet

Reset SetQ [ Figure 5.3 from the textbook ] A memory element with NOR gates

[ Figure 5.3 & 5.4 from the textbook ] Two Different Ways to Draw the Same Circuit

SRQ a Q b /1 1/ (a) Circuit(b) Characteristic table Q a Q b R S (no change) Circuit and Characteristic Table for the Basic Latch [ Figure 5.4a,b from the textbook ]

SRQ a Q b /1 1/ (a) Circuit(b) Truth table Time R S Q a Q b Q a Q b ? ? (c) Timing diagram R S t 1 t 2 t 3 t 4 t 5 t 6 t 7 t 8 t 9 t 10 (no change) Timing Diagram for the Basic Latch with NOR Gates [ Figure 5.4 from the textbook ]

Gated SR Latch

Motivation The basic latch changes its state when the input signals change It is hard to control when these input signals will change and thus it is hard to know when the latch may change its state. We want to have something like an Enable input In this case it is called the “Clock” input because it is desirable for the state changes to be synchronized

[ Figure 5.5a from the textbook ] Circuit Diagram for the Gated SR Latch

This is the “gate” of the gated latch

Circuit Diagram for the Gated SR Latch Notice that these are complements of each other

[ Figure 5.5a-b from the textbook ] Circuit Diagram and Characteristic Table for the Gated SR Latch

[ Figure 5.5a,c from the textbook ] Circuit Diagram and Graphical Symbol for the Gated SR Latch

[ Figure 5.5c from the textbook ] Timing Diagram for the Gated SR Latch

S R Clk Q Q [ Figure 5.6 from the textbook ] Gated SR latch with NAND gates

S R Clk Q Q Gated SR latch with NAND gates In this case the “gate” is constructed using NAND gates! Not AND gates.

S R Clk Q Q Gated SR latch with NAND gates Also, notice that the positions of S and R are now swapped.

S R Clk = 1 Q Q Gated SR latch with NAND gates S R Finally, notice that when Clk=1 this turns into the basic latch with NAND gates, i.e., the SR Latch. 1 1

S R Clk Q Q Gated SR latch with NOR gates Gated SR latch with NAND gates

S R Clk Q Q Gated SR latch with NOR gates Gated SR latch with NAND gates Graphical symbols are the same

S R Clk Q Q Gated SR latch with NOR gates Gated SR latch with NAND gates Characteristic tables are the same (undesirable)

Gated D Latch

Motivation Dealing with two inputs (S and R) could be messy. For example, we may have to reset the latch before some operations in order to store a specific value but the reset may not be necessary depending on the current state of the latch. Why not just have one input and call it D. The D latch can be constructed using a simple modification of the SR latch.

[ Figure 5.7a from the textbook ] Circuit Diagram for the Gated D Latch

[ Figure 5.7a,b from the textbook ] Circuit Diagram and Characteristic Table for the Gated D Latch Note that it is now impossible to have S=R=1.

[ Figure 5.7a,b from the textbook ] Circuit Diagram and Characteristic Table for the Gated D Latch When Clk=1 the output follows the D input. When Clk=0 the output cannot be changed.

[ Figure 5.7a,c from the textbook ] Circuit Diagram and Graphical Symbol for the Gated D Latch

[ Figure 5.7d from the textbook ] Timing Diagram for the Gated D Latch

t su t h Clk D Q [ Figure 5.8 from the textbook ] Setup and hold times Setup time (t su ) – the minimum time that the D signal must be stable prior to the the negative edge of the Clock signal Hold time (t h ) – the minimum time that the D signal must remain stable after the the negative edge of the Clock signal

Master-Slave D Flip-Flop

Constructing a Master-Slave D Flip-Flop From Two D Latches MasterSlave

Constructing a Master-Slave D Flip-Flop From Two D Latches MasterSlave

Constructing a Master-Slave D Flip-Flop From Two D Latches MasterSlave

Constructing a Master-Slave D Flip-Flop From Two D Latches [ Figure 5.9a from the textbook ]

Constructing a Master-Slave D Flip-Flop From one D Latch and one Gated SR Latch (This version uses one less NOT gate) MasterSlave

Constructing a Master-Slave D Flip-Flop From one D Latch and one Gated SR Latch (This version uses one less NOT gate) MasterSlave

Edge-Triggered D Flip-Flops

Motivation In some cases we need to use a memory storage device that can change its state no more than once during each clock cycle.

(a) Circuit D Q Q MasterSlave D Clock Q Q D Q Q Q m Q s Clk [ Figure 5.9a from the textbook ] Master-Slave D Flip-Flop

D Q Q MasterSlave D Clock Q Q D Q Q Q m Q s Clk [ Figure 5.9a,b from the textbook ] Timing Diagram for the Master-Slave D Flip-Flop D Clock Q m QQ s =

D Q Q [ Figure 5.9c from the textbook ] Graphical Symbol for the Master-Slave D Flip-Flop

D Q Q [ Figure 5.9c from the textbook ] Graphical Symbol for the Master-Slave D Flip-Flop The > means that this is edge-triggered The small circle means that is is the negative edge

D Q Q MasterSlave D Clock Q Q D Q Q Q m Q s Clk Negative-Edge-Triggered Master-Slave D Flip-Flop Positive-Edge-Triggered Master-Slave D Flip-Flop D Q Q MasterSlave D Clock Q Q D Q Q Q m Q s Clk

Negative-Edge-Triggered Master-Slave D Flip-Flop Positive-Edge-Triggered Master-Slave D Flip-Flop D Q Q D Q Q

Other Types of Edge-Triggered D Flip-Flops

D Clock Q a Q b Q c D Q Q D Q Q D Q Q D Q a Q b Q c Q c Q b Q a Clk Comparison of level-sensitive and edge-triggered D storage elements

D Clock Q a Q b Q c D Q Q D Q Q D Q Q D Q a Q b Q c Q c Q b Q a Clk Comparison of level-sensitive and edge-triggered D storage elements Level-sensitive (the output mirrors the D input when Clk=1)

D Clock Q a Q b Q c D Q Q D Q Q D Q Q D Q a Q b Q c Q c Q b Q a Clk Comparison of level-sensitive and edge-triggered D storage elements Positive-edge-triggered

D Clock Q a Q b Q c D Q Q D Q Q D Q Q D Q a Q b Q c Q c Q b Q a Clk Comparison of level-sensitive and edge-triggered D storage elements Negative-edge-triggered

D Clock P4 P3 P1 P (a) Circuit D Q Q (b) Graphical symbol Clock Q Q 4 [ Figure 5.11 from the textbook ] A positive-edge-triggered D flip-flop

D Clock P4 P3 P1 P (a) Circuit D Q Q (b) Graphical symbol Clock Q Q 4 [ Figure 5.11 from the textbook ] A positive-edge-triggered D flip-flop This circuit behaves like a positive-edge-triggered D flip-flop, but it uses only 6 NAND gates. Thus, it can be implemented with fewer transistors than the master-slave D flip-flop.

[ Figure 5.12 from the textbook ] Master-slave D flip-flop with Clear and Preset

Positive-edge-triggered D flip-flop with Clear and Preset

[ Figure 5.13a from the textbook ] Positive-edge-triggered D flip-flop with Clear and Preset

[ Figure 5.13b,c from the textbook ] Positive-edge-triggered D flip-flop with Clear and Preset

[ Figure 5.14 from the textbook ] Flip-Flop Timing Parameters Setup time Hold time clock-to-Q propagation delay

Terminology Basic Latch – is a feedback connection of two NOR gates or two NAND gates, which can store one bit of information. It can be set using the S input and reset to 0 using the R input. Gated Latch – is a basic latch that includes input gating and a control input signal. The latch retains its existing state when the control input is equal to 0. Its state may be changed when the control signal is equal to 1. [ Section 5.7 in the textbook ]

Terminology Two types of gated latches (the control input is the clock): Gated SR Latch – uses the S and R inputs to set the latch to 1 or reset it to 0. Gated D Latch – uses the D input to force the latch into a state that has the same logic value as the D input. [ Section 5.7 in the textbook ]

Terminology Flip-Flop – is a storage element that can have its output state changed only on the edge of the controlling clock signal. Positive-edge triggered – if the state changes when the clock signal goes from 0 to 1. Negative-edge triggered – if the state changes when the clock signal goes from 1 to 0. [ Section 5.7 in the textbook ]

Terminology The word latch is mainly used for storage elements, while clocked devices are described as flip-flops. A latch is level-sensitive, whereas a flip-flop is edge- sensitive. That is, when a latch is enabled it becomes transparent, while a flip flop's output only changes on a single type (positive going or negative going) of clock edge. [

Questions?

THE END