This application claims the benefit, under 35 U.S.C. 119, of German patent application No. 03012784.9 filed Jun. 05, 2003.
The present invention relates to a method and a device for the fast verification of sector addresses in a data stream obtained from a recording medium, and to an apparatus for reading from and/or writing to recording media using such method or device.
In many of today's applications large amounts of data need to be stored. In the area of Personal Computers and in addition in the area of consumer electronics harddisks as fixed storage media and optical disks as removable storage media are commonly used for this purpose. Due to emerging incremental data bandwidth needs (HDTV, fast copy) the data throughput of the applications is increasing continuously. Consequently, the corresponding disk devices have to provide the appropriate data and data bandwidth, too. Therefore, a plurality of high density optical recording media have been developed, e.g. the Digital Versatile Disk (DVD) or the Blu-Ray Disk (BD) using blue laser light for reading and recording.
Data processing within storage devices can be separated into read and write paths. The logical processing blocks within a write path are as follows. A back-end interface (e.g. ATAPI) issues a ‘WRITE’ command and provides the appropriate data sectors to be written on the recording medium. These sectors are usually buffered or ‘cached’ into a memory. Afterwards they are reformatted into blocks of sectors, then error encoded and modulated, and finally written to the recording medium either magnetically (harddisk), optically (CD, DVD, BD), or magneto-optically (MOD).
The logical processing blocks within the read path are as follows. A back-end interface (e.g. ATAPI) issues a ‘READ’ command and waits for data sectors from the recording medium. A microcontroller decodes the back-end command (ATAPI command) to obtain the demanded sector address and calculates the corresponding physical address on the recording medium. The microcontroller then instructs a ‘servo’-unit to position a read head (or pickup) at the appropriate physical address on the recording medium.
The position where the read head is placed does usually not coincide exactly with the desired position, e.g. due to mechanical tolerances or external influences like vibrations. If an unrequested sector address is found in the sector data, the read head needs to be repositioned very quickly until the requested sector address is found.
The data sectors read from the disc are modulated and combined to logical blocks. These blocks are error decoded and written into a buffer memory before the demanded sectors are sent to the back-end interface.
A problem of the above described processing is to arrange the buffer memory. The repositioning of the read head and external shocks lead to a fragmentation of the data in the buffer memory if no control mechanism is implemented. For this purpose a microcontroller analyses the data in the buffer memory for sending only the correct data to the back-end.
A control mechanism for arranging/aligning the data in the buffer memory checks the sector data content coming from the recording medium for those sector data addresses which were demanded. Only these sectors are written in the buffer. In order to send only well formatted data to the back-end, the arrangement of the sectors is preferably in incremental order without gaps.
To cover today's actual drive standards, in the following the sector addresses are called ‘sector IDs’. That means for:
Harddisk physical low level ID (addressable with CSH or LBA)
In known systems the sector IDs are checked directly by software by a microcontroller using software (firmware). This leads to a significant processing load on the microcontroller, since the sector ID check has to be done very frequently. For example, in a 1×DVD speed device the sector ID has to be checked approximately every 1,54 msec. In high speed devices, assuming for example 16×DVD, this checking has to be done approximately every 96 μsec. Consequently, a microcontroller in a high speed device like 16×DVD needs to have an interrupt frequency of ˜96 μsec for reading every sector ID from the data stream, or it has to poll for this task with a frequency much higher then 1/96 μsec. This leads to an enormous workload for the microcontroller and reduces its performance for other tasks.
It is, therefore, an object of the invention to propose a method for the fast verification of sector IDs, which overcomes the above mentioned problems.
According to the invention, a method for the fast verification of sector addresses, whereby a data stream comprising sector addresses is obtained from a recording medium upon a request from a microcontroller, comprises the steps of:
Though the proposed hardware solution is less flexible than the known software solution with respect to the handling of incorrect sector ID's, it has been found that generally the error rate is sufficiently low and the hardware solution functions properly. To further increase the performance of the hardware solution, an additional block for enhancing the signal quality is preferably introduced in the read path. In case the error rate becomes too high, advantageously the data rate is reduced. If this does not lead to a sufficiently low error rate, the drive preferably switches to the known software solution, accepting the reduced performance.
Favourably, the method further comprises the step of preloading the range of valid sector addresses into the dedicated comparing means. This can, for example, be done by the microcontroller, which has to analyse the ‘READ’ command and calculate the corresponding addresses anyway.
Advantageously, the method further comprises the step of emitting a first interrupt signal to the microcontroller if the decoded sector addresses are outside the range of valid sector addresses. This interrupt signal is emitted after the last sector ID of the range of valid sector IDs has been read. In this case the reading is terminated with an ‘end of command’, since all requested sectors have been read. The microcontroller will then await further commands from the back-end.
According to another aspect of the invention, the method further comprises the step of performing a continuity check for verifying whether successive sector addresses are continuously incremental. As stated before, in order to send only well formatted data to the back-end, the arrangement of the sectors is preferably in incremental order without gaps. This is ensured by the continuity check.
Favourably, the method further comprises the step of providing the continuity check with an error tolerance for invalid sector addresses. Especially in CD systems errors in the sector ID occur, because the sector IDs are not very well error protected by special algorithms. In this case the continuity check is tolerant for occasional invalid IDs. Preferably an originally invalid sector address is deemed valid if at least the successive sector address is valid, i.e. in the valid range of sector IDs and continuous. This prevents the erroneous detection of invalid sector addresses.
Advantageously, a second interrupt signal is sent to the microcontroller if the continuity check fails, the second interrupt signal indicating a process error. Failure of the continuity check is a strong indication of read errors. When the second interrupt signal is emitted, the microcontroller has to decide how to proceed. A possibility is to read the corresponding sectors once again from the recording medium.
Favourably, the method further comprises the step of picking and holding the sector addresses from the decoded data stream for verification. This will give the dedicated comparing means sufficient time to perform the comparing step, especially at high data rates.
Advantageously, a device for the fast verification of sector addresses, whereby a data stream comprising sector addresses is obtained from a recording medium upon a request from a microcontroller, comprises means for performing a method according to the invention.
Furthermore, a method or a device according to the invention are favourably used in an apparatus for reading from and/or writing to recording media for the fast verification of sector addresses.
For a better understanding of the invention, an exemplary embodiment is specified in the following description with reference to the figures. It is understood that the invention is not limited to this exemplary embodiment and that specified features can also expediently be combined and/or modified without departing from the scope of the present invention. In the figures:
A serial bit data stream 2 is read from the recording medium 1 by an acquisition block 3. In this block the data are synchronized with the unit's system clock. Typically the synchronized data 4 are provided to an error correction block 5, e.g. a Reed-Solomon error correction block, in a parallel manner. The error correction block 5 separates all user data and sector ID information 6, 8 from the channel data stream 2, 4. An additional block 7 picks and holds the current sector ID 9 out of the remaining user data stream 6 for checking for its validity.
User data 8 having a valid sector ID are then provided to an interface (not shown) to a system back-end (not shown) either directly or via a buffer (not shown).
To reduce the workload of a system microcontroller 13 an ID-compare block 10 is provided, which is preloaded with a valid sector ID range 12 by the microcontroller 13. The ID-compare block autonomously checks for the validity of the sector IDs 9 and only sends an interrupt signal 11 to the microcontroller 13 in case of an invalid sector ID 9.
The ID-compare block 10 additionally provides a continuity check. This functionality checks for incremental sector IDs 9. In case successive sector IDs 9 are not incremental, an appropriate interrupt signal 11 is sent to the microcontroller 13.
In the ID-compare block 10 error tolerant algorithms are employed due to the possibility of sector ID errors. Especially in CD systems errors in the sector ID occur, because the sector IDs are not very well error protected by special algorithms. In this case the continuity check is tolerant for occasional invalid IDs 9 and declares the corresponding data valid if the next sector IDs 9 are in the expected range 12.
In
The start LBA and the end LBA are further translated 22 into the appropriate sector IDs. The start and the end sector ID are then loaded 23 into the ID-compare block 10 to define the valid sector ID range 12. Finally the physical start address is transmitted 24 to the servo application to start reading from the recording medium.
After this the microcontroller 13 is free for other jobs 25. In case of an ID error, i.e. if the continuity check of the sector IDs fails, an interrupt signal is transmitted to the microcontroller 13 and the reading is terminated with a ‘process error’ 26. Furthermore, in case the sector IDs in the data stream are outside the valid sector ID range 12, i.e. after the last sector ID of the valid sector ID range 12 has been read, also an interrupt signal is transmitted to the microcontroller 13. However, in this case the reading is terminated with an ‘end of command’ 27.
Number | Date | Country | Kind |
---|---|---|---|
03012784 | Jun 2003 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
3289174 | Brown et al. | Nov 1966 | A |
3332070 | Lucas et al. | Jul 1967 | A |
3346852 | Smeltzer | Oct 1967 | A |
3521240 | Bahrs et al. | Jul 1970 | A |
5500848 | Best et al. | Mar 1996 | A |
5625840 | Numata et al. | Apr 1997 | A |
5727183 | Takahashi | Mar 1998 | A |
5768236 | Kihara | Jun 1998 | A |
6449714 | Sinharoy | Sep 2002 | B1 |
6470461 | Pinvidic et al. | Oct 2002 | B1 |
6691213 | Luu et al. | Feb 2004 | B1 |
6906989 | Furuhashi | Jun 2005 | B2 |
6968423 | Coker et al. | Nov 2005 | B2 |
7047477 | Tolhuizen et al. | May 2006 | B2 |
7092333 | Morioka et al. | Aug 2006 | B2 |
20020085836 | Geier et al. | Jul 2002 | A1 |
Number | Date | Country |
---|---|---|
9303438 | Feb 1993 | WO |
Number | Date | Country | |
---|---|---|---|
20050027924 A1 | Feb 2005 | US |