ECE 341. Lecture # 2

Similar documents
D Latch (Transparent Latch)

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

Logic Design. Flip Flops, Registers and Counters

Other Flip-Flops. Lecture 27 1

Unit 11. Latches and Flip-Flops

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

Chapter. Synchronous Sequential 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.

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

Introduction to Sequential Circuits

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Engr354: Digital Logic Circuits

Digital Circuits ECS 371

ELE2120 Digital Circuits and Systems. Tutorial Note 7

LATCHES & FLIP-FLOP. Chapter 7

Sequential Circuits: Latches & Flip-Flops

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

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

Synchronous Sequential Logic

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

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits

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

Lecture 8: Sequential Logic

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

Sequential Design Basics

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

Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic

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

RS flip-flop using NOR gate

Chapter 5 Synchronous Sequential Logic

CMSC 313 Preview Slides

Chapter 11 Latches and Flip-Flops

6. Sequential Logic Flip-Flops

CHAPTER1: Digital Logic Circuits

Synchronous Sequential Logic

CprE 281: Digital Logic

Sequential Logic Circuits

MC9211 Computer Organization

Synchronous Sequential Logic

Rangkaian Sekuensial. Flip-flop

Synchronous Sequential Logic. Chapter 5

Part II. Chapter2: Synchronous Sequential Logic

(Refer Slide Time: 2:05)

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Chapter 8 Sequential Circuits

CprE 281: Digital Logic

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Course Administration

CprE 281: Digital Logic

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

RS flip-flop using NOR gate

MODULE 3. Combinational & Sequential logic

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

Exercise 2: D-Type Flip-Flop

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

Asynchronous (Ripple) Counters

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Digital Logic Design ENEE x. Lecture 19

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

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.

Review of Flip-Flop. Divya Aggarwal. Student, Department of Physics and Astro-Physics, University of Delhi, New Delhi. their state.

Synchronous Sequential Logic

CprE 281: Digital Logic

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

CHAPTER 1 LATCHES & FLIP-FLOPS

Introduction to Microprocessor & Digital Logic

Feedback Sequential Circuits

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

Flip-Flops and Sequential Circuit Design

Chapter 4. Logic Design

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

Chapter 5 Sequential Circuits

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).

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

CHW 261: Logic Design

Digital Fundamentals: A Systems Approach

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

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

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

Registers and Counters

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Flip-flop and Registers

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

CprE 281: Digital Logic

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

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

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

Chapter 5 Synchronous Sequential Logic

Transcription:

ECE 341 Lecture # 2 Instructor: Zeshan Chishti zeshan@pdx.edu October 1, 2014 Portland State University

Announcements Course website reminder: http://www.ece.pdx.edu/~zeshan/ece341.htm Homework 1: Will be posted on course website tonight Due date: Wednesday 10/8 in class

Lecture Topics Sequential Logic Latches SR Latch Gated SR Latch Gated D Latch Flip flops D flip-flop T flip-flop JK flip-flop Reference: Appendix A (pages 492-502), including section A.6

Sequential Logic Inputs Combinational Logic Outputs Memory Elements Combinational logic: outputs are uniquely defined for each input combination Sequential Logic: output depends not only on current inputs but also on previous state

Clock Signal 1 0 Positive Edge Transition Negative Edge Transition Sequential circuits often use a clock signal as a reference for when output state changes take place Level triggering: State changes can take place at any time as long as clock signal is at a particular level (e.g., during the 1 clock phase) Edge triggering: State changes take place only on clock transitions 0 => 1 transition (positive edge-triggered) 1 => 0 transition (negative edge-triggered) Time

Latches and Flip Flops Latches and flip flops are the most basic memory elements used in sequential circuits Flip flop Samples its inputs and changes its output only at the edge of a controlling clock signal (edge-triggered) Latch Watches its inputs continuously and changes its output at any time irrespective of clock edge transitions May or may not be level-triggered

SR Latch An SR latch has a set input (S), a reset input (R) and two outputs (Q and QN) that are normally complements of each other

SR Latch 0 1

SR Latch 0 1 0 x NOR 1 = 0 for x = 0, 1

SR Latch 0 1 1 0 0 NOR 0 = 1

SR Latch Q Asserting S sets the latch (Q = 1, QN = 0) Asserting R resets the latch (Q = 0, QN = 1) If both S and R are 0, the latch acts as a memory element (retains its previous state) Input combination R = S = 1 is normally not used QN is often represented as Q (NOT of Q)

Gated SR Latch R Circuit S Clk S R Q(t+1) 0 x x Q(t) 1 0 0 Q(t) 1 0 1 0 1 1 0 1 1 1 1 x Graphical Symbol Truth Table

Gated SR Latch R Circuit S Clock input controls the time at which the latch is set or reset When clk = 1 R = R and S = S, behaves like a regular SR latch set/reset by S/R inputs) When clk = 0 R = S = 0, latch cannot be set or reset by R and S inputs

Timing Diagram for Gated SR Latch

Gated D Latch Circuit Clk D Q(t+1) 0 x Q(t) 1 0 0 1 1 1 Truth Table Graphical Symbol

Gated D Latch 0 0 Circuit 1 1 Clk D Q(t+1) 0 x Q(t) 1 0 0 1 1 1 Truth Table Graphical Symbol

Gated D Latch 0 0 1 Circuit 1 0 NAND 1 = 1 1 NAND 1 = 0 1 0 Clk D Q(t+1) 0 x Q(t) 1 0 0 1 1 1 Truth Table Graphical Symbol

Gated D Latch 0 0 1 0 Circuit 1 Q NAND 0 = 1 1 NAND 1 = 0 1 0 1 Clk D Q(t+1) 0 x Q(t) 1 0 0 1 1 1 Truth Table Graphical Symbol

Gated D Latch Circuit D latch is a special case of SR latch where S and R are derived from single input D When clk = 1 the Q output is set to the value of D input When clk = 0 the Q output retains its previous value irrespective of the D input D latch samples input data when clk is high and stores data until next clock pulse

Practice Exercise The clock and D inputs for a gated D latch are shown below. Plot the Q output as a function of time.

Practice Exercise: Solution Q 1 0

Limitations of Latches Latches are sensitive only to clock levels (level-sensitive) When clock is high, latch output responds immediately to any changes in inputs Undesirable in circuits involving counters and shift registers Immediate propagation of inputs to outputs may lead to incorrect operation Solution: Master-slave flip flop Sensitive to clock signal transitions (edge-sensitive) Outputs isolated from inputs at all times except at clock transitions Positive edge triggering: data transfer occurs at 0->1 clock transition Negative edge triggering: data transfer occurs at 1->0 clock transition

Master-slave D flip-flop Circuit Example Timing Diagram Graphical Symbol

Master-slave D flip-flop Circuit Two gated D-latches (master and slave) together form a master-slave flip-flop When clk = 1: D input is transferred to master s output, slave s output is unchanged When clock transitions from 1 to 0: Master s contents (Qm) transferred to slave s output (Q), master s output isolated from D-input D flip-flop is commonly used for temporary storage of data

T flip-flop Circuit T Q(t+1) 0 Q(t) 1 Q(t) Truth Table Graphical Symbol

T flip-flop Circuit Example Timing Diagram T flip-flop toggles its state every cycle if its input T is equal to 1 Useful in building counters

JK flip-flop Circuit J K Q(t+1) 0 0 Q(t) 0 1 0 1 0 1 1 1 Q(t) Truth Table Graphical Symbol

JK flip-flop Circuit JK flip-flop combines the behavior of SR and T flip-flops When J = K = 1, it functions as a toggle (T flip-flop) For other input combinations, it acts as a SR flip-flop with J = S and K = R JF flip-flop is versatile; can be used both for data storage and building counters