Nios® V Processor Software Developer Handbook

ID 743810
Date 10/06/2025
Public
Document Table of Contents

11.2. Single-bit & Double-bit ECC Error Injection

The Nios® V processor supports ECC error injection, which intentionally introduces errors into memory protected by ECC. This is crucial for testing the processor's ability to detect and correct errors during reliability testing or fault tolerance verification in safety-critical applications.

The processor implements ECC error injection using ECC Error Injection CSR. You can read and write the ECC Error Injection CSR using Zicsr instruction. Refer to Nios® V Processor Reference Manual for more information about the ECC Error Injection CSR.

Besides the Zicsr instructions, you may use the error injection API - alt_ecc_error_inject() to inject an ECC error into the processor. You can find the source header file in <BSP Project>\HAL\inc\sys\alt_ecc_error_inject.h.