Nexus
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
24-57
24.11.12.3.3 Branch/Predicate Instruction History (HIST)
If DC[PTM] is set, BTM messaging will use the branch history format. The branch history (HIST) packet
in these messages provides a history of direct branch execution used for reconstructing the program flow.
This packet is implemented as a left-shifting shift register. The register is always pre-loaded with a value
of one (1). This bit acts as a stop bit so that the development tools can determine which bit is the end of
the history information. The pre-loaded bit itself is not part of the history, but is transmitted with the
packet.
A value of one (1) is shifted into the history buffer on a taken branch (condition or unconditional) and on
any instruction whose predicate condition executed as true. A value of zero (0) is shifted into the history
buffer on any instruction whose predicate condition executed as false as well as on branches not taken.
This will include indirect as well as direct branches not taken. For the
evsel
instruction, two bits are shifted
in, corresponding to the low element (shifted in first) and the high element (shifted in second) conditions.
24.11.12.3.4 Sequential Instruction Count (I-CNT)
The I-CNT packet, is present in all BTM messages. For traditional branch messages, I-CNT represents the
number of sequential instructions, or non-taken branches in between direct/indirect branch messages.
For branch history messages, I-CNT represents the number of instructions executed since the last
taken/non-taken direct branch, last taken indirect branch or exception. Not taken indirect branches are
considered sequential instructions and cause the instruction count to increment. I-CNT also represents the
number of instructions executed since the last predicate instruction.
The sequential instruction counter overflows when its value reaches 255. The next BTM message will be
converted to a synchronization type message.
24.11.12.3.5 Program Trace Queueing
NZ6C3 implements a message queue. Messages that enter the queue are transmitted via the auxiliary pins
in the order in which they are queued.
NOTE
If multiple trace messages need to be queued at the same time, Watchpoint
Messages will have the highest priority (WPM
−>
OTM
−>
BTM
−>
DTM).
24.11.12.4 Program Trace Timing Diagrams
Figure 24-39. Program Trace (MDO = 12)—Indirect Branch Message (Traditional)
MCKO
MSEO[1:0]
TCODE = 4
Source Processor = 0b0000
Number of Sequence Instructions = 128
Relative Address = 0xA5
01
11
00
MDO[11:0]
0000 0010 0000
0000 1010 0101
0000 0000 0100
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...