Understanding the simulation results – Altera RAM Initializer User Manual
Page 24

2–12
Confidential—Internal Use Only
Altera Corporation
RAM Initializer (ALTMEM_INIT) Megafunction User Guide
May 2008
Design Example 1: RAM Initialization with Initialization Data File
1.
Unzip the DE1_internalROM.zip file to any working directory on
your PC.
2.
Start the ModelSim-Altera software.
3.
On the File menu, click Change Directory.
4.
Select the folder in which you unzipped the files.
5.
Click OK.
6.
On the Tools menu, click Execute Macro.
7.
Select the DE1_internalROM.do file and click Open. The
DE1_internalROM.do
file is a script file for the ModelSim-Altera
software to automate all the necessary settings for the simulation.
8.
View the simulation results in the Wave window.
the expected simulation results in the ModelSim-Altera software.
Figure 2–7. Design Example 1: Simulation Results for RAM Initialization with Initialization Data File
Understanding the Simulation Results
“Design Example 1: RAM Initialization with Initialization Data File”
, the ALTMEM_INIT megafunction initializes the RAM of a
HardCopy II device with 16 words—each word having a data width of
8 bits—from an internal ROM using the DE1_initfile.mif file.
shows the start of initialization after the init signal is
asserted and the appearance of the first initialization value at the output
port of the RAM.