Chapter 5: MicroBlaze Instruction Set Architecture
swaph
Swap Halfwords
swaph
1 0 0 1 0 0
0
6
Description
Swaps the contents of register rA treated as two halfwords, and places the result in rD. This
effectively converts the two halfwords in the register between endianness formats, either from little-
endian to big-endian or vice versa.
Pseudocode
Registers Altered
•
Latency
•
Note
This instruction is only valid if MicroBlaze is configured to use reorder instructions
(C_USE_REORDER_INSTR = 1).
252
Send Feedback
rD, rA
rD
rA
1
1
← (
(rD)[0:15]
rA)[16:31]
← (
(rD)[16:31]
rA)[0:15]
rD
1 cycle
www.xilinx.com
0 0 0 0 0 0 0 1 1 1 1 0 0 0 1 0
1
6
MicroBlaze Processor Reference Guide
3
1
UG081 (v14.7)
Need help?
Do you have a question about the MicroBlaze and is the answer not in the manual?