General JTAG working flow in an embedded development system?

耗尽温柔 提交于 2019-12-05 20:45:09

To add to Cliffords answer, there are some pictures here:

http://www.fpga4fun.com/JTAG2.html

The tap controller state machine is something you will see published ad nauseum. It is really the key to JTAG. As Clifford said you access on chip debug registers. The tap controller state machine is generic to all JTAG supported devices, but the address, length, etc of the registers you can get to through JTAG. And the sequence of things you have to read or write in order to do something useful varies widely from vendor to vendor. Some ARM Technical Reference Manuals (for various cores) for example have a Debug TAP controller chapter, with this picture and with the gory details on the procedure for reading and writing a register or memory or halting the processor, etc.

When applied to processor debug (since JTAG is more generally used as a boundary scan test interface), JTAG is simply a means of communicating with the device's on-chip debug block and memory interface.

JTAG itself is a simple synchronous serial data bus. JTAG devices on the "JTAG chain" simply clock the data through a shift register until the required data is in the register. The number of clocks required to get the data into the on-chip debug register(s) depends on the length of the shift register(s) and the length of the registers of any preceding devices on the same debug chain. JTAG operates in a loop so that the data-out matches the data-in with a delay equal to the total bit length of the chain.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!