Search

CN-116185701-B - Verification method of NANDflash controller empty page test method

CN116185701BCN 116185701 BCN116185701 BCN 116185701BCN-116185701-B

Abstract

The invention discloses a verification method of an empty page test method of a NANDflash controller, which comprises the steps of data preparation, read command transmission, result return and data processing analysis. And constructing different empty page scenes in a data preparation stage, and sending read commands in different modes according to the data preparation in a read command sending stage. The result returns to return whether the page is read empty or not and the page number is empty. And the data processing analysis stage compares and analyzes the test result with the expected result to generate a visual report. The invention can verify whether the flash memory controller can effectively identify empty pages, and improves the reliability of the system.

Inventors

  • ZHAO SHASHA
  • WANG PU
  • YANG XUE
  • TANG HANZHAO

Assignees

  • 山东华芯半导体有限公司

Dates

Publication Date
20260512
Application Date
20230301

Claims (6)

  1. 1. A verification method of an empty page test method of a NANDflash controller is characterized by comprising the following steps: S01), data preparation, initializing information and constructing different blank scenes, wherein the blank scenes comprise that after erasure, data are not written in and are directly read, blocks for writing data are inconsistent with read data blocks, the types of read-write flash memories are different, data are written in and read correctly, the verification process of the direct reading of the data after erasure is that a single erasing operation is sent to a NANDflash controller firstly for each round of operation from a starting block serial number, then SINGLE PLANE read operation is sent after the erasing operation is completed, when the erasing operation of the starting block is completed, multi-plane read operation is carried out, a read blank expected value is set for each read operation, a blank judgment interface is packaged, and the blank judgment interface judges a blank actually read by the read operation; In the blank scene, the expected result is set in such a way that if two block blocks are operated for SINGLE PLANE reading, the blank expected value is set to 1 when the block number operated at this time is even, and the blank expected value is set to 2 when the block number operated is odd; s02), sending a read command, and sending the read commands in different modes according to data preparation; S03), returning a result, namely returning whether to read the empty pages and the number of the empty pages according to the transmitted read command, wherein the returned data is called a test result; S04), data processing analysis, namely comparing and analyzing the test result with the expected result, and comparing whether the test result is consistent with the expected result, if so, the blank page test method is correct, and if not, the blank page test method is incorrect.
  2. 2. The method of claim 1, wherein different empty page scenes are constructed by erasing, writing data, and reading in different modes.
  3. 3. The method for verifying the NANDFlash controller empty page test method according to claim 1, wherein the verification process of inconsistency between the block of the written data and the block of the read data comprises selecting an even block of the erased block number, writing the data, and respectively performing different modes of read operation on the block and the block with the block number of +1 to verify the empty page read number; Under the blank scene, the setting mode of the expected result is SINGLE PLANE reading, if the block operated at this time is even, the blank expected value is set to 0, if the block operated at this time is odd, the blank expected value is 2, multi-plane reading is carried out, and the blank expected value is set to 2.
  4. 4. The method for verifying the NANDFlash controller empty page test method according to claim 1, wherein the verification process of the NANDFlash controller empty page test method is characterized in that the verification process of the NANDFlash controller empty page test method comprises the steps of selecting a flash memory type different from writing data, performing a read operation on the block, returning a command execution failure, generating an LDPC check error phenomenon, verifying LDPC data check errors caused by non-empty pages if the empty page number is 0, and verifying LDPC data check errors caused by empty pages if the empty page number is greater than or equal to 1.
  5. 5. The method for verifying the NANDFlash controller blank test method according to claim 1, wherein the verification process for correctly writing and reading data comprises the steps of 1 erasing even block, writing data to block +1, performing SINGLE PLANE read operations on the two blocks respectively, performing multi-plane read, verifying the blank read number, setting a blank expected value to be 1 when the block for operation is even when SINGLE PLANE read, setting a blank expected value to be 0 when the block for operation is odd, setting a blank expected value to be 1 when the block for operation is odd, 2 writing data to even block, performing multi-plane read, verifying the blank read number, and setting a blank expected value to be 0 when the block for operation is odd.
  6. 6. The method for verifying the NANDFlash controller empty page test method according to claim 1, wherein the initialization information comprises nand storage organization structure information, and the channel, chip, lun, block number, the transmission size and the transmission mode of the operation are determined.

Description

Verification method of NANDflash controller empty page test method Technical Field The invention relates to the field of storage, in particular to the field of storage test, and specifically relates to a verification method of an empty page test method of a NANDflash controller. Background NAND FLASH is one of flash memories, has the advantages of high writing speed, large capacity and the like, and is widely applied to various solid state disks. NAND FLASH read data by page, in order to determine whether a storage page is written with data, an empty page detection module is usually provided, for example, a controller performs Low Density Parity Check (LDPC) decoding verification by storing a page codeword, so as to identify an empty page in NAND FLASH, and an empty page detection algorithm is relatively complex, so that to ensure that the function is correct, the empty page detection function in the NAND FLASH controller needs to be verified in detail. Disclosure of Invention The technical problem to be solved by the invention is to provide a verification method of an empty page test method of a NANDflash Controller, which verifies whether a flash memory Controller (NAND FLASH Controller, namely NFC) can effectively identify an empty page (a page without data storage is called an empty page), and improves the reliability of a system. In order to solve the technical problem, the technical scheme adopted by the invention is that a verification method of an empty page test method of a NANDflash controller comprises the following steps: a verification method of a NANDflash controller blank page test method comprises the following steps: S01), data preparation, initializing information and constructing different empty page scenes; s02), sending a read command, and sending the read commands in different modes according to data preparation; S03), returning a result, namely returning whether to read the empty pages and the number of the empty pages according to the transmitted read command, wherein the returned data is called a test result; S04), data processing analysis, namely comparing and analyzing the test result with the expected result, and comparing whether the test result is consistent with the expected result, if so, the blank page test method is correct, and if not, the blank page test method is incorrect. Further, different empty page scenes are constructed by erasing, writing data, and reading operations of different modes. Furthermore, the empty page scene comprises direct reading without writing data after erasing, inconsistent block of writing data and read data block, different types of read-write flash memory and correct data writing and reading. Further, the verification process of directly reading the data without writing after erasing is that, starting from the initial block serial number, for each round of operation, a single erasing operation is firstly sent to the NANDflash controller, after the erasing operation is completed, a SINGLE PLANE reading operation is sent, when the starting block is completely erased, a multi-plane reading operation is carried out, for each reading operation, a read blank expected value is set, and a blank judgment interface is packaged, and the blank judgment interface judges the blank actually read by the reading operation; In the blank scene, the expected result is set in such a way that if two blocks are operated for SINGLE PLANE reads, the blank expected value is set to 1 when the block number of the operation is even, and is set to 2 when the block number of the operation is odd, the multi-plane read, and the blank expected value is set to 3. Further, the verification process of the inconsistency of the block for writing data and the block for reading data comprises the steps of selecting an even number of erased blocks, writing data, respectively performing different modes of read operation on the blocks and the block with the block number of +1, and verifying the reading number of empty pages; Under the blank scene, the setting mode of the expected result is SINGLE PLANE reading, if the block operated at this time is even, the blank expected value is set to 0, if the block operated at this time is odd, the blank expected value is 2, multi-plane reading is carried out, and the blank expected value is set to 2. Further, the verification process of the read-write flash memory type is that the flash memory type different from the write-in data is selected, the read operation is carried out on the block, the NANDflash controller returns a command execution failure, an LDPC verification error phenomenon occurs, if the empty page number is 0, the verification is not the LDPC data verification error caused by the empty page, and if the empty page number is greater than or equal to 1, the verification is the LDPC data verification error caused by the empty page number. Further, the verification process of correct data writing and reading comprises the steps of 1,