IP-NIOS Altera, IP-NIOS Datasheet - Page 220

no-image

IP-NIOS

Manufacturer Part Number
IP-NIOS
Description
IP NIOS II MEGACORE
Manufacturer
Altera
Type
Licenser
Datasheets

Specifications of IP-NIOS

Processor Type
RISC 32-Bit
Lead Free Status / RoHS Status
Not applicable / Not applicable
Features
-
Package / Case
-
Mounting Type
-
Voltage
-
Speed
-
8–34
cmpgti
Nios II Processor Reference Handbook
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Pseudo-instruction:
if ((signed) rA > (signed) IMMED)
then rB ← 1
else rB ← 0
cmpgti rB, rA, IMMED
cmpgti r6, r7, 100
Sign-extends the immediate value IMMED to 32 bits and compares it to the value of rA. If rA >
σ(IMMED), then cmpgti stores 1 to rB; otherwise stores 0 to rB.
cmpgti performs the signed > operation of the C programming language. The maximum
allowed value of IMMED is 32766. The minimum allowed value is –32769.
cmpgti is implemented using a cmpgei instruction with an IMM16 immediate value of
IMMED + 1.
compare greater than signed immediate
Chapter 8: Instruction Set Reference
December 2010 Altera Corporation
Instruction Set Reference

Related parts for IP-NIOS