enjoy-digital / litescope

Small footprint and configurable embedded FPGA logic analyzer
Other
160 stars 38 forks source link

Configure maximum clocks between triggers #20

Open fjullien opened 4 years ago

fjullien commented 4 years ago

When configuring a trigger sequence, litescope will triggs whatever is the delay between two consecutive trigger. It would be great to have a maximum time between triggers (here, 5 clocks):

(1) analyzer.add_trigger(cond = {"signal1" : 1}) 
(2) analyzer.add_trigger(cond = {"signal2" : 1}, timeout=5) 

In this example, it means if signal2 is not equal to 1 five clocks after trigger (1) trigged, we get back and wait for trigger (1) again.