Vector file for simulation


[ Follow Ups ] [ Post Followup ] [ ECE 532 Discussion Area ] [ FAQ ]

Posted by Vaughn Betz on March 10, 1998 at 16:26:45:


For complex simulations, you'll find that it is easier to create
a testvector file (.vec file) rather than creating the stimulus via
the waveform editor. Here's a sample .vec file that I used to test
part 1 of lab 2. It should give you the basic idea of the vector file
format. Consult the online help for more details.

File reg.vec:

Here's a sample .vec file. It was designed for Lab 2, part 1. It gives
you an idea of how to create a vector file to drive your simulations. For
complex simulations, it's faster to create a .vec file than to use the
waveform editor.

See the online help for further details.

Vaughn


START 0;
STOP 1500;

INTERVAL 50;
INPUTS clk;
PATTERN
0 1;

INPUTS reset_b;
PATTERN
000> 0
020> 1;

INPUTS as_b uds_b lds_b r_wb;
PATTERN
000> 1 1 1 1
040> 1 1 1 1 % idle %
140> 0 0 0 1 % read %
340> 1 1 1 1 % done %
440> 0 1 1 0 % write %
540> 0 0 0 0 % still write %
640> 1 1 1 1 % done %
740> 0 1 1 1 % read %
840> 0 0 0 1 % still read %
940> 1 1 1 1 % done %
1040> 0 0 0 1 % read but out of address range. %
;

RADIX HEX;
INPUTS address;
PATTERN
000> A
500> 2
1040> B
;


RADIX BIN;
INPUTS data;
PATTERN
000> ZZZZZZZZZZZZZZZZ
440> 1111000010101010
640> ZZZZZZZZZZZZZZZZ
;

RADIX HEX;
OUTPUTS
data dig1_7seg dig2_7seg;

OUTPUTS
dtack_b;

RADIX HEX;
BURIED
state output_en.Q reg_val.Q
;



Follow Ups:


Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ ECE 532 Discussion Area ] [ FAQ ]