214
MicroBlaze Processor Reference Guide
UG081 (v14.7)
Chapter 5:
MicroBlaze Instruction Set Architecture
mfs
Move From Special Purpose Register
Description
Copies the contents of the special purpose register rS into register rD. The special purpose registers
TLBLO and TLBHI are used to copy the contents of the Unified TLB entry indexed by TLBX.
Pseudocode
switch (rS):
case 0x0000 : (rD)
←
PC
case 0x0001 : (rD)
←
MSR
case 0x0003 : (rD)
←
EAR
case 0x0005 : (rD)
←
ESR
case 0x0007 : (rD)
←
FSR
case 0x000B : (rD)
←
BTR
case 0x000D : (rD)
←
EDR
case 0x0800 : (rD)
←
SLR
case 0x0802 : (rD)
←
SHR
case 0x1000 : (rD)
←
PID
case 0x1001 : (rD)
←
ZPR
case 0x1002 : (rD)
←
TLBX
case 0x1003 : (rD)
←
TLBLO
case 0x1004 : (rD)
←
TLBHI
case 0x200x : (rD)
←
PVR[x] (where x = 0 to 12)
default : (rD)
←
Undefined
Registers Altered
•
rD
Latency
•
1 cycle
Notes
To refer to special purpose registers in assembly language, use rpc for PC, rmsr for MSR, rear for
EAR, resr for ESR, rfsr for FSR, rbtr for BTR, redr for EDR, rslr for SLR, rshr for SHR, rpid for
PID, rzpr for ZPR, rtlblo for TLBLO, rtlbhi for TLBHI, rtlbx for TLBX, and rpvr0 - rpvr12 for
PVR0 - PVR12.
The value read from MSR may not include effects of the immediately preceding instruction
(dependent on pipeline stall behavior). An instruction that does not affect MSR must precede the
MFS instruction to guarantee correct MSR value.
mfs
rD, rS
1 0 0 1 0 1
rD
0 0 0 0 0 1 0
rS
0
6
11
16
18
31
Содержание MicroBlaze
Страница 1: ...MicroBlaze Processor Reference Guide Embedded Development Kit EDK 14 7 UG081 v14 7...
Страница 4: ...MicroBlaze Processor Reference Guide www xilinx com UG081 v14 7...
Страница 8: ...8 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Chapter 1 Introduction Send Feedback...
Страница 262: ...262 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Send Feedback...