Forum Discussion
Altera_Forum
Honored Contributor
15 years agoConnecting Custom Logic to M4K block?
Hi,
I have built a system which loads images from SDCARD to the onchip memory in Cyclone II in DE2-70 board using NIOS II IDE and C code .. Now I need my custom logic modules to read the image from the memory to do some processing, how do I connect my custom logic to the SOPC instantiated M4K block and read the loaded values from it? Should my custom verilog module be added as a component in SOPC to resolve this Thanks2 Replies
- Altera_Forum
Honored Contributor
thanks it worked!
- Altera_Forum
Honored Contributor
Yes, you need to wrap your custom logic into a custom SOPC component so that you can connect it to the SOPC system.
You'll either want to a) design your custom component with an Avalon-MM interfance and DMA capable b) design your custom component with an Avalon-ST interface and use the "sgdma" component to perform DMA Or maybe a third option: When reading the image from the SDCARD, store it directly into your custom component, instead of having a separate onchip memory component.