Forum Discussion
problem with cyclone III and jtag
I would like to put a very serious discussion about using jtag with cyclone III.
has cyclone3 less electrical tolerance compared to other FPGA's?????? . we are building a custom board. and to my horror 2 of them have suddenly stopped to down load .sof. Till yesterday every thing was fine, but when i started to work today i find them unable to detect jtag chain. My jtag cable is from terasic. I have used the same schematic as given in altera configuration handbook for cyclone3. I am configuring the FPGA in AS well as in jtag mode. I'm able to download .pof. After reading so many posts regarding jtag and cyclone3, I am in confusion wether the FPGA has gone bad or the jtag. Is there any special protection that needs to be taken when using cyclone3 with Jtag. Kindly help its very urgent. Can anyone plz provide a schematic for interfacing jtag with cyclone3. regards13 Replies
- Altera_Forum
Honored Contributor
It should be good. Just check that the 74LVC541 is powered by a 2.5V supply (or if you power it with 3.3V, put also 3.3V on the Jtag pin 4) and that the pull ups/down are between the JTAG connector and the buffer, and not between the buffer and the FPGA.
- Altera_Forum
Honored Contributor
I am implementing a connection as shown in the following reference which shows programming a serial device through JTAG:
Figure 9-30 on page 60 of cyc3_ciii51016-2.pdf We are using the USB-Blaster cable. I've inserted the 74LVC541 between the connector and the FPGA for the 4 JTAG signals. Pin6 of the JTAG 10 pin connector is a No Connect and Pin 4 is connected to VCCA 2.5V. The pull ups for TDI and TMS are to VCCA 2.5V. Our cycloneIII is configured such that B1 is 3.3V which contains the JTAG signals. The nCONFIG and nSTATUS signals are pulled up as they are in the above reference to VCCIO1(3.3V). The CONF_DONE signal is in B6 and is pulled up to VCCIO6 of 1.5V. All other connections are exactly as shown in the reference above. Does this capture all your recommendations on how to ensure the FPGA is protected? Did I miss something? - Altera_Forum
Honored Contributor
It isn't a problem at all. I usually do that when I have enough space on the board. It makes the board more tolerant and offers more protection on the FPGA JTAG pins. If you put the buffer close to the FPGA you don't have to worry about overshoots.
Just be sure to select a buffer that is fast enough for the JTAG signals. I use a SN74LVC541A, and it works very well. All the JTAG signals go through the buffer. - Altera_Forum
Honored Contributor
--- Quote Start --- You are right. They don't put the clamping diodes on figure 9-24, and instead recommend to use vcca (2.5V) as the jtag i/o power supply instead of the bank 3.0/3.3V supply. It works too, but I find the clamping diodes safer. --- Quote End --- Is it a problem to use VCCA 2.5V AND put something like the SN74LVC541 buffer in between the FPGA and JTAG connection? Do you advise that TCK, TMS, TDI, and TDO all go through the buffer. - Altera_Forum
Honored Contributor
It shouldn't damage the FPGA, as long as the voltage never goes above 4.1V. The I/O voltage used for the JTAG pins is the same than for bank 1, and extra care should be taken if you are using a supply voltage of 3.0 or 3.3v.
Any high speed buffer should do the trick. We use 74LVC541 chips and they work fine. - Altera_Forum
Honored Contributor
If the supply is given 3.3V instead of VCCA i.e 2.5, is it damages the FPGA. In our board we are using 3.3V instead of 2.5V. The board is working in JTAG configuration. But after some time in two to three boards We are facing the JTAG port defective in our board as ashishsingh says. Please confirm. And also suggest any buffer that can be put in between JTAG port and FPGA
- Altera_Forum
Honored Contributor
You are right. They don't put the clamping diodes on figure 9-24, and instead recommend to use vcca (2.5V) as the jtag i/o power supply instead of the bank 3.0/3.3V supply. It works too, but I find the clamping diodes safer.
- Altera_Forum
Honored Contributor
I have one more question.
I u look in the cyclone3_handbook figure 9-7. It shows to put the clamping diode for the AS mode. though it talks of the same in the jtag mode, but it never shows in any diagram. KIndly correct if I am wrong. - Altera_Forum
Honored Contributor
Thanks for the response. we have send the boards for adding clamping diode.
- Altera_Forum
Honored Contributor
A 3.3V USB Blaster supply doesn't necessarily imply overshoot and vioaltion of the maximum ratings. It depends on the board design, particularly trace impedance and length. But clamping diodes are a good idea in any case.