
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The Mealy Form: Outputs may be a function of both the current state and the inputs. A mnemonic: Moore machines often have more states.
Typology: Exercises
1 / 32
This page cannot be seen from the preview
Don't miss anything!

























Finite State Machines
Stephen A. Edwards
Columbia University
Fall 2012
CLOCK
Next State Current State
Current State
Inputs
Next State
Current State
Inputs?
Outputs
Next State Logic
Output Logic
CLK
Next State
Current State Inputs Outputs
The Mealy Form:
Outputs may be a function of both the current state and the inputs.
A mnemonic: Moore machines often have more states.
State
Next State
Inputs Outputs
CLK
Another, equivalent way of drawing Mealy Machines
This is exactly the synchronous digital logic paradigm
S 0
Moore Machine: States indicate output
S 0
S 0
Moore Machine: States indicate output
S 0
S 0
S 0
S 0
S 1
Moore Machine: States indicate output
S 0
S 0
S 0
S 0
S 1
Moore Machine: States indicate output
S
Mealy Machine: Arcs indicate input/output (^) 6 / 1
S 0
S 0
S 0
S 0
S 1
Moore Machine: States indicate output
S0 S1 S2 S
S 0
S 0
S 0
S 0
S 1
Moore Machine: States indicate output
S0 S1 S2 S
Next State S A Sโ 000 0 000 000 1 001 001 0 000 001 1 010 010 0 011 010 1 010 011 0 000 011 1 100 100 0 000 100 1 010
Output S Y 000 0 001 0 010 0 011 0 100 1
CLK
CLK
CLK
S โฒ 0
S โฒ 1
S โฒ 2
A
S 0
S 1
S (^2) Y
A
Y
CLK
Mealy Form: Output Depends on Input Immediately
A
Y
CLK
Moore Form: Output Depends Only on State
C
C
This controls a traffic light at the intersection of a busy highway and a farm road. Normally, the highway light is green but if a sensor detects a car on the farm road, the highway light turns yellow then red. The farm road light then turns green until there are no cars or after a long timeout. Then, the farm road light turns yellow then red, and the highway light returns to green. The inputs to the machine are the car sensor, a short timeout signal, and a long timeout signal. The outputs are a timer start signal and the colors of the highway and farm road lights. Source: Mead and Conway, Introduction to VLSI Systems , 1980, p. 85.