ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.

Slides:



Advertisements
Similar presentations
COE 202: Digital Logic Design Sequential Circuits Part 2
Advertisements

State-machine structure (Mealy)
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Synchronous Sequential Logic
Digital Electronics Chapter 5 Synchronous Sequential Logic.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Circuits require memory to store intermediate data
1 EE365 Sequential-circuit analysis. 2 Clocked synchronous seq. circuits A.k.a. “state machines” Use edge-triggered flip-flops All flip-flops are triggered.
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
A Sequential Parity Checker
Nonlinear & Neural Networks LAB. CHAPTER 13 Analysis of Clocked Sequential Circuit 13.1 A Sequential Parity Checker 13.2 Analysis by Signal Tracing 13.3.
ECE 331 – Digital System Design Flip-Flops and Registers (Lecture #18) The slides included herein were taken from the materials accompanying Fundamentals.
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
ECE 331 – Digital System Design
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
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 301 – Digital Electronics
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)
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
ETE Digital Electronics
Digital Computer Design Fundamental
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
CHAPTER 12 REGISTERS AND COUNTERS
Synchronous Circuit Design (Class 10.1 – 10/30/2012) CSE 2441 – Introduction to Digital Logic Fall 2012 Instructor – Bill Carroll, Professor of CSE.
State Machines.
Unit 14 Derivation of State Graphs
Lecture 4 – State Machine Design 9/26/20081ECE Lecture 4.
Introduction to Sequential Logic Design Flip-flops FSM Analysis.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Introduction to Sequential Logic Design Finite State-Machine Design.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Important Components, Blocks and Methodologies. To remember 1.EXORS 2.Counters and Generalized Counters 3.State Machines (Moore, Mealy, Rabin-Scott) 4.Controllers.
ECE 331 – Digital System Design Circuit Design and Analysis (Lecture #9A) The slides included herein were taken from the materials accompanying Fundamentals.
Introduction to State Machine
Fall 2004EE 3563 Digital Systems Design EE3563 Chapter 7, 8, 10 Reading Assignments  7.1, 7.2, 7.3  8.1, ,   8.5.1, 8.5.2,
General model of a sequential network.
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.
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Analysis and Synthesis of Synchronous Sequential Circuits A “synchronizing” pulse/edge signal (clock) controls the operation of the memory portion of the.
Registers; State Machines Analysis Section 7-1 Section 5-4.
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.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
Chapter 6 Analysis of Sequential Systems Sequential Memory Feedback.
5 - 1 Chapter 6 Analysis of Sequential Systems Chapter 6 Analysis of Sequential Systems 6.0 Introduction  Clocked System Clock A signal that alternates.
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered.
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Introduction to Sequential Logic Design
Lecture 12 Analysis of Clocked Sequential Network
Analysis of Clocked Sequential Circuit
SLIDES FOR CHAPTER 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS
CS 352 Introduction to Logic Design
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Asynchronous Inputs of a Flip-Flop
ECE 301 – Digital Electronics
ECE 301 – Digital Electronics
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Presentation transcript:

ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design, 6 th Edition, by Roth and Kinney, and were used with permission from Cengage Learning.

Fall 2010ECE Digital System Design2 Material to be covered … Chapter 13: Sections 1 – 4 Chapter 17: Section 4

Fall 2010ECE Digital System Design3 Combinational vs. Sequential Combinational Logic Circuit  Output is a function only of the present inputs.  Does not have state information.  Does not require memory. Sequential Logic Circuit (aka. Finite State Machine)  Output is a function of the present state.  Has state information  Requires memory.  Uses Flip-Flops to implement memory.

Fall 2010ECE Digital System Design4 Synchronous vs. Asynchronous Synchronous Sequential Logic Circuit  Clocked  All Flip-Flops use the same clock and change state on the same triggering edge. Asynchronous Sequential Logic Circuit  No clock  Can change state at any instance in time.  Faster but more complex than synchronous sequential circuits.

Fall 2010ECE Digital System Design5 General Models for Sequential Circuits A sequential circuit can be divided conveniently into two parts -- the flip-flops which serve as memory for the circuit and the combinational logic which realizes the input functions for the flip-flops and the output functions. The combinational logic may be implemented with gates, with a ROM, or with a PLA.

Fall 2010ECE Digital System Design6 Sequential Circuits: Models Moore Machine  Outputs are a function of the present state.  Outputs are independent of the inputs.  State diagram includes an output value for each state. Mealy Machine  Outputs are a function of the present state and the present input.  State diagram includes an input and output value for each transition (between states).

Fall 2010ECE Digital System Design7 Sequential Circuits: Models

Fall 2010ECE Digital System Design8 Sequential Circuits: Mealy Model

Fall 2010ECE Digital System Design9 Sequential Circuits: Moore Model

Fall 2010ECE Digital System Design10 Sequential Circuits: State Diagram State Output Input Moore Machine Each node in the graph represents a state in the sequential circuit.

Fall 2010ECE Digital System Design11 Sequential Circuits: State Diagram Mealy Machine Each node in the graph represents a state in the sequential circuit. Input State Output

Fall 2010ECE Digital System Design12 Sequential Circuit Analysis

Fall 2010ECE Digital System Design13 Analysis by Signal Tracing We can analyze clocked sequential circuits to find the output sequence resulting from a given input sequence by tracing 0 and 1 signals through the circuit. The basic procedure is: 1.Assume an initial state of the flip-flops (all flip-flops reset to 0 unless otherwise specified). 2.For the first input in the given sequence, determine the circuit output(s) and flip-flop inputs. 3.Determine the new set of flip-flop states after the next active clock edge. 4.Determine the output(s) that corresponds to the new states. 5.Repeat 2, 3, and 4 for each input in the given sequence.

Fall 2010ECE Digital System Design14 Example: Moore Machine

Fall 2010ECE Digital System Design15 Example: Moore Machine 01101

Fall 2010ECE Digital System Design16 Example: Mealy Machine

Fall 2010ECE Digital System Design17 Example: Mealy Machine

Fall 2010ECE Digital System Design18 Analysis using State Tables and Graphs Although constructing timing charts is satisfactory for small circuits and short input sequences, the construction of state tables and graphs provides a more systematic approach which is useful for the analysis of larger circuits and which leads to a general synthesis procedure for sequential circuits. The state table specifies the next state and output of a sequential circuit in terms of its present state and input.

Fall 2010ECE Digital System Design19 Analysis Procedure 1.Determine the flip-flop input equations and the output equations from the circuit. 2.Derive the next-state equation for each flip-flop from its input equations, using one of the following relations: D flip-flopQ + = D(13-1) D-CE flip-flop Q + = DCE + QCE′(13-2) T flip-flopQ + = T Q(13-3) S-R flip-flopQ + = S + R′Q(13-4) J-K flip-flopQ + = JQ′ + K′Q(13-5)

Fall 2010ECE Digital System Design20 Analysis Procedure 3.Plot a next-state map for each flip-flop. 4.Combine these maps to form the state table. Such a state table, which gives the next state of the flip-flops as a function of their present state and the circuit inputs, is frequently referred to as a transition table.

Fall 2010ECE Digital System Design21 Sequential Circuit Analysis Determine the Flip-Flop input equations  In terms of the present state and input variables Determine the FSM output equation(s) Determine the next state values in the state table  Assume binary encoding  Use Flip-Flop Characteristic Equation Construct the state table  Assign a state to each binary state assignment Draw the corresponding state diagram Determine the behavior of the FSM

Fall 2010ECE Digital System Design22 Example: Analyze a sequential circuit using D Flip-Flops

Fall 2010ECE Digital System Design23 Example: Analysis (D FF) Derive the State Table for the following Sequential Logic Circuit:

Fall 2010ECE Digital System Design24 Example: Analysis (D FF) 1. The flip-flop input equations and output equation are D A = X xor B'D B = X or A Z = A or B 2. The next-state equations for the flip-flops are A + = X xor B'B + = X or A

Fall 2010ECE Digital System Design25 Example: Analysis (D FF) 3. The corresponding next-state (K-) maps are

Fall 2010ECE Digital System Design26 Example: Analysis (D FF) 4. The state table, or transition table, is then determined from the next-state maps

Fall 2010ECE Digital System Design27 Example: Analysis (D FF) 5. The state graph can then be drawn from the state table

Fall 2010ECE Digital System Design28 Example: Analyze a sequential circuit using JK Flip-Flops

Fall 2010ECE Digital System Design29 Example: Analysis (JK FF) Derive the State Table for the following Sequential Logic Circuit:

Fall 2010ECE Digital System Design30 Example: Analysis (JK FF) 1. The flip-flop input equations and output equation are J A = X.BJ B = X Z = X.B' + X.A + X'.A'.B 2. The next-state equations for the flip-flops are A + = J A.A' + K A '.AB + = J B.B' + K B '.B K A = XK B = X.A A + = X.B.A' + X.AB + = X.B' + X.A.B

Fall 2010ECE Digital System Design31 Example: Analysis (JK FF) 3. The corresponding next-state (K-) maps are

Fall 2010ECE Digital System Design32 Example: Analysis (JK FF) 4. The state table, and transition table, is then determined from the next-state maps

Fall 2010ECE Digital System Design33 Example: Analysis (JK FF) 5. The state graph can then be drawn from the state table

Fall 2010ECE Digital System Design34 Example: Analyze a serial adder

Fall 2010ECE Digital System Design35 Example: Serial Adder The serial adder adds two n-bit binary numbers. serial inputs serial output

Fall 2010ECE Digital System Design36 Example: Serial Adder Truth Table for the Full Adder:

Fall 2010ECE Digital System Design37 Example: Serial Adder Timing Diagram for the Serial Adder:

Fall 2010ECE Digital System Design38 Example: Serial Adder State Graph for the Serial Adder: What type of state machine is this?

Fall 2010ECE Digital System Design39 Example: Analyze a state machine with multiple inputs.

Fall 2010ECE Digital System Design40 Example: Multiple Inputs State Table for a state machine with multiple inputs:

Fall 2010ECE Digital System Design41 Example: Multiple Inputs State Graph for a state machine with multiple inputs: How many paths leave each state? What type of state machine is this?

Fall 2010ECE Digital System Design42 Questions?