
3–28 MegaCore Version 9.1 Altera Corporation
QDRII SRAM Controller MegaCore Function User Guide November 2009
Device-Level Configuration
Figure 3–21. Testbench & Example Design
Table 3–7 describes the files that are associated with the example design
and the testbench.
The example driver is a self-checking test generator for the QDRII SRAM
controller. It uses a state machine to write data patterns to all memory
banks. It then reads back the data and checks that the data matches. If any
read data fails the comparison, the fail output transitions high for one
cycle and the fail permanent output transitions high and stays high.
The data patterns used are generated using an 8-bit counter per byte, with
each counter having a different initialization seed.
Example Driver
PLLref_clk
test_complete
pnf
Example Design
Testbench
QDRII SRAM Controller
QDRII SRAM
Model
DLL
Table 3–7. Example Design & Testbench Files
Filename Description
<top-level name>_tb.v or .vhd (1) Testbench for the example design.
<top-level name>.vhd or .v (1) Example design.
qdrii_pll_stratixii.vhd Example PLL, which you should
configure to match your frequency.
<variation name>_example_driver.v
or .vhd (2)
Example driver.
<variation name> .v or .vhd (2) QDRII SRAM controller.
Notes to Ta b le 3 –7 :
(1) <top-level name> is the name of the Quartus II project top-level entity.
(2) <variation name> is the is the name you give to the controller you create with the
Megawizard.
Kommentare zu diesen Handbüchern