AN 977: Nios® V Processor Custom Instruction

ID 773194
Date 4/14/2023
Public
Document Table of Contents

4.3.1. Writing the Custom Instruction HDL File

Instantiate the Custom Instruction Manager, then begin writing the custom instruction HDL file. You can start by using the following example:
module custom_instruction(
		input clk,
		input reset,
		input [31:0] data0,
		input [31:0] data1,
		input [31:0] ctrl,
		input [31:0] alu_result,
		input enable,
		output done,
		output [31:0] result
);

//begin the custom instruction here.

endmodule