ELE2120 Digital Circuits and Systems. Tutorial Note 7

Similar documents
Other Flip-Flops. Lecture 27 1

Unit 11. Latches and Flip-Flops

Logic Design. Flip Flops, Registers and Counters

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

ECE 341. Lecture # 2

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

D Latch (Transparent Latch)

ELCT201: DIGITAL LOGIC DESIGN

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Introduction to Sequential Circuits

Chapter. Synchronous Sequential Circuits

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

RS flip-flop using NOR gate

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

CHAPTER 11 LATCHES AND FLIP-FLOPS

Sequential Circuits: Latches & Flip-Flops

CHAPTER 1 LATCHES & FLIP-FLOPS

ELCT201: DIGITAL LOGIC DESIGN

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

MC9211 Computer Organization

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Synchronous Sequential Logic

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Engr354: Digital Logic Circuits

RS flip-flop using NOR gate

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

INTRODUCTION TO SEQUENTIAL CIRCUITS

LATCHES & FLIP-FLOP. Chapter 7

Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic

Part II. Chapter2: Synchronous Sequential Logic

Sequential Design Basics

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Chapter 5 Sequential Circuits

CHAPTER 4: Logic Circuits

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

CHAPTER 4: Logic Circuits

Lecture 8: Sequential Logic

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Synchronous Sequential Logic

Synchronous Sequential Logic. Chapter 5

Sequential Logic Circuits

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Chapter 8 Sequential Circuits

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Last time, we saw how latches can be used as memory in a circuit

Synchronous Sequential Logic

Combinational vs Sequential

Digital Circuits ECS 371

Switching Circuits & Logic Design

6. Sequential Logic Flip-Flops

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

Chapter 4. Logic Design

UNIT IV. Sequential circuit

Digital Logic Design ENEE x. Lecture 19

Vignana Bharathi Institute of Technology UNIT 4 DLD

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

Flip-Flops and Sequential Circuit Design

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

CPS311 Lecture: Sequential Circuits

LAB 7. Latches & Flip Flops

Module -5 Sequential Logic Design

DIGITAL CIRCUIT COMBINATORIAL LOGIC

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Chapter 5 Synchronous Sequential Logic

Chapter 11 Latches and Flip-Flops

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

CHAPTER1: Digital Logic Circuits

Design of a Low Power Four-Bit Binary Counter Using Enhancement Type Mosfet

Sequential Logic Basics

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Asynchronous (Ripple) Counters

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

Synchronous Sequential Logic

Multiplexor (aka MUX) An example, yet VERY useful circuit!

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

CprE 281: Digital Logic

EEC 118 Lecture #9: Sequential Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

CMOS Latches and Flip-Flops

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Digital Fundamentals

Digital Logic Design I

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

EE292: Fundamentals of ECE

Transcription:

ELE2120 Digital Circuits and Systems Tutorial Note 7

Outline 1. Sequential Circuit 2. Gated SR Latch 3. Gated D-latch 4. Edge-Triggered D Flip-Flop 5. Asynchronous and Synchronous reset

Sequential Circuit The sequential circuits: circuits whose output depends upon both the input of the circuit and its previous state. In other words, they are circuits that have memory. For a device to serve as a memory, it must have three characteristics: 1. the device must have two stable states. 2. there must be a way to read the state of the device. 3. there must be a way to set the state at least once. One can remove the input that caused a particular output and the output will be unchanged! Examples for Sequential Circuit

Gated SR Latch (a1) Gated SR Latch (NAND) (a2) Gated SR Latch (AND) (b) Graphical Symbol CLK S R Q(t+1) 0 X X Q(t)(Retain) 1 0 0 Q(t)(Retain) 1 0 1 0 1 1 0 1 1 1 1 X (c) Characteristics table (d) Timing Diagram

Gated SR Latch (a1) Gated SR Latch (NAND) (a2) Gated SR Latch (AND) (b) Graphical Symbol 1. (a1) CLK is gated by NAND gates. 2. S & R inputs are reversed. 3. Fewer transistors than AND gates. 4. Gated SR Latches with NAND: standard. Question: What is the transistors number for (a1) and (a2)? (a1): 4*2-input-NAND=4*(2n)=4*(2*2)=16 (a2): 2*2-input-AND+2*2-input-NOR=2*(2n+2)+2*(2n)=2*6+2*4=20

Gated SR Latch Exercise Exercise: Let the SR input waveforms be in figure 1. Show the Q output waveform for the SR latches using NAND and NOR gates. (Assume present state of Q is 0) Figure1 CLK S R Q

Gated D-Latch (a) Gated D Latch (NAND) (b) Graphical Symbol CLK D Q(t+1) 0 X Q(t) 1 0 0 1 1 1 (c) Characteristics table (d) Timing Diagram

Effect of Propagation Delay (a).propagation Delay Typical values for CMOS technology: tsu = tsetup = 3 ns th = thold = 2 ns The addition transistor in CMOS(in contrast to other forms of MOS logic, has both NMOS and PMOS) not only increases the chip area but also increases the total effective capacitance per gate and in turn increases the propagation delay

Effect of Propagation Delay The flip-flop is a leading edge triggered D-type. Data on the input signal D is clocked into the flip-flop on the leading edge of the clock signal. This data then appears on the output terminal Q of the flip-flop. In order to ensure correct operation of the flip-flop, the input data Din must be stable and valid for a duration t setup, before the clock signal reaches the input voltage threshold of the flip-flop. It must then remain at this value for a duration t hold, after the clock signal has reached input threshold voltage. After the time t hold has elapsed the input data Din can be changed without changing the state of the flip-flop.

Master-Slave D flip-flop (a) Master-Slave D flip-flop (b) Graphical Symbol (c) Timing Diagram Flip-flop denotes a storage element that changes its output state at the edge of a controlling clock signal

Edge-Triggered D Flip-Flop (b) Graphical Symbol (a) Edge-Triggered D Flip-Flop Clock = 0 P1 = P2 = 1 P1=D Clock = 1 P2=D Retain Q,Q state P3=D, P4=D Q=D Q =D

Asynchronous Reset for a D Flip-Flop Master Slave (a) Master-Slave D flip-flop with Clear and Present CLK D Pres Clear Q x x 0 0 (----) x x 1 0 0 x x 0 1 1 0 1 1 0 1 1 1 1 0,1, X 1 1 Q(retain) Flip-flop goes into the state Q=0 immediately. (b) Graphical Symbol Asynchronous clear!

Synchronous Reset for a D Flip-Flop (a) D flip-flop with synchronous clear For Synchronous Reset for D Flip-flop, when Clear goes to 1, then on the next positive edge of the clock the flip flop will be cleared to 0. For Asynchronous Reset for D Flip-flop, when Clear goes to 0, then on the flip flop will be cleared to 0 immediately. (b) D flip-flop with Preset and Clear

T(Toggle) flip-flop (b) Graphical symbol T Q(t+1) 0 Q(t) 1 Q(t) (c) Truth Table No Change to Output (d) Time Diagram Complement the Output

T flip-flop Exercise 1 Exercise1: How can I decrease the frequency of the clock signal to 1/8 of its original by using 3 T flip-flop? (Consider initial Q = 1)

Character of T Flip-flop 1 CLK ½ CLK ½ CLK

1 CLK 1/8 CLK 1/4 CLK 1/2 CLK

JK flip-flop (b) Graphical symbol (a) JK flip-flop Circuit J K Q(t+1) 0 0 Q(t) 0 1 0 1 0 1 1 1 Q(t) (c) Truth Table JK flip-flop combines the behaviors of SR and T flipflops in a useful way. When J=S, K=R, for all input values except J=K=1 it behaves as the SR flip-flop When J and K connected together, it can also serve as a T flip-flop.

Characteristic Equation Specify next state as a function of its current state and inputs Q(t) current state Q(t+1) next state For example: SR latch: Q(t+1) = S + R Q(t) D flip-flop: Q(t+1) = D JK flip-flop: Q(t+1) = JQ (t)+k Q(t) T flip-flop: Q(t+1) = T Q(t)= TQ (t)+t Q(t)