Nios II Classic Processor Reference Guide

ID 683620
Date 10/28/2016
Public
Document Table of Contents

3.6.3.3. Register File RAM Blocks

  1. Use a WRCTL instruction to set ECCINJ.RF to INJS or INJD (as desired).
  2. Execute any instruction that writes any register except R0.
  3. Use a RDCTL instruction to ensure that the value of ECCINJ.RF is NOINJ.
  4. Use an instruction to read the desired register from rA such as OR rd, r0, rx where rx is the register written in the previous step. This action triggers the ECC error.
  5. Use an instruction to read the desired register from rB such as OR rd, rx, r0 where rx is the register written in the previous step.