Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- is it possible to calculate the clock frequency through the results of jtag_debug service? --- Quote End --- Here's how I test clocks; 1) Create a basic design where an LED blinks at about 1 Hz. If the board has more than one clock, then assign an LED (or two) to each clock. 2) Create a JTAG-to-Avalon-MM design with a clock-counting register block. The clock counter component contains several counters each clocked by an external source. The counters each have an enable input. The enable input comes from an Avalon control register, and is synchronized to each of the respective clock domains. You pulse the enable signal using JTAG commands, and then read out the counter values. The counter value for the Avalon clock is your reference clock count, eg., lets say I used a 50MHz on-board oscillator for the Avalon clock, the assumption is that that oscillator is exactly 50MHz. Read the counts in the other counters, and scale them from count to MHz using the reference count. This is very handy for checking that your PLLs and transceiver clocks are operating at the right frequencies. Cheers, Dave