Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.

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

COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
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.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
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.
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
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.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
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.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
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.
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
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.
ACOE361 – Digital Systems Design. Useful information Instructor: Lecturer K. Tatas Office hours: Mo5, Tu3, We6-8, Fri5 Prerequisites: ACOE201 (ACOE161)
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
JK Flip-Flop. JK Flip-flop The most versatile of the flip-flops Has two data inputs (J and K) Do not have an undefined state like SR flip-flops – When.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Introduction to Sequential Logic
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
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.
 Flip-flops are digital logic circuits that can be in one of two states.  Flip-flops maintain their state indefinitely until an input pulse called a.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
7. Latches and Flip-Flops Digital Computer Logic.
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.
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.
LATCHES AND FLIP-FLOPS
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
LATCHED, FLIP-FLOPS,AND TIMERS
Flip-FLops and Latches
Flip Flops.
Digital Design Lecture 9
FLIP FLOPS.
Flip Flop.
Flip-FLops and Latches
Flip-FLops and Latches
Sequential logic circuits
Digital Design Fundamentals
LECTURE 15 – DIGITAL ELECTRONICS
Elec 2607 Digital Switching Circuits
Flip-FLops and Latches
Flip-FLops and Latches
FLIP-FLOPS.
Flip-Flops.
Flip Flops Unit-4.
Flip-FLops and Latches
Sequential Digital Circuits
Presentation transcript:

Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas

ACOE161 - Digital Logic for Computers - Frederick University 2 Sequential Digital Circuits Sequential circuits are digital circuits in which the outputs depend not only on the current inputs, but also on the previous state of the output. They basic sequential circuit elements can be divided in two categories: Level-sensitive (Latches) –High-level sensitive –Low-level sensitive Edge-triggered (Flip-flops) –Rising (positive) edge triggered –Falling (negative) edge triggered –Dual-edge triggered

ACOE161 - Digital Logic for Computers - Frederick University 3 The Set/Reset (SR) Latch The Set/Reset latch is the most basic unit of sequential digital circuits. It has two inputs (S and R) and two outputs outputs Q and Q’. The two outputs must always be complementary, i.e if Q is 0 then Q’ must be 1, and vice-versa. The S input sets the Q output to a logic 1. The R input resets the Q output to a logic 0.

ACOE161 - Digital Logic for Computers - Frederick University 4 The Gated Set/Reset (SR) Latch To be able to control when the S and R inputs of the SR latch can be applied to the latch and thus change the outputs, an extra input is used. This input is called the Enable. If the Enable is 0 then the S and R inputs have no effect on the outputs of the SR latch. If the Enable is 1 then the Gated SR latch behaves as a normal SR latch.

ACOE161 - Digital Logic for Computers - Frederick University 5 SR Latch :- Example Complete the timing diagrams for : (a)Simple SR Latch (b)SR Latch with Enable input. Assume that for both cases the Q output is initially at logic zero.

ACOE161 - Digital Logic for Computers - Frederick University 6 The Data (D) Latch A problem with the SR latch is that the S and R inputs can not be at logic 1 at the same time. To ensure that this can not happen, the S and R inputs can by connected through an inverter. In this case the Q output is always the same as the input, and the latch is called the Data or D latch. The D latch is used in Registers and memory devices.

ACOE161 - Digital Logic for Computers - Frederick University 7 The JK Latch Another way to ensure that the S and R inputs can not be at logic 1 simultaneously, is to cross connect the Q and Q’ outputs with the S and R inputs through AND gates. The latch obtained is called the JK latch. In the J and K inputs are both 1 then the Q output will change state (Toggle) for as long as the Enable 1, thus the output will be unstable. This problem is avoided by ensuring that the Enable is at logic 1 only for a very short time, using edge detection circuits.

ACOE161 - Digital Logic for Computers - Frederick University 8 Latches and Flip-Flops Latches are also called transparent or level triggered flip flops, because the change on the outputs will follow the changes of the inputs as long as the Enable input is set. Edge triggered flip flops are the flip flops that change there outputs only at the transition of the Enable input. The enable is called the Clock input.

ACOE161 - Digital Logic for Computers - Frederick University 9 Edge Detection Circuits Edge detection circuits are used to detect the transition of the Enable from logic 0 to logic 1 (positive edge) or from logic 1 to logic 0 (negative edge). The operation of the edge detection circuits shown below is based on the fact that there is a time delay between the change of the input of a gate and the change at the output. This delay is in the order of a few nanoseconds. The Enable in this case is called the Clock (CLK)

ACOE161 - Digital Logic for Computers - Frederick University 10 The JK Edge Triggered Flip Flop The JK edge triggered flip flop can be obtained by inserting an edge detection circuit at the Enable (CLK) input of a JK latch. This ensures that the outputs of the flip flop will change only when the CLK changes (0 to 1 for +ve edge or 1 to 0 for –ve edge)

ACOE161 - Digital Logic for Computers - Frederick University 11 The D Edge Triggered Flip Flop The D edge triggered flip flop can be obtained by connecting the J with the K inputs of a JK flip through an inverter as shown below. The D edge trigger can also be obtained by connecting the S with the R inputs of a SR edge triggered flip flop through an inverter.

ACOE161 - Digital Logic for Computers - Frederick University 12 The Toggle (T) Edge Triggered Flip Flop The T edge triggered flip flop can be obtained by connecting the J with the K inputs of a JK flip directly. When T is zero then both J and K are zero and the Q output does not change. When T is one then both J and K are one and the Q output will change to the opposite state, or toggle.

ACOE161 - Digital Logic for Computers - Frederick University 13 Flip Flops with asynchronous inputs (Preset and Clear) Two extra inputs are often found on flip flops, that either clear or preset the output. These inputs are effective at any time, thus are called asynchronous. If the Clear is at logic 0 then the output is forced to 0, irrespective of the other normal inputs. If the Preset is at logic 0 then the output is forced to 1, irrespective of the other normal inputs. The preset and the clear inputs can not be 0 simultaneously. In the Preset and Clear are both 1 then the flip flop behaves according to its normal truth table.

ACOE161 - Digital Logic for Computers - Frederick University 14 Data (D) Latch :- Example Complete the timing diagrams for : (a)D Latch (b)JK Latch Assume that for both cases the Q output is initially at logic zero.

ACOE161 - Digital Logic for Computers - Frederick University 15 JK Edge Triggered Flip Flop :- Example Complete the timing diagrams for : (a)Positive Edge Triggered JK Flip Flop (b)Negative Edge Triggered JK Flip Flop Assume that for both cases the Q output is initially at logic zero.

ACOE161 - Digital Logic for Computers - Frederick University 16 D and T Edge Triggered Flip Flops :- Example Complete the timing diagrams for : (a)Positive Edge Triggered D Flip Flop (b)Positive Edge Triggered T Flip Flop (c)Negative Edge Triggered T Flip Flop (d)Negative Edge Triggered D Flip Flop

ACOE161 - Digital Logic for Computers - Frederick University 17 JK Flip Flop With Preset and Clear:- Example Complete the timing diagrams for : (a)Positive Edge Triggered JK Flip Flop (b)Negative Edge Triggered JK Flip Flop. Assume that for both cases the Q output is initially at logic zero.

ACOE161 - Digital Logic for Computers - Frederick University 18 Level Triggered Master Slave JK Flip Flop A Master Slave flip flop is obtained by connecting two SR latches as shown below. This flip flop reads the inputs when the clock is 1 and changes the output when the clock is at logic zero.

ACOE161 - Digital Logic for Computers - Frederick University 19 Edge Triggered Master Slave JK Flip Flop A Master Slave flip flop is obtained by connecting two SR latches as shown below. This flip flop reads the inputs when the clock is 1 and changes the output when the clock is at logic zero.

ACOE161 - Digital Logic for Computers - Frederick University 20 Sequential circuit example 1

ACOE161 - Digital Logic for Computers - Frederick University 21 Sequential circuit example 2

ACOE161 - Digital Logic for Computers - Frederick University 22 Sequential circuit example 3