EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

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

Logic Design. Flip Flops, Registers and Counters

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

RS flip-flop using NOR gate

RS flip-flop using NOR gate

Engr354: Digital Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

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 11 Latches and Flip-Flops

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

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

Combinational vs Sequential

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

Unit 11. Latches and Flip-Flops

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

Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

IT T35 Digital system desigm y - ii /s - iii

CHAPTER 1 LATCHES & FLIP-FLOPS

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

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

CHAPTER 4: Logic Circuits

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

CHAPTER 4: Logic Circuits

Digital Fundamentals: A Systems Approach

Sequential Circuits: Latches & Flip-Flops

Sequential Logic Basics

Review of digital electronics. Storage units Sequential circuits Counters Shifters

MC9211 Computer Organization

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

D Latch (Transparent Latch)

Synchronous Sequential Logic

ELCT201: DIGITAL LOGIC DESIGN

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

CHAPTER1: Digital Logic Circuits

Lecture 8: Sequential Logic

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

Introduction to Microprocessor & Digital Logic

Counter dan Register

ECE 341. Lecture # 2

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

UNIT IV. Sequential circuit

Introduction to Sequential Circuits

Asynchronous (Ripple) Counters

Digital Logic Design ENEE x. Lecture 19

Sequential Design Basics

Registers and Counters

Chapter. Synchronous Sequential Circuits

EKT 121/4 ELEKTRONIK DIGIT 1

ECE 263 Digital Systems, Fall 2015

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

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

Sequential Logic and Clocked Circuits

Other Flip-Flops. Lecture 27 1

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

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

Universal Asynchronous Receiver- Transmitter (UART)

LSN 12 Shift Registers

Module -5 Sequential Logic Design

Digital Fundamentals

Unit-5 Sequential Circuits - 1

Rangkaian Sekuensial. Flip-flop

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Flip-Flops and Sequential Circuit Design

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

LATCHES & FLIP-FLOP. Chapter 7

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

ASYNCHRONOUS COUNTER CIRCUITS

Registers and Counters

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

Serial In/Serial Left/Serial Out Operation

Chapter 5 Flip-Flops and Related Devices

Switching Circuits & Logic Design

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

EKT 121/4 ELEKTRONIK DIGIT 1

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

EET2411 DIGITAL ELECTRONICS

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

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

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

Sequential circuits. Same input can produce different output. Logic circuit. William Sandqvist

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

Chapter 4. Logic Design

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

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

Chapter 5: Synchronous Sequential Logic

Digital Fundamentals: A Systems Approach

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

! Two inverters form a static memory cell " Will hold value as long as it has power applied

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

Vignana Bharathi Institute of Technology UNIT 4 DLD

Digital Integrated Circuits EECS 312

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

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Transcription:

EEE235 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

. Delay and Latches ) Signal Storage a. as voltage level static memory b. as charges dynamic memory 2) Delays a. due to gates and interconnection lines b. Uncertain delays : I. typical (nominal), min/max delays II. Statistical delay c. Rising/falling delay: % 9%, 9% % of voltage swing d. Transport delay : port- to-port (pin-to-pin) delay e. Inertial delay I. Tends to block narrow pulses (inertia, resistance tplh to tphl change) II. Energy to charge/discharge internal capacitances III. Unbalance between rising & falling delays

Flip-flop Register. : noise(perfact signal.)

3) Latches a. Closed signal path : feedback loop b. Stability and Meta-stability I. Unstable Leads to oscillation II. Meta-stable Temporarily stuck between and Responsible for rare and hard-to-find failure III. Bistable Two stable states A B

c. SR Latches i. Structure ii. Behavior R S S R n *X n S R n n *X Forbidden inputs in RS latch with NANDs/NORs Unpredictable behavior : depends on propagation delay of NORs/NANDs forbidden input conditions It is sensitive to noise To alleviate the noise problems, a control signal is used - Gated SR latch iii. Level-sensitive & Asynchronous hard to control

Improvement of SR-latch (Gated SR-latch) I. Controlled by a control signal II. Still level-sensitive (w.r.t. control signal) III. Short duty cycle to prevent errors d. Gated SR latch - It can be usable SR latch S Control R Still, problem with SR latch Noise-sensitivity and forbidden input conditions

4) Latch Applications a. as a temporary storage element needed for data processing and I/O circuits without complex feedback b. to reduce glitches c. RS latch has forbidden input condition - D latch

2. Clocks and Flip-flops ) Basic Concepts a. More reliable storage elements in more general sequential circuits b. F/F: a bistable memory with precise timing control (by clock) 2) Clocking Methods a. Level-sensitive : latches b. Positive (negative) edge-triggered * F/Fs use the clock edge for the output change

A negative edge-triggered SR flip-flop (a simple circuit) S R Clock

A negative edge-triggered SR flip-flop (a simple circuit) S R Clock

3) A positive-edge-triggered D flip-flop P3. P = P2 = and P3 = D, p4 = D when Clock = 2. P = D P2 = D when Clock goes to high 3. Further changes in D do not affect when Clock = if D = at then P2 = -> P4 = regardless of D if D = at then P = -> P2 = P3 = regardless of D P3, P4 must be stable when Clock goes to high : Setup time is delay from D through gate 4 to gates and 3 2 P 5 Clock 3 P2 6 (n+) = D(n) D D(n) (n+) D 4 P4 Clock (a) Circuit (b) Graphical Symbol (c) Transition Table

Master-slave D flip-flop Both clocking edges Preset D Clock Clear (a) Circuit Reset(Clear) and Preset: Asynchronous inputs

4) JK Flip-flop a. Structure b. Transition Table - Next page J(n) K(n) (n+) (n) (n) c. Transition-map for (n+) d. Excitation table for deriving transition function J(n) K(n) (n) (n) (n+) J(n)K(n) S(n)R(n) D(n) x x x x x x

JK flip-flop J K Clock D (a) Circuit (n+) = J(n)(n) + K(n)(n) : JK F/F (n+) = S(n)R(n) + R(n)(n) : SR F/F (n+) = D(n) : D F/F J K (b) Transition functions (c) Graphical symbol

T flip-flop T Clock D T Clock D

3. Flip-flop Behavior ) States a. Internal state and total state (the set of stored data ) b. State transition table and diagram I. Defines a memory s(state Register) next state function II. Allows repetitive behavior to be easily visualized 2) State Behavior a. Flip-flop behavior described by means of state table/diagram b. Each transition is triggered by clock signal c. Described by characteristic equation JK flip-flop ( n ) J( n) ( n) K( n) ( n) (, ) (, ) (, ) (, ) (, ) Set (, ) Reset (, ) (, )

3) Registers a. A set of flip-flops with common control logic b. Parallel-load type, shift-type, shift with parallel-load c. A simple shift register In D 2 3 4 D D D Out Clock (a) Circuit t t t 2 t 3 t 4 t 5 t 6 t 7 In 2 3 4 = Out (b) A sample sequence

d. Parallel-load shift register Parallel output 3 2 D D D D Serial input Shift/Load Parallel input Clock

4) Counters a. Asynchronous (Ripple) Counter I. A cascade of flip-flops, each of which toggling its successor II. Slow, lack of generality in design process b. Synchronous Counter I. Popular II. Uses a common clock for all f/f s c. Ring Counter I. Rotates a single thru all its flip-flops II. State diagram III. Decoder is embedded d. Johnson Counter I. Similar to ring counter II. State diagram III. Only one bit change between adjacent states no glitches

Synchronous Counter Clock T T T 2 T 3 (a) Circuit Clock 2 3 Count 2 3 4 5 6 7 8 9 2 3 4 5 (b) Timing diagram

Ring Counter n D PR D D R R R Reset Clock

Johnson Counter n D D D R R R Reset Clock

F/F Timing t SU t SU t h Clk t ff t CC D Inputs to f/f stabilized f/f outputs stabilized t P, clk > t SU + t ff + t CC + margin f clk < /(t SU + t ff + t CC + margin)

4. Memory An SRAM cell Sel Data Data An DRAM cell Data Sel

A 2 m x n SRAM block Data inputs d n d n 2 d Write Sel Sel Address a a a m m -to-2 m decoder Sel 2 Sel 2 m Read Data outputs q n q n 2 q