2 gethexscriptfield(), Cript, Ield – Teledyne LeCroy SierraFC Verification Script Engine Reference Manual User Manual

Page 45

Advertising
background image

Verification Script Engine Reference Manual

40

19.2 GetHexScriptField()

Extracts raw hexadecimal information about script decoded field.


Format :

GetHexScriptField ( fld_name )



Parameters:

fld_name - name of the MAD field supposedly existing in the FCP-SCSI, GS or SW sequence
being processed:


Return Values:

If the field with the specified name is present in the current sequence - this function returns the
hex value of the decoded field ( integer value- if the length of field is less than 32 bits or raw
binary value (list of bytes, see CSL manual for further details about raw binary values ) - if the
length of field is greater than 32 bits ), null-value if the field was not found.


Example:

val = GetHexScriptField ( “Logical Block Addr” ); # extract the hex value of LBA field.

# extract the hex value of SomeBig field.
if( GetHexScriptField ( "Some Big" ) == 'FE80000000000000' )
ReportText( "Some Big field = FE80-0000-0000-0000");

Remark:

The name of field should be exactly the same

as it seen in the trace ( case sensitive )

Advertising