Example of Using a Shift Object in an Advanced Trigger Condition
You can use a Shift object to create an advanced trigger condition in which data shifts the amount you specify in the direction you specify. You can use a Shift object, for example, to shift registers and create new input patterns while running the Signal Tap Logic Analyzer without having to fully recompile your design.
In the following example, the advanced trigger condition occurs when the results of two Shift objects pass through a Bitwise Or object and the new value is compared against the value you specify. One Shift object moves the 16 lower bits of the instruction register into the upper half of the new 32-bit value, and the other Shift object moves the 16 upper bits of the address register into the lower half of the new 32-bit value. The two 32-bit values are then combined with the Bitwise Or object and the result is compared to a value you specify. The advanced trigger condition is set to trigger when the 32-bit value equals all 1's.
- If you have not already done so, open one or more Advanced Trigger tabs.
- In the Advanced Trigger Condition Editor pane, right-click an empty space, and then click Insert.
- In the Object Properties dialog box, click the General tab.
- On the Object type list, select Bitwise Operator.
- Click the Parameters tab.
- On the Existing parameter settings list, select Bitwise Operator Type.
- On the Setting list, select Bitwise Or.
- In the Advanced Trigger Condition Editor pane, right-click the Bitwise Or object or Shift object, and then click Append to append a child object to the Bitwise Or object or Shift object.
- In the Object Properties dialog box, click the General tab.
- On the Object type list, select Shift Operator.
- Click the Parameters tab.
- On the Existing parameter settings list, select Shift Distance, and type 16 in the Setting list.
- For the Bitwise Or object, on the Existing parameter settings list, select Shift Direction, and on the Setting list, select Left. For the Shift object, specify Right.
- On the Existing parameter settings list, select Shift Type, and on the Setting list, select Logical.