Forum Discussion
Altera_Forum
Honored Contributor
14 years agoJTAG chain debugger tools scripts & JTAG clock management
Hi everyone, For a design tests, I'm planning to implement this design to a Cyclone II FPGA (integrated to a DE1 board). I then would like to apply stimuli on DUT inputs via the JTAG chain an...
Altera_Forum
Honored Contributor
14 years agoHi everyone,
I carefully read Dave's JTAG-to-Avalon tutorial and it was interesting, particularly the section over Qsys which I never used before. This debug system is good but cannot be integrated to my design, question of requirements. Instead of it, as I explained previously, I'm using low level JTAG interface with only the DUT on the FPGA to test it. Thanks to Dave's Virtual JTAG interface tutorial, I use the device_dr_shift and device_ir_shift tcl procedure to read from and write to DUT I/Os. i have however a problem with the device under test clock control / management via jtag. Following Altera's cyclone II documentation, it seems that the dedicated clock input pins cannnot be drived by JTAG, but can be captured. Which is OK with what Dave previously said: --- Quote Start --- --- Quote Start --- I'm also always searching for explanation about how the JTAG manages the DUT clock, when JTAG is active. Does it disable the clock, how is it done? --- Quote End --- The JTAG does nothing to the clocks, its completely independent of your top-level design's clock pins. If you want the signals from JTAG to be synchronous to your DUT clock, then you have to add the synchronization logic. --- Quote End --- Then, when I will set DUT inputs, I will not sample correctly the corresponding output, because registers will be clocked on my device clock, which is faster than JTAG clock. My question is then :- how to synchronize my dut internal registers and i/os jtag cells on the same clock? or how can i be sure to correctly sample output pins with the jtag chain?
- can i specify dut clock state via jtag and connect that signal to a normal pin (meaning non-clock dedicated pin) and then use it as clock for my dut?