CN203012703U - A Nand Flash Block Redundant Storage Control Circuit for Embedded Systems - Google Patents
A Nand Flash Block Redundant Storage Control Circuit for Embedded Systems Download PDFInfo
- Publication number
- CN203012703U CN203012703U CN 201220714342 CN201220714342U CN203012703U CN 203012703 U CN203012703 U CN 203012703U CN 201220714342 CN201220714342 CN 201220714342 CN 201220714342 U CN201220714342 U CN 201220714342U CN 203012703 U CN203012703 U CN 203012703U
- Authority
- CN
- China
- Prior art keywords
- nand flash
- pin
- chip
- memory chip
- flash memory
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
技术领域 technical field
本实用新型属于数据存储技术领域,尤其是涉及一种面向嵌入式系统的Nand Flash块冗余存储控制电路。 The utility model belongs to the technical field of data storage, in particular to an embedded system-oriented Nand Flash block redundant storage control circuit.
背景技术 Background technique
随着半导体电子技术和工艺的迅猛发展,凭借存储密度大、功耗低、寿命长、成本低等特点,Nand Flash存储芯片在嵌入式系统的存储领域得到了广泛应用,典型的嵌入式处理器(如Power PC、ARM、DSP等)均支持Nand Flash存储器接口。由于本身存在固有缺陷,Nand Flash存储芯片是一种数据正确性非理想的器件,在Nand Flash存储芯片出厂和使用过程中会产生一定数量的坏块,从而导致存储数据的错误或丢失。因此,为了提高Nand Flash存储单元的可靠性进而保证嵌入式系统的可靠运行,基于Nand Flash的数据冗余存储显得尤为必要。 With the rapid development of semiconductor electronic technology and technology, Nand Flash memory chips have been widely used in the storage field of embedded systems due to their characteristics of high storage density, low power consumption, long life, and low cost. Typical embedded processors (such as Power PC, ARM, DSP, etc.) all support Nand Flash memory interface. Due to its inherent defects, the Nand Flash memory chip is a device with non-ideal data accuracy. A certain number of bad blocks will be generated during the delivery and use of the Nand Flash memory chip, resulting in errors or loss of stored data. Therefore, in order to improve the reliability of Nand Flash storage units and ensure the reliable operation of embedded systems, data redundancy storage based on Nand Flash is particularly necessary.
目前,针对Flash的冗余存储,具体有以下几种方法: Currently, there are several methods for redundant storage of Flash:
(1)冗余编码。该方法是采用一定编码方式生成冗余编码并将其存入预留的数据冗余空间中,当存储数据出现错误时,利用冗余编码纠正错误。专利200910053399“一种大规模Flash存储阵列的多层次数据冗余方法”即是在页级、Flash芯片级、Flash芯片组级三个层次采用冗余编码的方法对数据进行冗余。此方法增加了软件运算量和数据存储控制的复杂度,并且当出现坏块无法读取数据时,冗余编码失去意义。 (1) Redundant coding. The method is to use a certain coding method to generate redundant codes and store them in the reserved data redundancy space. When errors occur in the stored data, the redundant codes are used to correct the errors. Patent 200910053399 "A Multi-level Data Redundancy Method for Large-Scale Flash Storage Array" is to use redundant coding methods to redundant data at the page level, Flash chip level, and Flash chipset level. This method increases the amount of software calculation and the complexity of data storage control, and when there is a bad block and the data cannot be read, the redundant coding loses its meaning.
(2)建立数据备份区。该方法是在Flash存储单元内部划分数据备份区,当原始数据区出现存储坏块时读取数据备份区的数据。专利200810029685“Flash存储器的二级备份方法”即是采用数据备份的方式进行冗余存储。由于原始数据区与备份区并非对等冗余,因此,此方法在数据存储时增加了存储控制程序的复杂度,并降低了数据存取效率。 (2) Establish a data backup area. The method is to divide the data backup area inside the Flash storage unit, and read the data in the data backup area when a bad block occurs in the original data area. Patent 200810029685 "Secondary Backup Method of Flash Memory" is to use data backup for redundant storage. Since the original data area and the backup area are not equally redundant, this method increases the complexity of the storage control program during data storage and reduces the efficiency of data access.
(3)硬件级冗余存储。该方法是在硬件上包含两个互为冗余的数据存储区域,当其中一区域的某数据块出现故障时,可从另一区域的相应数据块中恢复数据。专利201120005567“一种数据冗余保护Flash固态盘”即包含两个对等的互为冗余的存储阵列和数据存储控制器以提高固态盘存储数据的可靠性及完整性,但是该专利仅限应用于Flash存储阵列及固态盘的设计,不支持嵌入式处理器的Nand Flash接口,不能直接用于嵌入式系统的主存储器单元设计中。 (3) Hardware-level redundant storage. The method is to include two mutually redundant data storage areas on the hardware, and when a data block in one area fails, data can be recovered from the corresponding data block in the other area. Patent 201120005567 "A Data Redundancy Protection Flash Solid State Disk" includes two equal and mutually redundant storage arrays and data storage controllers to improve the reliability and integrity of data stored in the solid state disk, but the patent is limited to Applied to the design of Flash storage arrays and solid-state disks, it does not support the Nand Flash interface of embedded processors, and cannot be directly used in the design of the main memory unit of embedded systems.
发明内容 Contents of the invention
本实用新型的目的是针对现有基于Nand Flash的冗余存储电路的不足,提供一种面向嵌入式系统的Nand Flash块冗余存储控制电路,采用硬件级冗余存储方法实现基于Nand Flash的冗余存储,并采用现场可编程逻辑门阵列FPGA(Field Programmable Gate Array)器件作为控制芯片,实现冗余存储单元的并行操作并提供与嵌入式处理器直接相连接的Nand Flash存储器接口,可适用于对数据存储可靠性要求较高的嵌入式系统主存储器单元。 The purpose of this utility model is to provide a kind of Nand Flash block redundant storage control circuit facing the embedded system for the deficiency of the existing redundant storage circuit based on Nand Flash, adopt the redundant storage method of hardware level to realize the redundant storage circuit based on Nand Flash It uses field programmable logic gate array FPGA (Field Programmable Gate Array) device as the control chip to realize the parallel operation of redundant storage units and provide a Nand Flash memory interface directly connected to the embedded processor, which can be applied to Embedded system main memory unit that requires high data storage reliability.
本实用新型一种面向嵌入式系统的Nand Flash块冗余存储控制电路,包括:Nand Flash存储芯片(1)、Nand Flash存储芯片(2)和控制芯片(3)。Nand Flash存储芯片(1)与Nand Flash存储芯片(2)采用相同的存储芯片构成两个互为冗余的存储单元。控制芯片(3)的IO引脚5至12、IO引脚17、IO引脚21、IO引脚22、IO引脚23、IO引脚24、IO引脚26、IO引脚27分别与Nand Flash存储芯片(1)的引脚I/O0至I/O7、CLE、ALE、RE#、WE#、CE#、R/B#、WP#相连接,控制芯片(3)的IO引脚78至85、IO引脚92、IO引脚93、IO引脚94、IO引脚95、IO引脚97、IO引脚98、IO引脚99分别与Nand Flash存储芯片(2)的引脚I/O0至I/O7、CLE、ALE、RE#、WE#、CE#、R/B#、WP#相连接,控制芯片(3)的IO引脚114至121、IO引脚126、IO引脚127、IO引脚131、IO引脚132、IO引脚133、IO引脚134分别与外部主处理器的Nand Flash接口引脚I/O0至I/O7、CLE、ALE、RE#、WE#、CE#、R/B#相连接。
The utility model relates to an embedded system-oriented Nand Flash block redundant storage control circuit, comprising: a Nand Flash storage chip (1), a Nand Flash storage chip (2) and a control chip (3). The Nand Flash memory chip (1) and the Nand Flash memory chip (2) use the same memory chip to form two mutually redundant memory units. The IO pins 5 to 12, IO pin 17,
所述Nand Flash存储芯片(1)和Nand Flash存储芯片(2)采用的是三星公司的K9K8G08U0M。 What described Nand Flash memory chip (1) and Nand Flash memory chip (2) adopted is the K9K8G08U0M of Samsung.
所述控制芯片(3)采用的FPGA芯片是赛灵思公司XC6SLX4TQG144。控制芯片(3)实现Nand Flash块冗余存储控制功能,将外部主处理器发出的Nand Flash控制命令采用冗余机制处理后对Nand Flash存储芯片(1)及Nand Flash存储芯片(2)进行相应操作。 The FPGA chip used in the control chip (3) is Xilinx XC6SLX4TQG144. The control chip (3) realizes the Nand Flash block redundant storage control function, and uses the redundant mechanism to process the Nand Flash control command issued by the external main processor, and then performs corresponding processing on the Nand Flash memory chip (1) and the Nand Flash memory chip (2). operate.
本实用新型应用上述芯片型号,但不局限于上述型号,凡是可满足相同功能需求的芯片型号均可互相替代。 The utility model applies the above-mentioned chip models, but is not limited to the above-mentioned models, and any chip models that can meet the same functional requirements can be substituted for each other.
所述外部主处理器指的是内置Nand Flash控制器且含Nand Flash存储器接口的嵌入式处理器。 Described external main processor refers to built-in Nand Flash controller and contains the embedded processor of Nand Flash memory interface.
本实用新型中采用的Nand Flash块冗余存储控制方法,包括上电坏块自检过程、数据存储过程、数据读取过程和数据擦除过程。 The Nand Flash block redundant storage control method adopted in the utility model includes a power-on bad block self-inspection process, a data storage process, a data reading process and a data erasing process.
上电坏块自检过程包括以下步骤: The power-on bad block self-test process includes the following steps:
S1 Nand Flash存储芯片(1)和Nand Flash存储芯片(2)为两个互为冗余的存储单元,每片Nand Flash存储芯片包含n个存储块(Block),分别编号0至(n-1); S1 Nand Flash memory chip (1) and Nand Flash memory chip (2) are two mutually redundant storage units. Each Nand Flash memory chip contains n memory blocks (Block), respectively numbered from 0 to (n-1 );
S2 上电后控制芯片(3)同时对Nand Flash存储芯片(1)及Nand Flash存储芯片(2)进行坏块扫描,并建立坏块信息列表。 After S2 is powered on, the control chip (3) scans the Nand Flash memory chip (1) and the Nand Flash memory chip (2) for bad blocks at the same time, and establishes a list of bad block information.
数据存储过程包括以下步骤: The data storage process consists of the following steps:
S1 控制芯片(3)通过Nand Flash接口接收来自外部主处理器的数据存储命令和数据; S1 control chip (3) receives data storage commands and data from the external main processor through the Nand Flash interface;
S2 控制芯片(3)根据命令中的行地址提取当前操作存储块的块地址编号m; S2 control chip (3) extracts the block address number m of the currently operating storage block according to the row address in the command;
S3 控制芯片(3)根据坏块信息列表检测Nand Flash存储芯片(1)及Nand Flash存储芯片(2)的第m个存储块是否为坏块,并且仅将数据写入第m块为正常块的存储芯片中,若两个存储芯片的第m块均为坏块时,则控制芯片(3)向外部主处理器返回写入不成功应答。 The S3 control chip (3) detects whether the mth storage block of the Nand Flash memory chip (1) and the Nand Flash memory chip (2) is a bad block according to the bad block information list, and only writes data into the mth block as a normal block In the memory chips of the two memory chips, if the mth blocks of the two memory chips are all bad blocks, the control chip (3) returns an unsuccessful write response to the external main processor.
数据读取过程包括以下步骤: The data reading process includes the following steps:
S1 控制芯片(3)通过Nand Flash接口接收来自外部主处理器的数据读取命令; The S1 control chip (3) receives the data read command from the external main processor through the Nand Flash interface;
S2 控制芯片(3)根据命令中的行地址提取当前操作存储块的块地址编号m; S2 control chip (3) extracts the block address number m of the currently operating storage block according to the row address in the command;
S3 控制芯片(3)根据坏块信息列表检测Nand Flash存储芯片(1)及Nand Flash存储芯片(2)的第m个存储块是否为坏块,当Nand Flash存储芯片(1)的第m块为正常块时,读取Nand Flash存储芯片(1)的数据返回至外部主处理器,否则,读取Nand Flash存储芯片(2)的数据,若两个存储芯片的第m块均为坏块时,则读取页寄存器默认值返回至外部主处理器; The S3 control chip (3) detects whether the mth storage block of the Nand Flash memory chip (1) and the Nand Flash memory chip (2) is a bad block according to the bad block information list, when the mth block of the Nand Flash memory chip (1) When it is a normal block, read the data of the Nand Flash memory chip (1) and return it to the external main processor, otherwise, read the data of the Nand Flash memory chip (2), if the mth blocks of both memory chips are bad blocks , read the default value of the page register and return to the external main processor;
S4 当读取数据成功时,根据命令中行列地址判断读取的当前页是否为第m块的含坏块信息页(通常为第1页),若读取的是含坏块信息页的数据则更新第m块的坏块信息。 S4 When the data is read successfully, judge whether the current page read is the mth block containing bad block information page (usually page 1) according to the row and column addresses in the command, if the data of the page containing bad block information is read Then update the bad block information of the mth block.
数据擦除过程包括以下步骤: The data erasure process includes the following steps:
S1 控制芯片(3)通过Nand Flash接口接收来自外部主处理器的数据擦除命令; The S1 control chip (3) receives the data erasing command from the external main processor through the Nand Flash interface;
S2 控制芯片(3)根据命令中的行地址提取当前操作存储块的块地址编号m; S2 control chip (3) extracts the block address number m of the currently operating storage block according to the row address in the command;
S3 控制芯片(3)同时对Nand Flash存储芯片(1)和Nand Flash存储芯片(2)的第m块执行擦除操作。 The S3 control chip (3) performs an erase operation on the Nand Flash memory chip (1) and the mth block of the Nand Flash memory chip (2) at the same time.
本实用新型所产生的有益效果是:本实用新型提供的一种面向嵌入式系统的Nand Flash块冗余存储控制电路可直接与外部主处理器的Nand Flash存储器接口连接,外部主处理器的Nand Flash接口驱动程序无需额外开销即可实现嵌入式主处理器的数据冗余存储;控制芯片采用FPGA芯片,可实现冗余存储单元的数据并行读写及擦除操作,提高了嵌入式系统中Nand Flash冗余存储单元的读写速度;采用硬件级冗余存储的方法,有效降低了Nand Flash存储芯片的坏块对数据存储的影响。 The beneficial effects produced by the utility model are: a kind of Nand Flash block redundant storage control circuit facing embedded system provided by the utility model can be directly connected with the Nand Flash memory interface of the external main processor, and the Nand Flash memory interface of the external main processor The Flash interface driver can realize the data redundancy storage of the embedded main processor without additional overhead; the control chip adopts the FPGA chip, which can realize the data parallel reading and writing and erasing operation of the redundant storage unit, which improves the Nand in the embedded system. The read and write speed of the Flash redundant storage unit; the hardware-level redundant storage method is used to effectively reduce the impact of bad blocks of the Nand Flash storage chip on data storage.
附图说明 Description of drawings
图1为本实用新型的结构框图; Fig. 1 is a block diagram of the utility model;
图2为本实用新型的电原理图; Fig. 2 is the electrical schematic diagram of the utility model;
图3为控制芯片FPGA内部结构框图; Fig. 3 is a block diagram of the internal structure of the control chip FPGA;
图4为上电坏块自检过程流程图; Fig. 4 is a flow chart of the self-inspection process of power-on bad blocks;
图5为数据存储过程流程图; Fig. 5 is a flow chart of the data storage process;
图6为数据读取过程流程图; Fig. 6 is a flow chart of the data reading process;
图7为数据擦除过程流程图。 FIG. 7 is a flow chart of the data erasing process. the
具体实施方式 Detailed ways
下面结合附图对本实用新型做进一步的详细说明。 Below in conjunction with accompanying drawing, the utility model is described in further detail.
附图1是本实用新型的结构框图,描述了各个部件之间的连接关系。本实用新型包括控制芯片(3)、互为冗余存储单元的Nand Flash存储芯片(1)和Nand Flash存储芯片(2)。 Accompanying drawing 1 is a structural block diagram of the present utility model, has described the connection relation between each component. The utility model comprises a control chip (3), a Nand Flash storage chip (1) and a Nand Flash storage chip (2) which are mutually redundant storage units.
控制芯片(3)分别与Nand Flash存储芯片(1)和Nand Flash存储芯片(2)相连接,控制芯片(3)还与外部主处理器的Nand Flash接口相连接。 The control chip (3) is respectively connected with the Nand Flash storage chip (1) and the Nand Flash storage chip (2), and the control chip (3) is also connected with the Nand Flash interface of the external main processor.
附图2是本实用新型的电原理图。 Accompanying drawing 2 is the electrical schematic diagram of the utility model.
附图2显示了Nand Flash存储芯片、控制芯片和其它配置芯片。 Accompanying drawing 2 shows Nand Flash storage chip, control chip and other configuration chips.
Nand Flash存储芯片(1)采用的是三星公司的K9K8G08U0M(U1),Nand Flash存储芯片(2)同样采用的是三星公司的K9K8G08U0M(U2)。 The Nand Flash memory chip (1) uses Samsung’s K9K8G08U0M (U1), and the Nand Flash memory chip (2) also uses Samsung’s K9K8G08U0M (U2).
控制芯片(3)采用的FPGA芯片是赛灵思公司的XC6SLX4TQG144(U3)。 The FPGA chip adopted by the control chip (3) is XC6SLX4TQG144 (U3) of Xilinx Company.
控制芯片(3)的IO引脚5至12、IO引脚17、IO引脚21、IO引脚22、IO引脚23、IO引脚24、IO引脚26、IO引脚27分别与Nand Flash存储芯片(1)的引脚I/O0至I/O7、CLE、ALE、RE#、WE#、CE#、R/B#、WP#相连接,控制芯片(3)的IO引脚78至85、IO引脚92、IO引脚93、IO引脚94、IO引脚95、IO引脚97、IO引脚98、IO引脚99分别与Nand Flash存储芯片(2)的引脚I/O0至I/O7、CLE、ALE、RE#、WE#、CE#、R/B#、WP#相连接,控制芯片(3)的IO引脚114至121、IO引脚126、IO引脚127、IO引脚131、IO引脚132、IO引脚133、IO引脚134分别与外部主处理器的Nand Flash接口引脚I/O0至I/O7、CLE、ALE、RE#、WE#、CE#、R/B#相连接。
The IO pins 5 to 12, IO pin 17,
附图3是控制芯片FPGA内部结构框图。 Accompanying drawing 3 is a block diagram of the internal structure of the control chip FPGA.
控制芯片(3)FPGA内部结构框图包括外部主处理器Nand Flash接口控制子模块、命令译码及块地址提取模块、写入Nand Flash子模块、读取Nand Flash子模块、擦除Nand Flash子模块、存储芯片选择子模块、上电坏块自检子模块、坏块信息列表、存储芯片1Nand Flash接口控制子模块、存储芯片2Nand Flash接口控制子模块和数字频率管理器模块。 Control chip (3) FPGA internal structure block diagram includes external main processor Nand Flash interface control sub-module, command decoding and block address extraction module, writing Nand Flash sub-module, reading Nand Flash sub-module, erasing Nand Flash sub-module , memory chip selection sub-module, power-on bad block self-test sub-module, bad block information list, memory chip 1Nand Flash interface control sub-module, memory chip 2Nand Flash interface control sub-module and digital frequency manager module.
控制芯片(3)首先通过Nand Flash接口接收来自外部主处理器的指令,通过命令译码选择Nand Flash当前操作子模块,通过块地址提取并结合坏块信息选择当前操作存储芯片,最后通过存储芯片的Nand Flash接口控制子模块对所选Nand Flash存储芯片执行当前操作。 The control chip (3) first receives instructions from the external main processor through the Nand Flash interface, selects the current operating sub-module of the Nand Flash through command decoding, selects the current operating memory chip through block address extraction and combined with bad block information, and finally passes the memory chip The Nand Flash interface control sub-module performs the current operation on the selected Nand Flash memory chip.
附图4是上电坏块自检过程流程图。上电坏块自检过程包括以下步骤: Accompanying drawing 4 is the flow chart of power-on bad block self-inspection process. The power-on bad block self-test process includes the following steps:
S1 Nand Flash存储芯片(1)和Nand Flash存储芯片(2)均为K9K8G08U0M,每片Nand Flash存储芯片包含8192个存储块(Block),分别编号0至8191; S1 Nand Flash memory chip (1) and Nand Flash memory chip (2) are both K9K8G08U0M, each Nand Flash memory chip contains 8192 memory blocks (Block), respectively numbered 0 to 8191;
S2 上电后控制芯片(3)同时对Nand Flash存储芯片(1)及Nand Flash存储芯片(2)进行坏块扫描,建立坏块信息列表。 After S2 is powered on, the control chip (3) scans the bad blocks of the Nand Flash memory chip (1) and the Nand Flash memory chip (2) at the same time, and establishes a list of bad block information.
Nand Flash存储芯片的坏块信息判断方法是:判断每一块的第一页的第2048字节的数据是否为FFh,若非FFh则该块为坏块。 The method for judging the bad block information of the Nand Flash memory chip is: judge whether the data of the 2048th byte of the first page of each block is FFh, if not FFh, the block is a bad block.
坏块信息是Nand Flash存储芯片(1)坏块信息与Nand Flash存储芯片(2)坏块信息逻辑相与的结果,当且仅当两个存储芯片的当前块均为坏块时才判定当前块为坏块。 The bad block information is the logical AND result of the bad block information of the Nand Flash memory chip (1) and the bad block information of the Nand Flash memory chip (2). If and only when the current blocks of both memory chips are bad blocks, the current block is a bad block.
附图5是数据存储过程流程图。数据存储过程包括以下步骤: Accompanying drawing 5 is the flow chart of data storage process. The data storage process consists of the following steps:
S1 控制芯片(3)通过Nand Flash接口接收来自外部主处理器的数据存储命令和数据; S1 control chip (3) receives data storage commands and data from the external main processor through the Nand Flash interface;
S2 控制芯片(3)根据命令中的行地址提取当前操作存储块的块地址编号m; S2 control chip (3) extracts the block address number m of the currently operating storage block according to the row address in the command;
S3 控制芯片(3)根据坏块信息列表检测Nand Flash存储芯片(1)及Nand Flash存储芯片(2)的第m个存储块是否为坏块; The S3 control chip (3) detects whether the mth storage block of the Nand Flash memory chip (1) and the Nand Flash memory chip (2) is a bad block according to the bad block information list;
当两个存储芯片的第m块均为正常时,则同时将数据存储至Nand Flash存储芯片(1)和Nand Flash存储芯片(2);当Nand Flash存储芯片(1)的第m块为坏块时,则仅将数据存储至Nand Flash存储芯片(2);当Nand Flash存储芯片(2)的第m块为坏块时,则仅将数据存储至Nand Flash存储芯片(1);当Nand Flash存储芯片(1)及Nand Flash存储芯片(2)的第m块均为坏块时,则向外部主处理器返回写入不成功应答。 When the mth block of the two memory chips is normal, the data is stored in the Nand Flash memory chip (1) and the Nand Flash memory chip (2) at the same time; when the mth block of the Nand Flash memory chip (1) is bad block, the data is only stored in the Nand Flash memory chip (2); when the mth block of the Nand Flash memory chip (2) is a bad block, the data is only stored in the Nand Flash memory chip (1); when the Nand When the mth block of the Flash memory chip (1) and the Nand Flash memory chip (2) are all bad blocks, an unsuccessful write response is returned to the external main processor.
附图6是数据读取过程流程图。数据读取过程包括以下步骤: Accompanying drawing 6 is a flow chart of the data reading process. The data reading process includes the following steps:
S1 控制芯片(3)通过Nand Flash接口接收来自外部主处理器的数据读取命令; The S1 control chip (3) receives the data read command from the external main processor through the Nand Flash interface;
S2 控制芯片(3)根据命令中的行地址提取当前操作存储块的块地址编号m; S2 control chip (3) extracts the block address number m of the currently operating storage block according to the row address in the command;
S3 控制芯片(3)根据坏块信息列表检测Nand Flash存储芯片(1)及Nand Flash存储芯片(2)的第m个存储块是否为坏块,当Nand Flash存储芯片(1)的第m块为正常块时,读取Nand Flash存储芯片(1)的数据返回至外部主处理器,否则,读取Nand Flash存储芯片(2)的数据,若两个存储芯片的第m块均为坏块时,则读取页寄存器默认值返回至外部主处理器; The S3 control chip (3) detects whether the mth storage block of the Nand Flash memory chip (1) and the Nand Flash memory chip (2) is a bad block according to the bad block information list, when the mth block of the Nand Flash memory chip (1) When it is a normal block, read the data of the Nand Flash memory chip (1) and return it to the external main processor, otherwise, read the data of the Nand Flash memory chip (2), if the mth blocks of both memory chips are bad blocks , read the default value of the page register and return to the external main processor;
S4 当读取数据成功时,根据命令中行列地址判断读取的当前页是否为第m块的第1页,若读取的是第1页则根据第2048字节的数据是否为FFh更新第m块的坏块信息。 S4 When the data is read successfully, judge whether the current page read is the first page of the mth block according to the row and column addresses in the command. If the read is the first page, update the first page according to whether the data of the 2048th byte is FFh Bad block information of block m.
附图7为数据擦除过程流程图。数据擦除过程包括以下步骤: Accompanying drawing 7 is the flow chart of data erasing process. The data erasure process includes the following steps:
S1 控制芯片(3)通过Nand Flash接口接收来自外部主处理器的数据擦除命令; The S1 control chip (3) receives the data erasing command from the external main processor through the Nand Flash interface;
S2 控制芯片(3)根据命令中的行地址提取当前操作存储块的块地址编号m; S2 control chip (3) extracts the block address number m of the currently operating storage block according to the row address in the command;
S3 控制芯片(3)同时对Nand Flash存储芯片(1)和Nand Flash存储芯片(2)的第m块执行擦除操作。 The S3 control chip (3) performs an erase operation on the Nand Flash memory chip (1) and the mth block of the Nand Flash memory chip (2) at the same time.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201220714342 CN203012703U (en) | 2012-12-22 | 2012-12-22 | A Nand Flash Block Redundant Storage Control Circuit for Embedded Systems |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201220714342 CN203012703U (en) | 2012-12-22 | 2012-12-22 | A Nand Flash Block Redundant Storage Control Circuit for Embedded Systems |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN203012703U true CN203012703U (en) | 2013-06-19 |
Family
ID=48604277
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201220714342 Expired - Lifetime CN203012703U (en) | 2012-12-22 | 2012-12-22 | A Nand Flash Block Redundant Storage Control Circuit for Embedded Systems |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN203012703U (en) |
-
2012
- 2012-12-22 CN CN 201220714342 patent/CN203012703U/en not_active Expired - Lifetime
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8812784B2 (en) | Command executing method, memory controller and memory storage apparatus | |
| CN104102585B (en) | Mapping information recording method, memory controller and memory storage device | |
| CN101576853B (en) | Data access method, controller and storage system using the method | |
| TWI470431B (en) | Data writing method, memory controller and memory storage apparatus | |
| US8902671B2 (en) | Memory storage device, memory controller thereof, and method for programming data thereof | |
| CN102122271A (en) | NAND flash memory controller and control method thereof | |
| US20100199019A1 (en) | Logical memory blocks | |
| US20140019670A1 (en) | Data writing method, memory controller, and memory storage device | |
| US20150161042A1 (en) | Memory management method, memory controlling circuit unit, and memory storage device | |
| US20180239557A1 (en) | Nonvolatile memory device, data storage device including the same, and operating method of data storage device | |
| US10915259B2 (en) | Memory device, memory controller and memory system including them, and method for operating them for matching operation mode of memory interfaces | |
| CN111026325B (en) | Flash memory controller, method for controlling flash memory controller, and related electronic device | |
| CN103377155B (en) | Memory storage device, memory controller and power control method thereof | |
| US20190278704A1 (en) | Memory system, operating method thereof and electronic apparatus | |
| CN102890617B (en) | Memory control method, memory controller and memory storage device | |
| CN104731710B (en) | Memory management method, memory control circuit unit and memory storage device | |
| CN104657083B (en) | Data writing method, memory storage device, memory control circuit unit | |
| CN103218308B (en) | Buffer memory management method, memory controller and memory storage device | |
| US8738847B2 (en) | Data writing method, and memory controller and memory storage apparatus using the same | |
| CN102890653A (en) | Instruction execution method, memory controller and memory storage device | |
| CN102737716B (en) | Memory storage device, memory controller and data writing method | |
| CN111309518B (en) | Memory system and operating method of memory system | |
| CN103677868A (en) | Method for configuring built-in FPGA of chip by MCU inside chip | |
| CN104238956A (en) | Data writing method, memory controller and memory storage device | |
| US8832358B2 (en) | Data writing method, memory controller and memory storage apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C53 | Correction of patent of invention or patent application | ||
| CB03 | Change of inventor or designer information |
Inventor after: Zhang Qiong Inventor after: Zhang Shaofeng Inventor after: Fu Caide Inventor after: Huang Song Inventor before: Huang Songzhangqiong Inventor before: Zhang Shaofeng Inventor before: Fu Caide Inventor before: Huang Song |
|
| COR | Change of bibliographic data |
Free format text: CORRECT: INVENTOR; FROM: HUANGSONG ZHANGQIONG ZHANG SHAOFENG FU CAIDE HUANG SONG TO: ZHANG QIONG ZHANG SHAOFENG FU CAIDE HUANG SONG |
|
| CX01 | Expiry of patent term |
Granted publication date: 20130619 |
|
| CX01 | Expiry of patent term |