Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Dual port ram configuration

I wish to use the onchip memory as a dual port ram.

Where one port is connected to the CPU and the other is connected to a vhdl module that will write the data into the on chip ram

Does anybody know how can I use the SOPC builder to configure it?

Where can I read about the Dual port ram configuration?

I have configured the onchip memory as a dual port RAM but I don’t know how to connect it to the vhdl module.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi!

    If you used the standard On-Chip Memory (under the "Memory" component category in SOPC Builder), there is no easy way to connect the memory to an VHDL module OUTSIDE the Avalon System Module (SOPC Builder System). This dual-port memory is designed to have two masters connected to both ports INSIDE the Avalon System Module.

    It is probably easier to make the dual-port memory module yourself (or with the help of the Quartus MegaWizard) and then use the Create New Component Wizard in SOPC Builder to make it part of your Avalon System Module. There, you can specify that the second port is "extern" so that the VHDL module which creates the data can connect to the dual-port memory inside the System Module.

    Hope this helps...