Instructor: Alexander Stoytchev CprE 281: Digital Logic.

Slides:



Advertisements
Similar presentations
Chapter 6 -- Introduction to Sequential Devices. The Sequential Circuit Model Figure 6.1.
Advertisements

Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
ECE C03 Lecture 81 Lecture 8 Memory Elements and Clocking Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
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.
CENG 241 Digital Design 1 Lecture 8 Amirali Baniasadi
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
Digital Electronics Chapter 5 Synchronous Sequential Logic.
Sequential logic circuits. 2 Outline Sequential Circuit Models –Asynchronous –Synchronous Latches Flip-Flops.
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
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.
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.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
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.
Figure 7.1. Control of an alarm system. Memory element Alarm Sensor Reset Set OnOff 
COE 202: Digital Logic Design Sequential Circuits Part 1
Introduction to Sequential Logic Design Flip-flops.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
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.
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.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
Instructor: Alexander Stoytchev CprE 281: Digital 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.
Sequential logic circuits
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.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
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
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.
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.
Instructor: Alexander Stoytchev
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Chapter 6 -- Introduction to Sequential Devices
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
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Presentation transcript:

Instructor: Alexander Stoytchev CprE 281: Digital Logic

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

Administrative Stuff Homework 8 is due today

Review Lecture

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) Truth table Q a Q b R S (no change) SR Latch: Circuit and Truth Table [ Figure 5.4a,b from the textbook ] x1x1 x2x2 f NOR Gate NOR Gate Truth table (Undesirable)

Gated SR Latch

[ 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.5 from the textbook ] Gated SR Latch: Circuit Diagram, Characteristic Table, and Graphical Symbol (Undesirable)

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

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

[ Figure 5.7a,b from the textbook ] Gated D Latch: Circuit Diagram, Characteristic Table, and Graphical Symbol Note that it is now impossible to have S=R=1. When Clk=1 the output follows the D input. When Clk=0 the output cannot be changed.

t su t h Clk D Q [ Figure 5.8 from the textbook ] Setup and hold times for Gated D latch 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

(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 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

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

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 D Q Q D Q Q

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

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

T Flip-Flop

[ Figure 5.15a from the textbook ] T Flip-Flop

[ Figure 5.15a from the textbook ] T Flip-Flop Positive-edge-triggered D Flip-Flop

[ Figure 5.15a from the textbook ] T Flip-Flop What is this?

Q Q T D

Q Q T D += ?

T 0 1 D Q Q Clock T Flip-Flop

What is this? += ?

T D Q Q Clock T Flip-Flop

[ Figure 5.15a-c from the textbook ] T Flip-Flop (circuit, truth table and graphical symbol)

T Flip-Flop (How it Works) If T=0 then it stays in its current state If T=1 then it reverses its current state In other words the circuit “toggles” its state when T=1. This is why it is called T flip-flop.

JK Flip-Flop

[ Figure 5.16a from the textbook ] JK Flip-Flop D = JQ + KQ

[ Figure 5.16 from the textbook ] JK Flip-Flop JQ Q K 0 1 Qt1+  Qt  0 (b) Truth table(c) Graphical symbol J Qt  1 K D Q Q Q Q J Clock (a) Circuit K

JK Flip-Flop (How it Works) A versatile circuit that can be used both as a SR flip-flop and as a T flip flop If J=0 and S =0 it stays in the same state Just like SR It can be set and reset J=S and K=R If J=K=1 then it behaves as a T flip-flop

Questions?

THE END