Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by sankalp.singhal@Oct 4 2005, 01:56 AM how to use the above funtions to write into an onchip memory.i.e what will be the address,offset?<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10119)
--- quote end ---
--- Quote End --- Create the onchip memory peripheral in SOPC Builder, and give it an appropriate name. Regenerate your system. In the IDE, regenerate your project's system library. Open the system.h file in there and somewhere in there is the base address of the memory peripheral. For example, if I created an "On-chip memory (RAM or ROM)" device and named it "UART_cache", then regenerate SOPC, then regenerate system library, somewhere in the system library's system.h file will be a# define setting UART_CACHE_BASE to the base address of the on-chip memory. I don't remember if there is also a symbol generated for the memory's size.