Nios® II Custom Instruction Design Example

BUILT IN - ARTICLE INTRO SECOND COMPONENT

This design example shows how to implement the cyclic redundancy check (CRC) algorithm as a Nios II custom instruction. The CRC algorithm detects the corruption of data during transmission. The CRC calculation consists of an iterative algorithm involving XOR and shift operations. These operations are carried out concurrently in hardware and iteratively in software. Since the operations are carried out concurrently, the execution is much faster in hardware. This example demonstrates the way to implement an extended multi-cycle Nios II custom instruction.

Using This Design Example

To run this example, download the ug_custom_instruction_files.zip and unzip it to your hard drive. Then, follow the instructions in Nios II Custom instruction user guide.

The use of this design is governed by, and subject to, the terms and conditions of the Intel® Design Example License Agreement.