beautypg.com

Example top-level file, Example top-level file –19 – Altera DDR SDRAM High-Performance Controllers and ALTMEMPHY IP User Manual

Page 113

background image

Chapter 6: Functional Description—High-Performance Controller II

6–19

Example Top-Level File

June 2011

Altera Corporation

External Memory Interface Handbook Volume 3

Section I. DDR and DDR2 SDRAM Controllers 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 DDR or DDR2 SDRAM HPC II. The
example top-level file consists of the DDR or DDR2 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 6–6

shows the testbench and the example top-level file.

Table 6–10

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 (_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 (_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 6–6. 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 6–10. Example Top-Level File and Testbench Files

Filename

Description

_example_top_tb.v or .vhd

Testbench for the example top-level file.

_example_top.v or .vhd Example

top-level

file.

_mem_model.v or .vhd

Associative-array memory model.

_full_mem_model.v or .vhd

Full-array memory model.

_example_driver.v or .vhd

Example driver.

.v or .vhd

Top-level description of the custom MegaCore function.

.qip

Contains Quartus II project information for your MegaCore
function variations.

This manual is related to the following products: