LeCroy Corporation
Sierra Trainer Generation Language
400
Sierra M6
‐
2 SAS/SATA Protocol Analyzer User Manual
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
Global generation settings
Constants
Data patterns
Chain of symbols (primitives, raw data)
Packet templates
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
List of generation instructions
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.
/*
This is an example of a block of comments.
*/
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:
%include “SomeInc.inc”
# This directive actually includes file 'SomeInc_1.inc'.
%inline
is the same as
%include
, but without the Language parser check.
Содержание Sierra M6-2
Страница 18: ...LeCroy Corporation Contents 16 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 42: ...LeCroy Corporation Viewing Captured Data 40 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 192: ...LeCroy Corporation Target and Device Emulation 190 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 241: ...Sierra M6 2 SAS SATA Protocol Analyzer User Manual 239 Search LeCroy Corporation Figure 3 64 SAS Search Data Pattern ...
Страница 314: ...LeCroy Corporation Running Verification Script Engine VSE 312 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 462: ...LeCroy Corporation Resetting the Toolbar 460 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...
Страница 468: ...LeCroy Corporation 466 Sierra M6 2 SAS SATA Protocol Analyzer User Manual ...