JP2002288928A - Optical disk recording and playback apparatus - Google Patents
Optical disk recording and playback apparatusInfo
- Publication number
- JP2002288928A JP2002288928A JP2001088003A JP2001088003A JP2002288928A JP 2002288928 A JP2002288928 A JP 2002288928A JP 2001088003 A JP2001088003 A JP 2001088003A JP 2001088003 A JP2001088003 A JP 2001088003A JP 2002288928 A JP2002288928 A JP 2002288928A
- Authority
- JP
- Japan
- Prior art keywords
- data
- processing
- buffer
- optical disk
- reproducing apparatus
- 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.)
- Granted
Links
- 230000003287 optical effect Effects 0.000 title claims abstract description 53
- 239000000872 buffer Substances 0.000 claims abstract description 103
- 238000000034 method Methods 0.000 claims abstract description 87
- 238000013500 data storage Methods 0.000 claims description 6
- 230000003139 buffering effect Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 1
- 239000012536 storage buffer Substances 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Optical Recording Or Reproduction (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、情報記録媒体への
記録再生装置に関するものであり、特に、バッファメモ
リをデータの書き込み処理と読み込み処理とで共用して
いる記録再生装置におけるデータ読み込み処理に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for recording / reproducing information on / from an information recording medium, and more particularly, to a data reading process in a recording / reproducing apparatus in which a buffer memory is used for both data writing and reading. .
【0002】[0002]
【従来の技術】図4は、従来の光ディスク記録再生装置
の構成を示すブロック図である。光ディスク記録再生装
置1は、光ディスク2と、光ディスク2を回転駆動させ
るディスクモータ3と、光ディスク2の信号記録面を走
査する光ピックアップ4と、ディスクモータ3の回転速
度を要求速度に応じて制御すると共に、光ピックアップ
4のシーク動作あるいはデータ読み取り及び書き込み動
作を制御するサーボ回路5と、光ピックアップ4で読み
とったデータをデコード処理し、上位装置から送られて
きた書き込みデータをエンコード処理するデータデコー
ダ/エンコーダ6と、上位装置とのインターフェース7
と、上位装置からの要求に応じてサーボ回路5とデコー
ダ/エンコーダ6の動作を制御するCPU8と、電源9
と、データバッファ10を具える。2. Description of the Related Art FIG. 4 is a block diagram showing a configuration of a conventional optical disk recording / reproducing apparatus. The optical disk recording / reproducing apparatus 1 controls an optical disk 2, a disk motor 3 for driving the optical disk 2 to rotate, an optical pickup 4 for scanning a signal recording surface of the optical disk 2, and a rotation speed of the disk motor 3 according to a required speed. A servo circuit 5 for controlling a seek operation or a data read / write operation of the optical pickup 4; and a data decoder / decoder for decoding data read by the optical pickup 4 and encoding write data sent from a host device. Encoder 6 and interface 7 with host device
A CPU 8 for controlling operations of a servo circuit 5 and a decoder / encoder 6 in response to a request from a host device;
And a data buffer 10.
【0003】光ピックアップ4が読み取ったデータはサ
ーボ回路5からデータデコーダ/エンコーダ6を介しデ
ータバッファ10に供給され、ここでデータデコーダ/
エンコーダ6によるデコード処理が行われた後、再びデ
ータデコーダ/エンコーダ6からインタフェース部7を
介して上位装置に供給される。The data read by the optical pickup 4 is supplied from a servo circuit 5 to a data buffer 10 via a data decoder / encoder 6 where the data decoder / data is read.
After the decoding process is performed by the encoder 6, the data is again supplied from the data decoder / encoder 6 to the host device via the interface unit 7.
【0004】またコンピュータ等の上位装置から送信さ
れた書き込み要求データはインタフェース部7からデー
タデコーダ/エンコーダ6を介しデータバッファ10に
供給され、ここでエンコード処理が行われた後、再びデ
ータデコーダ/エンコーダ6からサーボ回路4を介し光
ピックアップ5より光ディスク2に記録される。[0004] Write request data transmitted from a host device such as a computer is supplied from an interface unit 7 to a data buffer 10 via a data decoder / encoder 6, where encoding processing is performed, and then the data decoder / encoder is again processed. 6 is recorded on the optical disk 2 by the optical pickup 5 via the servo circuit 4.
【0005】コンピュータからのコマンドあるいはデー
タ転送要求は、インターフェース部7を介してCPU8
に伝えられ、データ読み込み及び書き込み要求コマンド
を受けたCPU8は、サーボ回路4に対しディスクモー
タの回転制御指令及び光ピックアップ2のシーク制御指
令を発行する。[0005] Commands or data transfer requests from the computer are sent to the CPU 8 via the interface unit 7.
The CPU 8 that has received the data read and write request commands issues a disk motor rotation control command and a seek control command for the optical pickup 2 to the servo circuit 4.
【0006】次に、図5に示すフローチャートに従って
従来の光ディスク記録再生装置1のデータ読み取り動作
について説明する。Next, a data reading operation of the conventional optical disk recording / reproducing apparatus 1 will be described with reference to a flowchart shown in FIG.
【0007】図5に示すように、データ読みとり動作
は、読み込み要求されたセクタのデータがデータバッフ
ァ10に格納されているか否かを判定するステップA1
と、ステップA1でデータが格納されていないと判定さ
れた場合に目的セクタに対するサーボサーチを実行する
ステップA2と、ステップA2のサーボサーチが終了し
たか否かを判定するステップA3と、データバッファリ
ングおよびデータデコードを開始するステップA4と、
ステップA4でバッファリングしたデータのエラー判定
を行うステップA5と、バッファリングしたデータを上
位装置に転送するステップA6と、現在データバッファ
リング中であるか否かを判定するステップA7と、ステ
ップA7でバッファリング中であると判定された場合に
バッファフル状態でないかを判定するステップA8と、
バッファリングを停止するステップA9とからなる。As shown in FIG. 5, in the data reading operation, a step A1 for judging whether or not data of the sector requested to be read is stored in the data buffer 10.
And step A2 of executing a servo search for the target sector when it is determined in step A1 that no data is stored, step A3 of determining whether the servo search of step A2 has been completed, and data buffering. And step A4 to start data decoding;
Step A5 of making an error determination of the data buffered in step A4, step A6 of transferring the buffered data to a higher-level device, step A7 of determining whether data buffering is currently being performed, and step A7. Step A8 of determining whether or not the buffer is full when it is determined that buffering is being performed;
Step A9 for stopping buffering.
【0008】具体的には、読み込み要求のあったセクタ
のデータがデータバッファ10に格納されているかを判
定し(ステップA1)、ここでデータが格納されていな
かった場合は要求セクタヘのサーボサーチを起動し(ス
テップA2)、このサーチの終了を監視する(ステップ
A3)。ステップA3にてサーチ終了と判定された場合
は、目的セクタからのデータバッファリング及びデータ
デコードを開始し(ステップA4)、次いでバッファリ
ングされたデータのエラー判定を行う(ステップA
5)。ここでデータのエラーなしと判定された場合は要
求セクタのデータ転送を実行し(ステップA6)、エラ
ーがあった場合はステップA2に戻り、サーボサーチか
らの処理を再度実行する。また、ステップA1でデータ
がデータバッファ10に格納されている場合は、直接ス
テップA6に進んでデータ転送を実行する。データ転送
後はデータバッファリングが実行中であるかを判定し
(ステップA7)、バッファリングが行われていない状
態であれば、ここでデータ読み込み処理を終了する。デ
ータバッファリングが実行中であればバッファフルを監
視し(ステップA8)、バッファフルと判定された場合
はデータバッファリング処理を停止する(ステップA
9)。More specifically, it is determined whether or not the data of the sector requested to be read is stored in the data buffer 10 (step A1). If no data is stored, the servo search to the requested sector is performed. It starts (step A2) and monitors the end of this search (step A3). If it is determined in step A3 that the search has been completed, data buffering and data decoding from the target sector are started (step A4), and then an error determination is performed on the buffered data (step A).
5). If it is determined that there is no data error, the data transfer of the requested sector is executed (step A6). If there is an error, the process returns to step A2, and the processing from the servo search is executed again. If data is stored in the data buffer 10 in step A1, the process directly proceeds to step A6 to execute data transfer. After the data transfer, it is determined whether or not data buffering is being executed (step A7). If the buffering is not being performed, the data reading process ends here. If data buffering is being executed, buffer full is monitored (step A8), and if buffer full is determined, data buffering processing is stopped (step A8).
9).
【0009】次に、図6に示すフローチャートに従っ
て、従来の光ディスク記録再生装置1のデータ書き込み
動作について説明する。図6に示すとおり、データ書き
込み動作は、データ読み込み処理中であるかを判定する
ステップB1と、データ読み込み中であった場合データ
読み込み処理を停止させるステップB2と、書き込み要
求データのデータバッファ10への受信及びデータエン
コードを開始するステップB3と、データバッファ10
のバッファフルを監視するステップB4と、書き込み要
求の有無を判定するステップB5と、サーボのデータ書
き込みを開始するステップB6と、全書き込みデータの
受信終了を判定するステップB7と、ステップB6にて
実行されたデータ書き込み処理が終了したかを判定する
ステップB8とからなる。Next, a data writing operation of the conventional optical disk recording / reproducing apparatus 1 will be described with reference to a flowchart shown in FIG. As shown in FIG. 6, the data write operation includes a step B1 for determining whether the data read process is being performed, a step B2 for stopping the data read process when the data is being read, and a process for writing the write request data to the data buffer 10. B3 to start receiving and data encoding of the data buffer 10;
Step B4 of monitoring buffer fullness, step B5 of determining the presence or absence of a write request, step B6 of starting writing of servo data, step B7 of determining the end of reception of all write data, and step B6. And step B8 for determining whether the data writing process has been completed.
【0010】具体的には、まず現在データ読み込み処理
(バッファリング)を実行中であるかを判定し(ステッ
プB1)、実行中である場合はデータ読み込み処理を停
止する(ステップB2)。次いで、書き込み要求データ
のデータバッファヘの受信及びデータエンコードを開始
し(ステップB3)、受信データバッファのバッファフ
ルを監視する(ステップB4)。ここでバッファフルで
ない場合には更にバッファ書き込みの実行要求の有無を
判定し(ステップB5)、ステップB4にてバッファフ
ルと判定された場合、またはステップB5にてバッファ
書き込みの実行要求有りと判定された場合は、データの
書き込みを実行する(ステップB6)。また、ステップ
B4にてバッファフル状態ではないと判定され、更にス
テップB5にてバッファ書き込みの実行要求無しと判定
された場合は、全書き込み要求データの受信が終了した
かどうかの判定を行う(ステップB7)。ステップB7
にて全書き込みデータの受信が終了していないと判定さ
れた場合はステップB4に戻り以降の処理を再度実行
し、受信が完了していると判定された場合は、ステップ
B6で実行したデータ書き込み処理の終了を監視し(ス
テップB8)、終了と判定された時にデータ書き込みが
終了する。More specifically, first, it is determined whether the data reading process (buffering) is currently being executed (step B1), and if so, the data reading process is stopped (step B2). Next, reception of the write request data to the data buffer and data encoding are started (step B3), and the buffer fullness of the received data buffer is monitored (step B4). If the buffer is not full, it is further determined whether there is a buffer writing execution request (step B5). If it is determined in step B4 that the buffer is full, or it is determined in step B5 that there is a buffer writing execution request. If so, data writing is performed (step B6). If it is determined in step B4 that the buffer is not in the buffer full state, and if it is determined in step B5 that there is no buffer write execution request, it is determined whether reception of all write request data has been completed (step B5). B7). Step B7
If it is determined that the reception of all the write data has not been completed, the process returns to step B4 and the subsequent processing is executed again. If it is determined that the reception has been completed, the data writing performed in step B6 is performed. The end of the process is monitored (step B8), and when it is determined that the process has been completed, the data writing ends.
【0011】[0011]
【発明が解決しようとする課題】従来の光ディスク記録
再生装置は、データ読み込み時のデコード処理とデータ
書き込み時のエンコード処理に同一のデータバッファを
使用しており、読み込みと書き込みの各処理でバッファ
を最大限に使用することにより、それぞれの処理効率を
向上させている。このため同一光ディスク内でファイル
コピーなどを実行する場合などに、ライタソフトからデ
ータの読み込み命令と書き込み命令が交互にかつ連続し
たアドレスに対し短いセクタ単位で繰り返し要求される
と、読み込み処理が次の書き込み処理のデータ受信時に
停止させられるまでにバッファに格納された読み込み要
求セクタ以降のデータが、書き込み処理時には全てクリ
アされてしまう。このため、従来の装置では次のデータ
読み込み時には必ず目的セクタヘのサーチ及びバッファ
リング処理が実行されることになり、処理速度が遅くな
るという問題がある。The conventional optical disk recording / reproducing apparatus uses the same data buffer for the decoding process when reading data and the encoding process when writing data. The buffer is used for each process of reading and writing. By maximizing the use, each processing efficiency is improved. For this reason, when a file read command and a write command are repeatedly and alternately requested in a short sector unit for continuous addresses by the writer software, for example, when performing a file copy or the like in the same optical disc, the read processing is performed next. All data after the read request sector stored in the buffer until the data is stopped at the time of data reception in the write process is cleared during the write process. For this reason, in the conventional apparatus, the search and buffering processing for the target sector is always executed at the time of the next data reading, and there is a problem that the processing speed is reduced.
【0012】本発明の目的は、データ書き込み処理時の
バッファリングデータを有効に活用し、効率的なデータ
読み込み及び書き込み処理を実現する光ディスク記録再
生装置を提供することにある。An object of the present invention is to provide an optical disk recording / reproducing apparatus which effectively utilizes buffering data at the time of data writing processing and realizes efficient data reading and writing processing.
【0013】[0013]
【課題を解決するための手段】上記課題を解決するた
め、本発明の光ディスク記録再生装置は、データ読み込
み処理手段と、データ書き込み処理手段とを有し、デー
タ書き込み処理時のエンコード処理とデータ読み込み処
理時のデコード処理に同一のデータバッファを使用する
光ディスク記録再生装置において、データ読み込み処理
とデータ書き込み処理の連続状態を判別する手段を設け
て、この判別結果に応じて、該データバッファを分割し
て使用するように構成したことを特徴とする。In order to solve the above-mentioned problems, an optical disk recording / reproducing apparatus according to the present invention has a data reading processing means and a data writing processing means, and performs encoding processing and data reading at the time of data writing processing. In an optical disc recording / reproducing apparatus that uses the same data buffer for decoding at the time of processing, means is provided for determining the continuous state of data reading and data writing, and the data buffer is divided according to the result of this determination. It is characterized in that it is configured to be used by using.
【0014】本発明によれば、データ読み込み処理とデ
ータ書き込み処理が連続して生じていか否かを判別し
て、データバッファを分割して使用するようにしている
ため、処理の状況に応じて効率的にデータバッファを活
用することが可能となる。従って、データ読み込み処理
とデータ書き込み処理が連続している場合であっても処
理速度を速く保つことが可能となる。According to the present invention, it is determined whether or not the data reading process and the data writing process have occurred continuously, and the data buffer is divided and used. It is possible to efficiently use the data buffer. Therefore, the processing speed can be kept high even when the data reading process and the data writing process are continuous.
【0015】また、本発明の光ディスク記録再生装置
は、上記データ読み込み処理とデータ書き込み処理の連
続状態を判別する手段が、データ読み込み処理を実行す
るに際して該実行しようとするデータ読み込み処理の直
前にデータ書き込み処理が実行されていたか否かを判別
し、データ書き込み処理が実行されていた場合に、該実
行しようとする読み込み要求データのアドレスが前回に
行った読み込み処理データのアドレスから連続している
かどうかを判別することを特徴とする。In the optical disk recording / reproducing apparatus according to the present invention, the means for judging the continuous state of the data read processing and the data write processing is characterized in that the data read processing is executed immediately before the data read processing to be executed. It is determined whether or not the write process has been executed. If the data write process has been executed, whether or not the address of the read request data to be executed is continuous from the address of the previously read process data Is determined.
【0016】本発明によれば、例えば、データの読み込
み命令と書き込み命令が交互にかつ連続したアドレスに
対し短いセクタ単位で繰り返し要求されるなどして、処
理効率が特に低下する場合でも、データバッファを、デ
ータ読み込み処理とデータ書き込み処理で効率良く分割
して利用することによって、処理効率を高く維持するこ
とが可能となる。According to the present invention, even when the processing efficiency is particularly lowered, for example, when a data read command and a write command are repeatedly and alternately requested for a continuous address in a short sector unit, the data buffer can be used. Is efficiently divided and used in the data reading process and the data writing process, so that the processing efficiency can be maintained high.
【0017】さらに、本発明の装置では、前記データ読
み込み処理とデータ書き込み処理の連続状態を判別する
手段が、実行しようとするデータ読み込み処理の直前に
データ書き込み処理が実行されており、かつ、該実行し
ようとする読み込み要求データのアドレスが前回に行っ
た読み込み処理データのアドレスから連続していると判
別した場合に、以後に行うデータ書き込み処理において
バッファクリアを禁止することを特徴とする。また、前
記データ読み込み処理とデータ書き込み処理の連続状態
を判別する手段が、データ書き込み処理を行うに際して
前記バッファクリアが禁止されているか否かを判別し、
禁止されている場合に前記データバッファを分割して使
用することを特徴とする。Further, in the apparatus of the present invention, the means for judging the continuous state of the data read processing and the data write processing is such that the data write processing is executed immediately before the data read processing to be executed, and When it is determined that the address of the read request data to be executed is continuous from the address of the read processing data performed last time, buffer clear is prohibited in the subsequent data write processing. Further, the means for determining a continuous state of the data reading process and the data writing process determines whether or not the buffer clear is prohibited when performing the data writing process,
When the data buffer is prohibited, the data buffer is divided and used.
【0018】このように構成することによって、データ
書き込み処理時に、データ書き込み処理を妨げることな
く、直前のデータ読み込み処理においてバッファリング
したデータを消去せずに保持しておき、データ書き込み
処理後にこのバッファエリアに格納されたデータに対す
る重複した読み込み要求があった場合に、読み込み処理
に必要な目的セクタに対するサーチ処理やバッファリン
グ処理等の動作を省略できるので、処理効率を高く維持
することができる。With this configuration, during the data writing process, the data buffered in the immediately preceding data reading process is retained without erasing without hindering the data writing process, and the buffer is stored after the data writing process. When there is a duplicate read request for the data stored in the area, operations such as search processing and buffering processing for the target sector required for the read processing can be omitted, so that the processing efficiency can be kept high.
【0019】また、本発明の光ディスク記録再生装置で
は、前記データバッファを分割して使用する場合に、デ
ータバッファ内の読み込み処理に使用したデータの格納
サイズをチェックし、該サイズに応じて書き込み処理デ
ータのデータバッファの使用量を決定することを特徴と
する。Further, in the optical disk recording / reproducing apparatus of the present invention, when the data buffer is divided and used, the storage size of the data used for the reading process in the data buffer is checked, and the writing process is performed according to the size. It is characterized in that the amount of data buffer used is determined.
【0020】この場合、データバッファ内の読み込み処
理に使用したデータの格納サイズが全バッファサイズの
1/2以下である場合は、書き込みデータ処理に使用す
るバッファサイズを読み込みデータ格納エリアを除いた
サイズに縮小して使用し、また、データバッファ内の読
み込み処理に使用したデータの格納サイズが全バッファ
サイズの1/2以上である場合には、書き込みデータ処
理に使用するバッファサイズを全バッファサイズの1/
2に縮小して処理することを特徴とする。In this case, if the storage size of the data used for the reading process in the data buffer is equal to or less than 1/2 of the total buffer size, the buffer size used for the writing data process is set to the size excluding the read data storage area. When the storage size of the data used for the reading process in the data buffer is half or more of the total buffer size, the buffer size used for the writing data process is reduced to the total buffer size. 1 /
It is characterized in that it is reduced to 2 and processed.
【0021】バッファサイズをこのように分割すること
によって、データ書き込み処理後にこのバッファエリア
に格納された読み込みデータに重複する読み込み要求が
あった場合に、データ読み込み所為に必要な目的セクタ
に対するサーチ処理や、バッファリング処理等の動作に
必要なデータを保持しておくことができる。By dividing the buffer size in this way, when there is a read request that overlaps with the read data stored in the buffer area after the data write processing, search processing for the target sector necessary for the data read operation can be performed. And data necessary for operations such as buffering processing.
【0022】[0022]
【発明の実施の形態】次に、本発明の実施形態による光
ディスク記録再生装置を図面を参照して説明する。図1
は、本発明の光ディスク記録再生装置の一実施形態を示
す概略構成図である。図1に示した本発明の一実施形態
による光ディスク記録再生装置21は、目的セクタの読
み込み処理及び書き込み制御が従来の装置とは異なるも
のであり、CPU22の動作が従来のCPU8と異なる
点を除き、ハードウェア上の全体構成は従来の光ディス
ク記録再生装置1とほぼ同様である。Next, an optical disk recording / reproducing apparatus according to an embodiment of the present invention will be described with reference to the drawings. Figure 1
1 is a schematic configuration diagram showing an embodiment of an optical disk recording / reproducing apparatus of the present invention. The optical disk recording / reproducing apparatus 21 according to the embodiment of the present invention shown in FIG. 1 is different from the conventional apparatus in the read processing and the write control of the target sector, and the operation of the CPU 22 is different from that of the conventional CPU 8. The overall configuration of the hardware is almost the same as that of the conventional optical disc recording / reproducing apparatus 1.
【0023】CPU22のデータ書き込み処理及びデー
タ読み込み処理制御は、以下に詳述するとおり、それぞ
れの処理に使用する同一のデータバッファを状況により
分割して使用することにより、データ読み込み処理と書
き込み処理が交互にかつ連続したアドレスに対し短いセ
クタ単位で繰り返し要求された場合のデータ読み込み処
理に要する時間を短縮させ、データ書き込み後の効率的
なデータ読み込み処理が実行できるよう動作規定してあ
る。As will be described in detail below, the data write process and the data read process of the CPU 22 are controlled by dividing the same data buffer used for each process depending on the situation. The operation is defined so that the time required for the data reading process in the case where a request is made repeatedly and alternately in consecutive units in a short sector unit is reduced, and the data reading process after the data writing is performed efficiently.
【0024】図2は、図1に示したCPU22による目
的セクタ読み込み処理制御を説明するためのフローチャ
ートである。FIG. 2 is a flowchart for explaining the target sector read processing control by the CPU 22 shown in FIG.
【0025】上記読み込み処理制御は、図2に示すよう
に、データ書き込み直後であるかを判定するステップA
10と、読み込み要求セクタのスタートアドレスが、前
回の読み込み処理時の最終読み込み要求セクタアドレス
から連続しているかを判定するステップA11と、書き
込み時の読み込みデータバッファクリア禁止を要求する
ステップA12と、書き込み時の読み込みデータバッフ
ァクリア許可を要求するステップA13と、読み込み要
求されたセクタのデータがデータバッファに格納されて
いるかを判定するステップA1と、ステップA1でデー
タが格納されていないと判定された場合、目的セクタに
対するサーボサーチを実行するステップA2と、ステッ
プA2のサーボサーチが終了したか否かを判定するステ
ップA3と、データバッファリング及びデータデコード
を開始するステップA4と、バッファリングしたデータ
のエラー判定を行うステップA5と、バッファリングし
たデータをホストコンピュータに転送するステップA6
と、現在データバッファリング中であるかを判定するス
テップA7と、ステップA7でバッファリング中である
と判定された場合、バッファフル状態でないかを判定す
るステップA8と、バッファリングの停止を行うステッ
プA9とからなる。なお、ステップA1ないしA9の動
作は図5で説明した従来の光ディスク記録再生装置にお
ける処理と同様である。In the read processing control, as shown in FIG. 2, a step A for judging whether or not data has just been written is determined.
10, a step A11 for determining whether the start address of the read request sector is continuous from the last read request sector address in the previous read processing, a step A12 for requesting prohibition of clearing the read data buffer at the time of writing, and Step A13 for requesting permission to clear the read data buffer at the time, Step A1 for determining whether data of the sector requested to be read is stored in the data buffer, and when it is determined in Step A1 that data is not stored Step A2 of executing a servo search for the target sector, Step A3 of determining whether the servo search of Step A2 has been completed, Step A4 of starting data buffering and data decoding, and an error of the buffered data. Perform judgment And step A5, step A6 to transfer the buffered data to the host computer
Step A7 for determining whether data buffering is currently being performed, and Step A8 for determining whether the buffer is full when it is determined that buffering is being performed in Step A7, and a step for stopping buffering. A9. The operations in steps A1 to A9 are the same as those in the conventional optical disk recording / reproducing apparatus described with reference to FIG.
【0026】具体的には、実行しようとしているデータ
読み込み処理の直前にデータ書き込み処理が実行されて
いたかを判定し(ステップA10)、書き込み処理が実
行されていた場合は読み込み要求セクタのスタートアド
レスが前回の読み込み処理から連続しているかを判定し
て(ステップA11)、連続していれば書き込み処理時
の読み込みデータバッファクリア禁止を要求し(ステッ
プA12)、連続していなければ書き込み時の読み込み
データバッファクリア許可を要求する(ステップA1
3)。次いで、読み込み要求されたセクタのデータがデ
ータバッファに格納されているかを判定する(ステップ
A1)。なお、ステップA10で、直前にデータ書き込
み処理が実行されていないと判定された場合は、直接に
ステップA1に進む。Specifically, it is determined whether or not the data write processing has been executed immediately before the data read processing to be executed (step A10). If the write processing has been executed, the start address of the read request sector is changed to the start address. It is determined whether or not the data is continuous from the previous read processing (step A11). If the data is continuous, a request to prohibit clearing of the read data buffer at the time of the write processing is requested (step A12). Request buffer clear permission (step A1)
3). Next, it is determined whether the data of the sector requested to be read is stored in the data buffer (step A1). If it is determined in step A10 that the data writing process has not been executed immediately before, the process directly proceeds to step A1.
【0027】ステップA1でバッファにデータが格納さ
れていなかった場合は要求セクタヘのサーボサーチを起
動し(ステップA2)、このサーチの終了を監視する
(ステップA3)。ステップA3にてサーチ終了と判定
された場合は、目的セクタからのデータバッファリング
及びデータデコードを開始し(ステップA4)、次いで
バッファリングされたデータのエラー判定を行う(ステ
ップA5)。ここでデータのエラーなしと判定された場
合は要求セクタのデータ転送を実行し(ステップA
6)、エラーがあった場合はステップA2に戻り、サー
ボサーチからの処理を再度実行する。また、ステップA
1でデータがデータバッファ10に格納されていると判
定された場合は、ステップA6に進んでデータ転送を実
行する。データ転送後はデータバッファリングが実行中
であるかを判定し(ステップA7)、バッファリングが
行われていない状態であれば、ここでデータ読み込み処
理を終了する。データバッファリングが実行中であれば
バッファフルを監視し(ステップA8)、バッファフル
と判定された場合はデータバッファリング処理を停止す
る(ステップA9)。If no data is stored in the buffer in step A1, a servo search for the requested sector is started (step A2), and the end of this search is monitored (step A3). If it is determined in step A3 that the search has been completed, data buffering and data decoding from the target sector are started (step A4), and then an error determination is performed on the buffered data (step A5). If it is determined that there is no data error, the data transfer of the requested sector is executed (step A).
6) If there is an error, the flow returns to step A2, and the processing from the servo search is executed again. Step A
If it is determined in step 1 that data is stored in the data buffer 10, the process proceeds to step A6 to execute data transfer. After the data transfer, it is determined whether or not data buffering is being executed (step A7). If the buffering is not being performed, the data reading process ends here. If data buffering is being executed, buffer full is monitored (step A8), and if buffer full is determined, data buffering processing is stopped (step A9).
【0028】図3は、本発明の光ディスク記録再生装置
のCPU22による目的セクタ書き込み処理制御を説明
するためのフローチャートである。図3に示すように、
CPU22におけるデータ書き込み制御動作は、現在デ
ータ読み込み処理中であるかを判定するステップB1
と、データ読み込み中であった場合、データ読み込み処
理を停止させるステップB2と、読み込みデータが格納
されているデータバッファのクリア禁止が要求されてい
るかを判定するステップB10と、読み込みデータ格納
バッファサイズをチェックするステップ11と、書き込
みデータ処理バッファを読み込みデータ格納エリアを除
いたサイズに縮小するステップB12と、書き込みデー
タ処理バッファサイズを1/2縮小するステップB13
と、読み込みデータが格納されているデータバッファの
クリアを許可するステップB14と、書き込み要求デー
タのデータバッファヘの受信及びデータエンコードを開
始するステップB3と、データバッファのバッファフル
を監視するステップB4と、書き込み要求の有無を判定
するステップB5と、サーボのデータ書き込みを開始す
るステップB6と、全書き込みデータの受信終了を判定
するステップB7と、ステップB6にて実行されたデー
タ書き込み処理が終了したかを判定するステップB8と
からなる。なお、ステップB1〜B8の動作は図6で説
明した従来の光ディスク記録再生装置の動作と同じであ
る。FIG. 3 is a flowchart for explaining target sector write processing control by the CPU 22 of the optical disk recording / reproducing apparatus of the present invention. As shown in FIG.
The data write control operation of the CPU 22 includes a step B1 of determining whether data read processing is currently being performed.
Step B2 of stopping the data reading process when the data is being read, Step B10 of determining whether the prohibition of clearing of the data buffer storing the read data is requested, and setting the read data storage buffer size to Step 11 for checking, Step B12 for reducing the write data processing buffer to a size excluding the read data storage area, and Step B13 for reducing the size of the write data processing buffer by バ ッ フ ァ.
A step B14 of permitting clearing of the data buffer storing the read data, a step B3 of starting the reception of the write request data to the data buffer and starting the data encoding, and a step B4 of monitoring the buffer full of the data buffer. Step B5 of judging the presence or absence of a write request, Step B6 of starting writing of servo data, Step B7 of judging the end of reception of all write data, and whether the data write processing executed in Step B6 has ended Is determined in step B8. The operations in steps B1 to B8 are the same as the operations of the conventional optical disk recording / reproducing apparatus described with reference to FIG.
【0029】具体的には、まず現在データ読み込み処理
(バッファリング)が実行中であるかを判定し(ステッ
プB1)、実行中であった場合はデータ読み込み処理を
停止する(ステップB2)。次いで読み込みデータが格
納されているデータバッファのクリア禁止が要求されて
いるかを判定し(ステップB10)、禁止されている場
合は読み込み処理でデータが格納されたバッファサイズ
をチェックし(ステップB11)、このバッファサイズ
が全バッファサイズの1/2以下である場合は書き込み
データ処理バッファサイズを読み込みデータ格納エリア
を除いたサイズに縮小し(ステップB12)、さらに1
/2以上である場合は書き込みデータ処理バッファサイ
ズを1/2に縮小し(ステップB13)、次回書き込み
処理時の読み込みデータ格納エリアのクリアを許可する
(ステップB14)。次いで、書き込み要求データのデ
ータバッファヘの受信及びデータエンコードを開始し
(ステップB3)、受信データバッファのバッファフル
を監視する(ステップB4)。ここでバッファフルでな
い場合には更にバッファ書き込みの実行要求の有無を判
定し(ステップB5)、ステップB4にてバッファフル
と判定された場合、またはステップB5にてバッファ書
き込みの実行要求有りと判定された場合は、データの書
き込みを実行する(ステップB6)。また、ステップB
4にてバッファフル状態ではないと判定され、更にステ
ップB5にてバッファ書き込みの実行要求無しと判定さ
れた場合は、全書き込み要求データの受信が終了したか
どうかの判定を行う(ステップB7)。ステップB7に
て全書き込みデータの受信が終了していないと判定され
た場合はステップB4に戻り以降の処理を再度実行し、
受信が完了していると判定された場合は、ステップB6
で実行したデータ書き込み処理の終了を監視し(ステッ
プB8)、終了と判定された時にデータ書き込みを終了
する。More specifically, first, it is determined whether or not the data reading process (buffering) is currently being executed (step B1), and if so, the data reading process is stopped (step B2). Next, it is determined whether or not the prohibition of clearing the data buffer storing the read data is requested (step B10). If the prohibition is requested, the size of the buffer in which the data is stored is checked by the read process (step B11). If the buffer size is equal to or smaller than 1/2 of the total buffer size, the write data processing buffer size is reduced to a size excluding the read data storage area (step B12).
If it is not less than / 2, the write data processing buffer size is reduced to 1/2 (step B13), and clearing of the read data storage area at the next write processing is permitted (step B14). Next, reception of the write request data to the data buffer and data encoding are started (step B3), and the buffer fullness of the received data buffer is monitored (step B4). If the buffer is not full, it is further determined whether there is a buffer writing execution request (step B5). If it is determined in step B4 that the buffer is full, or it is determined in step B5 that there is a buffer writing execution request. If so, data writing is performed (step B6). Step B
If it is determined in step 4 that the buffer is not full, and if it is determined in step B5 that there is no buffer write execution request, it is determined whether reception of all write request data has been completed (step B7). If it is determined in step B7 that the reception of all the write data has not been completed, the process returns to step B4 and the subsequent processing is executed again.
If it is determined that the reception has been completed, step B6
The end of the data writing process executed in step (1) is monitored (step B8), and when it is determined that the data writing process is ended, the data writing is ended.
【0030】このように、本発明の実施の形態による光
ディスク記録再生装置では、図2、図3に示すように、
データ書き込み処理時、直前のデータ読み込み処理にお
いてバッファリングしたデータを状況により消去しない
ことにより、データ書き込み処理後にこのバッファエリ
アに格納されたデータに対する読み込み要求があった場
合、目的セクタに対するサーチ処理及びバッファリング
処理等に要する時間の短縮が実現できる。As described above, in the optical disk recording / reproducing apparatus according to the embodiment of the present invention, as shown in FIGS.
During data write processing, the buffered data in the immediately preceding data read processing is not erased depending on the situation, so that when a read request for data stored in this buffer area is made after data write processing, search processing and buffering for the target sector are performed. The time required for ring processing and the like can be reduced.
【0031】[0031]
【発明の効果】以上説明したように、本発明の光ディス
ク記録再生装置によれば、データの読み込み命令と書き
込み命令が交互にかつ連続したアドレスに対し短いセク
タ単位で繰り返し要求されているなどの処理効率が特に
低下する場合でも、データバッファをデータ読み込み処
理とデータ書き込み処理で効率良く分割して利用するた
め、データの読み込み処理に要する時間を短縮させるこ
とができ、データ書き込み後のデータ読み込み処理を効
率的に行うことができる。As described above, according to the optical disk recording / reproducing apparatus of the present invention, it is possible to perform a processing such that a data read command and a write command are alternately and repeatedly requested in a short sector unit for continuous addresses. Even when the efficiency is particularly low, the data buffer is efficiently divided and used for the data reading process and the data writing process, so that the time required for the data reading process can be reduced, and the data reading process after the data writing is performed. It can be done efficiently.
【図1】本発明に係る光ディスク記録再生装置の一実施
形態を示す概略構成図である。FIG. 1 is a schematic configuration diagram showing an embodiment of an optical disk recording / reproducing apparatus according to the present invention.
【図2】本発明に係るデータ読み込み処理制御を説明す
るためのフローチャートである。FIG. 2 is a flowchart illustrating data read processing control according to the present invention.
【図3】本発明に係るデータ書き込み処理制御を説明す
るためのフローチャートである。FIG. 3 is a flowchart illustrating data write processing control according to the present invention.
【図4】従来の光ディスク記録再生装置の一例を示す概
略構成図である。FIG. 4 is a schematic configuration diagram showing an example of a conventional optical disk recording / reproducing apparatus.
【図5】従来のデータ読み込み処理制御を説明するため
のフローチャートである。FIG. 5 is a flowchart for explaining conventional data read processing control.
【図6】従来のデータ書き込み処理制御を説明するため
のフローチャートである。FIG. 6 is a flowchart for explaining conventional data write processing control.
1 光ディスク記録再生装置 2 光ディスク 3 ディスクモータ 4 サーボ回路 5 ピックアップ 6 データデコーダ 7 ホストI/F 8 CPU 9 電源 10 データバッファ 21 光ディスク記録再生装置 22 CPU DESCRIPTION OF SYMBOLS 1 Optical disk recording / reproducing apparatus 2 Optical disk 3 Disk motor 4 Servo circuit 5 Pickup 6 Data decoder 7 Host I / F 8 CPU 9 Power supply 10 Data buffer 21 Optical disk recording / reproducing apparatus 22 CPU
Claims (7)
込み処理手段とを有し、データ書き込み処理時のエンコ
ード処理とデータ読み込み処理時のデコード処理に同一
のデータバッファを使用する光ディスク記録再生装置に
おいて、データ読み込み処理とデータ書き込み処理の連
続状態を判別する手段を設けて、この判別結果に応じ
て、該データバッファを分割して使用するように構成し
たことを特徴とする光ディスク記録再生装置。1. An optical disk recording / reproducing apparatus comprising a data reading processing means and a data writing processing means, wherein the same data buffer is used for encoding processing at the time of data writing processing and decoding processing at the time of data reading processing. An optical disk recording / reproducing apparatus, comprising means for determining a continuous state of a reading process and a data writing process, and dividing and using the data buffer according to a result of the determination.
生装置において、上記データ読み込み処理とデータ書き
込み処理の連続状態を判別する手段が、データ読み込み
処理を実行するに際して該実行しようとするデータ読み
込み処理の直前にデータ書き込み処理が実行されていた
か否かを判別し、データ書き込み処理が実行されていた
場合に、該実行しようとする読み込み要求データのアド
レスが前回に行った読み込み処理データのアドレスから
連続しているかどうかを判別することを特徴とする光デ
ィスク記録再生装置。2. An optical disk recording / reproducing apparatus according to claim 1, wherein said means for judging a continuous state of said data read processing and data write processing is a data read processing to be executed when said data read processing is executed. It is determined whether or not the data write processing has been executed immediately before, and if the data write processing has been executed, the address of the read request data to be executed is consecutive from the address of the previous read processing data. An optical disc recording / reproducing apparatus for determining whether or not the optical disc is being played.
生装置において、前記データ読み込み処理とデータ書き
込み処理の連続状態を判別する手段が、実行しようとす
るデータ読み込み処理の直前にデータ書き込み処理が実
行されており、かつ、該実行しようとする読み込み要求
データのアドレスが前回に行った読み込み処理データの
アドレスから連続していると判別した場合に、以後に行
うデータ書き込み処理においてバッファクリアを禁止す
ることを特徴とする光ディスク記録再生装置。3. The optical disk recording / reproducing apparatus according to claim 2, wherein said means for judging a continuous state of the data reading process and the data writing process executes the data writing process immediately before the data reading process to be executed. If it is determined that the address of the read request data to be executed is continuous from the address of the previous read processing data, the buffer clear is prohibited in the subsequent data write processing. An optical disk recording / reproducing apparatus characterized by the above-mentioned.
生装置において、前記データ読み込み処理とデータ書き
込み処理の連続状態を判別する手段が、データ書き込み
処理を行うに際して前記バッファクリアが禁止されてい
るか否かを判別し、禁止されている場合に前記データバ
ッファを分割して使用することを特徴とする光ディスク
記録再生装置。4. The optical disk recording / reproducing apparatus according to claim 3, wherein said means for judging a continuous state of said data reading process and said data writing process is configured to determine whether or not said buffer clear is prohibited when performing said data writing process. An optical disk recording / reproducing apparatus characterized in that the data buffer is divided and used when prohibited.
生装置において、前記データバッファを分割して使用す
る場合に、データバッファ内の読み込み処理に使用した
データの格納サイズをチェックし、該サイズに応じて書
き込み処理データのデータバッファの使用量を決定する
ことを特徴とする光ディスク記録再生装置。5. The optical disk recording / reproducing apparatus according to claim 4, wherein when the data buffer is divided and used, a storage size of data used for a reading process in the data buffer is checked, and the size is determined. An optical disc recording / reproducing apparatus characterized in that a usage amount of a data buffer for write processing data is determined in accordance therewith.
生装置において、データバッファ内の読み込み処理に使
用したデータの格納サイズが全バッファサイズの1/2
以下である場合は、書き込みデータ処理に使用するバッ
ファサイズを読み込みデータ格納エリアを除いたサイズ
に縮小して使用することを特徴とする光ディスク記録再
生装置。6. The optical disk recording / reproducing apparatus according to claim 5, wherein the storage size of data used for reading processing in the data buffer is 1 / of the total buffer size.
In the following cases, an optical disk recording / reproducing apparatus characterized in that a buffer size used for write data processing is reduced to a size excluding a read data storage area and used.
生装置において、データバッファ内の読み込み処理に使
用したデータの格納サイズが全バッファサイズの1/2
以上である場合には、書き込みデータ処理に使用するバ
ッファサイズを全バッファサイズの1/2に縮小して処
理することを特徴とする光ディスク記録再生装置。7. The optical disk recording / reproducing apparatus according to claim 5, wherein a storage size of data used for reading processing in the data buffer is の of a total buffer size.
In the above case, an optical disk recording / reproducing apparatus characterized in that a buffer size used for write data processing is reduced to half of the total buffer size for processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001088003A JP3541814B2 (en) | 2001-03-26 | 2001-03-26 | Optical disk recording and playback device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001088003A JP3541814B2 (en) | 2001-03-26 | 2001-03-26 | Optical disk recording and playback device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002288928A true JP2002288928A (en) | 2002-10-04 |
| JP3541814B2 JP3541814B2 (en) | 2004-07-14 |
Family
ID=18943161
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001088003A Expired - Fee Related JP3541814B2 (en) | 2001-03-26 | 2001-03-26 | Optical disk recording and playback device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3541814B2 (en) |
-
2001
- 2001-03-26 JP JP2001088003A patent/JP3541814B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP3541814B2 (en) | 2004-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7003689B2 (en) | Disk storage apparatus for audio visual data and retry method employed therein upon occurrence of sector error | |
| US6523142B1 (en) | Apparatus and method of performing in a disk drive commands issued from a host system | |
| US20050105885A1 (en) | Method for variably controlling data read speed in optical disc drive | |
| JPH10208401A (en) | Read / write control method for data section having defective sector | |
| JP2001216746A (en) | Disk storage device and retry control method | |
| US7085965B2 (en) | Apparatus and method for accessing a disk containing an alternate sector | |
| JPH10269027A (en) | Disk device and buffer management control method in the device | |
| US7613867B2 (en) | Information recording apparatus, information recording method and recording medium recording program | |
| US6836454B2 (en) | Method and apparatus for reading and writing information onto and from information recording disks | |
| JP4290678B2 (en) | Method and apparatus for copying / moving data of optical recording medium | |
| JP3541814B2 (en) | Optical disk recording and playback device | |
| JPH04111113A (en) | Hard disk emulator | |
| JP3192654B2 (en) | Disk writing device | |
| JPH05274089A (en) | Access control device for data recording / reproducing device | |
| JP3706120B2 (en) | Information recording / reproducing apparatus, information recording / reproducing method, and program | |
| JP2002093025A (en) | Magnetic disk device and data access method | |
| JP2002251821A (en) | Information recording / reproducing device | |
| JP3412498B2 (en) | Optical disc playback device | |
| JPH10106143A (en) | Optical disk recording and playback device | |
| JPH0963198A (en) | Disk device capable of processing head positioning and parameter setting in parallel and parameter setting method in the disk device | |
| JPH08286836A (en) | Information recording and reproducing device | |
| JP2005085410A (en) | Optical disc apparatus and control method thereof | |
| JPH08161748A (en) | Disk recording / reproducing system and data erasing control method | |
| JPH0695808A (en) | Magnetic disk device | |
| JP2001084712A (en) | Magnetic disk drive and error retry control method for the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040309 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040322 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080409 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090409 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100409 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |