beautypg.com

Language syntax – Teledyne LeCroy UWBTracer User Manual User Manual

Page 249

background image

UWBTracer/Trainer User Manual

Chapter 14: Traffic Generation Overview

LeCroy Corporation

231

Language Syntax

Syntax for the UWBTrainer™ Generator Script files is:

COMMAND = MODIFIER

{

PARAM1 = VALUE1

PARAMn = VALUEn

}

For some commands, the list of the parameters is optional.

All literals are not case sensitive.

All default values are zeros unless otherwise noted.

Integer literals represent numeric values with no fractions or decimal points.

Hexadecimal, decimal, and binary notation are supported:

Hexadecimal numbers must be preceded by 0x: 0x2A, 0x54, 0xFFFFFF01

Decimal numbers are written as usual: 24, 1256, 2

Binary numbers are denoted with 0b: 0b01101100, 0b01, 0b100000

It is possible to use expressions, for example, (i - 239).

String literals are surrounded by double quotes.

Array data types are represented by integer or string literals surrounded by “(“ and “)
characters, and separated by comma “,”, for example, (2,23,4).

Single-line comments are supported and should be preceded semicolon “;”.

Multi-line comments are also supported. Multi-line comments begin with a “/*
combination, and end with the reverse “*/” combination.

Note: For command descriptions and script examples, see the UWBTrainer Generation
Script Language Reference Manual
or the UWBTrainer Generation Script Language
online help.