Xilinx UG154 Microscope & Magnifier User Manual


 
40 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide
UG154 March 24, 2008
Chapter 4: Detailed Example Design
R
MERGE_PAYLOAD Integer 0 <0 or 1> Before data is sent on RDat, the demonstration
test bench can either merge an EOP and SOP
control word into one payload control word, or it
can leave them as two separate control words.
1: Merge EOP and SOP is enabled.
0: Merge EOP and SOP is disabled.
CHECK_RSTAT Integer 0 <0 or 1> The demonstration test bench can operate in two
modes with respect to the incoming status signal
RStat. It either ignores the value on RStat or
checks the value on RStat.
0: Ignore the value on RStat. The test bench
continues to send data on RDat regardless of
the status of the current channel.
1: Check the value on RStat. The test bench
checks the status of the current channel before
sending data to it. If the channel is satisfied
(RStat = ‘10’), then the test bench does not send
the packet of data and instead tries to send the
next packet. The test bench sends the packet if
the channel is starving or hungry (RStat = ‘01’
or ‘00’).
DATA_TYPE Integer 1 <0, 1, 2> Three types of data can be generated on RDat. The
first type simply increments the data on each
channel (e.g. sends 0, 1, 2 to channel 0, sends 0, 1,
2 to channel 1, then sends 3, 4, 5 to channel 0). The
second sends randomized data on RDat. The last
type sends data read from the file
<TEST_DATA_FILE>.
0: Send incremental data
1: Send random data
2: Send data read from file
TEST_DATA_FILE String data_file.dat
<filename>
Contains the name of the file to be read if
DATA_TYPE = 2
RANDOM_SEED Integer
(Verilog)
5431 <any 32-bit
integer value>
Initial seed for the random number generator. To
get different results between two runs of a
random test bench, the seed must be changed. If
the seed is not changed between runs, then every
random number is the same as the previous run.
std_logic_
vector(31
downto 0)
(VHDL)
x”1537” <any 32-bit
vector>
Table 4-10: Testcase Package User-Defined Constants (Continued)
Name
Constant
Type
Default Value
(Range)
Description