The System Console performs low-level hardware debugging of FPGA systems.
This library allows you to reduce the amount of code required to get started with the Intel Quartus Prime System Console.
use:
package require sc_avalonmm
namespace import sc_avalonmm::*
set_service_path 0 "master"
write32 0x00 0x1234abcd
read32 0x00 10
instead of:
set mp [lindex [get_service_paths master] 0]
proc write_memory {addr data} {
global mp
master_write_32 $mp $addr $data
}
proc read_memory {addr bytes_size} {
global mp
master_read_32 $mp $addr $bytes_size
}
write_memory 0x00 0x1234abcd
read_memory 0x00 10
lib
- directory with Tcl packages
- sc_service - System Console Service: Console Commands
- sc_avalonmm - System Console Service: Avalon-MM Commands
system_console_rc.tcl - System Console user configuration file
Installing system_console
packages for the System Console
- Download
system_console
:git clone https://github.com/yuravg/system_console.git
or zip-file - Copy
system_console
directory to your Home ($HOME) directory
An example of using system_console packages in a your System Console script
# Load package
package require sc_avalonmm
namespace import sc_avalonmm::*
# Select System Console service path (service <index>, <type_name>)
set_service_path 0 "master"
# Write, read (to/from selected above service with <index>, <type_name>)
# the service will be automatically opened before reading or writing
write32 0x00 0x12345678
write8 0x10 0xab 0xcd 0xef
puts "read16: [read16 0x0 100]"
# Closes the service type (selected above service with <index>, <type_name>)
close_service_path