Forum Discussion
My signaltap test has some problem
When I use signaltap, sometimes it has a problem, there's a blank gap at the beginning and the signals can't be triggered(please see two examples in below pictures). It's not the code or design problem, I just create another signaltap file, make some random signal changes or adjust the sample depth, the issue may disappear with no special reason. This doesn't happen very often, but when it happens, it really bothers me, sometimes I have to try several times to randomly adjust the signals to make it work. It looks like a quartus bug, any one has any idea about this? thanks.
6 Replies
- ai_responder
Community Manager
This is a well-known behavior that catches a lot of people, and it's actually documented — though the intermittent nature makes it feel like a bug. Here's what's happening:
Root cause: Trigger fires before the pre-trigger buffer fills
In configurations with non-segmented buffers running in continuous mode, the buffer must be full of sampled data before evaluating any trigger condition. Only after the buffer is full does the Signal Tap logic analyzer start retrieving data through the JTAG connection and evaluate the trigger condition. Differences in Pre-Fill Write Behavior Between Different Acquisition Modes If a trigger activates before the specified amount of pre-trigger data has occurred, the Signal Tap Logic Analyzer begins filling memory with post-trigger data, regardless of the amount of pre-trigger data you specify. For example, if you set the trigger position to 50% and set the logic analyzer to trigger on a processor reset, start the logic analyzer, and then power on the target system, the trigger activates. However, the logic analyzer memory contains only post-trigger data, and not any pre-trigger data, because the trigger event has higher precedence than the capture of pre-trigger data. Differences in Pre-Fill Write Behavior Between Different Acquisition Modes
That blank gap you're circling is the unfilled pre-trigger portion of the buffer — the trigger fired before the pre-trigger region could accumulate samples.
Why it's intermittent: Timing races between when you click Run Analysis, the JTAG handshake completes, and when the trigger condition occurs in the design. Adjusting sample depth changes how long the buffer-fill phase takes, which changes the race outcome — that's why random tweaks sometimes "fix" it.
Practical workarounds:- Switch your trigger position to Pre (12% pre-trigger, 88% post-trigger) — to capture most data after the trigger, select Pre trigger position. Intel Quartus Prime Standard Edition User Guide Debug Tools This minimizes the pre-trigger window that must fill before triggering, reducing the chance of a blank gap.
- Use Storage Qualification mode instead of continuous. For buffers using a storage qualification mode, the Signal Tap Logic Analyzer immediately evaluates all trigger conditions while writing samples into the acquisition memory. Differences in Pre-Fill Write Behavior Between Different Acquisition Modes This removes the "wait for full buffer" requirement entirely, so the trigger is caught even at the very start of acquisition.
- Use In-System Sources and Probes in conjunction with the Signal Tap Logic Analyzer to force trigger conditions. Intel Quartus Prime Standard Edition User Guide Debug Tools This lets you control exactly when the trigger fires relative to when the analyzer is running.
The most reliable fix for your specific symptom is switching to a Storage Qualifier mode or setting the trigger position to Pre — that eliminates the pre-fill race condition entirely.
Note: To continue using AI Responder, please start your next inquiry with ai_responderDisclaimer (Beta): The AI Responder is currently provided as a beta feature. AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.
Thank you very much.
- xxiao14
New Contributor
I tried "Switch your trigger position to Pre (12% pre-trigger, 88% post-trigger)" and it doesn't help, and what is "Storage Qualifier mode"? The "storage qualifier" has several options, which one shall I select? thanks
- FvM
Super Contributor
Hi,
shown waveforms are rather an example of trigger condition is fulfilled instantly than "doesn't trigger". Can you please show related trigger settings?
Generally speaking, triggering can be a problem if triggered waveform isn't synchronous to sampling clock, causing timing violation in Signaltap logic.
Regard Frank
- ShengN_altera
Super Contributor
Hi,
The gap is normal behaviour. I test the example design with don't care triggering points and i get gap like below:
When I set the rising edge triggering points like below:
In first picture, there's no trigger point (don't care) so the 0 is at the beginning. In second picture, the rising edge trigger point is being set and the 0 is at the rising edge and there's waveform at the negtive time frame before 0.
The gap mean there's no waveform at that point. The gap will be reduced if the sample depth is reduced.
Your case most likely due to the trigger point (once per program) had been passed. May I know which triggering you expect?
Please check also the timing whether it's clean and whether the tapping signals having common sampling clock as mentioned by FvM
- xxiao14
New Contributor
it's timing problem, after I fixed the timing warnings, problem solved, thanks.
- sstrell
Super Contributor
Yes, let's see your trigger settings.
Regarding storage qualification, that lets you make the best use of the limited buffer space by keeping only the captured data samples that meet the criteria you specify. So for example, with the "input port" option you show in the screenshot, samples are only stored in the buffer if the signal you specify as the "input port" is active, essentially making that signal a write enable for the data buffer. Other options allow you to skip long periods of time where signals are not toggling (transitional) or create a full boolean condition as to when to capture data (conditional). All documented in the user guide.