Xilinx MicroBlaze Reference Manual page 257

Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

mts
Move To Special Purpose Register
mts
rS, rA
mtse
rS, rA
1 0 0 1 0 1 0 E 0 0 0
0
6
Description
Copies the contents of register rD into the special purpose register rS. The special purpose registers
TLBLO and TLBHI are used to copy to the Unified TLB entry indexed by TLBX.
If the E bit is set, the extended part of the special register is moved. The TLBLO register has an
extended part when the Physical Address Extension (PAE) is enabled.
When MicroBlaze is configured to use an MMU (C_USE_MMU >= 1) this instruction is privileged. This
means that if the instruction is attempted in User Mode (MSR[UM] = 1) a Privileged Instruction
exception occurs.
With low-latency interrupt mode (C_USE_INTERRUPT = 2), the Interrupt_Ack output port is set to 11
if the MSR{IE] bit is set by executing this instruction.
Pseudocode
if MSR[UM] = 1 then
ESR[EC] ← 00111
else
if E = 1 then
if (rS) = 0x1003 then
TLBLO[0:C_ADDR_SIZE-32-1]
else
switch (rS)
case 0x0001 : MSR
case 0x0007 : FSR
case 0x0800 : SLR
case 0x0802 : SHR
case 0x1000 : PID
case 0x1001 : ZPR
case 0x1002 : TLBX
case 0x1003 : TLBLO[C_ADDR_SIZE-32:C_ADDR_SIZE-1] ← (rA)
case 0x1004 : TLBHI ← (rA)
case 0x1005 : TLBSX ← (rA)
if (rS) = 0x0001 and (rA) & 2
Interrupt_Ack
Registers Altered
rS
ESR[EC], in case a privileged instruction exception is generated
MicroBlaze Processor Reference Guide
UG984 (v2018.2) June 21, 2018
Chapter 5: MicroBlaze Instruction Set Architecture
rA
1 1
11
16
(rA)
← (rA)
← (rA)
← (rA)
← (rA)
← (rA)
← (rA)
← (rA)
← 11
www.xilinx.com
rS
18
Send Feedback
31
258

Advertisement

Table of Contents
loading

Table of Contents