Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17128 Discussions

New tcl error when accessing onchip memory.

johnt2
Beginner
1,313 Views

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

# from command line type: quartus_stp -t scratch.tcl    
begin_memory_edit -hardware_name "USB-Blaster \[USB-0\]" -device_name "@1: 10AS066H((0x02E050DD)"
for {set i 1} {$i < 65} {incr i} {
    set filename "data$i.hex"
    puts $filename
 
    write_content_to_memory -instance_index 3 -start_address 30 -word_count 1 -content "0000000A" -content_in_hex
after 1000
    save_content_from_memory_to_file -instance_index 1 -mem_file_path "$filename" -mem_file_type hex
after 1000
}
end_memory_edit

 

 

 

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

Labels (1)
0 Kudos
8 Replies
johnt2
Beginner
1,306 Views

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>

0 Kudos
ShengN_Intel
Employee
1,255 Views

Hi,


Possible to provide the sample design for testing?


Thanks,

Regards,

Sheng


0 Kudos
johnt2
Beginner
1,229 Views

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

0 Kudos
ShengN_Intel
Employee
1,212 Views

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


0 Kudos
ShengN_Intel
Employee
1,086 Views

Hi John,


Any update on the sample design for testing?


Thanks,

Regards,

Sheng


0 Kudos
johnt2
Beginner
982 Views

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

0 Kudos
Kenny_Tan
Moderator
961 Views

reopening the case


0 Kudos
ShengN_Intel
Employee
960 Views

Hi John,


May I confirm that your problem being resolved from your side already?


Thanks,

Regards,

Sheng


0 Kudos
Reply