Flip-Flops.

Slides:



Advertisements
Similar presentations
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Sequential Circuits.
Advertisements

A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
Revision of lecture notes written by Dr. Timothy Drysdale
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
1 Sequential Circuit Latch & Flip-flop. 2 Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK.
COE 202: Digital Logic Design Sequential Circuits Part 1
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Rabie A. Ramadan Lecture 3
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Sequential Circuit Latch & Flip-flop. Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK flip-flop.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Flip Flops.
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Clocks A clock is a free-running signal with a cycle time.
Sequential Logic.
ECE 3130 – Digital Electronics and Design
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Flip-FLops and Latches
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
FLIP FLOPS.
Flip-Flop.
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Sequential Logic and Flip Flops
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip Flop.
Flip-FLops and Latches
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Flip-FLops and Latches
LECTURE 15 – DIGITAL ELECTRONICS
Sequential Logic and Flip Flops
Flip-FLops and Latches
Flip-FLops and Latches
Instructor: Alexander Stoytchev
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Instructor: Alexander Stoytchev
Sequential Logic.
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip Flops Unit-4.
Sequential Circuits UNIT- IV
Flip-FLops and Latches
Sequential Digital Circuits
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Presentation transcript:

Flip-Flops

Combinational Logic The outputs depend only on the state of the inputs all of the time. Any change in the state of one of the inputs will ripple through the circuit immediately. Examples of combinational logic are OR, AND , XOR, NAND, XNOR, NOR gates, and Inverters. These logic gates form the basis of almost all combinational logic circuits. Circuits that change the state of the output in this manner are also known as asynchronous circuits. However, not all asynchronous circuits are combinational logic circuits.

Sequential Logic Has memory; the circuit stores the result of the previous set of inputs. The current output depends on inputs in the past as well as present inputs. The basic element in sequential logic is the flip-flop, which acts as a memory element for one bit of data.

Synchronous vs. Asynchronous 2019/4/8 Synchronous vs. Asynchronous There are two types of sequential circuits: Synchronous sequential circuit: circuit output changes only at some discrete instants of time. This type of circuits achieves synchronization by using a timing signal called the clock. Asynchronous sequential circuit: circuit output can change at any time (clockless). 2019/4/8 Sequential Circuits

Clock generator: Periodic train of clock pulses 2019/4/8 Clock Signal Clock generator: Periodic train of clock pulses Different duty cycles 2019/4/8

Flip-Flop: Is a memory element for one bit of data (0,1) 1 - SR FLIP-FLOP : Acts as a simple memory with two stable states at the two output when S = R = 0 Q and Q’ are the outputs of the S-R latch. When Q=1 this indicates that SR-FF is storing 1 and when Q=0 it means that SR-FF is storing 0. So the state of the flip-flop will be taken from Q

SR-FLIP-FLOP using NOR gates

Clocked Circuits Most flip-flops are clocked so that the output change state based upon the state of the inputs at precisely determined times. This is called a synchronous system.

Timing diagram

2- D Flip-Flop The problem with S = R = 1 can be avoided using a common

Edge-Triggered Flip-Flops These circuits respond to their inputs on either the rising or falling edge of the clock — a precise point in time rather than an interval. Positive edge triggered Negative edge triggered rising edge of clock falling edge of clock D Q D Q additional of a circle means that there is negative edge triggering wedge shows positive edge triggering Q Q

D Flip-Flop Qn+1 C D Q Q D Qn Qn+1 = D description Clear (reset) 1 Set Clear (reset) 1 Set input at clock output before clock output after clock Qn+1 = D

Timing Diagram: Edge-Triggered FF

3- JK Flip-Flop Qn+1 J K Qn description hold 1 clear (reset) set hold 1 clear (reset) set toggle

JK Flip-Flop ( ) (b) Truth table (c) Graphical symbol (a) Circuit J Q 1 t + ( ) (b) Truth table (c) Graphical symbol D Clock (a) Circuit [ Figure 5.16 from the textbook ]

4- Toggle (T) Flip-Flop Qn+1 T Qn 1 1 Note that the output depends on the previous value stored, Qn. This type of flip-flop is rarely bought as a ‘dedicated’ device — you can easily make a T from RS or D flip-flop.

T Flip-Flop using D-Flip Flop

Control Pins Flip-flops and more complicated circuits often have inputs, such as clear, preset. The state of the control pins has priority of the D and Clock inputs when determining the state of the output. Clear (CLR) resets the flip-flop output to 0 — the most common control input Preset (PRE) sets the flip-flop output to 1 Control inputs are often active low, shown by a bar over the label or a circle for negation (or both as in the component below).

Asynchronous Control Another feature of control inputs is that they are often asynchronous. This means that they take effect immediately and do not wait for a clock transition. Compare D takes effect only at a clock transition (positive edge) clear and preset act immediately to ‘overrule’ D Asynchronous inputs are sometimes called direct inputs.

Would this circuit work? What would happen if tpd is longer than the period of the clock? What would happen if tpd is about equal to the clock’s period?

What does this circuit do? Assume that the initial state of Q0, Q1, Q2, and Q3 are all logical zeros. Determine how Q0 changes as the clock pulse goes from 0 →1 →0 →1. After how many clock pulses will Q1 change state from ‘0’ to ‘1’? After how many clock pulses will Q2 change state from ‘0’ to ‘1’? After how many clock pulses will Q3 change state from ‘0’ to ‘1’?

Lecture Review Questions What is the fundamental difference between combinational and sequential logic? What inputs should you put on a SR flip-flop to set it (to 1)? Why must S = R = 1 be avoided? Why do sequential logic circuits need a clock? What is meant by the term edge-triggered flip-flop? Describe the operation of a type D flip-flop. For what are they used? Describe the operation of a JK flip-flop with J = K = 1. Why do some flip-flops have control inputs? In what ways do they differ from the normal inputs, such as J and K?