Sequential Circuit Design Section 5-5. 2 State Machines Design Procedure 1.Specification- obtain (produce) problem description 2.Formulation - Obtain.

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
State Machine Design.
COE 202: Digital Logic Design Sequential Circuits Part 3
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Computing Machinery Chapter 5: Sequential Circuits.
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
Sequential Design Part II. Output A(t+1) =D A = AX + BX B(t+1) =D B = AX Y = AX + BX.
Sequential Circuit Design
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
ECE 331 – Digital System Design
1 COMP541 State Machines Montek Singh Feb 6, 2007.
Sequential Circuit Design
Overview Sequential Circuit Design Specification Formulation
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
Sequential circuit design
Digital Computer Design Fundamental
Overview Part 1 Part 2 Sequential Circuit Design
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
Rabie A. Ramadan Lecture 2
1 COMP541 State Machines Montek Singh Feb 8, 2012.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
Synchronous Circuit Design (Class 10.1 – 10/30/2012) CSE 2441 – Introduction to Digital Logic Fall 2012 Instructor – Bill Carroll, Professor of CSE.
Circuit, State Diagram, State Table
Chap 4. Sequential Circuits
Unit 14 Derivation of State Graphs
Combinational Logic Design BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Logic and Computer.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits Previously, we described the basic building blocks of sequential circuits,
9/15/09 - L24 Other FF TypesCopyright Joanne DeGroat, ECE, OSU1 Other FF Types.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 2 – Sequential.
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.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL State Machines Anselmo Lastra.
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.
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Sequential Circuit Design By : Pn Siti Nor Diana Ismail CHAPTER 6.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
Synthesis Synchronous Sequential Circuits synthesis procedure –Word description of problem /hardest; art, not science/ –Derive state diagram & state table.
Sequential Circuit: Design BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
State Diagrams Tuesday, 12 September State diagram Graphical representation of a state table. –Provides the same information as a state table. –A.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
Combinational Design, Part 2: Procedure. 2 Topics Positive vs. negative logic Design procedure.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
4.
Sequential Circuit Design
Lab. on Finite State Machine
COMP541 Sequential Logic – 2: Finite State Machines
FIGURE 5.1 Block diagram of sequential circuit
KU College of Engineering Elec 204: Digital Systems Design
Sequential circuit design
Sequential circuit design
Chapter 3 – Combinational Logic Design
KU College of Engineering Elec 204: Digital Systems Design
EE2174: Digital Logic and Lab
Sequential Circuit Analysis & Design
Chapter5: Synchronous Sequential Logic – Part 4
ECE 352 Digital System Fundamentals
Chapter 5 – Sequential Circuits
Presentation transcript:

Sequential Circuit Design Section 5-5

2 State Machines Design Procedure 1.Specification- obtain (produce) problem description 2.Formulation - Obtain a state diagram or state table 3.State Assignment - Assign binary codes to the states 4.Flip-Flop Input Equation Determination a)Select flip-flop types b)Derive equations of inputs to the flip-flops from next state entries in the table

3 State Machines Design Procedure (continued) 5.Output Equation Determination - Derive output equations from output entries in the table 6.Optimization - Optimize the equations 7.Technology Mapping – a)Find circuit from equations b)Map to flip-flops and gate technology 8.Verification - Verify correctness of final design

4 State Machines Design Procedure; Example: Sequence Recognizer Specification Example 5-3 (pp ) 1.Specification- obtain (produce) problem description  Circuit has input, X, and output, Z  Recognizes sequence 1101 on X  Specifically, if X has been 110 and next bit is 1, make Z high

5 Understand the problem specifications: Sequence Recognizer  Sequential machine recognizes the sequence 1101  The sequence contains 1101 Sequential machine must remember that the first two one's have occurred as it receives another bit.

6 Understand the problem specifications: Sequence Recognizer II  Also, the sequence contains 1101 as both an initial subsequence final subsequence  The sequence 1101 must be recognized each time it occurs in the input sequence.

7 State Machines Design Procedure; Example: Sequence Recognizer Formulation 2.Formulation - Obtain a state diagram or state table  States remember past history Must remember we’ve seen 11 as machine receives another bit Must remember we’ve seen 110 when another bit comes along There is more to remember….  Tell me one necessary state

8 Beginning State System starts in some state, A A

9 If 1 appears, move to next state B B recognizes (remembers) that 1 was received Input / Output First 1

10 Second 1 New state, C C remembers that 11 was received

11 Next a 0 If 110 has been received, go to D D remembers that 110 was received Next 1 will generate a 1 on output Z

12 What else? What happens to arrow on right? ♦ Must go to some state. ♦ Where? Remember we’ve just seen 01

13 Possibility 1 We’ve just seen 01 Possibility 1: ♦ This is the beginning of new 1101; after 0 1 we get 1 01 ( ) If this is the case; then:

14 Possibility 2 We’ve just seen 01 ♦ After 01 we get the sequence 111 (01111) NOT 101 (01101)

15 You must cover every possibility You must have every possibility out of every state In this case, just two possibilities: X = 0 or 1 We fill in other cases on the white board

16 Fill in Remembers that {a “11” sequence occurred } Remembers that {a single “1” sequence occurred } Remembers that a {“110” sequence occurred}

17 Answer Remembers: No proper sub-sequence of the sequence 1101 has occurred

Chapter 5 - Part 2 18 Recognize 1101 (continued)  The states have the following abstract meanings: A: No proper sub-sequence of the sequence has occurred. B: The sub-sequence 1 has occurred. C: The sub-sequence 11 has occurred. 1/1 AB 1/0 C D 0/0

Chapter 5 - Part 2 19 Example: Recognize 1101 (continued I) D: The sub-sequence 110 has occurred. The 1/1 on the arc from D to B means that the last 1 has occurred and thus, the sequence is recognized. 1/1 AB 1/0 C D 0/0

20 Find State Table

21 3. State Assignment  Each of the m states must be assigned a unique binary code Sequence Recognizer: m=4 (A, B, C, D)  Minimum number of bits required is n such that n ≥ log 2 m where x is the smallest integer ≥ x  In general, there can be 2 n - m unused states

22  # of needed codes = m = 4;  How may assignments of codes are possible with 2 bits?  4  3  2  1 = 24 State Assignment for the Sequence Recognizer: Example 5-5 p. 239

23  Let us choose the code assignment : A = 0 0, B = 0 1, C = 1 1, D = 1 0  The resulting coded state table: State Assignment – (continued) Present State Next State x = 0 x = 1 Output x = 0 x =

24 4. Find Flip-Flop Input and Output Equations  Assume D flip-flops, outputs labeled A, B  Obtain K-maps for D A, D B, and Z: B A X DADA B A X DBDB B A X Z

25 6. Optimization:  Performing two-level optimization: D A = AB + XB D B = X Z = XAB B A X B A X B A X DADA DBDB Z

26 7. Map Technology  D A = AB + XB D B = X Z = XAB  Initial Circuit: Clock D D C R B Z C R A X Reset

27 Mapped Circuit - Final Result Clock D D C R B Z C R A X Reset Library:  D Flip-flops with Reset  NAND gates with up to 4 inputs and inverters