Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- jtag_debug_sample_clock does just that, it reads the clock signal at the time you ask for it, so sometimes you'll get a 0 and sometimes you'll get a 1. jtag_debug_sense_clock returns 1 if the clock toggled since the last time you called jtag_debug_sense_clock and 0 otherwise. You may get a 0 after the first call (I never did, but you never know) but after that you should only get 1's. If you get 0's after then you probably have a problem. In SignalTap if the clock you selected a a sampling clock isn't toggling, SignalTap will tell you so. (I don't remember the exact message, but it's different than 'waiting for trigger') --- Quote End --- Thanks Daixiwen very much. I wonder if we can set the sampling time for reading clock? and what is the default time interval if I just invoke two consecutive sample_clock commands, is it in ns or ms? is it possible to calculate the clock frequency through the results of jtag_debug service? Thanks.