Forum Discussion
tcl in system mem editor
is there a guide on how to use tcl to rd/wr to mem ?
i try something similar to this, but with my own device name under quartus Tcl console, but it output error "quartus_stp"
so i guess whats the proper way to run in-systme memory editor via tcl console or command line?
begin_memory_edit -hardware_name "USB-Blaster \[USB-0\]" -device_name "@1: EP1S25/_HARDCOPY_FPGA_PROTOTYPE (0x020030DD)" write_content_to_memory -instance_index 0 -start_address 575 -word_count 2 -content "0000001011011100" puts [read_content_from_memory -instance_index 0 -start_address 575 -word_count 2 ] write_content_to_memory -instance_index 0 -start_address 575 -word_count 2 -content "E2F1" -content_in_hex puts [read_content_from_memory -instance_index 0 -start_address 575 -word_count 2 -content_in_hex] end_memory_edit
5 Replies
- RichardT_altera
Super Contributor
You may checkout the user guide here Intel Quartus Prime Pro Edition User Guide: Scripting
Look for these tcl commands in the attached image.
- s002wjh
New Contributor
i try that didn't work. actually the above code are example from altera, i just modify a bit for my dev board device. does quartus tcl console accept command such as begin_memory_edit ? it always output quartus_stp error.
- RichardT_altera
Super Contributor
The error message indicate that you need to run the tcl script using the executable command:
quartus_stp
Usage:quartus_stp [-h | --help [=<option|topic>] |v ] quartus_stp <project name> [<option>] quartus_stp -t <script file> [<script args>] quartus_stp -s quartus_stp --tcl_eval <tcl command>Best Regards,
Richard Tan
p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos.