Teledyne LeCroy Sierra M6-1 SAS_SATA Protocol Analyzer User Manual User Manual
Page 258
Teledyne LeCroy
Example 2: Wait for a Primitive and Replace It with an Error
256
Sierra M6‐1 SAS/SATA Protocol Analyzer User Manual
4.10
Example 2: Wait for a Primitive and Replace It with an Error
In this example, the Global Rules portion of the scenario waits for each RRDY Normal
primitive and replaces it with an ERROR primitive.
1. Click the New Scenario button in the main library or one of the device libraries. In
the Scenario Properties dialog, enter the scenario name, description, and direction
of traffic change.
2. In the Global Rules area, click the prompt to add an event to display the
Event Properties dialog box.
3. As you did in the previous example, choose RRDY (Normal) as the type of primitive
to monitor.
4. In the Global Rules area, click the prompt to add an action to display the
Action Properties dialog box.
5. In the Type column on the left, choose Substitute > with SAS Primitive as the action
that you want when an RRDY (Normal) occurs.
6. In the middle column of the dialog box, click Description if you want to add a
description of the action.
7. Still in the middle column of the Event Properties dialog box, click Primitive to
display a drop‐down menu that lets you choose the type of primitive for which to
substitute for RRDY (Normal) (see
Figure 4.19 on page 254
). Choose ERROR.
8. Click OK to close the Action Properties dialog box.
9. In the File menu, select Save Scenario to save the scenario.
In this example, you set the substitution action to happen at every occurrence of an RRDY
(Normal) (as shown in the figure, the action is set for every occurrence). However, you
can set an action to happen at other multiples of event occurrence (for example 5, 25,
1000 and so on). You also can set the action to happen at random, within a specified
number of event occurrences.
Figure 4.22: Example 2: Complete Scenario