Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Connecting Custom Logic to M4K block?

Altera_Forum
Honored Contributor II
1,043 Views

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 

 

Thanks
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
391 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
391 Views

thanks it worked!

0 Kudos
Reply