当前位置:网站首页>08-SDRAM: Summary
08-SDRAM: Summary
2022-08-02 00:16:00 【Liu Yaner】
前言
推荐阅读:孤独的单刀 - SDRAM汇总篇
正文
一、SDRAM概念
1.1 含义
SDRAM(Synchronous Dynamic Random Access Memory),同步动态随机存储器
同步:
动态:Continuous refresh to ensure the reliability of data(电容存储电荷)
随机:
1.2 版本
- SDR SDRAM:即常说的SDRAM,采用
single-ended clock signal
,在Sampled on the rising edge of the clock
- DDR SDRAM
- DDR2 SDRAM
- DDR3 SDRAM
- DDR4 SDRAM
时钟信号:差分信号(抗干扰)
采样模式:Both rising and falling edges of the clock are sampled
1.3 存储阵列
SDRAM中4area for storage,即4个Bank
SDRAM 存储容量计算
:
- Find the corresponding line address in the chip manual、The bit width of the column address,下面图中Bank的行数=13,列数=9
- Assume that each storage unit can store16bit的数据
- 计算公式:
(2^13) * (2^9) * 16 bit * 4 Bank = 256M
bit (单位是bit)
1.4 芯片引脚
CLK:时钟
CKE:时钟使能,高电平时,CLK才起作用
RAS#:低电平有效,行选通信号
CAS#:低电平有效,列选通信号
这2pins are used in commonA0-A12这13个引脚,分时复用
WE#:使能写操作、预充电
CS#:片选信号,Shield or enable all input and output ports
SDRAM操作命令:CS#——CAS#——RAS#——WE#
BA[1:0]:Bank地址
A[12:0]:存储地址
DQ[15:0]:双向数据端口
1.5 操作命令
1.6 学习难点
It is mainly reflected in the strict requirements on the control sequence
1.6.1 Difficulties caused by dynamics
1.6.2 Difficulties caused by randomness
行地址、Column addresses share one port,分时复用
二、实验
2.1 初始化
The timing diagram is from the Micron data sheet
The waveform graph is from Wildfire Video
2.1.1指令:
The write of the instruction takes only one clock cycle
SDRAMThe initialization needs to use the following4command together
parameter P_CHARGE = 4'b0010 , //预充电指令 AUTO_REF = 4'b0001 , //自动刷新指令
NOP = 4'b0111 , //空操作指令 M_REG_SET = 4'b0000 ; //模式寄存器设置指令
2.1.2 地址
init_addr = {
3'd0,1'b0,2'b00,3'b011,1'b0,3'b111};
2.2 自动刷新(保证数据不丢失)
2.3 写操作(页突发)
突发模式
:Page burst mode without automatic charging
length of page burst
: The number of memory cells contained in a row
2.4 读操作(页突发)
突发模式
:Page burst mode without automatic charging
设置潜伏期
Set in the initialization module section3个潜伏期
So read the data part,就需要用突发长度+3
to indicate the cycle of read data usage
从SDRAMThe data read in need to be tapped,因为SDRAMthe working clock of the current module and the system clock of the current module频率相同、相位不同
2.5 仲裁模块
优先级:自动刷新>写操作>读操作
2.6 SDRAM控制模块
2.7 FIFO控制模块
Need to configure read and writeFIFO的IP核:FIFOIP核配置步骤
边栏推荐
- Wincc报表教程(SQL数据库的建立,wincc在数据库中保存和查询数据,调用Excel模板把数据保存到指定的位置和打印功能)
- 单片机遥控开关系统设计(结构原理、电路、程序)
- 在MySQL中使用MD5加密【入门体验】
- 使用 Zadig 交付云原生微服务应用
- 重装腾讯云云监控后如果对应服务不存在可通过sc.exe命令添加服务
- NFT工具合集
- els block deformation
- 根本上解决mysql启动失败问题Job for mysqld.service failed because the control process exited with error code
- JSP out.print()和out.write()方法的不同之处
- TCL:在Quartus中使用tcl脚本语言进行管脚约束
猜你喜欢
随机推荐
【Leetcode】478. Generate Random Point in a Circle(配数学证明)
面试高频考题解法——栈的压入弹出序列、有效的括号、逆波兰表达式求值
工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息
Win11如何获得最佳电源效率?
在CentOS下安装MySQL
【MySQL系列】MySQL数据库基础
Detailed explanation of Zadig's self-testing and tuning environment technical solution for developers
GetHashCode与Equals
【Leetcode】2360. Longest Cycle in a Graph
短视频SEO优化教程 自媒体SEO优化技巧方法
CRS 管理与维护
不就是个TCC分布式事务,有那么难吗?
Axure教程-新手入门基础(小白强烈推荐!!!)
【Leetcode】1206. Design Skiplist
22. The support vector machine (SVM), gaussian kernel function
Study Notes: The Return of Machine Learning
Flink Yarn Per Job - Yarn应用
security 会话并发管理
[Headline] Written test questions - minimum stack
根本上解决mysql启动失败问题Job for mysqld.service failed because the control process exited with error code