Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

Read usercode & checksum of FPGA using TCL command

Altera_Forum
Honored Contributor II
1,474 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
613 Views

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.
0 Kudos
Reply