Nios® V Processor Software Developer Handbook

ID 743810
Date 10/31/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

12.5.2.2. add_memory_region

Usage

add_memory_region <name> <slave_desc> <offset> <span>

Options

  • <name>: String with the name of the memory region to create.
  • <slave_desc>: String with the slave descriptor of the memory device for this region.
  • <offset>: String with the byte offset of the memory region from the memory device base address.
  • <span>: String with the span of the memory region in bytes.

Description

Creates a new memory region for the linker script. This memory region must not overlap with any other memory region and must be within the memory range of the associated slave descriptor. The offset and span are decimal numbers unless prefixed with 0x.

Example

add_memory_region onchip_ram0 onchip_ram0 0 0x100000