Forum Discussion
Altera_Forum
Honored Contributor
9 years agoIf I understand you correctly, all you need to do is create separate memory regions for each function.
I'm assuming your ADC sampling can be controlled/read directly by the NIOS and stored in (eg) software FIFO's in normal program data space? This would be accessed from static/global variable space, heap or stack depending on how you choose to write your software. No addressing or contention issues there as the NIOS is pulling samples from the ADC and storing them internally. Then you'd need a dual-port frame buffer in on-chip memory that can be rendered by the NIOS on one port and read by your VGA controller on the other port for display. This memory block is completely distinct from your NIOS program/data memory so you don't have to worry about addressing or contention issues between the NIOS and "VHDL".