Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
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 Sequential Systems A combinational system is a system whose outputs depend only upon its current inputs. A sequential system is a system whose outputs.
Sequential Logic Latches & Flip-flops
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Circuits require memory to store intermediate data
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.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
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.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
Sequential Circuit Introduction to Counter
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
A presentation on Counters
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
Rabie A. Ramadan Lecture 3
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Sequential logic circuits
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
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.
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.
EEE 301 DIGITAL ELECTRONICS
Memory Elements. Outline  Introduction  Memory elements.
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.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Sequential Logic.
Sequential Logic Counters and Registers
Synchronous 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.
CS1104 – Computer Organization
Sequential Logic and Flip Flops
Flip Flop.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Sequential logic circuits
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
LECTURE 15 – DIGITAL ELECTRONICS
Sequential Logic and Flip Flops
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Synchronous Sequential Circuits
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Sequential Circuits: Latches
Thought of the Day To be what we are, and to become
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Week 11 Flip flop & Latches.
Digital Electronics and Logic Design
Presentation transcript:

Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER

INTRODUCTION Combinational Logic: – Output depends only on current input – Has no memory – The design depends mainly on Logic Gates No way of remembering or storing information after inputs have been removed. To handle this, we need sequential logic capable of storing intermediate (and final) results. Sequential Logic: – Output depends not only on current input but also on past input values, e.g., design a counter – Need some type of memory to remember the past input values – The design depends mainly on Flip-Flop Circuit 2Dr. AMMAR ABDUL-HAMED KHADER

Sequential Logic Circuits 3Dr. AMMAR ABDUL-HAMED KHADER Sequential circuits can be Asynchronous or synchronous. Asynchronous sequential circuits change their states and output values whenever a change in input values occurs. Synchronous sequential circuits change their states and output values at fixed points of time, i.e. clock signals.

Sequential Logic Circuits 4Dr. AMMAR ABDUL-HAMED KHADER Combinational circuit Storage Element Flip Flops Outputs Inputs Next state Present state Timing signal (clock)

5Dr. AMMAR ABDUL-HAMED KHADER Storage Element "0" "1" "stored value" "remember" "load" "data" "stored value" Two inverters form a static memory cell – will hold value as long as it has power applied How to get a new value into the memory cell? – selectively break feedback path – load new value into cell

Sequential Logic Circuits Multivibrators Logic Devices: Bistable device: have two stable states, called SET and RESET. Monostable device: commonly known as the One-shot, it has only one stable state. Astable device: has no stable state and is used primarily as an oscillator, which is a self-sustained waveform generator. 6Dr. AMMAR ABDUL-HAMED KHADER

Storage Cells The two most popular varieties of storage cells used to build sequential circuits are: latches and flip-flops. – Latch: level sensitive storage element – Flip-Flop: edge triggered storage element Common examples of latches: S-R latch, \S-\R latch, D latch (= gated D latch) Common examples of flip-flops: D-FF, D-FF with enable, Scan-FF, JK-FF, T-FF Dr. AMMAR ABDUL-HAMED KHADER7

S-R Latch with NORs Dr. AMMAR ABDUL-HAMED KHADER8 - No change - Not allowed

S-R Latch with NANDs Dr. AMMAR ABDUL-HAMED KHADER9 - No change

Clock Pulse Definition Dr. AMMAR ABDUL-HAMED KHADER10

S-R Latch with Control Input Dr. AMMAR ABDUL-HAMED KHADER11 - Not allowed

Symbols for Latches Dr. AMMAR ABDUL-HAMED KHADER12 SR latch is based on NOR gates S ’ R ’ latch based on NAND gates D latch can be based on either. D latch sometimes called transparent latch

D Latch Dr. AMMAR ABDUL-HAMED KHADER13 Q Q’ S R Y D C X 0 Q 0 Q 0 ’ D C Q Q’

D Flip-Flop Stores a value on the positive edge of C Input changes at other times have no effect on output Dr. AMMAR ABDUL-HAMED KHADER14 CK X 0 Q 0 Q 0 ’ D C Q Q’ Positive edge triggered D gets latched to Q on the rising edge of the clock. D

D Flip-Flop Dr. AMMAR ABDUL-HAMED KHADER15 Q n+1 = D n

D Flip-Flop Positive and Negative Edge D flops can be triggered on positive or negative edge. Bubble before Clock (C) input indicates negative edge trigger Dr. AMMAR ABDUL-HAMED KHADER16

Other Types of Flip-Flops Dr. AMMAR ABDUL-HAMED KHADER17 D=J Q+K Q

Clocked Dr. AMMAR ABDUL-HAMED KHADER18 Two data inputs, J and K J -> set, K -> reset, if J=K=1 then toggle output Characteristic Table Or Transition Table J K differs from RS, because there is NO not allowed state (11)

T Flip-Flop (Toggle) Dr. AMMAR ABDUL-HAMED KHADER19 Q(t+1)T Q(t)0 1 D=T + Q

JK Converted to Other FFs Dr. AMMAR ABDUL-HAMED KHADER20 J J T KK D CC D from JKT from JK

Summary Dr. AMMAR ABDUL-HAMED KHADER21 Latches are based on combinational gates (e.g. NAND, NOR) Latches store data even after data input has been removed S-R latches operate like cross-coupled inverters with control inputs (S = set, R = reset) With additional gates, an S-R latch can be converted to a D latch (D stands for data) D latch is simple to understand conceptually – When C = 1, data input D is stored in latch at the output as Q. – When C = 0, data input D is ignored and previous latch value is at the output Q.

Summary Latch – Clock input is level sensitive. – Output can change multiple times during a clock cycle. – Output changes while clock is active. Flip-Flop – Clock input is edge sensitive. – Output can change only once during a clock cycle. – Output changes on clock transition. Dr. AMMAR ABDUL-HAMED KHADER22

Sequential Circuit Dr. AMMAR ABDUL-HAMED KHADER23 Introduction to Counter  Asynchronous Counter Asynchronous Up/Down Counter  Synchronous Counter Synchronous Counter Up/Down

Sequential Circuit: Counter Introduction Counter is a circuit which cycle through state sequence Two types of counter – Asynchronous counter (e.g. ripple) – Synchronous counter (e.g. parallel) Ripple counter let some flip-flop output, to be used as clock signal source for other flip-flop Synchronous counter use the same clock signal for all flip-flop Dr. AMMAR ABDUL-HAMED KHADER24

Sequential Circuit: Counter Asynchronous Counter (Ripple) Asynchronous Counter : flip-flop doesn’t change condition simultaneously because it doesn’t use single clock signal Also known as ripple counter because clock signal input as ripple through counter. Modulus (MOD) – the number of states it counts in a complete cycle before it goes back to the initial state. Thus, the number of flip-flops used depends on the MOD of the counter (ie; MOD-4 use 2 FF (2-bit), MOD-8 use 3 FF (3- bit), etc. Dr. AMMAR ABDUL-HAMED KHADER25

Dr. AMMAR ABDUL-HAMED KHADER26

Asynchronous Counter (Ripple) MOD-4 Example: 2-bit ripple counter (UP COUNTER) Output from one flip-flop is connected to clock input for the next flip-flop. Dr. AMMAR ABDUL-HAMED KHADER27 Timing diagram

Asynchronous Counter (Ripple) MOD-8 Example: 3-bit ripple counter (UP COUNTER) Dr. AMMAR ABDUL-HAMED KHADER28

Dr. AMMAR ABDUL-HAMED KHADER29 Asynchronous Ripple Counter ((UP COUNTER)) Example: 4-bit ripple counter (negative edge triggered) Asynchronous Counter (Ripple) MOD-16

(Positive edge triggered) Dr. AMMAR ABDUL-HAMED KHADER30 Asynchronous Counter (Ripple) MOD-16

Asynchronous Down Counter Binary Ripple down counter For positive edge triggered flip-flops the counter count down: e.g start from15 to 14 to 13 to……. The diagram is same as the count up binary counter except that the flip-flop trigger on the positive edge of the clock. If negative edge triggered flip-flops are used then the CLK input of each flip-flop must be connected to the complement output of the previous flip-flop. So, when the true output goes from 0 to 1, the complement will go from 1 to o and complement the next flip flop as required Dr. AMMAR ABDUL-HAMED KHADER31

Asynchronous Down Counter 2-Bit Binary Down Counter Dr. AMMAR ABDUL-HAMED KHADER32

Asynchronous Down Counter 4- Bit Binary Down Counter Dr. AMMAR ABDUL-HAMED KHADER33

Asynchronous Counter MOD NOT 2 Dr. AMMAR ABDUL-HAMED KHADER34

Dr. AMMAR ABDUL-HAMED KHADER35

Example: Show how an asynchronous counter can be implemented having a modulus of twelve with a straight binary sequence from 0000 to Solution: Four FF are required. When the counter gets to its last state 1011, it must recycle back to 0000 rather than going to its normal next state (1100) Dr. AMMAR ABDUL-HAMED KHADER36

Dr. AMMAR ABDUL-HAMED KHADER37

BCD Ripple Counter, Decade Counter Dr. AMMAR ABDUL-HAMED KHADER38

Dr. AMMAR ABDUL-HAMED KHADER39

Synchronous Counters (Parallel) FFs in the counter are clocked at the same time by a common clock pulse. Dr. AMMAR ABDUL-HAMED KHADER40

Dr. AMMAR ABDUL-HAMED KHADER41

Dr. AMMAR ABDUL-HAMED KHADER42

Dr. AMMAR ABDUL-HAMED KHADER43

Dr. AMMAR ABDUL-HAMED KHADER44

Dr. AMMAR ABDUL-HAMED KHADER45

Dr. AMMAR ABDUL-HAMED KHADER46