Xilinx EDK 8.2i manual Branch Target Register BTR, Source/Destination Register

Models: EDK 8.2i

1 148
Download 148 pages 28.91 Kb
Page 26
Image 26

R

Chapter 1: MicroBlaze Architecture

Table 1-12:Exception Specific Status (ESS)

Exception

Bits

Name

Description

Reset Value

Cause

 

 

 

 

 

 

 

 

 

Unaligned

20

W

Word Access Exception

0

Data Access

 

 

0 unaligned halfword access

 

 

 

 

 

 

 

 

1 unaligned word access

 

 

 

 

 

 

 

21

S

Store Access Exception

0

 

 

 

0 unaligned load access

 

 

 

 

1 unaligned store access

 

 

 

 

 

 

 

22:26

Rx

Source/Destination Register

0

 

 

 

General purpose register used

 

 

 

 

as source (Store) or destination

 

 

 

 

(Load) in unaligned access

 

 

 

 

 

 

Illegal

20:26

Reserved

 

0

Instruction

 

 

 

 

 

 

 

 

 

Instruction

20:26

Reserved

 

0

bus error

 

 

 

 

 

 

 

 

 

Data bus

20:26

Reserved

 

0

error

 

 

 

 

 

 

 

 

 

Divide by

20:26

Reserved

 

0

zero

 

 

 

 

 

 

 

 

 

Floating

20:26

Reserved

 

0

point unit

 

 

 

 

 

 

 

 

 

Branch Target Register (BTR)

The Branch Target Register only exists if the MicroBlaze processor is configured to use exceptions. The register stores the branch target address for all delay slot branch instructions executed while MSR[EIP] = 0. If an exception is caused by an instruction in a delay slot (i.e. ESR[DS]=1) then the exception handler should return execution to the address stored in BTR instead of the normal exception return address stored in r17. When read with the MFS instruction the BTR is specified by setting Sa = 0x000B.

0

31

BTR

Figure 1-7: BTR

26

www.xilinx.com

MicroBlaze Processor Reference Guide

 

1-800-255-7778

UG081 (v6.0) June 1, 2006

Page 26
Image 26
Xilinx EDK 8.2i manual Branch Target Register BTR, Source/Destination Register