Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

JTAG Access for ID Read

Hello All ,

I have designed a JTAG controller using FPGA

I could verify my write sequence by monitoring TMS and TDO on the scope ,

All the signal looks fine on the scope

And I hope to verify my read sequence by reading the ID from the FPGA

Is there anyone who has documents about the sequence and protocol of read ID process in Quartus II programmer ?

Thanks very much

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In order to read the JTAG ID code of the device, you need to know the JTAG instruction for that purpose. You can refer to the FPGA handbook for the instruction code.

    You need to shift in the instruction code to the device through JTAG in order to read the JTAG ID code of the device. Hope this helps.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello CW ,

    Thanks very much for your answer

    I will try to search for it

    Thanks

    Cheuk
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Cheuk,

    another way to issue JTAG commands through Altera programming adapters is to use the quartus_stp Tcl interface. The quartus ii scripting reference manual http://www.altera.com/literature/manual/tclscriptrefmnl.pdf tells how to. There's also an example Tcl script to read the IDCODE. Altera uses IR code of 6 for most (all?) devices to read IDCODE.

    Regards and Happy New Year!

    Frank
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Frank ,

    I have got it done already , thanks very much for your help anyway

    Regards ,

    Samson