Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHey Guys,
I have read through the forum and some of the thread regarding virtual jtag but I still can't find anything that I need. I have implemented a design using VJI to basically program flash devices that are connected directly to the fpga. I have compiled the design and downloaded the design into the fpga hardware using Quartus II programmer. Now, I try to establish run time communication with the VJI by using the quartus_stp package in tcl command. More specifically, I try to use the device_virtual_ir_shift and device_virtual_dr_shift command to shift in the values that I want into my boundary scan cells. I first tested the design and the device_virtual_ir_shift and device_virtual_dr_shift command on my DE0 evaluation board and everything worked fine. Then I try to implement the design into my own custom PCB which has the Stratix II FPGA. I connected the PCB to my PC using the Terasic download cable adapter, which has USB connected to the computer on one side and a JTAG connector to my PCB on the other side. Now, I try to use the Jtag Chain Debugger in Quartus Programmer and it detects the FPGA successfully. I am also able to download my design onto the FPGA hardware through the quartus programmer successfully as well. However, the problem happens when I try to access the VJI using tcl command, the device_virtual_ir_shift, device_virtual_dr_shift. I get an error message saying :"ERROR: The specified virtual JTAG instance cannot be found". I read FvM's test_vji.tcl.txt about the HUB_INFO instructions and getting all the NODE Information by doing the following once I have opened and lock the device: device_ir_shift -ir_value 14 -no_captured_ir_value device_dr_shift -length 64 -dr_value 0000000000000000 -value_in_hex device_ir_shift -ir_value 12 -no_captured_ir_value device_dr_shift -length 4 -dr_value 0 -value_in_hex (doing this n*8-1 times, depending on the number of node) Now, all I get returned back to me when I shift those nibbles is F, but when I tried it on my DE0 board, it returns the appropriate values like 08086E04 and 00406E00 (I only have on node in my design). Can you guys please help? I know I typed quite a bit but hope everything is clear. Let me know if further clarifications is needed Thanks You So Much, Jack