Forum Discussion
Regarding reading SDRAM from HDL
Hi this is sundaram from University of waterloo. I'm currently working on a project that requires the controls to get modified based on certain bits. I was using the switches with the always block to monitor the changes. But now, as I'm thinking about a scalable solution, I was wondering if I could monitor changes in certain bits in the SDRAM with the always block. Please let me know how I can do that.
Thanks.3 Replies
- Altera_Forum
Honored Contributor
What would change those bits you want to monitor? It may be easier to create some control registers in your HDL that could be modified by an external CPU.
- Altera_Forum
Honored Contributor
yea i need to do that exactly.. How can you create control registers in the HDL which can be modified by a nios core?
- Altera_Forum
Honored Contributor
You need to create a component with an Avalon Memory Mapped Slave interface. This interface will let you expose registers that the CPU can read and write.