beautypg.com

Advanced script language programming, Product section, Roduct – Teledyne LeCroy User-Defined Decoding (UDD) Advanced Script Language (ASL) Reference Manual User Manual

Page 11: Ection

background image

8

Advanced Script Language Programming

A script contains three required sections, with only one of each type:

o

Product Section: Indicates the product.

o

Protocol Decoding Section: Breaks the extracted data stream into protocol fields and
decodes the data per each field.

o

Protocol Extraction Section: Instructs the decoder on how to extract the high-level
protocol data.


A section consists of one or more blocks. A block is a procedure that is formed with a series of
statements that are enclosed within the block. Each block has a dedicated function within the
section and follows one of two formats:

Blockname

Statement1;

Statement2;

. . .

StatementN;

EndBlock

{

Statement1;

Statement2;

. . .

StatementN;

}

Product Section


The product section identifies product name, such as ST. (ST should be used for both SAS and
SATA.)

[ProductName= ST]
End