MUX AND FLIPFLOPS/LATCHES

Similar documents
ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1

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.

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.

Engr354: Digital Logic Circuits

Chapter 8 Sequential Circuits

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

Lecture 11: Sequential Circuit Design

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

CPE/EE 427, CPE 527 VLSI Design I Sequential Circuits. Sequencing

Lecture 1: Circuits & Layout

LAB #4 SEQUENTIAL LOGIC CIRCUIT

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

RS flip-flop using NOR gate

Rangkaian Sekuensial. Flip-flop

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Chapter. Synchronous Sequential Circuits

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Lecture 1: Intro to CMOS Circuits

Lecture 7: Sequential Networks

Lecture 10: Sequential Circuits

6. Sequential Logic Flip-Flops

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

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

ELCT201: DIGITAL LOGIC DESIGN

Topic 8. Sequential Circuits 1

ECE321 Electronics I

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

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

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

D Latch (Transparent Latch)

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

Sequential Design Basics

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

EE 447/547 VLSI Design. Lecture 9: Sequential Circuits. VLSI Design EE 447/547 Sequential circuits 1

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

NAME SYMBOL CHARACTERISTIC TABLE EXCITATION TABLE. S R Q(next) 0 0 Q. (hold) (reset) (set) 1 1? (undefined) J K Q(next) (hold) (reset) (set) 1 1 Q'

Chapter 11 Latches and Flip-Flops

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

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

CS 261 Fall Mike Lam, Professor. Sequential Circuits

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

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

RS flip-flop using NOR gate

Logic Design. Flip Flops, Registers and Counters

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

CHAPTER 4: Logic Circuits

Flip-Flops and Sequential Circuit Design

Final Exam review: chapter 4 and 5. Supplement 3 and 4

LATCHES & FLIP-FLOP. Chapter 7

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

CHAPTER 4: Logic Circuits

Unit 11. Latches and Flip-Flops

ELCT201: DIGITAL LOGIC DESIGN

Introduction to Sequential Circuits

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

CMSC 313 Preview Slides

Combinational vs Sequential

Sequential Circuits: Latches & Flip-Flops

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

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

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

2 Sequential Circuits

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

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

Lecture 8: Sequential Logic

Sequential Logic and Clocked Circuits

SEQUENTIAL CIRCUITS THE RELAY CIRCUIT

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

CprE 281: Digital Logic

11. Sequential Elements

AIM: To study and verify the truth table of logic gates

Synchronous Sequential Logic. Chapter 5

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

CprE 281: Digital Logic

CMOS Latches and Flip-Flops

Logic Design II (17.342) Spring Lecture Outline

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

Flip-Flops and Registers

Sequential Logic Basics

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

Combinational / Sequential Logic

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

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

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

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

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

Chapter 5 Sequential Circuits

Clocking Spring /18/05

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

ECE 341. Lecture # 2

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

UNIT IV. Sequential circuit

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

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

MC9211 Computer Organization

CHAPTER1: Digital Logic Circuits

Transcription:

MUX AN FLIPFLOPS/LATCHES BY: SURESH BALPANE

Multiplexers 2:1 multiplexer chooses between two inputs S 1 0 Y 0 X 0 0 0 0 0 X 1 1 1 0 X 0 1 1 X 1 1 1 S Y @BALPANECircuits and Slide 2

Gate-Level Mux esign Y S S 1 0 (too many transistors) How many transistors are needed? 20 1 S 0 Y 1 S 0 2 4 4 2 2 4 2 Y @BALPANECircuits and Slide 3

Transmission Gate Mux Nonrestoring mux uses two transmission gates mux uses two transmission gates Only 4 transistors 0 S S Y 1 S @BALPANECircuits and Slide 4

4:1 Multiplexer 4:1 mux chooses one of 4 inputs using two selects Two levels of 2:1 muxes Or four tristates S0 S1S0 S1S0 S1S0 S1S0 S1 0 0 1 2 0 1 0 0 1 Y 1 2 Y 3 1 @BALPANECircuits and Slide 5 3

Latch When = 1, latch is transparent flows through to like a buffer When = 0, the latch is opaque holds its old value independent of a.k.a. transparent latch or level-sensitive latch Latch @BALPANECircuits and Slide 6

Latch esign Multiplexer chooses or old 1 0 @BALPANECircuits and Slide 7

Latch Operation = 1 = 0 @BALPANECircuits and Slide 8

Flip-flop When rises, is copied to At all other times, holds its value a.k.a. positive edge-triggered flip-flop, master- slave Compiled flip-flop by: Suresh S. Balpande Flop @BALPANECircuits and Slide 9

Flip-flop esign Built from master and slave latches Latch M M Latch @BALPANECircuits and Slide 10

Flip-flop Operation M = 0 M Compiled by: Suresh S. Balpande = 1 @BALPANECircuits and Slide 11

CMOS SR Latch: NOR Gate Version The NOR-based SR Latch contains the basic memory cell (back-to-back inverters) built into two NOR gates to allow setting the state of the latch. If Set goes high, M1 is turned on forcing low which, in turn, pulls high S=1 = 1 If Reset goes high, M4 is turned on, is pulled low, and is then pulled high Compiled by: Suresh S. R=1 Balpande = 1 If both Set and Reset are low, both M1 and M4 are off, and the latch holds its existing state indefinitely If both Set and Reset go high, both and are pulled low, giving an indefinite state. Therefore, R=S=1 is not allowed The gate-level symbol and truth table for the NOR-based SR latch are given at left To estimate Set time, add time to discharge + time to charge (pessimistic result) R. W. Knepper SC571, page 5-30

CMOS SR Latch: NAN Gate Version A CMOS SR latch built with two 2-input NAN gates is shown at left The basic memory cell comprised of two back-to-back CMOS inverters is seen The circuit responds to active low S and R inputs If S goes to 0 (while R = 1), goes high, pulling low and the latch enters Set state S=0 = 1 (if R = 1) If R goes to 0 (while S = 1), goes high, pulling low and the latch is Reset R=0 = 1 (if S = 1) Hold state requires both S and R to be high S = R = 0 if not allowed, as it would result in an indeterminate state R. W. Knepper SC571, page 5-32

Clocked CMOS JK Latch: NAN Version The SR latch has a problem in that when both S and R are high, its state becomes indeterminate The JK latch shown at left eliminates this problem by using feedback from output to input, such all states in the truth table are allowable If J = K = 0, the latch will hold its present state If J = 1 and K = 0, the latch will set on the next positive-going clock edge, i.e. = 1, = 0 If J = 0 and K = 1, the latch will reset on the next positive-going clock edge, i.e. = 1 and = 0 If J = K = 1, the latch will toggle on the next positive-going clock edge Note that in order to prevent the JK Latch above from oscillating continuously during the clock active time, the clock width must be kept smaller than the switching delay time of the latch. Otherwise, several oscillations may occur before the clock goes low again. In practice this may be difficult to achieve. R. W. Knepper SC571, page 5-35

CMOS -Latch Implementation A -latch is implemented, at the gate level, by simply utilizing a NOR-based S-R latch, connecting to input S, and connecting to input R with an inverter. When goes high, is transmitted to output (and to ) When goes low, the latch retains its previous state The latch is normally implemented with transmission gate (TG) switches, as shown at the left The input TG is activated with while the latch feedback loop TG is activated with Input is accepted when is high When goes low, the input is open-circuited and the latch is set with the prior data R. W. Knepper SC571, page 5-37

Alternate CMOS -Latch Implementation An alternate (preferred) version of the CMOS -Latch (shown at left) is implemented with two tri-state inverters and a normal CMOS inverter. Functionally it is similar to the previous chart -Latch When is high, the first tri-state inverter sends the inverted input through to the second inverter, while the second tri-state is in its high Z state. Output is following input When is low, the first tri-state goes into its high Z state, while the second tri-state inverter closes the feedback loop, holding the data and in the latch. R. W. Knepper SC571, page 5-39