Digital Logic Chapter 5 Presented by Prof Tim Johnson

Slides:



Advertisements
Similar presentations
Sequential Logic ENEL 111. Sequential Logic Circuits So far we have only considered circuits where the output is purely a function of the inputs With.
Advertisements

Chapter 6 -- Introduction to Sequential Devices
Sequential Logic Building Blocks – Flip-flops
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
EEE515J1_L3-1/55 EEE515J1 ASICs and DIGITAL DESIGN Ian McCrumRoom 5D03B Tel: voice mail on 6 th ring.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
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 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.
Sequential Logic Flip Flops Lecture 4.
Circuits require memory to store intermediate data
EET 1131 Unit 10 Flip-Flops and Registers
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.
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D. 4/10/2002.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Flip-Flops and Related Devices
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
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.
Flip Flop
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
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops and Registers
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Introduction to Chapter 5  Logic circuits studied so far have outputs that respond immediately to inputs at some instant in time.  We now introduce the.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Introduction to Sequential Logic
Sequential logic circuits
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
EKT 221 / 4 DIGITAL ELECTRONICS II
EKT 121 / 4 ELEKTRONIK DIGIT I
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.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip Flops Engr. Micaela Renee Bernardo. A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. Latches.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Dept. of Electrical Engineering
Ch.5 Flip Flops and Related Devices
1 CS 352 Introduction to Logic Design Lecture 6 Ahmed Ezzat Latches, Flip/Flops, Registers, and Counters Ch-11 + Ch-12.
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.
©2010 Cengage Learning SLIDES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
UNIT 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in the book includes: Objectives.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Flip-Flops and Related Devices
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Flip-Flop.
Sequential Logic and Flip Flops
Flip Flop.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential Logic and Flip Flops
FLIP-FLOPS.
Flip-Flops.
Presentation transcript:

Digital Logic Chapter 5 Presented by Prof Tim Johnson Wentworth Institute of Technology Department of Electrical Engineering and Tech. Boston, MA Text: Digital Systems by Ronald Tocci

Introduction to Chapter 5 Logic circuits studied so far have outputs that respond immediately to inputs at some instant in time. We now introduce the concept of memory. The flip-flop, abbreviated FF, is a key memory element. The outputs of a flip flop are Q and Q is understood to be the normal output, is always the opposite. When the normal output (Q) is placed in the high or 1 state we say the FF has been set. When the normal output (Q) is placed in the low or 0 state we say the FF has been cleared or reset.

NAND Latch: Info The NAND gate latch or simply latch is a basic FF. Two NAND gates are cross-coupled so that the output of NAND-1 is connected to one of the inputs of NAND-2, and vice versa. The gate outputs, Q and , are the latch outputs. Under normal conditions, these two outputs will always be the inverse of each other. There are two inputs:

NAND Latch: Function Table The SET and RESET inputs are active low. The output will change when the input is pulsed low.

NAND Latch: Waveform Determine the waveform for Q for the inputs given below. Assume that initially Q = 0.

Simplified Block Symbol NAND Latch: Block Symbol Alternate Representation Simplified Block Symbol

NOR Latch: Info The NOR latch is also a basic FF. Two NOR gates are cross-coupled so that the output of NOR-1 is connected to one of the inputs of NOR-2, and vice versa. The arrangement of a NOR latch, as shown below, is similar to a NAND latch except that the Q and outputs have reversed positions.

NOR Latch: Function Table Simplified Block Symbol NOR Latch Function Table The SET and RESET inputs are active high. The output will change when the input is pulsed high.

NOR Latch: Waveform Determine the Q waveform for the NOR latch. Assume that initially Q = 0.

Digital Pulses Signals that switch between active and inactive states are called pulse waveforms. A positive pulse has an active high level. A negative pulse has an active low level. The transition from low to high on a positive pulse is called rise time (tr). Rise time is measured between the 10% and 90% points on the leading edge of the voltage waveform. The transition from high to low on a positive pulse is called fall time (tf). Fall time is measured between the 90% and 10% points on the trailing edge of the voltage waveform.

Digital Pulses: Rise and Fall Times

Clock Signals and Clocked FFs Asynchronous system – outputs can change state at any time the input(s) change. Synchronous system – output can change state only at a specific time in the clock cycle. The clock signal is a rectangular pulse train or square wave. Positive going transition (PGT) – when clock pulse 0  1 Negative going transition (NGT) – when clock pulse 1  0. Transitions are also called edges.

Clock Signals and Clocked FFs

Clock Signals and Clocked FFs Clocked FFs change state on one or the other clock transitions. Some common characteristics: Clock inputs are labeled CLK, CK, or CP. A small triangle at the CLK input indicates that the input is activated with a PGT (see next page) A bubble and a triangle indicates that the CLK input is activated with a NGT (see next page) Control inputs have an effect on the output only at the active clock transition (NGT or PGT). These are also called synchronous control inputs. The control inputs get the FF outputs ready to change, but the change is not triggered until the CLK edge.

Clock Signals and Clocked FFs

Clock Signals and Clocked FFs Setup time (tS) is the minimum time interval before the active CLK transition that the control input must be kept at the proper level. Hold time (tH) is the time following the active transition of the CLK during which the control input must kept at the proper level.

Clocked S-R Flip-Flop: Function The SET-RESET FF will change states at the positive going or negative going clock edge.

Clocked S-R Flip-Flop: Waveform

Clocked S-R Flip-Flop: Internal Circuitry See Next Page for the Edge Detector

Edge Detectors for (a) PGT and (b) NGT Clocked S-R Flip-Flop: Internal Circuitry Edge Detectors for (a) PGT and (b) NGT

Clocked J-K Flip-Flop: Info Operates like the S-R FF. J is SET, K is RESET. Difference from the S-R FF: When J and K are both high, the output is toggled from whatever state it is into the opposite state – the toggle mode. May be PGT or NGT. Has the ability to do everything the S-R FF does, plus operating in the toggle mode.

Clocked J-K Flip-Flop: Function Table PGT NGT

Clocked J-K Flip-Flop: Internal Circuitry

Clocked J-K Flip-Flop: Waveform

Exercises (Clocked J-K FF)

Exercises (Clocked NOR FF)

Clocked D Flip-Flop: Info One data input. The output changes to the value of the input at either the positive going or negative going clock trigger. May be implemented with a J-K FF by tying the J input to the K input through an inverter. Useful for parallel data transfer.

Clocked D Flip-Flop: Function

Clocked D Flip-Flop: Parallel Data Transfer

D Latch (Transparent Latch): Info One data input. The clock has been replaced by an enable line. The device is NOT edge triggered. The output follows the input only when EN is high.

D Latch: Function

D Latch: Waveform

Asynchronous (Override) Inputs Inputs that depend on the clock are synchronous. Most clocked FFs have asynchronous inputs that do not depend on the clock. The labels PRE and CLR are used for asynchronous inputs. Active low asynchronous inputs will have a bar over the labels and inversion bubbles. If the asynchronous inputs are not used they will be tied to their inactive state. Note: We didn’t talk about this. The materials are included here for your information.

Asynchronous Inputs: Function Note: We didn’t talk about this. The materials are included here for your information.

IEEE/ANSI Symbols Note the differences in the representations below. Note: We didn’t talk about this. The materials are included here for your information.

Flip-Flop Timing Considerations Important timing parameters: Setup and hold times Propagation delay – the time for a signal at the input to be shown at the output. Maximum clocking frequency – highest clock frequency that will give a reliable output. Clock pulse high and low times – minimum time that clock must high before going low, and low before gong high. Propagation delay may cause unpredictable outputs. Note: We didn’t talk about this. The materials are included here for your information.

Flip-Flop Applications Examples of applications: Synchronization Synchronous Data Transfer Frequency Division Many FF applications are categorized as sequential, which means that the output follows a predetermined sequence of states.

Application: Synchronization (1) Most systems are primarily synchronous in operation, where changes depend on the clock. Asynchronous and synchronous operations are often combined. The random nature of asynchronous inputs can result in unpredictable results. Example shown on the next page describes the problem and a solution using FF.

Application: Synchronization (2) A Synchronization Problem: The synchronization problem solved by FF:

How about three inputs in sequence? Application: Detecting an Input Sequence FFs provide features that pure combinational logic gates do not. If an output is desired only when inputs change state in sequence, an arrangement similar to the following figure can be used. How about three inputs in sequence?

Application: Synchronous Data Transfer (1) FFs are commonly used for storage and transfer of data in binary form. Groups of FFs used for storage are registers. Data transfers take place when data is moved between registers or FFs. Synchronous transfers take place at either PGT or NGT of the clock. Transferring the bits of a register simultaneously is a parallel transfer. Transferring the bits of a register one bit at a time is a serial transfer.

Application: Parallel Data Transfer Parallel Transfer: Register contents are transferred simultaneously with a single clock cycle. Faster, the circuit is more complex.

Application: Serial Data Transfer Serial Transfer: Register contents are transferred one bit at a time, with a clock pulse for each bit. Slower, the circuit is simpler.

Application: Frequency Division & Counting (1) FFs are often used to divide a frequency.

Application: Frequency Division & Counting (2) The same circuit is also acting as a binary counter.

State Transition Diagram Application: Frequency Division & Counting (3) The counter has 23 = 8 different states. It is referred to as a MOD-8 counter, where the MOD number indicates the number of states in the counting sequence. In general, if N flip-flops are connected in a similar arrangement, the counter has 2N different states and so it is a MOD-2N counter. It can count up to 2N-1 before returning to its 0 state. State Transition Diagram

Microcomputer Application