Altera Nios II Custom Instruction User Guide

The Nios II Custom Instruction User Guide describes how to use custom instructions on a Nios II processor and provides detailed information on writing, assembling, linking, and downloading custom instructions.


Altera Nios II Custom Instruction User Guide - cover page
Brand
Altera
Category
microcontrollers
Document type
User Manual
Language
English
Pages
50
File format
PDF
File size
1.2 MB
Published
09 August, 2012
Updated
30 September, 2023
MD5 checksum
FDF3E91F7B1031BD1256501E61B9280C

About this manual

This user guide describes the Nios II Custom Instruction feature, which allows designers to add custom logic blocks adjacent to the processor's Arithmetic Logic Unit (ALU). This hardware acceleration reduces complex software sequences to single instructions, optimizing performance for digital signal processing and computation-intensive applications.

The document covers the software interface, including how to use generated macros in C or C++ code and assembly language. It provides step-by-step instructions for implementing custom instructions in hardware using the SOPC Builder or Qsys design environments, featuring a design example for a Cyclic Redundancy Check.

What's inside

  • Custom Instruction Overview
  • Implementing Custom Instruction Hardware
  • Implementing Custom Instruction Software
  • Custom Instruction Types
  • Combinational Custom Instructions
  • Multicycle Custom Instructions
  • Extended Custom Instructions
  • Internal Register File Custom Instructions
  • External Interface Custom Instructions
  • Implementing in SOPC Builder

Specifications

Maximum number of custom instructions256

Frequently asked questions

What is the purpose of a custom instruction?

Custom instructions allow you to reduce a complex sequence of standard instructions to a single instruction implemented in hardware to accelerate time-critical software algorithms.

How do you access custom instructions in software?

The Nios II Embedded Design Suite generates a macro in the system.h header file for each custom instruction, which can be used directly in C or C++ application code.

Download PDF (1.2 MB)

More Altera Manuals


View all Altera manuals →