English
Language : 

SH7147 Datasheet, PDF (966/1108 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 23 Advanced User Debugger (AUD)
(3) Address Calculation during Branch Trace
(a) When an interrupt is generated immediately before executing a branch instruction
The address of a branch source instruction is given by TSA = CSA, but the equation TSA = CSA −
(2 × PID) must be used in other processors. To eliminate this complication, PID is always set to 0
to make the case common for both equations.
(b) Address calculation of branch source
The part branch source address (TSA) depends on the type of branch.
• Branch instruction
TSA indicates the branch instruction address
• Interrupt
TSA indicates the address of the instruction executed immediately before the interrupt.
The address of the first instruction of the interrupt routine is output as CDA.
• Exception
When the instruction at exception generation is a completion type, TSA indicates the address
of the next instruction. If the instruction at exception generation is a rerun type, TSA indicates
the address of the instruction.
The address of the first instruction of the exception routine is output as CDA.
(4) Window Data Trace
Window data trace has a function to output memory access data generated in an area designated
by two address pointers (called the window) to outside. The AUD supports windows of channels
A and B. The region for window A is designated by AUWASR and AUWAER. The region for
window B is designated by AUWBSR and AUWBER. Memory access data is traced by setting the
WA0, WA1, WB0, and WB1 bits in AUCSR and then setting the EN bit to 1.
Figure 23.6 shows an example of window data trace.
AUDCK
AUDSYNC
AUDATA[3:0] STDBY WDWM 0100 1010
A
3-0
A
A
A
D
7-4
11-8 15-12 3-0
D
7-4
D
11-8
D
15-12
STDBY
CMD1 CMD1 CMD1E CMD2
Accessed data address
Contents of data
CMD1
Figure 23.6 Window Data Trace with WDWM Command
Rev. 3.00 Oct. 06, 2008 Page 942 of 1080
REJ09B0230-0300