Sequential Circuit Design

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

State Machine Design Procedure
1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
Analysis of Clocked Sequential Circuits
State Machine Design.
COE 202: Digital Logic Design Sequential Circuits Part 3
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
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
1 COMP541 State Machines Montek Singh Feb 6, 2007.
Sequential Circuit Design
Overview Sequential Circuit Design Specification Formulation
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.
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.
Chap 4. Sequential Circuits
Unit 14 Derivation of State Graphs
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 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits Previously, we described the basic building blocks of sequential circuits,
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.
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.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
Sequential Circuit Design Section State Machines Design Procedure 1.Specification- obtain (produce) problem description 2.Formulation - Obtain.
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.
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
CHAPTER 16 SEQUENTIAL CIRCUIT DESIGN
Week #7 Sequential Circuits (Part B)
4.
Lecture 13 Derivation of State Graphs and Tables
Computer Organization
Adapted by Dr. Adel Ammar
Analysis of Clocked Sequential Circuit
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
Lab. on Finite State Machine
COMP541 Sequential Logic – 2: Finite State Machines
FIGURE 5.1 Block diagram of sequential circuit
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
ECE 301 – Digital Electronics
CENG 241 Digital Design 1 Lecture 11
KU College of Engineering Elec 204: Digital Systems Design
Sequential circuit design
Example: Re-design with Moore Model
Sequential circuit design
Sequential circuit design
KU College of Engineering Elec 204: Digital Systems Design
EE2174: Digital Logic and Lab
State Machine Design State Machine Design Digital Electronics
MTE 202, Summer 2016 Digital Circuits Dr.-Ing. Saleh Hussin
DESIGN OF SEQUENTIAL CIRCUITS
Sequential Circuit Analysis & Design
EGC 442 Introduction to Computer Architecture
ECE 352 Digital System Fundamentals
EGR 2131 Unit 12 Synchronous Sequential Circuits
Chapter5: Synchronous Sequential Logic – Part 3
COE 202: Digital Logic Design Sequential Circuits Part 3
Chapter 5 – Sequential Circuits
Presentation transcript:

Sequential Circuit Design Section 5-5

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

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

Specification- obtain (produce) problem description State Machines Design Procedure; Example: Sequence Recognizer Specification Example 5-3 (pp. 233-235) 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

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

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

Formulation - Obtain a state diagram or state table State Machines Design Procedure; Example: Sequence Recognizer Formulation 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

Beginning State System starts in some state, A A

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

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

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

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

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

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

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

Recognize 1101 (continued) 1/1 A B 1/0 C D 0/0 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.

Example: Recognize 1101 (continued I) 1/1 A B 1/0 C D 0/0 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.

Find State Table

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 ≥ log2 m where x is the smallest integer ≥ x In general, there can be 2n - m unused states

State Assignment for the Sequence Recognizer: Example 5-5 p. 239 Present State Next State x=0 x=1 Output x=0 x=1 A A B 0 0 B A C C D C D 0 1 # of needed codes = m = 4; How may assignments of codes are possible with 2 bits? 4  3  2  1 = 24

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

4. Find Flip-Flop Input and Output Equations Assume D flip-flops, outputs labeled A, B Obtain K-maps for DA, DB, and Z: B A X 1 DA B A X 1 DB B A X 1 Z

6. Optimization: Performing two-level optimization: DA = AB + XB DB = X Z = XAB DA DB Z B A X 1 B A X 1 B A X 1

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

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