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 />

184 Bus watchpoint hit action<br />

2.5 Bus watchpoint hit action<br />

When a bus watchpoint is enabled and a hit occurs, the bus analyzer signals the<br />

debug module that the hit has occurred and also optionally captures the bus<br />

transaction in a bus capture buffer. Action conditions for the PL watchpoint<br />

channels are the same as for other watchpoint channels, but additionally include the<br />

inhi<strong>bit</strong>ion of the originating bus module from generating further bus transactions,<br />

that is, freeze the source.<br />

Because of the pipelined nature of bus ar<strong>bit</strong>ration, it is not possible to immediately<br />

“freeze” a bus master following a bus analyzer watchpoint hit.<br />

This ability to “freeze” the originating bus master applies only if the<br />

DM.WP_PLX_CTRL.SRC field identifies the bus master uniquely.<br />

Debug interrupt actions<br />

When bus analyzer debug interrupt is not enabled, but trace is enabled and a<br />

watchpoint hit occurs, the contents of the bus capture buffer are immediately sent to<br />

the debug module so that a trace message can be generated. The capture buffer is<br />

then available to capture another watchpoint hit token.<br />

However, when a bus analyzer has debug interrupt enabled and a watchpoint hit<br />

occurs, the contents of the bus capture buffer are not sent to the debug module.<br />

Instead, a 1-<strong>bit</strong> register, DM.WP_PLS_EXCTRL.CBUF_FREEZE, is set by the watchpoint<br />

hit and stops the capture buffer from being overwritten by another watchpoint hit.<br />

The debug event handler is able to directly read the bus capture buffer to get details<br />

of the bus transaction which caused the watchpoint hit and can then re-enable the<br />

capture buffer by clearing DM.WP_PLS_EXCTRL.CBUF_FREEZE.<br />

D R A FT<br />

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

<strong>SH</strong>-5 <strong>System</strong> <strong>Architecture</strong>, <strong>Volume</strong> 3: Debug 05-SA-10003 v1.0

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

Saved successfully!

Ooh no, something went wrong!