Forum Discussion
Altera_Forum
Honored Contributor
13 years agoCode and Data in SDRAM
Hello! Beginner's question: When using an SDRAM in an NIOS II project, where (at what address) does the code stops and were does the data can be written? I need to know the address bec...
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- In C you should use the malloc() function. It will allocate for you a memory region that isn't used for anything else. Alternatively if you know at compile time how much space you need, you can also declare a static variable (a char array for example). --- Quote End --- Thank you for your response Daixiwen But if I want to write data periodically (T= T1 write data + T2 do nothing ) using vhdl logic and then I want to access it through Nios (when vhdl logic does not write, that is T2) , will that be also work with malloc () ?