beautypg.com

18 sendtransfer(), Ransfer – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 55

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 55 of 115



8.18 SendTransfer()


This function works on the Transfer level and allows specifying more precise tuning for the transfer
events that are sent to the script.


Format:

SendTransfer(xfer_type, address, endpoint, completed, only_with_errors)


Parameters:

xfer_type

Specifies the type of Transfer to send to the script (see

transfer event types

).

The value _ANY means any transfer type is accepted.


address

Specifies that only Transfer events with the specified Address value are sent.
The value _ANY means any Address is accepted.

endpoint

Specifies that only Transfer events with the specified Endpoint value are sent.
The value _ANY means any Endpoint is accepted.


completed

Specifies that only Transfers that are complete (1, default) or incomplete (0) should be
sent to the script.

only_with_errors When set to one, specifies that only Transfer events with errors at the transfer level are

sent.

Example:

# Send Control Transfers for address 0.
SendTransfer( _X_CONTROL, 0 );


# Send BULK transfers with errors.
SendTransfer( _X_BULK, _ANY, _ANY, 0, 1 );