Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Thank you so much for your help. --- Quote End --- You're welcome. I'm glad to see that you are trying to figure it out for yourself. --- Quote Start --- I am stuck in something that without this I can't finish ... --- Quote End --- The Tcl variable jtag contains an element called jtag(address). In my application, this variable is the "address" field of the GUI. If you look at the jtag_client.tcl code, and search for the jtag(address) text you will see it used in the draw_read_write procedure as the textvariable associated with an entry widget, i.e., the entry element in the GUI is what defines the jtag(address) variable. If you have not used that same textvariable somewhere in your code, then it is not defined, so the calls to read fail. You can debug this type of issue in your code by creating the variable and assigning to it, eg., to set the address to 5 you could use
tcl> set jtag(address) 5
at the Tcl console. If you are still stuck, send me your Tcl code (either post it as an attachment to this thread, or email it to me directly), and I'll take a look at it. Cheers, Dave