JPS61104368A - Optical disc controller - Google Patents

Optical disc controller

Info

Publication number
JPS61104368A
JPS61104368A JP22240184A JP22240184A JPS61104368A JP S61104368 A JPS61104368 A JP S61104368A JP 22240184 A JP22240184 A JP 22240184A JP 22240184 A JP22240184 A JP 22240184A JP S61104368 A JPS61104368 A JP S61104368A
Authority
JP
Japan
Prior art keywords
sector
data
section
optical disk
optical disc
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
JP22240184A
Other languages
Japanese (ja)
Inventor
Minoru Mahara
真原 實
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP22240184A priority Critical patent/JPS61104368A/en
Publication of JPS61104368A publication Critical patent/JPS61104368A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Optical Recording Or Reproduction (AREA)

Abstract

PURPOSE:To obtain an optical disc controller where it is sufficient if the capacity of a buffer corresponds to the quantity of data written in one sector, by discriminating whether a sector is good or not when the write to this sector is terminated and writing data in and alternative sector if said sector is bad. CONSTITUTION:In accordance with the indication form a channel device 10, an optical disc controller 20 inputs one-sector components of write data from the channel device 10 to a buffer part 22 and stores it in the part 22. A control part 21 sends this data to an optical disc 30 through a data control part 23 and sends it to a data verifying part 24 also. The verifying part 24 discriminates whether the sector is good or not by comparison of a check code; and if the sector is defective, the data control part 23 writes the address of the defective sector and write data stored in the buffer in an alternative sector and writes a defective sector flag.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は光ディスク制御装置に関し、特に不良セクタを
検出して代替セクタへデータを書き込む光ディスク制御
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an optical disc control device, and more particularly to an optical disc control device that detects a bad sector and writes data to an alternative sector.

〔従来の技術〕[Conventional technology]

情報処理分野で使用されている光ディスク制御装置に〉
いては、データを複数個のセクタIC書き込んだ後で不
良セクタの判定を行なっている。従って不良セクタへ書
き込んだデータを代替セクタミニ つ再度書き込むためには、少くとも上記の複数個のセク
タに相当する容量金持つバッファに書き込みデータ金記
憶しておく必要がある。その几めのバッファの容量とし
て最大エトラ、りに書き込むデータ量に相当する大きさ
が必要である。
For optical disk control devices used in the information processing field>
In some cases, a defective sector is determined after data is written to a plurality of sector ICs. Therefore, in order to rewrite the data written to the defective sector into an alternative sector, it is necessary to store the write data in a buffer having a capacity corresponding to at least the above-mentioned plurality of sectors. The capacity of the buffer needs to be large enough to correspond to the amount of data to be written to the maximum buffer.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

本発明が解決しようとする問題点は、不良セクタに書き
込んだデータを代替セクタに再度書き込むために1トラ
、夕という長大なバッファを必要とすることにあり1本
発明の目的は、1セクタへの書き込み終了時にそのセク
タの良否を判定し、そのセクタが不良セクタであれば代
替セクタへの書込み金直ちに行なうことにエフ、バッフ
ァの容量が1セクタに書き込むデータ量に相当する大き
さで十分な光ディスク制御装置を提供することにある。
The problem to be solved by the present invention is that in order to rewrite the data written in a bad sector to an alternative sector, a large buffer of 1 tora or 2000 yen is required. When the write is completed, it is determined whether the sector is good or not, and if the sector is bad, the data is written to a replacement sector immediately.The buffer capacity should be large enough to correspond to the amount of data written to one sector. An object of the present invention is to provide an optical disc control device.

〔問題点を解決する之めの手段〕[Means for solving problems]

本発明の光ディスク制御装置は、 光ディスク装置の1セクタに!込みできるデータ量に相
当する容量を有し、チャネル装置から前記光ディスク装
置への書込みデータを入力して記憶するバッファ部と、 前記書込みデータまたは前記光ディスク装置からの3出
しデータを入力して誤り検出を行なうデータ検証部と、 前記バッファ部から前記書込みデータを入力して前記光
ディスク装置および前記データ検証部に送出し、または
前記光ディスク装置から前記読出しデータを入力して前
記データ検証部に送出するデータ制御部と、 前記光ディスク装置の1つのセクタへ前記書込みデータ
の書込みおよび読出しが終了し、前記セクタから読出し
たデータに前記データ検証部が誤りを検出したとき、前
記セクタを不良セクタと判定し、前記不良セクタが属す
るドブ、りの特定部分に設けられた代替セクタに、前記
不良セクタのセクタ・アドレスおよび前記バッファ部に
記憶している前記打込みデータとを書込み、前記不良セ
クタに不良セクタ・フラグに!込む手段とを有して構成
される。
The optical disc control device of the present invention can be applied to one sector of an optical disc device! a buffer section that has a capacity corresponding to the amount of data that can be written and that inputs and stores write data from the channel device to the optical disk device; and a buffer section that inputs the write data or 3 output data from the optical disk device and detects errors. a data verification section that inputs the write data from the buffer section and sends it to the optical disc device and the data verification section, or inputs the read data from the optical disc device and sends it to the data verification section. a control unit, when writing and reading of the write data to one sector of the optical disc device is completed and the data verification unit detects an error in the data read from the sector, determining the sector as a bad sector; The sector address of the bad sector and the write data stored in the buffer section are written to an alternative sector provided in a specific part of the groove to which the bad sector belongs, and a bad sector flag is set in the bad sector. To! and means for inserting.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は光ディスク装置の光ディスク上のトラックフォ
ーマ、トラ示し、1つのトラックと、その中の1つのセ
クタとのフォーマツトラ示す。
FIG. 1 shows a track former on an optical disk of an optical disk device, and shows a formatter for one track and one sector within the track former.

1つのトラ、りには、セクタのユーザ使用数に当るH+
1個のセクタ0,1.2.・・・・・・nからなるプラ
イマリセクタと、セクタO〜nの、中に不良セクタが出
几場合に代替する2個のセクタn+1゜n+2とからな
る代替セクタが存在する1、各セクタ内はギャップ10
01,1004.1006で仕切られる3つのブロック
を有し、第1番目のプロ、りは、セクタアドレスを書き
込むセクタアドレス部1002と、セクタアドレスに対
するチェ、クコードt、ttき込むチェ、クコード部1
003とから成るIDi!l5IOIOである。第2番
目のプロ、りは第3番目のプロ、りであるデータ部10
11に正しくデータが−書き込まれなかっ友ときにその
セクタが不良であることを表示する不良セクタフラグを
書き込む不良セクタフラグ部1005である。第3番目
のブロックは、不良セクタアドレスを書き込む不良セク
タアドレスl’1s1007!:、ユーザデータを書き
込むユーザデータ部1008と、不良セクタアドレス部
1007およびユーザデータ部1008のチェックコー
ドを書き込むチェ。
For one tiger, H+ corresponds to the number of users using the sector.
1 sector 0, 1.2. There is a primary sector consisting of n, and an alternative sector consisting of two sectors n+1 and n+2, which are substituted when a defective sector is found among sectors O to n. 1, within each sector. is gap 10
It has three blocks partitioned by 01, 1004, and 1006, and the first block has a sector address part 1002 in which a sector address is written, and a check, code part 1 in which a check code t and tt are written for the sector address.
IDi! consisting of 003! 15IOIO. The second professional, Ri, is the third professional, Ri, data department 10.
A bad sector flag unit 1005 writes a bad sector flag indicating that the sector is defective when data is not correctly written to the sector. The third block is the bad sector address l'1s1007! :, a user data section 1008 in which user data is written, and a check in which a check code for the defective sector address section 1007 and user data section 1008 is written.

クコード部1009とから成るデー7タ部1011であ
る。
This is a data section 1011 consisting of a code section 1009 and a code section 1009.

第2図は本発明の実施例における構成図を示す。FIG. 2 shows a configuration diagram of an embodiment of the present invention.

チャネル、装置10は光ディスク制御装置20の構成要
素であるバッファ部22に接続101にエフ接続される
。光ディスク制御装置20は、マイクロプログラム化さ
れた制御部21、データの流れを制御するデータ制御部
23、チェ、クコードのコード発生とコードチェックを
行うデータ検証部(以下ECC部と言う)24およびバ
ッファ部22から構成される。データ制御部23は接続
107にエフ光ディスク装置30と接続、される。
The channel device 10 is F-connected to a connection 101 to a buffer section 22 which is a component of an optical disk control device 20 . The optical disk control device 20 includes a microprogrammed control unit 21, a data control unit 23 that controls the flow of data, a data verification unit (hereinafter referred to as an ECC unit) 24 that generates and checks codes for checking and checking, and a buffer. It is composed of a section 22. The data control section 23 is connected to the F optical disc device 30 through the connection 107.

第3図は第1図に示すトラ、り7%、トのプライマリセ
クタに属するセクタ1と代替セクタに属するセクタ80
を表わし友ものである。1001から1009までは第
1図と同じ内容を示し、3001から3009まではセ
クタ80についてのもので、1001から1009まで
の番号の下1桁の同じものに対応する内容を示す。なお
第1図および第3図の中でID部1010,3010は
光ディスクにあらかじめ正しく書き込まれているものと
する。
Figure 3 shows sector 1 belonging to the primary sector and sector 80 belonging to the alternative sector of the number shown in Figure 1.
It represents a friend. 1001 to 1009 indicate the same contents as in FIG. 1, and 3001 to 3009 relate to sector 80, and indicate contents corresponding to the same last digit of the numbers 1001 to 1009. Note that in FIGS. 1 and 3, it is assumed that the ID sections 1010 and 3010 have been correctly written on the optical disc in advance.

次に本実施例における動作について説明する。Next, the operation in this embodiment will be explained.

先ずチャネル装ff1tloからセクタ1を開始セクタ
とする書き込み指示を受けると、光ディスク制御部R2
0はバッファ部22に1セクタ分の書き込みデータをチ
ャネル装置10から接続101にエフ入力して記憶する
。制御部21は、第3図に示す光ディスクのセクタ1の
ID部1010に位置付は全行い、位置付けが完了する
と不良セクタフラグ部1005t−スキッグし、データ
部1011の不良セクタアドレス部1007に書き込む
ためのセクタ1のセクタアドレスを接続103によフデ
ータ制御部23にセットする。同時に制御部21は接続
102.103にエフ、lセクタ分の書き込みデータを
バ、ファ部22から接続104t−経由してデータ制御
部23に転送し、さらにこの書き込みデータを接続10
7t”経由して光ディスク装置30へ送出する指示をす
る。書き込みデータは光ディスク装置30へ送られると
共にECC部24にも送られチェックコードの発生全行
う、光ディスク装置30において書き込みデータが正し
く記録されたかどうかをチェックするために、そのデー
タを読み出し、接続107にエフ光ディスク制御装置2
0に送り、接続106によ47ECC部24に送りコー
、ドチェ、りを行う、このコードチェ、りは読み出され
たセクタ1のデータ部1011の不良セクタアドレスと
ユーザデータに対してチェ、クコードの発生を行い、読
み出されたチェックコードとの比較によって行われる。
First, upon receiving a write instruction with sector 1 as the starting sector from the channel device ff1tlo, the optical disc control unit R2
0 inputs one sector worth of write data from the channel device 10 to the connection 101 and stores it in the buffer unit 22. The control unit 21 performs all positioning in the ID field 1010 of sector 1 of the optical disc shown in FIG. The sector address of sector 1 is set in the free data control section 23 via the connection 103. At the same time, the control unit 21 transfers the write data for sectors F and l to the connections 102 and 103 from the buffer unit 22 to the data control unit 23 via the connection 104t-, and further transfers this write data to the connection 10.
7t'' to the optical disk device 30.The written data is sent to the optical disk device 30 as well as to the ECC unit 24, and a check code is generated to check whether the written data was correctly recorded in the optical disk device 30. In order to check whether the
This code checker sends a code to the 47ECC unit 24 via connection 106 and performs a code check and write check on the bad sector address and user data in the data section 1011 of sector 1 that has been read. is generated and compared with the read check code.

この動作が終ると、ECC部24はそのチェ、り結果を
接続105にエフ制御部21に通知する。制御部21は
この結果を判定し、良の場合はそのセクタ1の書き込み
は完了したことになるので、セクタ2についての同様の
処理に移行する。
When this operation is completed, the ECC section 24 notifies the F control section 21 of the check result through the connection 105. The control unit 21 judges this result, and if it is good, it means that the writing of the sector 1 has been completed, and the process proceeds to the same process for the sector 2.

制御部21の判定が否の場合は1代替セクタであるセク
タ80にセクタ1め書き込みデータを書き込むためにセ
クタ80に前記位置付けを行い、位置付けが完了すると
制御部21はセクタ1を示すセクタアドレスを接続10
3によりデータ制御部23VrPセツトし、セクタ1に
対する書き込み時にバ、77部22に記憶されている書
き込みデータを送出する指示を接続102,103にエ
フバッファ部22.データ制御部23に与える。制御部
21は、代替セクタとなるセクタ80に対してもセクタ
lに対する書き込みと同様に、データ部3011への書
き込み終了時に光ディスク装置30からの読み出しデー
タによるECC部24でのチェ、り結果を判定し、良と
判定すれば不良となったセクタlに再位置付けを行い、
不良セクタフラグ部1005への書き込−Vt−行っ友
後、セクタ1のデータ部1011t−スキップし、セク
タ2に対する書き込み動作へ移行する。なお、先のセク
タ80の書き込み後、−このセクタも不良と判断された
場合は、セクタn+21ft:用いて同様に処理される
If the determination by the control unit 21 is negative, the above-mentioned positioning is performed in the sector 80 in order to write the first write data in the sector 80, which is the 1st alternative sector, and when the positioning is completed, the control unit 21 sets the sector address indicating the sector 1. connection 10
3 sets the data control unit 23VrP and sends an instruction to send the write data stored in the buffer 77 section 22 to the connections 102 and 103 when writing to sector 1. The data is given to the data control unit 23. The control unit 21 also determines the check result in the ECC unit 24 based on the read data from the optical disk device 30 when writing to the data section 3011 is completed in the same way as writing to the sector 1 for the sector 80 serving as an alternative sector. If it is determined to be good, it will be repositioned to the bad sector l,
After writing to the defective sector flag section 1005 - Vt - is completed, the data section 1011t of sector 1 is skipped, and the process shifts to the write operation for sector 2 . Note that after writing to the previous sector 80, if this sector is also determined to be defective, the same process is performed using sector n+21ft:.

以上の書き込み処理をチャネル装置10から指定された
セクタ数だけ行う。
The above write processing is performed for the number of sectors specified by the channel device 10.

先に例示した光ディスクへの書き込みが行われたデータ
を読み出す場合の動作t−次に説明する。
The operation when reading the data written on the optical disk exemplified above will be described next.

先ず、制御部21は光ディスク装置30に、セクタ1の
ID部101(l読み出させ、セクタアドレス部100
2のセクタアドレスをチャネル装置10から指定される
アドレスと比較してこれらが一致することにエフ位置付
けの完了を確認し、次に不良セクタフラグ部1005t
−読み出し、この不良セクタフラグ部1005がセクタ
1め不良を示していればセクタ1に対する位置付けと同
様にしてセクタ80に再位置付けを行い、その不良セフ
メツラグ部3005の不良セクタフラグを読み出し、こ
れがセクタ80の良を示していれば、先に不良であるこ
とが判明したセクタ1のセクタアドレス部1002とデ
ータ部3011の不良セクタアドレス部3007とを比
較し一致金とり、データ部3011の不良セクタアドレ
スとユーザデータとチェックコードを読み出し、ECC
部に転送させ、不良セクタアドレスとユーザデータに対
してチェ、クコード會発生させ、読み出したチェ、クコ
ードと比較させ、その結果を得て、誤り訂正もし、デー
タ部3011のユーザデータのみをチャネル装置10に
送出し、次のセクタ2以降に対する処理に移行する。
First, the control unit 21 causes the optical disc device 30 to read out the ID section 101 (l) of sector 1 and read out the sector address section 100.
The sector address of No. 2 is compared with the address specified by the channel device 10, and if they match, it is confirmed that the F positioning is completed, and then the bad sector flag section 1005t
- If the bad sector flag section 1005 indicates that sector 1 is defective, it is repositioned to sector 80 in the same way as the positioning for sector 1, and the bad sector flag of the defective sector flag section 3005 is read, and this indicates that the bad sector flag of sector 80 is good. If so, compare the sector address field 1002 of sector 1, which was previously found to be defective, with the defective sector address section 3007 of the data section 3011, find a match, and compare the defective sector address of the data section 3011 with the user data. and read the check code, ECC
3011, generates a check code for the bad sector address and user data, compares it with the read check code, obtains the result, performs error correction, and sends only the user data in the data section 3011 to the channel device. 10, and the process moves on to the next sector 2 and subsequent sectors.

〔発明の効果〕〔Effect of the invention〕

以上説明した工うに本発明に工れば、1セクタ分の記憶
容量を持つバッファ部を用いて不良セクタに対する代替
セクタの自動書き込みが可能となる。
If the present invention is implemented as described above, it becomes possible to automatically write a replacement sector to a defective sector using a buffer unit having a storage capacity of one sector.

【図面の簡単な説明】[Brief explanation of drawings]

第1図および第3図は光ディスク装置の周知のトラック
・フォーマットの説明図、第2図は本発明の一実施例を
示すブロック図である。 20・・・・・・光ディスク制御装置、21・・・・・
・制御部、22・・・・・バッファ部、23・・・・・
・データ制御部、24・・・・・・データ検証部、10
02.3002・・・・・・セクタ・アドレス部、10
05,3005・・・・・・不良セクタ・フラグ部。 10ρ5・・・・不良上7yフラグ4y茅 2WJ
1 and 3 are explanatory diagrams of a known track format of an optical disc device, and FIG. 2 is a block diagram showing an embodiment of the present invention. 20... Optical disc control device, 21...
・Control unit, 22...Buffer unit, 23...
・Data control unit, 24...Data verification unit, 10
02.3002...Sector address section, 10
05,3005...Bad sector flag section. 10ρ5...Defect upper 7y flag 4y Kaya 2WJ

Claims (1)

【特許請求の範囲】 光ディスク装置の1セクタに書込みできるデータ量に相
当する容量を有し、チャネル装置から前記光ディスク装
置への書込みデータを入力して記憶するバッファ部と、 前記書込みデータまたは前記光ディスク装置からの読出
しデータを入力して誤り検出を行なうデータ検証部と、 前記バッファ部から前記書込みデータを入力して前記光
ディスク装置および前記データ検証部に送出し、または
前記光ディスク装置から前記読出しデータを入力して前
記データ検証部に送出するデータ制御部と、 前記光ディスク装置の1つのセクタへ前記書込みデータ
の書込みおよび読出しが終了し、前記セクタから読出し
たデータに前記データ検証部が誤りを検出したとき、前
記セクタを不良セクタと判定し、前記不良セクタが属す
るトラックの特定部分に設けられた代替セクタに、前記
不良セクタのセクタ・アドレスおよび前記バッファ部に
記憶している前記書込みデータとを書込み、前記不良セ
クタに不良セクタ・フラグを書込む手段と を有することを特徴とする光ディスク制御装置。
[Scope of Claims] A buffer section having a capacity corresponding to the amount of data that can be written in one sector of an optical disk device, and inputting and storing write data from a channel device to the optical disk device; and the write data or the optical disk. a data verification section that inputs read data from the device and performs error detection; and a data verification section that inputs the write data from the buffer section and sends it to the optical disk device and the data verification section, or inputs the read data from the optical disk device. a data control unit that inputs the data and sends it to the data verification unit; writing and reading of the write data to one sector of the optical disk device is completed, and the data verification unit detects an error in the data read from the sector; When the sector is determined to be a bad sector, the sector address of the bad sector and the write data stored in the buffer section are written to an alternative sector provided in a specific part of the track to which the bad sector belongs. , means for writing a bad sector flag into the bad sector.
JP22240184A 1984-10-23 1984-10-23 Optical disc controller Pending JPS61104368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22240184A JPS61104368A (en) 1984-10-23 1984-10-23 Optical disc controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22240184A JPS61104368A (en) 1984-10-23 1984-10-23 Optical disc controller

Publications (1)

Publication Number Publication Date
JPS61104368A true JPS61104368A (en) 1986-05-22

Family

ID=16781792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22240184A Pending JPS61104368A (en) 1984-10-23 1984-10-23 Optical disc controller

Country Status (1)

Country Link
JP (1) JPS61104368A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6314391A (en) * 1986-07-07 1988-01-21 Matsushita Graphic Commun Syst Inc Memory medium copying method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6314391A (en) * 1986-07-07 1988-01-21 Matsushita Graphic Commun Syst Inc Memory medium copying method

Similar Documents

Publication Publication Date Title
US5265230A (en) Method and apparatus for determining sector status in a data storage device by writing a status of read-only, writable, or obliterated in an error recovery area of each sector
US5235585A (en) Reassigning defective sectors on a disk
US5471351A (en) Method and apparatus of verifying accurate writing through comparisons of written and read data
JPS63177219A (en) Data transfer
JPH03240821A (en) Information recording device
US7062682B2 (en) Data recorder and data recording method avoiding data loss due to data transfer error
JPS61104368A (en) Optical disc controller
JPS59113509A (en) Disc processing device
US7409599B2 (en) Method of verifying defect management area information of optical disc upon initialization without certification and test apparatus for performing the same
JPS59177705A (en) Data recording system
JPH02278572A (en) Alternative block processing system
JPS5928246A (en) Optical disk processor
JPS6344364A (en) Optical disk controller
JPH0235663A (en) Alternate processing system for magneto-optical disk device
JP2776558B2 (en) Bad sector replacement method for disk drive.
JPH02236865A (en) Information recording and reproducing device
KR0150144B1 (en) Automatic control method of disk recording error
JPS58139262A (en) Defective sector controlling method by retrieval information
JPH0158580B2 (en)
JPS60181918A (en) Data managing system
JPH0240169A (en) Alternate processing method for disk device
JPS6282422A (en) Magnetic disc controller
JPS58105434A (en) Controlling system of storage device
JPH01277373A (en) Optical disk control device
JPS62192976A (en) Disk recording and inspecting system