diff options
author | Franck Jullien <franck.jullien@gmail.com> | 2013-08-08 23:45:47 +0200 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-09-26 09:52:56 +0000 |
commit | 4e79b48e2c7e535ef21178a69788c15b571c72ff (patch) | |
tree | a3f340d856d4272e3545158ecdc3b32c9a910c73 /doc | |
parent | d19fafc8bdb30974e70bfc5a6ce63e7578b6e3b2 (diff) | |
download | riscv-openocd-4e79b48e2c7e535ef21178a69788c15b571c72ff.zip riscv-openocd-4e79b48e2c7e535ef21178a69788c15b571c72ff.tar.gz riscv-openocd-4e79b48e2c7e535ef21178a69788c15b571c72ff.tar.bz2 |
Add new target type: OpenRISC
Add support for OpenRISC target. This implementation
supports the adv_debug_sys debug unit core. The mohor
dbg_if is not supported. Support for mohor TAP core
and Altera Virtual JTAG core are also provided.
Change-Id: I3b1cfab1bbb28e497c4fca6ed1bd3a4362609b72
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Reviewed-on: http://openocd.zylin.com/1547
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/openocd.texi | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index 4caefb8..003ec4f 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -4179,6 +4179,17 @@ There are several variants defined: @code{pxa26x} ... instruction register length is 5 bits @item @code{pxa3xx} ... instruction register length is 11 bits @end itemize +@item @code{openrisc} -- this is an OpenRISC 1000 core. +The current implementation supports two JTAG TAP cores: +@itemize @minus +@item @code{OpenCores TAP} (See: @emph{http://opencores.org/project,jtag}) +@item @code{Altera Virtual JTAG TAP} (See: @emph{http://www.altera.com/literature/ug/ug_virtualjtag.pdf}) +@end itemize +And two debug interfaces cores: +@itemize @minus +@item @code{Advanced debug interface} (See: @emph{http://opencores.org/project,adv_debug_sys}) +@item @code{SoC Debug Interface} (See: @emph{http://opencores.org/project,dbg_interface}) +@end itemize @end itemize @end deffn @@ -7493,6 +7504,51 @@ the peripherals. @xref{targetevents,,Target Events}. @end deffn +@section OpenRISC Architecture + +The OpenRISC CPU is a soft core. It is used in a programmable SoC which can be +configured with any of the TAP / Debug Unit available. + +@subsection TAP and Debug Unit selection commands +@deffn Command {tap_select} (@option{vjtag}|@option{mohor}) +Select between the Altera Virtual JTAG and Mohor TAP. +@end deffn +@deffn Command {du_select} (@option{adv}|@option{mohor}) [option] +Select between the Advanced Debug Interface and the classic one. + +An option can be passed as a second argument to the debug unit. + +When using the Advanced Debug Interface, option = 1 means the RTL core is +configured with ADBG_USE_HISPEED = 1. This configuration skips status checking +between bytes while doing read or write bursts. +@end deffn + +@subsection Registers commands +@deffn Command {addreg} [name] [address] [feature] [reg_group] +Add a new register in the cpu register list. This register will be +included in the generated target descriptor file. + +@strong{[feature]} must be "org.gnu.gdb.or1k.group[0..10]". + +@strong{[reg_group]} can be anything. The default register list defines "system", + "dmmu", "immu", "dcache", "icache", "mac", "debug", "perf", "power", "pic" + and "timer" groups. + +@emph{example:} +@example +addreg rtest 0x1234 org.gnu.gdb.or1k.group0 system +@end example + + +@end deffn +@deffn Command {readgroup} (@option{group}) +Display all registers in @emph{group}. + +@emph{group} can be "system", + "dmmu", "immu", "dcache", "icache", "mac", "debug", "perf", "power", "pic", + "timer" or any new group created with addreg command. +@end deffn + @anchor{softwaredebugmessagesandtracing} @section Software Debug Messages and Tracing @cindex Linux-ARM DCC support |