25.02.2015 Views

SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...

SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...

SuperH (SH) 64-bit RISC Series SH-5 System Architecture, Volume ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PRELIMINARY DATA<br />

Overview of debug features 13<br />

1.1.4 Watchpoint actions<br />

Watchpoints can perform a number of actions:<br />

• Raise a CPU debug exception (to invoke the debug exception handler).<br />

• Capture all parameters associated with the debug event, and generate a trace<br />

message. The trace message can optionally include timestamp information, and<br />

can also include data values.<br />

• Set or clear chain latches, which allow debug events to be chained together in<br />

complex sequences.<br />

• Decrement event counters, which allow events to be disabled until they have<br />

occurred a specified number of times.<br />

• Increment performance counters.<br />

• Reset all performance counters.<br />

• Control the state of the trigger-out pin.<br />

1.1.5 Fast printf<br />

A memory-mapped register is available, which when written to results in a specified<br />

message being sent to the tool. These messages can be read by the tool and used to<br />

implement ar<strong>bit</strong>rary communication functions, such as:<br />

• Dump of specific trace/data or timing information.<br />

Can be used to provide minimally intrusive code instrumentation facilities.<br />

• Virtual I/O - for target/tool communications (such as file/tty access to the tool).<br />

These facilities are used to implement “software backplanes” (scalable host/<br />

target debug systems).<br />

1.1.6 Bus analyzer<br />

D R A FT<br />

A bus analyzer is provided on <strong>SH</strong>-5’s <strong>SuperH</strong>yway bus.<br />

This provides <strong>SuperH</strong>yway request or <strong>SuperH</strong>yway response packet watchpoint<br />

facilities, and can be used to generate trace information, and provide performance<br />

information. The bus analyzer can be combined with CPU watchpoints in order to<br />

provide sophisticated conditions for filtering debug events.<br />

05-SA-10003 v1.0<br />

<strong>SuperH</strong>, Inc.<br />

<strong>SH</strong>-5 <strong>System</strong> <strong>Architecture</strong>, <strong>Volume</strong> 3: Debug

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!