Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
704 Views

How to access on chip memeory through software

Dear friend's  

 

i have add an on chip memory using SOPC builder, now for accessing this on chip memory in software what are the changes required and in which files for accessing on chip memory through software..? 

 

I am using Quartus 11.0. 

 

Regards 

JSH
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
30 Views

Are you talking of accessing the memory through Nios2 CPU or through a HDL language?

Altera_Forum
Honored Contributor I
30 Views

I have add the on-chip memory using my sopc builder now what change i have to made in ipport.h so that i can use this on chip memory.i am working on nios-ii CPU and writing C-code on eclips plateform. i have follow the AN440 application note but some thing is missing,  

 

so please suggest what change has to made in ipport.h 

 

Regards 

JSH
Altera_Forum
Honored Contributor I
30 Views

You should have some lines in your system.h that give the on chip memory base address. For example if you called it my_memory in SOPC builder, you'll have a define in system.h with the name MY_MEMORY_BASE with the base address. This is the address you need to use in ipport.h to declare where the packet memory is.