Sierra Trainer Generation Language; File Structure; Language; Comments - LeCroy Sierra M6-2 User Manual

Sas/sata protocol analyzer
Table of Contents

Advertisement

LeCroy Corporation

Sierra Trainer Generation Language

The Sierra Trainer File Generation Language is an API that allows you to separate traffic
into text commands. These commands are used construct primitives and frames that are
sent to the host or the device.

File Structure

Traffic Generation files (*.ssg) should have the following structure:
Declarations
Note:
Some declared objects could be used in further declarations as long as they are previously
declared. No forward declarations are allowed at this time.
Generation Blocks
Note:
It is possible to create many generation blocks, but currently only a block with the name
'Generation' executes. (Calls of some blocks from another blocks are not currently allowed.)

Language

Comments

#' is the Comment symbol. The line remainder after this symbol is ignored.
/*' '*/' is a Comment Block. All the text between '/' '*' and '*' '/' is ignored.

Includes

The directive %include "FileName.inc" includes the file FileName.inc. This lets you add
common definitions and templates into new scripts.
The language parser makes sure the same file is not included more than once.
Example:
%inline is the same as %include, but without the Language parser check.
400
 
Global generation settings
Constants
Data patterns
Chain of symbols (primitives, raw data)
Packet templates
List of generation instructions
/*
This is an example of a block of comments.
*/
%include "SomeInc.inc"
# This directive actually includes file 'SomeInc_1.inc'.
Sierra Trainer Generation Language
S ierra M6‐2 SAS/SATA Protocol Analyzer User Manual
 

Advertisement

Table of Contents
loading

Table of Contents