Hps Memory Interface Configuration; Hps Memory Interface Simulation - Altera Cyclone V Device Handbook

Hide thumbs Also See for Cyclone V:
Table of Contents

Advertisement

8-24

HPS Memory Interface Configuration

HPS Memory Interface Configuration
To configure the external memory interface components of the HPS, open the HPS interface by selecting
the Hard Processor System component in Qsys. Within the HPS interface, select the EMIF tab to open the
EMIF parameter editor.
The EMIF parameter editor contains four additional tabs: PHY Settings, Memory Parameters, Memory
Timing, and Board Settings. The parameters available on these tabs are similar to those available in the
parameter editors for non-SoC device families.
There are significant differences between the EMIF parameter editor for the Hard Processor System and the
parameter editors for non-SoC devices, as follows:
• Because the HPS memory controller is not configurable through the Quartus II software, the Controller
and Diagnostic tabs, which exist for non-SoC devices, are not present in the EMIF parameter editor for
the hard processor system.
• Unlike the protocol-specific parameter editors for non-SoC devices, the EMIF parameter editor for the
Hard Processor System supports multiple protocols, therefore there is an SDRAM Protocol parameter,
where you can specify your external memory interface protocol.By default, the EMIF parameter editor
assumes the DDR3 protocol, and other parameters are automatically populated with DDR3-appropriate
values. If you select a protocol other than DDR3, you will have to change other associated parameter
values appropriately.
• Unlike the memory interface clocks in the FPGA, the memory interface clocks for the HPS are initialized
by the boot-up code using values provided by the configuration process. You may accept the values
provided by UniPHY, or you may use your own PLL settings. If you choose to specify your own PLL
settings, you must indicate that the clock frequency that UniPHY should use is the requested clock
frequency, and not the achieved clock frequency calculated by UniPHY.
Note:
The HPS does not support EMIF synthesis generation, compilation, or timing analysis.The HPS hard
memory controller cannot be bonded with another hard memory controller on the FPGA portion
of the device.

HPS Memory Interface Simulation

The HPS component provides a complete simulation model of the HPS memory interface controller and
PHY, providing cycle-level accuracy, comparable to the simulation models for the FPGA memory interface.
The simulation model supports only the skip-cal simulation mode; quick-cal and full-cal are not supported.
An example design is not provided, however you can create a test design by adding the traffic generator
component to your design using Qsys. Also, the HPS simulation model does not use external memory pins
to connect to the DDR memory model; instead, the memory model is incorporated directly into the HPS
SDRAM interface simulation modules.
Simulation of the FPGA-to-SDRAM interfaces requires that you first bring the interfaces out of reset,
otherwise transactions cannot occur. You should add a stage to your testbench to assert and deassert the
H2F reset in the HPS. Appropriate Verilog code is shown below:
initial
begin
// Assert reset
<base name>.hps.fpga_interfaces.h2f_reset_inst.reset_assert();
// Delay
Altera Corporation
cv_54008
2013.12.30
SDRAM Controller Subsystem
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents