Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17249 토론

Signal Tap Logic Analyzer II Trigger Condition

Hamza_52
초급자
11,042 조회수

Hi i am working with DE1-SoC Cyclone V SoC FPGA Board and i am using quartus Prime Lite Edition. I am trying to use Signal Tap Logic Analyzer II but somehow i am not able to configure it correctly my trigger condition get triggered successfully but the data log in the logic analyzer is just the last value rather than all the previous values occur before trigger condition. What can be possible thing i am missing. Any guide on this topic will be very helpful.

 

thanks in advance

 

레이블 (1)
0 포인트
18 응답
sstrell
명예로운 기여자 III
11,026 조회수

What do you have the trigger position in the .stp file set to?  If you want to see more captured data from before the trigger occurs (to the right of the trigger in the waveform view), set it to the post-trigger position.

However, none of the 3 trigger position options would only show a single value unless either your signals are not toggling around the time of the trigger or you've set the size of the buffer incorrectly (only 1 sample perhaps?).

Also, of course, your sampling clock has to toggle so data gets captured at each rising edge.

0 포인트
Hamza_52
초급자
10,985 조회수

Hi,

I have attached the snap of all the configuration set in my stp file. I have also tried all 3 different position but non of them work.

 

 

0 포인트
ShengN_Intel
직원
11,007 조회수

Hi,


Check this https://www.intel.com/content/www/us/en/docs/programmable/683819/22-4/continuous-mode-and-a-storage-qualifier.html

Make sure you're using non-segmented buffer in continuous mode instead of non-segmented buffer using a storage qualifier and segmented buffer. In the continuous data capture, Trig1 occurs several times in the data buffer before the Signal Tap logic analyzer trigger activates. The buffer must be full before the logic analyzer evaluates any trigger condition.


Thanks,

Best Regards,

Sheng


0 포인트
sstrell
명예로운 기여자 III
10,983 조회수

So what are you expecting to see?

You have stop~0 set as a trigger in (like trigger condition 0).  You don't show what you have set up for your main trigger condition from the Signal Tap node list.

0 포인트
Hamza_52
초급자
10,980 조회수

My logic is i have implemented a simple counter which count from zero and count till 15. Once it reach 15 it enable the stop bit which should act a trigger to stop my acquisition. As the FPGA clock is of 50MHZ so to slow down the count i have used clock divider which generate a clock of 1 Hz and my counter is updating on every posedge of the 1 Hz clock. I am trying to see all the values of my counter on Signal Tap which i am unable to see.

 

0 포인트
sstrell
명예로운 기여자 III
10,977 조회수

CLOCK_50 should not be in the node list.  You already have that as the capture clock.  I think perhaps you mean to put the 1Hz clock as the capture clock and have CLOCK_50 in the node list, but then the capture clock would be way too slow to capture CLOCK_50.  So simply have the 1Hz clock as the capture clock and remove CLOCK_50 from the node list.  With CLOCK_50 as the sampling clock, you're filling up the buffer long before there's even one cycle of the counter.

You also don't need the trigger in.  Disable that.

0 포인트
Hamza_52
초급자
10,968 조회수

Yes regarding the clock you are right. I was also thinking the same that may be my buffer is getting overwrite with 50 Mhz clock thats why i am only able to see one sample. 

 

But disabling the trigger in so how the data acquisition will stop as i dont want any extra samples

0 포인트
Hamza_52
초급자
10,967 조회수

As the reason i am testing trigger in because i want to run a C program on one of my design which have to stop after  a particular condition is match or if all the lines of the code is executed. I dont want to stop sampling before that and i also dont want samples after that

0 포인트
sstrell
명예로운 기여자 III
10,967 조회수

You already have stop in the node list as your trigger.  Trigger in is only used to get a trigger from another instance of the logic analyzer or from some other external signal that you're not tapping in the node list.  You don't need to use it here.


0 포인트
sstrell
명예로운 기여자 III
10,965 조회수

OK, then keep it.

0 포인트
Hamza_52
초급자
10,957 조회수

ok as you said that as i have stop signal in my node list so i dont have to used it as trigger in. What if remove it from node list and only use it as trigger in so will that stop the acquisition as soon as stop value gets to 1?

0 포인트
sstrell
명예로운 기여자 III
10,952 조회수
No. Trigger in is just a pre-qualifier for checking trigger condition 1.
0 포인트
Hamza_52
초급자
10,951 조회수

so than how does these trigger logic work?

 

As i have tried three different positions of sampling data and i can see that it log data before trigger and after trigger as well based on my buffer value.

0 포인트
sstrell
명예로운 기여자 III
10,949 조회수

So what's the problem?  Left-click to zoom in.

0 포인트
Hamza_52
초급자
10,937 조회수

I mean i am just trying to understand that how it is working as i cant always make sure that the program i am running will be complete in 64 samples  or it will take more than that so isnt there any way to set up such a configuration which works as per my design requirements 

0 포인트
sstrell
명예로운 기여자 III
10,935 조회수
I don’t understand. You can make the buffer store more samples or you could use storage qualification to only capture relevant samples and drop samples you don’t care about.
0 포인트
Hamza_52
초급자
10,908 조회수

ok thanks for clearing my doubts. I will get back to you if i have any more queries.

 

0 포인트
mwac__
초급자
8,425 조회수

did you get the point to address the issue?

0 포인트
응답