DESIGN OF SEQUENTIAL CIRCUITS

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

State Machine Design Procedure
COE 202: Digital Logic Design Sequential Circuits Part 3
التصميم المنطقي Second Course
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Digital Logic Design Lecture 27.
Sequential Logic Design with Flip-flops
ECE 331 – Digital System Design State Reduction and State Assignment (Lecture #22) The slides included herein were taken from the materials accompanying.
ECE 331 – Digital System Design
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
Sequential Logic Design
CSCE 211: Digital Logic Design
Overview Sequential Circuit Design Specification Formulation
Sequential circuit design
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
Rabie A. Ramadan Lecture 2
Digital Design Lecture 10 Sequential Design. State Reduction Equivalent Circuits –Identical input sequence –Identical output sequence Equivalent States.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Chap 4. Sequential Circuits
ROM & PLA Digital Logic And Computer Design
CENG 241 Digital Design 1 Lecture 10 Amirali Baniasadi
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
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.
Introduction to State Machine
DLD Lecture 26 Finite State Machine Design Procedure.
ANALYSIS OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Digital Circuits State Reduction and Assignment State Reduction reductions on the number of flip-flops and the number of gates a reduction in the.
DESIGN OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham.
Combinational Circuits by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
1Sequential circuit design Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA by Erol Sahin and Ruken Cakici.
Combinational Circuits
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Counter Design
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
1 Lecture #14 EGR 277 – Digital Logic Self-starting counters Counters are considered to be self-starting if all unused counts eventually lead to the correct.
Sequential Circuit Design 05 Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Synchronous Sequential Logic
Week #7 Sequential Circuits (Part B)
ANALYSIS OF SEQUENTIAL CIRCUITS
Adapted by Dr. Adel Ammar
EKT 221 : Digital 2 COUNTERS.
FIGURE 5.1 Block diagram of sequential circuit
CSCE 211: Digital Logic Design
Computer Architecture CST 250
Asynchronous Inputs of a Flip-Flop
ECE 301 – Digital Electronics
T Flip-Flop A T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when the two inputs are tied together. When T.
CSCE 211: Digital Logic Design
FINITE STATE MACHINES (FSMs)
Princess Sumaya University
CENG 241 Digital Design 1 Lecture 11
State Reduction and State Assignment
CSCE 211: Digital Logic Design
Sequential circuit design
CSCE 211: Digital Logic Design
Sequential circuit design
Sequential circuit design
Lecture No. 32 Sequential Logic.
CHAPTER 15 REDUCTION OF STATE TABLES STATE ASSIGNMENT
Analysis with JK flip-flops
EGC 442 Introduction to Computer Architecture
Chapter5: Synchronous Sequential Logic – Part 4
CSCE 211: Digital Logic Design
EGR 2131 Unit 12 Synchronous Sequential Circuits
Chapter5: Synchronous Sequential Logic – Part 3
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

DESIGN OF SEQUENTIAL CIRCUITS by Dr. Amin Danial Asham

References Digital Design 5th Edition, Morris Mano

State Reduction Sequential circuit analysis starts with circuit diagram and ends by obtaining state table and state diagram. Sequential circuit design or synthesis starts with the required specifications and ends by obtaining the circuit diagram. Two sequential circuit may have the same input output behavior but have different internal states. Reducing the number of FF’s in a sequential circuit is called state reduction, while keeping the same number of inputs and outputs. Reducing the number of FF’s and logic gates saves the cost of the circuit. 𝑚 FF’s generate 2 𝑚 states, hence reducing the number of states may or may not reduce the number of FF’s. Sometimes reducing the number of FF’s produces more combinational gates to produce the next state and output logic.

State Reduction (continue) In sequential circuits the input and output sequences are important and the internal state role is just to produce these sequences. As an example, a sequential circuit with the following state diagram: The states are denoted by letter since the binary values are not important. Using the state diagram we get the output sequence corresponding to the input sequence 01010110100. This sequential circuit has 7 internal states: 𝑎,𝑏,𝑐,𝑑,𝑒,𝑓,𝑔

State Reduction (continue) If input-output is considered, two sequential circuits with different number of FF’s are considered equivalent if each input sequence applied to the two circuits produces the same output sequence. “Two states are said to be equivalent if, for each member of the set of inputs, they give exactly the same output and send the circuit either to the same state or to an equivalent state.” If there are two equivalent states, one of them can be removed without changing the input-output relations. Now to reduce the number of states, the state table will be used and searching for equivalent states.

State Reduction (continue) Equivalent states. They both go to states 𝑎 and 𝑓 and have outputs of 0 and 1 for x = 0 and x = 1, respectively

State Reduction (continue) Since the two states 𝑒 and 𝑔 are equivalent, one of them can be removed. Replacing the removed state with its equivalent in the table. Equivalent states. They both go to states 𝑒 and 𝑓 and have outputs of 0 and 1 for x = 0 and x = 1, respectively

State Reduction (continue) Since the two states 𝑑 and 𝑓 are equivalent, one of them can be removed. Replacing the removed state with its equivalent in the table.

State Assignment To design a sequential circuit the states are coded in a binary coded form. If we have 𝑚 states we use 𝑛 bits code such that 2 𝑛 ≥𝑚. Examples of the assignments: 3 FF’s 3 FF’s 5 FF’s

State Assignment (continue) The reduced 5 states in our example are coded using binary code. Three bits can be used to code 8 states, we used 5 states and the other 3 states are considered don’t care. The state table using the binary assignment is sometimes called the transition table to be distinguished from the state table with symbolic names for the states.

Design Procedure From the word description and specifications of the desired operation, derive a state diagram for the circuit. Reduce the number of states if necessary. Assign binary values to the states. Obtain the binary-coded state table. Choose the type of flip-flops to be used. Derive the simplified flip-flop input equations and output equations. Draw the logic diagram.

Example Design a circuit that detects a sequence of three or more consecutive 1’s in an input stream. The state diagram of this detector can be as shown. There are four states S0, S1, S2, and S3, which represents 0 at input, single 1, two consecutive 1’s, or three or more consecutive 1’s respectively. The output of this detector is 1 when 3 or more consecutive 1’s are detected.

Example – D FF implementation The four states are assigned binary codes 00,01,10,11 and hence two FF’s 𝐴 and 𝐵 are needed. The state table is: The characteristic equations are: 𝐴 𝑡+1 = 𝐷 𝐴 𝐵 𝑡+1 = 𝐷 𝐵 From the table we find: 𝑨 𝒕+𝟏 = 𝑫 𝑨 𝑨,𝑩,𝒙 = (𝟑,𝟓,𝟕) 𝑩 𝒕+𝟏 = 𝑫 𝑩 𝑨,𝑩,𝒙 = (𝟏,𝟓,𝟕) 1 Input Equations

Example – D FF implementation (continue) Output equation is: 𝑦(𝐴,𝐵,𝑥)= (6,7)

Example – D FF implementation (continue) Since the input and output equations are written down as sum of minterms, therefore the these equation can be simplified using K-maps.

Example – D FF implementation (continue)

Excitation Tables To design Sequential circuits with 𝐽𝐾 and 𝑇 FF’s, tables that list the required inputs for a given change of state are needed. These tables are called excitation tables. Excitation tables are used to drive the input equations. + +

Design using 𝑱𝑲 FF An example to design a sequential circuit specified with the following state table. From the excitation table of 𝐽𝐾 FF: we can get the FF input for state transitions as follows: +

Design using 𝑱𝑲 FF (continue) Input Equations are derived using K-maps. 𝐾 𝐵 =𝐴𝑥+ 𝐴 ′ 𝑥 ′ =(𝐴⨁𝑥)′

Design using 𝑱𝑲 FF (continue) Logic Diagram

Design using 𝑻 FF An Example of design 3 bit counter which has the following state diagram. This counter counts from 0 to 2 3 −1. Form the stat diagram there are three FF’s that will be named 𝐴 2 , 𝐴 1 , and 𝐴 0 Therefore, the state table is as follows: Using excitation table we get the FF inputs. + Excitation Table

Design using 𝑻 FF Input Equations are derived using K-maps

Design using 𝑻 FF Logic Diagram

Thanks