Madf, Ield – Teledyne LeCroy IBTracer 4X - IBTracer Verification Script Engine Users Manual User Manual
Page 33

Computer Access Technology Corporation
IBTracer Verification Script Engine Manual, version 1.0
Page 33 of 35
str = GetDecodedMADField (“PortState”); # extract the decoded value of PortState
# field.
Remark:
The name of field should be exactly the same as it seen in the trace ( case included )
17.2 GetHexMADField()
Extracts raw hexadecimal information about MAD decoded field.
Format :
GetHexMADField ( mad_fld_name )
Parameters:
mad_fld_name - name of the MAD field supposedly existing in the MAD being processed:
Return Values:
If the field with the name asked is present in the current MAD - 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) - if the length of field is greater than 32 bits ), null-value if field was not found.
Example:
val = GetHexMADField (“PortState”); # extract the hex value of PortState field.
# extract the hex value of GIDPrefix field.
if( GetHexMADField ( "GIDPrefix" ) == 'FE80000000000000' )
ReportText( "GIDPrefix = FE80-0000-0000-0000");
Remark:
The name of field should be exactly the same as it seen in the trace ( case included )