CN109032518A - 一种闪存内超级块的类型识别方法 - Google Patents

一种闪存内超级块的类型识别方法 Download PDF

Info

Publication number
CN109032518A
CN109032518A CN201810808813.1A CN201810808813A CN109032518A CN 109032518 A CN109032518 A CN 109032518A CN 201810808813 A CN201810808813 A CN 201810808813A CN 109032518 A CN109032518 A CN 109032518A
Authority
CN
China
Prior art keywords
superblock
flash memory
block
data
type identification
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
CN201810808813.1A
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 CN201810808813.1A priority Critical patent/CN109032518A/zh
Priority to PCT/CN2018/105863 priority patent/WO2020015127A1/zh
Publication of CN109032518A publication Critical patent/CN109032518A/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/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]
    • 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/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • 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

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)

Abstract

本发明公开了一种闪存内超级块的类型识别方法,包括:对超级块内n个块的第一页备用区域的同一个字节写入相同的类型标识;n为正整数且大于1;把n个块的数据分别乱序后存入闪存;读取时,n个块的数据分别被解乱序读出;查看n个第一页备用区的写入类型标识的字节的类型标识,这n个值中有n‑1项或n项相等,即把相等的值作为超级块的类型标识。从而降低闪存内超级块的类型判断错误率。

Description

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

Claims (3)

1.一种闪存内超级块的类型识别方法,其特征在于,包括:
对超级块内n个块的第一页备用区域的同一个字节写入相同的类型标识;n为正整数且大于1;
把n个块的数据分别乱序后存入闪存;
读取时,n个块的数据分别被解乱序读出;
查看n个第一页备用区的写入类型标识的字节的类型标识,这n个值中有n-1项或n项相等,即把相等的值作为超级块的类型标识。
2.根据权利要求1所述的闪存内超级块的类型识别方法,其特征在于,闪存有n个区域,每个区域中第m个块组合形成第m个超级块,其中,n为正整数且大于1;m为正整数且大于等于1。
3.根据权利要求1或2所述的闪存内超级块的类型识别方法,其特征在于,所述的n为4。
CN201810808813.1A 2018-07-19 2018-07-19 一种闪存内超级块的类型识别方法 Pending CN109032518A (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810808813.1A CN109032518A (zh) 2018-07-19 2018-07-19 一种闪存内超级块的类型识别方法
PCT/CN2018/105863 WO2020015127A1 (zh) 2018-07-19 2018-09-14 一种闪存内超级块的类型识别方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810808813.1A CN109032518A (zh) 2018-07-19 2018-07-19 一种闪存内超级块的类型识别方法

Publications (1)

Publication Number Publication Date
CN109032518A true CN109032518A (zh) 2018-12-18

Family

ID=64645003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810808813.1A Pending CN109032518A (zh) 2018-07-19 2018-07-19 一种闪存内超级块的类型识别方法

Country Status (2)

Country Link
CN (1) CN109032518A (zh)
WO (1) WO2020015127A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556560A (zh) * 2008-04-09 2009-10-14 群联电子股份有限公司 储存装置、控制器及其数据存取方法
CN102483714A (zh) * 2009-07-24 2012-05-30 苹果公司 恢复索引页
CN103176916A (zh) * 2013-03-07 2013-06-26 中国科学院苏州纳米技术与纳米仿生研究所 闪存及闪存的地址转换方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8452929B2 (en) * 2005-04-21 2013-05-28 Violin Memory Inc. Method and system for storage of data in non-volatile media
KR101274181B1 (ko) * 2006-02-13 2013-06-14 삼성전자주식회사 플래시 메모리를 관리하는 장치 및 방법
CN102567246B (zh) * 2011-12-29 2014-08-13 中国人民解放军国防科学技术大学 一种支持操作乱序执行的与非型快闪存储控制器
CN107247563A (zh) * 2017-07-06 2017-10-13 济南浪潮高新科技投资发展有限公司 一种nand flash芯片的块信息标识实现方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556560A (zh) * 2008-04-09 2009-10-14 群联电子股份有限公司 储存装置、控制器及其数据存取方法
CN102483714A (zh) * 2009-07-24 2012-05-30 苹果公司 恢复索引页
CN103176916A (zh) * 2013-03-07 2013-06-26 中国科学院苏州纳米技术与纳米仿生研究所 闪存及闪存的地址转换方法

Also Published As

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

Similar Documents

Publication Publication Date Title
US20090037646A1 (en) Method of using a flash memory for a circular buffer
CN106484316A (zh) 用来管理一记忆装置的方法以及记忆装置与控制器
CN106708754A (zh) 数据储存装置及其数据维护方法
CN104658612A (zh) 存取快闪存储器中储存单元的方法以及使用该方法的装置
TW201013682A (en) One-time-programmable memory emulation
US20180074703A1 (en) Index management in a flash memory
CN109086004A (zh) 一种闪存中块类型的识别方法
US9396769B1 (en) Memory device and operating method of same
CN107957921B (zh) 一种均衡磨损的智能卡掉电数据保护方法
CN109032518A (zh) 一种闪存内超级块的类型识别方法
CN110955383B (zh) 数据储存装置以及非挥发式存储器控制方法
CN106920576A (zh) 一种检验Nand Flash质量的方法及系统
CN108897499A (zh) 一种闪存内块的类型识别方法
EP2128803A1 (en) Information storage medium and medium processing system
CN107562655B (zh) 一种数据存储方法和装置
CN103226971B (zh) 一种防止数据破坏的cam快速回写电路
CN109634534B (zh) 存储芯片的容量快速判定方法
CN201465572U (zh) 防错误读写存储器
CN103092730B (zh) 一种信息存储与读取方法
US10223195B2 (en) Counter in a flash memory
CN102956255B (zh) 闪存控制器
CN100517253C (zh) 参数数据测试方法
CN105657508B (zh) 电视板卡闪存数据处理方法
CN102929563A (zh) 一种事务数据处理方法及装置
CN109920461A (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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218