Nios® II Processor Reference Guide

ID 683836
Date 8/28/2023
Public
Document Table of Contents

3.6.3.3. 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.