
396
March 2002 Release
1-800-255-7778
Virtex-II Pro™ Platform FPGA Documentation
Chapter 3:
User Programming Model
R
OR and NOR Instructions
shows the PowerPC
OR and NOR
instructions. For each type of instruction
shown, the “Operation” column indicates the Boolean operation performed. The column
also shows, on an instruction-by-instruction basis, whether the CR0 field is updated.
Simplified mnemonics are provided for some common operations that use the OR and
NOR instructions, such as move register and complement (not) register. See
for more information.
Table 3-29:
AND and NAND Instructions
Mnemonic
Name
Operation
Operand
Syntax
AND Instructions
r
A is loaded with the logical result (
r
S) AND (
r
B).
and
AND
CR0 is
not
updated.
r
A,
r
S,
r
B
and.
AND and Record
CR0 is updated to reflect the result.
AND-Immediate Instructions
r
A is loaded with the logical result (
r
S) AND UIMM.
andi.
AND Immediate and Record
CR0 is updated to reflect the result.
r
A,
r
S,UIMM
AND Immediate-Shifted Instructions
r
A is loaded with the logical result (
r
S) AND (UIMM
||
0x0000)
andis.
AND Immediate Shifted and Record
CR0 is updated to reflect the result.
r
A,
r
S,UIMM
AND with Complement Instructions
r
A is loaded with the logical result (
r
S) AND
¬
(
r
B).
andc
AND with Complement
CR0 is
not
updated.
r
A,
r
S,
r
B
andc.
AND with Complement and Record
CR0 is updated to reflect the result.
NAND Instructions
r
A is loaded with the logical result
¬
((
r
S) AND (
r
B)).
nand
NAND
CR0 is
not
updated.
r
A,
r
S,
r
B
nand.
NAND and Record
CR0 is updated to reflect the result.
Table 3-30:
OR and NOR Instructions
Mnemonic
Name
Operation
Operand
Syntax
NOR Instructions
r
A is loaded with the logical result
¬
((
r
S) OR (
r
B)).
nor
NOR
CR0 is
not
updated.
r
A,
r
S,
r
B
nor.
NOR and Record
CR0 is updated to reflect the result.
OR Instructions
r
A is loaded with the logical result (
r
S) OR (
r
B).
or
OR
CR0 is
not
updated.
r
A,
r
S,
r
B
or.
OR and Record
CR0 is updated to reflect the result.
OR-Immediate Instructions
r
A is loaded with the logical result (
r
S) OR UIMM.
ori
OR Immediate
CR0 is
not
updated.
r
A,
r
S,UIMM