Xilinx MicroBlaze Reference Manual page 292

Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

swapb
Swap Bytes
rD, rA
swapb
1 0 0 1 0 0
0
6
Description
Swaps the contents of register rA treated as four bytes, and places the result in rD. This effectively
converts the byte sequence in the register between endianness formats, either from little-endian to
big-endian or vice versa.
Pseudocode
(rD)[24:31]
(rD)[16:23]
(rD)[8:15]
(rD)[0:7]
Registers Altered
rD
Latency
1 cycle
Note
This instruction is only valid if MicroBlaze is configured to use reorder instructions
(C_USE_REORDER_INSTR = 1).
MicroBlaze Processor Reference Guide
UG984 (v2018.2) June 21, 2018
rD
rA
11
(rA)[0:7]
(rA)[8:15]
(rA)[16:23]
(rA)[24:31]
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0
16
31
293
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents