Nios II Custom Instruction User Guide

ID 683242
Date 4/27/2020
Public
Document Table of Contents

2.1.2.1. Multicycle Custom Instruction Ports

Table 3.  Multicycle Custom Instruction Ports
Port Name Direction Required Description
clk Input Yes System clock
clk_en Input Yes Clock enable
reset Input Yes Synchronous reset
start Input No Commands custom instruction logic to start execution
done Output No Custom instruction logic indicates to the processor that execution is complete
dataa[31:0] Input No Input operand to custom instruction
datab[31:0] Input No Input operand to custom instruction
result[31:0] Output No Result of custom instruction

The clk, clk_en, and reset ports are required for multicycle custom instructions. The start, done, dataa, datab, and result ports are optional. Implement them only if the custom instruction requires them.

The Nios II system clock feeds the custom logic block’s clk port, and the Nios II system’s master reset feeds the active high reset port. The reset port is asserted only when the whole Nios II system is reset.

The custom logic block must treat the active high clk_en port as a conventional clock qualifier signal, ignoring clk while clk_en is deasserted.