Altera RAM Initializer User Manual
Page 34

3–2
Confidential—Internal Use Only
Altera Corporation
RAM Initializer (ALTMEM_INIT) Megafunction User Guide
May 2008
Ports and Parameters
Figure 3–1. Input and Output Ports of the ALTMEM_INIT Megafunction
shows the input ports,
shows the output ports, and
shows the parameters for the ALTMEM_INIT megafunction.
Table 3–1. ALTMEM_INIT Megafunction Input Ports
Port Name
Required
Description
Comments
clock
Yes
Write clock for RAM. Read clock for
ROM.
—
clken
No
Clock enable port.
Values are 0 (disabled) and 1
(enabled). If omitted, the default
value is 1.
datain[]
No
Data input from external ROM.
Input port [(width–1)..0] wide. This
port is applicable in the
external-ROM mode only.
init
Yes
When asserted, this signal directs
the megafunction to begin initializing
from ROM.
—
rom_data_ready
No
Input port for external-ROM mode.
When the
PORT_ROM_DATA_READY
parameter value is set to
PORT_USED
, the
rom_data_ready
port is used in
the external-ROM mode. Assert this
signal for each word of data when the
ALTMEM_INIT megafunction is
ready to read the data.