Forum Discussion

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

RAMB16_S36_S36 conversion

Is there a Altera megafunction similar to the Xilinx RAMB16_S36_S36?

I'll also need to declare the initial contents of the RAM.

4 Replies

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

    The Xilinx RAMB16_S36_S36 is a primitive, similar to the Altera altsyncram. You could create something similar with the MegaWizard, but if you want, I've attached a Verilog file equivalent to map the Xilinx primitive into the Altera architecture. Hope this helps.

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

    --- Quote Start ---

    Thanks! Would it be possible that you have the file in vhdl?

    --- Quote End ---

    Use the MegaWizard generator to setup the RAM parameters. Select VHDL as the target. Call the instance RAMB16_S36_S36.vhd if it makes you feel better.

    The tool will generate a wrapper around the general purpose altsyncram component.

    Personally, I just copy the altsyncram component from within the instance file and delete the instance file. Its an easy way to get all the generics correct for your target device without having to read the docs.

    Cheers,

    Dave