User manual

42 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide
UG154 March 24, 2008
Chapter 4: Detailed Example Design
R
Table 4-11 contains a list of common useful test case signals and descriptions.
There are five request signals that can be asserted in the testcase module. The first four
signals interface to the stimulus module (see Figure 4-2, page 34). The fifth is encapsulated
with the generated data sent to the stimulus module. Table 4-12 details request signals.
In addition to the request signals described above, the test case module has control over
the Sink and Source cores with the SnkEn, SrcEn, SnkFifoReset_n, and
SrcFifoReset_n signals. Descriptions of these signals can be found in the SPI-4.2 Core
User Guide.
The Source core status is also generated in the test case module using functions contained
in the procedures module. Using the function send_status, you can specify a channel
Table 4-11: Useful Testcase Signals
Name Description
FullVec An array of bits indicating the last status received on RStat for
each channel. For each channel, the corresponding bit is set (1)
if the status received was ‘10’ - satisfied, and cleared (0) if the
status was ‘01’ - hungry or ‘00’ - starving.
NumLinks The number of channels for which the core was configured.
Reset_n Reset signal to the Sink and Source core (active low).
SnkEn Enable signal to the Sink core.
SnkFifoReset_n FIFO Reset signal to the Sink core (active low).
SnkInFrame Asserted when the Sink core is in frame (as interpreted by the
status monitor).
SnkOof Out-of-Frame signal from the Sink core.
SrcEn Enable signal to the Source core.
SrcFifoReset_n FIFO Reset signal to the Source core (active low).
SrcInFrame Asserted when the Source core is in frame (as interpreted by
the data monitor).
SrcOof Out-of-Frame signal from the Source core.
Table 4-12: Testcase Module Request Signals
Name Function
TCIdleRequest Drives the IdleRequest input to the Source core, which results
in idles begin transmitted on TDat.
TCTrainingRequest Drives the TrainingRequest input to the Source core, which
causes training to be sent on TDat.
TCSnkDip2ErrRequest Drives the SnkDip2ErrRequest input to the Sink core, which
results in DIP2 errors on RStat.
TCDIP2Request When asserted (active high), causes DIP2 errors to be
transmitted on TStat.
TCDIP4Request When asserted (active high), causes DIP4 errors to be
transmitted on RDat.