Analysis sequential circuits

gsubramaniamg 969 views 39 slides May 05, 2021
Slide 1
Slide 1 of 39
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39

About This Presentation

Sequential Circuits.


Slide Content

Spring 2011 ECE 331 - Digital System Design2
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.

Spring 2011 ECE 331 - Digital System Design3
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.

Spring 2011 ECE 331 - Digital System Design4 Sequential Circuits: General Model

Memory

Stores state information

Realized using Flip-Flops

Combinational Logic

Implements Flip-Flop input functions and output fun ctions

Realized using logic gates, a ROM or a PLA

Spring 2011 ECE 331 - Digital System Design5
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 sta te.

Mealy
Machine

Outputs are a function of the present state and the
present input. –
State diagram includes an input and output value fo r
each transition (between states).

Spring 2011 ECE 331 - Digital System Design6
Sequential Circuits: Models

Spring 2011 ECE 331 - Digital System Design7
Sequential Circuits: Mealy
Model
output
Present state
Next state

Spring 2011 ECE 331 - Digital System Design8
Sequential Circuits: Moore
Model
Present
state
output
Next state

Spring 2011 ECE 331 - Digital System Design9
Sequential Circuits: State Diagram
State
Output
Input
Moore Machine
Each node in the graph
represents a state in the
sequential circuit.

Spring 2011 ECE 331 - Digital System Design10
Sequential Circuits: State Diagram
Mealy Machine
Each node in the graph
represents a state in the
sequential circuit.
Input
State
Output

Spring 2011 ECE 331 - Digital System Design11
Sequential Circuit Analysis

Spring 2011 ECE 331 - Digital System Design12
Analysis: Signal Tracing
1.
Assume an initial state for the sequential circuit.

All Flip-Flops reset to 0 (unless otherwise stated) .
2.
Determine the sequential circuit output and the fli p-
flop inputs for the first input value in the sequen ce. 3.
Determine the next state of each Flip-Flop

After the next active clock edge.
4.
Determine the sequential circuit output and the fli p-
flop inputs for the next value in the sequence. 5.
Repeat steps 3 & 4.

Spring 2011 ECE 331 - Digital System Design13
Example: Moore Machine
input
Flip-Flop inputs
output
State = AB

Spring 2011 ECE 331 - Digital System Design14
Example: Moore Machine
0 1 1 0 1

Spring 2011 ECE 331 - Digital System Design15
Example: Mealy Machine

Spring 2011 ECE 331 - Digital System Design16
Example: Mealy Machine

Spring 2011 ECE 331 - Digital System Design17 Analysis: State Tables and Graphs Although constructing timing charts is satisfactory for small
circuits and short input sequences, the constructio n 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 sequenti al
circuits.
The state table
specifies the next state and output of a
sequential circuit in terms of its present state an d input.

Spring 2011 ECE 331 - Digital System Design18
Analysis Procedure
1.
Determine the Flip-Flop input equations
2.
Determine the Sequential Circuit output equations
3.
Derive the Next State equation for each Flip-Flop

Using the corresponding input equation

And the Flip-Flop characteristic equation
4.
Plot the Next State K-map for each Flip-Flop
5.
Construct the State Table (aka. Transition Table)

Assign a state label to each binary state assignmen t
6.
Draw the corresponding state diagram (aka. state g raph)

Spring 2011 ECE 331 - Digital System Design19
Example:
Analyze a sequential circuit using D Flip-Flops

Spring 2011 ECE 331 - Digital System Design20
Example: Analysis (D FF)
Derive the State Table for the following Sequential Logic Circuit:

Spring 2011 ECE 331 - Digital System Design21
Example: Analysis (D FF)
The flip-flop input equations are:
D
A
= X xor B' D
B
= X or A
Z = A xor B
The next-state equations for the flip-flops are:
A
+
= D
A
= X xor B' B
+
= D
B
= X or A
The sequential circuit output equation is:

Spring 2011 ECE 331 - Digital System Design22
Example: Analysis (D FF)
The corresponding next-state (K-) maps are:

Spring 2011 ECE 331 - Digital System Design23
Example: Analysis (D FF)
The state table, or transition table, is then:
A
+
B
+
A B
X = 0
X = 1
Z
0 0
1 0
0 1
0
0 1
0 0
1 1
1
1 1
0 1
1 1
0
1 0
1 1
0 1
1
Present
Next State
State
X = 0
X = 1
Output
S0
S3
S1
0
S1
S0
S2
1
S2
S1
S2
0
S3
S2
S1
1

Spring 2011 ECE 331 - Digital System Design24
Example: Analysis (D FF)
The state diagram can then be drawn from the state table:

Spring 2011 ECE 331 - Digital System Design25
Example:
Analyze a sequential circuit using JK Flip-Flops

Spring 2011 ECE 331 - Digital System Design26
Example: Analysis (JK FF)
Derive the State Table for the following Sequential Logic Circuit:

Spring 2011 ECE 331 - Digital System Design27
Example: Analysis (JK FF)
The flip-flop input equations are:
The next-state equations for the flip-flops are:
The sequential circuit output equation is:
J
A
= X.B J
B
= X
K
A
= X K
B
= X.A
Z = X.B' + X.A + X'.A'.B
A
+
= J
A
.A' + K
A
'.A B
+
= J
B
.B' + K
B
'.B
A
+
= X.B.A' + X.A B
+
= X.B' + X.A.B

Spring 2011 ECE 331 - Digital System Design28
Example: Analysis (JK FF) The corresponding next-state (K-) maps are

Spring 2011 ECE 331 - Digital System Design29
Example: Analysis (JK FF) The state table, and transition table, is then:

Spring 2011 ECE 331 - Digital System Design30
Example: Analysis (JK FF)
The state diagram can then be drawn from the state table:

Spring 2011 ECE 331 - Digital System Design31
Example:
Analyze a serial adder

Spring 2011 ECE 331 - Digital System Design32
Example: Serial Adder
The serial adder adds two n-bit binary numbers.
(serial) inputs
(serial) output
present
state
next state

Spring 2011 ECE 331 - Digital System Design33
Example: Serial Adder
Truth Table for the Full Adder:

Spring 2011 ECE 331 - Digital System Design34
Example: Serial Adder
The state table, or transition table, is then:
C
i+1
Sum
C
i
XY = 00
XY = 01
XY = 10
XY = 11
XY = 00
XY = 01
XY = 10
XY = 11
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
0
0
1
Present
Next State
Output
State
XY = 00
XY = 01
XY = 10
XY = 11
XY = 00
XY = 01
XY = 10
XY = 11
S0
S0
S0
S0
S1
0
1
1
0
S1
S0
S1
S1
S1
1
0
0
1

Spring 2011 ECE 331 - Digital System Design35
Example: Serial Adder
State Graph for the Serial Adder:
What type of state machine is this?

Spring 2011 ECE 331 - Digital System Design36
Example: Serial Adder
Timing Diagram for the Serial Adder:

Spring 2011 ECE 331 - Digital System Design37
Example:
Analyze a state machine with multiple inputs.

Spring 2011 ECE 331 - Digital System Design38
Example: Multiple Inputs
State Table for a state machine with multiple input s:

Spring 2011 ECE 331 - Digital System Design39
Example: Multiple Inputs
State Graph for a state machine with multiple input s:
How many paths
leave each state?
What type of state
machine is this?

Spring 2011 ECE 331 - Digital System Design40
Questions?
Tags