ECE 301 – Digital Electronics

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

State Machine Design Procedure
Analysis of Clocked Sequential Circuits
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
COE 202: Digital Logic Design Sequential Circuits Part 3
Princess Sumaya University
Digital Electronics Chapter 5 Synchronous Sequential Logic.
Computing Machinery Chapter 5: Sequential Circuits.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
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 State Reduction and State Assignment (Lecture #22) The slides included herein were taken from the materials accompanying.
ECE 331 – Digital System Design
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
Give qualifications of instructors: DAP
Overview Sequential Circuit Design Specification Formulation
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
ECE 331 – Digital System Design Counters (Lecture #19) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
ECE 331 – Digital System Design Sequential Circuit Design (Lecture #23) The slides included herein were taken from the materials accompanying Fundamentals.
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)
ETE Digital Electronics
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
IKI c-Synthesis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: Prof. Daniel Gajski’s transparency.
Digital Computer Design Fundamental
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
Digital Design Lecture 10 Sequential Design. State Reduction Equivalent Circuits –Identical input sequence –Identical output sequence Equivalent States.
Synchronous Sequential Logic Part II
Circuit, State Diagram, State Table
State Machines.
Lecture 4 – State Machine Design 9/26/20081ECE Lecture 4.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Introduction to Sequential Logic Design Finite State-Machine Design.
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
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.
ECE 3130 – Digital Electronics and Design Lab 6 State Machines Fall 2012 Allan Guan.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits Previously, we described the basic building blocks of sequential circuits,
Introduction to State Machine
General model of a sequential network.
FINITE STATE MACHINES (FSMs)
DLD Lecture 26 Finite State Machine Design Procedure.
ECE 301 – Digital Electronics
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.
1 State Reduction Goal: reduce the number of states while keeping the external input-output requirements unchanged. State reduction example: a: input 0.
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
Princess Sumaya University
Lecture 20: Sequential Logic (5)
CEC 220 Digital Circuit Design Mealy and Moore State Machines Friday, March 27 CEC 220 Digital Circuit Design Slide 1 of 16.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Synthesis Synchronous Sequential Circuits synthesis procedure –Word description of problem /hardest; art, not science/ –Derive state diagram & state table.
State Machines (Closed Loop / Moore) Synch 2.1  Paul R. Godin Updated: January 2008.
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
Sequential Circuit Design 05 Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.
State Machine Design Shiva choudhary En No.: Electronics and comm. Dept K.I.T.,Jamnagar 1.
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.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Asynchronous Inputs of a Flip-Flop
ECE 301 – Digital Electronics
FINITE STATE MACHINES (FSMs)
ECE 3130 – Digital Electronics and Design
DESIGN OF SEQUENTIAL CIRCUITS
Instructor: Alexander Stoytchev
FINITE STATE MACHINES.
Instructor: Alexander Stoytchev
Presentation transcript:

ECE 301 – Digital Electronics Sequential Logic Circuits: FSM Design (Lecture #19)

ECE 301 - Digital Electronics FSM Design: Procedure Understand specifications Derive state diagram Create state table Perform state minimization (if necessary) Encode states (state assignment) Create state-assigned table Select type of Flip-Flop to use Determine Flip-Flop input equations and FSM output equation(s) Draw circuit diagram ECE 301 - Digital Electronics

ECE 301 - Digital Electronics FSM Design Mealy Machines ECE 301 - Digital Electronics

FSM Design (Mealy) Example: Design a FSM that detects a sequence of three or more consecutive ones on an input bit stream. The FSM should output a 1 when the sequence is detected, and a 0 otherwise. This is another example of a sequence detector. ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Input: 0 1 1 1 0 1 0 1 1 0 1 1 1 0 1 … Output: 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 … ECE 301 - Digital Electronics

FSM Design: Example (Mealy) State Diagram State Diagram ECE 301 - Digital Electronics

FSM Design: Example (Moore) State Diagram ECE 301 - Digital Electronics

FSM Design: Example (Mealy) State Table Present State Next State Output w = 0 w = 1 QA QB QA+ QB+ z A B 1 C D d Output is a function of the present state and the input (Mealy Machine) Next state is a function of the present state and the input Using Binary Encoding for the State Assignment ECE 301 - Digital Electronics

FSM Design: Example (Mealy) The choice of Flip-Flop determines the complexity of the combinational logic required in the design of the state machine. Each type of Flip-Flop has a unique characteristic equation. SR Flip-Flop Q+ = S + R'.Q D Flip-Flop Q+ = D JK Flip-Flop Q+ = J.Q' + K'.Q T Flip-Flop Q+ = T '.Q + T.Q' ECE 301 - Digital Electronics

Synthesis using D Flip-Flops (Q+ = D) FSM Design (Mealy) Synthesis using D Flip-Flops (Q+ = D) ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Present State Next State FF Inputs w = 0 w = 1 QA QB QA+ QB+ DA DB A 1 B C D d ECE 301 - Digital Electronics

FSM Design: Example (Mealy) ECE 301 - Digital Electronics

FSM Design: Example (Mealy) ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Circuit Diagram ECE 301 - Digital Electronics

Synthesis using JK Flip-Flops (Q+ = J.Q' + K'.Q) FSM Design (Mealy) Synthesis using JK Flip-Flops (Q+ = J.Q' + K'.Q) ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Excitation Table + Q Q+ ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Present State Next State FF Inputs w = 0 w = 1 QA QB QA+ QB+ JA KA JB KB A 1 d B C D ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Karnaugh Maps ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Circuit Diagram ECE 301 - Digital Electronics

FSM Design (Mealy) Example: Design a Finite State Machine (FSM) that meets the following specifications: 1. The circuit has one input, w, and one output, z. 2. All changes in the circuit occur on the positive edge of the clock. 3. The output z is equal to 1 if the pattern 010 is detected on the input w. Otherwise, the value of z is equal to 0. Overlapping sequences should not be detected. This is another example of a sequence detector. ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Input (w): 0 0 0 0 1 0 1 0 0 1 0 0 1 0 1 … Output (z): 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 … ECE 301 - Digital Electronics

FSM Design: Example (Mealy) State Diagram ECE 301 - Digital Electronics

FSM Design (Mealy) Example: Design a Finite State Machine (FSM) that meets the following specifications: 1. The circuit has one input, w, and one output, z. 2. All changes in the circuit occur on the positive edge of the clock. 3. The output z is equal to 1 if the pattern 010 is detected on the input w. Otherwise, the value of z is equal to 0. Overlapping sequences should be detected. This is another example of a sequence detector. ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Input (w): 0 0 0 0 1 0 1 0 0 1 0 0 1 0 1 … Output (z): 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 … ECE 301 - Digital Electronics

FSM Design: Example (Mealy) State Diagram ECE 301 - Digital Electronics

FSM Design (Mealy) Example: Design a Finite State Machine (FSM) that meets the following specifications: 1. The circuit has one input, w, and one output, z. 2. All changes in the circuit occur on the positive edge of the clock. 3. The output z is equal to 1 if the pattern 010 or the pattern 110 is detected on the input w. Otherwise, the value of z is equal to 0. Overlapping sequences should be detected. This is example of a sequence detector that can detect 2 sequences. ECE 301 - Digital Electronics

FSM Design: Example (Mealy) Input (w): 0 1 0 0 1 1 0 1 0 1 1 1 0 1 1 … Output (z): 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 … ECE 301 - Digital Electronics

FSM Design: Example (Mealy) State Diagram ECE 301 - Digital Electronics

ECE 301 - Digital Electronics Counters ECE 301 - Digital Electronics

FSM Design (Counter) Example: Design a 3-bit Counter (using the formal FSM Design Procedure) ECE 301 - Digital Electronics

ECE 301 - Digital Electronics FSM Design: Example ECE 301 - Digital Electronics

ECE 301 - Digital Electronics FSM Design: Example What is the output of a counter? ECE 301 - Digital Electronics

Synthesis using T Flip-Flops (Q+ = T'.Q + T.Q') ECE 301 - Digital Electronics

ECE 301 - Digital Electronics FSM Design: Example + Excitation Table ECE 301 - Digital Electronics

ECE 301 - Digital Electronics FSM Design: Example Q+ = T.Q' + T'.Q next state flip-flop input ECE 301 - Digital Electronics

ECE 301 - Digital Electronics FSM Design: Example ECE 301 - Digital Electronics

ECE 301 - Digital Electronics FSM Design: Example ECE 301 - Digital Electronics

Acknowledgments The slides used in this lecture were taken, with permission, from those provided by Pearson Prentice Hall for Digital Design (4th Edition). They are the property of and are copyrighted by Pearson Education. ECE 301 - Digital Electronics