Visible to Intel only — GUID: lgc1675740131553
Ixiasoft
4.3.1. Writing the Custom Instruction HDL File
4.3.2. Opening the Component Editor
4.3.3. Specifying the Custom Instruction Component Type
4.3.4. Displaying the Custom Instruction Block Symbol
4.3.5. Adding the Custom Instruction HDL File
4.3.6. Configuring the Custom Instruction Parameter Type
4.3.7. Setting Up the Custom Instruction Interfaces
4.3.8. Saving and Adding the Custom Instruction
4.3.9. Generating and Compiling the Processor System
Visible to Intel only — GUID: lgc1675740131553
Ixiasoft
3.2.1. Custom Instruction Assembly Language Syntax
Nios® V processor custom instructions use a standard assembly language syntax as shown in the following table:
Syntax | Description |
---|---|
<mnemonic> |
|
<destination> | Identifies the register that stores the result of the result port (if any). |
<source 0> | Identifies the register that provides the first input argument from the data0 port (if any). |
<source 1> | Identifies the register that provides the second input argument from the data1 port (if any). |
The custom instruction designates the registers based on the application binary interface (ABI) name of each registers.
Custom Instruction Assembly Language Syntax
CUSTOM_OPERATION1, a5, a5, a4
The example above shows a call to a custom instruction, called CUSTOM_OPERATION1. The input to the instruction is the current contents of the Nios® V processor registers a5 and a4. Nios® V processor register a5 stores the results .