-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
61 lines (45 loc) · 1.77 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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.