Forum Discussion

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

DDR2 HPC and Modelsim: How to generate Memory content file

Hallo,

I'm designing a SOPC system containing the DDR2 HPC. My system is designed in VHDL. When simulation ModelSim says:# Warning: simulation may not function properly until valid contents files# are created for the following memory modules:# # altmemddr_0

Ok, i want to create such a content file. But I don't know how. Can I use a simple HEX-Editor. Which HEX format should I use? How do I integrate it in ModelSim?

Thanks for every hint!

2 Replies

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

    I have used eclipse and I have generate a niosII project. There is an option for simulating in modelsim. You have to edit bsp settings and select optimize for simulation and next you have to select run as... modelsim project. There is a script mem_init.mk which generates altmemddr.dat from *.elf file.

    ifdm