beautypg.com

Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 3

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

iii

Contents

1

INTRODUCTION.....................................................................1

1.1

Declaration Conventions ................................................................ 1

1.1.1

Parentheses................................................................................... 1

1.1.2

Brackets......................................................................................... 1

1.2

Script Example Highlighting............................................................ 1

2

SCRIPT LANGUAGE STRUCTURE.......................................2

2.1

Generation Script Structure ............................................................2

2.2

Main Procedure and Other Procedures.......................................... 2

3

COMMENTS ...........................................................................3

3.1

Line Comment ................................................................................3

3.2

Block Comment ..............................................................................3

4

FILE-INCLUDING DIRECTIVES .............................................4

4.1

Inline Directive ................................................................................4

4.2

Include Directive .............................................................................4

5

CONSTANT DECLARATIONS ...............................................5

5.1

Predefined Constants .....................................................................5

5.2

Constant Definition Examples ........................................................5

6

DATA PATTERN DECLARATIONS .......................................6

6.1

Constants and Data Patterns in Declarations ................................ 6

6.2

Leading Zeroes...............................................................................6

7

GLOBAL GENERATION SETTINGS .....................................7

7.1

Generation Settings ........................................................................7

7.2

Simulation Settings .......................................................................10

7.3

Generation Settings Syntax..........................................................11

7.4

Generation Settings outside Procedures......................................11

7.5

Generation Settings inside Procedures ........................................12

7.6

Arithmetic Expressions in Constants ............................................12

8

FRAME AND STRUCTURE TEMPLATE DECLARATIONS 13

8.1

Predefined Frame/Structure Templates .......................................13

8.2

Field Definitions ............................................................................14

8.2.1

Defining a Field at a Specific Offset ............................................ 14

8.2.2

Defining a Field at the Current Offset.......................................... 15

8.2.3

Defining a Field with Variable Length.......................................... 16

8.2.4

Defining a Default Field Value ..................................................... 17

8.2.5

Specifying Byte Order in Field Definitions ................................... 18

8.2.6

Using Byte Stream Literals in Field Assignments........................ 18

8.2.7

List of Possible Field Values Attribute ......................................... 19

8.2.8

Defining Subfields........................................................................ 20

8.3

Constants/Arithmetic Expressions in Template Declarations....... 22

8.4

Frame Template Inheritance ........................................................24

8.4.1

Frame Template Single Inheritance ............................................ 24

8.4.2

Frame Template Multiple Inheritance.......................................... 26

8.4.3

Frame Template Insert Directive ................................................. 28

8.4.4

Complex Frame Templates ......................................................... 30