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

Similar documents
5: Sequential Logic Latches & Flip-flops

Rangkaian Sekuensial. Flip-flop

LATCHES & FLIP-FLOP. Chapter 7

CHAPTER 1 LATCHES & FLIP-FLOPS

EKT 121/4 ELEKTRONIK DIGIT 1

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

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

Digital Fundamentals: A Systems Approach

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

Unit 11. Latches and Flip-Flops

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

RS flip-flop using NOR gate

D Latch (Transparent Latch)

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

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

Chapter 8 Sequential Circuits

CHAPTER 4: Logic Circuits

Asynchronous (Ripple) Counters

Lecture 8: Sequential Logic

Synchronous Sequential Logic

Experiment 8 Introduction to Latches and Flip-Flops and registers

Chapter 11 Latches and Flip-Flops

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

ELCT201: DIGITAL LOGIC DESIGN

Chapter 4. Logic Design

Other Flip-Flops. Lecture 27 1

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 Logic Basics

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

Introduction to Sequential Circuits

RS flip-flop using NOR gate

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

MC9211 Computer Organization

Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Chapter. Synchronous Sequential Circuits

CHAPTER 4: Logic Circuits

CHW 261: Logic Design

INTRODUCTION TO SEQUENTIAL CIRCUITS

Sequential Logic and Clocked Circuits

Introduction to Microprocessor & Digital Logic

Engr354: Digital Logic Circuits

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

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

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Unit-5 Sequential Circuits - 1

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

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

ECE 341. Lecture # 2

Logic Design. Flip Flops, Registers and Counters

Chapter 5 Flip-Flops and Related Devices

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

DIGITAL CIRCUIT COMBINATORIAL LOGIC

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

Digital Circuits ECS 371

Synchronous Sequential Logic. Chapter 5

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

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

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

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.

Vignana Bharathi Institute of Technology UNIT 4 DLD

Chapter 5: Synchronous Sequential Logic

Flip-Flops and Sequential Circuit Design

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

Combinational vs Sequential

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

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

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

FLIP-FLOPS AND RELATED DEVICES

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

EET2411 DIGITAL ELECTRONICS

Module -5 Sequential Logic Design

UNIT IV. Sequential circuit

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

PGT104 Digital Electronics. PGT104 Digital Electronics

Digital Logic Design I

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

MODULE 3. Combinational & Sequential logic

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

CHAPTER1: Digital Logic Circuits

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

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

CS302 - Digital Logic Design FAQs By

Chapter 5 Synchronous Sequential Logic

The NOR latch is similar to the NAND latch

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

Counter dan Register

CPS311 Lecture: Sequential Circuits

Sequential Circuits: Latches & Flip-Flops

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

6. Sequential Logic Flip-Flops

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

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

DIGITAL ELECTRONICS MCQs

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

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Digital Fundamentals

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Synchronous Sequential Logic

Transcription:

pp. 4-9 Krishi Sanskriti Publications http://www.krishisanskriti.org/jbaer.html Review of Flip-Flop Divya Aggarwal Student, Department of Physics and Astro-Physics, University of Delhi, New Delhi Abstract: The world is growing at an extra fast speed and so is technology. Today small devices with maximumm efficiency are in demand and so came the flip flops. In electronics, they are used as data storage elements which can store state. They can be either simple or clocked; here we will discuss all of them such as S-R Flip Flop, J-K Flip Flop, D-Flip Flop. There are Positive edges triggered as well as Negative edge triggered Flip Flops. They can also be connected together to form a master slave such that race around condition can be avoided.all of these topics will be discussed in detail in the paper Flip Flop. INTRODUCTION A sequential circuit consists of a feedback path, and employs some memory elements. Fig. : sequential circuit Sequential circuit = Combinational logic + Memory Elements There are two types of sequential circuits: a. synchronous: outputs change only at specific time b. asynchronous: outputs change at any time Multivibrator: a class of sequential circuits. They can be: bistable (2 stable states) monostable or one-shot ( stable state) astable (no stable state) Bistable logic devices: latches and flip-flops. Latches and flip-flops differ in the method used for changing their state. Flip-flop also called as latch is a circuit or a bi-stable multivibrator that has two stable states and can be used to store state information. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic and is used in computers, communications, counting of pulses, synchronizing variably-timed input signals and many other types of systems. When used in a finite-state machine, the output and next state depend on its current input and also on its current state (and hence, previous inputs). Flip-flops can be either simple (transparent or opaque) or clocked (synchronous or edgewhereas a flip-flop is edge- triggered A latch is level-sensitive, sensitive. That is, when a latch is enabled it becomes transparent, while a flip flop's output only changes on a single type (positive going or negative going) of clock edge.the difference between a latch and a flip-flop is that a latch is asynchronous, and the outputs can change as soon as the inputs do (or at least after a small propagation delay). A flip- and only changes flop, on the other hand, is edge-triggered state when a control signal goes from high to low or low to high. Memory element: a device which can remember value indefinitely, or change value on command from its inputs. Characteristic table: Q(t): current state Q(t+) or Q + : next state

Review of Flip-Flop 5 Clock is usually a square wave. Command (at time t) Set Reset Q(t) Memorise / No Change 0 X X Q(t+) 0 0 Fig. 2: characterstic table Fig. 3: Clock output Two types of triggering/activation: a. pulse-triggered b. edge-triggered in Pulse-triggered latches are ON =, OFF = 0 whereas in Edge-triggered flip-flops are: a. positive edge-triggered (ON = from 0 to ; OFF = other time) b. negative edge-triggered (ON = from to 0; OFF = other time) Fig. 4: flip flop with NOR gate b. NAND gate Latch For active-low input S'-R' latch (also known as NAND gate latch), R'=LOW (and S'=HIGH) a RESET state ; S'=LOW (and R'=HIGH) a SET state both inputs HIGH a no change both inputs LOW a Q and Q' both HIGH (invalid)! Drawback of S-R latch: invalid condition exists and must be avoided. There are several different types of flip-flop each with its own uses. The four main types of flip-flop are : SR JK D SR Flip Flop a) NOR gate Latch The design of such a flip flop includes two inputs, called the SET [S] and RESET [R]. There are also two outputs, Q and Q. when Q is high, the latch is in SET state whereas when Q is low, the latch is in RESET state. For active HIGH input S-R latch also n\known as NOR gate latch R=HIGH & S=LOW==RESET state S=HIGH & R=LOW==SET state BOTH INPUTS low ==no change BOTH INPUT HIGH== Q and Q both LOW (invalid) and Q'. Fig. 5: flip flop with NAND gate

6 Divya Aggarwal JK Flip Flop In J-K flip-flop Q and Q' are fed back to the pulse-steering NAND gates. There is no invalid state and it Includes a toggle state. J=HIGH (and K=LOW) a SET state K=HIGH (and J=LOW) a RESET state both inputs LOW a no change both inputs HIGH a toggle Q follows D at the clock edge. We can convert S-R flip-flop into a D flip-flop by adding an inverter. A positive edge-triggered D flip-flop formed with an S-R flip-flop. Fig. 9: D Flip Flop D CLK Q(t+) 0 0 Comments Set Reset Fig. 6: J-K Flip flop J K CLK Q(t+) Comments 0 0 Q(t) No change 0 0 Reset 0 Set Q(t)' Toggle Fig. 0: truth table The Application of D-Flip Flop is Parallel data transfer. it is used to transfer logic-circuit outputs X, Y, Z to flip-flops Q, Q 2 and Q 3 for storage. Fig. 7: truth table Q J K Q ( t + ) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Fig. 8: truth table D-Flip Flop D flip-flop is a single input D (data) wheree D=HIGH a SET state D=LOW a RESET state Fig. : Parallel data transfer Edge Triggered Flip Flop Edge triggered flip-flop changes only when the clock C changes. An edge-triggered flip-flop changes states either at the positive edge (rising edge) or at the negative edge (falling edge) of the clock pulse on the control input. The S-R, J-K and D inputs are called synchronous inputs because data on these inputs are transferred to the flip-flop'triggering edge of the clock pulse. On the other hand, the output only on the direct set (SET) and clear (CLR) inputs are called

Review of Flip-Flop 7 asynchronous inputs, as they are inputs that affect the state of the flip-flop independent of the clock. Few truth tables of S-R, J-K and D flip flop are: Fig. 2: S-R Flip Flop the advantage of being edge-triggered, making it easier to use in larger circuits, since the inputs to a flip-flop often depend on the state of its output. The circuit consists of two D flip-flops connected together. When the clock is high, the D input is stored in the first latch, but the second latch cannot change state. A master-slave flipflop is normally constructed from two flip-flops: one is the Master flip-flop and the other is the Slave. In addition to these two flip-flops, the circuit also includes an inverter. The inverter is connected to clock pulse in such a way that the inverted CP is given to the slave flip-flop. For example, if the CP=0 for a master flip-flop, then the output of the inverter is, and this value is assigned to the slave flip-flop. In other words if CP=0 for a master flip-flop, then CP= for a slave flip-flop. A master-slave flip flop can be constructed using any type of flip-flop which forms a combination with a clocked RS flipflop, and with an inverter as slave circuit. Fig. 3: J-K Flip Flop When the clock is low, the first latch's output is stored in the second latch, but the first latch cannot change state. The result is that output can only change state when the clock makes a transition from high to low. For example: J-K Flip flop Fig.4: D Flip Flop MASTER-SLAVE We can use a clock to synchronize our latches with the ALU.The clock signal is connected to the latch control input C.The clock controls the latches. When it becomes, the latches will be enabled for writing. The clock period must be set appropriately for the ALU. It should not be too short. Otherwise, the latches will start writing before the ALU operation has finished. It should not be too long either. Otherwise, the circuit will be slower than necessary. The Master-Slave Flip-Flop is basically two gated SR flipflops connected together in a series configuration with the slave having an inverted clock pulse. The outputs from Q and Q from the Slave flip-flop are fed back to the inputs of the Master with the outputs of the Master flip flop being connected to the two inputs of the Slave flip flop. If the circuit is a master-slave D flip-flop then it takes only a single input, the D (data) input. The master-slave configuration has Fig. 5: J-K Flip Flop master slave During the positive edge of the flip-flop, the information from external inputs J and K is passed through to the master flipflop. It is held there until the negative edge transition of the flip-flop occurs. Then the information is passed to the slave, clocked RS flip-flop, and the output is observed. Usually the clock pulse is 0 at start, so the values of J and K will not affect the state of the system, and the master flip-flop is isolated. But the output of gate 9 is, hence the slave flip-flop provides the output Q=Y and Q =Y. When the clock pulse goes to, the slave is isolated; J and K inputs may affect the state of the system. The slave flip-flop is isolated until the CP goes to 0. When the CP goes back to 0, information is passed from the master flip-flop to the slave and output is obtained.

8 Divya Aggarwal Current digital systems make heavy use of master-slave flipflops. The output of some master-slave flip-flops is given as an input to the other master-slave flip-flops. If the clock pulse inputs to all master-slave flip-flops are synchronized then at the beginning of each clock pulse, some of the master elements changes state. But the output remains in the previous state without any change (because slave is isolated and disabled). Again when CP returns to 0, the output changes sate and the master flip-flops are disabled. So the new state of output does not have any effect on the master input until CP=. Therefore both the state of the system and the input elements can be changed simultaneously with a single clock pulse. So the binary content of one flip-flop can be transferred to second and the content of second can be transferred to first simultaneously during the same clock pulse.. In other words, the Master-Slave JK Flip flop is a Synchronous device as it only passes data with the timing of the clock signal The master-slave flip-flops are widely used in MEMORY REGISTERS. REFERENCES [] http://en.wikipedia.org/wiki/flip-flop_(electronics) [2] http://en.wikibooks.org/wiki/digital_circuits/flip-flops [3] http://www.circuitstoday.com/flip-flops [4] http://isweb.redwoods.edu/instruct/calderwoodd/diglogic/s rflip.htm [5] http://www.circuitstoday.com/flip-flops cs04- presentation [6] http://osp.mans.edu.eg/cs22/ff_edge_triggered.htm [7] http://www.falstad.com/circuit/e-masterslaveff.html [8] http://www.electronics-tutorials.ws/sequential/seq_2.html [9] http://www.electronics-tutorials.ws/sequential/seq_2.html