Cyclone® V Hard Processor System Technical Reference Manual

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

16.5.6.2. Exiting XIP Mode

To exit XIP mode, perform the following steps:

  1. Disable the direct access controller and indirect access controller to ensure no new read or write accesses are sent to the flash device.
  2. Restore the mode bits to the values before entering XIP mode, depending on the flash device and manufacturer.
  3. Set the enterxipnextrd bit of the cfg register to 0.

The flash device must receive a read instruction before it can disable its internal XIP mode state. Thus, XIP mode internally stays active until the next read instruction is serviced. Ensure that XIP mode is disabled before the end of any read sequence.