Forum Discussion
Altera_Forum
Honored Contributor
16 years agoSDRAM Read and write address control
Dear Friends, i am trying to write and read data in SDRAM. but while writing and reading i don't have any control over address where i perform my read/write operation. i am using following ...
Altera_Forum
Honored Contributor
16 years agoThe macros you are using should only be used with a PIO component. To access memory, you can either use a C pointer, or the IORD/IOWR macros:
IOWR(SDRAM_0_BASE,sdram_index,data) IORD(SDRAM_0_BASE,sdram_index) Be careful if you also use the sdram for anything else (reset/exception vectors, application, heap...) as you may crash your application.