Forum Discussion
Altera_Forum
Honored Contributor
16 years agodear senlin,
1) I do not know a way how to avoid this overwriting when using MegaWizard. It looks to me like a software bug. 2) So, if you prepare a .mif or .hex file and put it in your project directory it will be overwritten by MegaWizard if you specify a memory initialization file with this (for you intended OK) filename. The memory initialization file generated by MegaWizard is a template with all memory content zero. 3) Two possible solutions: 3.I. Copy your own .mif or .hex file from another location to the project directory and overwrite the MegaWizard generated .mif or .hex file. This should be done each time AFTER you run MegaWizard. 3.II. As MSchmitt suggests, to write protect your .mif or .hex file, so that MegaWizard can not overwrite. This looks to me the effecient solution to this problem. Good luck!