CN109086004A - 一种闪存中块类型的识别方法 - Google Patents

一种闪存中块类型的识别方法 Download PDF

Info

Publication number
CN109086004A
CN109086004A CN201810794563.0A CN201810794563A CN109086004A CN 109086004 A CN109086004 A CN 109086004A CN 201810794563 A CN201810794563 A CN 201810794563A CN 109086004 A CN109086004 A CN 109086004A
Authority
CN
China
Prior art keywords
block
flash memory
type
type identification
spare area
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
CN201810794563.0A
Other languages
English (en)
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 CN201810794563.0A priority Critical patent/CN109086004A/zh
Priority to PCT/CN2018/105881 priority patent/WO2020015128A1/zh
Publication of CN109086004A publication Critical patent/CN109086004A/zh
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/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Read Only Memory (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种闪存中块类型的识别方法,包括:在被操作块的第一页备用区的一个字节中写入类型标识;整个块内除第一页备用区的写入类型标识的字节以外的数据被乱序存入闪存;读取时,整个块内除第一页备用区的写入类型标识的字节以外的数据被解乱序读出;查看第一页备用区写入类型标识的字节的类型标识,判断块的类型。能有效降低闪存内块的类型判断错误率。

Description

一种闪存中块类型的识别方法
技术领域
本发明涉及闪存技术领域,尤其涉及闪存中块的类型识别方法。
背景技术
闪存为非消失性的存储器装置,有存储三个比特的三级单元(TLC),两个比特的多级单元(MLC)闪存以及一个单级单元(SLC)闪存。不管何种闪存,都需要透过存储器控制芯片控制闪存芯片,存储器控制芯片发出闪存指令(例如读取指令、写入/编程指令和擦除指令)后,闪存芯片做出对应的行为读取或写入数据。写入数据时,为使数据中的0和1平均分布在存储空间内,降低出错率,数据将做乱序操作后再被存入闪存,因此读取数据时,需要先解乱序,再输出数据。
擦除指令以块为单位擦除存储的内容,同一个块保存的内容类型(代码、数据或操作所需的转换表)相同。块是由页组成的,每一页都有一个备用区域,来存放数据以外的信息。为了辨识块的类型,用每块第一页备用区的第一个字节记录此块的类型(例如存放代码的块在此位置存入0x01,存放数据的块在此位置存入0x02,存放转换表的块在此位置存入0x03)。由于经过写入时的乱序和读取时的解乱序,这一字节的数一旦在过程中出错,此块的类型就将被错误判断,从而影响闪存的正确率。
发明内容
本发明的目的在于提供一种闪存中块类型的识别方法,有效降低闪存内块的类型判断错误率。
实现上述目的的技术方案是:
一种闪存中块类型的识别方法,包括:
在被操作块的第一页备用区的一个字节中写入类型标识;
整个块内除第一页备用区的写入类型标识的字节以外的数据被乱序存入闪存;
读取时,整个块内除第一页备用区的写入类型标识的字节以外的数据被解乱序读出;
查看第一页备用区写入类型标识的字节的类型标识,判断块的类型。
优选的,在被操作块的第一页备用区的第一个字节中写入类型标识。
本发明的有益效果是:本发明通过将类型标识保护在乱序和解乱序过程之外,避免乱序和解乱序过程中发生错误导致类型标识发生改变而引起的判断错误,减小数据出错的风险,进而提升数据存储的准确性。
附图说明
图1是本发明的闪存中块类型的识别方法的流程图。
具体实施方式
下面将结合附图对本发明作进一步说明。
请参阅图1,本发明的闪存中块类型的识别方法,包括下列步骤:
步骤S1,在被操作块的第一页备用区的一个字节中写入类型标识。0x01为代码的类型标识,0x02为数据的类型标识,0x03为转换表的类型标识。
步骤S2,整个块内除第一页备用区的写入类型标识的字节(本实施例中,为第一字节)以外的数据被乱序存入闪存。
步骤S3,读取时,整个块内除第一页备用区的第一字节以外的数据被解乱序读出。
步骤S4,查看第一页备用区的第一字节的类型标识,判断块的类型。具体地,查看类型标识是否为0x01、0x02或0x03。
以上实施例仅供说明本发明之用,而非对本发明的限制,有关技术领域的技术人员,在不脱离本发明的精神和范围的情况下,还可以作出各种变换或变型,因此所有等同的技术方案也应该属于本发明的范畴,应由各权利要求所限定。

Claims (2)

1.一种闪存中块类型的识别方法,其特征在于,包括:
在被操作块的第一页备用区的一个字节中写入类型标识;
整个块内除第一页备用区的写入类型标识的字节以外的数据被乱序存入闪存;
读取时,整个块内除第一页备用区的写入类型标识的字节以外的数据被解乱序读出;
查看第一页备用区写入类型标识的字节的类型标识,判断块的类型。
2.根据权利要求1所述的闪存中块类型的识别方法,其特征在于,在被操作块的第一页备用区的第一个字节中写入类型标识。
CN201810794563.0A 2018-07-19 2018-07-19 一种闪存中块类型的识别方法 Pending CN109086004A (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810794563.0A CN109086004A (zh) 2018-07-19 2018-07-19 一种闪存中块类型的识别方法
PCT/CN2018/105881 WO2020015128A1 (zh) 2018-07-19 2018-09-15 一种闪存中块类型的识别方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810794563.0A CN109086004A (zh) 2018-07-19 2018-07-19 一种闪存中块类型的识别方法

Publications (1)

Publication Number Publication Date
CN109086004A true CN109086004A (zh) 2018-12-25

Family

ID=64837909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810794563.0A Pending CN109086004A (zh) 2018-07-19 2018-07-19 一种闪存中块类型的识别方法

Country Status (2)

Country Link
CN (1) CN109086004A (zh)
WO (1) WO2020015128A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380171A (zh) * 2020-12-01 2021-02-19 厦门市美亚柏科信息股份有限公司 一种yaffs文件系统oob识别方法、终端设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955387B (zh) * 2019-10-25 2023-10-24 合肥沛睿微电子股份有限公司 自适应识别闪存类型方法及计算机可读取存储介质及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1285592A (zh) * 1999-08-20 2001-02-28 慧亚科技股份有限公司 快闪记忆体的管理、资料连接结构与演算法
CN1834941A (zh) * 2005-03-18 2006-09-20 恩益禧电子股份有限公司 具有闪存的半导体设备
CN101556560A (zh) * 2008-04-09 2009-10-14 群联电子股份有限公司 储存装置、控制器及其数据存取方法
CN104216791A (zh) * 2013-05-30 2014-12-17 上海斐讯数据通信技术有限公司 一种校验Flash存储数据的方法
CN105718206A (zh) * 2014-12-03 2016-06-29 中国人民解放军国防科学技术大学 能够感知raid的闪存转换层及其实现方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101274181B1 (ko) * 2006-02-13 2013-06-14 삼성전자주식회사 플래시 메모리를 관리하는 장치 및 방법
CN101458661B (zh) * 2008-12-29 2010-11-03 北京飞天诚信科技有限公司 一种闪存块磨损平衡的方法和系统
CN101546294A (zh) * 2009-04-30 2009-09-30 青岛海信宽带多媒体技术有限公司 一种Flash存储器的数据存储方法
CN102591803A (zh) * 2011-01-17 2012-07-18 上海华虹集成电路有限责任公司 一种flash数据保护的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1285592A (zh) * 1999-08-20 2001-02-28 慧亚科技股份有限公司 快闪记忆体的管理、资料连接结构与演算法
CN1834941A (zh) * 2005-03-18 2006-09-20 恩益禧电子股份有限公司 具有闪存的半导体设备
CN101556560A (zh) * 2008-04-09 2009-10-14 群联电子股份有限公司 储存装置、控制器及其数据存取方法
CN104216791A (zh) * 2013-05-30 2014-12-17 上海斐讯数据通信技术有限公司 一种校验Flash存储数据的方法
CN105718206A (zh) * 2014-12-03 2016-06-29 中国人民解放军国防科学技术大学 能够感知raid的闪存转换层及其实现方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380171A (zh) * 2020-12-01 2021-02-19 厦门市美亚柏科信息股份有限公司 一种yaffs文件系统oob识别方法、终端设备及存储介质
CN112380171B (zh) * 2020-12-01 2022-07-15 厦门市美亚柏科信息股份有限公司 一种yaffs文件系统oob识别方法、终端设备及存储介质

Also Published As

Publication number Publication date
WO2020015128A1 (zh) 2020-01-23

Similar Documents

Publication Publication Date Title
US20090037646A1 (en) Method of using a flash memory for a circular buffer
US7979737B2 (en) Method for accessing a Flash memory, and associated memory device and controller thereof
CN106708754A (zh) 数据储存装置及其数据维护方法
US9552287B2 (en) Data management method, memory controller and embedded memory storage apparatus using the same
CN109086004A (zh) 一种闪存中块类型的识别方法
CN103823642A (zh) 用于Flash均衡存储的方法及系统
US10049007B2 (en) Non-volatile memory device and read method thereof
CN104658612A (zh) 存取快闪存储器中储存单元的方法以及使用该方法的装置
CN103594120A (zh) 以读代写的存储器纠错方法
CN107195329A (zh) 在读操作时纠正dram中存储阵列的错误的方法以及dram
US10340025B2 (en) Data-storage device and block-releasing method
CN108897499A (zh) 一种闪存内块的类型识别方法
EP2128803A1 (en) Information storage medium and medium processing system
JPH0546490A (ja) メモリカード装置
CN109032518A (zh) 一种闪存内超级块的类型识别方法
CN107562655B (zh) 一种数据存储方法和装置
CN105706067B (zh) 内置闪存的微型计算机和向内置于微型计算机的闪存的数据写入方法
CN201465572U (zh) 防错误读写存储器
CN107017026B (zh) 非易失性存储器装置及其读取方法
CN207337927U (zh) 一种在读操作时纠正存储阵列错误的动态随机存取存储器
CN107402887B (zh) 闪速存储器中的计数器
US20180011648A1 (en) Data Storage Device and Data Maintenance Method
CN111949198A (zh) 一种坏块管理方法、装置和存储设备
US20110040928A1 (en) Method for identifying a page of a block of flash memory, and associated memory device
CN210199852U (zh) 一种具有铁电存储器的彩票终端机电路和彩票终端机

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: 20181225

RJ01 Rejection of invention patent application after publication