JP2004139503A - Storage device and its control method - Google Patents

Storage device and its control method Download PDF

Info

Publication number
JP2004139503A
JP2004139503A JP2002305499A JP2002305499A JP2004139503A JP 2004139503 A JP2004139503 A JP 2004139503A JP 2002305499 A JP2002305499 A JP 2002305499A JP 2002305499 A JP2002305499 A JP 2002305499A JP 2004139503 A JP2004139503 A JP 2004139503A
Authority
JP
Japan
Prior art keywords
data
storage device
mirror
logical
physical address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002305499A
Other languages
Japanese (ja)
Inventor
Choji Sugai
菅井 長史
Original Assignee
Matsushita Electric Ind Co Ltd
松下電器産業株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Ind Co Ltd, 松下電器産業株式会社 filed Critical Matsushita Electric Ind Co Ltd
Priority to JP2002305499A priority Critical patent/JP2004139503A/en
Publication of JP2004139503A publication Critical patent/JP2004139503A/en
Application status is Pending legal-status Critical

Links

Images

Abstract

[PROBLEMS] To provide a highly reliable storage device capable of immediately reading correct data even when an ECC error occurs when reading data, and a control method thereof.
In a storage device of the present invention, when a mirror write command is input, the same data is written to different storage media. At the same time, the control unit of the recording device generates management information for mirror writing (data ID, mirror writing flag, logical address, etc.). If one recording medium is out of order when reading data, correct data is read from another recording medium. At this time, correct data read from another recording medium is rewritten in a normal area instead of the data of the failed recording medium.
[Selection diagram] Fig. 1

Description

[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a storage device and a control method thereof.
[0002]
[Prior art]
In recent years, with the spread of not only personal computers but also portable information devices such as digital still cameras and PDAs, small storage devices have attracted attention.
A conventional storage device and its control method will be described with reference to FIG.
First, a configuration of a conventional storage device will be described.
FIG. 13 is a block diagram showing a configuration of a conventional storage device. In FIG. 13, reference numeral 101 denotes a host, and 1311 denotes a storage device. The host 101 has a host input / output unit 102 and a control unit 103. The storage device 1311 includes a memory input / output unit 112, a control unit 1313, a first recording medium 114, and a second recording medium 1315. The control means 1313 has a logical / physical address conversion table 1316 and a memory access control means 117.
[0003]
Next, the data flow of the conventional storage device will be described.
When writing data, the control unit 103 of the host 101 first transmits a command to the memory input / output unit 112 of the storage device 1311 through the host input / output unit 102. The memory input / output unit 112 transmits a command to the control unit 1313. The memory access control means 117 writes data to the first recording medium 114 and the second recording medium 1315. After writing, the memory access control means 117 reads the written data. The control unit 1313 checks whether the written data is the same as the data to be written, and if not, repeats the writing and checking of the correct data (for example, see Patent Document 1). The control unit 1313 generates a logical / physical address conversion table 1316.
As described above, the conventional storage device repeatedly performs the writing process until the data is correctly written at the time of writing, thereby improving the reliability of the data.
[0004]
[Patent Document 1]
JP-A-6-301601 (pages 4-5, FIG. 1)
[0005]
[Problems to be solved by the invention]
However, in the conventional storage device, even if data is correctly written at the time of writing, if an ECC error occurs at the time of reading data, there is a problem in that the reading process is performed again, so that it takes time to read. . Furthermore, if an ECC error occurs even after the reading process is performed again, the data becomes invalid, and the written information cannot be read.
When the host inputs continuous data such as video signals and audio signals on the time axis at a rate close to the writing speed of the storage device and records the data in the storage device, the storage device writes data that failed to be written again. I can't afford it. In such a case, there has been a problem that one writing failure immediately results in a recording failure for the user.
[0006]
An object of the present invention is to solve the above-mentioned problems and to provide a storage device capable of writing data with high reliability and a control method thereof.
SUMMARY OF THE INVENTION It is an object of the present invention to provide a storage device capable of immediately reading correct data even when an ECC error occurs when reading data, and a control method thereof.
SUMMARY OF THE INVENTION It is an object of the present invention to provide a storage device and a control method therefor, which can write data that is temporally and continuously input at a rate so high that rewriting cannot be performed with high reliability.
[0007]
[Means for Solving the Problems]
In order to solve the above problems, the present invention has the following configurations.
According to the first aspect of the present invention, an input unit for inputting data with a logical address, a non-volatile recording medium, and a logical / physical address conversion table for converting the logical address into a physical address of the recording medium are generated. A control unit that records input data at the physical address specified by the logical / physical address conversion table, wherein the control unit generates one logical / physical address conversion table, And a plurality of logical / physical address conversion tables, wherein the input data overlaps with the physical address specified by the respective logical / physical address conversion tables. And a mirror recording mode for recording the data.
The plurality of logical / physical address conversion tables may be a conversion table for recording the same data that converts a plurality of logical addresses into a plurality of physical addresses associated with each other, and may store one logical address. A conversion table for recording the same data, which is converted into a plurality of physical addresses, may be used.
[0008]
3. The invention according to claim 2, wherein the recording medium has a plurality of nonvolatile memories of chips, and in the mirror recording mode, the plurality of logical / physical address conversion tables are each a nonvolatile memory of a separate chip. 2. The storage device according to claim 1, wherein a physical address is specified.
If the semiconductor recording medium fails, the entire semiconductor chip may become unreadable. Since the storage device of the present invention records data on a separate chip in the mirror recording mode, data can be read even if one semiconductor chip becomes unreadable.
[0009]
According to a third aspect of the present invention, when the input data is any one of predetermined types of data including data identification information and copy protection data, the control unit may be configured to control the logic added to the input data. 2. The storage device according to claim 1, wherein a plurality of logical / physical address conversion tables in which different physical addresses are associated with addresses are generated, and the input data is automatically recorded in the mirror recording mode. It is.
[0010]
According to a fourth aspect of the present invention, when reading the data recorded in the mirror recording mode, the control unit may determine that one of the read data is an error and the other read data is normal. If so, the logical / physical address conversion table in which the read data has an error is automatically updated to specify a new physical address, and the normally read data is recorded at the physical address. The storage device according to claim 1.
[0011]
According to a fifth aspect of the present invention, the control unit has information on an area size of a mirror writing area, and the input unit inputs a command to record data of an information amount exceeding the area size in the mirror recording mode. 2. The storage device according to claim 1, wherein the control unit automatically records the input data in the single recording mode.
[0012]
According to a sixth aspect of the present invention, when the input unit is any one of predetermined types of data including data identification information and copy protection data and inputs data having an information amount exceeding the area size, 6. The storage device according to claim 5, wherein the control unit automatically changes the area size to a large value and records the input data in the mirror recording mode.
[0013]
According to a seventh aspect of the present invention, when the input unit inputs a command to record data of an information amount exceeding a remaining recording capacity of the recording medium excluding the mirror writing area, the control unit automatically 6. The storage device according to claim 5, wherein the input data is recorded by changing the area size to a small value.
[0014]
In the invention according to claim 8, when the input unit inputs a command to record data of an information amount exceeding the remaining recording capacity of the recording medium, the control unit automatically overlaps in the mirror recording mode. The storage device according to claim 1, wherein at least a part of one of the data recorded by erasing is deleted and the input data is recorded.
[0015]
According to a ninth aspect of the present invention, when the input unit inputs a command to record data of an information amount exceeding the remaining recording capacity in the mirror recording mode if duplicate recording is performed, the control unit performs an automatic recording. 2. The storage device according to claim 1, wherein the input data is recorded in the single recording mode.
[0016]
A tenth aspect of the present invention is the storage device according to any one of the first to ninth aspects, wherein the storage device is an IC card.
[0017]
The invention according to claim 11, which is a control method of a storage device having a non-volatile recording medium, comprises an inputting step of inputting data with a logical address, and converting the logical address into a physical address of the recording medium. A single recording step of generating one logical / physical address conversion table and recording the input data at the physical address specified by the logical / physical address conversion table without duplication; and writing the logical address to the physical address of the recording medium. And a mirror recording step of generating a plurality of logical / physical address conversion tables for converting the input data into the physical addresses specified by the respective logical / physical address conversion tables. This is a method for controlling a storage device as a feature.
[0018]
12. The storage according to claim 11, wherein in the mirror recording step, the input data is simultaneously written to the physical addresses specified by the plurality of logical / physical address conversion tables. It is a control method of the device.
[0019]
The invention according to claim 13 is characterized in that if the input data is any of predetermined types of data including data identification information and copy protection data, the mirror recording step is automatically executed. A method for controlling a storage device according to claim 11.
[0020]
According to a fourteenth aspect of the present invention, when the data recorded in the mirror recording step is read out, if one of the read data is an error and the other one is normal, A step of updating the logical / physical address conversion table in which the read data has an error, designating a new physical address, and recording the normally read data at the physical address. 12. A method for controlling a storage device according to item 11.
[0021]
According to a fifteenth aspect of the present invention, the storage device has information on an area size of a mirror write area, and automatically receives a command to record data having an information amount exceeding the area size in the mirror recording step. 12. The method according to claim 11, wherein the input data is recorded in the single recording step.
[0022]
The invention according to claim 16 is configured such that, when any one of predetermined types of data including data identification information and copy protection data and data having an information amount exceeding the area size is input, the data is automatically generated. The method according to claim 15, wherein the input data is recorded in a mirror recording step by changing an area size to a large value.
[0023]
The invention according to claim 17, wherein, when a command for recording data of an information amount exceeding the remaining recording capacity of the recording medium excluding the mirror writing area is input, the control unit automatically reduces the area size. 16. The storage device control method according to claim 15, wherein the input data is recorded after being changed to a value.
[0024]
The invention according to claim 18, wherein, when a command to record data having an information amount exceeding the remaining recording capacity of the recording medium is input, at least one of the data redundantly recorded in the mirror recording step is automatically performed. The method according to claim 11, further comprising the step of erasing a part and recording the input data.
[0025]
20. The invention according to claim 19, wherein, if a command for recording data having an information amount exceeding the remaining recording capacity in the mirror recording step is input in the case of performing the duplicate recording, the input data is automatically performed in the single recording step. The method of controlling a storage device according to claim 11, wherein
[0026]
The invention according to claim 20 is the control method for a storage device according to any one of claims 11 to 19, wherein the storage device is an IC card.
The present invention has an effect that a storage device for writing data with high reliability and a control method thereof can be realized.
The present invention has an effect of realizing a storage device for reading correct data immediately even when an ECC error occurs when reading data, and a control method therefor.
The present invention has the effect of realizing a storage device and a control method for writing data that is temporally and continuously input at a rate so high that rewriting cannot be performed with high reliability.
[0027]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment that specifically shows the best mode for carrying out the present invention will be described with reference to the drawings.
[0028]
<< Example 1 >>
First Embodiment A storage device according to a first embodiment of the present invention and a control method thereof will be described with reference to FIGS.
First, the configuration of the storage device according to the first embodiment will be described.
FIG. 1 is a block diagram illustrating a configuration of a storage device according to a first embodiment of this invention. In FIG. 1, reference numeral 101 denotes a host, and 111 denotes a storage device. The host 101 has a host input / output unit 102 and a control unit 103. The storage device 111 has a memory input / output unit 112, a control unit 113, a first recording medium 114, and a second recording medium 115. The control means 113 has a logical / physical address conversion table 116 and a memory access control means 117.
[0029]
In the first embodiment, the host 101 is a computer, and the storage device 111 is an IC card. In the embodiment, the first recording medium 114 and the second recording medium 115 are nonvolatile memories (for example, flash memories). In the first embodiment, the entirety of the second recording medium 115 is a mirror writing area. The host 101 may be an arbitrary device such as a digital still camera, a PDA, an audio recording device using an IC card, and a mobile phone.
[0030]
Next, the flow of data in the storage device according to the first embodiment will be described.
The control means 103 includes a single recording mode in which one data (data having the same information amount as the recording capacity of one logical address) is written in one logical address, and a plurality of (two in the embodiment) one data. And a mirror recording mode in which a logical address is redundantly written.
When writing data, first, the control unit 103 of the host 101 determines a logical address (one logical address for one data in the single recording mode, two logical addresses for one data in the mirror recording mode) to write the data. . The control unit 103 sends the write command and the transfer data (one logical address in the single recording mode and two logical addresses in the mirror recording mode) to the memory input / output unit 112 of the storage device 111 through the host input / output unit 102. ).
[0031]
FIG. 2A is a configuration diagram of transfer data in the mirror recording mode of the storage device according to the first embodiment of the present invention. The transfer data has a data section 201 and a redundant section 202. The redundant unit 202 has a data ID (data identifier) 203, a first logical address 204, and a second logical address 205. In the single recording mode, the redundant unit 202 has the data ID 203 and the first logical address 204 and does not have the second logical address 205 (the value of the area where the second logical address 205 is stored is all 1). Is.).
The memory input / output unit 112 transmits a write command to the control unit 113. The control unit 113 generates management information.
FIG. 2B is a configuration diagram of management information generated in the mirror recording mode by the storage device according to the first embodiment of the present invention. The management information has a data ID 203, a first logical address 204, a second logical address 205, and a mirror write flag 206 (value is 0). The management information generated in the single recording mode has the data ID 203, the first logical address 204, the mirror write flag 206 (value is 1), and does not have the second logical address 205 (the second logical address). All values of the area where 205 is stored are 1.)
[0032]
The control unit 113 of the storage device 111 determines whether the write command in the single recording mode or the write command in the mirror recording mode is based on whether the redundant unit 202 of the transfer data has the second logical address 205. . Since there is no second logical address (for example, FFFFFFFFH (hexadecimal notation)) whose values are all 1, the storage device 111 can determine whether or not the redundant unit 202 has the second logical address 205.
[0033]
Instead of the method of the first embodiment, the code of the write command transmitted from the host 101 to the storage device 111 may be different between the single recording mode and the mirror recording mode. Alternatively, the redundant unit 202 of the transfer data transmitted from the host 101 to the storage device 111 may have a mirror write flag (for example, the value in the single recording mode is 1, and the value in the mirror recording mode is 0).
[0034]
In the mirror recording mode, the memory access control unit 117 writes data to the first recording medium 114 and the second recording medium 115. The control unit 113 generates a logical / physical address conversion table 116.
FIG. 2C is a configuration diagram of the logical / physical address conversion table of the storage device according to the first embodiment of the present invention. The logical / physical address conversion table 116 has a first logical / physical address conversion table 211 and a second logical / physical address conversion table 212. The logical address of the first logical / physical address conversion table 211 is the first logical address 204. Further, the logical address of the second logical / physical address conversion table 212 is the second logical address 205.
In the first embodiment, the control unit 113 specifies the physical address of the first recording medium 114 as the physical address of the first logical / physical address conversion table 211, and sets the physical address of the second logical / physical address conversion table 212 as the physical address. The physical address of the second recording medium 115 is specified. The first recording medium 114 and the second recording medium 115 are constituted by separate semiconductor chips.
[0035]
In the single recording mode, the memory access control unit 117 writes data to the first recording medium 114. The control unit 113 generates a logical / physical address conversion table 116. The logical / physical address conversion table 116 has only the first logical / physical address conversion table 211. The control unit 113 specifies the physical address of the first recording medium 114 as the physical address of the first logical / physical address conversion table 211.
[0036]
When reading data, the control unit 103 of the host 101 first sends a read command and transfer data (data corresponding to the redundant unit 202 to the memory input / output unit 112 of the storage device 111 via the host input / output unit 102. (2 logical addresses are included for the data written in (1), and one logical address is included for the data written in the single recording mode.)
[0037]
The memory input / output unit 112 transmits a read command to the control unit 113. The control unit 113 searches the logical / physical address conversion table 116 for a physical address based on the logical address included in the command. The memory access control unit 117 reads the duplicate data from the first recording medium 114 and the second recording medium 115 for the data written in the mirror recording mode based on the searched physical address, and writes the data in the single recording mode. The read data is read from the first recording medium 114. The control unit 113 transmits the read data to the host via the memory input / output unit 112.
[0038]
Next, a control method of the storage device according to the first embodiment will be described.
FIG. 3 is a flowchart of a control method at the time of writing in the storage device according to the first embodiment of the present invention. 3, in step 301, a data write command is input from the host 101 to the memory input / output unit 112 of the storage device 111. In step 302, the control means 113 determines whether or not the input command is a mirror write command.
If the command input in step 302 is a mirror write command, the process proceeds to step 303, where the control unit 113 transmits an ACK to the host 101. In step 304, the memory access control unit 117 writes the same data to each of the first recording medium 114 and the second recording medium 115 at the same time. In this embodiment, two sets of transmitted 16-bit data are written into a 32-bit write register of the memory access control means 117. Next, 16-bit data is simultaneously written from the write register to the physical address of the first recording medium 114 and the physical address of the second recording medium 115, respectively.
[0039]
In step 305, the control means 113 generates a logical / physical address conversion table (two in total) 116 for each of the data written on the first recording medium 114 and the mirror data written on the second recording medium 115, and The flowchart ends.
If the command input in step 302 is not a mirror write command (in the case of a single write command), the process proceeds to step 306, and the control unit 113 transmits an ACK to the host 101. In step 307, the memory access control means 117 writes data to the first recording medium 114 without duplication. In step 308, the control unit 113 generates a logical / physical address conversion table (one in total) 116 of the data written in the first recording medium 114, and ends this flowchart.
[0040]
FIG. 4 is a flowchart of a control method at the time of reading of the storage device according to the first embodiment of the present invention. In FIG. 4, in step 401, a data read command is input from the host 101 to the memory input / output unit 112 of the storage device 111. In step 402, the control unit 113 determines whether or not the input data is data having mirror data (data that has been mirror-written at the time of data writing). In the embodiment, the first logical address 204 and the second logical address 204 of the data attached to the data read command (in the embodiment, it has the same configuration as the transfer data redundant unit 202 shown in FIG. 2A). It is determined whether a logical address is set for both of the logical addresses 205 of FIG.
[0041]
Instead of the embodiment, the data ID 203 and one logical address (204 or 205) of the data to be read may be attached to the data read command transmitted from the host. The control unit 113 of the storage device 111 determines whether the data is single-recorded data or mirror-recorded data, based on the mirror write flag 206 of the management information shown in FIG. Since the two logical / physical address conversion tables 211 are associated with each other, the control unit 113 can obtain another logical address 205 in which the same data is written from one input logical address 204.
[0042]
If it is determined in step 402 that the data does not have mirror data (data that has been single-written at the time of data writing), the process proceeds to step 403, where a physical address is searched from the logical / physical address conversion table 116. In step 404, the memory access control means 117 reads data based on the searched physical address. In step 405, it is determined whether the read data is an error.
If the data is not an error (if the data is normal) in step 405, the process proceeds to step 406, where the control unit 113 transmits the read data to the host, and ends this flowchart.
If the data is in error in step 405, the process proceeds to step 407, where the control unit 113 transmits error information to the host, and ends this flowchart.
[0043]
If it is determined in step 402 that the data has mirror data (data that has been mirror-written at the time of data writing), the process proceeds to step 408. In step 408, the physical addresses of the data and mirror data are searched from the logical / physical address conversion table 116. The logical / physical address conversion table 116 has a first logical / physical address conversion table 211 and a second logical / physical address conversion table 212 shown in FIG. The physical address of the data (the physical address of the first recording medium 114) is retrieved from the first logical / physical address conversion table 211 based on the first logical address 204. The physical address of the mirror data (the physical address of the second recording medium 115) is retrieved from the second logical / physical address conversion table 212 based on the second logical address 205.
In step 409, the memory access control means 117 reads data from the first recording medium 114 and mirror data from the second recording medium 115 based on each of the searched physical addresses. In step 410, it is determined whether the data read from the first recording medium 114 is an error.
[0044]
If the data is not an error in step 410 (if the data is normal), the process proceeds to step 411, where the control unit 113 transmits the data read from the first recording medium 114 to the host, and ends the flowchart.
If the data is erroneous in step 410, the process proceeds to step 412, and it is determined whether the mirror data read from the second recording medium 115 is erroneous.
If the mirror data is not an error in step 412 (if the mirror data is normal), the process proceeds to step 413, where the control unit 113 transmits the mirror data read from the second recording medium 115 to the host. In step 414, the memory access control means 117 writes the mirror data read from the second recording medium 115 into a free area of the first recording medium 114. In step 415, the control unit 113 updates the first logical / physical address conversion table 212 of the logical / physical address conversion table 116 to specify the physical address where the new data is written, and ends this flowchart. I do.
If the mirror data has an error in step 412, the process proceeds to step 416, where the control unit 113 transmits error information to the host, and ends this flowchart.
[0045]
If the data is not an error at step 410 (if the data is normal), the mirror data may be read. If the mirror data has an error, the normally read data is written as new mirror data in a free area of the second recording medium 115. The second logical / physical address conversion table 213 may be updated so as to specify the physical address where the new mirror data is written.
[0046]
FIG. 5 is a flowchart of a control method when changing single write data to mirror write data in the storage device according to the first embodiment of the present invention. In FIG. 5, in step 501, a write mode change (change from single write data to mirror write data) command (the second logical address 205 for mirror data is sent from the host 101 to the memory input / output unit 112 of the storage device 111). Is included). In step 502, the control means 113 determines whether or not the input data is data having mirror data (data written in mirror at the time of data writing).
[0047]
If it is determined in step 502 that the data does not have mirror data (data that has been single-written at the time of data writing), the process proceeds to step 503, and the control unit 113 transmits ACK to the host. In step 504, the physical address of the first recording medium 114 is searched from the logical / physical address conversion table 116. In step 505, the memory access control means 117 reads data from the first recording medium 114 based on the searched physical address. In step 506, the memory access control unit 117 writes the data read from the first recording medium 114 to a free area of the second recording medium 115. In step 507, the control unit 113 generates the second logical / physical address conversion table 211 of the logical / physical address conversion table 116, and ends this flowchart.
If it is determined in step 502 that the data has mirror data (data that has been mirror-written at the time of data writing), the process proceeds to step 508, where the control unit 113 transmits error information to the host, and ends the flowchart.
[0048]
In the storage device of this embodiment, when a mirror write command is sent from the host, the same data is recorded on different recording media. A storage device capable of reading data from another flash memory even if one flash memory fails, and a control method thereof have been realized.
In the storage device of the present embodiment, when one flash memory fails and data is read from another flash memory, the data is rewritten to a normal area. The possibility that both data are erroneous is reduced, and a more reliable storage device and its control method are realized.
[0049]
In the above embodiment, different logical addresses are assigned to data and its mirror data. In another embodiment, the host controller assigns one logical address to the write data and its mirror data. The redundant part 202 of the transfer data attached to the write command from the host has a data ID 203, a first logical address, and a mirror write flag (value 0 in mirror write mode, value 1 in single write mode). If the mirror write flag is 0, the control unit 113 of the storage device determines that the write command is a write command in the mirror write mode, and associates one logical address with a different physical address to perform the first logical / physical address conversion. A table 211 and a second logical / physical address conversion table 212 are generated.
If the mirror write flag is 1, the control unit 113 of the storage device determines that the write command is in the single write mode, and generates only the first logical / physical address conversion table 211.
[0050]
<< Example 2 >>
Second Embodiment A storage device according to a second embodiment of the present invention and a control method thereof will be described with reference to FIGS. In the first embodiment, the host determines whether to perform single writing or mirror writing. In the present embodiment, it is determined whether the storage device that has received the data performs single writing or mirror writing. Further, unlike the first embodiment, a part of the second recording medium is a mirror writing area. Other areas are areas that can be used in the same manner as the first recording medium.
[0051]
First, the configuration of the storage device according to the second embodiment will be described.
FIG. 6 is a block diagram illustrating the configuration of the storage device according to the second embodiment of the present invention. In FIG. 6, reference numeral 101 denotes a host, and 611 denotes a storage device. The host 101 has a host input / output unit 102 and a control unit 103. The storage device 611 includes a memory input / output unit 112, a control unit 613, a first recording medium 114, and a second recording medium 615. The control means 613 has a logical / physical address conversion table 616 and a memory access control means 117. The same components as those in the first embodiment (FIG. 1) are denoted by the same reference numerals.
In the second embodiment, the host 101 is a computer, and the storage device 611 is an IC card. In the second embodiment, a part of the second recording medium 615 is a mirror writing area. The host 101 may be an arbitrary device such as a digital still camera, a PDA, an audio recording device using an IC card, and a mobile phone.
[0052]
Next, a data flow of the storage device according to the second embodiment will be described.
When writing data, first, the control unit 103 of the host 101 transmits a write command and transfer data (including one logical address) to the memory input / output unit 112 of the storage device 611 through the host input / output unit 102.
FIG. 7A is a configuration diagram of transfer data of the storage device according to the second embodiment of the present invention. The transfer data has a data section 201 and a redundant section 702. The redundant unit 702 has a data ID (data identifier) 703 and a logical address 704.
[0053]
The memory input / output unit 112 transmits a write command to the control unit 613. The control unit 613 determines whether the data is to be single-written or the data to be mirror-written, and generates management information. The control unit 613 records the data in the mirror recording mode if the transmitted data is any of predetermined types of data (typically important data) including data identification information and copy protection data. If it is determined that the data is not a predetermined type, the data is determined to be recorded in the single recording mode.
FIG. 7B is a configuration diagram of the management information of the storage device according to the second embodiment of the present invention. The management information has a data ID 703, a logical address 704, and a mirror write flag 706 (the value in the mirror recording mode is 0, and the value in the single recording mode is 1).
[0054]
The memory access control means 117 writes data to the first recording medium 114 and the second recording medium 615. The control unit 613 generates a logical / physical address conversion table 616.
FIG. 7C is a configuration diagram of the logical / physical address conversion table in the mirror recording mode of the storage device according to the second embodiment of the present invention. The logical / physical address conversion table 616 has a first logical / physical address conversion table 711 and a second logical / physical address conversion table 712. The logical address of the first logical / physical address conversion table 711 and the logical address of the second logical / physical address conversion table 712 are the logical address 704 (the same logical address). In the single recording mode, the logical / physical address conversion table 616 has only the first logical / physical address conversion table 711.
[0055]
When reading data, first, the control unit 103 of the host 101 sends a read command and transfer data (data corresponding to the redundant unit 702 and one logical unit) to the memory input / output unit 112 of the storage device 611 through the host input / output unit 102. Address). The memory input / output unit 112 transmits a read command to the control unit 613. The control means 613 searches the logical / physical address conversion table 616 for a physical address based on the logical address included in the command. The memory access control unit 117 reads the duplicate data from the first recording medium 114 and the second recording medium 115 for the data written in the mirror recording mode based on the searched physical address, and writes the data in the single recording mode. The read data is read from the first recording medium 114. The control unit 613 transmits the read data to the host via the memory input / output unit 112.
[0056]
Next, a control method of the storage device according to the second embodiment will be described.
FIG. 8 is a flowchart of a control method at the time of writing in the storage device according to the second embodiment of the present invention. One recording medium can write data of ワ ー ド word length (16 bits) at a time, and the memory access control means 117 can write data of one word length (32 bits) to two recording media 114 and 115 at the same time. It has a write register. In FIG. 8, in step 801, a data write command is input from the host 101 to the memory input / output unit 112 of the storage device 611. In step 802, the control unit 613 determines whether or not the input data is data to be mirror-written (a predetermined type of important data including data identification information and copy protection data).
If the data input in step 802 is data to be mirror-written, the process proceeds to step 803, where the control unit 613 transmits ACK to the host 101. In step 804, the memory access control unit 117 writes the same data (16 bits each) to each of the first recording medium 114 and the second recording medium 615. In step 805, the control unit 613 generates a logical / physical address conversion table (two in total) 616 for each of the data written on the first recording medium 114 and the mirror data written on the second recording medium 615. The flowchart ends.
[0057]
If the data input in step 802 is not data to be mirror-written (in the case of single-write data), the process proceeds to step 806, where the control unit 613 determines whether or not the data to be written is data having a half word length or less. I do.
If the data to be written in step 806 is larger than 1/2 word length (32 bits in the embodiment), the process proceeds to step 807, and the control unit 613 transmits ACK to the host 101. In step 808, the memory access control means 117 writes the divided data (16 bits each) on the first recording medium 114 and the second recording medium 615 at the same time. In step 809, the control unit 613 generates a logical / physical address conversion table (one in total) 616 for the data written in the first recording medium 114 and the second recording medium 615, and ends this flowchart.
[0058]
If the data to be written in step 806 is equal to or less than で word length (16 bits), the process proceeds to step 810, and the control unit 613 transmits ACK to the host 101. In step 811, the memory access control unit 117 writes data to one of the first recording medium 114 and the second recording medium 615. In step 809, the control unit 613 generates a logical / physical address conversion table (one in total) 616 for the data written in the first recording medium 114 or the second recording medium 615, and ends this flowchart.
[0059]
The control method at the time of reading of the storage device of the second embodiment is the same as that of the first embodiment (FIG. 4). However, one logical address is always transmitted from the host 101 to the storage device 111 for each data.
In the present embodiment, by separately providing a write register for each flash memory, it is possible to simultaneously write to a plurality of flash memories and realize a storage device capable of performing high-speed access and a control method thereof.
In this embodiment, when the host does not consider the write mode and determines that the storage device is important data, the host records the same data on different recording media. A storage device capable of reading data from another flash memory even if one flash memory fails, and a control method thereof have been realized.
[0060]
<< Example 3 >>
Third Embodiment A storage device according to a third embodiment of the present invention and a control method thereof will be described with reference to FIGS. As in the first embodiment, the host determines whether to perform single writing or mirror writing. The difference from the first embodiment is that a part of the second recording medium is a mirror writing area, and the other area is an area that can be used in the same manner as the first recording medium. The storage device also differs from the first embodiment in that when a mirror write command for data exceeding the set mirror write area is input, the storage device notifies the host and performs single write of data.
[0061]
First, the configuration of the storage device according to the third embodiment will be described.
FIG. 9 is a block diagram illustrating the configuration of the storage device according to the third embodiment of the present invention. In FIG. 9, 101 is a host, and 911 is a storage device. The host 101 has a host input / output unit 102 and a control unit 103. The storage device 911 includes a memory input / output unit 112, a control unit 113, a first recording medium 114, and a second recording medium 915. The control means 113 has a logical / physical address conversion table 116 and a memory access control means 117. The same components as those in the first embodiment (FIG. 1) are denoted by the same reference numerals.
In the third embodiment, the host 101 is a computer, and the storage device 911 is an IC card. In the third embodiment, a part of the second recording medium 915 is a mirror writing area. The host 101 may be an arbitrary device such as a digital still camera, a PDA, an audio recording device using an IC card, and a mobile phone.
[0062]
Next, a data flow of the storage device according to the third embodiment will be described.
When writing data, first, the control unit 103 of the host 101 sends a write command and transfer data (including two logical addresses in the case of mirror writing) to the memory input / output unit 112 of the storage device 911 through the host input / output unit 102. ).
FIG. 2A is a configuration diagram of transfer data of the storage device according to the third embodiment of the present invention. The description is omitted because it is the same as the first embodiment (FIG. 2A).
The memory input / output unit 112 transmits a command to the control unit 113. The control unit 113 generates management information.
FIG. 2B is a configuration diagram of the management information of the storage device according to the first embodiment of the present invention. The description is omitted because it is the same as the first embodiment (FIG. 2B).
[0063]
The memory access control unit 117 writes data to the first recording medium 114 and the second recording medium 915. The control unit 113 generates a logical / physical address conversion table 116.
FIG. 2C is a configuration diagram of the logical / physical address conversion table of the storage device according to the first embodiment of the present invention. The description is omitted because it is the same as the first embodiment (FIG. 2C).
[0064]
When reading data, first, the control unit 103 of the host 101 sends a read command and transfer data (data corresponding to the redundant unit 202 and data of the mirror data to the memory input / output unit 112 of the storage device 111 via the host input / output unit 102). The time includes two logical addresses.) The memory input / output unit 112 transmits a command to the control unit 113. The control unit 113 searches the logical / physical address conversion table 116 for a physical address based on the logical address included in the command. The memory access control unit 117 reads data from the first recording medium 114 and the second recording medium 915 based on the searched physical address. The control unit 113 transmits the read data to the host via the memory input / output unit 112.
[0065]
Next, a control method of the storage device according to the third embodiment will be described.
FIG. 10 is a flowchart of a control method at the time of writing in the storage device according to the third embodiment of the present invention. In FIG. 10, in step 1001, the control unit 113 sets the size of the mirror writing area of the second recording medium 915. In step 1002, a data write command is input from the host 101 to the memory input / output unit 112 of the storage device 911. In step 1003, the control unit 113 determines whether the input command is a mirror write command.
If the command input in step 1003 is a mirror write command, the process proceeds to step 1004. In step 1004, the control unit 113 determines whether the information amount of the write data is equal to or less than the remaining recording capacity of the mirror write area.
[0066]
If the information amount of the write data is equal to or smaller than the remaining recording capacity of the mirror write area in step 1004, the process proceeds to step 1005, and the control unit 113 transmits ACK to the host 101. In step 1006, the memory access control unit 117 writes data on the first recording medium 114 and the second recording medium 915 in a mirror manner. In step 1007, the control unit 113 generates two logical / physical address conversion tables 116, and ends this flowchart.
If the information amount of the write data is larger than the remaining recording capacity of the mirror write area in step 1004, the process proceeds to step 1008. In step 1008, the control unit 113 notifies the host 101 that single writing is to be performed. In step 1009, the memory access control unit 117 writes data on the first recording medium 114 and the second recording medium 915 singly. In step 1010, the control unit 113 generates one logical / physical address conversion table 116, and ends this flowchart.
[0067]
If the command input in step 1003 is not a mirror write command (in the case of a single write command), the process proceeds to step 1011, and the control unit 113 transmits ACK to the host 101. In step 1009, the memory access control unit 117 writes data on the first recording medium 114 and the second recording medium 915 singly. In step 1010, the control unit 113 generates one logical / physical address conversion table 116, and ends this flowchart.
[0068]
In the storage device of this embodiment, when a command to mirror-write data larger than the remaining recording capacity of the mirror write area is sent from the host, the data is written in a single manner. The actual recording capacity of the recording medium changes depending on how much data is mirror-written. Since a large amount of data is written in a mirror, a storage device and a control method thereof that can prevent the remaining recording capacity of the recording medium from running out unexpectedly quickly are realized.
In the storage device of the above embodiment, the size of the mirror writing area of the recording medium is set. In the storage device of another embodiment, the size of the mirror writing area of the recording medium is not set. When the storage device receives a command to mirror-write data from the host, the storage device determines whether the storage capacity required for mirror-writing the data is equal to or less than the remaining storage capacity of the storage medium. When the required storage capacity is larger than the remaining storage capacity of the storage medium (when mirror writing cannot be performed), the storage device performs single writing of the data.
[0069]
<< Example 4 >>
Fourth Embodiment A storage device according to a fourth embodiment of the present invention and a control method thereof will be described with reference to FIGS. The difference from the second embodiment is that the size of the mirror writing area is adjusted when the remaining recording area is insufficient when writing data. Otherwise, they are identical.
[0070]
First, the configuration of the storage device according to the fourth embodiment will be described.
FIG. 6 is a block diagram illustrating a configuration of a storage device according to a fourth embodiment of the present invention. The description is omitted because it is the same as in the second embodiment (FIG. 6).
Next, a data flow of the storage device according to the fourth embodiment will be described.
FIG. 7A is a configuration diagram of transfer data of the storage device according to the fourth embodiment of the present invention. FIG. 7B is a configuration diagram of the management information of the storage device according to the fourth embodiment of the present invention. FIG. 7C is a configuration diagram of the logical / physical address conversion table of the storage device according to the fourth embodiment of the present invention. Since this is the same as the second embodiment (FIGS. 7A to 7C), the description is omitted.
[0071]
Next, a control method of the storage device according to the fourth embodiment will be described.
FIG. 11 is a flowchart of a control method at the time of writing in the storage device according to the fourth embodiment of the present invention. 11, in step 1101, the control unit 613 sets the size of the mirror writing area of the second recording medium 615. In step 1102, a data write command is input from the host 101 to the memory input / output unit 112 of the storage device 611. In step 1103, the control unit 613 determines whether or not the input data is data to be mirror-written (important data).
[0072]
If the data input in step 1103 is data to be mirror-written, the process proceeds to step 1104. In step 1104, the control unit 613 determines whether the information amount of the write data is equal to or less than the remaining recording capacity of the mirror write area.
If the information amount of the write data is larger than the remaining recording capacity of the mirror write area in step 1104, the process proceeds to step 1105. In step 1105, the size of the mirror write area of the second recording medium 615 is increased. At this time, the storage device 611 may notify the host 101 of increasing the size of the mirror write area, or may request permission to increase the size of the mirror write area. The user can prevent the remaining recording capacity of the recording medium from running out unexpectedly. Increasing the size of the mirror write area (step 1105) may be executed only when writing particularly important specific data.
[0073]
If the data input in step 1103 is not data to be mirror-written (in the case of single write data), or if the information amount of the write data is less than or equal to the remaining recording capacity of the mirror write area in step 1104, or the processing in step 1105 Thereafter, the process proceeds to step 1106.
In step 1106, the control unit 613 determines whether the information amount of the write data is equal to or less than the remaining recording capacity (of the area other than the mirror write area of the first recording medium 114 and the second recording medium 615).
If the information amount of the write data is larger than the remaining recording capacity of the area other than the mirror write area in step 1106, the process proceeds to step 1107. In step 1107, the control unit 613 reduces the size of the mirror writing area of the second recording medium 615 (the remaining recording capacity of the area other than the mirror writing area increases).
[0074]
If the information amount of the write data is equal to or smaller than the remaining recording capacity of the area other than the mirror write area in step 1106, or after the processing in step 1107, the process proceeds to step 1108. In step 1108, the control unit 613 again determines whether or not the input data is data to be mirror-written (important data).
If the data input in step 1108 is data to be mirror-written, the process proceeds to step 1109. In step 1109, the control unit 613 determines again whether the information amount of the write data is equal to or less than the remaining recording capacity of the mirror write area.
[0075]
If the information amount of the write data is equal to or smaller than the remaining recording capacity of the mirror write area in step 1109, the process proceeds to step 1110, and the control unit 613 transmits ACK to the host 101. In step 1111, the memory access control unit 117 writes data in a mirror on the first recording medium 114 and the second recording medium 615. In step 1112, the control unit 113 generates two logical / physical address conversion tables 616, and ends this flowchart.
If the information amount of the write data is not equal to or less than the remaining recording capacity of the mirror writing area in step 1109 (if the remaining recording capacity of the area other than the mirror writing area is small and the required remaining recording capacity of the mirror writing area cannot be secured), Proceed to step 1113. In step 1113, the control unit 613 notifies the host 101 that single writing is to be performed. In step 1114, the memory access control unit 117 writes a single data on the first recording medium 114 and the second recording medium 615. In step 1115, the control unit 613 generates one logical / physical address conversion table 616, and ends this flowchart.
[0076]
If the data input in step 1108 is not data to be mirror-written (in the case of single-write data), the process proceeds to step 1116, and the control unit 613 transmits ACK to the host 101. In step 1114, the memory access control unit 117 writes a single data on the first recording medium 114 and the second recording medium 615. In step 1115, the control unit 613 generates one logical / physical address conversion table 616, and ends this flowchart.
[0077]
In the present embodiment, by adjusting the size of the mirror writing area in accordance with the input data, a lot of important data was written. And a control method for the storage device, which can prevent the failure of the storage device. If the data to be recorded is important data, the size of the mirror write area is automatically increased to perform the mirror write, and the reliability of the write data can be ensured.
It is generally preferable to record data even in single recording, rather than to record no data at all. The storage device of the present invention automatically performs single recording when the remaining recording capacity is small and mirror recording cannot be performed.
[0078]
<< Example 5 >>
A storage device according to a fifth embodiment of the present invention and a control method thereof will be described with reference to FIGS. The difference from the third embodiment is that when the remaining recording area is insufficient when data is written, the data written in the mirror writing area is erased to reduce the size of the mirror writing area. Otherwise, they are identical.
First, the configuration of the storage device according to the fifth embodiment will be described.
FIG. 9 is a block diagram illustrating a configuration of a storage device according to a fifth embodiment of the present invention. The description is omitted because it is the same as the third embodiment (FIG. 9).
Next, a data flow of the storage device of the fifth embodiment will be described.
FIG. 2A is a configuration diagram of transfer data of the storage device according to the fifth embodiment of the present invention. FIG. 2B is a configuration diagram of the management information of the storage device according to the fifth embodiment of the present invention. FIG. 2C is a configuration diagram of the logical / physical address conversion table of the storage device according to the fifth embodiment of the present invention. The description is omitted because it is the same as the third embodiment (FIGS. 2A to 2C).
[0079]
Next, a control method of the storage device according to the fifth embodiment will be described.
FIG. 12 is a flowchart of a control method at the time of single writing of the storage device according to the fifth embodiment of the present invention. In FIG. 12, in step 1201, the control unit 113 sets the size of the mirror writing area of the second recording medium 915. In step 1202, a data write command is input from the host 101 to the memory input / output unit 112 of the storage device 911. In step 1203, the control unit 113 determines whether or not the information amount of the write data is equal to or less than the remaining recording capacity (of the area other than the mirror write area of the first recording medium 114 and the second recording medium 915).
[0080]
If the information amount of the write data is larger than the remaining recording capacity of the area other than the mirror write area in step 1203, the process proceeds to step 1205. In step 1205, the control unit 113 reduces the size of the mirror writing area of the second recording medium 915 (the remaining recording capacity of the area other than the mirror writing area increases). The minimum value of the size of the mirror write area is the information amount of the mirror data currently written. In step 1206, the control unit 113 determines again whether the information amount of the write data is equal to or less than the remaining recording capacity of the area other than the mirror write area.
[0081]
If the information amount of the write data is still larger than the remaining recording capacity of the area other than the mirror write area in step 1206 (if the data cannot be written even if the size of the mirror write area is set to the minimum value), Proceed to step 1207. In step 1207, the memory access control means 117 reads the mirror data written in the mirror write area and the data paired with the mirror data. In step 1208, the control unit 113 determines whether or not at least one of the read mirror data and the read data is correct.
[0082]
If it is determined in step 1208 that at least one of the data is correct, the process proceeds to step 1209. In step 1209, the control unit 113 invalidates and erases the mirror data written in the mirror write area while leaving one correct data in the data write area (area other than the dummy data write area). In step 1210, the control unit 113 changes the mirror write flag 206 of the management information of the erased data to 1, and sets all the second logical addresses 205 to 1, for example. For example, the second logical / physical address conversion table 212 is invalidated. In step 1211, the control unit 113 reduces the size of the mirror writing area of the second recording medium 915. In step 1212, the control unit 113 notifies the host 101 that the mirror data has been erased. Before executing steps 1209 to 1211, the host may be notified that steps 1209 to 1211 are to be executed, or the host may be requested to permit execution of these steps. In step 1213, the memory access control means 117 writes data to the first recording medium 114 or the second recording medium 915. In step 1214, the control unit 113 generates the logical / physical address conversion table 116, and ends this flowchart.
[0083]
If the information amount of the write data is equal to or less than the remaining recording capacity in step 1203, or if the information amount of the write data is equal to or less than the remaining recording capacity in step 1206, the process proceeds to step 1204, and the control unit 113 transmits an ACK to the host 101. I do. In step 1213, the memory access control means 117 writes data to the first recording medium 114 or the second recording medium 915. In step 1214, the control unit 113 generates the logical / physical address conversion table 116, and ends this flowchart.
If both data are not correct in step 1208, the process proceeds to step 1215, where the control unit 113 transmits to the host 101 that the remaining recording capacity is insufficient and data cannot be recorded, and the flowchart ends.
[0084]
In the present embodiment, data written in the mirror write area is erased according to the remaining recording capacity, and a large amount of data is written in the mirror by increasing the data write area (area other than the mirror write area). A storage device capable of preventing the remaining recording capacity of a recording medium from running out sooner and writing data with higher priority than mirror data and a control method thereof are realized.
In the fifth embodiment, when the remaining recording area is insufficient when writing data, the data written in the mirror writing area is erased to reduce the size of the mirror writing area. . This can be introduced into the fourth embodiment.
[0085]
【The invention's effect】
According to the present invention, an effect is obtained that a storage device for writing data with high reliability and a control method thereof can be realized.
According to the present invention, it is possible to realize a storage device capable of reading data from another flash memory even if one flash memory fails, and a control method thereof.
According to the present invention, it is possible to reduce the possibility that both data and mirror data are erroneous, and to achieve an effect that a highly reliable storage device and its control method can be realized.
According to the present invention, there is obtained an effect that a storage device capable of performing high-speed access even when performing mirror writing and a control method thereof can be realized.
According to the present invention, there is obtained an effect that a storage device and a control method thereof that can write data that is temporally and continuously input at a high rate that cannot be rewritten with high reliability can be realized.
[0086]
According to the present invention, since a large amount of data is mirror-written, it is possible to realize a storage device and a control method thereof that can prevent the remaining recording capacity of the recording medium from running out unexpectedly quickly.
According to the present invention, since a large amount of data is mirror-written, it is possible to prevent the remaining recording capacity of the recording medium from running out unexpectedly quickly, and to provide a storage device capable of writing data with higher priority than mirror data and a control method therefor. The effect that it can be realized is obtained.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a storage device according to a first embodiment of the present invention.
FIG. 2A is a configuration diagram of data transferred from a host of the storage device according to the first, third, and fifth embodiments of the present invention; FIG. 2B is a diagram illustrating the configuration of the first, third, and fifth embodiments of the present invention; FIG. 2C is a configuration diagram of the logical / physical address conversion table of the storage device according to the first, third, and fifth embodiments of the present invention.
FIG. 3 is a flowchart of a control method at the time of writing in the storage device according to the first embodiment of the present invention;
FIG. 4 is a flowchart of a control method at the time of reading of the storage device according to the embodiment of the present invention;
FIG. 5 is a flowchart of a control method when changing single write data to mirror write data in the storage device according to the first embodiment of the present invention;
FIG. 6 is a block diagram illustrating a configuration of a storage device according to the second and fourth embodiments of the present invention.
FIG. 7A is a configuration diagram of transfer data of a storage device according to the second and fourth embodiments of the present invention, and FIG. 7B is a configuration of management information of the storage device according to the second and fourth embodiments of the present invention; FIG. 7C is a configuration diagram of a logical / physical address conversion table of the storage device according to the second and fourth embodiments of the present invention.
FIG. 8 is a flowchart of a control method at the time of writing in the storage device according to the second embodiment of the present invention;
FIG. 9 is a block diagram illustrating a configuration of a storage device according to the third and fifth embodiments of the present invention.
FIG. 10 is a flowchart of a control method at the time of writing in a storage device according to a third embodiment of the present invention;
FIG. 11 is a flowchart of a control method at the time of writing in a storage device according to a fourth embodiment of the present invention.
FIG. 12 is a flowchart of a control method at the time of single writing in the storage device according to the fifth embodiment of the present invention.
FIG. 13 is a block diagram illustrating a configuration of a conventional storage device.
[Explanation of symbols]
101 Host
102 Host input / output means
103 control means
111, 611, 911 storage device
112 memory input / output means
113, 613 control means
114 first recording medium
115, 615, 915 Second recording medium
116, 616 logical / physical address conversion table
117 Memory access control means

Claims (20)

  1. An input unit for inputting data with a logical address,
    A non-volatile recording medium,
    A control unit that generates a logical / physical address conversion table that converts the logical address into a physical address of a recording medium, and records input data at the physical address specified by the logical / physical address conversion table;
    Has,
    The control unit generates one logical / physical address conversion table, generates a single recording mode in which the input data is recorded in the physical address without duplication, and generates a plurality of the logical / physical address conversion tables. And a mirror recording mode for recording data in duplicate at the physical address specified by the logical / physical address conversion table.
  2. The recording medium has a plurality of non-volatile memories of chips, and in the mirror recording mode, the plurality of logical / physical address conversion tables respectively specify physical addresses of the non-volatile memories of separate chips. The storage device according to claim 1.
  3. If the input data is any of predetermined types of data including data identification information and copy protection data, the control unit associates the logical addresses attached to the input data with different physical addresses. 2. The storage device according to claim 1, wherein the plurality of logical / physical address conversion tables are generated, and the input data is automatically recorded in the mirror recording mode.
  4. When reading out the data recorded in the mirror recording mode, the control unit automatically reads out if any one of the read data is an error and the other one of the read data is normal. 2. The storage device according to claim 1, wherein the logical / physical address conversion table in which the data is in error is updated to specify a new physical address, and the normally read data is recorded in the physical address. .
  5. The control unit has information on an area size of a mirror writing area,
    When the input unit inputs a command to record data of an information amount exceeding the area size in the mirror recording mode, the control unit automatically records the input data in the single recording mode. The storage device according to claim 1.
  6. When the input unit is any of predetermined types of data including data identification information and copy protection data and inputs data having an information amount exceeding the area size, the control unit automatically sets the 6. The storage device according to claim 5, wherein the input data is recorded in the mirror recording mode by changing an area size to a large value.
  7. When the input unit inputs a command to record data having an information amount exceeding the remaining recording capacity of the recording medium excluding the mirror write area, the control unit automatically changes the area size to a small value. The storage device according to claim 5, wherein the input data is recorded.
  8. When the input unit inputs a command to record data of an information amount exceeding the remaining recording capacity of the recording medium, the control unit automatically sets at least one of the data redundantly recorded in the mirror recording mode. 2. The storage device according to claim 1, wherein a part of the storage device is erased and the input data is recorded.
  9. If the input unit inputs a command to record data of an information amount exceeding the remaining recording capacity in the mirror recording mode if duplicate recording is performed, the control unit automatically performs the input in the single recording mode. The storage device according to claim 1, wherein data is recorded.
  10. The storage device according to any one of claims 1 to 9, wherein the storage device is an IC card.
  11. A method for controlling a storage device having a nonvolatile recording medium,
    An input step of inputting data with a logical address;
    A single recording step of generating one logical / physical address conversion table for converting the logical address into a physical address of the recording medium and recording input data at the physical address specified by the logical / physical address conversion table without duplication; When,
    Generating a plurality of logical / physical address conversion tables for converting the logical addresses into physical addresses of the recording medium, and recording the input data in duplicate with the physical addresses specified by the respective logical / physical address conversion tables A mirror recording step to
    A method for controlling a storage device, comprising:
  12. 12. The storage device control method according to claim 11, wherein, in the mirror recording step, the input data is simultaneously written to the physical addresses specified by the plurality of logical / physical address conversion tables.
  13. 12. The storage device according to claim 11, wherein if the input data is any one of predetermined types of data including data identification information and copy protection data, the mirror recording step is automatically executed. Control method.
  14. When reading the data recorded in the mirror recording step, if any one of the read data is in error and the other is normal, the read data is automatically in error. 12. The control of the storage device according to claim 11, further comprising a step of updating the logical / physical address conversion table to specify a new physical address, and recording normally read data at the physical address. Method.
  15. The storage device has information on the area size of the mirror write area,
    12. The storage device according to claim 11, wherein when an instruction to record data having an information amount exceeding the area size in the mirror recording step is input, the input data is automatically recorded in the single recording step. Control method.
  16. When any one of predetermined types of data including data identification information and copy protection data and data having an information amount exceeding the area size is input, the area size is automatically changed to a large value. 16. The method according to claim 15, wherein the input data is recorded in a mirror recording step.
  17. When inputting a command to record data of an information amount exceeding the remaining recording capacity of the recording medium excluding the mirror write area, the control unit automatically changes the area size to a small value and outputs the input data. The method according to claim 15, wherein the information is recorded.
  18. When an instruction to record data of an information amount exceeding the remaining recording capacity of the recording medium is input, at least a part of one of the data redundantly recorded in the mirror recording step is automatically deleted, and the input data is deleted. The method of controlling a storage device according to claim 11, further comprising the step of:
  19. If an instruction to record data having an information amount exceeding the remaining recording capacity in the mirror recording step is input if duplicate recording is performed, the input data is automatically recorded in the single recording step. Item 12. The method for controlling a storage device according to item 11.
  20. 20. The control method for a storage device according to claim 11, wherein the storage device is an IC card.
JP2002305499A 2002-10-21 2002-10-21 Storage device and its control method Pending JP2004139503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002305499A JP2004139503A (en) 2002-10-21 2002-10-21 Storage device and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002305499A JP2004139503A (en) 2002-10-21 2002-10-21 Storage device and its control method

Publications (1)

Publication Number Publication Date
JP2004139503A true JP2004139503A (en) 2004-05-13

Family

ID=32452585

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002305499A Pending JP2004139503A (en) 2002-10-21 2002-10-21 Storage device and its control method

Country Status (1)

Country Link
JP (1) JP2004139503A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006099419A (en) * 2004-09-29 2006-04-13 Tietech Co Ltd Method for controlling nonvolatile memory
JP2006146580A (en) * 2004-11-19 2006-06-08 Nec Corp Storage system, its replication method, and program
WO2007136018A1 (en) * 2006-05-18 2007-11-29 Buffalo Inc. Data storage device and data storage method
US7346730B2 (en) 2004-05-24 2008-03-18 Kabushiki Kaisha Toshiba Mobile electronic device
JP2008158804A (en) * 2006-12-22 2008-07-10 Nec Corp Memory controller, computer and data reading method
KR100850253B1 (en) 2005-03-31 2008-08-04 인터내셔널 비지네스 머신즈 코포레이션 Storage of data in cache and non-volatile media
JP2010079856A (en) * 2008-09-29 2010-04-08 Hitachi Information & Control Solutions Ltd Storage device and memory control method
JP2010152472A (en) * 2008-12-24 2010-07-08 Mega Chips Corp Memory system and computer system
WO2011090012A1 (en) * 2010-01-22 2011-07-28 株式会社日立製作所 Solid state drive device and mirrored-configuration reconfiguration method
CN102156621A (en) * 2010-06-01 2011-08-17 钰创科技股份有限公司 System for realization of RAID-1 and method for realization of writing and reading/writing data of RAID-1 system
JP2011159142A (en) * 2010-02-02 2011-08-18 Nec Corp Storage system
JP2012522309A (en) * 2009-03-31 2012-09-20 ゼネラル・エレクトリック・カンパニイ System and method for obtaining data viability
TWI394040B (en) * 2004-07-08 2013-04-21 Panasonic Corp Host, memory device, and host access to the memory device
US8448046B2 (en) 2008-09-25 2013-05-21 Silicon Motion, Inc. Memory access method capable of reducing usage rate of problematic memory blocks
TWI413904B (en) * 2010-03-03 2013-11-01 Pixart Imaging Inc Universal Serial Bus (USB) controller and its execution method
TWI470433B (en) * 2012-09-07 2015-01-21 Storart Technology Co Ltd Method for dodging bad page and bad block caused by suddenly power off
TWI475387B (en) * 2012-07-19 2015-03-01 Jmicron Technology Corp Memory control method and memory control circuit thereof
KR20150106916A (en) * 2013-03-11 2015-09-22 인텔 코포레이션 Reduced uncorrectable memory errors
TWI507976B (en) * 2014-03-14 2015-11-11 Toshiba Kk Semiconductor memory device
US9418224B2 (en) 2007-08-20 2016-08-16 Kabushiki Kaisha Toshiba Portable electronic device and control method of portable electronic device
TWI559143B (en) * 2014-12-14 2016-11-21 上海兆芯集成電路有限公司 Set associative cache memory with heterogeneous replacement policy
TWI569140B (en) * 2011-12-19 2017-02-01 桑迪士克科技有限責任公司 Systems and methods for performing variable flash wear leveling, and storage devices
US9710378B2 (en) 2014-05-29 2017-07-18 International Business Machines Corporation Writing an address conversion table for nonvolatile memory wear leveling
TWI630554B (en) * 2013-08-23 2018-07-21 Arm股份有限公司 Handling access attributes for data accesses
TWI640864B (en) * 2016-07-14 2018-11-11 谷歌有限責任公司 Two stage command buffers to overlap iommu map and second tier memory reads

Cited By (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7346730B2 (en) 2004-05-24 2008-03-18 Kabushiki Kaisha Toshiba Mobile electronic device
TWI394040B (en) * 2004-07-08 2013-04-21 Panasonic Corp Host, memory device, and host access to the memory device
JP2006099419A (en) * 2004-09-29 2006-04-13 Tietech Co Ltd Method for controlling nonvolatile memory
JP4580724B2 (en) * 2004-09-29 2010-11-17 株式会社タイテック Nonvolatile memory control method
JP2006146580A (en) * 2004-11-19 2006-06-08 Nec Corp Storage system, its replication method, and program
KR100850253B1 (en) 2005-03-31 2008-08-04 인터내셔널 비지네스 머신즈 코포레이션 Storage of data in cache and non-volatile media
EP2031492A1 (en) * 2006-05-18 2009-03-04 Buffalo Inc. Data storage device and data storage method
JP4700562B2 (en) * 2006-05-18 2011-06-15 株式会社バッファロー Data storage device and data storage method
JP2007310636A (en) * 2006-05-18 2007-11-29 Buffalo Inc Data storage device and data storage method
WO2007136018A1 (en) * 2006-05-18 2007-11-29 Buffalo Inc. Data storage device and data storage method
EP2031492A4 (en) * 2006-05-18 2010-07-21 Buffalo Inc Data storage device and data storage method
US8136015B2 (en) 2006-05-18 2012-03-13 Buffalo Inc. Data storage apparatus and data storage method
JP2008158804A (en) * 2006-12-22 2008-07-10 Nec Corp Memory controller, computer and data reading method
US9418224B2 (en) 2007-08-20 2016-08-16 Kabushiki Kaisha Toshiba Portable electronic device and control method of portable electronic device
US8448046B2 (en) 2008-09-25 2013-05-21 Silicon Motion, Inc. Memory access method capable of reducing usage rate of problematic memory blocks
JP2010079856A (en) * 2008-09-29 2010-04-08 Hitachi Information & Control Solutions Ltd Storage device and memory control method
JP2010152472A (en) * 2008-12-24 2010-07-08 Mega Chips Corp Memory system and computer system
JP2012522309A (en) * 2009-03-31 2012-09-20 ゼネラル・エレクトリック・カンパニイ System and method for obtaining data viability
JP2011150590A (en) * 2010-01-22 2011-08-04 Hitachi Ltd Solid state drive device and reconfiguration method of mirror configuration
WO2011090012A1 (en) * 2010-01-22 2011-07-28 株式会社日立製作所 Solid state drive device and mirrored-configuration reconfiguration method
JP2011159142A (en) * 2010-02-02 2011-08-18 Nec Corp Storage system
TWI413904B (en) * 2010-03-03 2013-11-01 Pixart Imaging Inc Universal Serial Bus (USB) controller and its execution method
CN102156621A (en) * 2010-06-01 2011-08-17 钰创科技股份有限公司 System for realization of RAID-1 and method for realization of writing and reading/writing data of RAID-1 system
TWI569140B (en) * 2011-12-19 2017-02-01 桑迪士克科技有限責任公司 Systems and methods for performing variable flash wear leveling, and storage devices
TWI475387B (en) * 2012-07-19 2015-03-01 Jmicron Technology Corp Memory control method and memory control circuit thereof
TWI470433B (en) * 2012-09-07 2015-01-21 Storart Technology Co Ltd Method for dodging bad page and bad block caused by suddenly power off
US10324793B2 (en) 2013-03-11 2019-06-18 Intel Corporation Reduced uncorrectable memory errors
JP2016514327A (en) * 2013-03-11 2016-05-19 インテル・コーポレーション Reduce uncorrectable memory errors
US9934088B2 (en) 2013-03-11 2018-04-03 Intel Corporation Reduced uncorrectable memory errors
KR101693664B1 (en) 2013-03-11 2017-01-06 인텔 코포레이션 Reduced uncorrectable memory errors
KR20150106916A (en) * 2013-03-11 2015-09-22 인텔 코포레이션 Reduced uncorrectable memory errors
JP2017117480A (en) * 2013-03-11 2017-06-29 インテル・コーポレーション Reduced uncorrectable memory errors
US10354092B2 (en) 2013-08-23 2019-07-16 Arm Limited Handling access attributes for data accesses
TWI630554B (en) * 2013-08-23 2018-07-21 Arm股份有限公司 Handling access attributes for data accesses
TWI507976B (en) * 2014-03-14 2015-11-11 Toshiba Kk Semiconductor memory device
US9710378B2 (en) 2014-05-29 2017-07-18 International Business Machines Corporation Writing an address conversion table for nonvolatile memory wear leveling
US9710375B2 (en) 2014-05-29 2017-07-18 International Business Machines Corporation Writing an address conversion table for nonvolatile memory wear leveling
TWI559143B (en) * 2014-12-14 2016-11-21 上海兆芯集成電路有限公司 Set associative cache memory with heterogeneous replacement policy
TWI640864B (en) * 2016-07-14 2018-11-11 谷歌有限責任公司 Two stage command buffers to overlap iommu map and second tier memory reads
US10296256B2 (en) 2016-07-14 2019-05-21 Google Llc Two stage command buffers to overlap IOMMU map and second tier memory reads

Similar Documents

Publication Publication Date Title
US7409473B2 (en) Off-chip data relocation
US6925545B2 (en) Configuring file structures and file system structures in a memory device
US6081878A (en) Increasing the memory performance of flash memory devices by writing sectors simultaneously to multiple flash memory devices
JP4611024B2 (en) Method and apparatus for grouping pages in a block
JP4155463B2 (en) System having flash management system using only sequential writing and method thereof
KR100595909B1 (en) Moving sectors within a block in a flash memory
KR101189259B1 (en) Storage device and information processing system
US6584579B1 (en) Method of writing, erasing, and controlling memory for memory device
JP3692313B2 (en) Nonvolatile memory control method
US7054990B1 (en) External storage device using non-volatile semiconductor memory
JP3105092B2 (en) Semiconductor memory device
US7392343B2 (en) Memory card having a storage cell and method of controlling the same
JP4812192B2 (en) Flash memory device and method for merging data stored therein
CN1278236C (en) Arrangements storing different versions of a set of data in separate memory area and method for updating a set of data in a memory
US7116578B2 (en) Non-volatile memory device and data storing method
KR20090019593A (en) Ecc control circuit and multi channel memory system icluding the same
US8745310B2 (en) Storage apparatus, computer system, and method for managing storage apparatus
US20110202709A1 (en) Optimizing storage of common patterns in flash memory
US20070067598A1 (en) Storage device and host apparatus
CN102163133B (en) Method and apparatus for using a one-time or few-time programmable memory with a host device designed for erasable/rewriteable memory
US20010004326A1 (en) Memory controller for flash memory system and method for writing data to flash memory device
TWI240864B (en) Memory device
US8225047B2 (en) Memory system with pre-fetch operation
US7039754B2 (en) Detachably mounted removable data storage device
US5812814A (en) Alternative flash EEPROM semiconductor memory system

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050524

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051013

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20061129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080108

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080430