Table 3–2, Shows the, Table 3–3 – Altera RAM Initializer User Manual
Page 35

Altera Corporation
Confidential—Internal Use Only
3–3
May 2008
RAM Initializer (ALTMEM_INIT) Megafunction User Guide
Specifications
lists the output ports of the ALTMEM_INIT megafunction.
lists the parameters for the ALTMEM_INIT megafunction.
Table 3–2. ALTMEM_INIT Megafunction Output Ports
Port Name
Required
Description
Comments
dataout[]
Yes
Data sent to external RAM.
Output port [(width–1)..0] wide. The
value of the
dataout
port
corresponds to the data at the
address specified by the
ram_address
port.
init_busy
Yes
Indicates that the RAM initialization
from ROM is in progress.
The
init_busy
signal remains
active throughout the initialization
process, and returns to an inactive
state when initialization is complete.
ram_wren
Yes
Write-enable signal to RAM.
When asserted, the data that is sent
from the
dataout
port is valid.
ram_address[]
Yes
RAM address.
—
rom_address[]
No
ROM address that connects to the
external ROM.
This port is applicable in the
external-ROM mode only. When this
port is in use, connect it to the
address input port of the external
ROM.
rom_rden
No
Read-enable signal that connects to
the external ROM.
This port is applicable in the
external-ROM mode only. When
asserted, the ALTMEM_INIT
megafunction generates valid values
for the
rom_address
port.
Table 3–3. ALTMEM_INIT Megafunction Parameters (Part 1 of 2)
Parameter Name
Type
Required
Description
INIT_FILE
String
No
Specifies the name of the initialization file. If the
INIT_FILE
parameter is specified, the
INIT_TO_ZERO
parameter value is overridden and
initialization from internal ROM is performed. If the
INIT_FILE
and
INIT_TO_ZERO
parameter values are
not specified, initialization from an external ROM address
is performed. You must connect the appropriate ports
when initialization is from an external ROM address.
INIT_TO_ZERO
String
No
Specifies whether the RAM must be initialized to contain
all 0’s. The INIT_FILE parameter value takes precedence
over the INIT_TO_ZERO parameter value. Values are
YES
and
NO
. If omitted, the default is
NO
.