CN108897499A - The kind identification method of block in a kind of flash memory - Google Patents

The kind identification method of block in a kind of flash memory Download PDF

Info

Publication number
CN108897499A
CN108897499A CN201810794564.5A CN201810794564A CN108897499A CN 108897499 A CN108897499 A CN 108897499A CN 201810794564 A CN201810794564 A CN 201810794564A CN 108897499 A CN108897499 A CN 108897499A
Authority
CN
China
Prior art keywords
type identification
block
byte
flash memory
value
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201810794564.5A
Other languages
Chinese (zh)
Inventor
杨羽涵
李庭育
黄中柱
孟涛成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Hua Cun Electronic Technology Co Ltd
Original Assignee
Jiangsu Hua Cun Electronic Technology Co Ltd
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 Jiangsu Hua Cun Electronic Technology Co Ltd filed Critical Jiangsu Hua Cun Electronic Technology Co Ltd
Priority to CN201810794564.5A priority Critical patent/CN108897499A/en
Priority to PCT/CN2018/105890 priority patent/WO2020015131A1/en
Publication of CN108897499A publication Critical patent/CN108897499A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Abstract

The invention discloses a kind of kind identification methods of block in flash memory, type identification is written in by least two bytes of the first page spare area of operating block, after solution is out-of-order, the value of the byte of write-in type identification before checking, if have two or two or more it is equal, i.e., using equal value as type identification.The type misjudgment rate of block in flash memory can be effectively reduced.

Description

The kind identification method of block in a kind of flash memory
Technical field
The present invention relates to the kind identification methods of block in flash memory technology field more particularly to flash memory.
Background technique
Flash memory is the memory device of non-deorienting, there is a three-level unit (TLC) of three bits of storage, two bits it is more Grade unit (MLC) flash memory and single stage unit (SLC) flash memory.Regardless of flash memory, require to control core through memory Piece control flash chip, memory control chip sending flash memory command (such as read instruction, write-in/programming instruction and erasing and refer to Enable) after, flash chip makes corresponding behavior and reads or be written data.When data are written, to make 0 and 1 average mark in data Cloth reduces error rate, data will be stored into flash memory after doing out-of-order operation again, therefore when reading data, need in memory space First solution is out-of-order, then output data.
Erasing instruction wipes the content of storage, content type (code, data or the behaviour of same piece of preservation in blocks Conversion table needed for making) it is identical.Block is made of page, and every page has a spare area, to store the letter other than data Breath.In order to recognize the type of block, with the first character section of every piece of first page spare area record this block type (such as storage code Block be stored in 0x01 in this position, store the blocks of data in this position and be stored in 0x02, the block for storing conversion table is stored in this position 0x03).Random ordering when due to by being written and solution when reading are out-of-order, and the number of this byte once malfunctions in the process, this block Type just will be by false judgment, to influence the accuracy of flash memory.
Summary of the invention
The purpose of the present invention is to provide a kind of kind identification methods of block in flash memory, and the type of block in flash memory is effectively reduced Misjudgment rate.
Realizing the technical solution of above-mentioned purpose is:
The kind identification method of block, writes in by least two bytes of the first page spare area of operating block in a kind of flash memory Enter type identification, after solution is out-of-order, the value of the byte of write-in type identification before checking, if having two or two or more it is equal, I.e. using equal value as type identification.
Preferably, when type identification is written, type identification adds positive integer;When checking type identification, type identification is subtracted Added positive integer before.
Preferably, by the first of the first page spare area of operating block, ith and jth byte be respectively written into type identification, Type identification+n and type identification+2n;Wherein, two different positive integers that i, j are non-1;N is positive integer;
Memory is written in the data random ordering of entire block;
Data are read after solution random ordering;
It checks by the first of the first page spare area of operating block, ith and jth byte, the value of the first byte, the i-th byte Value subtract n and the value of jth byte subtracts 2n, have in these three values two or three it is equal, i.e., using equal value as type mark Know.
The beneficial effects of the invention are as follows:The present invention creates multiple decision conditions, avoids random ordering by increasing type identification The misjudgment of type caused by mistake occurs during reconciliation is out-of-order, reduces the risk of corrupt data, and then promotes data and deposits The accuracy of storage.
Detailed description of the invention
Fig. 1 is the flow chart of the kind identification method of block in flash memory of the invention.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings.
The kind identification method of block in flash memory of the invention, by least two bytes of the first page spare area of operating block Middle write-in type identification when type identification is written, can add positive integer with type identification.After solution is out-of-order, be written before checking The value of the byte of type identification, when checking type identification, if type identification added with positive integer, type identification subtracts it before Preceding added positive integer.If have two or two or more it is equal, i.e., using equal value as type identification.
Specifically, the present embodiment, referring to Fig. 1, kind identification method of the invention, includes the following steps:
Type identification I, the value of type identification is written to by the first character section of the first page spare area of operating block in step S1 For m.0x01 is the type identification of code, and 0x02 is the type identification of data, and 0x03 is the type identification of conversion table.
Step S2, to a by i-th (any non-1 positive integer, example in select pool i=2) of the first page spare area of operating block Type identification II is written in byte, and type identification adds n (any positive integer, example in select n=5), is worth for m+5.
Step S3, to (positive integer of any non-1 and non-i selects pool j in example by the jth of the first page spare area of operating block =3) type identification III is written in a byte, and type identification adds 2n, is worth for m+10.
The data of step S4, entire block are stored in flash memory by random ordering.
Step S5, when reading, data are read by solution is out-of-order.
Step S6 checks by the first of the first page spare area of operating block, ith and jth byte, the value of the first byte, The value of i-th byte subtracts n and the value of jth byte subtracts 2n, have in these three values two or three it is equal, i.e., using equal value as Type identification.Specifically, in type identification I, type identification II -5 and type identification III -10 two or more equal values whether For 0x01,0x02 or 0x03.
Above embodiments are used for illustrative purposes only, rather than limitation of the present invention, the technology people in relation to technical field Member, without departing from the spirit and scope of the present invention, can also make various transformation or modification, therefore all equivalent Technical solution also should belong to scope of the invention, should be limited by each claim.

Claims (3)

1. the kind identification method of block in a kind of flash memory, which is characterized in that by least the two of the first page spare area of operating block Type identification is written in a byte, after solution is out-of-order, the value of the byte of write-in type identification before checking, if there is two or two It is above equal, i.e., using equal value as type identification.
2. the kind identification method of block in flash memory according to claim 1, which is characterized in that when write-in type identification, class Type mark adds positive integer;When checking type identification, type identification positive integer added before subtracting.
3. the kind identification method of block in flash memory according to claim 1, which is characterized in that including:
Type identification, type identification+n are being respectively written by the first of the first page spare area of operating block, ith and jth byte And type identification+2n;Wherein, two different positive integers that i, j are non-1;N is positive integer;
Memory is written in the data random ordering of entire block;
Data are read after solution random ordering;
It checks by the first of the first page spare area of operating block, ith and jth byte, the value of the value of the first byte, the i-th byte The value for subtracting n and jth byte subtracts 2n, have in these three values two or three it is equal, i.e., using equal value as type identification.
CN201810794564.5A 2018-07-19 2018-07-19 The kind identification method of block in a kind of flash memory Pending CN108897499A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810794564.5A CN108897499A (en) 2018-07-19 2018-07-19 The kind identification method of block in a kind of flash memory
PCT/CN2018/105890 WO2020015131A1 (en) 2018-07-19 2018-09-15 Type identification method of block in flash memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810794564.5A CN108897499A (en) 2018-07-19 2018-07-19 The kind identification method of block in a kind of flash memory

Publications (1)

Publication Number Publication Date
CN108897499A true CN108897499A (en) 2018-11-27

Family

ID=64350930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810794564.5A Pending CN108897499A (en) 2018-07-19 2018-07-19 The kind identification method of block in a kind of flash memory

Country Status (2)

Country Link
CN (1) CN108897499A (en)
WO (1) WO2020015131A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11397635B2 (en) * 2019-12-09 2022-07-26 Sandisk Technologies Llc Block quality classification at testing for non-volatile memory, and multiple bad block flags for product diversity

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556560A (en) * 2008-04-09 2009-10-14 群联电子股份有限公司 Storage device, controller and data access method thereof
CN102693760A (en) * 2011-03-24 2012-09-26 扬智科技股份有限公司 Error correction method for NAND flash memory
CN104216791A (en) * 2013-05-30 2014-12-17 上海斐讯数据通信技术有限公司 Flash stored data verifying method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO315959B1 (en) * 2002-04-16 2003-11-17 Thin Film Electronics Asa Procedures for storing data in a non-volatile memory
KR101274181B1 (en) * 2006-02-13 2013-06-14 삼성전자주식회사 Apparatus and method for managing flash memory
CN104391804B (en) * 2014-10-28 2017-11-28 陕西千山航空电子有限责任公司 A kind of NAND flash data storage methods
CN105718206B (en) * 2014-12-03 2018-08-03 中国人民解放军国防科学技术大学 The flash translation layer (FTL) and its implementation of RAID can be perceived

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556560A (en) * 2008-04-09 2009-10-14 群联电子股份有限公司 Storage device, controller and data access method thereof
CN102693760A (en) * 2011-03-24 2012-09-26 扬智科技股份有限公司 Error correction method for NAND flash memory
CN104216791A (en) * 2013-05-30 2014-12-17 上海斐讯数据通信技术有限公司 Flash stored data verifying method

Also Published As

Publication number Publication date
WO2020015131A1 (en) 2020-01-23

Similar Documents

Publication Publication Date Title
US7725646B2 (en) Method of using a flash memory for a circular buffer
CN106708754A (en) Data storage device and data maintenance method thereof
KR920005163A (en) Semiconductor memory device
CN104282342B (en) flash memory device, memory controller and control method of flash memory
KR0121800B1 (en) Memory card device
CN105518799B (en) Semiconductor storage
CN103594120A (en) Memorizer error correction method adopting reading to replace writing
CN107195329A (en) The wrong method and DRAM of storage array in DRAM are corrected in read operation
CN101796498B (en) Memory system
CN109840162A (en) Memory device and its operating method
CN108897499A (en) The kind identification method of block in a kind of flash memory
CN109086004A (en) The recognition methods of block type in a kind of flash memory
CN105538917B (en) A kind of anti-error consumable chip and control method
CN112000536A (en) Memory detection method, system and related equipment
CN106920576A (en) A kind of method and system of inspection Nand Flash mass
CN108664409A (en) bad block management method and system
CN106158031B (en) Semiconductor memory and data writing method
CN109032518A (en) The kind identification method of superblock in a kind of flash memory
CN107562655B (en) A kind of date storage method and device
CN201465572U (en) Mistake-proof read-write memory
CN107422987A (en) A kind of method and device of data storage in the nonvolatile memory
CN114203252A (en) Bad block detection method, device, equipment and storage medium of nonvolatile memory
CN102708837B (en) Brightness compensation device and brightness compensation method
CN102880561B (en) Flash memory device
CN107402887B (en) Counter in flash memory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181127

RJ01 Rejection of invention patent application after publication