Data rewriting method

By adopting a multi-block group structure in the memory to disperse the number of data rewrites, the problem of increased rewrite times caused by frequent data writing in the existing technology is solved, and more efficient data backup and memory life extension are achieved.

CN118733484AInactive Publication Date: 2024-10-01LAPIS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410312243.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-03-19
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the data writing process, the existing memory alternately rewrites the pointers of the first area and the second area, causing the number of data rewrites to increase, exceeding the maximum number of rewrites of the memory, resulting in low data backup efficiency.

Method used

The memory structure of multiple block groups is adopted, in which each block group contains multiple words of data. When updating the data address through computer processing, the block group and data update sequence are identified, the number of rewrites is dispersed, and the number of rewrites of each word data is reduced.

Benefits of technology

It effectively reduces the number of data rewrites, extends the service life of the memory, improves data backup efficiency, and reduces the number of rewrites by 33%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733484A_ABST
    Figure CN118733484A_ABST
Patent Text Reader

Abstract

Compared with the prior art, the number of times of data rewriting is reduced, and data backup in a memory is performed at the same time. A computer (10) includes a memory space including word data storing block numbers identifying a plurality of blocks and data corresponding to data addresses of the blocks. In a memory structure provided with a memory group (3) comprising a plurality of word data (1A, 1B), each of which stores data corresponding to a data address belonging to each block group one by one, and at least one piece of spare word data (1C), data of a specified data address is updated. Updated data of the specified data address is written to word data (1C) in a memory group (3) including word data storing data of the specified data address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for rewriting data in a memory. Background Art

[0002] Patent document 1 discloses an information processing method, in which a memory is constructed by physical blocks that serve as data areas for storing data, and physical blocks of a first area and a second area that serve as physical block numbers for storing physical blocks constituting the data areas, thereby maintaining the matching of each data even when the memory is damaged during the process of writing multiple data to multiple logical blocks.

[0003] Prior art literature Patent Literature Patent Document 1: Japanese Patent No. 3702923 Summary of the invention

[0004] Problems to be solved by the invention Figure 7 An example of the structure of the memory in Patent Document 1 is shown in the figure. In the memory in Patent Document 1, a first area 20 and a second area 21 are prepared, which include an object pointer area 22 indicating an object block 31 of a data area 30, an update pointer area 23 indicating an update block 32 of the data area 30, validity information 24 indicating the validity of data, and latest information 25 indicating the writing order of data.

[0005] The target block 31 is a physical block that should originally be the target of data writing.

[0006] The update block 32 is an update physical block used when data is written to a physical block and its storage content is updated.

[0007] The four physical block numbers in the object pointer area 22 of the first area 20 and the second area 21 correspond to the logical block numbers represented by %00 to %03. Figure 7 The four physical block numbers #00 to #03 in the object pointer area 22 in the first area 20 correspond to the logical block numbers %00 to %03, respectively. Figure 7 The "FF" value in the memory is the initial value of the memory, indicating a state in which no data has been written.

[0008] For example, it is assumed that there is a request to write data to each of the logical blocks represented by the logical block number %00 and the logical block number %02, under the condition that the validity information 24 indicates that only the first area 20 is valid. In this case, if the object pointer area 22 of the first area 20 is referred to, it is shown that the physical block numbers corresponding to the logical block number %00 and the logical block number %02 are #00 and #02, respectively. Therefore, the physical blocks represented by #00 and #02 are identified as the object blocks 31 to which data is written.

[0009] Furthermore, when the update pointer area 23 of the first area 20 is referred to in order from the left by the number of physical blocks to which data is written, physical block numbers of the update blocks 32 such as #04 and #05 are obtained.

[0010] Therefore, in the memory of Patent Document 1, data that should be written to the physical blocks in the target block 31 indicated by the physical block numbers #00 and #02 are written to the physical blocks in the update block 32 indicated by the physical block numbers #04 and #05, respectively.

[0011] Figure 8 3 is a diagram showing an example of writing data to a physical block in the update block 32 .

[0012] Afterwards, the object pointer area 22 of the first area 20 is copied to the object pointer area 22 of the second area, and the physical block numbers of the physical blocks in the update block 32 where the data is written, namely #04 and #05, are written to the area of ​​the object pointer area 22 in the second area 21 corresponding to the logical block numbers %00 and %02.

[0013] In addition, the update pointer area 23 of the first area 20 is copied to the update pointer area 23 of the second area 21, the physical block numbers of the physical blocks serving as the writing destinations of the original data, i.e., #00 and #02, are written into the update pointer area 23 in the second area 21, the validity information 24 of the second area 21 is set to valid, and the validity information 24 of the first area 20 is set to invalid.

[0014] That is, the writing of data to the designated logical block number is not performed on the object block 31 but on the update block 32, and therefore the data stored in the object block 31 is retained as it is. Therefore, for example, even when data cannot be normally written to the memory due to a communication failure, the validity information 24 stored in the first area 20 and the second area 21 can be referred to to determine the block where the original data before the data was written is stored, thereby restoring the original data.

[0015] However, in such a structure, whenever data is written, the first area 20 and the second area 21 are rewritten alternately. Specifically, four pointers indicating physical blocks are stored in the object pointer area 22 and the update pointer area 23 of the first area 20 and the second area 21, respectively, and whenever there is a write request to the physical block indicated by the pointer, the object pointer area 22 and the update pointer area 23 are rewritten. Therefore, in the data first area 20 and the second area 21, the total number of rewrites of twice the number of rewrites in each physical block of the data area 30 occurs.

[0016] Specifically, when there are 100 data write requests for each of the two blocks, logical block number %00 and logical block number %01, the number of rewrites of the first area 20, the second area 21, and the data area 30 is as follows. Here, it is assumed that the data of the logical block number %00 is alternately rewritten to the physical block numbers #00 and #04, and the data of the logical block number %01 is alternately rewritten to the physical block numbers #01 and #05.

[0017] [Number of rewrites] Number of rewriting times of the first area 20: 100 times × 2 blocks / 2 areas = 100 times Number of rewriting times of the second area 21: 100 times × 2 blocks / 2 areas = 100 times Number of rewrites of physical block numbers #00 and #04 in data area 30: 100 times / 2 areas = 50 times Number of times physical block numbers #01 and #05 of data area 30 are rewritten: 100 times / 2 areas = 50 times

[0018] On the other hand, in non-volatile memories such as Flash ROM (Flash Read Only Memory) or EEPROM (Electrically Erasable Programmable Read Only Memory), a maximum rewrite count is set to ensure operation quality. When the maximum rewrite count of data is set in advance in an IC card, the maximum rewrite count applies not only to the rewrite count of the data area 30, but also to the rewrite count of the pointer area indicating the data area 30, such as the first area 20 and the second area 21.

[0019] Therefore, in the conventional data rewriting method corresponding to data backup, there is a problem that the period until the maximum number of rewriting times of the memory is exceeded becomes early.

[0020] The present invention is proposed to solve the above-mentioned problem, and its object is to provide a data rewriting method which can back up data in a memory while reducing the number of data rewriting times compared with the past.

[0021] Solutions to Solve Problems The data rewriting method of the present invention is provided in a memory space including a block number for storing identification of a plurality of blocks and word data corresponding to each data address represented by an address uniquely set for each block, in a memory structure including a plurality of word data corresponding to the data addresses respectively belonging to each block group when the plurality of blocks are divided into two or more block groups, and at least one or more spare word data. When updating data at a designated data address, a computer performs processing of writing updated data at a designated data address on word data other than word data storing data before update of the data address to be updated and word data storing the latest data of the data address belonging to a block group different from the word data storing data of the data address to be updated in the memory group including word data storing data of the designated data address.

[0022] Effects of the Invention According to the present invention, there is an effect that data backup in a memory can be performed while the number of data rewriting times is reduced compared with the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a diagram showing a configuration example of a computer. Figure 2 It is a diagram showing a structural example of word data. Figure 3 A diagram showing a configuration example of a memory group. Figure 4 This is a diagram showing an example of correspondence between an address map of data represented by a data address and an address map of data represented by a memory address. Figure 5 This is a flowchart showing an example of the flow of data rewriting processing. Figure 6 It is a diagram showing an example of data update by the data rewriting process. Figure 7 A diagram showing an example of a conventional memory structure. Figure 8 This is a diagram showing an example in which data is written in a physical block. DETAILED DESCRIPTION

[0024] Hereinafter, the present embodiment will be described with reference to the drawings. In addition, the same reference numerals are given to the same components and the same processes in all the drawings, and repeated descriptions are omitted.

[0025] Figure 1 1 is a diagram showing a configuration example of a computer 10 according to the present embodiment. The computer 10 includes a CPU (Central Processing Unit) 11 as an example of a processor, a RAM (Random Access Memory) 12 used as a temporary work area of ​​the CPU 11, a nonvolatile memory 13, and an input / output interface (I / O) 14. The CPU 11, the RAM 12, the nonvolatile memory 13, and the I / O 14 are connected via a bus 15.

[0026] The nonvolatile memory 13 is an example of a storage device that maintains stored information even when power supplied to the nonvolatile memory 13 is cut off, and may be, for example, a semiconductor memory or a hard disk. The nonvolatile memory 13 stores, for example, a program that causes the computer 10 to execute a predetermined process.

[0027] The nonvolatile memory 13 does not necessarily need to be built into the computer 10, and may be, for example, a removable storage device such as a memory card that can be loaded and unloaded from the computer 10. In addition, although the nonvolatile memory 13 is configured to be controlled by the CPU 11, it may be configured to be controlled via a controller block that controls the nonvolatile memory 13.

[0028] The I / O 14 is connected to units corresponding to the functions of the computer 10. Figure 1 In the illustrated example, a communication unit 16 for communicating with an external device (not shown) via a communication line is connected, but the unit connected to the I / O 14 is not limited to the communication unit 16 .

[0029] Next, the memory structure in the nonvolatile memory 13 is described. Figure 2 As shown, the nonvolatile memory 13 allocates one word, that is, a 32-bit wide memory, to one address. In this way, the memory unit allocated to each address is called word data 1. In order to identify each word data 1, an address corresponds to each word data 1 of the nonvolatile memory 13. The address corresponding to the word data 1 of the nonvolatile memory 13 is called a memory address.

[0030] On the other hand, the data processed by the CPU 11 is managed in units of blocks, and one block is composed of 16 words, that is, 16 word data 1.

[0031] Each block is assigned a block number for identifying each block, and an address is set for word data 1 included in each block so as to uniquely identify word data 1 in the block. That is, CPU 11 can identify data stored in a designated word data 1 by combining the block number and the address in each block.

[0032] In this way, the address of data on the system represented by a combination of a block number and an address in each block is called a data address.

[0033] The word data 1 indicated by the data address and the word address on the memory space indicated by the memory address are respectively associated with each other as described later, and can be referenced to each other.

[0034] Each of these word data 1 includes a latest bit, a block bit, data, and a validity bit.

[0035] The latest bit is an example of a sequential area that indicates the update order of the data represented by the data address. For example, 2 bits are allocated to the latest bit. When the latest bit is b00 to b10, it means that data is stored in word data 1, and when it is b11, it means that no data is stored in word data 1. The symbol "b" is a symbol that indicates that the value that follows is binary data.

[0036] When data is stored in word data 1, a larger value of the latest bit indicates that new data is stored. Specifically, compared with word data 1 whose latest bit is b00, word data 1 whose latest bit is b01 indicates that new data is stored, and compared with word data 1 whose latest bit is b01, word data 1 whose latest bit is b10 indicates that new data is stored. When new data is stored after the latest bit reaches b10, the latest bit is returned to b00. That is, between word data 1 whose latest bit indicates b10 and word data 1 whose latest bit indicates b00, the data stored in word data 1 whose latest bit is b00 indicates new data.

[0037] The block bit indicates the block group to which the data address corresponding to the stored data belongs. The block group refers to each group when each block is divided into two or more groups.

[0038] The block bit is allocated with bits required to uniquely identify the block group. For example, when the block group is divided into two blocks, A block and B block, if 1 bit is allocated as the block bit, the block group can be identified.

[0039] The data in word data 1 indicates the data stored in word data 1.

[0040] The validity bit indicates whether the data stored in word data 1 is normal. For example, when CPU 11 writes data to word data 1, it uses an error correction code such as ECC (Error-Correcting Code) to determine the validity of the data written to word data 1, and reflects whether the written data is normal in the validity bit.

[0041] The CPU 11 processes such word data 1 as one memory group 3 , for example, word data 1 of three consecutive memory addresses.

[0042] Figure 3 2 is a diagram showing a configuration example of the memory group 3. Here, as an example, a case where the block group is divided into two, namely, the A block and the B block, is described.

[0043] The memory group 3 is composed of word data 1A storing data corresponding to the data address of the block belonging to the A group, word data 1B storing data corresponding to the data address of the block belonging to the B group, and spare word data 1C for data rewriting. The word data 1A stores data corresponding to the data address of the block belonging to the B group.

[0044] That is, the memory group 3 includes word data 1A, word data 1B, and spare word data 1C each storing data corresponding to a data address belonging to each of the grouped block groups one by one.

[0045] In addition, hereinafter, word data 1A, word data 1B, and word data 1C are collectively referred to as “word data 1”.

[0046] The word data 1C in the initial state does not include any information. Thus, the state not including any information is represented as "empty".

[0047] If the memory address of word data 1A is set to "n", the memory addresses of word data 1B and word data 1C are memory address (n+1) and memory address (n+2), respectively. In addition, the arrangement of word data 1A, word data 1B, and word data 1C in memory group 3 is an example, and for example, word data 1C may be arranged at memory address n, word data 1A may be arranged at memory address (n+1), and word data 1B may be arranged at memory address (n+2).

[0048] Figure 4 The figure shows an example of correspondence between an address map of data represented by a data address and an address map of data on a memory space represented by a memory address. The word data 1A included in each memory group 3 stores data included in the A block, and the word data 1B included in each memory group 3 stores data included in the B block.

[0049] Next, use Figure 4A method of rewriting word data 1 of the memory structure shown in FIG. 1 is described in detail.

[0050] Figure 5 This is a flowchart showing an example of the flow of data rewriting processing executed by the CPU 11 when a data write request for word data 1 at a designated data address of a designated block group is received. The CPU 11 reads a program from the nonvolatile memory 13 and executes the data rewriting processing.

[0051] In addition, the CPU 11 executes the following operation for the memory group 3 corresponding to the data address of the block group to which data is to be written: Figure 5 The data rewrite process shown.

[0052] In step S10, the CPU 11 determines whether or not there is word data 1C in the initial state, that is, empty word data 1C, in the memory group 3. If there is empty word data 1C, the process moves to step S20.

[0053] In step S20, CPU11 writes data to the empty word data 1C. In this case, CPU11 writes the specified block group to the block bit of word data 1C, and sets the latest bit of word data 1C in a manner indicating that the latest data in the specified data address of the specified block group is stored in word data 1C. In addition, CPU11 sets the value corresponding to the validity of the data written in word data 1C as the validity bit of word data 1C. Thus, the process ends. Figure 5 The data rewrite process shown.

[0054] On the other hand, when it is determined in the determination process of step S10 that there is no empty word data 1C in the memory group 3, the process proceeds to step S30.

[0055] In step S30 , the CPU 11 determines whether or not there are a plurality of data of the same block group as the designated block group in the memory group 3 .

[0056] When a plurality of data of the same block group as the designated block group exists in the memory group 3, the process proceeds to step S40.

[0057] In this case, data of a data address belonging to a certain block group has already been written into word data 1C. Therefore, in step S40, CPU 11 writes data to word data 1 to which the oldest data is written among a plurality of word data 1 in memory group 3 to which data of the same block group as the designated block group is written, thereby rewriting the data.

[0058] The block bit of word data 1 may be referred to to determine which block group the data of the data address belonging to is written into word data 1. The latest bit of word data 1 may be referred to to determine the update order of data in a specified data address of a specified block group.

[0059] Furthermore, CPU 11 sets a value corresponding to the validity of the data written into word data 1 as the validity bit of word data 1 into which the data is written, and sets the latest bit of word data 1 into which the data is written so as to know that the latest data in the specified data address of the specified block group is stored. Thus, the process ends. Figure 5 The data rewrite process shown.

[0060] On the other hand, in the determination process of step S30 , when it is determined that a plurality of data of the same block group as the designated block group does not exist in the memory group 3 , the process proceeds to step S50 .

[0061] In this case, a plurality of data belonging to a data address of a block group different from the designated block group is written in the word data 1 constituting the memory group 3. Therefore, in step S50, the CPU 11 writes data to the word data 1 to which the oldest data is written among the plurality of word data 1 in the memory group 3 to which data of a block group different from the designated block group is written, thereby rewriting the data.

[0062] The block bit of word data 1 may be referred to to determine which block group the data of the data address belonging to is written into word data 1. The latest bit of word data 1 may be referred to to determine the update order of data at the data address belonging to a block group different from the designated block group.

[0063] Furthermore, CPU 11 sets the validity bit of word data 1 to which data is written, which corresponds to the validity of the data written to word data 1, and sets the latest bit of word data 1 to which data is written, in a manner that knows that the latest data in the specified data address of the specified block group is stored. In addition, CPU 11 updates the block bit of word data 1 to which data is written, in a manner that knows that the data written is the data of the specified block group. Thus, the process ends. Figure 5 The data rewrite process shown.

[0064] That is, when updating the data at the designated data address, CPU 11 performs a process of writing the updated data at the designated data address, other than word data 1 in which data before the update of the data address to be updated is stored, and word data 1 in which the latest data of a data address belonging to a block group different from word data 1 storing data at the data address to be updated is stored, in the memory group 3 including word data 1 storing the data at the designated data address.

[0065] Figure 6 It shows that according to Figure 5 The data rewrite process shown is a diagram of an example of updating data at a designated data address.

[0066] Figure 6 The combination of letters and numbers in the word data 1 in the memory group 3 represents the combination of [block bit]-[latest bit] in the corresponding word data 1, which is called "storage state" for convenience of explanation. For example, when the storage state is marked as "A-00", it is shown that the block bit represents A block and the latest bit represents b00.

[0067] Now, it is assumed that the memory group 3 corresponding to the data address to be updated includes word data 1A whose storage state is "A-00", word data 1B whose storage state is "B-00", and empty word data 1C.

[0068] In this state, when a data write request is made to a data address belonging to the A block corresponding to the memory group 3, first, the data is written to the empty word data 1C, and the storage state is set to "A-01".

[0069] Next, when a data write request is made again for the data address of block A corresponding to memory group 3, data is written to word data 1A where the oldest data is written among word data 1 of block A, and the storage state is set to "A-10".

[0070] Next, when a data write request is made to the data address of block B corresponding to memory group 3, data is written to word data 1 to which data of a block different from block B is written, that is, word data 1C to which the oldest data is written among word data 1 to which data of block A is written, and the storage state is set to "B-01".

[0071] Next, when a data write request is made again for the data address of block B corresponding to memory group 3, data is written to word data 1B where the oldest data is written among word data 1 of block B, and the storage state is set to "B-10".

[0072] In this way, the data before and after the update of the designated data address are stored in each memory group 3, and data backup can be performed.

[0073] In addition, each time a data write request is generated, the word data 1 to which data is written is sequentially changed in the same memory group 3, so the number of times data is rewritten can be evenly distributed among the respective word data 1 in the same memory group 3. Therefore, compared with a case where the content of the same word data 1 is rewritten each time a data write request is generated, the number of times each word data 1 is rewritten can be reduced.

[0074] For example, assume that 100 data rewrite requests are made for each of the data addresses in the A block and the B block corresponding to a specific memory group 3. In this case, the number of times the data in each word data 1 is rewritten is [200 (the number of times the data is rewritten for the memory group 3) / 3 (the number of word data 1 constituting the memory group 3)] = 67 times (the value is rounded to the first decimal point).

[0075] In contrast, in the data rewriting process of the memory in Patent Document 1, the maximum number of rewritings occurs is 100. Therefore, the number of data rewritings per word of data is reduced by 33% compared to the conventional data rewriting method with data backup.

[0076] In addition, in the present embodiment, as an example, three word data 1 are used to constitute the memory group 3, but a plurality of spare word data 1 such as word data 1C may be prepared in one memory group 3, and three or more word data 1 such as word data 1A and word data 1B may be prepared, each storing data corresponding to the data address belonging to the grouped block group one by one. By increasing the word data 1 included in the memory group 3, the number of times the data in each word data 1 in the memory group 3 is rewritten is reduced. Therefore, the number of word data 1 included in the memory group 3 may be set in such a way that the number of times the data in each word data 1 included in the memory group 3 is rewritten is less than the maximum number set in advance.

[0077] In the above, a method of rewriting data in the nonvolatile memory 13 in the computer 10 is described using the embodiment, but the disclosed method of rewriting data is an example and is not limited to the scope described in the embodiment. Various changes or improvements can be made to the embodiment without departing from the scope of the present disclosure, and the method to which such changes or improvements are made is also included in the disclosed technical scope.

[0078] In the above embodiment, as an example, a method of implementing data rewriting processing by software is described. However, it is also possible to process the same as in the above embodiment by hardware. Figure 5 In this case, the processing speed can be increased compared with the case where the data rewriting process is realized by software.

[0079] In the above embodiment, the processor refers to a processor in a broad sense, including a general-purpose processor (such as CPU11) or a dedicated processor (such as GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).

[0080] Furthermore, the operations of the processors in the above-described embodiments may be performed not only by one processor but also by cooperation of a plurality of processors located in physically separate locations.

[0081] In the above embodiment, an example in which the program is stored in the nonvolatile memory 13 is described. However, the storage destination of the program is not limited to the nonvolatile memory 13. The program of the present disclosure can also be provided in a form recorded in a computer 10-readable storage medium.

[0082] For example, the program can be provided in the form of being recorded on an optical disk such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), and a Blu-ray disc. In addition, the program can also be provided in the form of being recorded in a removable semiconductor memory such as a USB (Universal Serial Bus) memory and a memory card. The nonvolatile memory 13, CD-ROM, DVD-ROM, Blu-ray disc, USB, and memory card are examples of non-transitory storage media.

[0083] Furthermore, the computer 10 can download a program from an external device connected to a communication line via the communication unit 16 and store the downloaded program in the nonvolatile memory 13. In this case, the CPU 11 reads the program downloaded from the external device from the nonvolatile memory 13 and executes data rewriting processing.

[0084] The following are additional notes on this embodiment.

[0085] (Note 1) A data rewriting method, wherein: In a memory space including word data, wherein the word data stores block numbers for identifying a plurality of blocks and data corresponding to respective data addresses indicated by addresses uniquely set for respective blocks, in a memory structure in which memory groups are provided, wherein the memory groups are composed of a plurality of word data and at least one spare word data, the plurality of word data are stored one by one as data corresponding to the data addresses respectively belonging to the respective block groups when the plurality of blocks are divided into two or more block groups, In the case of updating the data at the designated data address, the computer performs processing for writing the updated data at the designated data address, for word data in the memory group including word data storing the data at the designated data address, word data storing the data before the update of the data address to be updated, and word data storing the latest data of the data address belonging to the block group different from the word data storing the data at the data address to be updated.

[0086] (Note 2) According to the data rewriting method described in Supplement 1, wherein each word data included in the memory group includes: a block area indicating the block group to which the data address corresponding to the stored data belongs; and a sequence area indicating an update sequence of the data indicated by the data address, The following processing is executed by the computer: referring to the block area and the sequential area, selecting word data, and writing the updated data for the designated data address.

[0087] (Note 3) The data rewriting method according to Supplement 1 or 2, wherein the number of word data included in the memory group is set so that the number of times data in each word data included in the memory group is rewritten becomes less than a predetermined number of times.

[0088] Description of Reference Numerals 1(1A, 1B, 1C): Word data 3: Storage Group 10: Computer 11: CPU 12: RAM 13: Non-volatile memory 14: I / O 15: Bus 16: Communication unit 20: First Area 21: Second Area 22: Object pointer area 23: Update pointer area 24: Validity Information 25: Latest Information 30: Data area 31: Object block 32: Update block.

Claims

1. A data rewriting method, wherein: In a memory space including word data, wherein the word data stores block numbers identifying a plurality of blocks and data corresponding to respective data addresses indicated by addresses uniquely set for the respective blocks, In a memory structure in which a memory group is provided, wherein the memory group is composed of a plurality of word data and at least one spare word data, the plurality of word data are stored one by one in data corresponding to the data addresses respectively belonging to each of the block groups when the plurality of blocks are divided into two or more block groups, In the case of updating the data at the designated data address, the computer performs processing for writing the updated data at the designated data address, for word data in the memory group including word data storing the data at the designated data address, word data storing the data before the update of the data address to be updated, and word data storing the latest data of the data address belonging to the block group different from the word data storing the data at the data address to be updated.

2. The data rewriting method according to claim 1, wherein: The individual word data included in the memory group include: a block area indicating the block group to which the data address corresponding to the stored data belongs; and a sequence area which indicates the update sequence of the data represented by the data address, The following processing is executed by the computer: referring to the block area and the sequential area, selecting word data, and writing the updated data for the designated data address.

3. The data rewriting method according to claim 1 or 2, wherein: The number of word data included in the memory group is set so that the number of times data in each word data included in the memory group is rewritten becomes equal to or less than a predetermined number of times.