Simulator supporting FLASH page replacement and bad page test
By randomly generating bad page information in the FLASH emulator and controlling the erase, write, and read operations of the RDN and MAIN areas in the bad page information BAK area, the problem of insufficient verification of the bad page replacement mechanism in the FLASH chip is solved, and development and testing are improved. efficiency.
Patent Information
- Application Number
- CN202410921140.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-22
AI Technical Summary
In FLASH chips, due to manufacturing process and packaging technology limitations, some memory cells cannot be erased and written normally. The existing technology has deficiencies in the verification of the replacement mechanism of RDN pages and MAIN pages, especially when the FLASH controller and IP are jointly managed. In this case, it is difficult to fully verify the bad page replacement function.
Design an emulator that supports FLASH page replacement and bad page testing. By randomly generating bad page information area data during power-on and reading it into the bad page information BAK area, the FLASH controller controls the RDN area based on the contents of the BAK area. Or the erase, write and read operation of the MAIN area. The emulator software realizes the rotation of bad pages in the RDN and MAIN areas by modifying the contents of the BAK area and completes the functional test of the bad page replacement mechanism.
The emulator simplifies software program debugging and bad page replacement function testing, improves the development and testing efficiency of FLASH products, and ensures effective verification of RDN and MAIN page replacement mechanisms.
Smart Images

Figure CN118824344A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of chip emulators, and in particular to an emulator supporting FLASH page replacement and bad page testing. Background Art
[0002] As a non-volatile memory, FLASH is limited by manufacturing process and packaging technology, which may cause some storage units in the main storage area of FLASH to be unable to be erased and written normally, that is, the address of a certain page or multiple pages cannot be used normally. In order to enhance the reliability of FLASH products, many chip manufacturers use the redundant storage area (RDN area) unit in the chip to replace the storage unit in the main storage area (MAIN area) that cannot be erased and written, so as to continue to complete the erasing function of the chip main storage area to meet the application data storage needs.
[0003] Before leaving the factory, the main storage unit of FLASH products must be tested. If a bad storage unit is detected, the bad page information is marked and replaced with the RDN unit, and it can be used as a normal storage unit. There are currently two design methods for FLASH RDN page management. One is to manage the RDN page and replace the bad page in the FLASH IP, and the other is to complete the RDN page management and bad page replacement operations in the FLASH IP together with the FLASH controller through interface signals. If the RDN page is managed and the bad page is replaced in the FLASH IP, the design and verification are easy, and it is easy to perform functional testing; if the RDN page is jointly managed by the FLASH IP and the FLASH controller to replace the bad page, it poses new challenges in the FLASH functional verification.
[0004] Based on the verification requirements of FLASH chip software and hardware collaborative development, most FLASH chips need to be verified and debugged on the FLASH emulator for FLASH functions and bad page replacement functions. General FLASH emulators use FPGA (Field Programmable Gate Array) to simulate the functions of FLASH chips and complete basic functional commands such as FLASH erase, write, and read. In order to enhance the reliability and flexibility of FLASH products, many FLASH IP manufacturers use RDN pages to be jointly managed by FLASH controllers and FLASH IP. Due to differences between different design manufacturers and verification environments, there is a problem of insufficient FLASH verification in the replacement mechanism of RDN pages and MAIN pages.
[0005] In view of the above problems, the present invention proposes an emulator that supports FLASH page replacement and bad page testing. The emulator randomly generates bad page information area data during power-on, and reads the bad page information area data into the bad page information BAK area. The FLASH controller controls the erase and read operations on the RDN area or the MAIN area according to the content of the bad page information BAK area during erase and read operations. The emulator software implements the bad page rotation traversal of the RDN and MAIN areas by modifying the content of the bad page information BAK area, and completes the functional test of the bad page replacement mechanism of the FLASH controller. The present invention facilitates software program debugging and bad page replacement function testing, and improves the development and testing efficiency of FLASH products. Summary of the invention
[0006] The invention solves the problem of how to realize the functions of RDN and MAIN page replacement and bad page test in a FLASH emulator, so as to realize the functional simulation of bad page replacement of a FLASH chip.
[0007] To achieve the above functions, the simulator of the present invention includes a FLASH controller and a FLASH simulator. The FLASH controller includes a bad page information BAK area, and the FLASH simulator includes a FLASH interface processing module, a bad page information random generation module, an erase / read control module, a bad page information area, an RDN data area, and a MAIN data area. The FLASH controller implements the erase / read operation function of the RDN data area or the MAIN data area according to the content of the bad page information BAK area.
[0008] The bad page information random generation module is connected to the bad page information area and generates the bad page information data of the FLASH during the power-on process of the emulator.
[0009] The FLASH interface processing module is connected to the FLASH controller and the erase / read control module to complete interface signal processing and data conversion.
[0010] The erase / read control module is connected with the FLASH interface processing module, the RDN data area, the MAIN data area and the bad page information area to realize the FLASH erase / read function and the bad page replacement function. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Attached Figure 1 It is a structural diagram of the FLASH emulator of the present invention.
[0012] Attached Figure 2 It is a flow chart of initializing the bad page information area of the FLASH emulator of the present invention.
[0013] Attached Figure 3 It is a flow chart of the page erase and write operation of the FLASH emulator of the present invention.
[0014] Attached Figure 4It is a data reading flow chart of the FLASH emulator of the present invention. DETAILED DESCRIPTION
[0015] In order to better understand the present invention, its functional principle is described in detail below with reference to the accompanying drawings.
[0016] As attached Figure 1 As shown, it is a structural diagram of the FLASH emulator of the present invention. The emulator includes a FLASH controller bad page information BAK area, a FLASH interface processing module, a bad page information random generation module, an erase and read control module, a bad page information area, an RDN area and a MAIN area. The FLASH interface processing module is connected to the FLASH controller and the erase and read control module to complete interface signal processing and data conversion. The erase and read control module is connected to the FLASH interface processing module, the RDN area, the MAIN area and the bad page information area to realize the FLASH erase and read function and the bad page replacement function. The bad page information random generation module is connected to the bad page information area to realize the generation of bad page information data during the power-on process of the emulator.
[0017] The simulator is divided into the power-on PORn bad page information processing stage and the normal FLASH erase and read stage. Figure 2 This is a flow chart of the bad page information area initialization of the FLASH emulator of the present invention. The emulator randomly generates bad page information area data during the bad page information processing stage of power-on PORn, and the FLASH controller reads the bad page information area data to the bad page information BAK area of the FLASH controller through the FLASH interface module. At the same time, after the emulator completes the bad page information BAK area of the FLASH controller after power-on, the emulator software can modify the content of the bad page information BAK area according to the bad page test requirements, realize the bad page rotation in the RDN and MAIN areas, and complete the functional test of the FLASH bad page replacement mechanism.
[0018] Attached Figure 3 It is a flow chart of the page erase and write operation of the FLASH emulator of the present invention. When the emulator is performing FLASH page erase and write, the FLASH controller converts the logical address and the page address number, and determines whether the page address number is in the bad page information BAK area. If the page address number is in the bad page information BAK area, the FLASH controller controls the emulator to perform the page erase and write operation in the RDN area, otherwise the FLASH controller controls the emulator to perform the page erase and write operation in the MAIN area.
[0019] Attached Figure 4This is a data reading flow chart of the FLASH emulator of the present invention. When the emulator performs a FLASH read operation, the FLASH controller converts the logical address and the page address number, and determines whether the page address number is in the bad page information BAK area. If the page address number is in the bad page information BAK area, the FLASH controller controls the emulator to perform a data reading operation in the RDN area, otherwise the FLASH controller controls the emulator to perform a data reading operation in the MAIN area.
[0020] The emulator supports 4 pages in the RDN area and supports the replacement of up to 4 bad pages in the MAIN area. The number of words in the bad page information area is consistent with the number of pages in the RDN area.
Claims
1. An emulator supporting FLASH page replacement and bad page testing, comprising a FLASH controller and a FLASH emulator, wherein: The FLASH controller includes a bad page information BAK area, and the FLASH emulator includes a FLASH interface processing module, a bad page information random generation module, an erase / write / read control module, a bad page information area, an RDN data area, and a MAIN data area; the FLASH controller is connected to the FLASH emulator, and implements erase / write / read operations on the RDN data area and the MAIN data area in the FLASH emulator according to the content of the bad page information BAK area in the FLASH controller; The bad page information random generation module is connected to the bad page information area and generates bad page information data of FLASH during power-on; The FLASH interface processing module is connected to the FLASH controller and the erase / read control module to complete interface signal processing and data conversion; The erasable and read control module is connected with the FLASH interface processing module, the RDN data area, the MAIN data area and the bad page information area to realize the FLASH erasable and read function and the bad page replacement function.
2. The simulator according to claim 1, characterized in that The simulator is divided into the power-on PORn bad page information processing stage and the normal FLASH erase and read stage.
3. The simulator according to claim 2, characterized in that During the bad page information processing phase at power-on PORn, the bad page information random generation module randomly generates bad page information area data, and the FLASH controller reads the bad page information area data to the bad page information BAK area of the FLASH controller through the FLASH interface module, and identifies the bad page physical page number and bad page valid bit information in the MAIN area respectively.
4. The simulator according to claim 2, characterized in that When the emulator is erasing the FLASH page normally, the erase and write control module of the emulator implements the page erase and write function of the RDN data area or the MAIN data area based on the read and write control of the FLASH controller.
5. The simulator according to claim 2, characterized in that When the emulator performs normal FLASH read operations, the erase and read control module of the emulator implements the data reading function of the RDN area and the MAIN area based on the read and write control of the FLASH controller.
6. The simulator according to claim 1, characterized in that The data content of the bad page information BAK area is modified through the simulator software to realize the bad page rotation traversal in the MAIN area and complete the functional test of the FLASH bad page replacement mechanism.
7. The simulator according to claim 1, characterized in that The emulator supports the replacement of 4 pages in the RDN area and up to 4 bad pages in the MAIN area.
8. The simulator according to claim 1, characterized in that The number of words in the bad page information area is consistent with the number of pages in the RDN area.
