Management apparatus, management method, and management program

The management device uses an error correction unit to optimize flash memory rewrites by addressing wear leveling issues, enhancing system performance and extending memory life through simplified processing.

JP2024143815AInactive Publication Date: 2024-10-11LAPIS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023056713
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing flash memory systems face issues with reduced program area due to wear leveling software requirements, increased processing time, and potential performance delays, which are not adequately addressed by existing techniques.

Method used

A management device and method utilizing an error correction unit to manage flash memory rewrites by correcting and rewriting addresses based on ECC circuit feedback, thereby optimizing write destinations to extend memory life and reduce processing complexity.

Benefits of technology

The solution allows for simpler processing to manage flash memory rewrites, preserving system performance and extending the life of the flash memory by reducing the need for additional program area and processing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024143815000001_ABST
    Figure 2024143815000001_ABST
Patent Text Reader

Abstract

To provide a management apparatus, a management method, and a management program capable of managing the number of times a nonvolatile memory is rewritten by using an error correction unit with simpler processing.SOLUTION: The management apparatus provided with a processor manages writing of data to a nonvolatile memory having an address storage area in which an address representing a write destination of data is stored. The processor is configured to: read the address from the address storage area via an error correction unit when writing the data; rewrite the address written in the address storage area and then write the data to the area of the nonvolatile memory indicated by the rewritten address when the error correction unit corrects the address; and write the data to the area of the nonvolatile memory indicated by the address written in the address storage area when the error correction unit does not correct the address.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a management device, a management method, and a management program. [Background technology]

[0002] In general, semiconductor memories and microcomputers have built-in non-volatile memory to store programs and data. For example, if there is a program that rewrites specific data once per second, 3600 rewrites will occur in one hour, and a non-volatile memory that can be rewritten 10,000 times will exceed its maximum number of rewrites in about six hours. On the other hand, flash memory, a common non-volatile memory, deteriorates its memory elements due to repeated erasing and writing, and its lifespan is considered to be several thousand to tens of thousands of rewrites. Therefore, as a method to extend the number of rewrites of flash memory, a method is adopted in which the rewrite area is made wide and a process (wear leveling) is performed by software to prevent data rewrites from concentrating on a specific address within that area, thereby extending the number of rewrites. When this method is adopted, problems arise in that the design of the software that performs wear leveling and the memory area that stores it, as well as the CPU (Central Processing Unit) circuit and processing time that run this software during rewrites are required.

[0003] This problem will be explained by taking a flash memory as an example of a representative non-volatile memory. A memory system 100 including a conventional flash memory and peripheral circuits for controlling them basically has a circuit configuration shown in FIG. 4. The conventional memory system 100 shown in FIG. 4 includes a CPU 110 that issues read and write instructions to the flash memory, a memory controller 112 that writes and reads data to the flash memory 114 in response to instructions from the CPU 110, an ECC (Error-Correction Code) circuit 116, and a test circuit 118 to which ECC correction information is input. The flash memory 114 generally includes a program area 120 and a data area 122. As a method for extending the number of rewrites of the flash memory 114, the data area 122 is set wide based on information such as the upper limit data on the number of rewrites of the memory element of the flash memory 114. Then, the CPU 110 executes software stored in the program area 120 to perform a process (wear leveling) that prevents rewrites from concentrating on a specific address in the area.

[0004] However, when wear leveling is performed by software, the man-hours required to develop wear leveling software for extending the number of rewrites are required in addition to the software that realizes the application operation, which is the original purpose, and a program area is required to store the software, which causes problems of reducing the original program area. Also, depending on the complexity of the software, processing by the CPU 110 can take time, and a delay for the wear leveling process occurs every time reading or writing to the flash memory 114, which causes problems that lead to a decrease in system performance.

[0005] Therefore, a technique is known that extends the number of times the flash memory 114 can be rewritten by utilizing an error correction unit such as the ECC circuit 116. For example, Literature 1 describes a technique for extending the life of a flash memory, in which the degree of wear of a memory cell is measured according to the number of bits that have been subjected to error correction, the use of the memory is changed according to the degree of wear, and if the degree of wear is severe, the use of that cell is prohibited and it is managed as a defective block.

[0006] Furthermore, for example, Literature 2 describes a technique for determining whether or not a column defect has occurred based on the ECC result of data read from a NAND flash memory in order to deal with a column defect occurring in a nonvolatile semiconductor device.

[0007] For example, Literature 3 describes a technique for using an error-correcting code algorithm to identify one or more memory cells that have errors among memory cells, and for frequently refreshing the memory cells identified as having errors. [Prior art documents] [Patent documents]

[0008] [Patent Document 1] JP 2015-138498 A [Patent Document 2] JP 2006-48777 A [Patent Document 3] JP 2016-115354 A Summary of the Invention [Problem to be solved by the invention]

[0009] As described above, when performing wear leveling using software, it is necessary to develop wear leveling software for extending the number of rewrites in addition to the software that realizes the application operation, which is the original purpose. In addition, a program area is required to store the software, which causes a problem of reducing the original program area. In addition, depending on the complexity of the software, processing may take time, and a delay for wear leveling processing may occur every time reading or writing to the flash memory, which may lead to a problem of reduced system performance.

[0010] However, the techniques described in Patent Documents 1 to 3 are not sufficient to solve the above problems, and there is a demand for a technique that allows management of the number of times a non-lifetime memory is rewritten with a simpler process.

[0011] The present disclosure aims to provide a management device, a management method, and a management program that can manage the number of rewrites of a non-volatile memory using an error correction unit through simpler processing. [Means for solving the problem]

[0012] In order to achieve the above-mentioned object, in the management device of the present disclosure, a processor provided in the management device manages the writing of data to a non-volatile memory having an address storage area in which an address indicating the destination to which the data is to be written is stored, and when writing the data, the processor reads the address from the address storage area via an error correction unit, and if the error correction unit corrects the address, the processor rewrites the address written in the address storage area and then writes the data to the area of ​​the non-volatile memory indicated by the rewritten address, and if the error correction unit does not correct the address, the processor writes the data to the area of ​​the non-volatile memory indicated by the address written in the address storage area.

[0013] In addition, in order to achieve the above-mentioned object, the management method disclosed herein is a management method by a processor provided in a management device that manages the writing of data to a non-volatile memory having an address storage area in which an address indicating the destination to which the data is to be written is stored, and when writing the data, the address is read from the address storage area via an error correction unit, and if the error correction unit corrects the address, the address written in the address storage area is rewritten, and then the data is written to the area of ​​the non-volatile memory indicated by the rewritten address, and if the error correction unit does not correct the address, the data is written to the area of ​​the non-volatile memory indicated by the address written in the address storage area.

[0014] In addition, in order to achieve the above-mentioned object, the management program of the present disclosure is intended to cause a processor provided in a management device that manages the writing of data to a non-volatile memory having an address storage area in which an address indicating the destination to which the data is to be written is to execute a process of reading the address from the address storage area via an error correction unit when writing the data, and if the error correction unit corrects the address, rewriting the address written in the address storage area, and then writing the data to the area of ​​the non-volatile memory indicated by the rewritten address, and if the error correction unit does not correct the address, writing the data to the area of ​​the non-volatile memory indicated by the address written in the address storage area. Effect of the Invention

[0015] According to the present disclosure, the number of times a non-volatile memory is rewritten can be managed by a simpler process using an error correction unit. [Brief description of the drawings]

[0016] [Figure 1] 1 is a block diagram illustrating an example of a configuration of a memory system according to an embodiment. [Diagram 2]1 is a circuit diagram illustrating an example of a portion of a configuration of a memory system according to an embodiment. [Diagram 3] 11 is a flowchart illustrating an example of the flow of a management process executed in a CPU. [Figure 4] FIG. 1 is a block diagram illustrating an example of a configuration of a conventional memory system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. Note that the technology of the present disclosure is not limited to the following embodiments.

[0018] First, an example of the configuration of a memory system according to the present embodiment will be described with reference to Fig. 1. Fig. 1 shows a block diagram illustrating an example of the configuration of a memory system 1 according to the present embodiment. The memory system 1 according to the present embodiment is a system that writes and reads data to and from a flash memory 14. As shown in Fig. 1, the memory system 1 according to the present embodiment includes a CPU 10, a memory controller 12, a flash memory 14, an ECC (Error-Correction Code) circuit 16, and a test circuit 18. The flash memory 14 according to the present embodiment is an example of a non-volatile memory according to the present disclosure.

[0019] The CPU 10 has a function of controlling writing and reading of data to and from the flash memory 14. The memory controller 12 has a function of generating control signals and address signals according to the specifications of the flash memory 14 in response to instructions from the CPU 10. The ECC circuit 16 has a function of correcting errors in data to be written to the flash memory 14 and data read from the flash memory 14 in response to instructions from a test circuit 18. The ECC circuit 16 of this embodiment is an example of an error correction unit of the present disclosure.

[0020] Next, a description will be given of management of the number of rewrites of the flash memory 14 by the CPU 10 of the present embodiment. Note that the CPU 10 of the present embodiment is an example of a processor of the present disclosure, and a device including the CPU 10 of the present embodiment is an example of a management device of the present disclosure.

[0021] First, with reference to Fig. 2, an outline of the flow when data is written to the flash memory 14 under the control of the CPU 10 and an outline of the flow when data is read from the flash memory 14 will be described. As shown in Fig. 2, the memory controller 12 includes a write address register 30 and a write data register 32. The flash memory 14 also includes a program area 20 in which software programs including a management processing program executed by the CPU 10, the details of which will be described later, are stored, and a data area 22 in which various data are stored.

[0022] As shown in FIG. 2, when writing data to the flash memory 14, the address of the flash memory 14 to which the data is to be written is output from the CPU 10 to the memory controller 12. The address output from the CPU 10 is stored in the write address register 30. Also, data to be written to the flash memory 14 is output from the CPU 10 to the memory controller 12. The data output from the CPU 10 is stored in the write data register 32. Hereinafter, the data stored in the write data register 32 is referred to as "write data: W data" as shown in FIG. 2, since it is data to be written to the flash memory 14. Also, the "address" may indicate the destination to which data is written or the source from which data is read. When distinguishing between these, the former is called a "write address" and the latter is called a "read address". On the other hand, when referring to them collectively, they are simply called "addresses".

[0023] The memory controller 12 stores the write data stored in the write data register 32 in the data area 22 corresponding to the write address stored in the write address register 30 via the ECC circuit 16. The ECC circuit 16 has a function of correcting errors in the input data and outputting the error-corrected data and information indicating whether the error has been corrected. The ECC circuit 16 can correct, for example, a 1-bit error in 16-bit data.

[0024] On the other hand, when reading data stored in the flash memory 14, the memory controller 12 reads the data stored at the address in the data area 22 of the flash memory 14 indicated by the read address output from the CPU 10 via the ECC circuit 16, and outputs it to the CPU 10. Hereinafter, the data read from the flash memory 14 and output to the CPU 10 will be referred to as "read data: R data" as shown in FIG.

[0025] As described above, for example, if the ECC circuit 16 can correct a 1-bit error in 16-bit data, even if there is a 1-bit data error in the read data read from the flash memory 14, the error is corrected by the ECC circuit 16, and the read data with the corrected error is output to the CPU 10. Therefore, the CPU 10 can operate without any problems. In the memory system 1 of this embodiment, a signal indicating whether or not the ECC circuit 16 has made the correction as described above for the read data read from the flash memory 14 (hereinafter, referred to as "ECC correction presence / absence information") is output from the ECC circuit 16 to the CPU 10. In the ECC circuit 16 of this embodiment, when the value of the ECC correction presence / absence information is "0", it indicates that no correction has been made, and on the other hand, when the value of the ECC correction presence / absence information is "1", it indicates that a correction has been made.

[0026] When writing write data to the flash memory 14, the CPU 10 of this embodiment uses ECC correction presence / absence information to manage the number of rewrites of the flash memory 14. Fig. 3 shows a flowchart illustrating an example of the flow of management processing executed by the CPU 10. The management processing shown in Fig. 3 is executed by the CPU 10 executing a management processing program (not shown) stored in the program area 20 of the flash memory 14. The management processing shown in Fig. 3 is executed when writing data to the flash memory 14.

[0027] In step S100 of Fig. 3, the CPU 10 causes the memory controller 12 to read data from address A (see Fig. 2) in the data area 22 of the flash memory 14. A write address at which writing of write data is to be started is stored in address A of the data area 22 of the flash memory 14. In this embodiment, in the initial state, "address X" is stored as a write address in address A. Address A of the data area 22 in this embodiment is an example of an address storage area of ​​the present disclosure.

[0028] In the next step S102, the CPU 10 causes the memory controller 12 to store the data read from address A of the data area 22 in the write address register 30 of the memory controller 12. In the initial state, as described above, address X is stored as a write address in address A of the data area 22, so address X is written to the write address register 30.

[0029] In the next step S104, the CPU 10 reads data (read data) from the address of the data area 22 indicated by the write address stored in the write address register 30. When the read data is read from the memory controller 12 as described above, the data is read via the ECC circuit 16, and ECC correction presence / absence information is output to the CPU 10.

[0030] Therefore, in the next step S106, the CPU 10 determines whether or not a correction has been made by the ECC circuit 16 based on the value indicated by the ECC correction information. In this embodiment, when the value indicated by the ECC correction information is "1", this indicates that a correction has been made. Therefore, when the value indicated by the ECC correction information is "1", the determination in step S106 is positive, and the process proceeds to step S108.

[0031] As described above, even if an error occurs in the read data, the CPU 10 may be able to operate without any problems due to correction by the ECC circuit 16. However, if there is an error in the data read from the flash memory 14, it is possible that the address from which the data was read has deteriorated due to repeated writing and erasing of data, etc.

[0032] Therefore, in this embodiment, in order to control so as not to perform writing to addresses that are considered to be degraded, in step S108, the CPU 10 causes the memory controller 12 to add "1" to the write address stored in the write address register 30.

[0033] In the next step S110, the CPU 10 causes the memory controller 12 to add "1" to the data (write address) stored at address A in the data area 22 of the flash memory 14, and then proceeds to step S112. For example, as described above, if, in the initial state, "address X" is stored as the write address at address A, and the ECC correction presence / absence information for the read data read from address X is "1", i.e., indicating that a correction has been made, then in this step, the data at address A (write address) is rewritten to address "X+1".

[0034] On the other hand, if the ECC correction information corresponding to the read data read from address X of the data area 22 indicates "0", that is, if no correction has been made, it can be assumed that no degradation has occurred in the address from which the read data was read. In this case, the determination in step S106 is negative, and the process proceeds to step S112.

[0035] In step S 112 , the CPU 10 stores the write data to be written to the flash memory 14 in the write data register 32 of the memory controller 12 .

[0036] When the write data is stored in the write data register 32 in this manner, the memory controller 12 writes the write data stored in the write data register 32 to an address in the data area 22 of the memory controller 12 indicated by the write address stored in the write address register 30.

[0037] For example, in the above initial state, when the process proceeds to step S112 after step S110, the memory controller 12 writes the read data to address X+1 in the data area 22. On the other hand, in the above initial state, when the process proceeds to step S112 after the determination in step S106 is negative, the memory controller 12 writes the read data to address X in the data area 22.

[0038] In the next step S114, the CPU 10 determines whether or not to finish writing the write data to the flash memory 14. If not, the determination in step S114 is negative, and the process proceeds to step S116.

[0039] In step S116, the CPU 10 causes the memory controller 12 to add "1" to the write address stored in the write address register 30, and then returns to step S112. As a result, the write data is written in sequence to the next address.

[0040] On the other hand, if writing of the write data into the flash memory 14 is to be completed, the determination in step S114 becomes positive, and the management process shown in FIG. 3 ends.

[0041] As described above, the CPU 10 in the above embodiment is a processor for managing writing of write data to the flash memory 14 having address A of the data area 22 where a write address indicating the write destination of the write data is stored. When writing data, the CPU 10 reads the write address from address A of the data area 22 via the ECC circuit 16. If the CPU 10 corrects the write address read by the ECC circuit 16, the CPU 10 rewrites the write address written in address A of the data area 22, and then writes the write data to the address of the data area 22 indicated by the rewritten address. If the CPU 10 does not correct the write address read by the ECC circuit 16, the CPU 10 writes the write data to the address of the data area 22 indicated by the write address written in address A of the data area 22.

[0042] That is, according to the CPU 10 of this embodiment, the configuration of the memory system 1 can be compared with a conventional memory system (see memory system 100 in FIG. 4) so ​​that the CPU 10 can determine the value of the ECC correction presence / absence information output from the ECC circuit 16.

[0043] Therefore, according to the CPU 10 of this embodiment, the number of times the flash memory 14 has been rewritten using the ECC circuit 16 can be managed through simpler processing.

[0044] In this way, according to the CPU 10 of this embodiment, the number of rewrites of the flash memory 14 can be managed using the ECC circuit 16 by a simpler configuration and management process of the memory system 1. Therefore, the area of ​​the program area 20 of the flash memory 14 required for storing the processing program of the management process can be reduced. In addition, the processing time of the CPU 10 required for the management process can be relatively short, so that the number of rewrites of the flash memory 14 can be managed while suppressing a decrease in performance of the memory system 1.

[0045] Furthermore, according to the CPU 10 of this embodiment, the number of times the flash memory 14 is rewritten can be appropriately managed, so that the life of the flash memory 14 can be extended.

[0046] In the above, a description has been given of a form in which a value of the ECC correction information of "0" indicates that no correction has been made, and a value of the ECC correction information of "1" indicates that a correction has been made, but the relationship between the specific value of the ECC correction information and the presence or absence of a correction is not limited to this form. For example, a form in which a value of the ECC correction information of "1" indicates that no correction has been made, and a value of the ECC correction information of "0" indicates that a correction has been made may also be used.

[0047] In the above, a configuration has been described in which a deteriorated area (address) of the data area 22 is not used by adding (incrementing) "1" to the write address stored in address A, but this is not limited to this configuration. For example, if the ECC correction presence / absence information indicates that a correction has been made, "2" may be added to the write address stored in address A. Also, for example, if the ECC correction presence / absence information indicates that a correction has been made, "1" may be subtracted (decremented) from the write address stored in address A. Regardless of whether increment or decrement is used, it is preferable to update the write address stored in address A using the value indicated by the ECC correction presence / absence information.

[0048] Furthermore, the configurations and operations of the CPU 10, memory controller 12, flash memory 14, ECC circuit 16, etc. described in each of the above embodiments are merely examples, and it goes without saying that they can be modified according to circumstances without departing from the spirit of the present invention.

[0049] The following supplementary notes are further disclosed regarding the above embodiment. (Appendix 1) A processor included in a management device that manages writing of data to a non-volatile memory having an address storage area in which an address indicating a data write destination is stored, When writing the data, the address is read from the address storage area via an error correction unit; when the error correction unit corrects the address, rewriting the address written in the address storage area, and then writing the data in an area of ​​the non-volatile memory indicated by the rewritten address; If the error correction unit does not correct the address, the data is written to an area of ​​the non-volatile memory indicated by the address written in the address storage area. Management device.

[0050] (Appendix 2) The processor, Rewrite the address by incrementing or decrementing the address 2. The management device of claim 1.

[0051] (Appendix 3) When the error correction unit corrects the data, the error correction unit outputs a value other than 0, which represents the correction; The processor, Rewrite the address by adding or subtracting the value. 3. The management device according to claim 1 or 2.

[0052] (Appendix 4) The error correction unit is an ECC circuit. 4. A management device according to any one of claims 1 to 3.

[0053] (Appendix 5) A management method by a processor included in a management device that manages writing of data to a non-volatile memory having an address storage area in which an address indicating a data write destination is stored, the method comprising: When writing the data, the address is read from the address storage area via an error correction unit; when the error correction unit corrects the address, rewriting the address written in the address storage area, and then writing the data in an area of ​​the non-volatile memory indicated by the rewritten address; If the error correction unit does not correct the address, the data is written to an area of ​​the non-volatile memory indicated by the address written in the address storage area. Management method.

[0054] (Appendix 6) A processor of a management device that manages writing of data to a non-volatile memory having an address storage area in which an address indicating a data write destination is stored, When writing the data, the address is read from the address storage area via an error correction unit; when the error correction unit corrects the address, rewriting the address written in the address storage area, and then writing the data in an area of ​​the non-volatile memory indicated by the rewritten address; If the error correction unit does not correct the address, the data is written to an area of ​​the non-volatile memory indicated by the address written in the address storage area. A management program for executing processes. [Explanation of symbols]

[0055] 1. Memory System 10 CPU 12 Memory Controller 14. Flash Memory 16 ECC circuit 20 Program Areas 22 Data Area

Claims

1. A processor included in a management device that manages writing of data to a non-volatile memory having an address storage area in which an address indicating a data write destination is stored, When writing the data, the address is read from the address storage area via an error correction unit; when the error correction unit corrects the address, rewriting the address written in the address storage area, and then writing the data in an area of ​​the non-volatile memory indicated by the rewritten address; If the error correction unit does not correct the address, the data is written to an area of ​​the non-volatile memory indicated by the address written in the address storage area. Management device.

2. The processor, Rewrite the address by incrementing or decrementing the address The management device according to claim 1 .

3. When the error correction unit corrects the data, the error correction unit outputs a value other than 0, which represents the correction; The processor, Rewrite the address by adding or subtracting the value. The management device according to claim 1 .

4. The error correction unit is an ECC circuit. The management device according to claim 1 .

5. A management method by a processor included in a management device that manages writing of data to a non-volatile memory having an address storage area in which an address indicating a data write destination is stored, the method comprising: When writing the data, the address is read from the address storage area via an error correction unit; when the error correction unit corrects the address, rewriting the address written in the address storage area, and then writing the data in an area of ​​the non-volatile memory indicated by the rewritten address; If the error correction unit does not correct the address, the data is written to an area of ​​the non-volatile memory indicated by the address written in the address storage area. Management method.

6. A processor of a management device that manages writing of data to a non-volatile memory having an address storage area in which an address indicating a data write destination is stored, When writing the data, the address is read from the address storage area via an error correction unit; when the error correction unit corrects the address, rewriting the address written in the address storage area, and then writing the data in an area of ​​the non-volatile memory indicated by the rewritten address; If the error correction unit does not correct the address, the data is written to an area of ​​the non-volatile memory indicated by the address written in the address storage area. A management program for executing processes.

Citation Information

Patent Citations

  • NAND flash memory and data writing method

    JP2006048777A

  • Error correction coding device and method of flash memory

    JP2015138498A

  • Nonvolatile memory refresh

    JP2016115354A