Decoding device, memory device, communication device, program, and decoding method
The decoding device and method address the inefficiency of existing data restoration techniques by using error correction decoding processes to reduce data requirements and minimize memory access, enhancing storage efficiency and data accuracy.
Patent Information
- Application Number
- JP2023052774
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Existing data restoration techniques require a significant amount of data to achieve accurate restoration, which can lead to inefficient use of storage and increased access frequency to non-volatile memory.
A decoding device and method that performs first and second error correction decoding processes on data stored in non-volatile memory, utilizing additional code bits to restore data with reduced data requirements, thereby reducing the amount of data needed for restoration and minimizing memory access.
The proposed solution allows for the efficient restoration of data with reduced data requirements, improving storage utilization and reducing the frequency of memory access, while maintaining data accuracy.
Smart Images

Figure 2024141243000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technique for restoring data. [Background technology]
[0002] Patent Documents 1 and 2 disclose techniques relating to data encoding and decoding. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2016-99838 A [Patent Document 2] JP 2015-142381 A Summary of the Invention [Problem to be solved by the invention]
[0004] There is room for improvement in data recovery technology.
[0005] Therefore, the present disclosure has been made in consideration of the above points, and has an object to provide a technique capable of reducing the amount of data required to restore multiple pieces of data. [Means for solving the problem]
[0006] One embodiment of the decoding device includes a decoding unit. The decoding unit executes a first decoding process by performing a first error correction decoding on first code bit-containing data including a first code bit obtained by a first error correction coding on the first data and an information bit to restore the first data. The decoding unit executes a second decoding process by performing a second error correction decoding on second code bit-containing data including a second code bit obtained by a second error correction coding on second data similar to the first data and the information bit or the first data restored by the first decoding process to restore the second data. The information bit is the first data or intermediate data more similar to the first data than the second data.
[0007] Moreover, one aspect of a memory device includes the above-mentioned decoding device, and a non-volatile memory that stores information bits, first code bits, and second code bits used in the first decoding process and the second decoding process executed by the decoding device. The decoding device executes the first decoding process and the second decoding process using the information bits, first code bits, and second code bits read from the non-volatile memory.
[0008] Also, one aspect of a communication device includes the above-mentioned decoding device and a communication unit that receives information bits, first code bits, and second code bits used in the first decoding process and the second decoding process executed by the decoding device. The decoding device executes the first decoding process and the second decoding process using the information bits, first code bits, and second code bits received by the communication unit.
[0009] Moreover, one aspect of the program is for causing a computer device to function as the above-mentioned decoding device.
[0010] Also, one aspect of the decoding method is a decoding method in an apparatus. In the decoding method, a first decoding process is performed to restore the first data by performing a first error correction decoding on first code bit-containing data including a first code bit obtained by a first error correction coding on the first data and an information bit. In the decoding method, a second decoding process is performed to restore the second data by performing a second error correction decoding on second code bit-containing data including a second code bit obtained by a second error correction coding on second data similar to the first data and an information bit or the first data restored by the first decoding process. The information bit is the first data or intermediate data more similar to the first data than the second data. Effect of the Invention
[0011] The amount of data required to restore the first data and the second data can be reduced. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a schematic diagram illustrating an example of a data processing system. [Diagram 2] FIG. 2 is a schematic diagram illustrating an example of data. [Diagram 3] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Figure 4] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Diagram 5] FIG. 2 is a schematic diagram illustrating an example of data including a sign bit. [Figure 6] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 7] FIG. 2 is a schematic diagram illustrating an example of data. [Figure 8] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 9] FIG. 2 is a schematic diagram showing an example of a relationship between a plurality of pieces of data. [Figure 10] FIG. 2 is a schematic diagram showing an example of a relationship between a plurality of pieces of data. [Figure 11] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 12] FIG. 2 is a schematic diagram illustrating an example of data. [Figure 13] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 14] FIG. 2 is a schematic diagram illustrating an example of data. [Figure 15] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 16] FIG. 2 is a schematic diagram illustrating an example of data. [Figure 17] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 18] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Figure 19] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 20] FIG. 2 is a schematic diagram illustrating an example of data. [Figure 21] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Figure 22] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Diagram 23] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 24] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Diagram 25] FIG. 2 is a schematic diagram illustrating an example of data. [Figure 26] FIG. 2 is a schematic diagram illustrating an example of data. [Figure 27] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Figure 28] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 29] FIG. 2 is a schematic diagram illustrating an example of data. [Diagram 30] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Diagram 31] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Diagram 32] FIG. 2 is a schematic diagram illustrating an example of data. [Diagram 33] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Diagram 34]FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Diagram 35] FIG. 4 is a schematic diagram illustrating an example of the operation of an encoding unit. [Diagram 36] FIG. 4 is a schematic diagram showing an example of the operation of a decoding unit. [Figure 37] FIG. 1 is a schematic diagram illustrating an example of a data processing system. [Figure 38] FIG. 1 is a schematic diagram illustrating an example of a data processing system. [Figure 39] FIG. 1 is a schematic diagram illustrating an example of a data processing system. [Diagram 40] FIG. 1 is a schematic diagram illustrating an example of a data processing system. [Diagram 41] FIG. 1 is a schematic diagram illustrating an example of a data processing system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] <Outline of an example of a data processing system> FIG. 1 is a diagram showing an example of the configuration of a data processing system 1. As shown in FIG. 1, the data processing system 1 includes, for example, a host device 2 and a memory device 3. The host device 2 is a higher-level device that controls the memory device 3. The memory device 3 is, for example, a nonvolatile memory device. The memory device 3 has, for example, a nonvolatile memory 31. The memory device 3 may be configured by one semiconductor chip or may be configured by multiple semiconductor chips. The memory device 3 can also be called a semiconductor memory device.
[0014] The host device 2 centrally manages the operation of the entire data processing system 1. The host device 2 can be said to be the main body of the data processing system 1. The host device 2 can communicate with the memory device 3 directly, for example, without going through a network.
[0015] The host device 2 can read data from the memory device 3 and write data to the memory device 3. For example, when the host device 2 instructs the memory device 3 to read data, the memory device 3 reads data from the non-volatile memory 31 and outputs it to the host device 2. The host device 2 performs processing using the data from the memory device 3. For example, the host device 2 may process the data read from the memory device 3 and output it to the outside, or may perform other processing. When the host device 2 instructs the memory device 3 to write data, the memory device 3 writes the data from the host device 2 into the non-volatile memory 31. Data in this disclosure is digital data consisting of at least one bit.
[0016] <Host device configuration example> The host device 2 includes, for example, a control unit 20, a storage unit 21, and an interface 23. The host device 2 is, for example, a computer device.
[0017] The interface 23 can directly communicate with an interface 33 (described later) provided in the memory device 3. The interface 23 can also be referred to as, for example, an interface circuit. The interface 23 can also be referred to as, for example, a communication unit or a communication circuit. The interface 23 may perform wired communication with the interface 33 of the memory device 3, or may perform wireless communication. The interface 23 may perform serial communication with the interface 33, or may perform parallel communication. The host device 2 that communicates with the memory device 3 can be referred to as a communication device 2.
[0018] The control unit 20 can comprehensively manage the operation of the host device 2 by controlling other components of the host device 2. The control unit 20 can also be called, for example, a control circuit. The control unit 20 includes, for example, at least one processor. The at least one processor includes, for example, a CPU (Central Processing Unit).
[0019] The control unit 20 can issue write and read instructions to the memory device 3 through the interface 23. The control unit 20 can generate data to be written to the memory device 3, and cause the interface 23 to transmit the generated data. The control unit 20 can obtain data output by the memory device 3 upon receiving a read instruction, through the interface 23. The control unit 20 performs processing using the data received by the interface 23 from the memory device 3.
[0020] The storage unit 21 may include a non-transitory recording medium readable by the CPU of the control unit 20, such as a read only memory (ROM) and a random access memory (RAM). The storage unit 21 stores, for example, a program 21a for controlling the host device 2. Various functions of the control unit 20 are realized, for example, by the CPU of the control unit 20 executing the program 21a in the storage unit 21.
[0021] The configuration of the host device 2 is not limited to the above example. For example, the control unit 20 may include multiple CPUs. The control unit 20 may also include at least one DSP (Digital Signal Processor). All or some of the functions of the control unit 20 may be realized by a hardware circuit that does not require software to realize the function. The storage unit 21 may also include a computer-readable non-transitory recording medium other than ROM and RAM.
[0022] The host device 2 may also include a display unit such as a liquid crystal display. In this case, the host device 2 may display data read from the memory device 3 on the display unit. The host device 2 may also include an input unit that accepts user input. The input unit may include, for example, a mouse and a keyboard, a touch sensor that detects a user's touch operation, or a microphone that accepts a user's voice input.
[0023] <Example of memory device configuration> The memory device 3 includes, for example, a control unit 30, a non-volatile memory 31, a volatile memory 32, and an interface 33.
[0024] The interface 33 is capable of communicating with the interface 23 of the host device 2. The interface 33 may be, for example, an interface circuit. The interface 33 may also be, for example, a communication unit or a communication circuit. The memory device 3 that communicates with the host device 2 may be a communication device 3.
[0025] The control unit 30 can generally manage the operation of the memory device 3 by controlling other components of the memory device 3. The control unit 30 can also be called, for example, a control circuit. The control unit 30 includes, for example, at least one processor. The at least one processor includes, for example, a CPU.
[0026] The nonvolatile memory 31 is, for example, a flash memory. The nonvolatile memory 31 is, for example, a NAND flash memory. The nonvolatile memory 31 stores, for example, a program 31a for controlling the memory device 3. Various functions of the control unit 30 are realized, for example, by the CPU of the control unit 30 executing the program 31a in the nonvolatile memory 31.
[0027] The volatile memory 32 is, for example, a RAM. The volatile memory 32 functions as, for example, a work memory when the control unit 30 processes data.
[0028] When the control unit 30 receives a read instruction from the host device 2 through the interface 33, it reads data from the nonvolatile memory 31. Then, the control unit 30 causes the read data to be transmitted to the interface 33. Furthermore, when the control unit 30 receives a write instruction and data from the host device 2 through the interface 33, it writes the received data into the nonvolatile memory 31. Note that the control unit 30 may write data that it has generated itself into the nonvolatile memory 31.
[0029] The configuration of the memory device 3 is not limited to the above example. For example, the control unit 30 may include multiple CPUs or at least one DSP. All or some of the functions of the control unit 30 may be realized by a hardware circuit that does not require software to realize the function. The control unit 30 may also include a computer-readable non-transitory recording medium other than the non-volatile memory 31 and the volatile memory 32.
[0030] <About decrypting data in memory devices> Retention (also called data retention) and read disturb are known characteristics of non-volatile memory such as NAND flash memory. Retention is a phenomenon in which electrons stored in a memory cell are lost over time, causing the bit value of stored data to change from "0" to "1", resulting in a data error. As the time that has passed since data was stored in non-volatile memory (in other words, the data retention time) becomes longer, the number of error bits in that data tends to increase. A bit value of "0" in stored data means that the memory cell is charged, and a bit value of "1" in stored data means that the memory cell is not charged.
[0031] On the other hand, read disturb is a phenomenon that occurs when data is read from a non-volatile memory, in which the value of a bit of stored data changes from "1" to "0," resulting in a data error. As the number of times data is read from a non-volatile memory increases, the number of error bits in the data tends to increase.
[0032] In this example, the non-volatile memory 31 stores error correction coded data. The control unit 30 performs error correction decoding on the data read from the non-volatile memory 31 to restore the original data (in other words, correct data). The control unit 30 causes the interface 33 to transmit the restored data. This allows the control unit 30 to obtain the correct data (in other words, the original data) even if an error occurs in the data stored in the non-volatile memory 31 due to retention and read disturb.
[0033] The control unit 30 includes a decoding unit 300 that performs error correction decoding on data read from the nonvolatile memory 31. The control unit 30 can be said to be a decoding device that includes the decoding unit 300. The decoding unit 300 is a functional block that is realized, for example, by the CPU of the control unit 30 executing a program 31a in the nonvolatile memory 31. Note that all or some of the functions of the decoding unit 300 may be realized by a hardware circuit that does not require software to realize the function.
[0034] <First example> 2 is a schematic diagram showing data 10 stored in non-volatile memory 31. Data 10 includes, for example, data 100A consisting of multiple bits, a sign bit 110A, and a sign bit 110B. Data 100A, sign bit 110A, and sign bit 110B are stored in non-volatile memory 31 in correspondence with each other. Sign bit 110A and sign bit 110B may be considered to be added to data 100A, for example. Multiple pieces of data similar to data 10 may be stored in non-volatile memory 31.
[0035] The code bit 110A is a code bit obtained by error correction coding with the data 100A as an information bit. In other words, the code bit 110A is a code bit obtained by error correction coding of the data 100A. Data consisting of the data 100A as an information bit and the corresponding code bit 110A can be said to be error correction coded data obtained by error correction coding of the data 100A. Error correction coded data is also simply called an error correction code.
[0036] On the other hand, the code bit 110B is a code bit obtained by error correction coding using data 100B (see FIG. 3 described later) similar to the data 100A as an information bit. In other words, the code bit 110B is a code bit obtained by error correction coding of the data 100B. Data consisting of the data 100B as an information bit and the corresponding code bit 110B can be said to be error correction coded data (in other words, an error correction code) obtained by error correction coding of the data 100B. The number of bits of the data 100B is the same as the number of bits of the data 100A, for example.
[0037] 3, data 100A and data 100B are error-correction coded by the coding unit 50. The coding unit 50 is provided in, for example, an external device located outside the data processing system 1. The coding unit 50 generates a code bit 110A by performing error-correction coding on the data 100A. The coding unit 50 also generates a code bit 110B by performing error-correction coding on the data 100B. The non-volatile memory 31 stores data 10 including the code bit 110A and the code bit 110B generated by the coding unit 50 of the external device.
[0038] The encoding unit 50 may be a functional block formed by a processor such as a CPU executing a program. In addition, all or some of the functions of the encoding unit 50 may be realized by a hardware circuit that does not require software to realize the function.
[0039] The error correction coding method for the data 100A and the data 100B (in other words, the error correction coding method used in generating the code bits 110A and the code bits 110B) may be, for example, a method for generating a BCH code (also called a BCH coding method). Also, the error correction coding method for the data 100A and the data 100B may be a method for generating a Low Density Parity Check (LDPC) code.
[0040] Furthermore, the error correction coding method for data 100A (in other words, the error correction coding method used in generating code bit 110A) and the error correction coding method for data 100B (in other words, the error correction coding method used in generating code bit 110B) may be the same as or different from each other.
[0041] For example, consider a case where the error correction coding method for the data 100A is the BCH coding method. In this case, when the data amount of the data 100A is 2048 bytes and the data amount of the code bits 110A is 244 bytes, the error correction capability using the code bits 110A is, for example, 126 bits.
[0042] 4, the decoding unit 300 performs error correction decoding on the data 100A and the code bit-containing data 120A including the code bit 110A included in the data 10 read from the non-volatile memory 31 to restore the data 100A. This allows the decoding unit 300 to obtain the original correct data 100A even if an error occurs in the data 100A stored in the non-volatile memory 31 due to retention or the like. It can be said that the code bit-containing data 120A is error correction coded data (in other words, an error correction code) obtained by performing error correction coding on the data 100A.
[0043] The error correction capability for error correction using the code 110A, that is, the number of error correctable bits (also called the number of correctable bits), is denoted as Ma. When the number of bits with errors in the code bit containing data 120A is equal to or less than the number of correctable bits Ma, the decoding unit 300 can restore the data 100A by performing error correction decoding on the code bit containing data 120A. For example, when Ma=126, the decoding unit 300 can restore the data 100A when the number of bits with errors in the code bit containing data 120A is equal to or less than 126 bits.
[0044] Hereinafter, the data and code bits read from the non-volatile memory 31 may be referred to as read data and read code, respectively.
[0045] 4, the decoding unit 300 performs error correction decoding on the data 100A and the code bit-containing data 120B including the code bit 110B included in the data 10 read from the nonvolatile memory 31, to restore the data 100B similar to the data 100A. In this example, the nonvolatile memory 31 stores the data 100A but does not store the data 100B.
[0046] Here, the number of bits whose values differ when bits at the same bit position between two pieces of data are compared is called the number of different bits. The number of different bits between the correct data 100A and the correct data 100B is called the first number of different bits L1. The first number of different bits L1 means the number of bits whose values differ when bits at the same bit position between the correct data 100A and the correct data 100B are compared. For example, when the values of the 1st, 50th, 100th, 200th, and 300th bits are different when the values of the same bit position between the correct data 100A and the correct data 100B are compared, the first number of different bits L1 is "5". In addition, the error correction capability for error correction using the code 110B, that is, the number of error correctable bits is Mb. The number of correctable bits Mb may be the same as or different from the number of correctable bits Ma of error correction using the code 110A.
[0047] The first number of different bits L1 is, for example, equal to or less than the number of correctable bits Mb. The first number of different bits L1 may be the same as the number of correctable bits Mb, or may be equal to or less than three-quarters of the number of correctable bits Mb, or may be equal to or less than two-thirds of the number of correctable bits Mb. The first number of different bits L1 may be equal to or less than half of the number of correctable bits Mb, or may be equal to or less than one-third of the number of correctable bits Mb, or may be equal to or less than one-quarter of the number of correctable bits Mb.
[0048] Moreover, a bit position where the bit value is different when bits at the same bit position are compared between two pieces of data is called a different bit position. Moreover, a different bit position between data 100A and data 100B is called a first different bit position. The first different bit position means a bit position where the bit value is different when bits at the same bit position are compared between data 100A and data 100B. Moreover, in data 100A, partial data consisting of all bits at the first different bit positions may be called first different partial data. For example, if the first different bit positions are the 1st bit, 50th bit, 100th bit, 200th bit, and 300th bit, in data 100A, partial data consisting of the 1st bit, 50th bit, 100th bit, 200th bit, and 300th bit is the first different partial data.
[0049] In addition, in the code bit containing data 120B, the partial data other than the first different partial data 121B in the read data 100A and the read code bit 110B may be collectively referred to as the first remaining partial data 122B. As shown in Fig. 5, the code bit containing data 120B is composed of the first different partial data 121B and the other first remaining partial data 122B. Hereinafter, simply referring to data 100B means the correct data 100B.
[0050] The correct data 100A can be regarded as data 100B in which errors occur by the number of bits equal to the first number of different bits L1. For example, when the first number of different bits L1 is 30 bits, the correct data 100A can be regarded as data 100B in which 30-bit errors occur. When no errors occur in the read data 100A, the read data 100A can be regarded as data 100B in which errors occur by the number of bits equal to the first number of different bits L1. Therefore, the read data 100A and the code bit-containing data 120B including the read code bit 110B can be regarded as error correction coded data obtained by performing error correction coding on the data 100B. Therefore, as in this example, if the number of correctable bits Mb of the error correction using the code bit 110B is equal to or greater than the first number of different bits L1, the decoding unit 300 can restore the data 100B by performing error correction decoding on the code bit-containing data 120B.
[0051] Hereinafter, the number of bits in which errors occur in data may be referred to as the number of error bits of the data. Also, a value obtained by subtracting the first difference bit number L1 from the number of correctable bits Mb is referred to as a first difference value N1. If the first difference bit number L1 is the same as the number of correctable bits Mb, N1=0. Also, the number of bits in which errors occur in the first difference part data 121B of the code bit containing data 120B is referred to as the first difference part error bit number X1. The first difference part error bit number X1 is equal to or smaller than the first difference bit number L1. Also, the number of bits in which errors occur in the first remaining part data 122B of the code bit containing data 120B is referred to as the first remaining part error bit number Y1.
[0052] When the first remaining portion error bit number Y1 is equal to or less than a value obtained by adding the first difference portion error bit number X1 to the first difference value N1, the decoding unit 300 can restore the data 100B by performing error correction decoding on the code bit containing data 120B. In other words, when the following formula (1) is satisfied, the decoding unit 300 can restore the data 100B by performing error correction decoding on the code bit containing data 120B.
[0053]
number
[0054] For example, consider the case where the first difference bit number L1=30 bits and the correctable bit number Mb=126 bits. In this case, N1=96 bits. When no error occurs in the first difference part data 121B of the code bit containing data 120B (i.e., when X1=0), if the number of error bits in the first remaining part data 122B of the code bit containing data 120B is 96 bits or less (i.e., when Y1≦96), the decoding unit 300 can restore the data 100B. In other words, when X1=0, the number of error bits allowed for the first remaining part data 122B to restore the data 100B is 96 bits.
[0055] On the other hand, when an error occurs in a bit at a certain bit position in the first different portion data 121B of the read data 100A, the value of the bit at that bit position in the read data 100A will match the value of the bit at that bit position in the data 100B. In other words, the value of the bit at that bit position in the first different portion data 121B will not differ from the value of the bit at that bit position in the data 100B. For example, when a 10-bit error occurs in the first different portion data 121B of the read data 100A (i.e., when X1=10), the read data 100A can be viewed as data 100B in which 20-bit (=30-bits-10-bits) errors occur, rather than data 100B in which 30-bit errors occur. Therefore, when an error of X1 bits occurs in the first different portion data 121B, the number of error bits allowed for the first remaining portion data 122B to restore the data 100B increases by X1 bits compared to when no error occurs in the first different portion data 121B. For example, when N1=96 bits and X1=10 bits, if the number of error bits in the first remaining portion data 122B is 106 (=96+10) bits or less, the decoding unit 300 can restore the data 100B. Therefore, when the above (1) is satisfied, the decoding unit 300 can restore the data 100B from the sign bit containing data 120B.
[0056] In this way, in this example, if the number of error bits in the first remaining portion data 122B of the code bit containing data 120B is at least equal to or less than the first difference value N1, the decoding section 300 can restore the data 100B from the code bit containing data 120B.
[0057] In addition, even if the first difference bit number L1 and the correctable bit number Mb match and the first difference value N1=0, when an error of X1 bits occurs in the first different portion data 121B of the read data 100A, the decoding unit 300 can restore the data 100B if the number of error bits in the first remaining portion data 122B of the read data 100A is X1 bits or less.
[0058] As described above, in this example, the decoding unit 300 can restore both the data 100A and the data 100B based on the data 100A, the code bit 110A, and the code bit 110B. Therefore, the data 100B is not necessary for the decoding unit 300 to restore the data 100A and the data 100B. Therefore, the amount of data required to restore the data 100A and the data 100B can be reduced.
[0059] Furthermore, since the control unit 30 does not need to read the data 100B from the nonvolatile memory 31, the frequency of access to the nonvolatile memory 31 can be reduced.
[0060] In this example, since both data 100A and data 100B can be restored from data 10 that contains only data 100A out of data 100A and data 100B, data 10 can also be considered as compressed data obtained by compressing data 100A and data 100B. Therefore, the utilization efficiency of the storage area of nonvolatile memory 31 can be improved compared to a case in which nonvolatile memory 31 stores both data 100A and data 100B.
[0061] 6, the decoding unit 300 may perform error correction decoding on the restored data 100A (also referred to as restored data 100A) and the code bit containing data 120BB including the read code bit 110B to restore the data 100B. In this case, since the restored data 100A does not contain an error, the decoding unit 300 can reliably restore the data 100B even if the number of correctable bits Mb is the same as the first number of different bits L1.
[0062] In the above example, in data 10, two sign bits are added to data 100A, but three or more sign bits may be added to data 100A.
[0063] FIG. 7 is a schematic diagram showing an example of data 10 (also called data 10a) in which four sign bits 110A, 110B, 110C, and 110D are added to data 100A.
[0064] The code bit 110C is a code bit obtained by error correction coding using data 100C similar to data 100A as an information bit. The above-mentioned encoding unit 50 performs error correction coding on the data 100C to generate the code bit 110C. The code bit 110D is a code bit obtained by error correction coding using data 100D similar to data 100A as an information bit. The encoding unit 50 performs error correction coding on the data 100D to generate the code bit 110D.
[0065] The number of bits of the data 100A, the data 100B, the data 100C, and the data 100D are, for example, the same as each other. The error correction coding method for at least two of the data 100A, the data 100B, the data 100C, and the data 100D may be the same as each other or different from each other.
[0066] The number of correctable bits in error correction using the code bit 110C is equal to or greater than the number of different bits between the correct data 100A and the correct data 100C. Similarly, the number of correctable bits in error correction using the code bit 110D is equal to or greater than the number of different bits between the correct data 100A and the correct data 100D. At least two of the numbers of correctable bits, the number of correctable bits in error correction using the code bit 110C, the number of correctable bits in error correction using the code bit 110D, the number of correctable bits Ma, and the number of correctable bits Mb, may be the same as each other or may be different from each other.
[0067] As shown in Fig. 4, the decoding unit 300 performs error correction decoding on the data 100A and the code bit containing data 120A including the code bit 110A included in the data 10a read from the non-volatile memory 31 to restore the data 100A. Also, the decoding unit 300 performs error correction decoding on the data 100A and the code bit containing data 120B including the code bit 110B included in the data 10a read from the non-volatile memory 31 to restore the data 100B. Alternatively, as shown in Fig. 6, the decoding unit 300 performs error correction decoding on the restored data 100A and the code bit containing data 120BB including the read code bit 110B to restore the data 100B.
[0068] 8, the decoding unit 300 performs error correction decoding on the data 100A and the code bit containing data 120C including the code bit 110C included in the data 10a read from the nonvolatile memory 31 to restore the data 100C. The decoding unit 300 also performs error correction decoding on the data 100A and the code bit containing data 120D including the code bit 110D included in the data 10a read from the nonvolatile memory 31 to restore the data 100D.
[0069] In the examples of Figures 7 and 8, data 100B, data 100C, and data 100D are each similar to data 100A, as shown in Figure 9. As shown in Figure 10, data 100B may be similar to data 100A, data 100C may be similar to data 100B, and data 100D may be similar to data 100C. Figure 11 is a schematic diagram showing an example of the operation of decoding unit 300 in this case.
[0070] 10 and 11, the number of correctable bits in error correction using the code bit 110C is equal to or greater than the number of different bits between the correct data 100B and the correct data 100C. Also, the number of correctable bits in error correction using the code bit 110D is equal to or greater than the number of different bits between the correct data 100C and the correct data 100D.
[0071] As shown in Fig. 11, the decoding unit 300 performs error correction decoding on the restored data 100A and the code bit containing data 120BB including the read code bit 110B to restore data 100B, similar to the example of Fig. 6 above. The decoding unit 300 also performs error correction decoding on the restored data 100B (also called restored data 100B) and the code bit containing data 120CC including the read code bit 110C to restore data 100C. The decoding unit 300 then performs error correction decoding on the restored data 100C (also called restored data 100C) and the code bit containing data 120DD including the read code bit 110D to restore data 100D.
[0072] In the examples of FIGS. 10 and 11, the data 100C, data 100B, and data 100D do not necessarily need to be similar to the data 100A, which increases the degree of freedom in selecting the data 100A, data 100B, data 100C, and data 100D.
[0073] <Second example> 12 is a schematic diagram showing data 11 stored in non-volatile memory 31. Data 11 includes, for example, data 100M and the above-mentioned sign bit 110A and sign bit 110B. Data 100M is data that is more similar to data 100A than to data 100B. Data 100M can be said to be, for example, intermediate data 100M between data 100A and data 100B.
[0074] The number of bits of data 100M, data 100A, and data 100B are, for example, the same as each other. Data 100M, sign bit 110A, and sign bit 110B are stored in non-volatile memory 31 in correspondence with each other. Sign bit 110A and sign bit 110B may be considered to be added to data 100M, for example. Non-volatile memory 31 may store a plurality of data similar to data 11. Furthermore, when data 11 is stored in non-volatile memory 31, the above-mentioned data 10 may or may not be stored in non-volatile memory 31.
[0075] Here, the number of different bits between correct data 100A and correct data 100M is defined as a second number of different bits L2. The second number of different bits L2 means the number of bits whose values differ when comparing bits at the same bit position between correct data 100A and correct data 100M.
[0076] The second number of different bits L2 between data 100A and data 100M is smaller than the first number of different bits L1 between data 100A and data 100B. The second number of different bits L2 may be, for example, half of the first number of different bits L1, or may be three-quarters or less of the first number of different bits L1, or may be two-thirds or less of the first number of different bits L1. The second number of different bits L2 may be one-third or less of the first number of different bits L1, or may be one-quarter or less of the first number of different bits L1.
[0077] Furthermore, the number of different bits between correct data 100M and correct data 100B is defined as a third number of different bits L3. The third number of different bits L3 = (L1 - L2). The third number of different bits L3 may be the same as the second number of different bits L2, or may be different. For example, if the second number of different bits L2 is half the first number of different bits L1, the third number of different bits L3 will be the same as the second number of different bits L2.
[0078] The second number of different bits L2 is equal to or smaller than the number of correctable bits Ma in error correction using the code bit 110A, and the third number of different bits L3 is equal to or smaller than the number of correctable bits Mb in error correction using the code bit 110B.
[0079] The decoding unit 300 restores the data 100A and data 100B based on the data 11 read from the nonvolatile memory 31. As shown in Fig. 13, the decoding unit 300 performs error correction decoding on the data 100M read from the nonvolatile memory 31 and the code bit containing data 130A including the code bit 110A to restore the data 100A. Also, as shown in Fig. 13, the decoding unit 300 performs error correction decoding on the read data 100M and the code bit containing data 130B including the code bit 110B to restore the data 100B. In this example, the nonvolatile memory 31 stores the data 100M but does not store the data 100A and the data 100B.
[0080] Here, the correct data 100M can be regarded as the data 100A in which the number of errors occurs equal to the second number of difference bits L2. For example, when the second number of difference bits L2 is 15 bits, the correct data 100M can be regarded as the data 100A in which 15-bit errors occur. When no errors occur in the read data 100M, the read data 100M can be regarded as the data 100A in which the number of errors occurs equal to the second number of difference bits L2. Therefore, the read data 100M and the code bit-containing data 130A including the read code bit 110A can be regarded as error correction coded data obtained by performing error correction coding on the data 100A. Therefore, as in this example, if the number of correctable bits Ma of the error correction using the code bit 110A is equal to or greater than the second number of difference bits L2, the decoding unit 300 can restore the data 100A by performing error correction decoding on the code bit-containing data 130A.
[0081] Similarly, the correct data 100M can be regarded as data 100B in which the same number of errors as the third number of different bits L3 have occurred. If no errors have occurred in the read data 100M, the read data 100M can be regarded as data 100B in which the same number of errors as the third number of different bits L3 have occurred. Therefore, as in this example, if the number of correctable bits Mb in the error correction using the code bit 110B is equal to or greater than the third number of different bits L3, the decoding unit 300 can restore the data 100B by performing error correction decoding on the code bit-containing data 130B.
[0082] The different bit positions between data 100M and data 100A are called second different bit positions. In data 100M, partial data consisting of bits at all second different bit positions may be called second different partial data. In sign bit containing data 130A, partial data other than the second different partial data in read data 100M and read sign bit 110A are collectively called second remaining partial data. Sign bit containing data 130A is composed of second different partial data and the other second remaining partial data.
[0083] Moreover, the value obtained by subtracting the second difference bit number L2 from the correctable bit number Ma is called the second difference value N2. Moreover, the number of bits in which errors occur in the second difference portion data of the code bit containing data 130A is called the second difference portion error bit number X2. The second difference portion error bit number X2 is equal to or smaller than the second difference bit number L2. Moreover, the number of bits in which errors occur in the second remaining portion data of the code bit containing data 130A is called the second remaining portion error bit number Y2.
[0084] As can be understood from the above description of the case where error correction decoding is performed on the code bit containing data 120B as in the example of Fig. 4, the decoding section 300 can restore the data 100A by performing error correction decoding on the code bit containing data 130A when the second remaining portion error bit number Y2 is equal to or less than the value obtained by adding the second difference value N2 and the second difference portion error bit number X2. In other words, when the following formula (2) is satisfied, the decoding section 300 can restore the data 100A by performing error correction decoding on the code bit containing data 130A.
[0085]
number
[0086] For example, consider the case where the second difference bit number L2=15 bits and the correctable bit number Ma=126 bits. In this case, N2=111 bits. When no error occurs in the second difference portion data in the code bit containing data 130A (i.e., when X2=0), if the number of error bits in the second remaining portion data of the code bit containing data 130A is 111 bits or less (i.e., when Y2≦111), the decoding unit 300 can restore the data 100A. In other words, when X2=0, the number of error bits allowed in the second remaining portion data to restore the data 100B is 111 bits.
[0087] On the other hand, when an X2-bit error occurs in the second difference portion data of the read data 100M, the read data 100M can be regarded as data 100A having an (L2-X2)-bit error, not data 100A having an L2-bit error. Therefore, when an X2-bit error occurs in the second difference portion data, the number of error bits allowed for the second remaining portion data to restore the data 100A increases by X2 bits compared to when no error occurs in the second difference portion data. For example, when N2=111 bits and X2=10 bits, if the number of error bits in the second remaining portion data is 121 (=111+10) bits or less, the decoding unit 300 can restore the data 100A.
[0088] In this way, if the number of error bits (ie, Y2) of the second remaining portion data of the code bit containing data 130A is at least equal to or less than the second difference value N2, the decoding section 300 can restore the data 100A from the code bit containing data 130A.
[0089] Next, the restoration of data 100B from the sign bit containing data 130B will be described. The different bit positions between data 100M and data 100B are called third different bit positions. In addition, in data 100M, partial data consisting of bits at all third different bit positions may be called third different partial data. In addition, in the sign bit containing data 130B, partial data other than the third different partial data in the read data 100M and the read sign bit 110B may be collectively called third remaining partial data. The sign bit containing data 130B is composed of the third different partial data and the other third remaining partial data.
[0090] Moreover, the value obtained by subtracting the third difference bit number L3 from the correctable bit number Mb is called the third difference value N3. Moreover, the number of bits in which errors occur in the third difference portion data of the code bit containing data 130B is called the third difference portion error bit number X3. Moreover, the number of bits in which errors occur in the third remaining portion data of the code bit containing data 130B is called the third remaining portion error bit number Y3.
[0091] When the following formula (3) is satisfied, the decoding section 300 can restore the data 100B by performing error correction decoding on the code bit containing data 130B.
[0092]
number
[0093] For example, consider the case where L3=15 bits and Mb=126 bits. In this case, N3=111 bits. When no error occurs in the third different portion data in the sign bit containing data 130B (i.e., when X3=0), if the number of error bits in the third remaining portion data of the sign bit containing data 130B is 111 bits or less (i.e., when Y3≦111), the decoding unit 300 can restore the data 100B. In other words, when X3=0, the number of error bits allowed in the third remaining portion data to restore the data 100B is 111 bits.
[0094] On the other hand, when an error of X3 bits occurs in the third difference portion data of the read data 100M, the read data 100M can be seen as data 100B having an error of (L3-X3) bits, not data 100B having an error of L3 bits. Therefore, when an error of X3 bits occurs in the third difference portion data, the number of error bits allowed for the third remaining portion data to restore the data 100B increases by X3 bits compared to when no error occurs in the third difference portion data. For example, when N3=111 bits and X3=5 bits, if the number of error bits in the third remaining portion data is 116 (=111+5) bits or less, the decoding unit 300 can restore the data 100B.
[0095] In this way, if the number of error bits in the third remaining portion data of the code bit containing data 130B is at least equal to or less than the third difference value N3, the decoding section 300 can restore the data 100B from the code bit containing data 130B.
[0096] Here, for example, consider the case where the number of correctable bits Ma is the same in the case where the data 100B is restored using the data 100M as in the example of FIG. 13 and the case where the data 100B is restored using the data 100A as in the example of FIG. 4, and X1=X3=0. In this case, as can be understood by comparing the formula (1) with the formula (3), the number of error bits allowed for the third remaining portion data of the code bit containing data 130B shown in FIG. 13 to restore the data 100B is larger by (L1-L3) than the number of error bits allowed for the first remaining portion data of the code bit containing data 120B shown in FIG. 4 to restore the data 100B. For example, in the case of L1=30 bits and L3=15 bits, the number of error bits allowed for the third remaining portion data to restore the data 100B is larger by 15 bits than the number of error bits allowed for the first remaining portion data to restore the data 100B. Therefore, when data 100M is used to restore data 100B, it becomes easier to restore data 100B than when data 100A is used to restore data 100B.
[0097] As in the above-mentioned Fig. 7, three or more code bits may be added to the data 100M in the data 11. For example, as shown in Fig. 14, a code bit 110A, a code bit 110B, a code bit 110C, and a code bit 110D may be added to the data 100M. In this case, the decoding unit 300 performs error decoding on the read data 100M and the code bit-containing data including the read code bit 110C to restore the data 100C. Also, the decoding unit 300 performs error decoding on the read data 100M and the code bit-containing data including the read code bit 110D to restore the data 100D.
[0098] Also, as in the above-mentioned FIG. 10, when the data 100C is similar to the data 100B and the data 100D is similar to the data 100C, as shown in FIG. 15, the decoding unit 300 may perform error correction decoding on the code bit containing data 120BB including the restored data 100A and the read code bit 110B to restore the data 100B, perform error correction decoding on the code bit containing data 120CC including the restored data 100B and the read code bit 110C to restore the data 100C, and perform error correction decoding on the code bit containing data 120DD including the restored data 100C and the read code bit 110D to restore the data 100D.
[0099] <Third Example> FIG. 16 is a schematic diagram showing data 12 stored in the non-volatile memory 31. The data 12 includes, for example, data 100A, the above-mentioned sign bit 110A, and the sign bit 111Aa1. The data 100A, the sign bit 110A, and the sign bit 111Aa1 are stored in the non-volatile memory 31 in correspondence with each other, for example. The sign bit 110A and the sign bit 111Aa1 may be considered to be added to the data 100A, for example. The non-volatile memory 31 may store a plurality of data similar to the data 12. In addition, when the data 12 is stored in the non-volatile memory 31, at least one of the above-mentioned data 10 and data 11 may or may not be stored in the non-volatile memory 31.
[0100] The code bit 111Aa1 is a code bit obtained by error correction coding of the data 100A including a prediction error in the data 100A (also referred to as prediction error-containing data 100Aa1). The coding unit 50 generates the prediction error-containing data 100Aa1 based on the prediction error data 200Aa1 indicating a prediction error in the data 100A and the correct data 100A. Then, the coding unit 50 performs error correction coding on the generated prediction error-containing data 100Aa1 to generate the code bit 111Aa1. The prediction error data 200Aa1 is, for example, data indicating a prediction error of a predetermined number P of bits in the data 100A. P is an integer equal to or greater than 1. The correct data 100A, the prediction error data 200Aa1, and the prediction error-containing data 100Aa1 have the same number of bits, for example. Hereinafter, the predetermined number P may be referred to as the number of predicted bits P.
[0101] 17 is a schematic diagram showing an example of the correct data 100A, the prediction error data 200Aa1, and the prediction error-containing data 100Aa1. The prediction error data 200Aa1 is, for example, data indicating the bit positions of a predetermined number P of bits predicted to cause an error in the data 100A. Here, the bit positions of bits predicted to cause an error in certain data are called prediction error bit positions. In the prediction error data 200Aa1, for example, for each of the predetermined number P of prediction error bit positions for the data 100A, the value of the bit at the same bit position as the prediction error bit position is "1". The predetermined number P is, for example, smaller than the number of bits of the data 100A.
[0102] 18, for example, the encoding unit 50 calculates an exclusive OR between the correct data 100A and the prediction error data 200Aa1, and sets the calculation result as the prediction error containing data 100Aa1. Then, the encoding unit 50 performs error correction coding on the prediction error containing data 100Aa1 to generate the code bit 111Aa1. The method of error correction coding for the prediction error containing data 100Aa1 (in other words, the method of error correction coding used in generating the code bit 110Aa1) may be the same as or different from the method of error correction coding for the data 100A (in other words, the method of error correction coding used in generating the code bit 110A).
[0103] In the prediction error containing data 100Aa1, the value of the bit at each prediction error bit position is inverted compared to the correct data 100 A. In the prediction error containing data 100Aa1 shown in Fig. 17, each bit at a predetermined number P of prediction error bit positions is underlined.
[0104] The non-volatile memory 31 stores the data 12, but does not store the prediction error containing data 100Aa1. The decoding unit 300 reconstructs the data 100A based on the data 12 read from the non-volatile memory 31.
[0105] Similarly to the above, the decoding unit 300 performs error correction decoding on the read data 100A and the code bit containing data 120A including the read code bit 110A to restore the data 100A. Hereinafter, the process of performing error correction decoding on the code bit containing data 120A may be referred to as a decoding process using the code bit 110A.
[0106] The decoding unit 300 also restores the original data 100A not containing a prediction error (i.e., correct data 100A) based on the data 100A read from the non-volatile memory 31, the code bit containing data 140Aa1 including the code bit 111Aa1, and the prediction error data 200Aa1. Specifically, as shown in Fig. 19, the decoding unit 300 performs error correction decoding on the read data 100A and the code bit containing data 140Aa1 including the read code bit 111Aa1 to restore the prediction error containing data 100Aa1. Then, the decoding unit 300 calculates an exclusive OR between the restored prediction error containing data 100Aa1 (also referred to as restored prediction error containing data 100Aa1) and the prediction error data 200Aa1, and the result of the calculation is regarded as the restored original data 100A. The prediction error data 200Aa1 used by the decoding unit 300 is not data stored in the non-volatile memory 31 but data generated by the control unit 30. Hereinafter, the process shown in Fig. 19 may be referred to as a decoding process using the code bit 111Aa1. Also, a code bit obtained by error correction coding of the data 100A including a prediction error, such as the code bit 111Aa1, may be referred to as a code bit based on an error prediction for restoring the data 100A.
[0107] Here, in the read data 100A, data consisting of bits at the P prediction error bit positions indicated by the prediction error data 200Aa1 is called the prediction target partial data. In addition, in the sign bit containing data 140Aa1, data other than the prediction target partial data in the read data 100A and the read sign bit 111Aa1 are collectively called the prediction target non-part data. The sign bit containing data 140Aa1 is composed of the prediction target partial data and the prediction target non-part data.
[0108] Among the P prediction error bit positions indicated by the prediction error data 200Aa1, the number of bit positions where an error actually occurs in the read data 100A is referred to as the number of successful prediction bits Q. The number of successful prediction bits Q indicates the number of bits where an error prediction is successful in the read data 100A. Among the P prediction error bit positions indicated by the prediction error data 200Aa1, the number of bit positions where an error does not actually occur in the read data 100A is referred to as the number of unsuccessful prediction bits R. The number of unsuccessful prediction bits R indicates the number of bits where an error prediction is unsuccessful in the read data 100A.
[0109] The number of correctable bits in the error correction using the code bit 111Aa1 is defined as Maa1. The value obtained by subtracting the number of prediction failure bits R from the number of correctable bits Maa1 is defined as a difference value S. The number of bits in which an error has occurred in the data outside the prediction target of the code bit containing data 140A is defined as the number of error bits outside the prediction target T.
[0110] When the number of error bits T outside the prediction target is equal to or smaller than the difference value S, the decoding unit 300 can restore the prediction error containing data 100Aa1 by performing error correction decoding on the code bit containing data 140Aa1. In other words, when the following formula (4) is satisfied, the decoding unit 300 can restore the prediction error containing data 100Aa1 by performing error correction decoding on the code bit containing data 140Aa1.
[0111]
number
[0112] As shown in FIG. 19 above, since the decoding unit 300 can restore the original data 100A from the restored prediction error-containing data 100Aa1, it can be said that the decoding unit 300 can restore the original data 100A when equation (4) is satisfied.
[0113] For example, consider a case where the number of prediction failure bits R=10 bits and the number of correctable bits Maa1=126 bits. In this case, the difference value S=116 bits. Therefore, if the number of bits in which errors occur in the non-prediction target data of the code bit containing data 140A (i.e., the number of error bits T in the non-prediction target data) is 116 bits or less, the decoding unit 300 can restore the original data 100A that does not include a prediction error.
[0114] 19 in the decoding unit 300 as a process of performing error correction on the read data 100A and the code bit containing data 140Aa1 including the read code bit 111Aa1 to restore the original data 100A, the substantial error correction ability of the decoding unit 300 can be regarded as the number of bits obtained by adding the difference value S to the number of successful prediction bits Q. However, even if the number of bits obtained by adding the difference value S to the number of successful prediction bits Q is 0 or more, if the number of error bits T outside the prediction target exceeds the difference value S, the decoding unit 300 cannot restore the original data 100A from the code bit containing data 140A.
[0115] For example, consider a case where the number of predicted bits P=200 bits, the number of successful prediction bits Q=200 bits, the number of unsuccessful prediction bits R=0 bits, and the number of correctable bits Maa1=126 bits. In this case, the prediction accuracy of the error prediction for the data 100A can be said to be 100%. Since the difference value S is 126 bits, the error correction capability of the decoding unit 300 is 326 bits, which exceeds the number of correctable bits Maa1 of error correction using the code bit 111Aa1. If the number of error bits T outside the prediction target is 126 bits or less, the decoding unit 300 can restore the original data 100A from the code bit containing data 140Aa1.
[0116] As another example, consider a case where the number of predicted bits P=200 bits, the number of successful prediction bits Q=160 bits, the number of unsuccessful prediction bits R=40 bits, and the number of correctable bits Maa1=126 bits. In this case, the prediction accuracy of the error prediction for the data 100A is 80%. Since the difference value S is 86 bits, the error correction capability of the decoding unit 300 is 246 bits, which exceeds the number of correctable bits Maa1. If the number of error bits T outside the prediction target is 86 bits or less, the decoding unit 300 can restore the original data 100A from the sign bit containing data 140Aa1.
[0117] As another example, consider a case where the number of predicted bits P=200 bits, the number of successful prediction bits Q=80 bits, the number of unsuccessful prediction bits R=120 bits, and the number of correctable bits Maa1=126 bits. In this case, the prediction accuracy of the error prediction for the data 100A is 40%. Since the difference value S is 6 bits, the error correction capability of the decoding unit 300 is 86 bits, which is less than the number of correctable bits Maa1. If the number of error bits T outside the prediction target is 6 bits or less, the decoding unit 300 can restore the original data 100A from the sign bit containing data 140Aa1.
[0118] As another example, consider a case where the number of predicted bits P=200 bits, the number of successful prediction bits Q=74 bits, the number of unsuccessful prediction bits R=126 bits, and the number of correctable bits Maa1=126 bits. In this case, the prediction accuracy of the error prediction for the data 100A is 37%. Since the difference value S is 0 bits, if no error occurs in the data outside the prediction target, the decoding unit 300 can restore the original data 100A from the sign bit containing data 140Aa1.
[0119] As another example, consider a case where the number of predicted bits P=200 bits, the number of successful prediction bits Q=40 bits, the number of unsuccessful prediction bits R=160 bits, and the number of correctable bits Maa1=126 bits. In this case, the prediction accuracy of the error prediction for the data 100A is 20%. Since the difference value S is −34 bits, which is a negative value, the decoding unit 300 cannot restore the original data 100A from the sign bit containing data 140Aa1.
[0120] The error prediction for the data 100A is performed based on, for example, the performance of the nonvolatile memory 31 that stores the data 100A. That is, the P prediction error bit positions indicated by the prediction error data 200Aa1 are determined based on, for example, the performance of the nonvolatile memory 31 that stores the data 100A.
[0121] For example, errors occurring in the data 100A when the number of times the data 100A is read from the non-volatile memory 31 is a predetermined number Va1 may be confirmed multiple times using an actual device or a simulation, and P prediction error bit positions may be determined from the results of the multiple confirmations. In this case, the P prediction error bit positions are the prediction error bit positions in the data 100A when the number of times the data 100A is read from the non-volatile memory 31 is the predetermined number Va1. Such an error prediction method for the data 100A may be called a prediction method based on the number of times of reading.
[0122] Also, errors occurring in the data 100A when the elapsed time since the data 100A was written to the non-volatile memory 31 becomes a predetermined time Wa1 may be checked multiple times using an actual device or simulation, and P prediction error bit positions may be determined from the multiple checking results. In this case, the P prediction error bit positions are the prediction error bit positions in the data 100A when the elapsed time since the data 100A was written to the non-volatile memory 31 becomes the predetermined time Wa1. Such an error prediction method for the data 100A may be called a prediction method based on elapsed time.
[0123] The decoding unit 300 executes, for example, a decoding process using the code bit 110A (see FIG. 4) and a decoding process using the code bit 111Aa1 (see FIG. 19) in parallel or sequentially based on the data 12 read from the non-volatile memory 31. When the original data 100A is restored by at least one of the decoding process using the code bit 110A and the decoding process using the code bit 111Aa1, the restored data 100A is transmitted to, for example, the host device 2.
[0124] Alternatively, the decoding unit 300 may first perform a decoding process using the code bit 110A, and if the decoding process using the code bit 110A fails to restore the data 100A, perform a decoding process using the code bit 111Aa1.
[0125] Furthermore, when an error prediction for the data 100A is performed using a prediction method based on the number of reads, the decoding unit 300 may determine whether to perform a decoding process using the code bit 110A or a decoding process using the code bit 111Aa1 based on the number of reads of the data 100A from the nonvolatile memory 31. For example, the decoding unit 300 may perform a decoding process using the code bit 110A when the number of reads of the data 100A from the nonvolatile memory 31 is less than a predetermined number Va1, and may perform a decoding process using the code bit 111Aa1 when the number of reads is equal to or greater than the predetermined number Va1.
[0126] Furthermore, when an error prediction for the data 100A is performed using a prediction method based on elapsed time, the decoding unit 300 may determine whether to execute a decoding process using the code bit 110A or a decoding process using the code bit 111Aa1 based on the elapsed time since the data 100A was written to the nonvolatile memory 31. For example, the decoding unit 300 may execute a decoding process using the code bit 110A when the elapsed time since the data 100A was written to the nonvolatile memory 31 is less than a predetermined time Wa1, and execute a decoding process using the code bit 111Aa1 when the elapsed time is equal to or greater than the predetermined time Wa1. In this case, the memory device 3 is provided with a timer that measures the elapsed time since the data 100A was written to the nonvolatile memory 31. The decoding unit 300 obtains the elapsed time since the data 100A was written to the nonvolatile memory 31 from the timer.
[0127] In this way, in this example, the original data 100A is restored based on the code bit containing data 140Aa1 including the data 100A and the code bit 111Aa1 obtained by error correction coding of the prediction error containing data 100Aa1 including a prediction error in the data 100A. This allows the decoding unit 300 to restore the data 100A even if an error with a number of bits larger than the number of correctable bits (e.g., 126 bits) in error correction using the code bit 111Aa1 occurs in the code bit containing data 140Aa1.
[0128] In the above example, one code bit based on error prediction for restoring the data 100A is added to the data 100A, but multiple code bits may be added. Fig. 20 is a schematic diagram showing data 12 (also referred to as data 12a) in which code bits 111Aa1, 110Aa2, and 111Aa3 based on error prediction for restoring the data 100A are added to the data 100A.
[0129] The code bit 111Aa2 is a code bit obtained by error correction coding of the data 100A (also called prediction-error containing data 100Aa2) containing a prediction error in the data 100A that is different from the prediction error contained in the prediction-error containing data 100Aa1. Hereinafter, the prediction error contained in the prediction-error containing data 100Aa1 may be referred to as the first prediction error. Also, the prediction error contained in the prediction-error containing data 100Aa2 may be referred to as the second prediction error.
[0130] The code bit 111Aa3 is a code bit obtained by error correction coding of the data 100A including a third prediction error in the data 100A (also referred to as prediction-error-containing data 100Aa3), which is different from the first prediction error and the second prediction error.
[0131] The encoding unit 50 generates the prediction error containing data 100Aa2 based on the prediction error data 200Aa2 indicating the second prediction error in the data 100A and the correct data 100A. In the prediction error data 200Aa2, as in the prediction error data 200Aa1, for each prediction error bit position in the second prediction error, the bit value at the same bit position as the prediction error bit position is "1". As shown in FIG. 21, for example, the encoding unit 50 calculates an exclusive OR between the correct data 100A and the prediction error data 200Aa2, and sets the calculation result as the prediction error containing data 100Aa2. Then, the encoding unit 50 performs error correction encoding on the prediction error containing data 100Aa2 to generate the code bit 111Aa2. The method of error correction encoding for the prediction error containing data 100Aa2 may be the same as or different from the method of error correction encoding for the data 100A. Furthermore, the method of error correction coding for the prediction error containing data 100Aa2 may be the same as or different from the method of error correction coding for the prediction error containing data 100Aa1.
[0132] The encoding unit 50 generates prediction error-containing data 100Aa3 based on prediction error data 200Aa3 indicating a third prediction error in data 100A and correct data 100A. In the prediction error data 200Aa3, as in the prediction error data 200Aa1, for each prediction error bit position in the third prediction error, the bit value at the same bit position as the prediction error bit position is "1". As shown in FIG. 22, for example, the encoding unit 50 calculates an exclusive OR between the correct data 100A and the prediction error data 200Aa3, and sets the calculation result as prediction error-containing data 100Aa3. Then, the encoding unit 50 performs error correction coding on the prediction error-containing data 100Aa3 to generate a code bit 111Aa3. The method of error correction coding for the prediction error-containing data 100Aa3 may be the same as or different from the method of error correction coding for the data 100A. The error correction coding method for the prediction error containing data 100Aa3 may be the same as or different from the error correction coding method for the prediction error containing data 100Aa1. The error correction coding method for the prediction error containing data 100Aa3 may be the same as or different from the error correction coding method for the prediction error containing data 100Aa2.
[0133] Since the first error prediction, the second error prediction, and the third error prediction are different from each other, the prediction error data 200Aa1, the prediction error data 200Aa2, and the prediction error data 200Aa3 are different from each other. Also, the prediction error containing data 100Aa1, the prediction error containing data 100Aa2, and the prediction error containing data 100Aa3 are different from each other.
[0134] The decoding unit 300 restores the original data 100A containing no prediction error based on the data 100A read from the non-volatile memory 31, the sign bit containing data 140Aa2 containing the sign bit 111Aa2, and the prediction error data 200Aa2. Specifically, as shown in FIG. 23, the decoding unit 300 performs error correction decoding on the sign bit containing data 140Aa2 to restore the prediction error containing data 100Aa2. Then, the decoding unit 300 calculates an exclusive OR between the restored prediction error containing data 100Aa2 (also called restored prediction error containing data 100Aa2) and the prediction error data 200Aa2, and sets the result of the calculation as the restored original data 100A. The prediction error data 200Aa2 used by the decoding unit 300 is not data stored in the non-volatile memory 31, but data generated by the control unit 30. Hereinafter, the process shown in FIG. 23 may be referred to as a decoding process using the code bit 111Aa2.
[0135] The decoding unit 300 also restores the original data 100A that does not contain a prediction error based on the data 100A read from the non-volatile memory 31, the sign bit containing data 140Aa3 including the sign bit 111Aa3, and the prediction error data 200Aa3. Specifically, as shown in FIG. 24, the decoding unit 300 performs error correction decoding on the sign bit containing data 140Aa3 to restore the prediction error containing data 100Aa3. Then, the decoding unit 300 calculates an exclusive OR between the restored prediction error containing data 100Aa3 (also referred to as restored prediction error containing data 100Aa3) and the prediction error data 200Aa3, and sets the result of the calculation as the restored original data 100A. The prediction error data 200Aa3 used by the decoding unit 300 is not data stored in the non-volatile memory 31, but data generated by the control unit 30. Hereinafter, the process shown in FIG. 24 may be referred to as a decoding process using the code bit 111Aa3.
[0136] The multiple prediction error bit positions indicated by the prediction error data 200Aa2 may be, for example, prediction error bit positions in the data 100A when the number of times the data 100A is read from the non-volatile memory 31 is a predetermined number Va2. The predetermined number Va2 is, for example, larger than the predetermined number Va1 related to the prediction error data 200Aa1.
[0137] Furthermore, the multiple prediction error bit positions indicated by the prediction error data 200Aa2 may be prediction error bit positions in the data 100A when a predetermined time Wa2 has elapsed since the data 100A was written to the non-volatile memory 31. The predetermined time Wa2 is, for example, greater than the predetermined time Wa1 related to the prediction error data 200Aa1.
[0138] The multiple prediction error bit positions indicated by the prediction error data 200Aa3 may be, for example, prediction error bit positions in the data 100A when the number of times the data 100A is read from the non-volatile memory 31 is a predetermined number Va3. The predetermined number Va3 is, for example, larger than the predetermined number Va1 and the predetermined number Va2.
[0139] Furthermore, the multiple prediction error bit positions indicated by the prediction error data 200Aa2 may be prediction error bit positions in the data 100A when a predetermined time Wa3 has elapsed since the data 100A was written to the non-volatile memory 31. The predetermined time Wa3 is, for example, greater than the predetermined time Wa1 and the predetermined time Wa2.
[0140] For example, based on data 12a read from non-volatile memory 31, the decoding unit 300 may perform a decoding process using code bit 110A, a decoding process using code bit 111Aa1, a decoding process using code bit 111Aa2, and a decoding process using code bit 111Aa3 in parallel or sequentially.
[0141] Furthermore, when each of the first prediction error, the second prediction error, and the third prediction error is a prediction error based on a prediction method based on the number of reads, or a prediction error based on a prediction method based on an elapsed time, the decoding unit 300 may first execute a decoding process using the code bit 110A, and when the decoding process using the code bit 110A fails to restore the data 100A, execute a decoding process using the code bit 111Aa1. Then, when the decoding process using the code bit 111Aa1 fails to restore the data 100A, the decoding unit 300 may execute a decoding process using the code bit 111Aa2. Then, when the decoding process using the code bit 111Aa2 fails to restore the data 100A, the decoding unit 300 may execute a decoding process using the code bit 111Aa3.
[0142] Furthermore, when each of the first prediction error, the second prediction error, and the third prediction error is a prediction error based on a prediction method based on the number of reads, the decoding unit 300 may determine which of the decoding process using the code bit 110A, the decoding process using the code bit 111Aa1, the decoding process using the code bit 111Aa2, and the decoding process using the code bit 111Aa3 to execute based on the number of reads of the data 100A from the nonvolatile memory 31. For example, when the number of reads of the data 100A from the nonvolatile memory 31 is less than a predetermined number Va1, the decoding unit 300 executes the decoding process using the code bit 110A, and when the number of reads is equal to or greater than the predetermined number Va1 and less than the predetermined number Va2, the decoding unit 300 executes the decoding process using the code bit 111Aa1. Then, the decoding unit 300 executes a decoding process using the code bit 110Aa2 when the number of times the data 100A has been read from the nonvolatile memory 31 is equal to or greater than the predetermined number Va2 and less than the predetermined number Va3, and executes a decoding process using the code bit 111Aa3 when the number of times the data 100A has been read from the nonvolatile memory 31. Hereinafter, the term "number of times of reading" simply refers to the number of times the data 100A has been read from the nonvolatile memory 31.
[0143] Furthermore, when each of the first prediction error, the second prediction error, and the third prediction error is a prediction error based on a prediction method based on elapsed time, the decoding unit 300 may determine which of the decoding process using the code bit 110A, the decoding process using the code bit 111Aa1, the decoding process using the code bit 111Aa2, and the decoding process using the code bit 111Aa3 to execute based on the elapsed time since the data 100A was written to the non-volatile memory 31. For example, when the elapsed time since the data 100A was written to the non-volatile memory 31 is less than a predetermined time Wa1, the decoding unit 300 executes the decoding process using the code bit 110A, and when the elapsed time is equal to or more than the predetermined time Wa1 and less than the predetermined time Wa2, the decoding unit 300 executes the decoding process using the code bit 111Aa1. The decoding unit 300 executes a decoding process using the code bit 110Aa2 if the elapsed time since the data 100A was written to the non-volatile memory 31 is equal to or longer than the predetermined time Wa2 and shorter than the predetermined time Wa3, and executes a decoding process using the code bit 111Aa3 if the elapsed time is equal to or longer than the predetermined time Wa3. Hereinafter, the elapsed time simply means the elapsed time since the data 100A was written to the non-volatile memory 31.
[0144] The first prediction error, the second prediction error, and the third prediction error may include a prediction error based on a prediction method based on the number of reads and a prediction error based on a prediction method based on the elapsed time. For example, consider a case where the first prediction error is a prediction error based on a prediction method based on the number of reads, and the second prediction error and the third prediction error are prediction errors based on a prediction method based on the elapsed time. In this case, for example, when the number of reads is less than a predetermined number Va1 and the elapsed time is less than a predetermined time Wa2, the decoding unit 300 executes a decoding process using the code bit 110A. Also, when the number of reads is equal to or greater than the predetermined number Va1 and the elapsed time is less than the predetermined time Wa2, the decoding unit 300 executes a decoding process using the code bit 111Aa1. Also, when the elapsed time is equal to or greater than the predetermined time Wa2 and less than the predetermined time Wa3, the decoding unit 300 executes a decoding process using the code bit 111Aa2. And when the elapsed time is equal to or greater than the predetermined time Wa2 and less than the predetermined time Wa3, the decoding unit 300 executes a decoding process using the code bit 111Aa3.
[0145] In the data 12, the above-mentioned code bit 110B may be added to the data 100A. FIG. 25 is a schematic diagram showing an example of the data 12 (also called data 12b) in which the code bit 110B is added to the data 100A. When the data 12b is stored in the non-volatile memory 31, the decoding unit 300 performs error correction decoding on the read data 100A and the code bit-containing data 120B including the read code bit 110B, for example, as described above, to restore the data 100B. Note that in the data 12a shown in FIG. 20, the code bit 110B may be added to the data 100A.
[0146] In addition, in the data 12, a code bit 111Bb1 obtained by error correction coding of data 100B including a prediction error in the data 100A (also referred to as prediction error-containing data 100Bb1) may be added to the data 100A. Fig. 26 is a schematic diagram showing an example of data 12 (also referred to as data 12c) in which the code bit 111Bb1 is added to the data 100A.
[0147] The encoding unit 50 generates prediction error-containing data 100Bb1, which is data 100B including a prediction error, based on prediction error data 200Ab1 indicating a prediction error in data 100A and correct data 100B. The prediction error indicated by the prediction error data 200Ab1 may be the same as the prediction error indicated by the prediction error data 200Aa1, or may be different. In the prediction error data 200Ab1, as in the prediction error data 200Aa1, for each prediction error bit position, the bit value at the same bit position as the prediction error bit position is set to "1". If the prediction error indicated by the prediction error data 200Ab1 is the same as the prediction error indicated by the prediction error data 200Aa1, the prediction error data 200Ab1 becomes the same data as the prediction error data 200Aa1. On the other hand, if the prediction error indicated by the prediction error data 200Ab1 is different from the prediction error indicated by the prediction error data 200Aa1, the prediction error data 200Ab1 is different from the prediction error data 200Aa1. The prediction error-containing data 100Bb1 can be said to be the data 100B in the case where the error predicted for the data 100A occurs in the data 100B.
[0148] As shown in FIG. 27, the encoding unit 50, for example, calculates an exclusive OR between the correct data 100B and the prediction error data 200Ab1, and sets the calculation result as the prediction error containing data 100Bb1. Then, the encoding unit 50 performs error correction coding on the prediction error containing data 100Bb1 to generate the code bit 111Bb1. The method of error correction coding for the prediction error containing data 100Bb1 may be the same as or different from the method of error correction coding for the data 100A. Furthermore, the method of error correction coding for the prediction error containing data 100Bb1 may be the same as or different from the method of error correction coding for the prediction error containing data 100Aa1. Furthermore, the method of error correction coding for the prediction error containing data 100Bb1 may be the same as or different from the method of error correction coding for the data 100B.
[0149] The decoding unit 300 restores correct data 100B containing no prediction error based on the data 100A read from the non-volatile memory 31, the sign bit containing data 140Bb1 containing the sign bit 111Bb1, and the prediction error data 200Ab1. Specifically, as shown in FIG. 28, the decoding unit 300 performs error correction decoding on the sign bit containing data 140Bb1 to restore the prediction error containing data 100Bb1. Then, the decoding unit 300 calculates an exclusive OR between the restored prediction error containing data 100Bb1 and the prediction error data 200Ab1, and the result of the calculation is the restored data 100B. The prediction error data 200Ab1 used by the decoding unit 300 is not data stored in the non-volatile memory 31, but data generated by the control unit 30. Hereinafter, the process shown in FIG. 28 may be referred to as a decoding process using the sign bit 111Bb1. Furthermore, a code bit obtained by error correction coding of the data 100B including a prediction error, such as the code bit 111Bb1, may be referred to as a code bit based on an error prediction for restoring the data 100B.
[0150] The multiple prediction error bit positions indicated by the prediction error data 200Ab1 may be, for example, prediction error bit positions in the data 100A when the number of times the data 100A is read from the non-volatile memory 31 is a predetermined number Vb1. The predetermined number Vb1 may be the same as or different from the predetermined number Va1.
[0151] Furthermore, the multiple prediction error bit positions indicated by the prediction error data 200Ab1 may be prediction error bit positions in the data 100A when a predetermined time Wb1 has elapsed since the data 100A was written to the non-volatile memory 31. The predetermined time Wb1 may be the same as or different from the predetermined time Wa1.
[0152] The decoding unit 300 may execute the decoding process using the code bits 110B (see FIG. 4) and the decoding process using the code bits 111Bb1 (see FIG. 28) in parallel or sequentially.
[0153] Alternatively, the decoding unit 300 may first perform a decoding process using the code bits 110B, and if the decoding process using the code bits 110B fails to restore the data 100B, perform a decoding process using the code bits 111Bb1.
[0154] Furthermore, when the prediction error indicated by the prediction error data 200Ab1 is a prediction error based on a prediction method based on the number of reads, the decoding unit 300 may determine whether to execute a decoding process using the code bit 110B or a decoding process using the code bit 111Bb1 based on the number of reads of the data 100A from the non-volatile memory 31. For example, the decoding unit 300 may execute a decoding process using the code bit 110B when the number of reads of the data 100A from the non-volatile memory 31 is less than a predetermined number Vb1, and execute a decoding process using the code bit 111Bb1 when the number of reads is equal to or greater than the predetermined number Vb1.
[0155] Furthermore, when the prediction error indicated by the prediction error data 200Ab1 is an error predicted using a prediction method based on elapsed time, the decoding unit 300 may determine whether to execute a decoding process using the code bit 110B or a decoding process using the code bit 111Bb1 based on the elapsed time since the data 100A was written to the non-volatile memory 31. For example, the decoding unit 300 may execute a decoding process using the code bit 110B when the elapsed time since the data 100A was written to the non-volatile memory 31 is less than a predetermined time Wb1, and execute a decoding process using the code bit 111Bb1 when the elapsed time is equal to or greater than the predetermined time Wb1.
[0156] In this way, in this example, the correct data 100B is restored based on the code bit containing data 140Bb1 including the data 100A and the code bit 111Bb1 obtained by error correction coding of the prediction error containing data 100Bb1, which is the data 100B including a prediction error in the data 100A. Therefore, as in the case where the data 100A is restored based on the code bit containing data 140Aa1, even if an error of a larger number of bits than the number of correctable bits (e.g., 126 bits) of the error correction using the code bit 111Bb1 occurs in the code bit containing data 140Bb1, the decoding unit 300 can restore the data 100B.
[0157] When the decoding unit 300 executes the decoding process using the code bit 111Aa1, it may execute error correction decoding on the code bit-containing data including the data 100A and the code bit 110B restored by the decoding process using the code bit 111Aa1, to restore the data 100B, as in the above-mentioned Fig. 6. In this case, the decoding unit 300 may not execute the decoding process using the code bit 111Bb1. When the decoding unit 300 does not execute the decoding process using the code bit 111Bb1, the code bit 111Bb1 becomes unnecessary.
[0158] Furthermore, the data 12c may not include the code bit 111Aa1 based on the error prediction for restoring the data 100A. Furthermore, a plurality of code bits based on the error prediction for restoring the data 100B may be added to the data 100A. Fig. 29 is a schematic diagram showing data 12 (also referred to as data 12d) in which the code bits 11Bb1 and 11Bb2 based on the error prediction for restoring the data 100B are added to the data 100A.
[0159] The encoding unit 50 generates prediction error-containing data 100Bb2, which is data 100B including a prediction error, based on prediction error data 200Ab2 indicating a prediction error in data 100A and correct data 100B. The prediction error indicated by the prediction error data 200Ab2 may be the same as or different from the prediction error indicated by the prediction error data 200Ab1. In the prediction error data 200Ab2, as in the prediction error data 200Aa1, for each prediction error bit position, the bit value at the same bit position as the prediction error bit position is set to "1".
[0160] 30, the encoding unit 50, for example, calculates an exclusive OR between the correct data 100B and the prediction error data 200Ab2, and sets the calculation result as the prediction error containing data 100Bb2. The encoding unit 50 then performs error correction coding on the prediction error containing data 100Bb2 to generate the code bit 111Bb2. The method of error correction coding for the prediction error containing data 100Bb2 may be the same as or different from the method of error correction coding for the prediction error containing data 100Bb1.
[0161] The decoding unit 300 restores correct data 100B containing no prediction error based on the data 100A read from the non-volatile memory 31, the sign bit containing data 140Bb2 containing the sign bit 111Bb2, and the prediction error data 200Ab2. Specifically, as shown in FIG. 31, the decoding unit 300 performs error correction decoding on the read data 100A and the sign bit containing data 140Bb2 containing the read code bit 111Bb2 to restore the prediction error containing data 100Bb2. Then, the decoding unit 300 calculates an exclusive OR between the restored prediction error containing data 100Bb2 and the prediction error data 200Ab2, and the calculation result is the restored data 100B. The prediction error data 200Ab2 used by the decoding unit 300 is not data stored in the non-volatile memory 31, but data generated by the control unit 30. Hereinafter, the process shown in FIG. 31 may be referred to as a decoding process using the code bit 111Bb2.
[0162] The multiple prediction error bit positions indicated by the prediction error data 200Ab2 may be, for example, prediction error bit positions in the data 100A when the number of times the data 100A is read from the non-volatile memory 31 is a predetermined number Vb2. The predetermined number Vb2 is, for example, larger than the predetermined number Vb1.
[0163] Furthermore, the multiple prediction error bit positions indicated by the prediction error data 200Ab2 may be prediction error bit positions in the data 100A when a predetermined time Wb2 has elapsed since the data 100A was written to the non-volatile memory 31. The predetermined time Wb2 is, for example, greater than the predetermined time Wb1.
[0164] The decoding unit 300 may execute the decoding process using the code bits 110B, the decoding process using the code bits 111Bb1, and the decoding process using the code bits 111Bb2 in parallel or in sequence.
[0165] Furthermore, when the prediction error indicated by the prediction error data 200Ab1 and the prediction error indicated by the prediction error data 200Ab2 are prediction errors based on a prediction method based on the number of reads or based on a prediction method based on elapsed time, the decoding unit 300 may first perform a decoding process using the code bit 110B, and when the decoding process using the code bit 110B fails to restore the data 100B, the decoding unit 300 may perform a decoding process using the code bit 111Ab1. Then, when the decoding process using the code bit 110Ab1 fails to restore the data 100B, the decoding unit 300 may perform a decoding process using the code bit 110Ab2.
[0166] In addition, the decoding unit 300 may determine whether to perform a decoding process using the code bit 110B, a decoding process using the code bit 111Bb1, or a decoding process using the code bit 111Bb2 based on at least one of the number of reads and the elapsed time.
[0167] For example, consider a case where the prediction error indicated by the prediction error data 200Ab1 and the prediction error indicated by the prediction error data 200Ab2 are prediction errors based on a prediction method based on the number of reads. In this case, the decoding unit 300 may determine which of the decoding process using the code bit 110B, the decoding process using the code bit 111Bb1, and the decoding process using the code bit 111Bb2 to execute based on the number of reads of the data 100A from the nonvolatile memory 31. For example, when the number of reads of the data 100A from the nonvolatile memory 31 is less than a predetermined number Vb1, the decoding unit 300 executes the decoding process using the code bit 110B, and when the number of reads is equal to or greater than the predetermined number Vb1 and less than the predetermined number Vb2, the decoding unit 300 executes the decoding process using the code bit 111Bb1. Then, when the number of reads of the data 100A from the nonvolatile memory 31 is equal to or greater than the predetermined number Vb2, the decoding unit 300 executes the decoding process using the code bit 110Bb2.
[0168] As another example, consider a case where the prediction error indicated by the prediction error data 200Ab1 and the prediction error indicated by the prediction error data 200Ab2 are prediction errors based on a prediction method based on elapsed time. In this case, the decoding unit 300 may determine which of the decoding process using the code bit 110B, the decoding process using the code bit 111Bb1, and the decoding process using the code bit 111Bb2 to execute based on the elapsed time since the data 100A was written to the non-volatile memory 31. For example, the decoding unit 300 executes the decoding process using the code bit 110B when the elapsed time since the data 100A was written to the non-volatile memory 31 is less than a predetermined time Wb1, and executes the decoding process using the code bit 111Bb1 when the elapsed time is equal to or greater than the predetermined time Wb1 and less than the predetermined time Wb2. Then, the decoding unit 300 executes the decoding process using the code bit 110Bb2 when the elapsed time is equal to or greater than the predetermined time Wb2.
[0169] As another example, consider a case where the prediction error indicated by the prediction error data 200Ab1 is a prediction error based on a prediction method based on the number of reads, and the prediction error indicated by the prediction error data 200Ab2 is a prediction error based on a prediction method based on the elapsed time. In this case, the decoding unit 300 executes a decoding process using the code bit 110B when the number of reads is less than a predetermined number of times Vb1 and the elapsed time is less than a predetermined time Wb1. Also, the decoding unit 300 executes a decoding process using the code bit 111Bb1 when the number of reads is equal to or greater than the predetermined number of times Vb1 and the elapsed time is less than the predetermined time Wb1. Then, the decoding unit 300 executes a decoding process using the code bit 111Bb2 when the elapsed time is equal to or greater than the predetermined time Wb2.
[0170] The prediction error indicated by the prediction error data 200Ab1 may be a prediction error based on a prediction method based on elapsed time, and the prediction error indicated by the prediction error data 200Ab2 may be a prediction error based on a prediction method based on the number of reads.
[0171] Furthermore, when the decoding unit 300 executes a decoding process using the code bit 111Aa2, the decoding unit 300 may perform error correction decoding on the code bit-containing data including the data 100A and the code bit 110B restored by the decoding process, to restore the data 100B. In this case, the decoding unit 300 may not execute a decoding process using the code bit 111Bb2. When the decoding unit 300 does not execute a decoding process using the code bit 111Bb2, the code bit 111Bb2 becomes unnecessary. Furthermore, the data 12d may not include the code bits 111Aa1 and 111Aa2.
[0172] A code bit based on an error prediction for restoring data 100A similar to the code bit 111Aa1 may be added to the above-mentioned data 100M between data 100A and data 100B. Also, a code bit based on an error prediction for restoring data B similar to the code bit 111Bb1 may be added to data 100M.
[0173] 32 is a schematic diagram showing data 13 stored in the non-volatile memory 31. In the data 13, the above-mentioned code bits 110A and 110B, a code bit 111Am1 based on an error prediction for restoring the data 100A, and a code bit 111Bm1 based on an error prediction for restoring the data 100B are added to the data 100M.
[0174] The code bit 111Am1 is a code bit obtained by error correction coding of the data 100A including a prediction error in the data 100M. The coding unit 50 generates the data 100A including the prediction error (also called prediction error-containing data 100Am1) based on the prediction error data 200Ma1 indicating the prediction error in the data 100M and the correct data 100A. In the prediction error data 200Ma1, for example, the value of the bit position that is the same as each prediction error bit position in the data 100M is "1". As shown in FIG. 33, the coding unit 50 calculates the exclusive OR of the correct data 100A and the prediction error data 200Ma1, and sets the calculation result as the prediction error-containing data 100Am1. Then, the coding unit 50 performs error correction coding on the prediction error-containing data 100Am1 to generate the code bit 111Am1. The prediction error-containing data 200Am1 can be said to be the data 100A in the case where the error predicted for the data 100M has hypothetically occurred in the data 100A.
[0175] As shown in FIG. 34, the decoding unit 300 performs error correction decoding on the read data 100M and the code bit containing data 150Am1 including the read code bit 111Am1, for example, to restore the prediction error containing data 100Am1. Then, the decoding unit 300 calculates an exclusive OR between the restored prediction error containing data 100Am1 and the prediction error data 200Ma1, and the calculation result is the restored original data 100A. The prediction error data 200Ma1 used by the decoding unit 300 is not data stored in the non-volatile memory 31, but data generated by the control unit 30. Hereinafter, the process shown in FIG. 34 may be referred to as a decoding process using the code bit 111Am1. Also, as shown in FIG. 13 above, the process of performing error correction decoding on the data 100M and the code bit containing data 130A including the code bit 110A is referred to as a second decoding process using the code 110A.
[0176] The code bit 111Bm1 is a code bit obtained by error correction coding of the data 100B including a prediction error in the data 100M. The coding unit 50 generates the data 100B including the prediction error (also called prediction error-containing data 100Bm1) based on the prediction error data 200Mb1 indicating the prediction error in the data 100M and the correct data 100B. In the prediction error data 200Mb1, for example, the value of the bit position that is the same as each prediction error bit position in the data 100M is "1". As shown in FIG. 35, the coding unit 50 calculates the exclusive OR of the correct data 100B and the prediction error data 200Mb1, and sets the calculation result as the prediction error-containing data 100Bm1. Then, the coding unit 50 performs error correction coding on the prediction error-containing data 100Bm1 to generate the code bit 111Bm1. The prediction error indicated by the prediction error data 200Mb1 may be the same as or different from the prediction error indicated by the prediction error data 200Ma1. The prediction error-containing data 200Bm1 can be said to be the data 100B in the case where an error predicted for the data 100M occurs in the data 100B.
[0177] As shown in FIG. 36, the decoding unit 300 performs error correction decoding on the read data 100M and the code bit containing data 150Bm1 including the read code bit 111Bm1, for example, to restore the prediction error containing data 100Bm1. Then, the decoding unit 300 calculates an exclusive OR between the restored prediction error containing data 100Bm1 and the prediction error data 200Mb1, and the calculation result is the restored original data 100B. The prediction error data 200Mb1 used by the decoding unit 300 is not data stored in the non-volatile memory 31, but data generated by the control unit 30. Hereinafter, the process shown in FIG. 36 may be referred to as a decoding process using the code bit 111Bm1. Also, as shown in FIG. 13 above, the process of performing error correction decoding on the data 100M and the code bit containing data 130B including the code bit 110B is referred to as a second decoding process using the code 110B.
[0178] The prediction errors indicated by the prediction error data 200Ma1 and the prediction error data 200Mb1 may be prediction errors based on the number of times the data 100M has been read from the non-volatile memory 31, similar to the above-mentioned prediction error data 200Aa1, etc., or may be prediction errors based on the elapsed time since the data 100M was written to the non-volatile memory 31.
[0179] How the decoding unit 300 executes the second decoding process using the code bit 110A and the decoding process using the code bit 111Am1 is the same as the above description of the execution of the decoding process using the code bit 110A and the decoding process using the code bit 111Aa1. Also, how the decoding unit 300 executes the second decoding process using the code bit 110B and the decoding process using the code bit 111Bm1 is the same as the above description of the execution of the decoding process using the code bit 110B and the decoding process using the code bit 111Bb1.
[0180] The data 13 does not necessarily have to include the sign bit 111Am1. Also, the data 13 does not necessarily have to include the sign bit 111Bm1.
[0181] 20 and 29, a plurality of code bits based on an error prediction for restoring data 100A using data 100M may be added to data 100M. The operations of the encoding unit 50 and the decoding unit 300 in this case are similar to those in the examples of FIGS. 20 and 29. Also, as in FIG. 29, a plurality of code bits based on an error prediction for restoring data 100B using data 100M may be added to data 100M. The operations of the encoding unit 50 and the decoding unit 300 in this case are similar to those in the example of FIG. 29.
[0182] In this way, when data 100A is restored based on code bit containing data 150Am1 including data 100M and code bit 111Am1 obtained by error correction encoding of prediction error containing data 100Am1, which is data 100A including a prediction error in data 100M, it is possible to restore the original data 100A even if a bit error with a number of errors greater than the number of correctable bits by error correction using code bit 111Am1 occurs in the code bit containing data 150Am1.
[0183] Similarly, when data 100B is restored based on code bit containing data 150Bm1 including data 100M and code bit 111Bm1 obtained by error correction encoding of prediction error containing data 100Bm1, which is data 100B including a prediction error in data 100M, it is possible to restore the original data 100B even if a bit error with a number of errors greater than the number of correctable bits by error correction using code bit 111Bm1 occurs in code bit containing data 150Bm1.
[0184] The control unit 30 of the memory device 3 may generate a seed to be input to the pseudorandom number generator based on the data 100A and data B restored by the decryption unit 300. For example, the control unit 30 may calculate an exclusive OR between the restored data 100A and the restored data B, and use the result of the calculation as a seed to be input to the pseudorandom number generator. In this case, a seed generation circuit is not required.
[0185] In the above example, the encoding unit 50 is provided in the external device, but may be provided in the memory device 3. Fig. 37 is a schematic diagram showing an example of the configuration of the data processing system 1 in this case. In the example of Fig. 37, the control unit 30 of the memory device 3 includes the encoding unit 50. The encoding unit 50 may be a functional block formed by, for example, the CPU of the control unit 30 executing a program 31a in the non-volatile memory 31.
[0186] 37, the encoding unit 50 generates a plurality of code bits for error correction, such as the code bit 110A, based on a plurality of information bits of the data 100A, etc., generated by the control unit 30, or based on a plurality of information bits transmitted from the host device. The control unit 30 writes the data 10, etc., including the plurality of code bits and information bits generated by the encoding unit 50, into the non-volatile memory 31.
[0187] Moreover, the encoding unit 50 may be provided in the host device 2. Fig. 38 is a schematic diagram showing an example of the configuration of the data processing system 1 in this case. In the example of Fig. 38, the control unit 20 of the host device 2 includes the encoding unit 50. The encoding unit 50 may be a functional block formed by, for example, the CPU of the control unit 20 executing a program 21a in the storage unit 21.
[0188] In the example of FIG. 38, the encoding unit 50 of the host device 2 generates a plurality of code bits for error correction, such as the code bit 110A, based on a plurality of information bits of the data 100A, etc., generated by the control unit 20. The control unit 20 causes the interface 23 to transmit data 10, etc., including the plurality of code bits and information bits generated by the encoding unit 50. In the memory device 3, the decoding unit 300 restores a plurality of information bits of the data 100A, etc., based on the data 10, etc., from the host device 2. In the example of FIG. 38, the decoding unit 300 may read data similar to the data 10, etc., stored in the non-volatile memory 31, and restore the plurality of information bits based on the read data in the same manner as described above.
[0189] In the example of Figure 38, even if an error occurs in data transmitted from the host device 2 to the memory device 3 on the communication path between the host device 2 and the memory device 3, the decoding unit 300 of the memory device 3 can perform error correction on the data from the host device 2 to restore multiple information bits.
[0190] 38, the memory device 3 can restore the data 100B based on the data 10 not including the data 100B, and therefore does not need to receive the data 100B from the host device 2. This makes it possible to reduce the amount of data transferred between the memory device 3 and the host device 2.
[0191] 38, the control unit 30 may generate authentication data based on the restored data 100A and data 100B, for example. The control unit 30 may then compare the generated authentication data with an expected value stored in advance to detect tampering with the data 100A and data 100B transmitted from the host device 2. The control unit 30 may use the result of an exclusive OR operation between the restored data 100A and the restored data 100B as authentication data. Alternatively, a circuit that generates authentication data may generate authentication data based on the result of an exclusive OR operation between the restored data 100A and the restored data 100B.
[0192] A decoding unit that restores a plurality of information bits such as data 100A may be provided in the host device 2 instead of the memory device 3. FIG. 39 is a schematic diagram showing an example of the configuration of the data processing system 1 in this case. In the example of FIG. 39, the control unit 20 of the host device 2 includes a decoding unit 200 similar to the decoding unit 300. It can be said that the control unit 20 is a decoding device including the decoding unit 200. The decoding unit 200 may be a functional block formed by, for example, the CPU of the control unit 20 executing a program 21a in the storage unit 21.
[0193] 39, the control unit 30 of the memory device 3 reads the above-mentioned data 10, etc. from the non-volatile memory 31, and transmits the read data 10, etc. to the interface 33. In the host device 2, the interface 23 outputs the data 10, etc. received from the interface 33 to the control unit 20. In the control unit 20, the decoding unit 200 operates in the same manner as the decoding unit 300, and restores a plurality of information bits of the data 100A, etc., based on the data 10, etc.
[0194] In the example of Figure 39, even if an error occurs in data transmitted from memory device 3 to host device 2 on the communication path between host device 2 and memory device 3, the decoding unit 200 of host device 2 can perform error correction on the data from memory device 3 to restore multiple information bits.
[0195] 39, the host device 2 can restore the data 100B based on the data 10 that does not include the data 100B, and therefore does not need to receive the data 100B from the memory device 3. This makes it possible to reduce the amount of data transferred between the host device 2 and the memory device 3.
[0196] The control unit 20 of the host device 2 may generate a seed to be input to the pseudo-random number generator based on the data 100A and data B restored by the decryption unit 200. For example, the control unit 20 may calculate an exclusive OR between the restored data 100A and the restored data B, and use the result of the calculation as a seed to be input to the pseudo-random number generator. In this case, a seed generation circuit is not required.
[0197] Furthermore, the control unit 20 may generate authentication data based on the restored data 100A and data 100B, for example. The control unit 20 may then detect tampering of the data 100A and data 100B by comparing the generated authentication data with an expected value stored in advance. The control unit 20 may use the result of an exclusive OR operation between the restored data 100A and the restored data 100B as authentication data. Alternatively, a circuit that generates authentication data may generate authentication data based on the result of an exclusive OR operation between the restored data 100A and the restored data 100B.
[0198] The memory device 3 may have a decoding unit 300 and an encoding unit 50, and the host device 2 may have a decoding unit 200 and an encoding unit 210 similar to the encoding unit 50. FIG. 40 is a schematic diagram showing an example of the data processing system 1 in this case. In the example of FIG. 40, the control unit 20 of the host device 2 includes an encoding unit 210 similar to the encoding unit 50. The encoding unit 210 may be a functional block formed by, for example, the CPU of the control unit 20 executing a program 21a in the storage unit 21.
[0199] 40, the encoding unit 210 generates a plurality of code bits for performing error correction, similar to the code bits 110A, etc., based on a plurality of information bits, similar to the data 100A, etc., generated by the control unit 20. The control unit 20 causes the interface to transmit data including the plurality of code bits and information bits generated by the encoding unit 210. In the memory device 3, the decoding unit 300 restores the plurality of information bits, based on data, similar to the data 10, etc., transmitted by the host device 2.
[0200] 40, the encoding unit 50 of the memory device 3 generates a plurality of code bits for error correction, such as the code bit 110A, based on a plurality of information bits of the data 100A, etc., generated by the control unit 30. The control unit 30 causes the interface 33 to transmit data 10, etc., including the plurality of code bits and information bits generated by the encoding unit 50. In the host device 2, the decoding unit 200 restores the plurality of information bits of the data 100A, etc., based on the data from the memory device 3.
[0201] Even in the example of Figure 40, the decoding unit 300 may read data similar to data 10, etc., stored in the non-volatile memory 31, and restore multiple information bits based on the read data in the same manner as described above.
[0202] The host device 2 and the memory device 3 may be able to communicate with each other through a network 5, as shown in Fig. 41. The network 5 may include at least one of a LAN (Local Area Network) and the Internet.
[0203] The above data 100A, data 100B, and data 100M may be any data. For example, the data 100A, data 100B, and data 100M may be image data or audio data. The data 100A, data 100B, and data 100M may be environmental data such as temperature data, humidity data, and atmospheric pressure data. The data 100A, data 100B, and data 100M may be object data indicating the posture, movement, position, or acceleration of an object. The data 100A, data 100B, and data 100M may be data indicating the amount of electricity, gas, water, etc. used.
[0204] The functions of the elements disclosed herein may be implemented using circuitry or processing circuitry including general purpose processors, special purpose processors, integrated circuits, ASICs ("application specific integrated circuits"), conventional circuitry, and / or combinations thereof configured to execute the disclosed elements or programmed to execute the disclosed functions. A processor is considered to be a processing circuitry or circuitry when it includes transistors and other circuitry therein. In this disclosure, a circuitry, unit, or means is hardware that performs the recited function or hardware that is programmed to perform the recited function. The hardware may be any hardware disclosed herein or other known that is programmed to perform the recited function or configured to perform the recited function. When the hardware is a processor, which may be considered as a type of circuitry, the circuitry, means, or unit is a combination of hardware and software, software used to configure the hardware, and / or processor.
[0205] As described above, the data processing system, the memory device, and the host device have been described in detail, but the above description is merely illustrative in all respects, and the present disclosure is not limited thereto. In addition, the various examples described above can be combined and applied as long as they are not mutually inconsistent. It is understood that countless examples not illustrated can be envisioned without departing from the scope of the present disclosure.
[0206] The present disclosure includes the following aspects.
[0207] A decoding device according to a first aspect includes a decoding unit that executes a first decoding process in which first error correction decoding is performed on first code bit-containing data including a first code bit obtained by a first error correction encoding on first data and an information bit to restore the first data, and a second decoding process in which second error correction decoding is performed on second code bit-containing data including a second code bit obtained by a second error correction encoding on second data similar to the first data and the information bit or the first data restored by the first decoding process to restore the second data, wherein the information bit is the first data or intermediate data that is more similar to the first data than the second data.
[0208] A decoding device according to a second aspect is a decoding device according to the first aspect, wherein the information bits are the first data, and the decoding unit performs a third decoding process to restore the third data by performing third error correction decoding on third code bit-containing data including a third code bit obtained by third error correction encoding on third data similar to the first data, and the original first data before being restored or the first data restored by the first decoding process.
[0209] A decoding device according to a third aspect is a decoding device according to the first aspect, wherein the information bits are the first data, and the decoding unit performs a third decoding process to restore the third data by performing third error correction decoding on third code bit-containing data including a third code bit obtained by third error correction encoding on third data similar to the second data and the second data restored by the second decoding process.
[0210] A decoding device according to a fourth aspect is a decoding device according to any one of the first to third aspects, wherein the first error correction encoding method and the second error correction encoding method are the same as each other.
[0211] A decoding device according to a fifth aspect is a decoding device according to any one of the first to third aspects, wherein the first error correction encoding method and the second error correction encoding method are different from each other.
[0212] A decoding device according to a sixth aspect is a decoding device according to any one of the first to fifth aspects, wherein the decoding unit performs fourth error correction decoding on fourth code bit containing data including a fourth code bit obtained by fourth error correction encoding on first prediction error-containing first data, which is the first data including a first prediction error in the information bit, to restore the first prediction error-containing first data, and executes a fourth decoding process to restore the first data not including the first prediction error based on the restored first prediction error-containing first data and first prediction error data indicating the first prediction error.
[0213] A decoding device according to a seventh aspect is a decoding device according to the sixth aspect, wherein the decoding unit performs fifth error correction decoding on fifth code bit containing data including a fifth code bit obtained by fifth error correction encoding on second prediction error-containing first data, which is the first data including a second prediction error in the information bit, to restore the second prediction error-containing first data, and executes a fifth decoding process to restore the first data not including the second prediction error based on the restored second prediction error-containing first data and second prediction error data indicating the second prediction error.
[0214] A decoding device according to an eighth aspect is a decoding device according to the sixth aspect, wherein the information bits, the first code bits and the fourth code bits are stored in a non-volatile memory, and the decoding unit, in the first decoding process, performs the first error correction decoding on the first code bit containing data including the information bits and the first code bits read from the non-volatile memory, and in the fourth decoding process, performs the fourth error correction decoding on the fourth code bit containing data including the information bits and the fourth code bits read from the non-volatile memory, and determines whether to execute the first decoding process or the fourth decoding process based on the number of times the information bits are read from the non-volatile memory or the elapsed time since the information bits were written to the non-volatile memory.
[0215] A decoding device according to a ninth aspect is a decoding device according to the seventh aspect, wherein the information bits, the first code bits, the fourth code bits and the fifth code bits are stored in a non-volatile memory, and the decoding unit performs the first error correction decoding on the first code bit containing data including the information bits and the first code bits read from the non-volatile memory in the first decoding process, performs the fourth error correction decoding on the fourth code bit containing data including the information bits and the fourth code bits read from the non-volatile memory in the fourth decoding process, and performs the fifth error correction decoding on the fifth code bit containing data including the information bits and the fifth code bits read from the non-volatile memory in the fifth decoding process, and determines which of the first decoding process, the fourth decoding process, and the fifth decoding process to execute based on at least one of the number of times the information bits are read from the non-volatile memory and the elapsed time since the information bits were written to the non-volatile memory.
[0216] A decoding device according to a tenth aspect is a decoding device according to the sixth or seventh aspect, wherein the decoding unit executes the fourth decoding process when the first decoding process fails to restore the first data.
[0217] A decoding device according to an eleventh aspect is a decoding device according to any one of the sixth to tenth aspects, wherein the decoding unit executes a sixth decoding process by performing a sixth error correction decoding on sixth code bit-containing data including the first data restored in the fourth decoding process and the second code bit to restore the second data.
[0218] A decoding device according to a twelfth aspect is a decoding device according to any one of the first to tenth aspects, wherein the decoding unit performs sixth error correction decoding on sixth code bit containing data including a sixth code bit obtained by sixth error correction encoding on first prediction error-containing second data, which is the second data including a third prediction error in the information bit, and the information bit to restore the first prediction error-containing second data, and executes a sixth decoding process to restore the second data not including the third prediction error based on the restored first prediction error-containing second data and third prediction error data indicating the third prediction error.
[0219] A decoding device according to a 13th aspect is a decoding device according to the 12th aspect, wherein the decoding unit performs seventh error correction decoding on seventh code bit containing data including a seventh code bit obtained by seventh error correction encoding on second prediction error-containing second data, which is the second data including a fourth prediction error in the information bit, and the information bit to restore the second prediction error-containing second data, and performs a seventh decoding process to restore the second data not including the fourth prediction error based on the restored second prediction error-containing second data and fourth prediction error data indicating the fourth prediction error.
[0220] A decoding device according to a 14th aspect is a decoding device according to a 12th aspect, wherein the information bits, the second code bits and the sixth code bits are stored in a non-volatile memory, and the decoding unit, in the second decoding process, performs the second error correction decoding on the second code bit containing data including the information bits and the second code bits read from the non-volatile memory, and in the sixth decoding process, performs the sixth error correction decoding on the sixth code bit containing data including the information bits and the sixth code bits read from the non-volatile memory, and determines whether to execute the second decoding process or the sixth decoding process based on the number of times the information bits are read from the non-volatile memory or the elapsed time since the information bits were written to the non-volatile memory.
[0221] A decoding device according to a 15th aspect is a decoding device according to a 13th aspect, wherein the information bits, the second code bits, the sixth code bits and the seventh code bits are stored in a non-volatile memory, and the decoding unit, in the second decoding process, performs the second error correction decoding on the second code bit containing data including the information bits and the second code bits read from the non-volatile memory, in the sixth decoding process, performs the sixth error correction decoding on the sixth code bit containing data including the information bits and the sixth code bits read from the non-volatile memory, and in the seventh decoding process, performs the seventh error correction decoding on the seventh code bit containing data including the information bits and the seventh code bits read from the non-volatile memory, and determines which of the second decoding process, the sixth decoding process, and the seventh decoding process to execute based on at least one of the number of times the information bits are read from the non-volatile memory and the elapsed time since the information bits were written to the non-volatile memory.
[0222] A decoding device according to a 16th aspect is a decoding device according to the 12th or 13th aspect, wherein the decoding unit executes the sixth decoding process when the second decoding process fails to restore the second data.
[0223] A memory device according to a 17th aspect comprises a decoding device according to any one of the 1st to 16th aspects, and a non-volatile memory that stores the information bits, the first code bits, and the second code bits used in the first decoding process and the second decoding process performed by the decoding device, and the decoding device performs the first decoding process and the second decoding process using the information bits, the first code bits, and the second code bits read from the non-volatile memory.
[0224] A communications device according to an 18th aspect includes a decoding device according to any one of the 1st to 16th aspects, and a communications unit that receives the information bits, the first code bits, and the second code bits used in the first decoding process and the second decoding process performed by the decoding device, and the decoding device performs the first decoding process and the second decoding process using the information bits, the first code bits, and the second code bits received by the communications unit.
[0225] A program according to a nineteenth aspect is a program for causing a computer device to function as the decoding device according to any one of the first to sixteenth aspects.
[0226] A decoding method according to a 20th aspect is a decoding method in an apparatus, which performs a first decoding process in which first error correction decoding is performed on first code bit-containing data including a first code bit obtained by a first error correction encoding on first data and an information bit to restore the first data, and a second decoding process in which second error correction decoding is performed on second code bit-containing data including a second code bit obtained by a second error correction encoding on second data similar to the first data and the information bit or the first data restored by the first decoding process to restore the second data, wherein the information bit is the first data or intermediate data that is more similar to the first data than the second data. [Explanation of symbols]
[0227] 2 Host device (communication device) 3 Memory devices (communication devices) 20, 30 Control unit (decoding device) 21a,31a Program 23,33 Interface (communication section) 31 Non-volatile memory 100A, 100B Data 100M data (intermediate data) 100Aa1, 100Aa2, 100Aa3, 100Am1, 100Bb1, 100Bb2, 100Bm1 Data containing prediction errors 110A, 111Aa1, 111Aa2, 111Aa3, 111Am1, 110B, 111Bb1, 111Bb2, 111Bm1, 110C, 110D sign bit 120A, 120B, 120BB, 120C, 120CC, 120D, 120DD, 130A, 130B, 140Aa1, 140Aa2, 140Aa3, 140Bb1, 140Bb2, 150Am1, 150Bm1 Data containing sign bit 200,300 Decoding section 200Aa1, 200Aa2, 200Aa3, 200Ab1, 200Ab2, 200Ma1, 200Mb1 Prediction error data
Claims
1. a first decoding process for performing a first error correction decoding on first code bit-containing data including a first code bit and an information bit obtained by a first error correction encoding on the first data, thereby restoring the first data; a second decoding process for performing a second error correction decoding on second code bit-containing data including second code bits obtained by a second error correction encoding on second data similar to the first data and the information bits or the first data restored by the first decoding process to restore the second data; a decoding unit that executes The information bits are the first data or intermediate data that is more similar to the first data than to the second data.
2. 2. A decoding device according to claim 1, comprising: the information bits are the first data, The decoding unit executes a third decoding process by performing third error correction decoding on third code bit-containing data including a third code bit obtained by a third error correction encoding on third data similar to the first data, and the original first data before being restored or the first data restored by the first decoding process, to restore the third data.
3. 2. A decoding device according to claim 1, comprising: the information bits are the first data, The decoding unit executes a third decoding process by performing third error correction decoding on third code bit-containing data including a third code bit obtained by a third error correction encoding on third data similar to the second data and the second data restored by the second decoding process, thereby restoring the third data.
4. A decoding device according to any one of claims 1 to 3, A decoding device, wherein the first error correction encoding method and the second error correction encoding method are the same.
5. A decoding device according to any one of claims 1 to 3, A decoding device, wherein the first error correction coding scheme and the second error correction coding scheme are different from each other.
6. A decoding device according to any one of claims 1 to 3, the decoding unit performs fourth error correction decoding on fourth code bit containing data including a fourth code bit obtained by fourth error correction encoding on first prediction error-containing first data, the first data including a first prediction error in the information bit, to restore the first prediction error-containing first data, and executes a fourth decoding process to restore the first data not including the first prediction error, based on the restored first prediction error-containing first data and first prediction error data indicating the first prediction error.
7. 7. A decoding device according to claim 6, comprising: the decoding unit performs fifth error correction decoding on fifth code bit containing data including a fifth code bit obtained by fifth error correction encoding on second prediction error-containing first data, the first data including a second prediction error in the information bit, to restore the second prediction error-containing first data, and executes a fifth decoding process to restore the first data not including the second prediction error based on the restored second prediction error-containing first data and second prediction error data indicating the second prediction error.
8. 7. A decoding device according to claim 6, comprising: the information bit, the first code bit and the fourth code bit are stored in a non-volatile memory; The decoding unit is In the first decoding process, the first error correction decoding is performed on the first code bit-containing data including the information bits and the first code bits read from the non-volatile memory; In the fourth decoding process, the fourth error correction decoding is performed on the fourth code bit-containing data including the information bits and the fourth code bit read from the non-volatile memory; A decoding device that determines whether to execute the first decoding process or the fourth decoding process based on the number of times the information bits are read from the nonvolatile memory or the elapsed time since the information bits were written to the nonvolatile memory.
9. 8. A decoding device according to claim 7, comprising: the information bit, the first code bit, the fourth code bit, and the fifth code bit are stored in a non-volatile memory; The decoding unit is In the first decoding process, the first error correction decoding is performed on the first code bit-containing data including the information bits and the first code bits read from the non-volatile memory; In the fourth decoding process, the fourth error correction decoding is performed on the fourth code bit-containing data including the information bits and the fourth code bit read from the non-volatile memory; In the fifth decoding process, the fifth error correction decoding is performed on the fifth code bit-containing data including the information bits and the fifth code bit read from the non-volatile memory; A decoding device that determines which of the first decoding process, the fourth decoding process, and the fifth decoding process to execute based on at least one of the number of times the information bits are read from the non-volatile memory and the elapsed time since the information bits were written to the non-volatile memory.
10. 7. A decoding device according to claim 6, comprising: The decoding unit executes the fourth decoding process when the first decoding process fails to restore the first data.
11. 7. A decoding device according to claim 6, comprising: The decoding unit executes a sixth decoding process by performing a sixth error correction decoding on sixth code bit-containing data including the first data restored in the fourth decoding process and the second code bit to restore the second data.
12. A decoding device according to any one of claims 1 to 3, the decoding unit performs sixth error correction decoding on sixth code bit containing data including a sixth code bit obtained by sixth error correction encoding on first prediction error-containing second data, the second data including a third prediction error in the information bit, to restore the first prediction error-containing second data, and executes a sixth decoding process to restore the second data not including the third prediction error, based on the restored first prediction error-containing second data and third prediction error data indicating the third prediction error.
13. 13. A decoding device according to claim 12, comprising: the decoding unit performs seventh error correction decoding on seventh code bit containing data including a seventh code bit obtained by seventh error correction encoding on second prediction error-containing second data, the second data including a fourth prediction error in the information bit, to restore the second prediction error-containing second data, and executes a seventh decoding process to restore the second data not including the fourth prediction error, based on the restored second prediction error-containing second data and fourth prediction error data indicating the fourth prediction error.
14. 13. A decoding device according to claim 12, comprising: the information bit, the second code bit and the sixth code bit are stored in a non-volatile memory; The decoding unit is In the second decoding process, the second error correction decoding is performed on the second code bit-containing data including the information bits and the second code bits read from the non-volatile memory; In the sixth decoding process, the sixth error correction decoding is performed on the sixth code bit-containing data including the information bits and the sixth code bit read from the non-volatile memory; A decoding device that determines whether to execute the second decoding process or the sixth decoding process based on the number of times the information bits are read from the nonvolatile memory or the elapsed time since the information bits were written to the nonvolatile memory.
15. 14. A decoding device according to claim 13, comprising: the information bit, the second code bit, the sixth code bit and the seventh code bit are stored in a non-volatile memory; The decoding unit is In the second decoding process, the second error correction decoding is performed on the second code bit-containing data including the information bits and the second code bits read from the non-volatile memory; In the sixth decoding process, the sixth error correction decoding is performed on the sixth code bit-containing data including the information bits and the sixth code bit read from the non-volatile memory; In the seventh decoding process, the seventh error correction decoding is performed on the seventh code bit-containing data including the information bits and the seventh code bit read from the non-volatile memory; A decoding device that determines whether to execute the second decoding process, the sixth decoding process, or the seventh decoding process based on at least one of the number of times the information bits are read from the non-volatile memory and the elapsed time since the information bits were written to the non-volatile memory.
16. 13. A decoding device according to claim 12, comprising: A decoding device, wherein the decoding unit executes the sixth decoding process when the second decoding process fails to restore the second data.
17. A decoding device according to any one of claims 1 to 3, a non-volatile memory that stores the information bits, the first code bits, and the second code bits used in the first decoding process and the second decoding process executed by the decoding device; Equipped with A memory device, wherein the decoding device performs the first decoding process and the second decoding process using the information bits, the first code bits, and the second code bits read from the non-volatile memory.
18. A decoding device according to any one of claims 1 to 3, a communication unit that receives the information bits, the first code bits, and the second code bits used in the first decoding process and the second decoding process executed by the decoding device; Equipped with A communication device, wherein the decoding device executes the first decoding process and the second decoding process using the information bits, the first code bits, and the second code bits received by the communication unit.
19. A program for causing a computer device to function as the decoding device according to any one of claims 1 to 3.
20. A method of decoding in an apparatus, comprising: a first decoding process for performing a first error correction decoding on first code bit-containing data including a first code bit and an information bit obtained by a first error correction encoding on the first data, thereby restoring the first data; a second decoding process for performing a second error correction decoding on second code bit-containing data including second code bits obtained by a second error correction encoding on second data similar to the first data and the information bits or the first data restored by the first decoding process to restore the second data; Run The method of decoding, wherein the information bits are the first data or intermediate data that is more similar to the first data than to the second data.
Citation Information
Patent Citations
Memory controller, storage device, error correction device and error correction method
JP2013225830A
Device and method for improving data storage by data inversion
JP2015142381A
Memory system
JP2016099838A
