beautypg.com

Chapter 10: traffic generation (host emulation), Preparing the usb chief for traffic generation, Text file format for traffic generation input – Teledyne LeCroy USB Chief - Users Manual User Manual

Page 103

background image

95

Chief User’s Manual

CATC

Version 1.7

Chapter 10: Traffic Generation (Host Emulation)

The USB Chief Plus Analyzer emulates a host device and generates traffic to
allow you to test your designs under realistic conditions. Traffic Generation can
also be used to transmit known bad packets, allowing you to observe how your
device handles specific adverse conditions.

You can make an additional entry in a Generator Text File that allows you to
specify a portion of the file for repetition:

Enter wrap=here in the Generator Text File.

The traffic above the entry is run only once.

The traffic below the entry is repeated continuously.

Note

See the sample file Wrap.utg for an example of how to use this feature.

Preparing the USB Chief for Traffic
Generation

Before you begin to generate traffic,

1

Upgrade your Analyzer for Traffic Generation if you have not previously done
so.

2

Verify that the Analyzer is configured for Primary channel recording.

3

Physically disconnect your Analyzer from the up-stream host connection.

4

Reserve half the recording memory for downloading Generator Text Files.

Text File Format for Traffic Generation Input

Traffic is generated from a Text file named *.utg.

Each packet definition consists of this set of assignments: key=value.

White space is permitted around the equal sign.

There are no restrictions on dividing packet definition to lines nor is it
necessary to define each packet in a separate line, although it is recommended.

The characters # and ; indicate end-of-line comments (i.e. the rest of the line
is ignored)

No keys or values are case-sensitive.

Each packet definition starts with one of these assignments:

pid=N (where N is a string representing a valid packet identifier or an eight bit
value)

OR

frame=N (where N is an eleven bit value of the frame number or the strings
auto and keep_alive).