![Xilinx Virtex-II Pro PPC405 Скачать руководство пользователя страница 404](http://html1.mh-extra.com/html/xilinx/virtex-ii-pro-ppc405/virtex-ii-pro-ppc405_user-manual_3410279404.webp)
712
March 2002 Release
1-800-255-7778
Virtex-II Pro™ Platform FPGA Documentation
Chapter 11:
Instruction Set
R
rlwimi
Rotate Left Word Immediate then Mask Insert
Description
The MB field and ME field specify bit positions in a 32-bit mask,
m
.
m
is generated with 1-
bits starting at MB and ending at ME, with 0-bits elsewhere. If MB is at a higher bit position
than ME, the 1-bits in the mask wrap from the highest bit position to the lowest. Rotate-
instruction masks are further described in
The contents of register
r
S are rotated left by the number of bit positions specified by the
SH field. The rotated data is inserted into register
r
A under control of the mask. If a mask
bit contains a 1, the corresponding bit in the rotated data is inserted into the corresponding
bit of register
r
A. If a mask bit contains a 0, the corresponding bit in
r
A is not changed.
This instruction can be used to extract a field from one register and insert it into another
register.
Simplified mnemonics defined for this instruction are described in
Pseudocode
m
←
MASK(MB, ME)
r
←
ROTL((
r
S), SH)
(
r
A)
←
(r
∧
m)
∨
((
r
A)
∧ ¬
m)
Registers Altered
•
r
A.
•
CR[CR0]
LT, GT, EQ, SO
if Rc
=
1.
Exceptions
•
None.
Compatibility
This instruction is defined by the PowerPC user instruction-set architecture (UISA). It is
implemented by all PowerPC processors.
rlwimi
r
A,
r
S
, SH, MB, ME (Rc=0)
rlwimi.
r
A,
r
S
, SH, MB, ME (Rc=1)
M Instruction Form
20
r
S
r
A
SH
MB
ME
Rc
0
6
1
1
1
6
2
1
2
6
3
1
Содержание Virtex-II Pro PPC405
Страница 1: ...R Volume 2 a PPC405 User Manual Virtex II Pro Platform FPGA Developer s Kit March 2002 Release...
Страница 14: ...322 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation Preface R...
Страница 252: ...560 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation R...
Страница 260: ...568 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation R...
Страница 562: ...870 www xilinx com March 2002 Release 1 800 255 7778 Virtex II Pro Platform FPGA Documentation R...