Teledyne-lecroy STX M6-1 SAS_SATA Protocol Analyzer User Manual Uživatelský manuál Strana 402

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 468
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 401
LeCroy Corporation Sierra Trainer Generation Language
400
Sierra M64 SAS/SATA Protocol Analyzer User Manual
SATADevice
As a Device, Trainer can receive commands and respond to them in normal or some
popular error conditions. Limitations are:
Uses only one command at a time. Command queuing is not supported.
Does not save incoming write data. Sends back data for all LBAs or generates
counter/random data. Cannot be used as a real formatted partition. To use the
Trainer as a SATA Device in real configurations, only tools like IOMETER (that can
work with unpartitioned and unformatted drives) can be used.
Variable Definition
Variable definition is like definitions in programming languages. You can define up to 512
DWORD (32bit) variables. There is no constraint on variable names, except you cannot
use keywords. Variable scopes are general and you should define them in the script
header before the generation block.
The syntax of variable definition is:
VAR32 @VariableName1, @VariableName2, ...
VAR64 @VariableName
VAR64 holds field values greater than 32 bits, such as SASAddress.
Note:Variable names should start with @.
Assigning Variable Values
You can set variable values in different ways:
Constantvalue:
@varName1 = 1234
Othervariablevalue:
@varName1 = @varName2
Resultofexpressiononothervariables:
@varName1 = @varName1 + @varName2
Fieldsoflastreceivedframe:
@varName1 = (SSPFrame)LRF::FrameType,
where LRF is Last Received Frame
Note:Specifying packet type (SSPFrame) before LRF causes last received frame to be this packet type,
and field startbit position is calculated according to the packettype definition.
Partoflastreceivedframe:
@varName1 = LRF[stratBitOffset:endBitOffset],
where offsets are bit based
Randomvalues:
@varName1 = Random
Zobrazit stránku 401
1 2 ... 397 398 399 400 401 402 403 404 405 406 407 ... 467 468

Komentáře k této Příručce

Žádné komentáře