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.

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

Lecture 8: Sequential Logic

Introduction to Sequential Circuits

LATCHES & FLIP-FLOP. Chapter 7

Asynchronous (Ripple) Counters

Rangkaian Sekuensial. Flip-flop

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.

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

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

Chapter. Synchronous Sequential Circuits

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

D Latch (Transparent Latch)

Sequential Circuits: Latches & Flip-Flops

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

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

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

Introduction to Microprocessor & Digital Logic

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

Synchronous Sequential Logic

Chapter 11 Latches and Flip-Flops

CHAPTER 4: Logic Circuits

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

CHAPTER 1 LATCHES & FLIP-FLOPS

6. Sequential Logic Flip-Flops

CH 11 Latches and Flip-Flops

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

MUX AND FLIPFLOPS/LATCHES

Logic Design. Flip Flops, Registers and Counters

CHAPTER 4: Logic Circuits

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

RS flip-flop using NOR gate

Switching Circuits & Logic Design

Engr354: Digital Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

EET2411 DIGITAL ELECTRONICS

ELCT201: DIGITAL LOGIC DESIGN

COMP2611: Computer Organization. Introduction to Digital Logic

ECE 341. Lecture # 2

Chapter 4. Logic Design

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

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

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

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Chapter 8 Sequential Circuits

The NOR latch is similar to the NAND latch

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

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

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Chapter 5 Synchronous Sequential Logic

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

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

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

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

Flip-Flops and Sequential Circuit Design

Lecture 7: Sequential Networks

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

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

Unit 11. Latches and Flip-Flops

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

RS flip-flop using NOR gate

Synchronous Sequential Logic

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

Chapter 5: Synchronous Sequential Logic

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

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

MC9211 Computer Organization

Sequential Logic and Clocked Circuits

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

Digital Circuits ECS 371

Other Flip-Flops. Lecture 27 1

Advanced Digital Logic Design EECS 303

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

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

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

SEQUENTIAL CIRCUITS THE RELAY CIRCUIT

REPEAT EXAMINATIONS 2002

Combinational vs Sequential

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

Counter dan Register

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

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

FLIP-FLOPS AND RELATED DEVICES

Combinational / Sequential Logic

Synchronous Sequential Logic. Chapter 5

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Sequential Design Basics

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

CMSC 313 Preview Slides

EE292: Fundamentals of ECE

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

(Refer Slide Time: 2:00)

UNIT 11 LATCHES AND FLIP-FLOPS

Transcription:

Clocks 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. 1 The length of time the clock is high before changing states is its high duration; the low duration is defined similarly. The cycle time of a clock is the sum of its high duration and its low duration. The frequency of the clock is the reciprocal of the cycle time. rising edge falling edge high low time

State Elements A state element is a circuit component that is capable of storing a value. 2 At the moment, we are interested primarily in state elements that store logical state information about the system, rather than data storage. A state element may be either unclocked or clocked. Clocked state elements are used in synchronous logic - When should an element that contains state be updated? - Edge-triggered clocking means that the state changes either on the rising or the falling edge. - Clock edge acts as a sampling signal that triggers the update of a state element. A signal that is to be written into a state element must be stable; i.e., it must be unchanging. If a function is to be computed in one clock cycle, then the clock period must be long enough to allow all the relevant signals to become stable.

Set-reset Latch 3 A latch is a circuit that has two stable states, and so can store 1 bit of data. NOR gate output is only 1 when both inputs are 0 Feedback: output depends both on present inputs and past inputs If the output of one NOR gate is 1 then the output of the other must be 0 Common contemporary terminology is that a latch does not receive a clock signal, and hence is transparent. However, usage does vary

Set-reset Latch 4 Toggle the Set input to 1 then Q == 1 Then, toggle the Set input to 0 and Q == 1 So, toggling S on causes the latch to store 1; subsequently, toggling S does not change the state of the circuit.

Set-reset Latch 5 Toggle the Reset input to 1 then Q == 0 Then, toggle the Reset input to 0 and Q == 0 So, toggling R on causes the latch to store 0; subsequently, toggling R does not change the state of the circuit.

Set-reset Latch 6 Setting both inputs to 0 simultaneously results in a "keep" state the latch will maintain its current value indefinitely (logically) Setting both inputs to 1 simultaneously is not allowed then both NOR gates would emit values of 0, breaking the Q/~Q relationship and there are instability issues in actual hardware implementations

Gated D-latch 7 The gated D-latch can be derived from the set-reset latch by adding an interface that makes it possible to essentially isolate the set-reset logic: If the Enable input is 1 then the value of D will immediately be stored by the S-R mechanism. If the Enable input is 0 then the value of the S-R mechanism is fixed. The S = R = 1 case cannot occur for the embedded S-R latch, because

Timing Issues 8 There is a small, but positive delay between changes in the input values to a logic gate and any resulting change in the gate's output. We call this the gate delay. Consider the following circuit: Logically, the output of the circuit should ALWAYS be 0. Why? Consider what happens if the input signal A is set to 1: - A0, A1 and A2 immediately become 1 - after one gate delay, the output X will become 1 since the XOR has inputs of 0 and 1 - at the same time, the output of the AND gate will become 1 - after one more gate delay, the output X will become 0 again What would happen if the output X were used as input to another circuit? We can prevent that if we use a clock signal to synchronize operations.

Clocked D-latch 9 We create a clocked D-latch by connecting the Enable input of the gated D-latch to a clock signal: The clocked D-latch accepts the input D only when the clock signal is high (1). However, there is still a hazard what if the value of D can change more than once during the high-duration of the clock signal? The clocked D-latch is level-triggered that is, whether its state can change depends on the level of the clock signal.

Clocked D Flip-flop 10 Consider what happens when we combine a clocked D-latch and a clocked S-R latch: clocked D-latch clocked S-R latch D 2 gate delays inverted clock The output of the device can only change once per clock cycle shortly after the clock signal goes low.

Clocked D Flip-flop 11 Suppose that D is set to 1; nothing happens at all until the clock signal also goes high: clocked D-latch clocked S-R latch D 2 gate delays inverted clock The output of the D-latch goes high (i.e., takes the value of D) but only after two gate delays. By then, the S-R latch is seeing a low clock signal, and so the S-R latch does not change state yet.

Clocked D Flip-flop 12 Then, when the clock goes low clocked D-latch clocked S-R latch D 2 gate delays inverted clock The S-R latch sees a high clock signal (after 1 gate delay), and so it updates state. But, the D-latch sees a low clock signal immediately and so it cannot change state.

JK Flip-flop 13 The JK flip-flop takes two data inputs and updates its state Q, on a clock tick, according to the table: J K Q ~Q ---------------------- 0 0 no change 0 1 0 1 1 0 1 0 1 1 opposite J K CK Q ~Q Commonly, it takes an entire clock cycle for the JK flip-flop to update its state, and so the change in state is commonly seen on the falling edge of the clock cycle. It is also common to provide additional input connections for clear and reset and enable signals.