4 gethexscriptfield(), Cript, Ield – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual
Page 60
Teledyne LeCroy
Verification Script Engine Reference Manual
Page 60 of 115
9.4 GetHexScriptField()
Extracts the raw hexadecimal value of the script decoded field.
Format :
GetHexScriptField ( fld_name )
Parameters
fld_name
Name of the field supposedly existing in the current Transfer
Return Values
If the field name is in the current Transfer, the function returns the hex value of the decoded field:
o integer value if field length is less than 32 bits
o raw binary value if field length is greater than 32 bits. The raw binary value gives a list of bytes.
See the CSL Manual for further details about raw binary values.
o null value if the field was not found.
Example
# Extract the hex value of the LBA field for mass storage.
val = GetHexScriptField ( "Logical Block Addr" );
# Extract the hex value of the SomeBig field.
if( GetHexScriptField ( "Some Big" ) == 'FE80000000000000' )
ReportText( "Some Big field = FE80-0000-0000-0000");
Remarks
The field name should be exactly the same as it is in the trace. The field name is case sensitive.
This function can be used only at the Transfer level.