Example 8: creating a sequence with many states #1, Table 16 example 8: logic of sequence 0 – Teledyne LeCroy SAS_SATA InFusion - Users Manual User Manual
Page 90

Version 2.0
SAS InFusion User Manual
76
LeCroy Corporation
Example 8:
Creating a
Sequence
With Many
States #1
In this example, a five-state sequence detects if a group of primitives is received
out-of-order from the initiator. The expected order is: Align (0), Align (1), Align (2), Align
(3). If this scenario detects any other order of these primitives, it causes the box to beep
and the scenario to restart.
This example is designed to give you an idea of the powerful logic that you can implement
with sequences.
Note that the states in this sequence have been renamed (do not have their default
names). Table 16 summarizes the sequence logic.
Table 16
Example 8: Logic of Sequence 0
Step 1
Click the New Scenario button in the main library or one of the
device libraries. At the top of the scenario area, enter general
scenario information, including scenario name, description, and
direction of traffic change.
Note: For an example of filling-in the general scenario information
fields, see Figure 41 and Figure 42.
Step 2
As in previous examples, create the five states for this
sequence.
Step 3
In the File menu, select Save Scenario to save the scenario
(Figure 83 and Figure 84).
State
Description
Wait for Align (0)
When an Align (0) is received, go to Wait for Align (1)
Wait for Align (1)
If an Align (1) is received next, go to Wait for Align (2)
otherwise, go to Indicate Error
Wait for Align (2)
If an Align (2) is received next, go to Wait for Align (3);
otherwise, go to Indicate Error
Wait for Align (3)
If an Align (3) is received next, restart test;
otherwise go to Indicate Error
Indicate Error
Indicate error and restart test