![Xilinx Virtex-II Pro PPC405 Скачать руководство пользователя страница 80](http://html1.mh-extra.com/html/xilinx/virtex-ii-pro-ppc405/virtex-ii-pro-ppc405_user-manual_3410279080.webp)
388
March 2002 Release
1-800-255-7778
Virtex-II Pro™ Platform FPGA Documentation
Chapter 3:
User Programming Model
R
These instructions are used to move up to 32 consecutive bytes of data between memory
and the GPRs without concern for alignment. The instructions can be used for short moves
between arbitrary memory locations or for long moves between misaligned memory
fields. Performance of these instructions is degraded if the leading and/or trailing bytes
are not aligned on a word boundary (see
Performance Effects of Operand Alignment
The immediate form of the instructions take the byte count,
n
, from the NB instruction
field. If NB=0, then
n
=32. The indexed forms take the byte count from XER[25:31]. Unlike
the immediate forms, if XER[25:31]=0, then
n
=0. For the lswx instruction, the contents of
r
D are undefined if
n
=0.
The
n
bytes are loaded into and stored from registers beginning with the most-significant
register byte. For loads, any unfilled low-order register bytes are cleared to 0. The sequence
of registers loaded or stored wraps through r0 if necessary.
shows an example
of the string-instruction operation.
Table 3-23:
Load and Store String Instructions
Mnemonic
Name
Addressing Mode
Operand
Syntax
lswi
Load String Word Immediate
Register-indirect
EA
=
(
r
A|0)
r
D,
r
A,NB
lswx
Load String Word Indexed
Register-indirect with index
EA
=
(
r
A|0)
+
(
r
B)
r
D,
r
A,
r
B
stswi
Store String Word Immediate
Register-indirect
EA
=
(
r
A|0)
r
S,
r
A,NB
stswx
Store String Word Indexed
Register-indirect with index
EA
=
(
r
A|0)
+
(
r
B)
r
S,
r
A,
r
B
Содержание 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...