mchwang233 / wmchappy_cn

评论库
0 stars 0 forks source link

lpddr学习 - Gavin的碎碎念-代码学习笔记 #75

Open mchwang233 opened 1 month ago

mchwang233 commented 1 month ago

https://wmchappy.cn/2018/08/03/lpddr/

mchwang233 commented 1 month ago

第一章: 第二章: 第三章:

mchwang233 commented 1 month ago

DDR简介

DDR概念

Double Data Rate Synchronous Dynamic Random Access Memory”(双数据率同步动态随机存储器)的简称 SDRAM的发展如下:

Size(max)=(2^20) 16=1048576 16=16777216bit=2097152B=2048KB=2MB。   但是事实上,该DDR最大容量可以做到1GB,比传统的单线编码寻址容量大了整整512倍,它是如何做到的呢?答案很简单,分时复用。我们把DDR存储空间可以设计成如下样式:   首先将存储空间分成两个大块,分别为BANK GROUP0和BANK GROUP1,再用1根地址线(还剩19根),命名为BG,进行编码。若BG拉高选择BANK GROUP0,拉低选择BANK GROUP1。(当然你也可以划分成4个大块,用2根线进行编码) 在这里插入图片描述 image   此时,我们将DDR内存颗粒划分成了2个BANK GROUP,每个BANK GROUP又分成了4个BANK,共8个BANK区域,分配了3根地址线,分别命名为BG0,BA0,BA1。然后我们还剩余17根信号线,每个BANK又该怎么设计呢?这时候,就要用到分时复用的设计理念了。   剩下的17根线,第一次用来表示行地址,第二次用来表示列地址。现在修改为传输2次地址,在传输1次数据,寻址范围最多被扩展为2GB。虽然数据传输速度降低了一半,但是存储空间被扩展了很多倍。这就是改善空间。 所以,剩下的17根地址线,留1根用来表示传输地址是否为行地址。

mchwang233 commented 1 month ago

第二章

信号定义与描述

image-20240805163329206

pin脚类型

一版是SEDIFFSEC

image-20240805163454563

BANK arch

这里主要是LPDDR5 主要支持三种模式 BG mode 、8B mode、16B mode

BG mode

image-20240805163727694

8B mode

image-20240805163750191

16B mode

image-20240805163802838

这些mode很核心的是要和CA结合去看:

image-20240805163853721

解析

  1. BG mode image-20240805164206641

    在交织的情况下,BG mode是支持BL32的传输的

  The BG Mode architecture only supports BL32 in an interleaved fashion when the WCK and CK ratio is 4:1. BL32 interleaved Reads will output the first word of DQ[15:0] after a certain latency from the Read command. The second word, consisting of DQ[31:16], will begin to be driven after an 8tWCK gap from the end of the first word. Figure 5 depicts BG mode Read operations for BL32 including the interleaving between bank groups. If correctly implemented, Read(BL16) command and Read32(BL32) commands can be mixed; however once a Read32(BL32) command is issued, issuing Read(BL16)/Read32(BL32) command after 3 clocks is prohibited, to avoid read data conflict.  
  1. 8B mode image-20240805164243846

  2. 16B mode image-20240805164302049

Addr Mapping

TODO

mchwang233 commented 3 weeks ago

https://zhuanlan.zhihu.com/p/663697786 https://www.systemverilog.io/design/ddr4-initialization-and-calibration/ https://www.systemverilog.io/design/lpddr5-tutorial-physical-structure/ https://www.systemverilog.io/design/understanding-ddr4-timing-parameters/ https://www.systemverilog.io/design/ddr4-basics/