There is a very readable explanation of how JTAG works, together with examples and sample code, on the www.fpga4fun.com (Xylo supplier) site. For someone like me who is new to JTAG I found it very useful. 73's Phil...VK6APH