The application is to be that April 20, application number in 1999 are 99105135.1, are entitled as the dividing an application of patented claim of " defect management method of optical storage media " applying date.
Embodiment
Describe recording medium that storage is used for the defect management information of recording real-time data, use its defect management method and the preferred embodiment of real-time recording method now with reference to accompanying drawing.
At first, in order to help to understand the present invention, will describe slippage with reference to Fig. 1 and 2 and replace and linear replacement.
Fig. 1 is the synoptic diagram that is used to explain the defect management method that uses the slippage replacement.Be shown in physical address on the dish of Fig. 1 be recorded as P1, P2, P3 ..., Pn, and must provide logical address with in this physical segment sector record real data.These logical addresses are as making actual file system search for the address of its data.Yet, in the dish initialization process, provide the relation between physical address and the logical address.If detect a defective at the 3rd physical sector P3, as shown in Figure 1, specify logical address then for this defective sector, logic sector number L3 is assigned to next physical sector P4.Then, logic sector is postponed the number of defective sector in succession, use the spare area of the end that is positioned at the corresponding data group by the part that postpones.In this slippage replacement method, by simple slippage one defect area, can effectively handle in sector location, by simply ignoring and skipping defect part, pick-up need not move to different places when writing down with reproduction.Like this, when making minimum time delay, avoided defect area.Here, replace the location records of the defective sector that replaces in PDL by slippage.
Fig. 2 is used to explain the figure that uses the linear defect management method of replacing.The linearity of the defective that produces when being used for handling when use dish after initialization is replaced, and managing defect in the ECC module unit is promptly used the unit of 16 sectors.In other words, when producing mistake in particular sector, and when so detecting defective, be not used for error correction, must change the error correction unit that is previously recorded in each data in the dish if in the unit of at least 16 sectors, move.Like this, the processing in the ECC module unit be must carry out, and, slippage defect sector and the slippage replacement method of specifying logic sector therefore can not be used owing to can not change the logical address in the district of record data.When producing a defective as shown in Figure 2 in logical block LB3, this defect part is recorded among the SDL avoiding and is used, and defect part replaces with the available block that is present in the spare area.Replace block in the spare area (SBk among Fig. 2) has the logical block number (LBN) identical with incorrect block (LB3).
As shown in Figure 2, reproduce in the sequence, just before defect block, read continuously, as distinguish in 1, read the replacement ECC piece that is present in the spare area by mobile pick-up etc., as distinguish in 2,, as distinguish in 3 from then reading of data continuously the piece of defect block just one.In order to handle defective as mentioned above, carry out pick-up and move, such as the processing that is used for search data with just after reading replace block, get back to the then processing of the piece of defect block.Like this, need more time to read or write data, make this defect processing be unsuitable for real-time processing.
Fig. 3 is the table of the dish definition structure (DDS) in the defect management (DMA) that is present in DVD-RAM.Specifically, byte location (BP) 3, promptly coil certification label and write down the catalogue, BP16 to 39 of the check of whole dish, promptly organize the catalogue of the check of 24 data sets of certification label record.
In addition, BP0 and 1 is that DDS identifier, BP4 to 7 are the counters that are used to upgrade DDS/PDL, the total degree that expression DDS/PDL piece is updated and is rewritten.That is, when the beginning initialization, Counter Value is set to " 0 ", increases by 1 when DDS/PDL upgrades or rewrite.All DDS/PDL must have identical Counter Value with the SDL piece after finishing format.BP8 and BP9 represent to organize number, and for example 24 group records are " 0018 " (sexadecimal).
Fig. 4 A illustrates the structure of the dish certification label that is shown in Fig. 3.When three b7, the b6 of (in-process) state and the position b7 among the b5 were " 0b " in expression is handled, its presentation formatization was finished, and when b7 was " 1b " when the position, its expression information was carried out middle state.When b6 was " 0b " when the position, the formatting procedure of full check was used in its expression, and when b6 was " 1b " when the position, the formatting procedure of partial test was used in its expression.When b5 is " 0b " when the position, the overall formatting procedure of its expression, when b5 was " 1b " when the position, its expression is formative process on group only, and expression group certification label is effective.As the position of an expression subscriber checking b1 when being " 0b ", its indicating panel is never by subscriber checking, when b1 is " 1b " when the position, its indicating panel by subscriber checking once or more times.When the position of an indicating panel producer check b0 was " 0b ", indicating panel was never by producer's check, and when a position b0 was " 1b ", expression was checked once or more times by the producer.Other b4, b3 and b2 keep.Yet, be set at " 111 " by any check " in the processing " before the format, and when finishing format, " in the processing " resets to " 000 ".
Fig. 4 B be shown in Fig. 3 the position position 16 to 39 each the group certification label structure.When two position b7 of expression " in the processing " state and the position b7 among the b6 were " 0b ", it represented that the format of a respective sets finishes, and when b7 was " 1b " when the position, its expression respective sets just formatd.When b6 was " 0b " when the position, it represented that this group just using full check format, and when b6 was " 1b " when the position, its expression used this group just using partial test to format.As the position of an expression subscriber checking b1 when being " 0b ", it represents this group never by subscriber checking, when b1 is " 1b " when the position, it represent this group by subscriber checking once or more times.Other b5, b4, b3, b2 and b0 keep.
Fig. 5 is the catalogue that second level defect map (SDL) is shown.RBP is the position since 0 relative byte.Byte location 0 and 1 is the SDL identifier relatively, and byte location 2 and 3 keeps relatively.The relative sum of the SDL piece that upgrades of byte location 4 to 7 expressions, and when the content update of SDL, SDL refresh counter value increases 1.The spare area all marks are represented in byte location 8 to 15 expressions relatively, and byte location 16 to 19 is represented DDS/PDL refresh counter values relatively, the total degree that its each expression DDL/PDL piece is updated and rewrites.When initially melting the beginning, Counter Value is set at " 0 ", when DDS/PDL upgrades or rewrite, increases 1.As mentioned above, all DDS/PDL must have identical count value with the SDL piece after format is finished. Byte location 20 and 21 keeps relatively, relatively the number of project among byte location 22 and the 23 expression SDL.Remaining relative byte location is represented each SDL project.
Fig. 6 is the generally labelled structure in spare area that is shown in the relative byte location 8 to 15 of Fig. 5.In Fig. 6, if represent a respective sets the position be " 1 ", then the expression do not have stand-by block to stay in the respective sets, and if this position be " 0 ", represent that a stand-by block is retained in the respective sets.
Fig. 7 is the structure that is shown in the SDL project of Fig. 5.Among Fig. 7, FRM is the position whether expression one defect block is replaced.When replacing defect block, FRM recording binary number " 0 ", and when not replacing defect block or do not have the spare area to exist, FRM recording binary number " 1 ".The SDL project comprises the sector number of first sector of the sector number of first sector of defect block and replace block.At this,, then sexadecimal number " 000000 " is recorded in the district of first sector number that writes down replace block if do not replace defect block.
Simultaneously, in real time record, whether corresponding data can be handled more important than some mistake of real data in preset time.Specifically, under situations such as image, when little mistake is present in the image, in the part generation mistake of screen.On the other hand, when data are imported in untimely processing, produce the continuous data mistake, thus can not normal reproduction.Therefore, in time deal with data is more important.
Like this, at real time record, must propose to allow not use linear method of replacing.When not using linear the replacement, must some be used to write down the situation that respective disc in use and not must be used linear replacement.Below with reference to Fig. 8 A and Fig. 8 B the method that writes down such catalogue is described.
Fig. 8 A and 8B respectively by the present invention propose, dish certification label and the group certification label of the DDS of recording real-time data.The dish certification label of Fig. 8 A and 8B and group certification label are except the b2 of position, position, and other is identical with Fig. 4 A and 4B's.That is, shown in Fig. 8 A, when when not needing linear situation of replacing to use whole respective disc, the position position b2 of dish certification label is set at " 1 ", and when being replaced when using respective disc by linearity as in the prior art, a position b2 is set at " 0 ".In Fig. 8 A and Fig. 8 B, the information relevant with using or do not use linear replacement of storing in the position 2 on the throne (b2) is called disc defect management mode.
And when only particular group being carried out partially-initialized when avoiding linear the replacement, shown in Fig. 8 B, a position 2, position (b2) that is used for the group certification label of a respective sets is set at " 1 ", with indication to carrying out linear the replacement on the data field in the respective sets.In an embodiment of the present invention, the position 2 (b2), position of use dish certification label and group certification label, shown in Fig. 8 A and 8B, but the reservation position that can use other.At this, keep each existing b2 district, and its value record is " 0 ".
When the position b2 that will be used to coil the disc defect management mode of certification label or group certification label when at the initialization dish is made as " 1 ", SDL only writes down the initial sector address of the piece with the defective that produces in the dish use, the FRM position of record SDL project is " 1 ", and does not carry out linear the replacement.Sexadecimal number " 000000 " is recorded in the district, and this district is used to write down first sector number of the replace block of SDL project.
Like this, between based on the defect management method of current DVD-RAM standard and method of the present invention, kept compatibility, promptly proposed as in existing defect management method, indicating the method for the existence of non-linear replace block, the not method of linear replacement defect piece that allows also is provided simultaneously, thereby has realized the record and the reproduction of real time data.
No matter to be recorded in the respective area data type how, by be recorded in the defect management, with use or do not use the relevant information of linear replacement defect management at the given zone of whole dish or dish, determine whether to use linear the replacement defect area by the piece replacement that is present in the spare area.
And, under the situation that only needs real-time recorded data, by be recorded in the defect management, with use or do not use the relevant information of linear replacement defect management at the given zone of whole dish or dish, determine whether to use linear the replacement defect area by the piece replacement that is present in the spare area.
The method of avoiding carrying out at the particular group of whole dish or dish linear replacement has been described based on the foregoing description.In another embodiment, when disc defect management mode is made as " 1 ", it can be used as not at defective information of carrying out linear replacement in the district of the dish that is used for writing down the information that needs real time record and reproduction, and at the panel that does not need real time record, can carry out linear replacement.In this case, when the data that do not need real time record be recorded in must recording real-time data the district in, and therefore during the linear replacement defect district, the linearity of defect area is replaced and must be able to be cancelled.Therefore, when disc defect management mode was made as " 1 ", this showed the linearity replacement that can cancel defective when recording real-time information.
For fear of replacing at given group on whole dish or the dish whole linearities, when initialization, the information relevant with disc defect management mode is made as " 1 ".On the other hand, when not carrying out linear the replacement under the situation only, there is no need to set defect management mode information during initialization at recording real-time data.That is, necessary in dish during recording real-time data when defining, then just before recording real-time data, disc defect management mode is made as " 1 ".At this moment, amount or distribution based on the defective that produces on dish determine whether that respective disc is suitable for recording real-time data.When definite this dish was suitable for recording real-time data, disc defect management mode was made as " 1 ".Otherwise, need be used to notify this dish of user to be not suitable for the processing of recording real-time data.
Fig. 9 is a process flow diagram, and expression is not carried out at the data that only need to write down and used the linear defect management of replacing to come the method for real-time recorded data when disc defect management mode is " 1 ".
In Fig. 9, at first, in step S101, determine whether disc defect management mode is made as " 1 " before the data recording on the dish begins.If disc defect management mode is " 1 ",, determine whether the data that will write down are real time datas at step S103.If the defect management pattern is " 0 ",, write down each data according to the general defect management method that in standard book version 1.0, defines at step S102 and S108.When in step S103, determine that the data that will write down are not real time datas, then carry out the step S102 of general defect management.When in step S103, determining that the data that will write down are real time data, in step S104, determine whether that linear defective of replacing is present in the district that wants record data.
When in step S104, determine that linear defective of replacing is present in the Qu Zhongshi that is recorded into data, in step S105, cancellation is linear replaces.When there not being linear defective of replacing to be present in the Qu Zhongshi that is recorded into data, in step S106, determine whether that new detected defective is present in the district that is recorded into data.
When in step S106, determining to detect a new defective, in step S107, represent that a defective still is recorded in the second level defect map (SDL) of defect management without the information that linearity is replaced.Then, in step S108, data are recorded in the required district.And, when not detecting a new defective at step S106, carry out the S108 step, at required district recording real-time data.
First sector number by the record replace block in the linear replacement defect information in being recorded in SDL is sexadecimal number " 000000 ", reaching by record FRM information is " 1 ", carry out the step S105 of the linear piece of replacing of cancellation, and the step S107 of the record expression one defective information of not replaced by linearity as yet.In the case, because disc defect management mode is set at " 1 ", the meaning that this pattern information and FRM information relatively can be identified FRM information becomes different in the meaning of existing FRM information.
That is, the piece that has based on the FRM information representation of existing standard book in the piece spare area of no use of the defective that produces is for some reason replaced, or does not have the spare area to replace.On the other hand, FRM information based on redetermination is added in the meaning of existing FRM, and can be the information of expression when disc defect management mode is " 1 ", the linearity of the defect block of being replaced by existing linear replacement method is replaced to have cancelled and is used for real time record, or defect block is replaced by linearity as yet and is used for real time record.
Comprise real-time information probably because the defect management pattern is made as the dish of " 1 ", can utilize this dish not consider real-time information as the information of avoiding heavy assignment information on dish.As the method for heavily distributing information on disk, can be included in dish go up to collect the sheet of file sheet collect and heavily distribute after read.Reading after the distribution is reading of data, replaces the method for defective data block probably with the piece that is arranged in the spare area then.
Figure 10 is the improved SDL project structure that is used to cancel linear replacement by the present invention's suggestion.When one defective that has been replaced is present on the respective disc when at recording real-time data, wherein first sector number of replace block is recorded as sexadecimal number " 000000 " and sets the recorded information method of FRM position for the district of " 1 " as mentioned above, is expressed as to be used to cancel linear processing of replacing.
The method can minimize the change in the existing standard.Yet, in the method, must delete the information of the piece that is defined as defective and is replaced, make linear replacement can carry out at any time, cancel and carry out again, and do not need to use in succession the spare area.Particularly, when the linear replace block in the spare area be defective and when being replaced again, the relevant information dropout of defect block of replacing with the spare area neutral line.
So, best, when the linearity replacement takes place, use the piece in corresponding spare area in succession, even and when the linear replacement of cancellation, maintenance and the relevant information of piece of in the spare area, replacing the associated disadvantages piece.When the district of first sector number that only writes down FRM position and replace block is used to keep the relevant information of sector number with the replacement of spare area, can not learn that the piece of whether replacing accordingly is replaced owing to defective again, can not learn whether linear replacement is cancelled with recording real-time data.
In order to address this is that, by using the guard position of the SDL project that is not used, the linearity of redetermination cancellation is replaced (CLR) mark.When the linearity replacement cancellation at a corresponding SDL project is used for recording real-time data, can use the method that CLR is labeled as " 1 " of setting.At this, when the CLR flag settings was " 0 ", the replace block that expression distributes was not used by real time data.In the structure of the SDL of Figure 10 project, the position b31 that for example is not used is as the CLR mark.
Simultaneously, the defect management information that is used for recording real-time data roughly is divided into three kinds of situations, and wherein: (1) real time data is not recorded on the whole dish; (2) two types data, promptly real time data and non-real-time data coexist as on the dish, and only do not use the linear replacement defect management method at real time data; (3) recording real-time data only on whole dish promptly, uses the linear replacement defect management method at all record data.
Particularly, in the third situation, whole dish is not used in real time and replace, make the spare area that is used for defect management can be set to littler than the capacity of first and second kinds of situations.Be described in detail with reference to Figure 12 and 13 below.
When such three and more defect management methods are applied to a dish, the situations of various uses according to dish can be arranged, and can this dish of more effective use.Yet,, such as changing and use the situation of coiling between each transcriber, must more detailed description wherein use the defect management situation of respective disc in view of a kind of situation.The expression of describing in Fig. 8 uses or does not use linear 1 disc defect management mode information of replacing to be not enough to be used for the defect management information of above-mentioned situation.
So, as shown in figure 11, depend on a plurality of different defect management patterns, can represent linear replace or the defect management mode information of non-linear replacement is stored in the reserve bytes of the DDS of the defect management (DMA) that is arranged on the dish.That is, use or do not use linear defect management (DM) pattern of replacing as an example by depending on, Figure 11 shows relative byte location BP10 i.e. two significance bit b7 of the 11 byte and the situation of b6 of using DDS.
As shown in figure 11, when the DM pattern information is " 00b ", the expression slippage is replaced and linear all data that are applied on the dish of replacing, when the DM pattern information is " 01b) ", expression according to information type (is herein, real-time recorded data and non real-time record data) select to use linear the replacement, and when the DM pattern information was " 10b ", expression was not used linear the replacement at each data.
That is when the DM pattern information is " 00b ", must be that slippage is replaced and linear the replacement, and this pattern be the data that only are used for except that above-mentioned first kind of situation real time data.When the DM pattern information is " 01b ", must be linear the replacement, but the linearity replacement that is used for real time data be optional.This pattern is to be used for the defect management that above-mentioned second kind of situation comprises the mixing pan of real time data and non-real-time data.When the DM pattern information is " 10b ", only there is slippage to replace and allows, this pattern is to be used in above-mentioned the 3rd situation only defect management of real time data.When the DM pattern information is " 10b ", physical layout that can the change dish.
Meanwhile because linear replacement can not be used for recording real-time data, therefore, linear replace required spare area actual become unwanted.For this situation, in the present invention, as shown in figure 12, a spare area that only will be used for the slippage replacement is arranged on last group, and does not need to distribute a spare area to be used for linear the replacement.Specifically, 7680 sectors of spare area allocation (480 ECC pieces) of setting in the end one group (herein being the 34th group) are used for slippage to the spare area replaces, to handle maximum 7679 projects that can be registered in the initial imperfection table (PDL).Among Figure 12, sect represents the sector, and blk represents piece, and rev represents revolution (revolutions).
In order to obtain the compatibility between the present invention and the existing defect management structures, one mark can be distinguished the situation and the situation that wherein is used in the spare area of linear replacement and slippage replacement according to existing defect management method branch that wherein only only is used for the spare area of slippage replacement for the real-time data record distribution, this mark represents with significance bit b7 and the b6 of the relative byte location BP10 among DDS and the PDL, as shown in figure 13.
As shown in figure 13, when the significance bit b7 and the b6 of expression DM pattern on the byte location BP10 at DDS/PDL are " 00b ", existing defect management method is used in expression, and when two significance bit b7 and b6 are " 10b ", use the defect management method that only is used for real time record and does not need linear replacement, the spare area allocation that wherein only is useful on the slippage replacement is in last group of dish.So, distributing the spare area by the method that is exclusively used in real time record, feasible utilization owing to disk space has improved efficient.
As mentioned above, kept method of the present invention and, when recording real-time data, do not carried out linear the replacement based on the compatibility between the defect management method of current DVD-RAM standard, so, can write down and reproduce real time data.
In the present invention, storage representation depends on the information of a plurality of different defect management patterns of wanting the record data type, and making it possible to has various corresponding situations according to the use of recording medium.Like this, can more effective service recorder medium.
And, in the present invention, when recording real-time data, distribute the spare area only to be used for real time data.Like this, because the utilization of disk space can increase effectiveness.