Digital Signal Processing Reference
In-Depth Information
8.9 Simulation Vector file for State Machine Simulation
The vector waveform file, tcontrol.vwf , seen in Figure 8.9 controls the
simulation and tests the state machine. A vector waveform file specifies the
simulation stimulus and display. This file sets up a 40ns clock and specifies
sensor patterns (inputs to the state machine), which will be used to test the state
machine. These patterns were chosen by picking a path in the state diagram that
moves to all of the different states.
The sensor-input patterns will need to be changed if you change to a different
train pattern, and therefore, the state machine. Sensor inputs should not change
faster than the clock cycle time of 40ns. As a minimum, try to test all of the
states and arcs in your state machine simulation.
Figure 8.9 Tcontrol.vwf vector waveform file for simulation.
Figure 8.10 Simulation of Tcontrol.vhd using the Tcontrol.vwf vector waveform file in Figure 8.9.
Search WWH ::




Custom Search