Altera_Forum
Honored Contributor
12 years agoInitializing Multiple Altsyncram Instantiations
I am using the MegaWizard Plug-In Manager to create a new custom variation of the altsyncram megafunction. I know that the MegaWizard allows me to assign a .mif file to initialize the contents of this altsyncram variation.
My question is: How do I implement multiple instances of the same altsyncram variation in my design AND assign a unique .mif file to each instance? For example, I use the MegaWizard to create an 8x16 dual-port RAM and save the output file RAM_8X16.v. If I am just using one instance of this RAM in my design, I can assign an initialization file (ex., RAM_8X16_INIT.mif) with the MegaWizard tool and all is well. But what if I want to instantiate TWO of the same 8x16 dual-port RAM's in my design (ex., RAM_1 and RAM_2) and initialize them both with unique values? The MegaWizard tool assigns the .mif file to the output file (RAM_8X16.v), not the unique RAM_1 and RAM_2 identifiers....so there doesn't seem to be any way to assign unique .mif files to each instance unless I create TWO different MegaWizard output files with different file names....I know this strategy will work, it just seems incredibly clunky and inefficient...