Next: PowerPC Embedded, Previous: MIPS Embedded, Up: Embedded Processors [Contents][Index]
See OR1k Architecture document (www.opencores.org) for more information about platform and commands.
target jtag jtag://host:portConnects to remote JTAG server. JTAG remote server can be either an or1ksim or JTAG server, connected via parallel port to the board.
Example: target jtag jtag://localhost:9999
or1ksim commandIf connected to or1ksim OpenRISC 1000 Architectural
Simulator, proprietary commands can be executed.
info or1k sprDisplays spr groups.
info or1k spr groupinfo or1k spr groupnoDisplays register names in selected group.
info or1k spr group registerinfo or1k spr registerinfo or1k spr groupno registernoinfo or1k spr registernoShows information about specified spr register.
spr group register valuespr register valuespr groupno registerno valuespr registerno valueWrites value to specified spr register.
Some implementations of OpenRISC 1000 Architecture also have hardware trace. It is very similar to GDB trace, except it does not interfere with normal program execution and is thus much faster. Hardware breakpoints/watchpoint triggers can be set using:
$LEA/$LDATALoad effective address/data
$SEA/$SDATAStore effective address/data
$AEA/$ADATAAccess effective address ($SEA or $LEA) or data ($SDATA/$LDATA)
$FETCHFetch data
When triggered, it can capture low level data, like: PC, LSEA,
LDATA, SDATA, READSPR, WRITESPR, INSTR.
hwatch conditionalSet hardware watchpoint on combination of Load/Store Effective Address(es) or Data. For example:
hwatch ($LEA == my_var) && ($LDATA < 50) || ($SEA == my_var) && ($SDATA >= 50)
hwatch ($LEA == my_var) && ($LDATA < 50) || ($SEA == my_var) && ($SDATA >= 50)
htrace infoDisplay information about current HW trace configuration.
htrace trigger conditionalSet starting criteria for HW trace.
htrace qualifier conditionalSet acquisition qualifier for HW trace.
htrace stop conditionalSet HW trace stopping criteria.
htrace record [data]*Selects the data to be recorded, when qualifier is met and HW trace was triggered.
htrace enablehtrace disableEnables/disables the HW trace.
htrace rewind [filename]Clears currently recorded trace data.
If filename is specified, new trace file is made and any newly collected data will be written there.
htrace print [start [len]]Prints trace buffer, using current record configuration.
htrace mode continuousSet continuous trace mode.
htrace mode suspendSet suspend trace mode.
Next: PowerPC Embedded, Previous: MIPS Embedded, Up: Embedded Processors [Contents][Index]