Xilinx MicroBlaze Reference Manual page 295

Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

swx
Store Word Exclusive
rD, rA, rB
swx
1 1 0 1 1 0
0
6
Description
Conditionally stores the contents of register rD, into the word aligned memory location that results
from adding the contents of registers rA and rB. If an AXI4 interconnect with exclusive access enabled
is used, the store occurs if the interconnect response is EXOKAY, and the reservation bit is set;
otherwise the store occurs when the reservation bit is set. The carry flag (MSR[C]) is set if the store
does not occur, otherwise it is cleared. The reservation bit is cleared.
A data TLB miss exception occurs if virtual protected mode is enabled, and a valid translation entry
corresponding to the address is not found in the TLB.
A data storage exception occurs if virtual protected mode is enabled, and access is prevented by no-
access-allowed or read-only zone protection. No-access-allowed can only occur in user mode.
An unaligned data access exception will not occur even if the two least significant bits in the address
are not zero.
Enabling AXI exclusive access ensures that the operation is protected from other bus masters, but
requires that the addressed slave supports exclusive access. When exclusive access is not enabled,
only the internal reservation bit is used. Exclusive access is enabled using the two parameters
C_M_AXI_DP_EXCLUSIVE_ACCESS and C_M_AXI_DC_EXCLUSIVE_ACCESS for the peripheral and
cache interconnect, respectively.
Pseudocode
Addr
(rA) + (rB)
if Reservation = 0 then
MSR[C]
1
else
if TLB_Miss(Addr) and MSR[VM] = 1 then
ESR[EC]
MSR[UMS]
else if Access_Protected(Addr) and MSR[VM] = 1 then
ESR[EC]
MSR[UMS]
else
Reservation
if AXI_Exclusive(Addr) and AXI_Response
MSR[C]
else
Mem(Addr)
MSR[C]
MicroBlaze Processor Reference Guide
UG984 (v2018.2) June 21, 2018
rD
rA
11
10010;ESR[S]
1
MSR[UM]; MSR[VMS]
10000;ESR[S]
1; ESR[DIZ]
MSR[UM]; MSR[VMS]
← 0
← 1
← (
rD)[0:31]
← 0
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
rB
1 0 0 0 0 0 0 0 0 0 0
16
21
MSR[VM]; MSR[UM]
No-access-allowed
MSR[VM]; MSR[UM]
EXOKAY then
0; MSR[VM]
0
0; MSR[VM]
0
Send Feedback
31
296

Advertisement

Table of Contents
loading

Table of Contents