UNIT-5-Synchronous Sequence Machines
UNIT-5-Synchronous Sequence Machines
❖Sequential circuit:
Its outputs a function of external inputs as well as stored
information.
1 Mr. P D Sawant
Sequential Circuits :
❖ Consist of a combinational circuit to which storage elements
are connected to form a feedback path
❖ State -- the state of the memory devices now, also called
current state .
❖ Next states and outputs are functions of inputs and present
states of storage elements
2 Mr. P D Sawant
Sequential Circuit Analysis:
3 Mr. P D Sawant
State Equations:
❖ Specify the next state as a function of the present state and inputs
→ Also called transition equation
❖ Analyze the combinational part directly
EX:
y(t)=[A(t)+B(t)] x(t)
=>y=(A+B)x’
4 Mr. P D Sawant
State Table:
5 Mr. P D Sawant
State Table:
6 Mr. P D Sawant
Second Form of State Table:
❖ The state table has only three section: present state, next state, and
output .
❖The input conditions are enumerated under next state and output
sections.
7 Mr. P D Sawant
State Diagram:
❖ Graphically represent the information in a state table.
→ Circle: a state (with its state value inside)
→ Directed lines: state transitions (with inputs/outputs above)
❖The state table is easier to derive from a given logic diagram and state
equations.
8 Mr. P D Sawant
State Diagram:
9 Mr. P D Sawant
Flip-Flop Input Equations:
❖To draw the logic diagram of a sequential circuit, we need
→ The type of flip-flops
→ A list of Boolean expressions of the combinational circuits.
❖The Boolean functions for the circuit that generates external outputs is
called output equations
❖The Boolean functions for the circuit that generates the inputs to flip-
flops is flip-flop input equations
→ Sometimes called excitation equations
10 Mr. P D Sawant
Analysis with D Flip-Flop:
11 Mr. P D Sawant
Analysis with Other Flip-Flops:
❖ The sequential circuit using other flip-flops such as JK or T type can
be analyzed as follows
12 Mr. P D Sawant
Analysis with JK Flip-Flops (1/2):
13 Mr. P D Sawant
Analysis with JK Flip-Flops (2/2):
14 Mr. P D Sawant
Analysis with T Flip-Flops (1/2):
15 Mr. P D Sawant
Analysis with T Flip-Flops (2/2):
16 Mr. P D Sawant
Mealy and Moore Model
17 Mr. P D Sawant
Moore Machines: Moore machines are finite state machines with output
value and its output depends only on present state.
18 Mr. P D Sawant
Moore Machines:
➢In the moore machine shown in Figure 1, the output is represented with
each input state separated by /.
➢The length of output for a moore machine is greater than input by 1.
Input: 11
Transition:
19
δ (q0,11)=> δ(q2,1)=>q2
Mr. P D Sawant
Output: 000 (0 for q0, 0 for q2 and again 0 for q2)
Moore Machine –
➢ Output depends only upon present state.
➢ Easy to design.
20 Mr. P D Sawant
Mealy Machines: Mealy machines are also finite state machines wit
h output value and its output depends on present state and current
input symbol.
It can be defined as (Q, q0, ∑, O, δ, λ’) where:
Q is finite set of states.
q0 is the initial state.
∑ is the input alphabet.
O is the output alphabet.
δ is transition function which maps Q×∑ → Q.
‘λ’ is the output function which maps Q×∑→ O.
21 Mr. P D Sawant
Mealy Machines:
➢ It is difficult to design.
23 Mr. P D Sawant
State Reduction and Assignment
State Reduction:
❖ Reducing the number of states in a state table, while keeping the
external input-output requirements unchanged.
Example:
▪ Total 7 states
▪ A sequence as follows
24 Mr. P D Sawant
State Reduction Rules
❖Two states are said to be equivalent if, for every possible inputs, they
give exactly the same output and have equivalent next state
25 Mr. P D Sawant
Further State Reduction
❖ After the first reduction, we can see that state d and state f will have
the same output and next state for both x=0 and x=1.
▪ Further reduce one state
26 Mr. P D Sawant
Reduced State Diagram
❖ After reduction, the circuit has only 5 states with same input/output
requirements.
27 Mr. P D Sawant
Implication Chart Method (1/3)
❖ Step 1: build the implication chart
28 Mr. P D Sawant
Implication Chart Method (2/3)
❖ Step 2: delete the node with unsatisfied conditions
29 Mr. P D Sawant
Implication Chart Method (3/3)
❖ Step 3: repeat Step 2 until equivalent states found
30 Mr. P D Sawant
State Assignment
❖ Assign coded binary values to the states for physical implementation.
❖ For a circuit with m states, the codes must contain n bits ,
→ where 2^n >= m
❖Unused states are treated as don’t care conditions during the design
▪ Don’t cares can help to obtain a simpler circuit.
❖ There are many possible state assignments
▪ Have large impacts on the final circuit size.
31 Mr. P D Sawant
Popular State Assignments
❖ Binary: assign the states in binary order.
▪ Typical method without other considerations !
32 Mr. P D Sawant
Design Procedure
❖ Design procedure of synchronous sequential circuits:
➢Derive a state diagram for the circuit from specifications.
33 Mr. P D Sawant
Synthesis Using D Flip-Flops
❖ Ex: design a circuit that detects 3 or more consecutive 1’s at inputs
34 Mr. P D Sawant
Synthesis Using D Flip-Flops
❖ Ex: design a circuit that detects 3 or more consecutive 1’s at inputs
35 Mr. P D Sawant
Synthesis Using JK Flip-Flops
❖ Derive the state table with the excitation inputs.
❖ Other design procedures are the same.
36 Mr. P D Sawant
Synthesis Using JK Flip-Flops
37 Mr. P D Sawant
Synthesis Using T Flip-Flops
❖ Derive the state table with the excitation inputs.
❖ Other design procedures are the same.
38 Mr. P D Sawant
Synthesis Using T Flip-Flops
39 Mr. P D Sawant
Thank you
40 Mr. P D Sawant