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

12 Overview of debug features<br />

Either debug interface provides a logical connection between a tool and the <strong>SH</strong>-5<br />

<strong>SuperH</strong>yway bus. This logical connection gives the tool full access to the physical<br />

address map, and all the nodes connected to the bus.<br />

A 16 Mbyte portion of the address map is mapped to memory physically located<br />

within the tool. Accesses to this area result in read or write messages over the<br />

selected debug interface. These can then be handled by the tool to provide<br />

“remote-memory” systems. By using this feature in conjunction with facilities to<br />

stop, start and run the CPU from a specified address, ROM-less target systems are<br />

possible during product development phases.<br />

In addition to these download and control operations, the selected debug interface<br />

may also be used to either spill or read-out trace information.<br />

1.1.2 Trigger pins<br />

<strong>SH</strong>-5 provides a trigger in (DM_TRIG_N) and a trigger out pin (DM_TROUT_N). These<br />

allow external analysis hardware (such as a logic analyzer) to be connected.<br />

The trigger out pin can also be configured to provide external visibility of timing<br />

events (such as interrupt latency), and to detect internal states (such as FIFO<br />

overflow).<br />

1.1.3 Watchpoint detection<br />

The CPU includes facilities to watchpoint on several events which occur in normal<br />

code execution:<br />

• Instruction address - for breakpoints in ROM, or ranged breakpoints.<br />

• Operand address - to detect range-based memory writes.<br />

• Instruction value - to perform flexible profiling and register watchpoints.<br />

• PC branch - to perform branch tracing, call graph profiling and sample based<br />

profiling.<br />

D R A FT<br />

The watchpoints can be triggered in complex manners using generic pre-conditions<br />

to combine them in sequence, and also to combine them with event counters. The<br />

pre-conditions also allow them be made process (ASID) and instruction mode<br />

(<strong>SH</strong>media vs. <strong>SH</strong>compact) specific.<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!