Forum Discussion

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

Read usercode & checksum of FPGA using TCL command

Hi expert,

I am a beginner of using tcl script. I would like to use tcl to read back the usercode & checksum of FPGA device thru jtag so that i can see the usercode and checksum on Quartus II GUI.

Is it possible to do it? If yes, can you show me an example of doing this? It is good also if you can show me where to find the related document so that i can read it & gain better understanding before starting my project.

Thank you.

Regards,

Dave

1 Reply

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

    You've probably already figured this out by now, but posting for the benefit of future searches.

    There's a command line executable quartus_stp, which includes a jtag package with a bunch of tcl commands. It's documented in the following.

    http://www.altera.com/literature/manual/tclscriptrefmnl.pdf?gsa_pos=1&wt.oss_r=1&wt.oss=quartus tcl scripting reference manual

    you can use two commands to shift in IR values and DR values as needed.

    The IR value for most Altera devices is x007 (10 bits)

    An alternate way to shift it out is to use the JTAG debugger.