Lecture 8: Flip-flops

Similar documents
CHAPTER 11 LATCHES AND FLIP-FLOPS

Module 3: Floyd, Digital Fundamental

Lecture 8: Synchronous Digital Systems

Engr354: Digital Logic Circuits

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Theory of Logic Circuits. Laboratory manual. Exercise 3

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

ECE380 Digital Logic

Lesson 12 Sequential Circuits: Flip-Flops

Memory Elements. Combinational logic cannot remember

Chapter 9 Latches, Flip-Flops, and Timers

CS311 Lecture: Sequential Circuits

BINARY CODED DECIMAL: B.C.D.

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Sequential Logic Design Principles.Latches and Flip-Flops

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

7. Latches and Flip-Flops

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

Counters and Decoders

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Digital Logic Design Sequential circuits

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Chapter 5. Sequential Logic

Chapter 8. Sequential Circuits for Registers and Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Counters & Shift Registers Chapter 8 of R.P Jain

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Fig1-1 2-bit asynchronous counter

Digital Electronics Detailed Outline

Flip-Flops, Registers, Counters, and a Simple Processor

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Sequential Logic: Clocks, Registers, etc.

Upon completion of unit 1.1, students will be able to

Counters. Present State Next State A B A B

Set-Reset (SR) Latch

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

CSE140: Components and Design Techniques for Digital Systems

Contents COUNTER. Unit III- Counters

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Modeling Latches and Flip-flops

Lecture-3 MEMORY: Development of Memory:

Master/Slave Flip Flops

Digital Fundamentals

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

CHAPTER 3 Boolean Algebra and Digital Logic

Combinational Logic Design Process

Counters are sequential circuits which "count" through a specific state sequence.

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

路 論 Chapter 15 System-Level Physical Design

Layout of Multiple Cells

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

DEPARTMENT OF INFORMATION TECHNLOGY

CHAPTER 11: Flip Flops

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Asynchronous Counters. Asynchronous Counters

ASYNCHRONOUS COUNTERS

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Wiki Lab Book. This week is practice for wiki usage during the project.


Lecture 7: Clocking of VLSI Systems

Decimal Number (base 10) Binary Number (base 2)

A New Paradigm for Synchronous State Machine Design in Verilog

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

DM7474 Dual Positive-Edge-Triggered D-Type Flip-Flops with Preset, Clear and Complementary Outputs

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Latch Timing Parameters. Flip-flop Timing Parameters. Typical Clock System. Clocking Overhead

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

Digital Controller for Pedestrian Crossing and Traffic Lights

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

ECE232: Hardware Organization and Design. Part 3: Verilog Tutorial. Basic Verilog

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Gates, Circuits, and Boolean Algebra

The components. E3: Digital electronics. Goals:

Cascaded Counters. Page 1 BYU

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Transcription:

Points Addressed in this Lecture Properties of synchronous and asynchronous sequential circuits Overview of flip-flops and latches Lecture 8: Flip-flops Professor Peter Cheung Department of EEE, Imperial College London (Floyd 7.1-7.4) (Tocci 5.1-5.9) 8.1 8.2 General digital system diagram Properties of Sequential Circuits So far we have seen Combinational Logic the output(s) depends only on the current values of the input variables Here we will look at Sequential Logic circuits the output(s) can depend on present and also past values of the input and the output variables Sequential circuits exist in one of a defined number of states at any one time they move "sequentially" through a defined sequence of transitions from one state to the next The output variables are used to describe the state of a sequential circuit either directly or by deriving state variables from them 8.3 8.4

Synchronous and Asynchronous Sequential Logic Synchronous the timing of all state transitions is controlled by a common clock changes in all variables occur simultaneously Asynchronous state transitions occur independently of any clock and normally dependent on the timing of transitions in the input variables changes in more than one output do not necessarily occur simultaneously Clock A clock signal is a square wave of fixed frequency Often, transitions will occur on one of the edges of clock pulses i.e. the rising edge or the falling edge Flip-Flops Flip-flops are the fundamental element of sequential circuits bistable (gates are the fundamental element for combinational circuits) Flip-flops are essentially 1-bit storage devices outputs can be set to store either 0 or 1 depending on the inputs even when the inputs are de-asserted, the outputs retain their prescribed value Flip-flops have (normally) 2 complimentary outputs Q and Q Three main types of flip-flop R-S J-K D-type 8.5 8.6 Flip-Flop NAND Gate Latch FF = latch = bistable circuit A NAND latch has two possible resting states when SET = CLEAR = 1. 8.7 8.8

NAND Gate Latch (cont.) NAND Gate Latch (cont.) Negative Pulse on SET input put the latch in a HIGH (SET) state Negative Pulse on CLEAR input put the latch in a LOW (Clear or RESET) state 8.9 8.10 NAND Gate Latch (cont.) Alternative representation of SR Latch Truth table for the NAND Set-Clear (Set-Reset or SR) Latch 8.11 8.12

SR Latch to deglitch a switch NOR gate Latch Made of two cross-coupled NOR gates 8.13 8.14 Clock Signals and Clocked FFs Digital systems can operate - Asynchronously: output can change state whenever inputs change - Synchronously: output only change state at clock transitions (edges) Clock signal - Outputs change state at the transition (edge) of the input clock - Positive-going transitions (PGT) - Negative-going transitions (NGT) Control inputs must be held stable for (a) a time t S prior to active clock transition and for (b) a time t H after the active block transition. 8.15 8.16

Clocked S-C FF Internal Circuitry of S-C FF Simplified version of the internal circuitry for an edge-triggered S-C FF (a) Clocked S-C FF that responds only to the positive-going edge of a clock pulse; (b) truth table; (c) Typical waveforms. Implementation of edgedetector circuits used in edge-triggered FFs: (a) PGT; (b) NGT. The duration of the CLK* pulses is typically 2-5 ns 8.17 8.18 Clocked J-K FF Internal circuitry of edge-triggered J-K flip-flop (a) Clocked J-K flip-flop that responds only to the positive edge of the clock; (b) waveforms. J=K=1 condition does not result in an ambiguous output 8.19 8.20

Clocked D Flip-Flop Clocked D Flip-Flop from J-K Flip-Flop D FF that triggers only on positive-going transitions; (b) waveforms. 8.21 8.22 Parallel Data Transfer using D-FF D Latch (transparent latch) 8.23 8.24

Transparent Latch Timing Asynchronous Inputs to FF The S, C, J, K, and D inputs is called synchronous inputs because their effects on the output are synchronized with the CLK input. Asynchronous inputs (override inputs) operate independently of the synchronous inputs and clock and can be used to set the FF to 1/0 states at any time. 8.25 8.26 Asynchronous Inputs cont. Points Addressed in the next part of the Lecture Introduction to Moore model and Mealy model state diagrams State diagrams and state tables of flip-flops Timing parameters of flip-flops 8.27 8.28

State Diagrams There are two ways to draw state diagrams: Moore model and Mealy model we will look first at the Moore model using the Reset-Set (RS) flip-flop as an example A Moore model state diagram shows a circle for each of the various "states" a circuit can be in "states" refers to the logic levels around the circuit labels in the circles to show the state number and the associated output for that state an arrow for each possible transition between states labels on the arrows to show the required conditions to transit between states State Diagram of RS Flip-Flop The circuit must be in either state 1 or state 2. S input 10 00 00 01 1/0 2/1 10 In state 1 Q output = 0 an input of S=1, R=0 causes a transition to state 2 any other input leaves the circuit in state 1 (an input of S=R=1 is not allowed for RS flip-flops) In state 2 Q output = 1 an input of S=0, R=1 causes a transition to state 1 any other input leaves the circuit in state 2 01 State Number R input Associated Q Output 8.29 8.30 State Table of RS-Flip-Flop A state table is a tabular form of the state diagram one row for each possible state Shows the next state which will be entered for all possible combinations of inputs The ordering of the inputs is same as for Karnaugh map Example Present State Next state inputs: SR 00 01 11 10 1 1 1 X 2 2 2 1 X 2 The circuits is in state 2; the inputs are S=1, R=0. What is the next state? state 2 8.31 8.32

Assigned State Table of RS-Flip-Flop Differs from a State Table by showing the associated outputs not the state numbers Example Present Output Next output inputs: SR 00 01 11 10 0 0 0 X 1 1 1 0 X 1 The output of the circuits is 1; the inputs are S=1, R=0. What is the next output? 1 Boolean Expression from Assigned State Table We continue the example of the RS flip-flop and call the "next output" Q+ The assigned state table defines the logical relationship between the inputs (S and R) and Q+ a Boolean relationship Hence we can re-draw the assigned state table as a Karnaugh map Q\SR 00 01 11 10 0 0 0 X 1 1 1 0 X 1 8.33 8.34 Q\SR 00 01 11 10 0 0 0 X 1 1 1 0 X 1 The Boolean expression is then obtained by grouping terms as usual + Q = QR+ S + Q = QS + R Such equations are called characteristic equations D-type Implementation Moore Model State Diagram 1 0 1/0 2/1 1 0 Assigned State Table Characteristic Equation Present Output Next output 0 1 0 0 1 1 0 1 Q + = D 8.35 8.36

Mealy Model State Diagrams Similar principles to Moore model but different labelling State circles are labelled only with state numbers Outputs are written next to inputs on the arrows E.g. JK Flip-flop Inputs J and K Output 00/0 01/0 10/1, 11/1 1 2 01/0, 11/0 00/1 10/1 State Number 8.37