Specifications
Usage
To access a custom register inside the custom instruction logic,
clear the bit readra, readrb, or writerc that corresponds to the
register field. In assembler syntax, the notation cN refers to
register N in the custom register file and causes the assembler
to clear the c bit of the opcode. For example,
custom 0, c3, r5, r0 performs custom instruction 0,
operating on general-purpose registers r5 and r0, and stores the
result in custom register 3.
Exceptions
None
Instruction Type
R
Instruction Fields
A = Register index of operand A
B = Register index of operand B
C = Register index of operand C
readra = 1 if instruction uses rA, 0 otherwise
readrb = 1 if instruction uses rB, 0 otherwise
writerc = 1 if instruction provides result for rC, 0 otherwise
N = 8-bit number that selects instruction
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
A B C readra
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
readrb readrc N 0x32
div
Instruction
divide
Operation
rC ← rA ÷ rB
Assembler Syntax
div rC, rA, rB
Example
div r6, r7, r8
NII51017
2015.04.02
div
8-35
Instruction Set Reference
Altera Corporation
Send Feedback