Professional Documents
Culture Documents
SMChart Microprogram
SMChart Microprogram
SMChart Microprogram
Components:
State box: Rectangular
Decision box: Diamond
Part 7: SM Chart, Conditional output box: Ellipse.
Microprogramming, Design of a
Game SM chart is equivalent to state transition
diagram.
Design steps:
1. Construct a flow chart for describing the
game.
2. Refine the flow chart into a SM chart
3. Use the SM chart to develop the VHDL
model.
4. Implement the model into digital
hardware.
Rb D711: Sum = 7 or 11
D2312: sum = 2, 3 or 12
Done Roll Counter (dice) Counter (dice) D7: Sum = 7
Win Eq: Sum = Point?
Lose Reset: Game been reset
Control Adder
section Other status (not explicit):
Point register
Rb: input signal for rolling the dice
Sp
D7 Eq
D711 D2312
Define control signals Adder and counters are outside of the model
entity tester is
end tester;
Example Microprogramming
State0/A
Store the control signals in a memory.
0 1
Cond1 Two ways:
1. Execute one “instruction” - test some
Z1 Cond2 condition, branch to one location if the
0
1 condition is true and branch to another location
State1 State2 State3 if the condition is false.
Instruction word
(TABLE)
Figure 5-29 For either way, the first step is to modify the SM
chart to meet the microprogramming scheme.
Some conditions:
Next instruction address
Only one condition can be tested in each step
Acrobat Document
Structure 2
Figure 5-30, 31 & Table 5.4: Add state to make the
transition to state
(CURRENT STATE + 1) if the condition is false.