User guide
7–10 Chapter 7: Functional Description—High-Performance Controller II
Example Top-Level File
External Memory Interface Handbook Volume 3 December 2010 Altera Corporation
Section II. DDR3 SDRAM Controller with ALTMEMPHY IP User Guide
Example Top-Level File
The MegaWizard Plug-In Manager helps you create an example top-level file that
shows you how to instantiate and connect the DDR3 SDRAM HPC II. The example
top-level file consists of the DDR3 SDRAM HPC II, some driver logic to issue read
and write requests to the controller, a PLL to create the necessary clocks, and a DLL
(Stratix series only). The example top-level file is a working system that you can
compile and use for both static timing checks and board tests.
Figure 7–5 shows the testbench and the example top-level file.
Table 7–2 describes the files that are associated with the example top-level file and the
testbench.
There are two Altera-generated memory models available—associative-array
memory model and full-array memory model.
The associative-array memory model (<variation name>_mem model.v) allocates
reduced set of memory addresses with a default depth of 2,048 or 2K address spaces.
This allocation allows for a larger memory array compilation and simulation which
enables you to easily reconfigure the depth of the associate array.
The full-array memory model (<variation name>_mem model_full.v) allocates
memory for all addresses accessible by the DDR cores. This allocation makes it
impossible to simulate large memory designs.
Figure 7–5. Testbench and Example Top-Level File
Example Driver
ALTMEMPHY
Control
Logic
clock_source
test_complete
pnf
Example Design
Testbench
DDR SDRAM Controller
Wizard-
Generated
Memory Model
DLL
PLL
Table 7–2. Example Top-Level File and Testbench Files
Filename Description
<variation name>_example_top_tb.v or .vhd Testbench for the example top-level file.
<variation name>_example_top.v or .vhd Example top-level file.
<variation name>_mem_model.v or .vhd Associative-array memory model.
<variation name>_full_mem_model.v or .vhd Full-array memory model.
<variation name>_example_driver.v or .vhd Example driver.
<variation name> .v or .vhd Top-level description of the custom MegaCore function.
<variation name>.qip
Contains Quartus II project information for your MegaCore
function variations.