2 language, Comments, Includes – Teledyne LeCroy Sierra M124 User Manual User Manual
Page 305: Settings, Constants, Predefined constants

Sierra M124 SAS/SATA Protocol Analyzer User Manual
303
Sierra Trainer Generation Language
Teledyne LeCroy
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
Const SOME_DEC_DATA = 12 # defines decimal constant
Const "SOME DEC DATA" = 64 # defines decimal constant
Const "Some Hex Data" = 0xCDCDBEBE
Predefined Constants
TRUE
FALSE
ON
OFF
INFINITE