Nios® II Processor Reference Guide

ID 683836
Date 10/22/2020
Document Table of Contents ITCMs

Software running on the Nios® II cannot directly inject an ECC error in an ITCM because the Nios® II only writes ITCMs when correcting ECC errors. To inject an ECC in an ITCM, the TCM RAM must also be connected to a DTCM master. The Nios® II provided DTCM error injection mechanism (i.e. ECCINJ register) is used to inject an error in the TCM RAM as follows:

  1. Use a WRCTL instruction to set ECCINJ so that it injects ECC errors in the DTCM connected to the ITCM.
  2. Use a STW instruction to write the DTCM.
  3. Use a RDCTL instruction to ensure the value of the ECCINJ field written by the WRCTL is NOINJ.
  4. Use a JMP instruction to jump to an instruction address in the ITCM.
  5. The ECC error should be triggered on the target of the JMP instruction.

Did you find the information on this page useful?

Characters remaining:

Feedback Message