beautypg.com

Asl script structure – Teledyne LeCroy Conquest User Manual - Users Manual User Manual

Page 216

background image

Appendix A

206

ASL Script Structure

An ASL Script file includes three types of sections:

Protocol Extraction Section

Protocol Decoding Section

USB Descriptor Section

Each ASL script can include only one of each section type. Not every script file
requires both Protocol Decoding and USB Descriptor sections, however as
minimum each script file must contain a Protocol Extraction section, and one
of Protocol Decoding or USB Descriptor sections.

Each section serves a specific function during the decoding process.

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 as
shown:

Blockname

Statement1;
Statement2;
….
StatementN;

EndBlock

or

{

Statement1;
Statement2;
….
StatementN;

}

Section Type

Function

Protocol Extraction

Instructs the decoder on how to extract the high-level protocol data
from USB transactions.

Protocol Decoding

Breaks the extracted data stream into protocol fields and decodes
the data per each field.

USB Descriptor

Decodes descriptor information that is transferred by standard
GetDescriptor and SetDescriptor requests.