Nios® V Processor: Lockstep Implementation

ID 833274
Date 10/07/2024
Public
Document Table of Contents

2.2.3.2. Timeout Timer

You can use timeout timers to detect any faulty behavior of the external units that incorrectly interact with the fRSmartComp (for example, the System Supervisor has not accessed the fRSmartComp for a long period of time).

After asynchronous reset and during any fRSmartComp state change, a single timer counter starts with the configured deadline value in the IP Parameter Editor. You can configure these values during application runtime. If the timer expires without receiving a timeout acknowledgment, it generates a timeout alarm (ALARM16).

To set the timeout deadline value, you use the approach in the following table.

Table 6.  Setting the Timeout Deadline
Approach Actions
IP Parameter Editor (during project development) Defines the default timeout deadline in the Default Timeout Period option.
Configuration Interface (during runtime)
  1. Write ERRCTRL_TIMEOUT[31:25] with value=0x19 to unlock the register.
  2. Verify the register is unlocked through ERRCTRL_TIMEOUT[24].
  3. Write ERRCTRL_TIMEOUT[7:0] with a desired value to change the timeout deadline.
  4. Write ERRCTRL_TIMEOUT[31:25] with value=0x00 to lock the register.

To acknowledge the timeout, use the approach in the following table.

Table 7.  Acknowledging the Timeout
Approach Actions
Configuration Interface (during runtime)
  1. Write ERRCTRL_TIMEOUT_ACK[31:0] with value = 0x78A5C3E1.
  2. Write ERRCTRL_TIMEOUT_ACK[31:0] with value = 0x875A3C1E.
Figure 10. Timeout Timer