Nios® II Software Developer Handbook

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

10.1.1. Defining Cache Properties

The details for a particular Nios® II processor system are defined in the system.h file.

Example 9–1. An Excerpt from system.h that Defines the Cache Structure

#define NIOS2_ICACHE_SIZE 4096
#define NIOS2_DCACHE_SIZE 0
#define NIOS2_ICACHE_LINE_SIZE 32
#define NIOS2_DCACHE_LINE_SIZE 0

This system has a 4 KB instruction cache with 32 byte lines, and no data cache.