Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.

Slides:



Advertisements
Similar presentations
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Advertisements

Computer Science 210 Computer Organization Clocks and Memory Elements.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
1 Fundamentals of Computer Science Sequential Circuits.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Computer Architecture CS 215
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Synchronous Sequential Logic
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 6 – Part 1.
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.
CPEN Digital System Design Chapter 5 Sequential Circuits Storage Elements and Sequential Circuit Analysis C. Gerousis © Logic and Computer Design.
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Sequential Circuits. Combinational Circuits + Storage element output depends both on previous state and input Fig. 5-1.
Chap 4. Sequential Circuits
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
DESIGN OF 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.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
1 Synchronous Sequential Logic Sequential Circuits Every digital system is likely to have combinational circuits, most systems encountered in practice.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Synchronous Sequential Logic Part I
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
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.
CENG 241 Digital Design 1 Lecture 7 Amirali Baniasadi
Sequential Logic Circuit Design Eng.Maha Alqubali.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Computer Science 210 Computer Organization
Chapter #6: Sequential Logic Design
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Synchronous Sequential Circuits
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Asynchronous Inputs of a Flip-Flop
Flip Flop.
Computer Science 210 Computer Organization
Boolean Algebra and Digital Logic
Computer Science 210 Computer Organization
Synchronous Sequential Circuits
DESIGN OF SEQUENTIAL CIRCUITS
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Lecture 14: State Tables, Diagrams, Latches, and Flip Flop
Chapter 5 Sequential Circuits.
SEQUENTIAL CIRCUITS __________________________________________________
Chapter5: Synchronous Sequential Logic – Part 3
Presentation transcript:

Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN

Sequential Circuits2 Note  Most of the figures are from your course book

Sequential Circuits3  Combinational  The outputs depend only on the current input values  It uses only logic gates  Sequential  The outputs depend on the current and past input values  It uses logic gates and storage elements  Example Vending machine Vending machine  They are referred as finite state machines since they have a finite number of states

Sequential Circuits4 Block Diagram  Memory elements can store binary information  This information at any given time determines the state of the circuit at that time

Sequential Circuits5 Sequential Circuit Types  Synchronous  The circuit behavior is determined by the signals at discrete instants of time  The memory elements are affected only at discrete instants of time  A clock is used for synchronization Memory elements are affected only with the arrival of a clock pulse Memory elements are affected only with the arrival of a clock pulse If memory elements use clock pulses in their inputs, the circuit is called If memory elements use clock pulses in their inputs, the circuit is called  Clocked sequential circuit

Sequential Circuits6 Sequential Circuit Types  ASynchronous  The circuit behavior is determined by the signals at any instant of time  It is also affected by the order the inputs change

Sequential Circuits7 Clock  It emits a series of pulses with a precise pulse width and precise interval between consecutive pulses  Timing interval between the corresponding edges of two consecutive pulses is known as the clock cycle time, or period

Sequential Circuits8 Flip-Flops  They are memory elements  They can store binary information

Sequential Circuits9 Flip-Flops  Can keep a binary state until an input signal to switch the state is received  There are different types of flip-flops depending on the number of inputs and how the inputs affect the binary state

Sequential Circuits10 Latches  The most basic flip-flops  They operate with signal levels  The flip-flops are constructed from latches  They are not useful for synchronous sequential circuits  They are useful for asynchronous sequential circuits

Sequential Circuits11 SR Latch with NOR

Sequential Circuits12 SR Latch with NOR

Sequential Circuits13 SR Latch with NAND

Sequential Circuits14 SR Latch with NAND

Sequential Circuits15 SR Latch with Control Input

Sequential Circuits16 D Latch

Sequential Circuits17 Symbols for Latches

Sequential Circuits18 Note  The control input changes the state of a latch or flip-flop  The momentary change is called a trigger  Example: D Latch  It is triggered every time the pulse goes to the logic level 1  As long as the pulse remains at the logic level 1, the change in the data (D) directly affects the output (Q)  THIS MAY BE A BIG PROBLEM since the state of the latch may keep changing depending on the input (may be coming from a combinational logic network)

Sequential Circuits19 How to Solve?  Trigger the flip-flop only during a signal transition

Sequential Circuits20 Edge-Triggered D Flip-Flop

Sequential Circuits21 Characteristics of D Flip- Flop

Sequential Circuits22 Edge-Triggered J-K Flip-Flop How???????

Sequential Circuits23 Excitation Table

Sequential Circuits24 Edge-Triggered T Flip-Flop

Sequential Circuits25 Excitation Table

Sequential Circuits26 Direct Inputs  You can use asynchronous inputs to put a flip-flop to a specific state regardless of the clock  You can clear the content of a flip-flop  The content is changed to zero (0)  This is called clear or direct reset  This is particularly useful when the power is off The state of the flip-flop is set to unknown The state of the flip-flop is set to unknown

Sequential Circuits27 D Flip-Flop with Asynchronous Reset

Sequential Circuits28 State Equations A state equation shows the next state as a function of the current state and inputs

Sequential Circuits29 State Table

Sequential Circuits30 State Diagram

Sequential Circuits31 Analysis with D Flip-Flops

Sequential Circuits32 State Reduction  Reduce the number of states but keep the input-output requirements  Reducing the number of states may reduce the number of flip-flops  If there are n flip-flops, there are 2^n states  If you have two circuits that produce the same output sequence for any given input sequence, the two circuits are equivalent  They may replace each other

Sequential Circuits33 State Reduction Example Find the states for which the next states and outputs are the same

Sequential Circuits34 Example (Cont.) In the next state, g is replaced with e In the next state, f is replaced with d

Sequential Circuits35 Example (Cont.)

Sequential Circuits36 State Assignment  You need to assign binary values for each state so that they can be implemented  You need to use enough number of bits to cover all the states

Sequential Circuits37 State Assignments

Sequential Circuits38 Design Procedure  Derive a state diagram  Reduce the number of states  Assign binary values to the states  Obtain binary coded state table  Choose the type of flip-flop to be used  Derive simplified flip-flop input equations and output equations  Draw the logic diagram

Sequential Circuits39 Example  Design a circuit (with D flip-flops) that detects three or more consecutive 1’s in a string of bits coming through an input line

Sequential Circuits40 Example (Cont.)

Sequential Circuits41 Example (Cont.)

Sequential Circuits42 Example (Cont.)

Sequential Circuits43 Example  Design a circuit (with JK flip-flops) that detects three or more consecutive 1’s in a string of bits coming through an input line

Sequential Circuits44 Example (Cont.)

Sequential Circuits45 Example (Cont.)

Sequential Circuits46 Example (Cont.)

Sequential Circuits47 Study Problems  Course Book Chapter – 5 Problems  5 – 3  5 – 5  5 – 6  5 – 7  5 – 10  5 – 12  5 – 13  5 – 19

Sequential Circuits48 Questions