![Xilinx Virtex-II Pro PPC405 Скачать руководство пользователя страница 521](http://html1.mh-extra.com/html/xilinx/virtex-ii-pro-ppc405/virtex-ii-pro-ppc405_user-manual_3410279521.webp)
March 2002 Release
829
Virtex-II Pro™ Platform FPGA Documentation
1-800-255-7778
Rotate and Shift Instructions
R
Rotate and Shift Instructions
Although the rotate and shift instructions provide powerful and general ways to
manipulate register contents, they can be difficult to understand. The simplified
mnemonics in
are provided for the following types of operations:
•
Extract
—Select a field of
n
bits starting at bit position
b
from the source register. Left or
right justify this field in the target register. Clear all other bits of the target register.
•
Insert
—Select a left-justified or right-justified field of
n
bits from the source register.
Insert this field in the target register starting at bit position
b
, leaving all other bits in
the target register unchanged.
•
Rotate
—Rotate the contents of a register right or left by
n
bits without masking.
•
Shift
—Shift the contents of a register right or left by
n
bits, clearing vacated bits
(logical shift).
•
Clear
—Clear the left-most or right-most
n
bits of a register.
•
Clear left and shift left
—Clear the left-most
b
bits of a register and shift the register left
by
n
bits. This operation can be used to scale a known non-negative array index by the
width of an element.
Condition Register Clear
crclr
bx
crxor
bx
,
bx
,
bx
Condition Register Move
crmove
bx
,
by
cror
bx
,
by
,
by
Condition Register Not
crnot
bx
,
by
crnor
bx
,
by
,
by
Table C-14:
Simplified Mnemonics for CR-Logical Instructions
(Continued)
Operation
Simplified Mnemonic
Equivalent Mnemonic
Table C-15:
Simplified Mnemonics for Rotate and Shift Instructions
Operation
Simplified Mnemonic
Equivalent Mnemonic
Extract and Left Justify Immediate
extlwi
r
A,
r
S,
n
,
b
(
n
>
0)
rlwinm
r
A,
r
S,
b
, 0,
n
−
1
extlwi.
r
A,
r
S,
n
,
b
(
n
>
0)
rlwinm.
r
A,
r
S,
b
, 0,
n
−
1
Extract and Right Justify Immediate
extrwi
r
A,
r
S,
n
,
b
(
n
>
0)
rlwinm
r
A,
r
S,
b
+
n
, 32
−
n
, 31
extrwi.
r
A,
r
S,
n
,
b
(
n
>
0)
rlwinm.
r
A,
r
S,
b
+
n
, 32
−
n
, 31
Insert from Left Immediate
inslwi
r
A,
r
S,
n
,
b
(
n
>
0)
rlwimi
r
A,
r
S, 32
−
b
,
b
, (
b
+
n
)
−
1
inslwi.
r
A,
r
S,
n
,
b
(
n
>
0)
rlwimi.
r
A,
r
S, 32
−
b
,
b
, (
b
+
n
)
−
1
Insert from Right Immediate
insrwi
r
A,
r
S,
n
,
b
(
n
>
0)
rlwimi
r
A,
r
S, 32
−
(
b
+
n
),
b
, (
b
+
n
)
−
1
insrwi.
r
A,
r
S,
n
,
b
(
n
>
0)
rlwimi.
r
A,
r
S, 32
−
(
b
+
n
),
b
, (
b
+
n
)
−
1
Rotate Left Immediate
rotlwi
r
A,
r
S,
n
rlwinm
r
A,
r
S,
n
, 0, 31
rotlwi.
r
A,
r
S,
n
rlwinm.
r
A,
r
S,
n
, 0, 31
Rotate Right Immediate
rotrwi
r
A,
r
S,
n
rlwinm
r
A,
r
S, 32
−
n
, 0, 31
rotrwi.
r
A,
r
S,
n
rlwinm.
r
A,
r
S, 32
−
n
, 0, 31
Rotate Left
rotlw
r
A,
r
S,
r
B
rlwnm
r
A,
r
S,
r
B, 0, 31
rotlw.
r
A,
r
S,
r
B
rlwnm.
r
A,
r
S,
r
B, 0, 31
Shift Left Immediate
slwi
r
A,
r
S,
n
(
n
<
32)
rlwinm
r
A,
r
S,
n
, 0, 31
−
n
slwi.
r
A,
r
S,
n
(
n
<
32)
rlwinm.
r
A,
r
S,
n
, 0, 31
−
n
Shift Right Immediate
srwi
r
A,
r
S,
n
(
n
<
32)
rlwinm
r
A,
r
S, 32
−
n
,
n
, 31
srwi.
r
A,
r
S,
n
(
n
<
32)
rlwinm.
r
A,
r
S, 32
−
n
,
n
, 31
Содержание 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...