WO2020015123A1 - 一种用于动态随机存取存储器使用raid做纠错校验的方法 - Google Patents

一种用于动态随机存取存储器使用raid做纠错校验的方法 Download PDF

Info

Publication number
WO2020015123A1
WO2020015123A1 PCT/CN2018/105854 CN2018105854W WO2020015123A1 WO 2020015123 A1 WO2020015123 A1 WO 2020015123A1 CN 2018105854 W CN2018105854 W CN 2018105854W WO 2020015123 A1 WO2020015123 A1 WO 2020015123A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory
data
control unit
memory control
random
Prior art date
Application number
PCT/CN2018/105854
Other languages
English (en)
French (fr)
Inventor
陈育鸣
李庭育
洪振洲
魏智汎
Original Assignee
江苏华存电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 江苏华存电子科技有限公司 filed Critical 江苏华存电子科技有限公司
Publication of WO2020015123A1 publication Critical patent/WO2020015123A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1044Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices with specific ECC/EDC distribution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1076Parity data used in redundant arrays of independent storages, e.g. in RAID systems

Definitions

  • the invention relates to the technical field of a method for achieving error correction check by using an exclusive-OR operation of a random memory, and in particular to a method for dynamic random access memory using RAID for error correction check.
  • Dynamic memory enables users to specify the amount of RAM used by the virtual operating system startup and maximize the system memory available to the platform.
  • the current memory control systems mostly use random data protection with Hamming code.
  • the ratio of the data bit width to the parity bit width is roughly 2: 1/4: 1/8: 1/16: 1/32: 1.
  • the check digit using the current Hamming code method will consume a large amount of memory space. Therefore, an improved technology is urgently needed to solve the existing problems in the existing technology. The problem.
  • the purpose of the present invention is to provide a method for dynamic random access memory using RAID for error correction check.
  • the use of XOR operation to improve the traditional use of Hamming codes requires a large amount of additional storage space, or causes a large amount of block data. Waste of necessary memory storage space.
  • the invention uses XOR operation to protect a large amount of block data.
  • the advantage is that the protection of block data is relatively simple compared with other algebraic algorithms ECC. Compared with the traditional random memory protection method, for a large number of block data Doing data protection saves the space requirement of a large number of parity bits, while still retaining the ability of data error correction, and at the same time can save a lot of waste of memory space to solve the problems raised in the above background technology.
  • a method for dynamic random access memory using RAID for error correction check including the following steps:
  • Step 1 The internal random memory control unit of the main control does not configure additional check digit storage memory components, but embeds or arranges the check digits together into the storage space of the common data memory components;
  • Step 2 The parity bit controlled by the random memory control unit is generated and written into the random memory
  • Step 3 The random memory control unit inside the main control generates a check bit for checking by performing an exclusive-OR operation on the data in the memory control physical layer;
  • Step 4 The random memory control unit controls and reads data from the random memory. When reading, the user data and parity bit data are read at the same time, and the user data verification operation is performed in the verification module.
  • the main control in step 1 includes a memory control unit and a memory control physical layer.
  • the memory control unit is provided with a writing unit and a reading unit, and the writing unit generates data to be transmitted to the memory control physical layer, and the reading unit reads data from the memory control physical layer.
  • FIG. 1 is a schematic diagram of a random memory control unit inside the main control that is not configured with an additional parity storage memory component.
  • FIG. 2 is a schematic diagram of a process of generating and writing a parity bit controlled by a random memory control unit without a dedicated parity bit storage component configured.
  • FIG. 3 is a schematic diagram of a process of reading data and verifying data from a random memory controlled by a random memory control unit without a dedicated parity storage component configured.
  • FIG. 4 is a schematic diagram of an XOR operation operation of generating and reading a check bit.
  • FIG. 5 is a schematic diagram of a structure of a random memory control unit inside the main control.
  • FIG. 6 is a schematic diagram of configuring an additional parity storage memory component for the random memory control unit inside the main control.
  • FIG. 7 is a flow chart illustrating the process of generating and writing the parity bit controlled by the random memory control unit by configuring a dedicated parity bit storage component.
  • FIG. 8 is a schematic diagram of a process for configuring a dedicated parity bit storage component and reading and verifying data from the random memory controlled by the random memory control unit.
  • the present invention provides a technical solution: a method for dynamic random access memory using RAID for error correction checking, including the following steps:
  • Step 1 The internal random memory control unit of the main control does not configure additional check digit storage memory components, but embeds or arranges the check digits together into the storage space of the common data memory components;
  • Step 2 The parity bit controlled by the random memory control unit is generated and written into the random memory
  • Step 3 The random memory control unit inside the main control generates a check bit for checking by performing an exclusive-OR operation on the data in the memory control physical layer;
  • Step 4 The random memory control unit controls and reads data from the random memory. When reading, the user data and parity bit data are read at the same time, and the user data verification operation is performed in the verification module.
  • the main control internally includes a memory control unit and a memory control physical layer.
  • the memory control unit is provided with a writing unit and a reading unit.
  • the writing unit generates data and transmits it to the memory control physical layer.
  • the unit reads data from the memory control physical layer.
  • the internal random memory control unit of the main control is configured with an additional parity bit storage memory component.
  • the parity bit controlled by the random memory control unit is generated and written into random memory. Control the reading of data and verification from random memory. This method will take a lot of check digits, which will consume a lot of memory space.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Detection And Correction Of Errors (AREA)

Abstract

一种用于动态随机存取存储器使用RAID做纠错校验的方法,包括以下步骤:主控内部的随机内存控制单元,不配置额外的校验位储存用内存组件,随机内存控制单元所控制的校验位产生及写入随机内存;主控内部的随机内存控制单元在内存控制物理层通过对数据做异或运算产生校验用的校验位;随机内存控制单元控制并从随机内存中读出资料,使用异或运算对大量块状数据做数据保护,其优点是对于块数据的保护与其他代数算法ECC比较起来控制逻辑设计相对简单,与传统随机内存保护方式相比,对于大量块状数据做数据保护更是省去大量校验位的空间需求,同时仍保有数据纠错的能力,并可以节省大量的内存空间。

Description

一种用于动态随机存取存储器使用RAID做纠错校验的方法 技术领域
本发明涉及随机内存使用异或运算达成纠错校验的方法技术领域,具体为一种用于动态随机存取存储器使用RAID做纠错校验的方法。
背景技术
动态内存(Dynamic Memory),使用户能够指定虚拟操作系统启动的RAM容量,并将平台可用的系统内存最大化。
现行内存控制系统多以汉明码方式做随机数据保护,其数据位宽与校验位宽的比例大致为2:1/4:1/8:1/16:1/32:1。但对于块数据的保护(512B/1KB/2KB/4KB…),使用现行汉明码方式的校验位会消耗大量的内存空间,因此,亟待一种改进的技术来解决现有技术中所存在的这一问题。
发明内容
本发明的目的在于提供一种用于动态随机存取存储器使用RAID做纠错校验的方法,使用异或运算以改善传统使用汉明码需要大量额外储存空间,或是对于大量块状数据造成不必要的内存储存空间浪费。本发明使用异或运算对于大量块状数据做数据保护,其优点是对于块数据的保护与其他代数算法ECC比较起来控制逻辑设计相对简单,与传统随机内存保护方式相比,对于大量块状数据做数据保护更是省去大量校验位的空间需求,同时仍保有数据纠错的能力,同时可以节省大量的内存空间浪费,以解决上述背景技术中提出的问题。
为实现上述目的,本发明提供如下技术方案:一种用于动态随机存取存储器使用RAID做纠错校验的方法,包括以下步骤:
步骤一:主控内部的随机内存控制单元,不配置额外的校验位储存用内存组件,而将校验位一同内嵌或编排储存至普通数据用内存组件的储存空间;
步骤二:随机内存控制单元所控制的校验位产生与写入随机内存;
步骤三:主控内部的随机内存控制单元在内存控制物理层通过对数据数据做异或运算产生校验用的校验位;
步骤四:随机内存控制单元所控制并从随机内存中读出资料,读取时,同时读出用户数据与校验位数据,于校验模块内进行用户数据校验运算。
优选的,步骤一中的主控内部包括内存控制单元及内存控制物理层。
优选的,内存控制单元内部设置有写入单元和读取单元,所述写入单元产生数据传输至内存控制物理层内,再由读取单元从内存控制物理层内读出资料。
与现有技术相比,本发明的有益效果是:
使用异或运算对于大量块状数据做数据保护,其优点是对于块数据的保护与其他代数算法ECC比较起来控制逻辑设计相对简单,与传统随机内存保护方式相比,对于大量块状数据做数据保护更是省去大量校验位的空间需求,同时仍保有数据纠错的能力,同时可以节省大 量的内存空间浪费。
附图说明
图1为主控内部的随机内存控制单元不配置额外的校验位储存用内存组件的示意图。
图2为无配置专用校验位储存组件,随机内存控制单元所控制的校验位产生与写入随机内存的流程示意图。
图3为无配置专用校验位储存组件,随机内存控制单元所控制从随机内存读出资料与校验的流程示意图。
图4为校验位产生与读取校验单元的异或运算操作流程示意图。
图5为主控内部的随机内存控制单元结构示意图。
图6为主控内部的随机内存控制单元配置额外的校验位储存用内存组件的示意图。
图7为配置专用校验位储存组件,随机内存控制单元所控制的校验位产生与写入随机内存的流程示意图。
图8为配置专用校验位储存组件,随机内存控制单元所控制从随机内存读出资料与校验的流程示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1-4,本发明提供一种技术方案:一种用于动态随机存取存储器使用RAID做纠错校验的方法,包括以下步骤:
步骤一:主控内部的随机内存控制单元,不配置额外的校验位储存用内存组件,而将校验位一同内嵌或编排储存至普通数据用内存组件的储存空间;
步骤二:随机内存控制单元所控制的校验位产生与写入随机内存;
步骤三:主控内部的随机内存控制单元在内存控制物理层通过对数据数据做异或运算产生校验用的校验位;
步骤四:随机内存控制单元所控制并从随机内存中读出资料,读取时,同时读出用户数据与校验位数据,于校验模块内进行用户数据校验运算。
如图5所示,主控内部包括内存控制单元及内存控制物理层,内存控制单元内部设置有写入单元和读取单元,写入单元产生数据传输至内存控制物理层内,再由读取单元从内存控制物理层内读出资料。
如图6-8所示,主控内部的随机内存控制单元,配置额外的校验位储存用内存组件,随机内存控制单元所控制的校验位产生与写入随机内存,随机内存控制单元所控制从随机内存读出资料与校验,该方法将占用大量的校验位,校验位会消耗大量的内存空间。
尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权 利要求及其等同物限定。

Claims (3)

  1. 一种用于动态随机存取存储器使用RAID做纠错校验的方法,其特征在于:包括以下步骤:
    步骤一:主控内部的随机内存控制单元,不配置额外的校验位储存用内存组件,而将校验位一同内嵌或编排储存至普通数据用内存组件的储存空间;
    步骤二:随机内存控制单元所控制的校验位产生与写入随机内存;
    步骤三:主控内部的随机内存控制单元在内存控制物理层通过对数据数据做异或运算产生校验用的校验位;
    步骤四:随机内存控制单元所控制并从随机内存中读出资料,读取时,同时读出用户数据与校验位数据,于校验模块内进行用户数据校验运算。
  2. 根据权利要求1所述的一种用于动态随机存取存储器使用RAID做纠错校验的方法,其特征在于:所述步骤一中的主控内部包括内存控制单元及内存控制物理层。
  3. 根据权利要求2所述的一种用于动态随机存取存储器使用RAID做纠错校验的方法,其特征在于:所述内存控制单元内部设置有写入单元和读取单元,所述写入单元产生数据传输至内存控制物理层内,再由读取单元从内存控制物理层内读出资料。
PCT/CN2018/105854 2018-07-20 2018-09-14 一种用于动态随机存取存储器使用raid做纠错校验的方法 WO2020015123A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810806778.XA CN109189603A (zh) 2018-07-20 2018-07-20 一种用于动态随机存取存储器使用raid做纠错校验的方法
CN201810806778.X 2018-07-20

Publications (1)

Publication Number Publication Date
WO2020015123A1 true WO2020015123A1 (zh) 2020-01-23

Family

ID=64936963

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/105854 WO2020015123A1 (zh) 2018-07-20 2018-09-14 一种用于动态随机存取存储器使用raid做纠错校验的方法

Country Status (2)

Country Link
CN (1) CN109189603A (zh)
WO (1) WO2020015123A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114337685B (zh) * 2022-03-10 2022-05-13 北京得瑞领新科技有限公司 Raid的迭代纠错方法、装置、存储介质及ssd设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826368A (zh) * 2009-04-08 2010-09-08 深圳市朗科科技股份有限公司 数据扫描方法和扫描装置
CN103544082A (zh) * 2013-10-28 2014-01-29 公安部第三研究所 基于闪存芯片实现存储设备数据恢复的方法
CN103744744A (zh) * 2014-02-08 2014-04-23 威盛电子股份有限公司 数据储存装置以及易失性存储器的数据校验方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021035A (zh) * 2016-05-25 2016-10-12 浪潮电子信息产业股份有限公司 一种实现在内存颗粒进行故障校验以增强模组条稳定性的方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826368A (zh) * 2009-04-08 2010-09-08 深圳市朗科科技股份有限公司 数据扫描方法和扫描装置
CN103544082A (zh) * 2013-10-28 2014-01-29 公安部第三研究所 基于闪存芯片实现存储设备数据恢复的方法
CN103744744A (zh) * 2014-02-08 2014-04-23 威盛电子股份有限公司 数据储存装置以及易失性存储器的数据校验方法

Also Published As

Publication number Publication date
CN109189603A (zh) 2019-01-11

Similar Documents

Publication Publication Date Title
US9411405B2 (en) Method for reducing power consumption in solid-state storage device
US8726140B2 (en) Dummy data padding and error code correcting memory controller, data processing method thereof, and memory system including the same
TWI409821B (zh) 解碼方法、編碼方法及啟動控制系統
TWI444825B (zh) 記憶體儲存裝置、記憶體控制器與資料寫入方法
US20070268905A1 (en) Non-volatile memory error correction system and method
US8990655B2 (en) Techniques associated with error correction for encoded data
US20140089561A1 (en) Techniques Associated with Protecting System Critical Data Written to Non-Volatile Memory
TWI443517B (zh) 記憶體儲存裝置及其記憶體控制器與密碼驗證方法
TW201545167A (zh) 在非揮發性記憶體中處理錯誤更正碼的方法及其非揮發性儲存裝置
US7689895B2 (en) On-the fly error checking and correction CODEC system and method for supporting non-volatile memory
US11182240B2 (en) Techniques to improve error correction using an XOR rebuild scheme of multiple codewords and prevent miscorrection from read reference voltage shifts
US8250435B2 (en) Memory error detection and/or correction
US20180276069A1 (en) Memory controller, memory system, and control method
CN103594120A (zh) 以读代写的存储器纠错方法
CN101634938A (zh) 固态硬盘的数据迁移方法、数据迁移装置及固态硬盘
CN104991833A (zh) 一种错误检测方法及电子设备
CN106502590A (zh) 一种固态硬盘ssd存储系统及方法
US20170004034A1 (en) Systems and methods for providing error code detection using non-power-of-two flash cell mapping
WO2020015123A1 (zh) 一种用于动态随机存取存储器使用raid做纠错校验的方法
CN107153661A (zh) 一种基于hdfs系统的数据的存储、读取方法及其装置
US20110004817A1 (en) Crc management method performed in sata interface and data storage device using crc management method
TW201524135A (zh) 解碼方法、記憶體儲存裝置與記憶體控制電路單元
CN104182292A (zh) 一种数据存储方法及装置
CN102063342A (zh) 一种闪存存储设备数据的管理方法及系统
WO2020015122A1 (zh) 一种随机内存使用ecc运算达成块资料纠错校验的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18927051

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18927051

Country of ref document: EP

Kind code of ref document: A1