2 language, Comments, Includes – Teledyne LeCroy Sierra M122 User Manual User Manual
Page 303: Settings, Constants

Sierra M122 SAS/SATA Protocol Analyzer User Manual
301
Sierra Trainer Generation Language
Teledyne LeCroy
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.)
5.11.2
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.
Settings
The Set "Constant Name" = Value statement sets different constants/modes using the
following value types:
Predefined constants (TRUE, FALSE, ON, OFF, INFINITE)
Numbers
Examples:
Set AutoAlignSATA=ON
Set WaitTimeOut=239
Constants
Only unsigned integers can be defined as constants. Some constants are predefined in
Sierra Trainer.
Examples:
Const SOME_HEX_DATA = 0xAABBFFEE #defines hexadecimal constant