The following four
commands are for Relative Time Vector Pattern, these are used for defining
peroidic signals such as a clock signal.
UNIT
The default is ns.
Valid time units:
ns, us, ms, s, mhz
Example: UNIT
ms; % millisecond units %
START
Simulation start time
Example: START
5ns; % start at 5 ns %
STOP
Simulation end time
Example: STOP
10ms; % end at 10 ms %
INTERVAL
Specify for how long
the signals repeat again.
Example: INTERVAL
40ns;
To define a clock signal with 80 ns period from 0ns to 1us:
UNIT
ns ;
START
0 ;
STOP
1000 ;
INTERVAL
40 ;
INPUTS
clk ;
PATTERN
0
1 ; %
start from low signal %
INPUTS
Put the signal name(s) after INPUT, and then force the signal values. The first number beside '>' is the absolute time vector value. PATTERN defines the forced values.
Example:
INPUTS
one ;
PATTERN
10>
0 ;
Or force more than one signal together:
INPUTS
a1 b1;
PATTREN
0>
0 0
10>
1 0
50>
1 1
;
OUTPUTS
Similar to inputs, but without the values.
OUTPUTS
out1 out2 ;
BURIED
BURIED |first_entity|second_entity|state
;
Misc:
Radix (1011 -> 11 -> B)
The radix determines how logic level are interpreted for a group of inputs. It also determines how group logic levels are displayed in the SCF waveform. The default is hexadecimal.
Suffix Action:
\BIN
Specifies a binary radix for the group.
\DEC
Specifies a decimal radix for the group.
\HEX
Specifies a hexadecimal radix for the group.
\OCT
Specifies an octal radix for the group.
Example: groupname\BIN
You may refer to line
20, 'photo_detect' signal in the given sample.
Comment (%...%)
Use '%' to enclose
the part as a comment. If you edit the vector file in MAX+plus II,
the comments will be colored in green.