Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

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

Chapter 3: Sequential Logic Systems

Lecture 8: Sequential Logic

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.

ASYNCHRONOUS COUNTER CIRCUITS

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

Digital Fundamentals

(Refer Slide Time: 2:05)

Experiment 8 Introduction to Latches and Flip-Flops and registers

Digital Circuits 4: Sequential Circuits

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

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

Laboratory 7. Lab 7. Digital Circuits - Logic and Latching

ECE 341. Lecture # 2

Asynchronous (Ripple) Counters

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

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

RS flip-flop using NOR gate

FLIP-FLOPS AND RELATED DEVICES

D Latch (Transparent Latch)

LATCHES & FLIP-FLOP. Chapter 7

Microcontrollers and Interfacing week 7 exercises

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

EE 367 Lab Part 1: Sequential Logic

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.

Counter dan Register

Decade Counters Mod-5 counter: Decade Counter:

CHAPTER 11 LATCHES AND FLIP-FLOPS

CprE 281: Digital Logic

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

Introduction to Sequential Circuits

CprE 281: Digital Logic

Chapter 11 Latches and Flip-Flops

Combinational vs Sequential

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

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

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

MODULE 3. Combinational & Sequential logic

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Logic Design. Flip Flops, Registers and Counters

Engr354: Digital Logic Circuits

Introduction to Microprocessor & Digital Logic

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

Chapter 5 Flip-Flops and Related Devices

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

Sequential Logic Basics

Module -5 Sequential Logic Design

2 Sequential Circuits

UNIT IV. Sequential circuit

CprE 281: Digital Logic

Review of digital electronics. Storage units Sequential circuits Counters Shifters

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

2 The Essentials of Binary Arithmetic

Logic. Andrew Mark Allen March 4, 2012

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.

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

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Laboratory 10. Required Components: Objectives. Introduction. Digital Circuits - Logic and Latching (modified from lab text by Alciatore)

CPS311 Lecture: Sequential Circuits

Counters

EE 109 Homework 6 State Machine Design Name: Score:

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

EXPERIMENT #6 DIGITAL BASICS

PGT104 Digital Electronics. PGT104 Digital Electronics

Chapter 4. Logic Design

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

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

CHAPTER 4: Logic Circuits

Chapter 4: One-Shots, Counters, and Clocks

Sequential Logic and Clocked Circuits

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Digital Circuits I and II Nov. 17, 1999

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Logic Circuits. A gate is a circuit element that operates on a binary signal.

(Refer Slide Time: 2:00)

Computer Organization

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Synchronous Sequential Logic

The NOR latch is similar to the NAND latch

Contents Circuits... 1

First Name Last Name November 10, 2009 CS-343 Exam 2

COMP2611: Computer Organization. Introduction to Digital Logic

EE 121 June 4, 2002 Digital Design Laboratory Handout #34 CLK

EECS 270 Midterm Exam Spring 2011

WINTER 15 EXAMINATION Model Answer

RS flip-flop using NOR gate

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Topics of Discussion

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

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

EET 1131 Lab #10 Latches and Flip-Flops

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

Synchronous Sequential Logic

Analogue Versus Digital [5 M]

CprE 281: Digital Logic

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

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

Transcription:

Topic 1.3.2 -type Flip-flops. Learning Objectives: At the end of this topic you will be able to; raw a timing diagram to illustrate the significance of edge triggering; raw a timing diagram to illustrate how a transition gate can be used to produce edge triggering; istinguish between the operation of the clocked data input and the set / reset inputs on a -type flip-flop; esign a transition gate to a given specification. 1

Module ET1 Introduction to Analogue and igital Systems. -type flip-flops. In the previous section, we looked at the simple three significant drawbacks or issues. S R flip-flop which had i. both and outputs would be at Logic 1 if both inputs were held at Logic 0. ii. The inputs were active low, i.e. changes occurred on the transition between a Logic 1 and a Logic 0. iii. Changes to the output occurred immediately when a change to the inputs occurred. In many applications these issues would be significant, particularly item (iii) as in modern computers, you only want data to change when you are ready for it, and not immediately. This is particularly true if you are reading information from a memory i.c. where 16-bits of information have to be taken at the same time, each data line from the memory will take fractionally different lengths of time to settle at logic 0 or 1, so it important that time is allowed for the data to settle before it is read and decisions made based on its content. This is achieved by the introduction of a clock line, a single digital input which when it is at Logic 1, causes a change in the output, if such a change is required due to the logic state of the inputs. However if the clock is at Logic 0, no change at the output will occur even if the inputs demand it. This type of flip-flop is called the clocked S - R flip-flop and it looks like this: S R 2

Topic 1.3.2 -type Flip-flops. You should recognise the right hand side of this circuit as being the simple S R latch discussed in the previous topic. The addition of the two extra NAN gates and a clock line has provided two advantages. i. changes at the output can only occur when the clock input is at Logic 1. ii. The inputs are now active high, i.e. the output changes when the input signal on S or R are Logic 1. A more detailed explanation of how this circuit works is contained in the Supplementary notes at end of this topic. {However no examination questions will be based on the ed S- R flip-flop, it is only included to show the development of the S R flip flop into the -type.} Removal of the third problem came about with the development of a new type of flip flop called the -type flip flop. It s circuit is shown below: This flip flop has only one input labelled, and a clock. The addition of the NOT gate ensures that the inputs to the clocked S-R flip flop can now never be the same. The operation of the circuit is essentially the same as the clocked S-R flip flop, with the exception that the outputs and will now always be the opposite of each other, thanks to the inclusion of the NOT gate. 3

Module ET1 Introduction to Analogue and igital Systems. To SET the -type flip-flop it is simply a case of setting the input to Logic 1, and then setting the clock to Logic 1. The output will then become a Logic 1, and will be a Logic 0. To RESET the -type flip-flop it is simply a case of setting the input to Logic 0, and then setting the clock to Logic 1. The output will then become a Logic 0, and will be a Logic 1. A simple way of remembering this is that the Logic state of the input is transferred to the output when the clock is high. Further information about the operation of this circuit will be found in the supplementary notes section at the end of this topic. In the clocked S-R flip-flop we have considered so far, the outputs and can change at any time during the period when the clock pulse is at a logic 1. This type of -type is called a level-triggered -type, as changes occur anywhere during the on clock pulse. Edge-triggered -types: Having a device where the outputs can change anywhere during the time when the clock pulse is high can be a disadvantage, because we lose some of the control we wanted over when data can be read from a memory chip for example. With the addition of some extra control circuitry we are able to convert a level-triggered -type into an edge-triggered -type, where changes to the output can only occur, when the clock input is changing from Logic 0 to Logic 1 is required. One way of achieving this is to use a transition gate. 4

Topic 1.3.2 -type Flip-flops. The following circuit shows the full circuit diagram of an edge-triggered - type made from logic gates You will notice the clock input to the type has been modified slightly by the addition of some extra logic gates to ensure that the time available for the input to be transferred to the output is very short indeed. So short that it occurs only during the transition of the clock input from Logic 0 to Logic 1. We will now concentrate on the transition gate circuitry, and examine how this works. It is made from a simple combination of a NOT gate and an AN gate. In all our logic circuits to date we have assumed that changes occur at the output of the logic gates at the same instant that the input changes. However this does not happen in reality. There is a very small delay between a change at the input and the output responding to that change which is called the propagation delay and this occurs for all logic gates. Typical delays are between 5 ns and 10 ns (1ns = 10-9 s). You might think that this is so small a time that it can be ignored and for the majority of simple combinational logic circuits this time delay is insignificant. Normally propagation delays are undesirable as they can affect the performance of logic circuits, particularly if the path length of one signal is very different to another. i.e. if one signal has to pass through many logic gates and another only has one or two to get through. 5

Module ET1 Introduction to Analogue and igital Systems. However on this occasion we will be using the fact that there is a propagation delay between gates in order to create the transition gate. For this application to work, a propagation delay is essential. The transition gate used in our example above is as follows: ( has been replaced by A for the purposes of the explanation.) A B At first glance it does not appear that this system of gates can ever provide an output, since the two inputs will effectively be A. A 0. However if we examine the signals at each point in the circuit and allow for a propagation delay of 5ns between each gate the situation is a little different, as the following timing diagrams will show. 6

Topic 1.3.2 -type Flip-flops. Assume that A has been at logic 0 for some time. A The signal at A changes to logic 1 at a time of 10ns. 5 10 15 20 25 30 35 t(ns) B The signal at B changes 5ns after A, because of the propagation delay time of 10ns. 5 10 15 20 25 30 35 t(ns) The output responds to the 5ns period when A and B are at Logic 1, and produces a pulse of 5ns duration, 5ns after A becomes a Logic 1. 5 10 15 20 25 30 35 t(ns) The timing diagrams show that the output of the transition gate is a very short pulse of just 5ns duration. If you study the diagrams carefully you should observe that when A drops to a logic 0 no output pulse will be provided as B will already be at Logic 0. Therefore the only time a pulse is produced is when the input changes from Logic 0 to Logic 1. i.e. on the rising edge of the clock. We have achieved our objective of producing a very narrow pulse to trigger the -type, and so our -type circuit now looks like this. This version of the -type is called an edge-triggered -type, and the vast majority of these operate on a rising-edge, so its full name would be a risingedge-triggered -type Flip-Flop. This is by far the most common type available, and you may have to hunt very hard to find a level-triggered -type today. 7

Module ET1 Introduction to Analogue and igital Systems. The transition gate we have just looked at is only one design, there are many alternative designs, which produce a number of different pulses of varying times. Some transition gates produce pulses which go low for a short period of time, for different applications. We will now look at a few further variations before letting you loose to have a go yourself. 8

Topic 1.3.2 -type Flip-flops. Examples of transition gates. 1. Three inverters + NAN gate. A B C If we again assume a propagation delay of 5ns per gate, and input A has been at Logic 0 for some time, then the timing diagrams are as follows. 9

Module ET1 Introduction to Analogue and igital Systems. A The logic level at A changes to logic 1 at a time of 5ns. B 5 10 15 20 25 30 35 40 t(ns) The logic level at B initially at Logic 1 changes 5ns after A, because of the propagation delay time of 5ns. C 5 10 15 20 25 30 35 40 t(ns) The Logic Level at C initially at Logic 0 changes 5ns after B, because of the propagation delay time of 5ns, which is 10ns after A. 5 10 15 20 25 30 35 40 t(ns) The Logic Level at initially at Logic 1 changes 5ns after C, because of the propagation delay time of 5ns, which is 15ns after A. 5 10 15 20 25 30 35 40 t(ns) The output responds to the 15ns period when A and are at Logic 1, and produces a Logic 0 pulse of 15ns duration, 5ns after A becomes a Logic 1. 2. Five NAN gates. 5 10 15 20 25 30 35 40 t(ns) A B In this example NAN gates have been used throughout the design, this does not matter, as long as we know the propagation delay for each gate. We will 10

Topic 1.3.2 -type Flip-flops. assume a value of 5ns once again and that input A has been at Logic 0 for some time, then the timing diagrams are as follows. A The logic level at A changes to logic 1 at a time of 5ns. B 5 10 15 20 25 30 35 40 t(ns) The logic level at B initially at Logic 1 changes 15ns after A, because of the propagation delay time of 3 x 5ns. Notice how we don t need to draw the interim timing diagrams, once we know the propagation delay per gate and number of gates we can determine how long it will take for the logic level at point B to change. 5 10 15 20 25 30 35 40 t(ns) The output responds to the 15ns period when A and B are at Logic 1, and produces a Logic 0 pulse of 15ns duration, 5ns after A becomes a Logic 1. 5 10 15 20 25 30 35 40 t(ns) The output is the inverse of, just delayed by 5ns the propagation delay caused by passing through the last NAN Inverter. 5 10 15 20 25 30 35 40 t(ns) This example should show you that the behaviour of the transition gate can be determined quite easily if you draw careful timing diagrams. 11

Module ET1 Introduction to Analogue and igital Systems. There are a number of things to look for to help you decide what the behaviour of a transition gate is going to be, and also if you are asked to design one, which you could be asked to do in an examination. These are as follows: i. The output pulse will be positive i.e Logic 0 to Logic 1 to Logic 0 if the last gate is an AN gate. ii. The output pulse will be negative i.e Logic 1 to Logic 0 to Logic 1 if the last gate is a NAN gate. iii. The output pulse will start one propagation delay after the input changes from logic 0 to Logic 1, and last for the number inverters added to the input x the propagation delay per gate. iv. Any additional gates added to the output will delay the pulse by a further propagation delay. Here are a couple of examples for you to try: 12

Exercise 1: Topic 1.3.2 -type Flip-flops. 1. The following transition gate is constructed from an inverter and a NAN gate. A B The propagation delay for each gate is 10ns. Complete the timing diagram below to show what happens after the input A is changed as shown on the graph. A B 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 13

Module ET1 Introduction to Analogue and igital Systems. 2. The following transition gate is constructed from 3 inverters and an AN gate. The propagation delay for each gate is 5ns. A B C Complete the timing diagram below to show what happens after the input A is changed as shown on the graph. A B 5 10 15 20 25 30 35 40 t(ns) C 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 14 5 10 15 20 25 30 35 40 t(ns)

Topic 1.3.2 -type Flip-flops. 3. esign a transition gate to produce a logic level 0 pulse of duration 25ns, using NAN gates only. Each NAN gate has a propagation delay of 5ns. 15

Module ET1 Introduction to Analogue and igital Systems. The i.c. based -type. As you can see adding all of these additional edge triggering circuits to our NAN gate version of the -type is becoming very tedious, imagine if we had to make a circuit that contained four of these flip flops, there would be NAN gates everywhere! We are fortunate that rising edge -type flip flops are available in a 14-pin dual-in-line (d.i.l.) package. The symbol for this -type flip flop is as shown below. S CK R Two additional connections are shown here, S and R. These are connections which enable the user to SET the output = 1, = 0 by applying a Logic 1 to the S input, no matter what the state of the input or clock (>CK). Similarly the user can RESET the output = 0, = 1 by applying a logic 1 to the R input, again irrespective of the state of or (>CK). 16

Example: Topic 1.3.2 -type Flip-flops. The circuit below shows a rising-edge-triggered -type flip-flop. S CK R The following graphs show the signals applied to the and (>) inputs, complete the remaining graphs to show the output and. In this example, only the rising edges of the clock pulses are important, since this is the only time that the logic state of can be transferred to. 17

Module ET1 Introduction to Analogue and igital Systems. Step 1 : identify the rising edges of the clock pulses. Rising edges of clock pulse identified. 18

Topic 1.3.2 -type Flip-flops. Step 2: transfer the logic state of, to only at the times where the clock pulse is rising. is a zero for these three rising edges. is a Logic 1 for this rising edges. 19

Module ET1 Introduction to Analogue and igital Systems. Step 3 : Complete which will be opposite of. is a zero for these three rising edges. is a Logic 1 for this rising edges. Now here are a couple for you to do. 20

Exercise 2: Topic 1.3.2 -type Flip-flops. 1. The circuit below shows a rising-edge-triggered -type flip-flop. S CK R The following graphs show the signals applied to the and (>CK) inputs, complete the remaining graphs to show the output and. 21

Module ET1 Introduction to Analogue and igital Systems. 2. The circuit below shows a rising-edge-triggered -type flip-flop. S CK R The following graphs show the signals applied to the and (>CK) inputs, complete the remaining graphs to show the output and. 22

Topic 1.3.2 -type Flip-flops. 3. The circuit below shows a rising-edge-triggered -type flip-flop. S CK R The following graphs show the signals applied to the, S, R and (>CK) inputs, complete the remaining graphs to show the output and. S R 23

Module ET1 Introduction to Analogue and igital Systems. Practical Implications. Over the last twenty years or so a large number of different types of integrated circuit -type flip flops have been produced, and whilst they essentially behave in exactly the same way, there are some subtle differences in the symbols used for -types, in different i.c. technologies. When researching for use in projects or to use in practical experiments it is important that you check which type you are using. The different variations of symbols you are likely to come across are shown below. S CK R Rising edge triggered -type. Set and Reset are active high. i.e. a logic 1 signal applied to these inputs activates that function. S CK R Rising edge triggered -type. Set and Reset are active low. i.e. a logic 0 signal applied to these inputs activates that fu S CK R Rising edge triggered -type. Set and Reset are also active low {indicated by the small o on the inputs.} i.e. a logic 0 signal applied to these inputs activates that function. 24

Exercise 1: Topic 1.3.2 -type Flip-flops. Solutions to Pupil Exercises. 1. A B 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 25

Module ET1 Introduction to Analogue and igital Systems. 2. A B 5 10 15 20 25 30 35 40 t(ns) C 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 5 10 15 20 25 30 35 40 t(ns) 3. 26

Topic 1.3.2 -type Flip-flops. 27

Module ET1 Introduction to Analogue and igital Systems. Exercise 2: 1. 28

2. Topic 1.3.2 -type Flip-flops. 29

Module ET1 Introduction to Analogue and igital Systems. 3. S R 30

Topic 1.3.2 -type Flip-flops. Examination Style uestions. 1. The -type flip-flop in the diagram is rising-edge triggered. The signals applied to the clock and data inputs are shown below. Complete the timing diagrams for the and outputs. [4] 31

Module ET1 Introduction to Analogue and igital Systems. 2. The following circuit contains a rising-edge triggered -type flip-flop. (a) (b) What is the voltage at point P when switch S 2 in not pressed?... What is the significance of the bar over the R in R [1]...... [1] 32

Topic 1.3.2 -type Flip-flops. (c) Complete the timing diagram for outputs and. The signals at the clock, and reset inputs are given, Initially, is at logic 0. [4] (d) Give an example of a system in which this circuit would be used, and describe its function within that system............. [2] 33

Module ET1 Introduction to Analogue and igital Systems. 3. The -type flip-flop in the diagram is rising-edge triggered. The signals applied to the clock and data inputs are shown below. Complete the timing diagram for the new and outputs. [2] 34

Topic 1.3.2 -type Flip-flops. 4. (a) The following transition gate is used within a type flip-flop to provide edge triggering. Each gate has a propagation delay of 10ns. Complete the following diagram to show how the output changes when the pulse shown is applied to input A. Initially, output is at logic 0. [4] 35

Module ET1 Introduction to Analogue and igital Systems. (b) The -type flip-flop in the following diagram is rising-edge triggered. The Set and Reset inputs are active high. 36

Topic 1.3.2 -type Flip-flops. The signals shown in the timing diagram on the opposite page are applied to the -type. Complete the timing diagram for the output. 37

Module ET1 Introduction to Analogue and igital Systems. 38

(c) Topic 1.3.2 -type Flip-flops. The -type flip-flop is modified as shown below. The Set and Reset inputs are disabled by connecting them to 0V. Complete the timing diagrams for the and outputs for the new arrangement. The output is initially at logic 0. [2] 39

Module ET1 Introduction to Analogue and igital Systems. 5. esign a transition gate to produce a logic level 1 pulse of duration 15ns, using NAN gates only. Each NAN gate has a propagation delay of 5ns. [5] 40

Topic 1.3.2 -type Flip-flops. 6. A -type flip-flop contains a number of logic gates. Each gate has a propagation delay. The clock input of the -type goes through a transition gate which uses this propagation delay. (a) Explain what is meant by a propagation delay. [1]......... (b) Why does a -type flip-flop need a transition gate on it s clock input? [1]......... (c) A simple transition gate is shown below. The propagation delay for each logic gate is 10ns. An input signal, shown on the timing diagram opposite, is applied to A. Show on the diagram how the logic levels at B and change over the course of 80ns. [4] 41

Module ET1 Introduction to Analogue and igital Systems. (d) (i) Redraw the transition gate using only NAN gates. [1] 42

(ii) Topic 1.3.2 -type Flip-flops. Show the effect of using this NAN gate equivalent circuit on the timing diagram above. [1] Supplementary Notes on the operation of the -type flip-flop. (The content of this section is non-examinable) This first section shows how the ed S-R, flip flop obtains control over when the output changes, and makes the inputs active high. The diagram below shows the logic state of the flip-flop in its reset state, with the clock input at Logic 0, and S and R at Logic 0. S R 0 0 0 0 A B 1 1 1 From this diagram it should be clear that in order for the outputs and to change, the input to NAN gate C must become Logic 0, from the work done in the previous topic. This is the output of NAN gate A, which will never go to zero because the clock is at Logic 0 which will always make the output of NAN gate A Logic 1, since to give a Logic 0 output requires two Logic 1 s at the input to a NAN gate. 1 0 1 C 0 1 Therefore it doesn t matter what is done to the S and R inputs in the current configuration, no change to S or R can cause any change at the output. Now we will change the logic level of the clock to Logic 1, and leave inputs S and R at Logic 0 for the time being. 43

Module ET1 Introduction to Analogue and igital Systems. S 0 1 A 1 1 1 C 0 R 1 0 B 1 0 1 1 The circuit looks much the same as it did before, the only exception being that a change to S or R now will make the outputs of NAN gates A and B respectively go to a Logic 0, the logic level required to potentially cause a change in output. This is only a potential opportunity because if R was the first line to be taken to Logic 1 we would end up with the following situation. S 0 1 A 1 1 1 C 0 R 1 0 1 B 1 0 0 1 0 1 In other words no change to the output at all, because the flip-flop was already in its reset state. Consider now what happens if S is taken to a Logic 1 when the clock is at Logic 1. S 0 1 1 A 1 0 1 0 1 0 C 0 1 R 1 0 B 1 0 1 1 1 0 44

Topic 1.3.2 -type Flip-flops. The state of the outputs has been flipped into the SET state where = 1, and = 0. In the S R flip-flop there was another issue in as much that if both inputs were taken to Logic 0 at the same time then both and would give a Logic 1 output which is highly undesirable. What happens in this modified form of the circuit? Well lets take a look. S 0 1 1 A 1 0 1 0 1 0 C 0 1 R 1 0 1 B 1 0 0 1 1 0 1 0 1 This is a little bit confusing on the diagram but assumes that S is taken to logic 1 first and remaining at logic 1, setting the flip-flop, then R is taken to Logic 1, causing a change in the output of NAN gates B and to effectively make and both logic 1. In other words this problem still exists, even though the logic state at which this happens has been reversed, it is now two Logic 1 inputs that create two Logic 1 outputs. The clocked S - R flip flop then only solves two of the three issues identified with the simple S R flip flop. The final addition to the circuit to remove this last issue is the addition of a NOT gate as shown below. 45

Module ET1 Introduction to Analogue and igital Systems. The next section will take you through the timing diagrams to show you what happens as signals change in the circuit. 46

Example. Topic 1.3.2 -type Flip-flops. The circuit below shows a -type flip-flop. The following graphs show the signals applied to the and inputs, complete the remaining graphs to show the output and. As with our previous example we will complete the solution one step at a time. In reality you would complete this in several stages on the same diagram. 47

Module ET1 Introduction to Analogue and igital Systems. Step 1 : Concentrate on the output only look for the change in the clock pulse remember only when the clock is high, can the data be moved from the -input to the output. stays low even though is at Logic 1 because is Logic 0 goes to Logic 1 when changes to Logic 1 because clock is still at Logic 1. 48

Topic 1.3.2 -type Flip-flops. Step 2 : goes to Logic 0. stays high when the clock changes to Logic 0 because is still Logic 1 remains at Logic 1 when changes to Logic 0 because clock is now at Logic 0, so no changes can occur. 49

Step 3 : the next clock cycle. Module ET1 Introduction to Analogue and igital Systems. change to Logic 0 when the clock changes to Logic 1 because is now at Logic 0 remains at Logic 0 when changes to Logic 1 and then back to Logic 0 because the clock is at Logic 0, so no changes can occur. 50

Topic 1.3.2 -type Flip-flops. Step 4 : the next clock cycle. remains at Logic 0 as there is no change in, during the time when the clock is at Logic 1. 51

Step 5 : The final clock cycle. Module ET1 Introduction to Analogue and igital Systems. changes to Logic 1 when the clock changes to Logic 1 because is also changing to now at Logic 1 falls to Logic 0 when changes to Logic 0 because the clock is still at Logic 1. 52

Topic 1.3.2 -type Flip-flops. Step 6 : Complete, which is simply the inverse of. is simply the inverse of Now here s a couple of examples for you to try. Remember: i. there is no need to draw multiple diagrams you can complete your answers on the grid provided. ii. Complete first and then invert it to produce. 53

Supplementary Exercise: Module ET1 Introduction to Analogue and igital Systems. 1. The circuit below shows a -type flip-flop. The following graphs show the signals applied to the and inputs, complete the remaining graphs to show the output and. 54

Topic 1.3.2 -type Flip-flops. 2. The circuit below shows a -type flip-flop. The following graphs show the signals applied to the and inputs, complete the remaining graphs to show the output and. 55

Module ET1 Introduction to Analogue and igital Systems. Solutions to Supplementary Exercise. 1. 56

2. Topic 1.3.2 -type Flip-flops. 57

Module ET1 Introduction to Analogue and igital Systems. Self Evaluation Review Learning Objectives draw a timing diagram to illustrate My personal review of these objectives: the significance of edge triggering; draw a timing diagram to illustrate how a transition gate can be used to produce edge triggering; distinguish between the operation of the clocked data input and the set / reset inputs on a -type flip-flop; design a transition gate to a given specification. Targets: 1. 2. 58

Topic 1.3.2 -type Flip-flops. 59