External Memory Interfaces (EMIF) IP User Guide: Agilex™ 5 FPGAs and SoCs

ID 817467
Date 11/18/2024
Public
Document Table of Contents

8.1. External Memory Interfaces (EMIF) IP - LPDDR4 Parameter Descriptions

The following topics describe the parameters available on each tab of the IP parameter editor, which you can use to configure your IP.
Table 180.  Group: High-level Configuration / Memory Device
Parameter Name Description
Use LPDDR4X

If True: using LPDDR4X; If False: using LPDDR4

Default value is false

(Identifier: MEM_TECH_IS_X)

Number of Channels

Specifies the number of channels that the interface should implement. For multi-channel devices, this should always match the number of channels on the device.

Default value is 2

Legal values are: 1, 2, 4

(Identifier: MEM_NUM_CHANNELS)

Data DQ Width

Number of DQ pins per memory channel, used for data.

Default value is 16

Legal values are: 16, 32

(Identifier: MEM_CHANNEL_DATA_DQ_WIDTH)

Die Density

Capacity of each memory die (in Gbits), per channel per die. For dual-die packages, this is the density of each die, not the density of the full package.

Default value is 16

Legal values are: 1, 2, 3, 4, 6, 8, 12, 16

(Identifier: MEM_DIE_DENSITY_GBITS)

CS Width

Specifies the total number of CS pins used by each channel.

Default value is 1

Legal values are: 1, 2

(Identifier: MEM_CHANNEL_CS_WIDTH)

Auto-set Memory Operating Frequency

if true, let IP select max frequency that this configuration can support for the current device speedgrade. If false, user can set custom value for operating frequency.

Default value is true

(Identifier: MEM_OPERATING_FREQ_MHZ_AUTOSET_EN)

Memory Operating Frequency

Specifies the frequency at which the memory interface will run.

Legal values are: 800, 1066.667, 1333.333, 1600, 1866.667, 2133.333

(Identifier: MEM_OPERATING_FREQ_MHZ)

Table 181.  Group: High-level Configuration / PHY
Parameter Name Description
Auto-set PLL Reference Clock Frequency

if true, let IP select max PLL refclk frequency that this configuration can support. If false, user can set custom value for PLL refclk frequency.

Default value is true

(Identifier: PHY_REFCLK_FREQ_MHZ_AUTOSET_EN)

Enable Advanced List of PLL Reference Clock Frequencies

If true, provide extended list of possible refclk values. Otherwise, prune possible list of refclk values to a more reasonable length.

Default value is false

(Identifier: PHY_REFCLK_ADVANCED_SELECT_EN)

Reference Clock Frequency

Specifies the reference clock frequency for the EMIF IOPLL.

(Identifier: PHY_REFCLK_FREQ_MHZ)

AC Placement

Indicates location on the device where the interface will reside (specifically, the location of the AC lanes in terms I/O BANK and TOP vs BOT part of the I/O BANK). Legal ranges are derived from device floorplan.

Default value is BOT

Legal values are: BOT, TOP, FULL

(Identifier: PHY_AC_PLACEMENT)

Auto-set Mainband Access Mode

if true, let IP select most likely usecase for the PHY_MAINBAND_ACCESS_MODE; if false, let user set a custom value for sideband access mode.

Default value is true

(Identifier: PHY_MAINBAND_ACCESS_MODE_AUTOSET_EN)

Mainband Access Mode

Specifies the path through which the EMIF QHIP mainband interface is exposed to the user. The mainband interface is the AXI4 interface to the memory controller.

Legal values are: NOC, ASYNC, SYNC

(Identifier: PHY_MAINBAND_ACCESS_MODE)

Auto-set Sideband Access Mode

if true, let IP select most likely usecase for the PHY_SIDEBAND_ACCESS_MODE; if false, let user set a custom value for sideband access mode.

Default value is true

(Identifier: PHY_SIDEBAND_ACCESS_MODE_AUTOSET_EN)

Sideband Access Mode

Specifies the path through which the EMIF QHIP sideband interface is exposed to the user. The sideband interface is the AXI4-Lite interface to the IOSSM.

Legal values are: NOC, FABRIC

(Identifier: PHY_SIDEBAND_ACCESS_MODE)

Pin Swizzle Map

Specifies the swizzle map for the data lanes and pins.

(Identifier: PHY_SWIZZLE_MAP)

Use Debug Toolkit

If enabled, the AXI-L port will be connected to SLD nodes, allowing for a system-console avalon manager interface to interact with this AXI-L subordinate interface.

Default value is false

(Identifier: DEBUG_TOOLS_EN)

Instance ID

Instance ID of the EMIF IP. This is useful when using a discovery mechanism over the side-band interface, to identify which EMIF instance's mailbox is at which offset. If expecting to use a discovery mechanism in hardware, this parameter must be set uniquely for all EMIFs that share a sideband. Otherwise, this parameter can be ignored / kept at the default value.

Default value is 0

Legal values are: from 0 to 6

(Identifier: INSTANCE_ID)

Table 182.  Group: High-level Configuration / Controller
Parameter Name Description
Use In-Line ECC

Specifies whether in-line ECC is enabled in the controller.

Default value is false

(Identifier: CTRL_ECC_INLINE_EN)

Use ECC Autocorrection

If ECC is enabled, specifies whether single-bit-errors (SBEs) should be corrected or just reported.

Default value is true

(Identifier: CTRL_ECC_AUTOCORRECT_EN)

Use Data Masking

Specifies whether Data Masking is enabled by the controller. When ECC is enabled, RMWs will occur (to recompute / write ECC), regardless of whether this is enabled.

Default value is false

(Identifier: CTRL_DM_EN)

Use WDBI

Specifies whether write Data-bus-inversion is enabled by the controller.

Default value is false

(Identifier: CTRL_WR_DBI_EN)

Use RDBI

Specifies whether read Data-bus-inversion is enabled by the controller.

Default value is false

(Identifier: CTRL_RD_DBI_EN)

Table 183.  Group: Advanced: Memory Timing / Overrides / JEDEC_TABLE
Parameter Name Description
JEDEC Parameter

Name of JEDEC Parameter to explicitly override; the values will be applied and appear in the list below.

Default value is

Legal values are: MEM_CL_CYC, MEM_CWL_CYC, MEM_RD_POSTAMBLE_CYC, MEM_WR_POSTAMBLE_CYC, MEM_TSR_NS, MEM_TRFCAB_NS, MEM_TRFCPB_NS, MEM_TXSR_NS, MEM_TXP_NS, MEM_TCCD_NS, MEM_TRTP_NS, MEM_TRCD_NS, MEM_TRPPB_NS, MEM_TRPAB_NS, MEM_TRAS_NS, MEM_TWR_NS, MEM_TWTR_NS, MEM_TRRD_NS, MEM_TPPD_CYC, MEM_TFAW_NS, MEM_TRC_NS, MEM_TREFW_NS, MEM_MINNUMREFSREQ, MEM_TREFI_NS, MEM_TCKE_NS, MEM_TCMDCKE_NS, MEM_TCKELCK_NS, MEM_TCSCKE_NS, MEM_TCKCKEH_NS, MEM_TCSCKEH_NS, MEM_TMRWCKEL_NS, MEM_TZQCKE_NS, MEM_TMRR_NS, MEM_TMRW_NS, MEM_TMRD_NS, MEM_TESCKE_NS, MEM_TZQCAL_NS, MEM_TZQLAT_NS, MEM_TDQSCK_MAX_NS, MEM_TDQSCK_MIN_NS, MEM_TCKCKEL_NS, MEM_TCKELCMD_NS, MEM_TCKEHCMD_NS

(Identifier: JEDEC_OVERRIDE_TABLE_PARAM_NAME)

Table 184.  Group: Advanced: Memory Timing / Values
Parameter Name Description
Read Latency

Read Latency of the memory device in clock cycles.

(Identifier: MEM_CL_CYC)

Write Latency

Write Latency in clock cycles.

(Identifier: MEM_CWL_CYC)

Read Postamble Cycles

Duration of read postamble in cycles.

(Identifier: MEM_RD_POSTAMBLE_CYC)

Write Postamble Cycles

Duration of write postamble in cycles.

(Identifier: MEM_WR_POSTAMBLE_CYC)

tSR

Minimum duration (Entry to Exit) of Self Refresh in nanoseconds.

(Identifier: MEM_TSR_NS)

tRFCab

All-Bank Refresh Cycle Time in nanoseconds.

(Identifier: MEM_TRFCAB_NS)

tRFCpb

Per-Bank Refresh Cycle Time in nanoseconds.

(Identifier: MEM_TRFCPB_NS)

tXSR

Self-Refresh Exit to Next Valid Command Delay Time in nanoseconds.

(Identifier: MEM_TXSR_NS)

tXP

Exit Power-Down to Next Valid Command Delay Time in nanoseconds.

(Identifier: MEM_TXP_NS)

tCCD

CAS-to-CAS Delay in nanoseconds.

(Identifier: MEM_TCCD_NS)

tRTP

Internal READ to PRECHARGE Command Delay Time in nanoseconds.

(Identifier: MEM_TRTP_NS)

tRCD

RAS-to-CAS Delay in nanoseconds.

(Identifier: MEM_TRCD_NS)

tRPpb

Per-Bank Precharge Time in nanoseconds.

(Identifier: MEM_TRPPB_NS)

tRPab

All-Bank Precharge Time in nanoseconds.

(Identifier: MEM_TRPAB_NS)

tRAS

Row Active Time in nanoseconds.

(Identifier: MEM_TRAS_NS)

tWR

Write Recovery Time in nanoseconds.

(Identifier: MEM_TWR_NS)

tWTR

Write-to-Read Delay in nanoseconds.

(Identifier: MEM_TWTR_NS)

tRRD

RAS-to-RAS (Active Bank-A to Active Bank-B) Delay Time in nanoseconds.

(Identifier: MEM_TRRD_NS)

tFAW

Four-bank ACTIVE window time in nanoseconds.

(Identifier: MEM_TFAW_NS)

tRC

Activate-to-Activate command period (same bank) in nanoseconds.

(Identifier: MEM_TRC_NS)

tREFW

Refresh window time in nanoseconds.

(Identifier: MEM_TREFW_NS)

Min Number of Refs Reqd

Minimum Number of Refreshes Required.

(Identifier: MEM_MINNUMREFSREQ)

tREFI

Refresh Interval Time in nanoseconds.

(Identifier: MEM_TREFI_NS)

tCKE

CKE Minimum Pulse Width time in nanoseconds.

(Identifier: MEM_TCKE_NS)

tCMDCKE

Delay from valid command to power-down-entry (CKE low) in nanoseconds.

(Identifier: MEM_TCMDCKE_NS)

tCKELCK

Valid clock requirement after power-down-entry in nanoseconds.

(Identifier: MEM_TCKELCK_NS)

tCSCKE

Valid CS requirement before power-down-entry (CKE low) in nanoseconds.

(Identifier: MEM_TCSCKE_NS)

tCKCKEH

Valid clock requirement before power-down-exit in nanoseconds.

(Identifier: MEM_TCKCKEH_NS)

tCSCKEH

Valid CS requirement before power-down-exit (CKE high) in nanoseconds.

(Identifier: MEM_TCSCKEH_NS)

tMRWCKEL

Delay from MRW command to power-down-entry (CKE low) in nanoseconds.

(Identifier: MEM_TMRWCKEL_NS)

tZQCKE

Delay from ZQCal Start command to power-down-entry (CKE low) in nanoseconds.

(Identifier: MEM_TZQCKE_NS)

tMRR

Mode Register Read Command Period Time in nanoseconds.

(Identifier: MEM_TMRR_NS)

tMRW

Mode Register Write Command Period Time in nanoseconds.

(Identifier: MEM_TMRW_NS)

tMRD

Mode Register Set Command Period Time in nanoseconds.

(Identifier: MEM_TMRD_NS)

tESCKE

Delay from SRE command to CKE Input low in nanoseconds.

(Identifier: MEM_TESCKE_NS)

tZQCAL

ZQ calibration time in nanoseconds.

(Identifier: MEM_TZQCAL_NS)

tZQLAT

ZQcal Latch time in nanoseconds.

(Identifier: MEM_TZQLAT_NS)

tDQSCK_MAX

Maximum DQS output access time from CK in nanoseconds.

(Identifier: MEM_TDQSCK_MAX_NS)

tDQSCK_MIN

Minimum DQS output access time from CK in nanoseconds.

(Identifier: MEM_TDQSCK_MIN_NS)

tCKCKEL

Clock valid requirements after power-down-entry (CKE low) in nanoseconds.

(Identifier: MEM_TCKCKEL_NS)

tCKELCMD

Valid command requirement after CKE input low in nanoseconds.

(Identifier: MEM_TCKELCMD_NS)

tCKEHCMD

Valid command requirement after CKE input high in nanoseconds.

(Identifier: MEM_TCKEHCMD_NS)

Table 185.  Group: Advanced: Analog Overrides / Overrides / ANALOG_TABLE
Parameter Name Description
Analog Parameter

Name of Analog Parameter to explicitly override; the values will be applied and appear in the list below.

Default value is

Legal values are: PHY_TERM_X_R_S_AC_OUTPUT_OHM, PHY_TERM_X_R_S_CK_OUTPUT_OHM, PHY_TERM_X_R_S_DQ_OUTPUT_OHM, PHY_TERM_X_DQ_SLEW_RATE, PHY_TERM_X_R_T_DQ_INPUT_OHM, PHY_TERM_X_DQ_VREF, PHY_TERM_X_R_T_REFCLK_INPUT_OHM, MEM_ODT_DQ_X_TGT_WR, MEM_ODT_DQ_X_IDLE, MEM_ODT_DQ_X_RON, MEM_VREF_DQ_X_RANGE, MEM_VREF_DQ_X_VALUE, MEM_ODT_CA_X_CA_COMM, MEM_ODT_CA_X_CA_ENABLE, MEM_ODT_CA_X_CS_ENABLE, MEM_ODT_CA_X_CK_ENABLE, MEM_VREF_CA_X_CA_RANGE, MEM_VREF_CA_X_CA_VALUE

(Identifier: ANALOG_PARAM_DERIVATION_PARAM_NAME)

Table 186.  Group: Advanced: Analog Overrides / Values
Parameter Name Description
AC Drive Strength

This parameter allows you to change the input on chip termination settings for the selected I/O standard on the refclk input pins. Perform board simulation with IBIS models to determine the best settings for your design.

Legal values are: SERIES_34_OHM_CAL, SERIES_40_OHM_CAL

(Identifier: PHY_TERM_X_R_S_AC_OUTPUT_OHM)

CK Drive Strength

This parameter allows you to change the output on chip termination settings for the selected I/O standard on the CK Pins. Perform board simulation with IBIS models to determine the best settings for your design.

Legal values are: SERIES_34_OHM_CAL, SERIES_40_OHM_CAL

(Identifier: PHY_TERM_X_R_S_CK_OUTPUT_OHM)

FPGA DQ Drive Strength

This parameter allows you to change the output on chip termination settings for the selected I/O standard on the DQ Pins. Perform board simulation with IBIS models to determine the best settings for your design.

Legal values are: SERIES_34_OHM_CAL, SERIES_40_OHM_CAL

(Identifier: PHY_TERM_X_R_S_DQ_OUTPUT_OHM)

DQ Slew Rate

Specifies the slew rate of the data bus pins. The slew rate (or edge rate) describes how quickly the signal can transition, measured in voltage per unit time. Perform board simulations to determine the slew rate that provides the best eye opening for the data bus signals.

Legal values are: SLOW, MEDIUM, FAST, FASTEST

(Identifier: PHY_TERM_X_DQ_SLEW_RATE)

DQ Input Termination

This parameter allows you to change the input on chip termination settings for the selected I/O standard on the DQ Pins. Perform board simulation with IBIS models to determine the best settings for your design.

Legal values are: RT_40_OHM_CAL, RT_50_OHM_CAL, RT_60_OHM_CAL

(Identifier: PHY_TERM_X_R_T_DQ_INPUT_OHM)

DQ Initial Vrefin

Specifies the initial value for the reference voltage on the data pins(Vrefin). The specified value serves as a starting point and may be overridden by calibration to provide better timing margins.

Legal values are: from 0 to 100

(Identifier: PHY_TERM_X_DQ_VREF)

PLL Reference Clock Input Termination

This parameter allows you to change the input on chip termination settings for the selected I/O standard on the refclk input pins. Perform board simulation with IBIS models to determine the best settings for your design.

Legal values are: RT_OFF, RT_DIFF

(Identifier: PHY_TERM_X_R_T_REFCLK_INPUT_OHM)

Target Write Termination

Specifies the target termination to be used during a write. The value of this parameter represents X, where: termination = RZQ/X = (240 Ohm)/X.

Legal values are: off, 1, 2, 3, 4, 5, 6

(Identifier: MEM_ODT_DQ_X_TGT_WR)

DQ Idle Termination

Specifies the termination to be used for RTT_PARK and DQS_RTT_PARK. For power savings it is recommended to leave this as disabled. The value of this parameter represents X, where: termination = RZQ/X = (240 Ohm)/X.

(Identifier: MEM_ODT_DQ_X_IDLE)

Memory DQ Drive Strength

Specifies the termination to be used when driving read data from memory. The value of this parameter represents X, where: termination = RZQ/X = (240 Ohm)/X.

Legal values are: 6, 5, 4, 3, 2, 1

(Identifier: MEM_ODT_DQ_X_RON)

VrefDQ Range

Specifies which of the memory protocol defined ranges will be used.

Legal values are: 1, 2

(Identifier: MEM_VREF_DQ_X_RANGE)

VrefDQ Value

Specifies the initial VrefDQ value to be used.

Legal values are: from 15.00 to 44.90, from 10.00 to 30.00, from 32.90 to 62.90, from 22.00 to 42.00

(Identifier: MEM_VREF_DQ_X_VALUE)

CA Common Termination

Common termination value that can be applied to CA/CK/CS. The value of this parameter represents X, where: termination = RZQ/X = (240 Ohm)/X. "off" means this termination is disabled.

Legal values are: off, 1, 2, 3, 4, 5, 6

(Identifier: MEM_ODT_CA_X_CA_COMM)

CA Termination Enable

Enable the common termination value on the CA bus. Enabling CA termination will have no effect unless the ODT_CA bond pad is HIGH.. The value of this parameter represents X, where: termination = RZQ/X = (240 Ohm)/X. "off" means this termination is disabled.

Legal values are: false, true

(Identifier: MEM_ODT_CA_X_CA_ENABLE)

CS Termination Enable

Enable the common termination value on the CS bus. The value of this parameter represents X, where: termination = RZQ/X = (240 Ohm)/X. "off" means this termination is disabled.

Legal values are: false, true

(Identifier: MEM_ODT_CA_X_CS_ENABLE)

CK Termination Enable

Enable the common termination value on the CK bus. The value of this parameter represents X, where: termination = RZQ/X = (240 Ohm)/X. "off" means this termination is disabled.

Legal values are: false, true

(Identifier: MEM_ODT_CA_X_CK_ENABLE)

VrefCA Range

Specifies which of the memory protocol defined ranges will be used.

Legal values are: 1, 2

(Identifier: MEM_VREF_CA_X_CA_RANGE)

VrefCA Value

Specifies the initial VrefCA value to be used.

Legal values are: from 10.00 to 30.00, from 22.00 to 42.00

(Identifier: MEM_VREF_CA_X_CA_VALUE)

Table 187.  Group: Example Design / Fileset Types
Parameter Name Description
HDL Selection

This option lets you choose the format of HDL in which generated simulation and synthesis files are created. You can select either Verilog or VHDL.

Default value is VERILOG

Legal values are: VERILOG, VHDL

(Identifier: EX_DESIGN_HDL_FORMAT)

Generate Synthesis Fileset

Generate Synthesis Example Design.

Default value is true

(Identifier: EX_DESIGN_GEN_SYNTH)

Generate Simulation Fileset

Generate Simulation Example Design.

Default value is true

(Identifier: EX_DESIGN_GEN_SIM)

Table 188.  Group: Example Design / User PLL
Parameter Name Description
Auto-set User PLL Output Clock Frequency

if true, let IP select a reference clock frequency for the user PLL in the example design; if false, let user set a custom value for this parameter.

Default value is true

(Identifier: EX_DESIGN_USER_PLL_OUTPUT_FREQ_MHZ_AUTOSET_EN)

User PLL Output Clock Frequency

Frequency of the core clock in MHz. This clock drives the traffic generator and NoC initiator (If in NoC mode).

Default value is 570

(Identifier: EX_DESIGN_USER_PLL_OUTPUT_FREQ_MHZ)

User PLL Reference Clock Frequency

PLL reference clock frequency in MHz for PLL supplying the core clock.

Default value is 100

(Identifier: EX_DESIGN_USER_PLL_REFCLK_FREQ_MHZ)

NOC Reference Clock Frequency

Reference Clock Frequency for the NOC control IP.

Default value is 100

Legal values are: 25, 100, 125

(Identifier: EX_DESIGN_NOC_PLL_REFCLK_FREQ_MHZ)

Table 189.  Group: Example Design / Traffic Generator
Parameter Name Description
Traffic Generator Remote Access

Specifies whether the Traffic Generator control and status registers are accessible via JTAG, exported to the fabric, or just disabled.

Default value is JTAG

Legal values are: EXPORT, JTAG

(Identifier: EX_DESIGN_TG_CSR_ACCESS_MODE)

Traffic Generator Program

Specifies the traffic pattern to be run.

Default value is MEDIUM

Legal values are: SHORT, MEDIUM, LONG, INFINITE

(Identifier: EX_DESIGN_TG_PROGRAM)

Table 190.  Group: Example Design / Performance Monitor
Parameter Name Description
Enable Performance Monitor for Channel 0

If true, example design will include a Performance Monitor instance connected to Channel 0.

Default value is false

(Identifier: EX_DESIGN_PMON_CH0_EN)

Enable Performance Monitor for Channel 1

If true, example design will include a Performance Monitor instance connected to Channel 1.

Default value is false

(Identifier: EX_DESIGN_PMON_CH1_EN)

Enable Performance Monitor for Channel 2

If true, example design will include a Performance Monitor instance connected to Channel 2.

Default value is false

(Identifier: EX_DESIGN_PMON_CH2_EN)

Enable Performance Monitor for Channel 3

If true, example design will include a Performance Monitor instance connected to Channel 3.

Default value is false

(Identifier: EX_DESIGN_PMON_CH3_EN)