Initial Release - Jan 05th 2012 – Stratix III QDRII+ SRAM x18 333MHz, Quartus II v11.1 QDR II and QDR II+ SRAM Controller with UniPHY, Stratix III development board.
This design is meant as a demo style lab. It very briefly covers the steps required to successfully get a QDRII+ SRAM interface working with a Stratix III FPGA using a single component on the Stratix III development board. The purpose of the lab is for the reader to get a basic feel for what steps are involved in getting an external memory working with an Altera FPGA and the UniPHY IP. The lab will not cover any of the steps in detail but simply show an overview of the design process. Volume 6 of the External Memory Interface Handbook should be used for a more thorough walkthrough.
The lab creates a 18bit 333MHz QDRII+ SRAM external memory PHY and controller using Altera’s QDR II and QDR II+ SRAM Controller with UniPHY IP. The IP also generates an example top level file, an example driver, and a test bench including an external memory model. All these will be used to demonstrate the QDRII+ SRAM functionality
The table below lists the specifications for this design:
|Quartus version||QuartusII v11.1|
|Kit||Stratix III Development board|
|Memory device||QDRII+ SRAM (CY7C1263V18)|
|Memory topology||single component, x18|
|IP used||QDR II and QDR II+ SRAM Controller with UniPHY and generated example top Quartus project|
The lab uses Quartus II v11.0 and has Modelsim set up via NativeLink for simulation. The lab assumes the reader is a competent user of these tools and many of their features.
Four files have been pre-designed for this lab to save time.
A Quartus archive for the final project is also included for reference.
Files for this lab are located in this zip file – StratixIII_UniPHY_QDRII+.zip
Create a new folder for the project and place the files in it
1. Use the Megawizard Plug-in Manager to generate a RLDRAM II Controller with UniPHY
Start Quartus, open MegaWizard Plug-In Manager and create a new variation
2. Set parameters for Memory Controller with UniPHY
On the right of the GUI are some Memory Presets, click CY7C1263V18-400 and apply
- Set Speed Grade to 2
- Set Memory Clock Frequency to 400MHz
- Set PLL Reference Clock Frequency to 125MHz
- For Full or half rate on Avalon-MM interface, select Half. This option allows you to choose between the full-rate and half-rate controller, and define the bus data width between the controller and the PHY.
- For Additional Address/Command clock phase, select 0.
- Select 64 for maximum Avalon-MM burst length
- Select 1.8V HSTL for I/O standard
- Turn on Master for PLL/DLL sharing to instantiate its own PLL. If the Master for PLL/DLL sharing option is disabled, the PLL clock shares with other identical UniPHY core.
-Under Example Testbench Simulation Options, turn on Skip memory initialization to reduce simulation time.
- Set INI parameters to 0ps for single chip select.
- Set the Board Skews parameters to the specified values below:
Maximum delay difference between devices: 0ps
Maximum skew within K group: 20ps
Maximum skew between K groups: 0ps
Average delay difference between Address/Command and K: 1ps
Average delay difference between Data and K: 3ps
Average delay difference between Data and CQ: 9ps
Maximum skew within Address/Command bus: 81ps
3. Open the example project generated by the Megawizard
The Megawizard generates a Quartus example top project. This project connects an example driver to the controller interface so users can quickly compile and test their UniPHY IP configuration on hardware.
4. Perform Analysis and Synthesis
This step is required so Quartus can determine the names of the external ports connected to the UniPHY for when the I/O assignments are created in the next step
5. Assign the pin and DQ group settings
Run the tcl script qdrii_uniphy_pin_assignments.tcl to assign the pin and DQ group assignments. This tcl script is generated for you by the IP megawizard
6. Assign the pin locations Pin locations for external memory systems are not automatically created.
7. Do a Full Compile
This should take about 10 minutes depending on the compiling PC.
1. Timing Analysis results
- Check the summary at the bottom of that report
- Check that all set up and hold timings pass
Note: there will be some unconstrained paths in the design. These are associated with the example driver that will not be part of a fully integrated HP controller design.
2. On board debug with Signal Tap
Open the Signal Tap file and reset the .sof file to the one just created with the full compilation
- Restart the driver
- Ensure that test complete goes high (signal tap is trigger on this), this is the end of the driver testing, check the driver's pass signal is high.
- Also check that calibration was successful and that the PLL is locked
The Quartus II software creates a complete design example for functional simulation in the <variation_name>_example_design/simulation/ directory. To run the RTL simulation with NativeLink, perform the following steps:
1. Initial Release - Jan 05th 2012 - SIII QDRII+ SRAM x18 333MHz, QuartusII v11.1, UniPHY , SIII FPGA development kit.
UniPHY, QDRII SRAM, QDRII+ SRAM, Design Example, External Memory