Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

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