FPGA-SDRAM設計學習(三)初始化、模式寄存器、激活和讀命令

不多囉嗦,接着上文繼續讀文檔吧:

初始化

SDRAM上電後必須初始化,初始化的過程:

  1. 上電、時鐘穩定、DQM高、CKE高
  2. 100微秒等待,期間除了INHIBIT或NOP命令,其他命令都不能有。至少1個INHIBIT或NOP
  3. PRECHARGE命令
  4. 兩個自動刷新命令
  5. 配置模式寄存器
    對照時序圖操作:
    在這裏插入圖片描述
    上面出現了一些定義的時間,我們也可以在文檔中看到具體內容:
    在這裏插入圖片描述

配置模式寄存器

The mode register is used to define the specific mode of operation of the SDRAM. This definition includes the selection of a burst length, a burst type, a CAS latency, an operating mode and a write burst mode, as shown in MODE REGISTER DEFINITION.The mode register is programmed via the LOAD MODE REGISTER command and will retain the stored information until it is programmed again or the device loses power. Mode register bits M0-M2 specify the burst length, M3 specifies the type of burst (sequential or interleaved) , M4- M6 specify the CAS latency, M7 and M8 specify the operating mode, M9 specifies the WRITE burst mode, and M10 and M11 are reserved for future use.
The mode register must be loaded when all banks are idle, and the controller must wait the specified time before initiating the subsequent operation. Violating either of these requirements will result in unspecified operation.
模式寄存器用於定義SDRAM的特定操作模式。該定義包括突發長度、突發類型、CAS延遲、操作模式和寫突發模式的選擇,如模式寄存器定義所示。模式寄存器通過負載模式寄存器命令進行編程,並將保留存儲的信息,直到再次編程或設備斷電。模式寄存器位M0-M2指定突發長度,M3指定突發類型(順序或交織),M4- M6指定CAS延遲,M7和M8指定操作模式,M9指定寫突發模式,M10和M11保留供將來使用。
當所有BANK空閒時,必須加載模式寄存器,控制器必須等待指定的時間才能啓動後續操作。違反這些要求中的任何一個都會導致未指定的操作。
在這裏插入圖片描述

發佈了163 篇原創文章 · 獲贊 133 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章