Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Tcl
branch: master

This branch is 1 commit ahead of fjullien:master

fix address bug in adbg_burst_command

Only the lower 16 bits of the address should be used in the
data0 part of the command.
latest commit f2ab5ad130
@skristiansson skristiansson authored

README

Welcome to or1k-tcltools !
==========================

1) Introduction
---------------

or1k-tcltools provides a series of Tcl scripts working together with the
OpenRISC processor used on Altera platforms using the Virtual JTAP TAP and
the Advanced Debug Interface.

The Quartus II graphical user interface provides the Tcl Console, which allows
you to control the Quartus II software with Tcl commands and scripts. Each of
the Quartus II executables— quartus_sh, quartus_map, quartus_fit, quartus_sta,
and others— also functions as a Tcl interpreter.

Depending on wich executable is used, different packages are loaded into memory.
The JTAG package is only available with quartus_stp.

The JTAG package provides a set of Tcl functions for controlling the JTAG chain
using Altera programming hardware:

	close_device
	device_dr_shift
	device_ir_shift
	device_lock
	device_run_test_idle
	device_unlock
	device_virtual_dr_shift
	device_virtual_ir_shift
	get_device_names
	get_hardware_names
	open_device

Thus, the Virutal JTAG instance controlling our Advanced Debug Interface can be
controled from the Tcl script.

2) Provided files
-----------------

defines.tcl        --> Defines for debug interface controled
functions.tcl      --> Helper functions
loader.tcl         --> Low level control of the JTAG / debug interfaces
download.tcl       --> Download and run ELF executables (or1krun function)
or1k-download.bat  --> Start or1krun from a Windows command line
run.tcl            --> Startup script used by the or1k-download.bat file

3) Usage
--------

* From a Windows/Linux command shell:

or1k-download "yourfile.elf"

* From a Tcl console:

source download.tcl
or1krun "yourfile.elf"

Using the Tcl console you also have access to the "registers" command. This
command shows you the registers values.

Something went wrong with that request. Please try again.