Visible to Intel only — GUID: cru1439932862414
Ixiasoft
Visible to Intel only — GUID: cru1439932862414
Ixiasoft
2.1.4. Internal Register File Custom Instructions
Internal register file access gives you the flexibility to specify whether the custom instruction reads its operands from the Nios II processor’s register file or from the custom instruction’s own internal register file. In addition, a custom instruction can write its results to the local register file rather than to the Nios II processor’s register file.
Custom instructions containing internal register files use readra, readrb, and writerc signals to determine if the custom instruction should use the internal register file or the dataa, datab, and result signals. Ports a, b, and c specify the internal registers from which to read or to which to write. For example, if readra is deasserted (specifying a read operation from the internal register), the a signal value provides the register number in the internal register file. Ports a, b, and c are five bits each, allowing you to address as many as 32 registers.
Section Content
Internal Register File Custom Instruction Example
Internal Register File Custom Instruction Ports