Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
487 Views

How do I access memory regions outside the RAM/ROM inside a subsystem?

Jump to solution

Screenshot from 2019-02-26 18-50-02.pngScreenshot from 2019-02-26 18-16-44.pngScreenshot from 2019-02-26 18-16-42.pngI'm trying to make a shared memory region (with a mutex), but how do I access (from the HAL's perspective) a memory region outside my current subsystem?

the memory block will be located in the design top level.

0 Kudos

Accepted Solutions
Highlighted
Novice
6 Views
In the end, for my application the on chip ROM was insufficient so I'll use the SDRAM, also while researching how to use it, I found out about the IORW/IOWR macros, which do exactly what I want. Thanks for the reply. On Fri, Mar 1, 2019, 18:35 Intel Forums <supportreplies@intel.com wrote:

View solution in original post

0 Kudos
2 Replies
Highlighted
New Contributor II
6 Views

Hello,

 

If I understand your question correctly, you would like to have RAM (example) that you can access in your Nios subsystem & in your top level design.

 

There are multiple ways to do this;

One of them is to create a custom Nios component that contains a dual port RAM.

One side of the RAM can be accessed by your Nios configuration through the Avalon bus.

The other side of the RAM can be exposed by the component via an external component interface.

This interface is the link to your VHDL / Verilog code in your top level design.

 

Best Regards,

Johi

0 Kudos
Highlighted
Novice
7 Views
In the end, for my application the on chip ROM was insufficient so I'll use the SDRAM, also while researching how to use it, I found out about the IORW/IOWR macros, which do exactly what I want. Thanks for the reply. On Fri, Mar 1, 2019, 18:35 Intel Forums <supportreplies@intel.com wrote:

View solution in original post

0 Kudos