Sample Sequential Machine Simulation Vector File

Click here to see the waveform output generated by this simulation.



% --------------------------------------------------------------

File:			dblloop.vec
Author:			Charles S. Tritt, Ph.D.
Last updated:	2/16/97

This vector file simulates the double loop state machine 
specified in dblloop.tdf.

---------------------------------------------------------------%

UNIT ms;      % Set the time units to milliseconds. %
START 0;      % Set the starting time for the simulation. %
STOP 250;     % Set the stopping time for the simulation. %
INTERVAL 5;   % Step corresponds to a 100 Hz clock. %
GROUP CREATE state = c1 c0;  % Create a group to represent
                               the state numerically. %
RADIX HEX;    % Set the radix for the group (state) output. %
INPUTS clock reset move cw/ccw goright;
OUTPUTS left state;     % Include the state in the output list. %
% A BURIED statement could go here. %
% A COMB (combinational) statement could go here. %
% A MACHINE statement could go here to specify a state machine's
  secondary inputs (CLOCK, PRESET and RESET) if the file was to
  be imported into a .wdf file. %
% A REGISTER statement could go here to specify a node in a 
  preceding OUTPUTS or BURIED statement is driving a register
  and to specify the register's secondary inputs (CLOCK, PRESET 
  and RESET) the file was to be imported into a .wdf file. %

% Use a pattern statement to specify the vectors to be used in
  the simulation. %

PATTERN  % clock reset move cw/ccw goright %

0 1 0 0 0 % Reset the machine. % 
1 1 0 0 0
0 0 0 0 0 % Wait in the Start state. %
1 0 0 0 0
0 0 1 0 0 % Bring move high. %
1 0 1 0 0 % Move CCW left to state Left0. %
0 0 1 0 0
1 0 1 0 0 % Keep moving CCW to state Left1. %
0 0 1 0 0
1 0 1 0 0 % Keep moving CCW to state Left2. %
0 0 1 0 0
1 0 1 0 0 % Get back to Start. %
0 0 1 0 0
1 0 1 0 0 % Continue CCW to state Left0. %
0 0 1 0 1 % Bring goright high. %
1 0 1 0 1 % Keep moving CCW to state Left1. %
0 0 1 0 1
1 0 1 0 1 % Keep moving CCW to state Left2. %
0 0 1 0 1
1 0 1 0 1 % Get back to Start and go to right. %
0 0 1 0 1
1 0 1 0 1 % Move CCW right to state Right2. % 
0 0 1 0 1
1 0 1 0 1 % Move CCW to state Right1. % 
0 0 1 1 1 % Bring cw/ccw high. %
1 0 1 1 1 % Move CW back to state Right2. % 
0 0 1 1 1
1 0 1 1 1 % Move CW back to Start. % 
0 0 1 1 1
1 0 1 1 1 % Move CW to Right0. % 
0 0 1 1 1
1 0 1 1 1 % Move CW to Right1. % 
0 0 1 1 1
1 0 1 1 0 % Move CW to Right2 and get ready to go left. % 
0 0 1 1 0
1 0 1 1 0 % Move CW to Start. % 
0 0 1 1 0
1 0 1 1 0 % Move CW left to state Left2. % 
0 0 1 1 0
1 0 1 1 0 % Move CW to state Left1. % 
0 0 0 0 0 % Lower Move and cw/ccw. %
1 0 0 0 0 % Hold in state Left1. % 
0 0 1 0 0 % Rise Move. %
1 0 1 0 0 % Move CCW to state Left2. % 
0 0 1 0 0
1 0 1 0 0 % Move CCW back to Start. %
0 0 0 0 0
1 0 0 0 0 % Hold in Start state. %
0 0 0 0 0
1 0 0 0 0 % Hold in Start state. %
0 0 0 0 0
1 0 0 0 0 % Hold in Start state. %
;

Send comments and suggestions about this page to: Dr. Charles S. Tritt
This page last updated 2/18/97