LPDDR2 command and address decoder

cancel
Showing results for 
Search instead for 
Did you mean: 

LPDDR2 command and address decoder

LPDDR2 command and address decoder

Introduction

The LPDDR2 standard uses a double data rate command and address bus which replpaces the #CAS, #RAS. #WE, BA and A vectors which are used for previous DRAM standards. I made this simple decoder to decode the command and the rsulting address from the 10-bit LPDDR2 CA bus. The decoder only decodes LPDDR2-SX (SDRAM) commands and not LPDDR2-N (NVM).

Usage

The files for the decoder may be downloaded from here: File:Lpddr2 ca decoder.zip 

The decoder is VHDL. The inputs are connected to the same inputs as the LPDDR2 memory component that you want to monitor in your testbench. The ports are listed below:

LPDDR2 CA decoder ports
Signal Direction Description
mem_ck in Memory clock.  This signal should be connected to the same signal as CK input on the LPDDR2 memory that is being monitored.
mem_ca[9:0] in Memory CA. This signal should be connected to the same signal as CA0 - CA9 inputs on the LPDDR2 memory that is being monitored.
command out Enumerated type which shows the command which is valid for the current clock cycle.  This is valid on the falling edge of mem_ck.  The symbols match those used in section 3.2 of JESD209-2E
bank_add out Bank address.  This is updated on Activate, Write, Read and Precharge commands.
row_add out Row address.  This is updated on Activate commands.
col_add out Column address. This is updated on Write and Read commands.
auto_pre out Auto Precharge.  This is updated on Read and Write commands.
mod_add out Mode Register address.  This is updated on MRW and MRR commands.
mod_op out Mode Register data.  This is updated on MRW and MRR commands.

 

The decoder makes use of the lpddr2_ca_decoder_types.vhd package which is included in the zip archive.

See Also

  1. List of designs using Altera External Memory IP

 

External Links

  1. Altera's External Memory Interface Solutions Center
  2. Altera's External Memory Interface Handbook
  3. JEDEC JESD209-2E LPDDR2 specification

Key Words

External memory, LPDDR2, EMIF, Low Power DDR2, EMI

Attachments
Version history
Last update:
‎12-22-2022 05:38 PM
Updated by: