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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PRELIMINARY DATA<br />

242 Scalable parameters<br />

4.1.2 Event counters<br />

<strong>SH</strong>-5 evaluation device provides two 16-<strong>bit</strong> event counters<br />

0b0000<br />

0b0001<br />

All other values<br />

Event counter ID (4 <strong>bit</strong>s)<br />

One event counter is implemented in the WPC (for timing critical exception<br />

matching). This counter is only accessible to WPC implemented channels.<br />

One event counter is implemented in the DM. This counter is only accessible to the<br />

PL watchpoint channels.<br />

Event counter latency<br />

ECOUNT.SIZE = 16<br />

WPC.ECOUNT_VALUE_0<br />

DM.ECOUNT_VALUE_0<br />

Undefined<br />

Table 85 shows the latency for the event counters.<br />

Event counter name<br />

Name<br />

Table 84: <strong>SH</strong>-5 evaluation device event counter Ids<br />

Delay from WPC watchpoint hit (CPU<br />

cycles)<br />

For use in<br />

precondition<br />

check<br />

For use in<br />

subsequent<br />

counter update<br />

Delay from Bus<br />

Analyzer<br />

watchpoint hit (DM<br />

cycles)<br />

WPC.ECOUNT_VALUE_X 4 1 Not applicable<br />

D R A FT<br />

DM.ECOUNT_VALUE_X Not applicable Not applicable TBD<br />

Table 85: Update latency for event counters<br />

The latency for WPC.ECOUNT_VALUE_X means that the new value is visible between 1<br />

and 4 instructions after the one that hits a WPC channel and causes the change in<br />

value. Put another way, between 0 and 3 following instructions will use the old value<br />

of WPC.ECOUNT_VALUE_X in their precondition checks. The actual number of<br />

instructions involved depends on whether stalls occur in the pipeline (for example,<br />

due to resource or operand dependencies, or delays in instruction fetching).<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!