beautypg.com

Example of pattern matching, 51 example of pattern matching – Teledyne LeCroy IBTrainer - IBTrainer Users Manual User Manual

Page 51

background image

Viewing the Results

Testing with the User Interface

CATC IBTrainer InfiniBand Exerciser, August 2002

51

Example of Pattern Matching

Scenario

Let’s say the following InfiniBand packet is transmitted from the DUT to

the VL0 virtual lane of the IBTrainer:

We want to reroute this packet to the memory block of the receive

memory and compare its payload with a given value.

How to

To set up a pattern matcher on the payload’s part of this packet:

1 First, set up the Generator’s settings to dispatch all packets arriving on

VL0 to the memory block:

– Select Generator>Configure VLs.

– Select the enabled check box facing to VL0, and click the memory

option.

– Click Ok.

2 Select Generator>Configure Patterns, and set the following values:

These values correspond to the following:

– The offset of 5 DWORDS (20 bytes) ensures that only the payload of

the packet is considered.

Packet structure

Contents

LRH - 8 bytes

0x00 0x02 0x00 0x00 0x00 0x07 0x00 0x00

BTH - 12 bytes

0x04 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00

Payload - 4 bytes

0x54 0x65 0x73 0x74