I am trying to use the console (tcl shell)(Quartus Prime Pro 22.2) to run a tcl script that writes a memory location and then save the results. This had been working but with my latest load this problem popped up.
Here is the original working script (scratch.tcl):
Note: this script runs without any errors, but it is not actually writing or fetching from the memories any longer. I next started going line by line, see results below
This command works:
tcl> quartus_stp --tcl_eval get_hardware_names
{USB-Blaster [USB-0]}
This command fails
tcl> quartus_stp --tcl_eval begin_memory_edit -hardware_name "USB-Blaster \[USB-0\]" -device_name "@1: 10AS066H((0x02E050DD)"
------------------------------------------------
invalid command name "USB-0"
while executing
"unknown_original USB-0"
("eval" body line 1)
invoked from within
"eval unknown_original $cmd $args"
(procedure "::unknown" line 7)
invoked from within
"USB-0"
invoked from within
"begin_memory_edit -hardware_name "USB-Blaster [USB-0]" -device_name "@1: 10AS066H((0x02E050DD)""
------------------------------------------------
child process exited abnormally
tcl>
I am not sure what changed and why this behavior has started. I did install some of the HPS
tools which May be linked to the issue.
Thanks,
John
連結已複製
Some additional:
I tried a cut and paste from the Quartus Prime message panel. This command is executed when you open memory content editor.
result below when I try to run the same command from the TCL consle.
quartus_stp --tcl_eval get_editable_mem_instances -hardware_name "USB-Blaster \[USB-0\]" -device_name "@1: 10AS066H(1|2|3|3E2|4|4E2)/.. (0x02E050DD)"
------------------------------------------------
invalid command name "USB-0"
while executing
"unknown_original USB-0"
("eval" body line 1)
invoked from within
"eval unknown_original $cmd $args"
(procedure "::unknown" line 7)
invoked from within
"USB-0"
invoked from within
"get_editable_mem_instances -hardware_name "USB-Blaster [USB-0]" -device_name "@1: 10AS066H(1|2|3|3E2|4|4E2)/.. (0x02E050DD)""
------------------------------------------------
child process exited abnormally
tcl>
Hi Sheng,
I think I can but need to confirm. Can you tell me if the syntax looks correct? Also is there any other references with examples for using tcl scripts with the memory content editor?
This is the one I am using now:
https://www.intel.com/programmable/technical-pdfs/654662.pdf
Thanks,
John
Hi,
The latest example begin_memory_edit link https://www.intel.com/content/www/us/en/docs/programmable/683432/24-2/tcl_pkg_insystem_memory_edit_ver_1-0_cmd_begin_memory_edit.html is the same with the one in Quartus II manual.
Thanks,
Regards,
Sheng
Hi Sheng,
Sorry for not closing this post. I discovered that the memory index was changed with the addition of a new diagnostic memory. This caused the previous tcl script to not run properly.
Thanks,
john
