17 sendtransaction(), Ransaction – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual
Page 54
Teledyne LeCroy
Verification Script Engine Reference Manual
Page 54 of 115
8.17 SendTransaction()
This function works on the Transaction level and allows specifying more precise tuning for the
transaction events that are sent to the script.
Format:
SendTransaction(tra_type, xfer_type, address, endpoint, completion_flag,
only_with_errors)
Parameters:
tra_type
Specifies the type of Transaction event (see
xfer_type
Specifies the type of Transfer this transaction is being part of (see
address
Specifies that only Transaction events with the specified Address value are sent.
The value _ANY means any Address is accepted.
endpoint
Specifies that only Transaction events with the specified Endpoint value are sent.
The value _ANY means any Endpoint is accepted.
completion_flag Specifies that only Transaction events with the specified Handshake PIDs are sent.
The value _ANY means any handshake is accepted.
The possible values are:
const PID_ACK
= 0x4B;
const PID_NAK
= 0x5A;
const PID_STALL
= 0x78;
const PID_NYET
= 0x69;
const PID_ERR
= 0x3C;
only_with_errors When set to one, specifies that only Transaction events with errors at the transaction
level are sent.
Example:
# Send SETUP transactions for any Transfer type and address 0.
SendTransaction( _T_SETUP, _ANY, 0 );
# Send OUT transactions for any transfer type, address 1, endpoint 0.
SendTransaction( _T_OUT, _ANY, 1, 0 );
# Send IN transactions for BULK transfers that were acknoledged by ACK.
SendTransaction( _T_IN, _X_BULK, _ANY, _ANY, PID_ACK );
# Send IN transactions with errors.
SendTransaction( _T_IN, _ANY, _ANY, _ANY, _ANY, 1 );