Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

NIOS-II with multiple on-chip memory

Altera_Forum
Honored Contributor II
1,390 Views

I have a nios-II processor with 1 on-chip memory for cache/instructions/data and 2 other on-chip memory as a memory interface between the nios and some custom vhdl code I have written. Is it possible to ensure that the nios does not use these 2 additional memory blocks for data/instructions? I fear that my data may be overwritten by the processor during execution. Thanks!

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
480 Views

In your software project you can configure which memory is used by the .text (instructions) .data (static defined data) .bss (static undefined data) sections, and which memory is used for stack and heap (allocated memory space). As long as you don't use those two memory blocks for any of those sections, the contents won't be overwritten by the CPU. 

Don't forget to check in the Nios CPU configuration is SOPC builder that you don't use those components for the CPU reset vector or exceptions either.
0 Kudos
Reply