The embodiment of the invention discloses a NAND flash device, including a storage table management method, device, device and storage medium, wherein the NAND flash device includes: a physical block and a storage table stored in the physical block, and the storage table includes a first level table, a second level table, a third level table and a fourth level table according to the sequence of low to high update frequency of the information table, the first level table is a system table, and the second level table package It includes root table and metadata table. The third level table at least includes idle table and section table. The fourth level table includes multiple section tables, only the system table is stored in multiple physical blocks specified in the guidance rules. Among them, the system table is used to record the block address of the physical block storing the second level table, the root table is used to record the block address of the physical block storing the section table, and the section table is used to record the page of the storage page of the storage area table Address, the metadata table is used to record the block address of the physical block storing the free table. The invention reduces the update frequency of the system table and the consumption of the storage block of the system table.
【技术实现步骤摘要】
NAND快闪器件、存储表管理方法、设备和存储介质
本专利技术实施例涉及存储
,尤其涉及一种NAND快闪器件、存储表管理方法、设备和存储介质。
技术介绍
系统表是NAND固件(Firmware,FW)中非常重要的系统数据,记录着一切系统数据存储块的物理地址等。存储设备上电之初,首先需要将系统表通过更新(Rebuild)模块的功能复建到随机存储器(RandomAccessMemory,RAM)中,固件的后续更新和正常运行必须基于系统表的信息指引。系统表中记录着根表、固件编码和元数据表的物理块信息。根表中除了记录一些重要的系统配置信息,还记录了区段表的物理块地址信息;区段表中记录着区表的物理块地址信息;区表中记录着用户数据的4K存储单元从逻辑地址到物理地址的映射关系;固件编码中记录着固件编码的存储块物理地址信息;元数据表中记录着用户表、空闲表和坏块表的物理块地址信息,共用一块固定大小的存储空间。系统表信息如图1所示,图1为现有技术中系统表的示意图。现有技术中,将用户表、空闲表、坏块表、区段表、区表、固件编码等 ...
【技术保护点】
1.一种NAND快闪器件,其特征在于,包括物理块和存储于所述物理块中的存储表,所述存储表按信息表更新频繁程度由低到高的顺序包括一级表、二级表、三级表和四级表,所述一级表为系统表,所述二级表包括根表和元数据表,所述三级表至少包括空闲表和区段表;所述四级表包括多个区表,仅所述系统表存储于引导规则规定的多个物理块中;/n其中,所述系统表用于记录存储所述二级表的物理块的块地址,所述根表用于记录存储所述区段表的物理块的块地址,所述区段表用于记录存储所述区表的存储页的页地址,所述元数据表用于记录存储所述空闲表的物理块的块地址,所述空闲表用于记录自由块的数量、物理地址和擦除次数。/n
【技术特征摘要】
1.一种NAND快闪器件,其特征在于,包括物理块和存储于所述物理块中的存储表,所述存储表按信息表更新频繁程度由低到高的顺序包括一级表、二级表、三级表和四级表,所述一级表为系统表,所述二级表包括根表和元数据表,所述三级表至少包括空闲表和区段表;所述四级表包括多个区表,仅所述系统表存储于引导规则规定的多个物理块中;
其中,所述系统表用于记录存储所述二级表的物理块的块地址,所述根表用于记录存储所述区段表的物理块的块地址,所述区段表用于记录存储所述区表的存储页的页地址,所述元数据表用于记录存储所述空闲表的物理块的块地址,所述空闲表用于记录自由块的数量、物理地址和擦除次数。
2.根据权利要求1所述的NAND快闪器件,其特征在于,所述区段表还用于记录所述区表的存储变动信息。
3.根据权利要求1所述的NAND快闪器件,其特征在于,所述系统表还用于记录存储固件编码的物理块的块地址,以及固件配置的参数信息,且所述系统表包括预留存储空间;
所述三级表还包括用户表、坏块表和映射表;所述元数据表还用于记录存储所述用户表、所述坏块表和所述映射表的物理块的块地址。
4.一种基于权利要求1-3任一所述的NAND快闪器件的存储表管理方法,其特征在于,包括:
获取存储二级表和三级表的物理块的块地址;
若存储二级表的物理块的块地址发生改变,则更新系统表;
若存储三级表的物理块的块地址发生改变,则更新二级表;
若四级表中的多个区表发生任意存储变动,则更新三级表。
5.根据权利要求4所述的存储表管理方法,其特征在于,存储二级表和三级表的物理块均包括两个基本块;
若存储二级...
【专利技术属性】
技术研发人员:吴春晓,
申请(专利权)人:北京兆易创新科技股份有限公司,上海格易电子有限公司,
类型:发明
国别省市:北京;11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。