1. Field of the Invention
The present invention relates generally to data storage devices and particularly to an improved format for a randomized data block.
2. Background of the Invention
Most modern tape and disk storage devices record data in blocks of information. These blocks are often randomized in order to meet recording constraints. If the blocks are not randomized, particular run lengths may occur in the blocks that would increase the likelihood of recording and read back errors.
ID field 104 is used to store an identifier for the data that will be stored in data field 108. An ID field error checking character, such as a CRC, will be generated using the identifier that is stored in ID field 104. The ID field CRC will be stored in its own field, ID field CRC field 106. ID field CRC is used as an additional layer of error checking in order to ensure that the identifier that is stored in ID field 104 is correct. It is very helpful to know whether the identifier stored in ID field 104 is correct prior to getting the data from data field 108. Using an incorrect identifier can create many problems. For example, if the identifier is an address into memory, it is important to make sure the address is correct before altering a memory location.
A block error detection and correction character (EDC) field 110 is also included in the data block. The block EDC is used to detect and correct errors that might occur in the entire data block.
The prior art data block is generated as follows. Data is received and stored in data field 108. An identifier is received and stored in ID field 104. An ID field CRC is generated using the identifier stored in ID field 104. The ID field CRC is then stored in ID field CRC field 106.
A random number is generated that will be used as the randomizer seed. Randomizer seed field 102 is a particular width. The random number that is generated will be this same particular width in order to occupy the entire randomizer seed field 102. The random number is then stored in the randomizer seed field 102.
The combination of the identifier stored in ID field 104, the CRC stored in ID field CRC field 106, and the data stored in data field 108 are randomized using the random number stored in randomizer seed field 102. Error detection and correction is then performed to generate an EDC over the combination of the random number stored in randomizer seed field 102, the identifier stored in ID field 104, the CRC stored in ID field CRC field 106, and the data stored in data field 108. The generated EDC is then stored in block EDC field 110.
The prior art provides for a data block format that includes a separate field for storing the ID field CRC. The separate field is added to each data block. As the amount of data to be stored increases, a larger portion of the storage device must be devoted to providing this separate field for every data block.
Therefore, the current technology would be improved by reducing the size of each data block by utilizing a format for storing a randomized data block that does not require separate space for storing an identifier error checking character.
An improved format is disclosed for storing a randomized data block in a storage device. The data block format includes a data field, an identifier (ID) field for identifying data stored in the data field, and a randomizer seed field for storing a randomizer seed. An error check character generator generates an ID field error check character utilizing said identifier. The randomizer seed includes the ID field error check character.
The above as well as additional objectives, features, and advantages of the present invention will become apparent in the following detailed written description.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
ID field 204 is used to store an identifier for the data that will be stored in data field 206. An ID field error checking character, such as a CRC, will be generated using the identifier that is stored in ID field 204. According to an important feature of the present invention, the ID field CRC will not be stored in its own field. ID field CRC will be included as part of randomizer seed field 202. The size of randomizer seed field 202 will not be changed in order to accommodate ID field CRC. Instead, the original size of randomizer seed field 202 will be divided into two portions. One portion will be used to store the random number while the second portion will be used to store the ID field CRC.
A block error detection and correction character (EDC) field 208 is also included in the data block. The block EDC is used to detect and correct errors that might occur in the entire data block.
Thereafter, block 310 illustrates calculating an ID field CRC. Next, block 312 depicts storing the ID field CRC in a portion 212 of the existing, original sized, randomizer seed field 202. The process then passes to block 314 which illustrates generating a random number that is smaller than the randomizer seed field 202. Thus, this random number is smaller than the random number that was calculated in the prior art although the randomizer seed field is the same size as in the prior art.
Block 316, then, depicts storing the random number in the remaining portion 210 of randomizer seed field 202. Thereafter, block 318 illustrates randomizing the combination of the identifier that is stored in ID field 204 and the data that is stored in data field 206. Next, block 320 depicts executing error correction and detection over the combination of the randomizer seed, including the random number and ID field CRC, that is stored in randomizer seed field 202, the identifier that is stored in ID field 204, and the data that is stored in data field 206. Block 322, then, illustrates storing the EDC in block EDC field 208. The process then terminates as depicted by block 324.
The present invention reduces the size of each data block by dividing the existing randomizer seed field into two portions. Thus, according to the present invention, the bits of the randomizer seed field are divided into two portions. Some of the bits of the randomizer seed field will be used to store the ID field CRC instead of storing a random number.
One portion of the randomizer seed field will be used to store a random number while the second portion will be used to store the ID field CRC. Since the randomizer seed field size does not change, i.e. it has the same number of bits as before it was divided, the overall size of the data block is reduced because the original ID field CRC field is eliminated.
The only requirement for generating a randomizer seed is that the randomizer seed be stochastically independent of the data. Since the identifier that is stored in the ID field is different for each data block, that portion of the randomizer seed that includes the ID field CRC will also be different for each data block. The remaining portion of the randomizer seed field may be used to store a random number that is smaller than the random number generated in the prior art.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
| Number | Name | Date | Kind |
|---|---|---|---|
| 4064558 | Hughes et al. | Dec 1977 | A |
| 4993029 | Galbraith et al. | Feb 1991 | A |
| 5602857 | Zook et al. | Feb 1997 | A |
| 5712740 | Kikuchi et al. | Jan 1998 | A |
| 5809558 | Matthews et al. | Sep 1998 | A |
| 6392829 | Stoutenburgh et al. | May 2002 | B1 |
| 6400824 | Mansoorian et al. | Jun 2002 | B1 |
| 6543024 | Gray | Apr 2003 | B2 |
| 6597526 | Gray | Jul 2003 | B1 |
| 20010040901 | Kotani et al. | Nov 2001 | A1 |