17 common retrieving functions, 1 gettrapayloadlimit (), 2 settrapayloadlimit () – Teledyne LeCroy SierraFC Verification Script Engine Reference Manual User Manual

Page 42: 3 isfcp(), Ayload, Imit

Advertising
background image

Verification Script Engine Reference Manual

37

17 Common Retrieving functions


This group of functions covers VSE capability to retrieve information from the recorded trace.

17.1 GetTraPayloadLimit ()

Returns the maximum value of the transaction payload in bytes stored in

in.Payload

input

context member.

Format :

GetTraPayloadLimit ()

Example:

If( GetTraPayloadLimit () < SomeValue )

SetTraPayloadLimit( SomeValue ); # ensure that we will get a big enough

# payload.

val = GetNBits( in.Payload, 128, 8 ); # retrieve one byte from frame/sequence payload

# starting from offset 16 bytes

17.2 SetTraPayloadLimit ()

Sets up the maximum value of the transaction payload in bytes stored in

in.Payload

input

context member.

Format :

SetTraPayloadLimit ( tra_payload_limit )


Parameters:

tra_payload_limit

- New value of transaction payload limit.

Example:

If( GetTraPayloadLimit () < SomeValue )

SetTraPayloadLimit( SomeValue ); # ensure that we will get a big enough

# payload.

val = GetNBits( in.Payload, 128, 8 ); # retrieve one byte from frame/sequence payload

# starting from offset 16 bytes

17.3 IsFcp()

Verifies that current event is FCP SCSI frame or sequence


Format :

IsFcp()

Example:
if( IsFcp() ) DoSomething();

Advertising