Docsity

Analysis of Sequential Circuits: Finite State Machines and Two's Complement - Prof. Edward, Study notes of Computer Architecture and Organization

Toggle sidebar
bg1
Chapter 7 Finite State Machines and Sequential Circuits
Definition: Sequential Circuits
Combinational Circuits Sequential Circuits
No Memory Memory
No flip-flops, Flip-flops may be used
only combinational gates Combinational gates may be used
No feedback Feedback is allowed
Output for a given set of The order of input change
Inputs is independent of is quite important and may
order in which these inputs produce significant differences
were changed, after the in the output.
output stabilizes.
Slide 1 of 11 slides CPSC 5155 February 6, 2006
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Analysis of Sequential Circuits: Finite State Machines and Two's Complement - Prof. Edward and more Study notes Computer Architecture and Organization in PDF only on Docsity!

Definition: Sequential Circuits

Combinational Circuits Sequential Circuits No Memory Memory No flip-flops, Flip-flops may be used only combinational gates Combinational gates may be used No feedback Feedback is allowed Output for a given set of The order of input change Inputs is independent of is quite important and may order in which these inputs produce significant differences were changed, after the in the output. output stabilizes.

Definition: Sequential Circuits

Sequential Logic Includes Combinational Logic and Memory

Sample Finite State Machine

(A 11011 Sequence Detector)

Five states, each with two transitions. The FSM begins in state A.

State Tables for the 11011 Sequence Detector

 - X = 0 X = Present State Next State / Output - A A / 0 B / - B A / 0 C / - C D / 0 C / - D A / 0 E / - E A / 0 C / - X = 0 X = Present State Next State / Output 
  • A = 000 000 / 0 001 /
    • B = 001 000 / 0 010 /
    • C = 010 011 / 0 010 /
  • D = 011 000 / 0 100 /
    • E = 100 000 / 0 010 /

Circuit Analysis (Page 2)

Step 2a: Determine the equations for the flip–flop inputs. Reading the diagram, we see that D = X + Y This can be written as D = X + Q(T) Note: Q(T) is the flip–flop state now. The flip–flop will not react to the D input until time (T + 1) Step 2b: Determine the equation for the output. Reading the diagram, we see that Z = XY

Circuit Analysis (Page 3)

Step 3a: Create the Next State Table X Q(T) = Y D = X + Y Q(T+1) 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 We have a D flip–flop here. When we compute D from X and Q(T), we automatically get Q(T + 1) Step 3b: Create the Output Table X Q(T) Z 0 0 0 0 1 1 1 0 1 1 1 0

Circuit Analysis (Page 5)

Step 5: Draw the FSM Model (State Diagram) Step 6: If Possible, Identify the Circuit. Note that for Q(T) = 0 Z = X Q(T) = 1 Z = X This is a serial two’s–complement circuit, LSB first.

Two’s Complement (Right to Left)

Two Cases: Number is bn-1 bn-2 … b 2 b 1 b 0

  1. Last Bit is a 1. Number is bn-1 bn-2 … b 2 b 1 1
  2. Last Bit is a 0. Number is bn-1 bn-2 … bk 1 0 … 0