TWI715095B - Methods and memory systems of parity training for a dram - Google Patents
Methods and memory systems of parity training for a dram Download PDFInfo
- Publication number
- TWI715095B TWI715095B TW108123247A TW108123247A TWI715095B TW I715095 B TWI715095 B TW I715095B TW 108123247 A TW108123247 A TW 108123247A TW 108123247 A TW108123247 A TW 108123247A TW I715095 B TWI715095 B TW I715095B
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- pin
- parity check
- dynamic random
- random access
- Prior art date
Links
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
交叉引用:本申請要求2018年7月3日遞交的,發明名稱為「ECC Parity Training Method」的美國臨時申請案62/693,495和2019年7月2日遞交的美國申請案16/459,621的優先權。上述申請的全部內容併入本發明。 Cross-reference: This application claims priority for the U.S. Provisional Application 62/693,495 filed on July 3, 2018 with the title of "ECC Parity Training Method" and the U.S. Application 16/459,621 filed on July 2, 2019 . The entire content of the aforementioned application is incorporated into the present invention.
本發明係相關於記憶體,尤指支援鏈路錯誤檢查和糾正功能的用於DRAM的同位檢查訓練方法。 The present invention relates to memory, especially a parity check training method for DRAM that supports link error checking and correction functions.
動態隨機存取記憶體(Dynamic Random Access Memory,DRAM)支援鏈路錯誤檢查和糾正(Error Checking And Correcting,ECC)功能以用於讀取(read)和寫入(write)操作來恢復(recover)資料,即使是由於傳送(transmission)或者是由於資料的存儲(電荷損失(charge loss))而引入錯誤時。當啟用(enable)鏈路ECC功能時,資料遮罩反轉(Data Mask Inversion,DMI)引腳(pin)用於從DRAM中讀取同位檢查(parity),讀取資料選通(Read Data Strobe,RDQS)引腳用於將同位檢查寫入DRAM。總之,當啟用寫入鏈路ECC(Write Link ECC)時,RDQS引腳用於同位檢查功能。 Dynamic Random Access Memory (DRAM) supports link error checking and correction (Error Checking And Correcting, ECC) functions for read and write operations to recover (recover) Data, even when errors are introduced due to transmission or storage (charge loss) of data. When the link ECC function is enabled, the Data Mask Inversion (DMI) pin is used to read parity from DRAM, and Read Data Strobe , RDQS) pin is used to write parity check into DRAM. In short, when the Write Link ECC (Write Link ECC) is enabled, the RDQS pin is used for parity checking.
為了到達與資料(DQ)引腳的資料(DQ)對齊(align)的RDQS引 腳鎖存器(latch)的RDQS以使DRAM控制器從DRAM進行讀取/向DRAM進行寫入,需要訓練(train)RDQS以使其與DQ相位對準(phase alignment)。在傳統的同位檢查訓練(parity training)中,讀取和寫入先入先出(First Input First Output,FIFO)命令可用於通過RDQS引腳從DRAM的FIFO檔(file)中讀取資料/向DRAM的FIFO檔寫入資料。具體來說,DRAM控制器使用寫入FIFO(Write FIFO)命令將資料經由RDQS引腳寫入DRAM的FIFO檔,然後利用讀取FIFO(Read FIFO)命令經由DMI引腳進行回讀。通過這種方式,DRAM控制器通過調整(adjust)RDQS時間來重複寫入和回讀,直到經由RDQS引腳傳輸(transfer)到DRAM的資料正確為止,從而完成同位檢查訓練。 In order to reach the RDQS lead aligned with the data (DQ) of the data (DQ) pin For the RDQS of the latch to enable the DRAM controller to read/write to the DRAM, the RDQS needs to be trained to make it phase alignment with the DQ. In traditional parity training (parity training), read and write First Input First Output (First Input First Output, FIFO) commands can be used to read data from/to DRAM through the RDQS pin from DRAM's FIFO file (file) Write data to the FIFO file. Specifically, the DRAM controller uses the Write FIFO (Write FIFO) command to write data to the FIFO file of the DRAM via the RDQS pin, and then uses the Read FIFO (Read FIFO) command to read back via the DMI pin. In this way, the DRAM controller repeats writing and reading by adjusting the RDQS time until the data transferred to the DRAM via the RDQS pin is correct, thereby completing the parity check training.
由此可見,傳統的同位檢查訓練方法在DRAM中需要額外的FIFO檔,而且讀取和寫入FIFO在長度上受到限制,因此訓練模式不能足夠複雜以使DRAM控制器能優化寫入/讀取同位檢查位元的鎖存點(latching point)。 It can be seen that the traditional parity check training method requires additional FIFO files in the DRAM, and the read and write FIFOs are limited in length, so the training mode cannot be complex enough to allow the DRAM controller to optimize write/read The latch point of the parity check bit.
為了解決上述問題,本發明的一個目的是提供一種支援鏈路ECC功能的用於動態隨機存取記憶體的同位檢查訓練方法。 In order to solve the above-mentioned problems, an object of the present invention is to provide a parity check training method for dynamic random access memory that supports the link ECC function.
本發明公開了一種用於動態隨機存取記憶體的同位檢查訓練方法,所述方法包括在所述動態隨機存取記憶體的寫入操作中啟用鏈路錯誤檢查和糾正功能;以及將寫入同位檢查引腳的同位檢查功能重新映射為資料反轉功能、資料替換功能或者邏輯功能,其中通過所述寫入同位檢查引腳傳輸到所述動態隨機存取記憶體的資料用於指示對資料引腳的資料進行反轉操作、邏輯操作或者替換操作。 The present invention discloses a parity check training method for dynamic random access memory. The method includes enabling link error checking and correction functions in the write operation of the dynamic random access memory; and writing The parity check function of the parity check pin is remapped to a data inversion function, a data replacement function, or a logic function, wherein the data transmitted to the dynamic random access memory through the write parity check pin is used to indicate data The pin data is reversed, logically operated or replaced.
本發明還公開了一種記憶體系統,所述記憶體系統包括動態隨機存取記憶體;以及記憶體控制器,用於在所述動態隨機存取記憶體的寫入操作中 啟用鏈路錯誤檢查和糾正功能,以及將寫入同位檢查引腳的同位檢查功能重新映射為資料反轉功能、資料替換功能或者邏輯功能,其中通過所述寫入同位檢查引腳傳輸到所述動態隨機存取記憶體的資料用於指示對資料引腳的資料進行反轉操作、邏輯操作或者替換操作。 The present invention also discloses a memory system. The memory system includes a dynamic random access memory; and a memory controller for writing in the dynamic random access memory Enable the link error check and correction function, and remap the parity check function written to the parity check pin to a data inversion function, a data replacement function, or a logic function, wherein the write parity check pin is transmitted to the The data of the dynamic random access memory is used to instruct the data pin data inversion operation, logic operation or replacement operation.
在閱讀以下優選實施例的實施方式之後,本發明的上述目的和其他目的對於所屬領域具有通常知識者而言將變得顯而易見,其中優選實施例可在各個附圖中例示。 After reading the implementation of the following preferred embodiments, the above-mentioned objects and other objects of the present invention will become apparent to those having ordinary knowledge in the art, and the preferred embodiments can be illustrated in the respective drawings.
10:記憶體系統 10: Memory system
110:記憶體控制器 110: Memory Controller
120:DRAM 120: DRAM
第1圖是根據本發明實施例的記憶體系統(memory system)的示意圖。 Figure 1 is a schematic diagram of a memory system according to an embodiment of the invention.
第2圖是根據本發明實施例的DRAM的示意圖。 Figure 2 is a schematic diagram of a DRAM according to an embodiment of the present invention.
第3圖是根據本發明實施例的DRAM的寫入/讀取操作的示意圖。 Fig. 3 is a schematic diagram of a DRAM write/read operation according to an embodiment of the present invention.
請參考第1圖,第1圖描述了根據本發明實施例的記憶體系統10的示意圖。記憶體系統10可包括記憶體控制器(memory controller)110和DRAM 120。
記憶體控制器110和DRAM 120可經由資料匯流排(data bus)進行連接以傳送/接收命令(Command,CMD)訊號、不同的時鐘(Clock,CLK)訊號、資料匯流排反轉(Data Bus Inversion,DBI)訊號、資料DQ[7:0]、DMI訊號和RDQS訊號。記憶體控制器110可經由相應的引腳(諸如DQ引腳、DMI引腳和RDQS引腳)與DRAM 120執行寫入/讀取操作,來向DRAM 120寫入/從DRAM 120讀取資料位元DQ0-DQ7、DMI和RDQS。DRAM 120可支援鏈路ECC功能,並且當在寫入操作中啟用鏈路ECC功能時,可通過寫入同位檢查引腳(write parity pin)(諸如
RDQS引腳)來執行寫入同位檢查引腳訓練操作。
Please refer to FIG. 1, which illustrates a schematic diagram of a
當在寫入操作中啟用鏈路ECC功能時,RDQS引腳可用於向DRAM
120寫入同位檢查位元。然而,通過RDQS引腳從記憶體控制器110傳輸到DRAM 120的資料(同位檢查位元)未寫入DRAM 120中,以致記憶體控制器110無法在讀取操作中經由DMI引腳從DRAM 120進行回讀。因此,記憶體控制器110無法訓練寫入同位檢查引腳(比如RDQS引腳),這可能會影響寫入/讀取操作。
When the link ECC function is enabled in the write operation, the RDQS pin can be used to
120 write parity check bit. However, the data (parity check bit) transferred from the
本發明旨在提供當RDQS引腳用於寫入同位檢查操作時的同位檢查訓練方法。具體來說,在寫入同位檢查引腳訓練操作中,RDQS引腳不用於寫入同位檢查操作,而是用於資料反轉(data inversion)功能、資料替換功能(data replacing function)或者邏輯功能(logical function)。 The present invention aims to provide a parity check training method when the RDQS pin is used for writing parity check operations. Specifically, in the write parity check pin training operation, the RDQS pin is not used for the write parity check operation, but is used for the data inversion function, data replacing function or logic function. (logical function).
總而言之,寫入同位檢查引腳訓練操作可通過將RDQS引腳的同位檢查功能重新映射(remap)為以下功能來執行:資料位元DQ[7:0]反轉操作(即DMI/DBI);替換資料位元DQ[7:0]中之一;對部分或全部資料位元DQ[7:0]的其他邏輯操作。 In summary, the write parity check pin training operation can be performed by remapping the parity check function of the RDQS pin into the following functions: data bit DQ[7:0] inversion operation (ie DMI/DBI); Replace one of the data bits DQ[7:0]; other logical operations on part or all of the data bits DQ[7:0].
更具體地,通過RDQS引腳傳輸到DRAM 120的資料(稱為同位檢查位元)可用於指示是否反轉DQ引腳的資料,用於指示是否對DQ引腳的資料執行預定的邏輯操作(比如與(AND)、或(OR)、非(NOT)、與非(NAND)、或非(NOR)、異或(XOR)或者同或(XNOR)運算),或者用於指示是否利用通過RDQS引腳傳輸到DRAM 120的資料來替換DQ引腳的資料。
More specifically, the data (called parity check bit) transmitted to the
參考第2圖,第2圖描述了根據本發明實施例的DRAM的操作。 With reference to Figure 2, Figure 2 describes the operation of the DRAM according to the embodiment of the present invention.
在RDQS引腳訓練中,通過RDQS引腳傳輸到DRAM的資料不被視為ECC同位檢查,而是被重新映射為對資料位元DQ[7:0]的DMI操作。如第2圖所示,資料位元DQ[7:0]、RDQS和DMI可傳送至DRAM的「解序列化(de-serialize)」 模組。請注意,通過RDQS引腳傳輸至「解序列化」模組的資料可替換DMI引腳的資料。因此,資料位元DQ[7:0]和DMI可傳送至「DBI解碼」模組以向DRAM寫入已反轉的資料位元DQ[7:0]。請注意,在其他實施例中,只要通過RDQS引腳傳輸至DRAM的資料(同位檢查位元)可以通過從DRAM中回讀資料位元DQ[7:0]而觀察(observe)到,則通過RDQS引腳傳輸至DRAM的資料可重新映射為對資料位元DQ[7:0]的替換操作或者任何邏輯操作。 In the RDQS pin training, the data transmitted to the DRAM through the RDQS pin is not regarded as an ECC parity check, but is remapped as a DMI operation on the data bit DQ[7:0]. As shown in Figure 2, the data bits DQ[7:0], RDQS and DMI can be sent to the "de-serialize" of DRAM Module. Please note that the data transmitted to the "deserialization" module via the RDQS pin can replace the data on the DMI pin. Therefore, the data bits DQ[7:0] and DMI can be sent to the "DBI Decoding" module to write the inverted data bits DQ[7:0] to the DRAM. Please note that in other embodiments, as long as the data (parity check bit) transferred to the DRAM through the RDQS pin can be observed (observe) by reading back the data bit DQ[7:0] from the DRAM, then pass The data transferred from the RDQS pin to the DRAM can be remapped as a replacement operation for the data bit DQ[7:0] or any logical operation.
在一實施例中,在RDQS訓練中,RDQS引腳可用於對資料位元DQ[7:0]的DMI操作。可參考第3圖。如第3圖所示,記憶體控制器110可使用DQ引腳DQ0-DQ7來向DRAM 120寫入資料位元(以下稱為寫入模式(WRITE pattern))。同時,記憶體控制器110可利用RDQS引腳向DRAM 120寫入同位檢查位元。因為同位檢查位元可視為對DQ引腳DQ0-DQ7的已寫入的資料的DMI操作,所以第一資料節拍(data beat)「0」中的DQ引腳DQ0-DQ7的寫入模式「0」、「0」、「0」、「0」、「0」、「0」、「0」、「0」連同第一資料節拍「0」中的RDQS引腳的同位檢查位元「1」以「1」、「1」、「1」、「1」、「1」、「1」、「1」、「1」寫入DRAM。如第3圖所示,當記憶體控制器110從DRAM120中回讀已寫入的資料時,由於已寫入的資料和已讀取的資料是反轉的,所以記憶體控制器110知道傳輸至DRAM 120的同位檢查位元為「1」。另外,第二資料節拍「1」中的DQ引腳DQ0-DQ7的寫入模式「1」、「0」、「0」、「0」、「0」、「0」、「0」、「0」連同第二資料節拍「1」中的RDQS引腳的同位檢查位元「0」以「1」、「0」、「0」、「0」、「0」、「0」、「0」、「0」寫入DRAM 120。因此,當記憶體控制器110從DRAM 120回讀資料時,由於已寫入的資料和已讀取的資料是相同的,所以記憶體控制器110知道傳輸至DRAM 120的同位檢查位元為「0」。由此可見,RDQS引腳可重新映射為DQ匯流排反轉功能,因此RDQS引腳的寫入模式可以通過對比(compare)已寫入的資料位
元DQ[7:0]和已讀取的資料位元DQ[7:0]來進行回讀,以便實現RDQS引腳訓練。
在該實施例中,RDQS引腳的寫入模式可以經由DQ引腳或者DMI引腳進行回讀。也可以說,可通過資料引腳或者DMI引腳來對通過寫入同位檢查引腳傳輸到DRAM的資料進行回讀。請注意,無論RDQS引腳是否重新映射為其他功能/操作,DQ引腳或者DMI引腳在讀取操作期間可以保持相同的功能。
In one embodiment, during RDQS training, the RDQS pin can be used for DMI operations on data bits DQ[7:0]. Refer to Figure 3. As shown in FIG. 3, the
在其他實施例中,在RDQS訓練過程中,RDQS引腳可用於資料位元DQ[7:0]的資料替換操作或者邏輯操作。例如,資料節拍「0-15」中RDQS引腳的寫入模式「1010101011010101」可用於替換資料節拍「0-15」中DQ引腳DQ0的寫入模式「0111111110000000」。或者,資料節拍「0-15」中RDQS引腳的寫入模式「1010101011010101」可表示為資料節拍「0-15」中DQ引腳DQ0的寫入模式「0111111110000000」的預定的邏輯運算(比如AND、OR、NOT、NAND、NOR、XOR或XNOR運算)。 In other embodiments, during the RDQS training process, the RDQS pin can be used for data replacement operations or logic operations of data bits DQ[7:0]. For example, the write mode "1010101011010101" of the RDQS pin in the data beat "0-15" can be used to replace the write mode "0111111110000000" of the DQ pin DQ0 in the data beat "0-15". Or, the write mode "1010101011010101" of the RDQS pin in the data beat "0-15" can be expressed as the predetermined logic operation (such as AND , OR, NOT, NAND, NOR, XOR or XNOR operation).
利用這種方式,記憶體控制器110能夠向DRAM 120寫入/從DRAM 120讀取RDQS引腳的同位檢查位元,以便訓練RDQS引腳。另外,RDQS引腳的寫入模式可以根據系統要求而複雜,可不受FIFO檔尺寸的限制。此外,DRAM控制器110可以對DQ/DMI引腳採用相同的訓練思路(即功能/操作的重新映射)。
In this way, the
上述處理的步驟(包括所建議的步驟)可以通過硬體、韌體(firmware)的方式來實現,其中韌體可稱為硬體設備以及電腦指令和資料的組合,其中電腦指令和資料可作為唯讀軟體駐留(reside)在硬體設備或電子系統上。示範性的硬體可以包括稱為微電路(microcircuit)、微晶片(microchip)或矽晶片(silicon chip)的類比、數位和混合電路。示範性的電子系統可以包括系統單晶片(System On Chip,SOC)、系統級封裝(System in Package,SiP)、模組上電腦(Computer On Module,COM)。 The above processing steps (including the recommended steps) can be implemented by hardware and firmware. The firmware can be referred to as a combination of hardware devices and computer instructions and data. Computer instructions and data can be used as The read-only software resides on the hardware device or electronic system. Exemplary hardware may include analog, digital, and hybrid circuits called microcircuits, microchips, or silicon chips. Exemplary electronic systems may include System On Chip (SOC), System in Package (SiP), and Computer On Module (COM).
總之,本發明公開了一種通過將RDQS引腳的ECC同位檢查功能重新 映射為資料反轉功能、邏輯運算功能或者資料替換功能來執行同位檢查訓練的方法。因此,RDQS引腳上攜帶的資料可以連同資料位元DQ[7:0]一起寫入DRAM,以便DRAM控制器可以從DRAM中回讀同位檢查位元以訓練RDQS引腳。 In a word, the present invention discloses a method of re-setting the ECC parity check function of the RDQS pin It is a method of performing parity check training by mapping data inversion function, logic operation function or data replacement function. Therefore, the data carried on the RDQS pin can be written into the DRAM along with the data bits DQ[7:0] so that the DRAM controller can read back the parity check bits from the DRAM to train the RDQS pin.
所屬領域具有通常知識者容易看出,在保持本發明的教導的同時,可以對上述設備和方法進行多種修改和變更。相應地,以上公開的內容應被解釋為由所附申請專利範圍的界限來限定。以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 Those with ordinary knowledge in the field can easily see that while maintaining the teachings of the present invention, various modifications and changes can be made to the above-mentioned equipment and methods. Accordingly, the content disclosed above should be construed as being limited by the limits of the scope of the appended application. The foregoing descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made in accordance with the scope of the patent application of the present invention shall fall within the scope of the present invention.
Claims (10)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201862693495P | 2018-07-03 | 2018-07-03 | |
US62/693,495 | 2018-07-03 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202018504A TW202018504A (en) | 2020-05-16 |
TWI715095B true TWI715095B (en) | 2021-01-01 |
Family
ID=71895763
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108123247A TWI715095B (en) | 2018-07-03 | 2019-07-02 | Methods and memory systems of parity training for a dram |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI715095B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090222707A1 (en) * | 2008-02-29 | 2009-09-03 | Hynix Semiconductor Inc. | Semiconductor memory device having capability of stable initial operation |
TWI363271B (en) * | 2004-04-27 | 2012-05-01 | Nvidia Corp | Data mask as write-training feedback flag |
CN102959639A (en) * | 2010-06-28 | 2013-03-06 | 英特尔公司 | Method and apparatus for training memory signal via error signal of memory |
TW201742065A (en) * | 2016-05-25 | 2017-12-01 | 聯發科技股份有限公司 | Memory module, memory controller and the corresponding controlling method for both |
CN107767919A (en) * | 2016-08-17 | 2018-03-06 | 三星电子株式会社 | Semiconductor memory devices including its accumulator system and the method for operating it |
-
2019
- 2019-07-02 TW TW108123247A patent/TWI715095B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI363271B (en) * | 2004-04-27 | 2012-05-01 | Nvidia Corp | Data mask as write-training feedback flag |
US20090222707A1 (en) * | 2008-02-29 | 2009-09-03 | Hynix Semiconductor Inc. | Semiconductor memory device having capability of stable initial operation |
CN102959639A (en) * | 2010-06-28 | 2013-03-06 | 英特尔公司 | Method and apparatus for training memory signal via error signal of memory |
TW201742065A (en) * | 2016-05-25 | 2017-12-01 | 聯發科技股份有限公司 | Memory module, memory controller and the corresponding controlling method for both |
CN107767919A (en) * | 2016-08-17 | 2018-03-06 | 三星电子株式会社 | Semiconductor memory devices including its accumulator system and the method for operating it |
Also Published As
Publication number | Publication date |
---|---|
TW202018504A (en) | 2020-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10666470B2 (en) | Decision feedback equalizer | |
US8832391B2 (en) | Semiconductor device, controller associated therewith, system including the same, and methods of operation | |
KR102204391B1 (en) | Memory device having sharable ECC (Error Correction Code) cell array | |
US8300482B2 (en) | Data transfer circuit and semiconductor memory device including the same | |
US10204001B2 (en) | Data I/O circuits and semiconductor systems including the same | |
TWI676991B (en) | Methods for testing a storage unit and apparatuses using the same | |
US10783937B2 (en) | Voltage reference computations for memory decision feedback equalizers | |
US10491430B2 (en) | Memory decision feedback equalizer testing | |
US12040035B2 (en) | Buffer circuit with adaptive repair capability | |
US10810078B2 (en) | Method of parity training for a DRAM supporting a link error checking and correcting functionality | |
US11275650B2 (en) | Systems and methods for performing a write pattern in memory devices | |
TWI715095B (en) | Methods and memory systems of parity training for a dram | |
US11574661B1 (en) | Shared command shifter systems and methods | |
US10552277B2 (en) | Electronic devices | |
US11996162B2 (en) | Synchronous input buffer enable for DFE operation | |
US20230124182A1 (en) | Systems and methods for centralized address capture circuitry | |
CN114446376A (en) | Memory device and memory system |