The Signal Tap II (STP) logic analyzer is an FPGA built-in logic analyzer provided by Altera, which can monitor the internal signals of the FPGA within a certain range. The logic analyzer is written into the FPGA along with the RTL code, and the signal changes can be viewed in the software inherited by quartus. The logic analyzer is used in the following scenarios:
The logic analyzer is not suitable for the following scenarios:
This logic logic analyzer uses file management, just select it in
SignalTap II Logic Analysis File
After clicking, the STP interface as shown below will pop up
In subsequent operations, double-click the
.stpfile in the file selection area of Quartus to enter this interface.
It should be noted that the design needs to be synthesized before this step, so that stp can read what signals are in the design. Then add signals as shown in the figure below:
After the addition is complete, it will look like this:
The information to be set includes sampling clock, sampling depth and trigger signal, among which:
Set the sampling clock and sampling depth as shown in the figure below:
Set the trigger signal as follows:
Then you need to select the debugger, connect the FPGA, debugger and PC, and perform the following operations in the following window (at the upper right of the overall window).
Re-synthesize in the Quartus interface and perform programming. It should be noted that because STP is a hardware logic analyzer, in addition to replacing the hardware debugger (2.3), any changes to the above information need to be re-synthesized and deployed.
Click the button shown in the figure below to observe the signal
If the button is gray, it may be due to:
If it is not for the above reasons, you can perform step 2.3 to refresh. After pressing the above button, the logic analyzer waits for the trigger signal, and then starts to record the specified signal after the trigger, as shown in the figure below:
In the waveform interface, you can click the left button to zoom in the waveform, and click the right button to zoom out.