LeCroy Corporation
Verification Script Engine Reference Manual
Page 27 of 107
# Hex Value
val = GetHexPktField ( “NumP” );
str = FormatEx( “\tNumP(hex) = 0x%X\n”, val );
ReportText( str );
}
if( in.TraceEvent == _USB3_DP_PKT )
{
# Example of using decoded packet information for DPs.
# ‘SeqN’ field
# String value
str = FormatEx( “\tSeqN(str) = ‘%s’”, GetDecodedPktField ( “SeqN” ) );
ReportText( str );
# Hex Value
val = GetHexPktField ( “SeqN” );
str = FormatEx( “\tSeqN(hex) = 0x%X\n”, val );
ReportText( str );
# ‘ENDP’ field
# String value
str = FormatEx( “\tENDP(str) = ‘%s’”, GetDecodedPktField ( “ENDP” ) );
ReportText( str );
# Hex Value
val = GetHexPktField ( “ENDP” );
str = FormatEx( “\tENDP(hex) = 0x%X\n”, val );
ReportText( str );
}
# Link Control Word
if( ( in.TraceEvent == _USB3_TP_PKT ) ||
( in.TraceEvent == _USB3_DP_PKT ) )
{
ReportText( “LCW:” );
val = GetHexPktField ( “Hseq” );
str = FormatEx( “\tHseq = %d”, val );
ReportText( str );
val = GetHexPktField ( “Hdepth” );
str = FormatEx( “\tHDepth = %d”, val );
ReportText( str );
val = GetHexPktField ( “D1” );
str = FormatEx( “\tDelayed (D1) = %d”, val );
ReportText( str );
val = GetHexPktField ( “D2” );
str = FormatEx( “\tDeferred (D2) = %d\n”, val );
ReportText( str );
}