beautypg.com

19 sendpktswithbadcrc(), Crc() – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 56

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 56 of 115



8.19 SendPktsWithBadCRC()

This function instructs VSE to send packets with bad CRC to the script. By default, packets with bad
CRC are not sent to verification scripts.

To determine whether a packet has an CRC5 or CRC16 error, check

in.Errors

(It is different from 0 if there are some header errors. See the

in.Errors

section for full error bit

descriptions.)

Format :

SendPktsWithBadCRC( send_packets_with_bad_crc )


Parameters:

send_packets_with_bad_crcr

Optional parameter specifies whether frames with bad CRC should be
sent to the verification script or not.
If it is omitted or set to 1, frames with bad CRC are sent to the script.
Otherwise, VSE sends only frames with correct CRC.

Example:

SendAllChannels (); # Send events from ALL channels.
SendAllTaceEvents(); # Send all events.
SendPktsWithBadCRC(); # Send packets with CRC errors.

crc16_error_mask = 0x8; # Bit 3 (if set) indicates CRC16 error.

if(

in.Errors

& crc16_error_mask)

{

# Handle CRC16 error.

}

SendPktsWithBadCRC ( 0 ); # Send frames with no CRC errors.