Xilinx MicroBlaze Reference Manual page 275

32-bit soft processor
Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

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
(rD)[0:15]
(rD)[16:31]
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 (v2016.2) June 8, 2016
UG984 (v2016.1) April 6, 2016
rD, rA
rD
rA
1
1
← (
rA)[16:31]
← (
rA)[0:15]
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
0 0 0 0 0 0 0 1 1 1 1 0 0 0 1 0
1
6
3
1
275
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents