JPH02213928A - Optical disk controller - Google Patents

Optical disk controller

Info

Publication number
JPH02213928A
JPH02213928A JP3479189A JP3479189A JPH02213928A JP H02213928 A JPH02213928 A JP H02213928A JP 3479189 A JP3479189 A JP 3479189A JP 3479189 A JP3479189 A JP 3479189A JP H02213928 A JPH02213928 A JP H02213928A
Authority
JP
Japan
Prior art keywords
optical disk
data
processing
disk controller
command
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
JP3479189A
Other languages
Japanese (ja)
Inventor
Masayuki Ishiguro
雅之 石黒
Katsumi Ando
克美 安藤
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.)
Fujitsu VLSI Ltd
Fujitsu Ltd
Original Assignee
Fujitsu VLSI Ltd
Fujitsu Ltd
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 Fujitsu VLSI Ltd, Fujitsu Ltd filed Critical Fujitsu VLSI Ltd
Priority to JP3479189A priority Critical patent/JPH02213928A/en
Publication of JPH02213928A publication Critical patent/JPH02213928A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the processing speed in an optical disk controller by providing a parameter list storing means, a means which stores the commands given from an outside, and a means which carries out continuously plural types of processes to an optical disk by referencing to the plural parameters. CONSTITUTION:A parameter list storing means 29 can store the plural parameters to designate the process contents to an optical disk. A means 30 is added to store the commands given from outside together with a means 26 which carries out continuously the plural types of processes to the optical disk. A RAM 5 includes a parameter list area to store the details of contents of plural processes and a defect list area to store the information on the defective areas. Then the processes are continuously carried out based on the external commands while referencing to the parameter list area and the defect list area. Thus even the different types of processes can be carried out with no interruption since plural parameters are previously given. Then the processing speed in the optical disk controller is improved.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術        (第9〜11図)発明が解
決しようとする課題 課題を解決するだめの手段 作用 実施例 本発明の原理説明    (第1図) 本発明の一実施例    (第2〜8図)発明の効果 〔概要〕 光ティスフコントローラに関し、 異なる処理であっても処理を中断させることなく実行し
、処理速度を大幅に向上させることができ、処理内容詳
細情報の再利用を可能にした光デイスクコントローラを
提供することを目的とし、光ディスクに対する処理内容
を指定するパラメータを複数個記憶可能なパラメータリ
スト記憶手段29と、外部から与えられたコマンドを記
憶する手段30と、該コマンドに従って、前記複数のバ
ラメータを参照して光ディスクに対する複数種類の処理
を連続的に行う手段26とを具備するように構成する。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Prior Art (Figures 9 to 11) Problems to be Solved by the Invention Examples of Means and Actions for Solving the Problems Explanation of the Principles of the Invention (Fig. Fig. 1) An embodiment of the present invention (Figs. 2 to 8) Effects of the invention [Summary] Regarding the optical tisf controller, even if the processing is different, the processing can be executed without interruption, and the processing speed can be greatly improved. The purpose of the present invention is to provide an optical disk controller in which detailed information on processing contents can be reused. and a means 26 for sequentially performing a plurality of types of processing on the optical disc by referring to the plurality of parameters in accordance with the command.

〔産業上の利用分野〕[Industrial application field]

本発明は、光デイスクコントローラに係り、詳しくは、
処理方法の異なる処理を一括処理することのできる光デ
イスクコントローラに関する。
The present invention relates to an optical disk controller, and more specifically, the present invention relates to an optical disk controller.
The present invention relates to an optical disk controller that can collectively process processes using different processing methods.

光ディスクのビット誤り発生率は、磁気ディスクの2〜
3桁も多い10−’〜10−5であり、また、誤りの性
質も異なっているので新しい方式の設計が必要である。
The bit error rate of optical disks is 2 to 2 that of magnetic disks.
Since the numbers are 10-' to 10-5, which are three digits more, and the nature of the error is also different, a new method needs to be designed.

磁気ディスクではS/Nが悪いための読み誤りが多く、
もう−度再生を繰り返して誤りを回復するという手段が
有効である。これに対し、光ディスクは記録媒体上の欠
陥が誤りの主原因となっているので再・再生の手段は利
用されない。信号処理による誤り訂正と、記録直後の再
生で誤り状況をチエツクし、問題があれば別の場所に記
録する交替処理(または、記録直前に再生光ビームで媒
体の欠陥を調べ、欠陥が多すぎる場合は、記録する場所
を変える)などが併用される。
With magnetic disks, there are many reading errors due to poor S/N.
An effective method is to repeat the playback again to recover from the error. On the other hand, with optical discs, defects on the recording medium are the main cause of errors, so replaying means are not used. Error correction using signal processing, and replacement processing that checks the error situation during playback immediately after recording and records it in another location if there is a problem (or, just before recording, check the medium for defects with a playback light beam and find that there are too many defects. (in some cases, changing the recording location) is used in combination.

〔従来の技術〕[Conventional technology]

上述したように光ディスクは欠陥が多いから、通常光デ
ィスクには、連続してデータが書き込まれるユーザエリ
アの他にユーザエリアの中で欠陥があった場所の交代を
する交代エリアが設けられている。工場出荷段階で予め
欠陥が判明していればその欠陥部分(セクタ)はスキッ
プして一つづつセクタがずれるかたちとなる。また、使
用しているうちに新たな欠陥が発生すると、Write
 した後Verify (正しく書き込めたかどうかの
検証)したときにこのセクタが欠陥という判定が下され
た場合は当該セクタも不良セクタとなる。この場合は既
に他のセクタに書き込みが行われているからセクタをず
らす訳にはいかず、ユーザエリアの欠陥セクタを交代エ
リアの所定セクタに交代させる交代処理を行う。したが
って、データが現れる順番とデータの本来の順序とが必
ずしも一致しないことになるが、トラック上どこのセク
タが欠陥でその欠陥セクタの内容をどこに書き直したか
ということは欠陥情報として光ディスクの中に持ってお
り、制御する光デイスク制御装置は全てそれを分かって
いる。一般的に、交代処理が入る単位はユーザエリア2
56セクタに対して交代エリアが16セクタのものが多
い。すなわち、1周1トラツク17セクタとじ16トラ
ツクを1グループとすると、1グループの中には16)
ラックX17セクタで272セクタが存在することにな
り、そのうちの256セクタをユーザエリアとして使用
し、残りの16セクタを交代エリアとして使用する。交
代エリアはユーザエリアにエラーがない場合には全く使
用しない。そして、どこが欠陥でそれをどこにとばした
かという情報はマツプ情報として後述する所定のマツプ
に集中的に書かれており、光ディスクを光デイスク装置
にロードしたときには直ちにそのマツプ情報を読みに行
き、光デイスク制御装置の中で蓄えている。
As mentioned above, optical discs have many defects, so optical discs are usually provided with a user area in which data is continuously written, as well as a replacement area in which defective locations in the user area are replaced. If a defect is known beforehand at the factory shipment stage, the defective portion (sector) will be skipped and the sectors will be shifted one by one. Also, if a new defect occurs during use, the Write
If this sector is determined to be defective when it is verified (verified to see if it was written correctly) after that, the sector also becomes a defective sector. In this case, since writing has already been performed in another sector, it is not possible to shift the sector, and a replacement process is performed to replace the defective sector in the user area with a predetermined sector in the replacement area. Therefore, the order in which the data appears does not necessarily match the original order of the data, but the information on which sectors on the track are defective and where the contents of the defective sectors have been rewritten is stored in the optical disc as defect information. All the controlling optical disk control devices know this. Generally, the unit in which replacement processing is performed is the user area 2.
In many cases, the replacement area is 16 sectors compared to 56 sectors. In other words, if one group consists of 1 track and 17 sectors per round and 16 tracks, there are 16) in one group.
There are 272 sectors in rack X17 sectors, of which 256 sectors are used as a user area and the remaining 16 sectors are used as an alternate area. The replacement area is not used at all if there are no errors in the user area. Information about where the defect was and where it was skipped is written as map information in a predetermined map, which will be described later.When an optical disk is loaded into an optical disk device, the map information is immediately read and It is stored in the control device.

光ディスクからデータを読み出す際には、まず、11]
にマツプ情報が入っているセクタを全部読んできてそれ
を、−旦、マイクロプロセッサがいつでもアクセスでき
るメモリの中に入れておく。マツプには最初にずれた欠
陥情報だけを記憶しておくプライマリマツプと使ってい
るうちに悪くなりどこで交代したかということを記憶す
るGrow thマツプの2種類があり、プライマリマ
ツプは後述する第10図(b)に示すようにどこが悪い
かを示すディフェクト(欠陥)アドレスだけを記憶して
おり、Growthマツプはディフェクトアドレスに加
えてどこで交代しているかを示す交代アドレスの2つの
情報を記憶している。何れにしてもマツプ上で欠陥であ
ると指摘された箇所は一連の処理の中でスキップする必
要があり、その上で交代する必要があれば(具体的には
、Growthマツプに登録されている欠陥セクタがあ
れば)その交代された場所を処理して抜けてしまってい
るデータのところを埋めなければならない。
When reading data from an optical disc, first, 11]
It reads all the sectors that contain map information and stores them in memory that can be accessed by the microprocessor at any time. There are two types of maps: the primary map, which stores only defect information that initially deviated, and the grow map, which stores information about defects that deteriorate during use and where they were replaced. As shown in Figure (b), only the defect address that indicates what is wrong is stored, and the Growth map stores two pieces of information: the defect address and the replacement address that shows where the replacement is. There is. In any case, it is necessary to skip the parts that are pointed out as defects on the map in the series of processing, and if it is necessary to replace them (specifically, If there is a defective sector, the replaced location must be processed to fill in the missing data.

第9図は光デイスク上のセクタを直線的に表した図であ
り、1グループにおけるユーザエリアと交代エリアのセ
クタを示している。第9図■中P0−PI3はセクタの
物理アドレスを示す。光ディスクでは同図に示すように
、何セクタかを1つのグループとして扱い(同図の例で
は20セクタ)、1グループ内をユーザエリアと交代エ
リアに分けている。データは通常、ユーザエリアにのみ
書かれる。しかし、ユーザエリアに欠陥(ディフェクト
)があった場合は、交代エリアを使用する。また、同図
■はユーザエリアに何も書かれていない状態からデータ
の書き込みを行った例である。ここで、LO−Li2は
データの論理アドレスである。
FIG. 9 is a diagram linearly representing sectors on an optical disk, showing sectors in the user area and replacement area in one group. P0 to PI3 in FIG. 9 indicate the physical addresses of sectors. As shown in the figure, on an optical disc, a number of sectors are treated as one group (20 sectors in the example in the figure), and one group is divided into a user area and a replacement area. Data is normally written only to the user area. However, if there is a defect in the user area, a replacement area is used. In addition, (2) in the same figure is an example in which data is written from a state where nothing is written in the user area. Here, LO-Li2 is a logical address of data.

この例は、セクタP5がディフェクトセクタであること
が予めわかっていたため、セクタP5をスキップして以
降のデータを1セクタずつスリップ(ずらす)させた例
である。さらに、同図■は■の後に、LO〜L7のデー
タを更新したときに、セクタP7が新たにディフェクト
セクタになってしまった場合の例である(LO’〜L7
’は更新後のデータを示す)。この場合、セクタP9〜
P16は更新しないのでデータをスリップさせることは
できない。そのため、セクタP7に書くはずのデータL
6’を交代エリアのセクタP17へ書き込んでいる。
In this example, since it was known in advance that sector P5 is a defective sector, sector P5 is skipped and subsequent data is slipped (shifted) one sector at a time. Furthermore, ■ in the same figure is an example where sector P7 becomes a new defective sector when the data in LO to L7 is updated after ■ (LO' to L7).
' indicates updated data). In this case, sectors P9~
Since P16 is not updated, data cannot be slipped. Therefore, data L that should be written to sector P7
6' is written to sector P17 in the replacement area.

第9図で説明したように、光ディスクではディフェクト
セクタがあったとき、データスリップまたは交代処理に
よってリカバリしなければならない、そのために、ディ
フェクトセクタを管理するマツプを持っており、マツプ
には第10図(b)(C)に示すようにデータスリップ
の対象となるセクタを示すプライマリマツプと交代処理
の対象となるセクタを示すGrowthマツプの2種類
がある。
As explained in Figure 9, when there is a defective sector on an optical disk, it must be recovered by data slip or replacement processing.For this purpose, a map is provided to manage the defect sector, and the map includes a map as shown in Figure 10. As shown in (b) and (c), there are two types of maps: a primary map indicating sectors subject to data slip and a growth map indicating sectors subject to replacement processing.

プライマリマツプはディフェクトセクタの物理アドレス
(第9図の例ではP5)を示す、Growthマツプは
ディフェクトセクタの物理アドレス(第9図の例ではP
7)と交代セクタ(第9図の例ではPI3)を示す。な
お、第10図(a)は物理アドレスと論理アドレスとの
対応を示し、同図(d)は論理アドレスLnのデータを
記憶するデータバッファブロックアドレスを示している
The primary map shows the physical address of the defective sector (P5 in the example of FIG. 9), and the growth map shows the physical address of the defective sector (P5 in the example of FIG. 9).
7) and a replacement sector (PI3 in the example of FIG. 9). Note that FIG. 10(a) shows the correspondence between physical addresses and logical addresses, and FIG. 10(d) shows the data buffer block address for storing data at the logical address Ln.

第10図に示す状況において、従来の光ディスク制1l
LsIを用いて、データバッファ内のデータを光ディス
クヘーrite L/た後、Verify (光ディス
クからRead してチエツクする検証)を行う場合の
ホストMPUの処理フローを第11図に示す。第11図
はWriteおよびVerifyの処理を行うためのプ
ログラムを示すフローチャートであり、図中5TEPn
(n−1,2,・・・・・・)はプログラムの各ステッ
プを示している。プログラムがスタートすると、まず、
5TEP 1でセクタPO〜P4の一括処理を指定する
とともに、Writeコマンドを発行し、5TEP 2
でコマンド実行が終了したか否かを判別する。コマンド
実行が終了したときは5TEP 3でセクタP6の処理
を指定するとともに、Wr i teコマンドを発行し
、5TEP 4でコマンド実行が終了したか否かを判別
する。コマンド実行が終了したときは5TEP 5でセ
クタP8〜P16の一括処理をIh定するとともに、W
riteコマンドを発行し、5TEP 6でコマンド実
行が終了したか否かを判別する。コマンド実行が終了し
たときは5TEP’/でセクタP17の処理を指定する
とともに、Writeコマンドを発行し、5TEP8で
コマンド実行が終了したか否かを判別し、コマンド実行
が終了したときは一連の−rite処理が終了したと判
断して5TEP 9以下のVerify処理に移行する
。ここで、セクタPr7の−riteコマンド発行時お
よび各Ver f f yコマンド発行時にホス1−M
PUの処理時間が長いと回転待ちが発生することになる
In the situation shown in Figure 10, the conventional optical disc system 1l
FIG. 11 shows the processing flow of the host MPU when performing verification (verification by reading and checking from the optical disc) after data in the data buffer is read from the optical disc using LsI. FIG. 11 is a flowchart showing a program for performing Write and Verify processing, and in the figure, 5TEPn
(n-1, 2,...) indicates each step of the program. When the program starts, first
5TEP 1 specifies batch processing of sectors PO to P4, issues a Write command, and 5TEP 2
Determine whether command execution has finished. When the command execution is completed, the processing of the sector P6 is specified in 5TEP 3, a Write command is issued, and it is determined in 5TEP 4 whether the command execution is completed. When the command execution is completed, 5TEP sets the batch processing of sectors P8 to P16 at 5, and also sets W.
A rite command is issued, and in 5TEP 6 it is determined whether the command execution has ended. When the command execution is finished, 5TEP'/ specifies the process for sector P17, and a Write command is issued, and 5TEP8 determines whether the command execution has finished, and when the command execution is finished, a series of - It is determined that the rite process has ended and the process moves to the Verify process of 5TEP 9 or less. Here, when issuing the -rite command for sector Pr7 and when issuing each Ver f f y command, the host 1-M
If the processing time of the PU is long, a rotation wait will occur.

5TEP 9ではセクタpo−P4の一括処理を指定す
るとともに、Verifyコマンドを発行し、5TEP
IOでコマンド実行が終了したか否かを判別する。コマ
ンド実行が終了したときは5TEPIIでセクタP6の
処理を指定するとともに、Verifyコマンドを発行
し、5TEP12でコマンド実行が終了したか否かを判
別する。コマンド実行が終了したときは5TEP13で
セクタP8〜P16の一括処理を指定するとともに、V
erifyコマンドを発行し、5TEP14でコマンド
実行が終了したか否かを判別する。コマンド、実行が終
了したときはSTI!P15でセクタP17の処理を指
定するとともに、Verifyコマンドを発行し、5T
EP16でコマンド実行が終了したときはWriteお
よびVerify処理が終了したと判断して今回の処理
を終える。
5TEP 9 specifies batch processing of sectors po-P4, issues a Verify command, and 5TEP
Determine whether command execution is completed using IO. When the command execution is completed, the processing of sector P6 is specified in 5TEPII, a Verify command is issued, and it is determined in 5TEP12 whether or not the command execution is completed. When command execution is finished, specify batch processing of sectors P8 to P16 in 5TEP13, and
The erify command is issued, and it is determined in 5TEP14 whether or not the command execution has ended. When command/execution is finished, STI! P15 specifies the process for sector P17, issues a Verify command, and
When the command execution ends at EP16, it is determined that the Write and Verify processing has ended, and the current processing ends.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、このような従来の光デイスクコントロー
ラにあっては、MPUから光デイスクコントローラLS
Iに対して命令(コマンド)とパラメータを処理単位毎
に逐次与えて実行させる構成となっていたため、処理方
法が異なる処理を実行する場合にはMPUが前の処理終
了を待って新たなコマンド、パラメータを与えなければ
ならず、処理が中断してしまうという問題点があった。
However, in such a conventional optical disk controller, the optical disk controller LS is
Since the configuration was such that instructions (commands) and parameters were sequentially given to I for each processing unit and executed, when a process with a different processing method was to be executed, the MPU waited for the previous process to finish and then issued a new command. There was a problem that parameters had to be given, which caused processing to be interrupted.

また、光デイスクコントローラ自身は古いコマンド、パ
ラメータを記憶しないため、パラメータの再利用できず
、毎回MPUが指示しなければならないから面倒であり
効率化が図れない。
Furthermore, since the optical disk controller itself does not store old commands and parameters, the parameters cannot be reused, and the MPU has to give instructions each time, which is troublesome and does not improve efficiency.

例えば、従来の光デイスクコントローラLSIではユー
ザエリアの連続処理はできるものの、その後続けて交代
エリアの処理を行うことはできない、また、欠陥領域の
情報を持たないから欠陥セクタをスキップすることがで
きず、欠陥セクタの1つ手前までの処理をまず1つのコ
マンドとしてもらい、その後該欠陥セクタをとばして次
のところから新たなコマンドをもらって処理を行うこと
になる。同じように、欠陥があればそこで一旦処理を打
ち切って次のコマンドをもらうことになるため、ホスト
のプロセッサの処理(負荷)がその都度かかることにな
る。また、命令を記憶できても、その数は1つあるいは
2つと限られているから、−旦終了したという報告をホ
ストのプロセッサに直ちに報告する必要があり、ホスト
のプロセッサは直ちに次の命令を出さないとディスクは
回転しているから該当するセクタが過ぎてしまうことに
もなり、場合によっては1回転待ちが入ってしまうとい
う不具合があった。
For example, although conventional optical disk controller LSIs can process user areas continuously, they cannot continue to process replacement areas, and cannot skip defective sectors because they do not have information about defective areas. , the process up to one sector before the defective sector is first received as one command, and then the defective sector is skipped and a new command is received from the next point to perform the process. Similarly, if there is a defect, processing will be stopped and the next command will be received, which will increase the processing (load) on the host processor each time. Furthermore, even if instructions can be memorized, the number of instructions is limited to one or two, so it is necessary to immediately report that the instruction has been completed to the host processor, and the host processor can immediately execute the next instruction. If the disk is not removed, the corresponding sector will be overdue since the disk is rotating, and in some cases, there is a problem that a one-rotation wait may occur.

そこで本発明は、異なる処理であっても処理を中断させ
ることなく、処理速度を大幅に向上させることができ、
パラメータの再利用を可能にした光デイスクコントロー
ラを提供することを目的としている。
Therefore, the present invention can significantly improve the processing speed without interrupting the processing even if the processing is different.
The purpose of this invention is to provide an optical disk controller that enables parameter reuse.

〔課題を解決するための手段〕[Means to solve the problem]

本発明による光デイスクコントローラは上記目的達成の
ため、光ディスクに対する処理内容を指定するパラメー
タを複数個記憶可能なパラメータリスト記憶手段29と
、外部から与えられたコマンドを記憶する手段30と、
該コマンドに従って、前記複数のパラメータを参照して
光ディスクに対する複数種類の処理を連続的に行う手段
26とを具備するように構成する。
In order to achieve the above object, the optical disk controller according to the present invention includes a parameter list storage means 29 capable of storing a plurality of parameters specifying processing contents for the optical disk, and means 30 for storing commands given from the outside.
and means 26 for sequentially performing a plurality of types of processing on the optical disc by referring to the plurality of parameters according to the command.

〔作用〕[Effect]

本発明では、複数の処理の処理内容詳細を記憶するパラ
メータリスト領域と、欠陥領域の情報を記憶するディフ
ェクトリスト領域と、を有するRAMが設けられ、外部
から入力されたコマンドに基づいてパラメータリスト領
域およびディフェクトリスト領域が参照され連続して処
理が実行される。
In the present invention, a RAM is provided which has a parameter list area for storing details of processing contents of a plurality of processes, and a defect list area for storing information on defective areas, and a RAM is provided that has a parameter list area for storing details of processing contents of a plurality of processes. and the defect list area are referred to and processing is executed continuously.

したがって、予め複数のパラメータが与えられるために
異なる処理であっても処理が中断することはない、また
、光デイスクコントローラ自身がパラメータリストを記
憶しているためパラメータの再利用が容易に実現する。
Therefore, since a plurality of parameters are given in advance, the processing will not be interrupted even if the processing is different, and since the optical disk controller itself stores the parameter list, it is easy to reuse the parameters.

〔実施例〕〔Example〕

以下、本発明を図面に基づいて説明する。 Hereinafter, the present invention will be explained based on the drawings.

胤lk皿 第1図は本発明の基本原理を説明するための図である。Seed plate FIG. 1 is a diagram for explaining the basic principle of the present invention.

第1図はその光デイスク制御装置の要部構成図であり、
この図において、1は光デイスクコントローラ、2に光
デイスクコントローラlを制御するためのホストMPU
、4はデータバッファであり、光デイスクコントローラ
1はコマンドのパラメータ壱複数個記憶するパラメータ
リスト格納用RAM5と、コマンドを起動するためのコ
マンドレジスタ6と、を含んで構成される。
FIG. 1 is a diagram showing the main parts of the optical disk control device.
In this figure, 1 is an optical disk controller, and 2 is a host MPU for controlling the optical disk controller l.
, 4 is a data buffer, and the optical disk controller 1 includes a parameter list storage RAM 5 for storing a plurality of command parameters, and a command register 6 for starting commands.

このような構成において、ホス)MPU2は、処理方法
毎に1セツトのパラメータを用意し、必要な数だけRA
M5へ書き込んだうえでコマンドを発行する。そして、
光ディスクコントローラ1はパラメータを参照して次々
と処理を実行する。
In such a configuration, the host MPU 2 prepares one set of parameters for each processing method and uses the RA as many times as necessary.
After writing to M5, issue the command. and,
The optical disk controller 1 refers to the parameters and executes processes one after another.

したがって、予め複数のパラメータを与えることができ
るため、処理が中断しない、また、光デイスクコントロ
ーラ自身がパラメータを記憶しているため、パラメータ
の再利用ができる。
Therefore, since a plurality of parameters can be given in advance, processing is not interrupted, and since the optical disk controller itself stores the parameters, the parameters can be reused.

二夫施■ 第2〜8図は本発明に係る光デイスクコントローラLS
Iの一実施例を示す図であり、本発明を情報処理等に用
いられる光デイスク制御装置内の光ディスク制?11L
SIに適用した例である。
Futaba ■ Figures 2 to 8 show the optical disk controller LS according to the present invention.
FIG. 1 is a diagram showing an embodiment of the present invention in an optical disk control device used for information processing, etc. 11L
This is an example applied to SI.

まず、構成を説明する。第2図は光デイスク制御装置の
全体構成例を示す図である。同図において、11は光デ
イスク制御装置、12は光デイスク制御装置11とイン
ターフェースS CS I (Small Con1−
puter System Interface)を介
して接続されたコンピュータ、13.14はインターフ
ェースModifiedE S D I (Enhan
ced Small Drfve Interface
)を介して接続された光デイスク装置であり、光デイス
ク制御装置11は光デイスク制御LSIとして光デイス
クコントローラLS115およびECCプロセッサ16
と、マイクロプロセッサ17と、DRAMからなるデー
タバッファ18と、5C3I制’4BLs119と、ド
ライバレシーバ20と、により構成され、2つのチップ
からなる光デイスクコントローラLS115、ECCプ
ロセッサ16は以下の処理を行う。
First, the configuration will be explained. FIG. 2 is a diagram showing an example of the overall configuration of the optical disk control device. In the figure, 11 is an optical disk control device, 12 is an interface between the optical disk control device 11 and the SCSI (Small Con1-
13.14 is an interface ModifiedE SDI (Enhan
ced Small Drfve Interface
), and the optical disk control device 11 includes an optical disk controller LS115 and an ECC processor 16 as an optical disk control LSI.
The optical disk controller LS115 and the ECC processor 16, which are composed of two chips, perform the following processing.

・光デイスク装置13.14への命令送信とステータス
受領 ・光ディスクへの書込みデータのフォーマット形成 ・光ディスクからの読出しデータのフォーマット解読と
エラー訂正 ・光デイスク装置13.14とデータバッファ18との
間のデータ転送 ・5C3I制?1LS119とデータバッファ18との
間のデータ転送 コンピュータ12と周辺装置をつなぐインターフェース
としてSC3Iが用いられ、5C3Iを通して光デイス
ク制御装置11にコンピュータシステムが接続される。
・Sending commands to the optical disk device 13.14 and receiving the status ・Formatting the data written to the optical disk ・Decoding the format of the data read from the optical disk and correcting errors ・Transferring between the optical disk device 13.14 and the data buffer 18 Data transfer/5C3I system? Data transfer between the 1LS 119 and the data buffer 18 The SC3I is used as an interface for connecting the computer 12 and peripheral devices, and the computer system is connected to the optical disk controller 11 through the 5C3I.

また、光デイスク制御装置11はESDIを介して光デ
イスク装置13.14に接続され、光デイスク制御装置
11が光ディスクを制御する。
Further, the optical disk control device 11 is connected to optical disk devices 13 and 14 via ESDI, and the optical disk control device 11 controls the optical disk.

第3.4図は光デイスク制御LSIのブロックダイヤグ
ラムであり、図中破線で囲んだ部分は光デイスク制御L
SIを示している。なお、光デイスクコントローラLS
115とECCプロセッサ16は必ずしも別のLSIで
ある必要はなく、図中破線で囲んだ部分を1つのLSI
とする態様であってもよい。第3図において、光デイス
クコントローラLS115はホストMPυ(マイクロプ
ロセッサ17)とMPUインターフェースを介してコマ
ンド等の送受信を行うMPUインターフェース回路21
と、5C3I制御1Ls119とDMAインターフェー
スを介してDMA転送の制御を行うDMA制御回路22
と、データバッファ18およびECCプロセッサ16と
データバッファ/ECCPインターフェースを介してデ
ータの送受信制御を行うデータバッファ/ECCPII
JJ!1回路23と、データのエンコードおよびデコー
ドを行うフォーマットエンコード/デコード回路24と
、ESDIl#制御回路25と、内部プロセッサ26と
、FIFOメモリ27.28と、により構成され、これ
らは所定の内部バスにより接続されている。ここで、M
PtJインターフェース回路21には、コマンドのパラ
メータおよびディフェクトセクタアドレスを複数個記憶
するパラメータリスト格納用RAM (以下、適宜P−
RAMと略称する)29およびコマンドレジスタ30が
内蔵されており、コマンドの起動はコマンドレジスタ3
0へのコマンドコード書き込みによって行われ、処理内
容の詳細は第6図に示すパラメータリストで指定される
。光デイスクコントローラLSI15はパラメータリス
ト格納用RAM29を256バイト内蔵しており、パラ
メータリスト格納用RAM29はホストMPU (マイ
クロプロセッサ17)から−r−ite /Readさ
れる。また、パラメータリスト格納用RAM29および
コマンドレジスタ30は必ずしもMPUインターフェー
ス回路21に内蔵される必要はなく、第4図に示すよう
にMPUインターフェース回路21と独立して設けられ
る態様であってもよい。
Figure 3.4 is a block diagram of the optical disk control LSI.
It shows SI. In addition, optical disk controller LS
115 and the ECC processor 16 do not necessarily have to be separate LSIs; the part surrounded by the broken line in the figure is one LSI.
It may also be an embodiment. In FIG. 3, the optical disk controller LS115 is connected to an MPU interface circuit 21 that sends and receives commands and the like to and from the host MPυ (microprocessor 17) via the MPU interface.
and a DMA control circuit 22 that controls DMA transfer via the 5C3I control 1Ls119 and the DMA interface.
and a data buffer/ECCP II that controls data transmission and reception via the data buffer 18 and ECC processor 16 and the data buffer/ECCP interface.
JJ! 1 circuit 23, a format encode/decode circuit 24 for encoding and decoding data, an ESDIl# control circuit 25, an internal processor 26, and FIFO memories 27 and 28, which are connected to each other by a predetermined internal bus. It is connected. Here, M
The PtJ interface circuit 21 has a parameter list storage RAM (hereinafter referred to as P-
(abbreviated as RAM) 29 and a command register 30 are built-in, and commands are activated using the command register 3.
The details of the processing are specified by the parameter list shown in FIG. 6. The optical disk controller LSI 15 has a built-in RAM 29 for storing a parameter list of 256 bytes, and the RAM 29 for storing a parameter list is read by -r-ite/from the host MPU (microprocessor 17). Furthermore, the parameter list storage RAM 29 and the command register 30 do not necessarily need to be built into the MPU interface circuit 21, and may be provided independently from the MPU interface circuit 21 as shown in FIG.

MPUインターフェース回路21はホストMPU(マイ
クロプロセッサ17)との間でコマンド・処理結果の送
受信を行うとともに、コマンドの実行に必要なパラメー
タを記憶するメモリを内蔵し、ホストMPUからデータ
バッファをRead/Writeする場合は、データは
本インターフェース回路21を経由して転送される。D
MA!lI41回路22はDMAバスマスタとして、D
MA転送のハンドシェーク制御、バイトカウント制御を
行うものである。
The MPU interface circuit 21 sends and receives commands and processing results to and from the host MPU (microprocessor 17), and has a built-in memory that stores parameters necessary for command execution, and allows the host MPU to read/write data buffers. If so, the data is transferred via this interface circuit 21. D
MA! The lI41 circuit 22 serves as a DMA bus master.
It performs handshake control and byte count control for MA transfer.

データバッファ/ECCPII11回路23はデータバ
フ77用DRAMのRead/Write 、リフレッ
シュの制御およびECCプロセッサ16との間のデータ
送受信制御を行うとともに、ホストMPU、DMA制御
回路22、フォーマットエンコード/デコード回路24
および内部プロセッサ26からのデータバッファ/EC
Cプロセッサアクセス要求のアービトレーションヲ行い
、データバッファバスの時分割使用を制御する。フォー
マットエンコード/デコード回路24は光ディスクへの
書込み時には、書込みデータのパラレル−シリアル変換
、RLL(2,7)コードへの変調を行い、5ync、
Re5yncなど同期パターンを付加して、ESDIへ
送出する。
The data buffer/ECCP II 11 circuit 23 controls read/write and refresh of the DRAM for the data buffer 77 and controls data transmission/reception with the ECC processor 16, and also controls the host MPU, DMA control circuit 22, and format encode/decode circuit 24.
and data buffer/EC from internal processor 26
Arbitrates C processor access requests and controls time-sharing use of the data buffer bus. When writing to an optical disk, the format encode/decode circuit 24 performs parallel-to-serial conversion of the write data and modulates it into an RLL (2,7) code.
A synchronization pattern such as Re5ync is added and sent to ESDI.

また、光ディスクからの読出し時には、データパターン
を解読して、同期パターンとデータとの分離、データの
復調、シリアル−パラレル変換を行う。ESD I制御
回路25はESDI制御信号の送出、受領用レジスタ回
路とインターフェース異常検出回路などを備え、光デイ
スク装置へのコマンド送信とステータスなどの受領の制
御は本回路25を経由して内部プロセッサ26が行う。
Furthermore, when reading from an optical disk, the data pattern is decoded, the synchronization pattern and the data are separated, the data is demodulated, and serial-to-parallel conversion is performed. The ESD I control circuit 25 includes a register circuit for sending and receiving ESDI control signals, an interface abnormality detection circuit, etc., and controls for sending commands to the optical disk device and receiving status information etc. are sent to the internal processor 26 via this circuit 25. will do.

内部プロセッサ26はホストMPUから与えられたコマ
ンドの解読、処理結果の報告を行うとともに複数セクタ
の連続処理および単一処理の制御をも行う。また、EC
Cプロセッサ16へのコマンド発行、処理結果の受領、
解析とデータバッファ内のデータのエラー訂正をも行う
The internal processor 26 decodes commands given from the host MPU, reports processing results, and also controls continuous processing of multiple sectors and single processing. Also, EC
Issuing commands to the C processor 16, receiving processing results,
It also analyzes and corrects errors in the data in the data buffer.

一方、ECCプロセッサ16は光デイスクコントローラ
LS115と光デイスクコントローラインターフェース
を介してコマンド等の送受信を行うデータ転送制御回路
31と、ECCおよびシンドロームを生成するECC/
シンドローム生成回路32と、ECC/シンドローム生
成回路32で生成したECC/シンドロームを一時的に
格納するECC/シンドロームバッファ33と、誤りの
位置・数値を検出する誤り位置・数値検出回路34と、
内部プロセッサ35と、FIFOメモリ36と、により
構成され、これらは所定の内部バスにより接続されてい
る。
On the other hand, the ECC processor 16 includes a data transfer control circuit 31 that sends and receives commands and the like via the optical disk controller LS115 and the optical disk controller interface, and an ECC/control circuit that generates ECC and syndromes.
A syndrome generation circuit 32, an ECC/syndrome buffer 33 that temporarily stores the ECC/syndrome generated by the ECC/syndrome generation circuit 32, and an error position/numeric value detection circuit 34 that detects the location/numeric value of an error.
It is composed of an internal processor 35 and a FIFO memory 36, which are connected by a predetermined internal bus.

データ転送制御回路31は光デイスクコントローラLS
115との間のコマンド・処理結果の送受信を行うとと
もにECC/シンドローム生成回路32と外部のデータ
バッファとの間のデータ転送制御を行う。ECC/シン
ドローム生成回路32は光ディスクの書き込み時にはC
RC(cyclic redundancychech
)、誤り訂正符号E CC(error correc
tioncode)生成を行い、光ディスクからの読み
出し時にはエラーシンドローム生成、CRCチエツクデ
ータ生成ヲ行う、ECC/シンドロームバッファ33は
ECC/シンドローム生成回路32で生成したECC/
シンドロームを一時的に格納するパンツアメモリであり
、2セクタ分のECCまたはシンドロームを格納するこ
とができる。誤り位置・数値検出回路34は光ディスク
から読出し時にシンドロームを基にして誤りの位置と誤
りパターンを検出する。内部プロセッサ35は光デイス
クコントローラLS115から与えられたコマンドの解
読、処理結果の報告を行うとともに、ECCプロセッサ
16内部での処理データの移動を行う。
The data transfer control circuit 31 is an optical disk controller LS
115, and controls data transfer between the ECC/syndrome generation circuit 32 and an external data buffer. The ECC/syndrome generation circuit 32 outputs C when writing to an optical disc.
RC (cyclic redundancy)
), error correction code E CC (error correct
The ECC/syndrome buffer 33 generates an error syndrome and CRC check data when reading from an optical disk.
This is a panzer memory that temporarily stores syndromes, and can store two sectors worth of ECC or syndromes. The error position/numeric value detection circuit 34 detects the error position and error pattern based on the syndrome when reading from the optical disc. The internal processor 35 decodes commands given from the optical disk controller LS115, reports processing results, and moves processed data within the ECC processor 16.

このような構成において、光ディスクに書くべきデータ
がコンピュータ12から5C3I制御LS119を経由
して光デイスクコントローラLS115に送られてくる
と、このデータを一旦データバソファ18に蓄えて必要
なデータ分を取り出して光デイスクコントローラLSF
15で加工しながら光デイスク装置13.14に書く。
In such a configuration, when data to be written on an optical disk is sent from the computer 12 to the optical disk controller LS115 via the 5C3I control LS119, this data is temporarily stored in the data bath sofa 18 and the necessary data is extracted. Optical disk controller LSF
While processing in step 15, write to optical disk device 13 and 14.

読み出すときには光デイスク装置13.14から読んだ
データを一旦データバッファ18に蓄えである程度デー
タがたまったところで一括して5C8I制御1Ls11
9に送る。光ディスクは非常に誤り率が高いので、EC
Cプロセッサ16は書き込むときに後々誤り訂正できる
ようにエラー・チエツク・コードECCを追加し、読み
出すときはそのECCを基にして誤りの位置およびどの
ように誤っているのかを検出してデータバッファ18上
でその誤りの部分を訂正する。第2図に示すように光デ
イスクコントローラLS115およびECCプロセッサ
16共そのチップ内には内部プロセッサ26.35を持
っており、内部は全てプログラム制御により動作する。
When reading data, the data read from the optical disk device 13, 14 is temporarily stored in the data buffer 18, and when a certain amount of data has accumulated, the data is transferred all at once to the 5C8I control 1Ls11.
Send to 9. Optical discs have a very high error rate, so EC
When writing, the C processor 16 adds an error check code ECC so that the error can be corrected later, and when reading, it detects the location and type of error based on the ECC, and writes it to the data buffer 18. Correct the incorrect part above. As shown in FIG. 2, both the optical disk controller LS 115 and the ECC processor 16 have internal processors 26 and 35 in their chips, and all internal operations are under program control.

また、光デイスクコントローラLS115およびECC
プロセッサ16をはじめとして光ディスク制御装置11
全体はマイクロプロセッサ17によりプログラム制御さ
れる。
In addition, optical disk controller LS115 and ECC
Optical disk control device 11 including processor 16
The whole is program controlled by a microprocessor 17.

そのため、マイクロプロセッサ17との間で命令あるい
は処理結果を通知するものとしてMPUインターフェー
ス回路21が設けられており、内部プロセッサ26はM
PUインターフェース回路21から命令をもらうと該命
令を解読して、例えばデータバフファ/ECCPII御
回路23を動作させたりあるいはECCプロセッサ16
を起動したりする。また、ECCプロセッサ16は光デ
イスクコントローラLS115の指令により動作すると
ともに、ECCプロセッサ16はデータバッファ/EC
CP制御回路23とデータバッファ18とをつなぐバス
上で転送されるデータを傍受してそのデータに基づいて
ECCを生成したり、読み出しのときにはその誤り位置
・数値を求めるためのシンドロームを生成する。
Therefore, an MPU interface circuit 21 is provided to communicate commands or processing results with the microprocessor 17, and the internal processor 26 communicates with the MPU interface circuit 21.
When a command is received from the PU interface circuit 21, the command is decoded to operate the data buffer/ECCP II control circuit 23 or the ECC processor 16.
or start. Further, the ECC processor 16 operates according to instructions from the optical disk controller LS115, and the ECC processor 16 operates as a data buffer/EC processor.
It intercepts the data transferred on the bus connecting the CP control circuit 23 and the data buffer 18 and generates an ECC based on the data, and generates a syndrome for determining the error position and numerical value when reading.

上記光デイスクコントローラLS115の内部プロセッ
サ26は具体的には第5図により示される。
The internal processor 26 of the optical disk controller LS115 is specifically shown in FIG.

第5図はエミュレーション機能を内蔵した内部プロセッ
サ26の橢成図であり、内部プロセッサ26の機能を中
心に説明する都合上、データバッファ/ECCP制御回
路23等の記載は省略している。この図において、内部
プロセッサ26は内部プロセッサ26が動作するための
プログラムを格納するプログラムROM41と、プログ
ラムアドレスによりアドレスを指定してプログラムRO
M41からプログラムを読み出し、その内容に従って動
作するシーケンス制′a(シーケンサ)・ALU演算器
42と、ホストMPU (マイクロプロセッサ17)か
らの書き込みによりノーマルモード/エミュレートモー
ドを切り替えるエミュートモード信号およびデバッグを
実行するためのボルト、シングルステップ信号を出力す
るデバッグ制御レジスタ43と、ホストMPUからデバ
ッグを行うために任意のプログラムコードが書き込まれ
るエミュレーションレジスタ44と、デバッグ制御レジ
スタ43からのエミュレートモードに応じてプログラム
ROM41の出力バスあるいはエミュレーションレジス
タ44のプログラムコード出力バスを切り替えるマルチ
プレクサMPX45と、を含んで構成されている。また
、46は内部バスであり、内部プロセッサ26は内部バ
ス46を介して各回路に命令を与えるとともに、各回路
からのデータを受は取る。例えば、内部プロセッサ26
はECC/シンドローム生成回路32を動作させ、また
、内部バス46を介してECC/シンドロームバンファ
33からデータを読み出す。
FIG. 5 is a schematic diagram of the internal processor 26 with a built-in emulation function, and the description of the data buffer/ECCP control circuit 23 and the like is omitted for the purpose of mainly explaining the functions of the internal processor 26. In this figure, the internal processor 26 has a program ROM 41 that stores programs for the internal processor 26 to operate, and a program ROM 41 that stores programs for the internal processor 26 to operate.
A sequence system 'a (sequencer)/ALU arithmetic unit 42 that reads a program from the M41 and operates according to its contents, and an emute mode signal and debugging that switch between normal mode and emulation mode by writing from the host MPU (microprocessor 17). , a debug control register 43 that outputs a single-step signal, an emulation register 44 into which any program code is written to perform debugging from the host MPU, and a debug control register 44 that outputs a single step signal. The multiplexer MPX45 switches between the output bus of the program ROM 41 and the program code output bus of the emulation register 44. Further, 46 is an internal bus, and the internal processor 26 gives instructions to each circuit via the internal bus 46, and receives and receives data from each circuit. For example, internal processor 26
operates the ECC/syndrome generation circuit 32 and reads data from the ECC/syndrome bumper 33 via the internal bus 46.

一般に、市販されているプロセッサにはプログラムデバ
ッグをするためにエミュレータと呼ばれるデバッグ装置
が用意されており、プロセッサの代りにそのエミュレー
タを動作させると普通はできない内部プロセッサの中の
レジスタの内容を見たり、あるいはプログラムの内容が
自由に書き替え可能になる。しかし、本発明に係る光デ
イスクコントローラLS115の内部プロセッサ26を
LSIチップの中に組み込んでしまう場合には、デバッ
グが一切できないということになってしまうがらそれを
避けるためにLSIの外から内部のプログラムを指定し
て動作させるような機能を付加している9本実施例では
その機能をエミュレーションモードと呼び、デバッグ制
御レジスタ43、エミュレーションレジスタ44および
マルチプレクサMPX45がその機能を持つ。
Generally, commercially available processors are equipped with a debugging device called an emulator for program debugging, and if you run the emulator instead of the processor, you can view the contents of the registers in the internal processor, which would normally not be possible. , or the contents of the program can be freely rewritten. However, if the internal processor 26 of the optical disk controller LS115 according to the present invention is incorporated into an LSI chip, it will not be possible to debug it at all. In this embodiment, this function is called an emulation mode, and the debug control register 43, emulation register 44, and multiplexer MPX45 have this function.

通常(ノーマルモード)は内部プロセッサ26はプログ
ラムROM41の内容に従って動作し、エミュレートモ
ードではエミュレーションレジスタ44の内容をプログ
ラムコードとして使用する。また、エミュレーションレ
ジスタ44への書き込みは上述したようにホストMPU
が行う。ノーマルモード/エミュレートモードの切り替
えはホストMPUからの指示を受けたデバッグ制御レジ
スタ43のエミュレートモード信号によりMPXが一方
のバスを断ち切ることによって行う。なお、本実施例で
はMPXを用いているが、これに限らず、例えばプログ
ラムROM41のθ番地にオール″0″を書いておき、
エミュレーションモードのときはこの番地を指定するこ
とによりプログラムROMの出力を断ち切る構成として
もよい。
Normally (normal mode) the internal processor 26 operates according to the contents of the program ROM 41, and in emulation mode the internal processor 26 uses the contents of the emulation register 44 as the program code. Furthermore, writing to the emulation register 44 is performed by the host MPU as described above.
will do. Switching between the normal mode and the emulation mode is performed by the MPX cutting off one bus in response to an emulation mode signal from the debug control register 43 in response to an instruction from the host MPU. Note that although MPX is used in this embodiment, the present invention is not limited to this. For example, all "0"s are written in the θ address of the program ROM 41,
In the emulation mode, the output of the program ROM may be cut off by specifying this address.

本実施例による回路では下記のデバッグ機能をサポート
する。
The circuit according to this embodiment supports the following debugging functions.

・ホルト−無条件にプロセッサを停止する。- Halt - Stops the processor unconditionally.

・アドレスコンベアストップ□指定アドレス通過時にプ
ロセッサを停止する。
・Address conveyor stop□Stops the processor when passing the specified address.

・アドレスコンベア割込み□指定アドレス通過時にプロ
セッサを停止させるのではなくホス)MPUに割込みを
発生する。
・Address conveyor interrupt □ Generates an interrupt to the MPU (host) instead of stopping the processor when the specified address passes.

・アドレスコンベアトリガ□指定アドレス通過時に外部
にトリガ信号を発生する。
・Address conveyor trigger □ Generates a trigger signal externally when passing a specified address.

・シングルステップ□プロセッサ停止状態のとき、プロ
グラムROM41の内容に従って1命令だけ実行する。
- Single step □ When the processor is stopped, only one instruction is executed according to the contents of the program ROM 41.

・エミュレート□外部のホストMPUから、内部プロセ
ッサ26にプログラムコードを与えて、任意のプログラ
ムコードを1ステツプづつ実行する。
・Emulate □ Give a program code to the internal processor 26 from the external host MPU and execute the arbitrary program code one step at a time.

以上述べたエミュレーション機能を具備することにより
次のような利点がある。
Providing the emulation function described above has the following advantages.

■一般に行われている実際のスピードで動きながらのエ
ミュレーションはできないものの、内部プロセッサ26
用のエミュレータを用意しなくとも、内部プロセッサ2
6のデバッグが可能になる。
■Although it is not possible to perform emulation while moving at the actual speed that is generally done, the internal processor 26
The internal processor 2 can be used without having to prepare an emulator for
6 debugging becomes possible.

■ホストMPUのプログラムに内部プロセッサのエミュ
レート用ルーチンを用意すればオンボード(製品レベル
)でも内部プロセッサ26のデバッグ、解析が可能にな
る。
- If a routine for emulating the internal processor is prepared in the host MPU program, it becomes possible to debug and analyze the internal processor 26 even on-board (product level).

次に、本発明のポイントであるパラメータリスト格納用
RAM29に内蔵されるパラメータリストおよびDef
ect (ディフェクト)リストのフォーマットを説明
する。第6図は−rite 、 Verify、 Re
adコマンドのハラメータリストフォーマットである。
Next, the parameter list and Def
The format of the ect (defect) list will be explained. Figure 6 shows -rite, Verify, Re
This is the harameter list format of the ad command.

本発明の基本的な考え方としてユーザーエリアは全部連
続して処理し、とばすところだけは予め教えてもらえば
よい、そのため、まず、光デイスクコントローラL、5
115にパラメータリスト格納用RAM29を設け、該
RAM29に第6図に示すようにパラメータリストおよ
び欠陥の位置を示すDefectリストを全て格納して
おく。ディスク1面あたりのプライマリディフェクトを
4000、Growthディフェクトを1000程度と
仮定すると、ユーザエリア256セクタ中に欠陥セクタ
が発生する確率は2〜3個と計算されることから、本実
施例ではパラメータリスト、Defectリストとも1
28バイトの容量としている。128バイト用意すると
、1セクタ分の情報が4バイトの場合は欠陥32個分を
記憶しておくことができることから、実際に連続処理を
するには十分な値と考えられる。パラメータリストおよ
びディフェクトリストの詳細は以下のようになっている
The basic idea of the present invention is that all user areas are processed continuously, and only the areas to be skipped need to be told in advance.
115 is provided with a RAM 29 for storing a parameter list, and the RAM 29 stores all parameter lists and a defect list indicating the positions of defects as shown in FIG. Assuming that there are about 4000 primary defects and about 1000 growth defects per disk, the probability that defective sectors will occur in 256 sectors of the user area is calculated to be 2 to 3. Therefore, in this embodiment, the parameter list, Defect list and 1
The capacity is 28 bytes. If 128 bytes are prepared, 32 defects can be stored if the information for one sector is 4 bytes, so this value is considered to be sufficient for actual continuous processing. Details of the parameter list and defect list are as follows.

定する。to be determined.

複数の連続するセクタの処理を 光デイスクコントローラLS115 が自動的に行う場合は、先頭セフ タとなる。また、Defectリストでは、欠陥セクタ
の物、理アドレスを 指定する。
When the optical disk controller LS115 automatically processes a plurality of consecutive sectors, it becomes the leading safeter. In addition, the defect list specifies the physical address of the defective sector.

・5ector Count・・・・・・処理セクタ数
を指定する。例えば、“1”のときはlセクタ処 理し、  255 ”であれば255セクタを処理する
。但し、“0”のとき は“256”が指定されたものとみな す。また、指定する値にはrDefe ctによるスキップセクタ」を含ま ない。
-5ector Count...Specifies the number of sectors to be processed. For example, if it is "1", l sectors will be processed, and if it is "255", 255 sectors will be processed. However, if it is "0", it is assumed that "256" has been specified. does not include "skip sectors due to rDefect".

・Buffer Address・・・・・・データバ
ッファアドレスを指定する。単位は512バイトであ る。例えば、ユーザエリアで読ん だデータは通常はシーケンシャル に入っているが、途中でGrotvthリストに登録さ
れている欠陥セクタ があった場合には、その部分だけ アドレスをとばす。そして、空け ・Flag D・・・・・・ ておいて次のセクタをどんどん入 れていき、交代エリアを読んだと きにその空いているところにデー タを埋める。5ector Countの指定が“1″
以外の場合は先頭アドレ スとなる。Vertfyコマンドでは指定する必要はな
い。
-Buffer Address...Specifies the data buffer address. The unit is 512 bytes. For example, data read in the user area is normally entered sequentially, but if there is a defective sector registered in the Grotvth list in the middle, the address of only that part is skipped. Then, leave a blank flag (Flag D) and fill in the next sector one by one, and when the replacement area is read, data is filled in the vacant area. 5ector Count specification is “1”
Otherwise, it will be the first address. There is no need to specify it with the Vertfy command.

ディフェクトリストを参照する 必要があるかないかを指定する。See defect list Specify whether it is necessary or not.

例えば、ユーザエリアを読ませた い場合でなおかつその間にディフ ェクトが含まれている場合にはデ ィフェクトリストに、まずその欠 陥の位置を書き込んでおく。その 上でこのパラメータリストに256 セクタ分の処理をしなさいという 指令を入れておく。その指令があ れば光ディスクのLSIはこれか らはじめてそのセクタをとばして 残りの正しいセクタを処理するこ とができる。11″のときにデイ フェクトリストを参照し、“0” のときにディフェクトリストを参 照しない。For example, I made the user area read In the event that the differential If the object is included, In the effect list, first of all, Write down the location of the hole. the 256 in this parameter list above It says to process a sector. Enter the instructions. That command is If so, is this the optical disk LSI? Skip that sector for the first time. processing the remaining correct sectors. I can do that. Day when 11" Refer to the fect list and set it to “0” Refer to the defect list when Doesn't light up.

・Identifier G・・・・・・ずれているだ
けのプライマリディフェクトなのか交代セクタの あるGrowthディフェクトなのかを区別する。“0
”のときにはプラ イマリディフェクトであり、′1” のときにはGrowthディフェクトである。プライマ
リディフェクトの ときは、当該セクタをスキップす るだけであるが、Groh thディフェクトのときは
当該セクタをスキ7 ブしたうえで、バッファアドレス を1セクタ分進める。
・Identifier G: Distinguishes whether it is a primary defect that is simply shifted or a growth defect that has an alternate sector. “0
When it is '1', it is a primary defect, and when it is '1', it is a growth defect. In the case of a primary defect, the sector is simply skipped, but in the case of a Groth defect, the sector is skipped and the buffer address is advanced by one sector.

・Identifier E= ’ 1″のときに、D
efectリストの終りであることを示す。
・When Identifier E='1'', D
Indicates the end of the effect list.

次に、作用を説明する。Next, the effect will be explained.

第7図を用いて光デイスクコントローラ15の針−1t
e 、 Read、 Verifyの各動作を説明する
Using FIG. 7, the needle of the optical disk controller 15 -1t
Each operation of e, Read, and Verify will be explained.

Write   7   (a ■SC3Iなどを通じて、ホストコンピュータから送ら
れてきたユーザデータを一旦データバッファへ蓄える。
Write 7 (a) Temporarily store the user data sent from the host computer through the SC3I etc. in the data buffer.

■データバッファに蓄えたユーザデータを1セクタ分読
み出し、変調してBSDIへ送出する。同時に、ECC
プロセッサでCRC,ECC生成を行う。
(1) Read one sector of user data stored in the data buffer, modulate it, and send it to the BSDI. At the same time, E.C.C.
The processor generates CRC and ECC.

■空ユーザデータの転送終了後、ECCプロセッサ16
からCRC,ECCを出力し、変調してESDIへ送出
する。
■After completing the transfer of empty user data, the ECC processor 16
The CRC and ECC are output from the terminal, modulated, and sent to the ESDI.

Read(7M  b  参 ■ESD Iを通じて光ディスクから送られてきた読み
出しデータを復調してユーザデータ部分だけをデータバ
ッファへ書き込む。同時に、ECCプロセッサ16でエ
ラーシンドロームを演算する。
Read data sent from the optical disk through Read (7Mb Reference ■ESD I) is demodulated and only the user data portion is written to the data buffer. At the same time, the ECC processor 16 calculates the error syndrome.

■ユーザデータ部分に続いてCRC,ECC部分を復調
して、ECCプロセッサへ入力し、エラーシンドローム
の演算を完結させる。
(2) Demodulating the CRC and ECC parts following the user data part and inputting them to the ECC processor to complete the error syndrome calculation.

■エラーシンドロームをともに、誤りの検出・訂正を行
う。誤り位置・数値の演算はECCプロセッサ16が行
い、データバッファ内のデータ訂正は光デイスクコント
ローラ15が行う。
■Detect and correct errors along with error syndromes. The ECC processor 16 calculates error positions and numerical values, and the optical disk controller 15 corrects data in the data buffer.

誤り訂正処理を行う間に、後続セクタの■■の処理を行
う。
While error correction processing is being performed, processing of ■■ of the subsequent sector is performed.

■訂正を終了したユーザデータをデータバッファ18か
ら読み出して、DMAインターフェースから送出する。
(2) Read the corrected user data from the data buffer 18 and send it out from the DMA interface.

Verif  (7(c) ■光ディスクから送られてきた読み出しデータを復調し
て、ECCプロセッサ16へ入力し、エラーシンドロー
ムの演算を行う。
Verif (7(c)) Demodulates the read data sent from the optical disk, inputs it to the ECC processor 16, and calculates the error syndrome.

■エラーシンドロームを基に、誤りの検出を行う、EC
Cプロセッサ16は誤りの数が許容範囲内が否かを判定
し、光デイスクコントローラ15へ通知する。誤り数判
定処理を行う間に、後続セクタの■の処理を行う。
■EC that detects errors based on error syndromes
The C processor 16 determines whether the number of errors is within an allowable range and notifies the optical disk controller 15 of the determination. While the error number determination process is being performed, the process (■) of the subsequent sector is performed.

第8図は第10図に示す状況において、データバソファ
18内のデータを光ディスクへWrite した後、V
erifyを行う場合のホストMPUの処理フローチャ
ートであり、第11図で示した従来例に対応するもので
ある。プログラムがスタフトとすると、まず、5TEP
21でパラメータリスト格納用RAM (P−RAM)
29に第8図(b)に示すようなりefectリストを
書き込み、5TEP22でP−RAM29に同図(b)
に示すようなパラメータリストを書き込む。
FIG. 8 shows that in the situation shown in FIG. 10, after writing the data in the data bus sofa 18 to the optical disk,
12 is a processing flowchart of the host MPU when performing erify, and corresponds to the conventional example shown in FIG. 11. If the program is Stuft, first, 5TEP
21 is RAM for storing parameter list (P-RAM)
29, write the effect list as shown in Figure 8(b), and write the effect list in P-RAM 29 at 5TEP22 as shown in Figure 8(b).
Write the parameter list as shown in .

ここで、パラメータ1はセクタPO−P16までの処理
を一括指示し、ディフェクトセクタはディフェクトリス
トで通知する。また、パラメータ2はセクタ17の処理
を指示する。次いで、5TEP23でパラメータ長とし
て“2”を指定(パラメータ長=2)するとともに、W
riteコマンドを発行し、5TEP24でコマンド実
行が終了したか否かを判別する。コマンド実行が終了し
たときには5TEP25でパラメータ長=2を指定する
とともに、Verifyコマンドを発行し、5TEP2
6でコマンド実行が終了したか否かを判別する。コマン
ド実行が終了したときには今回の処理を終える。
Here, parameter 1 collectively instructs processing of sectors PO to P16, and defective sectors are notified using a defect list. Further, parameter 2 instructs processing of sector 17. Next, in 5TEP23, specify “2” as the parameter length (parameter length = 2), and
A rite command is issued, and it is determined in 5TEP24 whether or not the command execution has ended. When the command execution is finished, specify the parameter length = 2 in 5TEP25, issue the Verify command, and return to 5TEP2.
In step 6, it is determined whether or not the command execution has ended. When the command execution is completed, the current processing ends.

したがって、本実施例ではパラメータ1の処理とパラメ
ータ2の処理は連続して行われるので、セクタPO〜P
17の処理は各々1回のコマンドで、かつ1回転で終了
する。また、Ver i f yコマンド用のパラメー
タ、ディフェクトリストはWr i teコマンド用と
同じでよいので、改めてP−RAM29に書く必要がな
い。その結果、ディフェクトがある度に一旦そこで処理
が途切れていた、あるいはユーザエリアから交代エリア
に行くときに処理が途切れていた従来装置に比べて処理
速度を格段に向上させることができる。
Therefore, in this embodiment, the processing of parameter 1 and the processing of parameter 2 are performed consecutively, so sectors PO to P
Each of the 17 processes is completed with one command and one rotation. Furthermore, since the parameters and defect list for the Verify command may be the same as those for the Write command, there is no need to write them to the P-RAM 29 anew. As a result, processing speed can be significantly improved compared to conventional devices in which processing is interrupted every time a defect occurs or processing is interrupted when going from the user area to the replacement area.

なお、本実施例ではパラメータリストとDefectリ
ストをパラメータリスト格納用RAM29に格納してい
るが、データバッファ18の一部に置くようにしてもよ
い。このようにすれば更に多くの処理を指定することが
できる。
In this embodiment, the parameter list and the defect list are stored in the parameter list storage RAM 29, but they may be stored in a part of the data buffer 18. In this way, more processes can be specified.

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

本発明によれば、異なる処理であっても処理を中断させ
ることなく、処理速度を大幅に向上させることができ、
かつパラメータの再利用を可能にすることができる。
According to the present invention, the processing speed can be significantly improved without interrupting the processing even if the processing is different.
In addition, it is possible to reuse parameters.

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

第1図は本発明の原理説明図、 第2〜8図は本発明に係る光デイスクコントローラの一
実施例を示す図であり、 第2図はその光デイスク制御装置の全体構成図、第3図
はその光デイスク制御LSIのブロック構成図、 第4図はその他の光ディスク制′aLS■のブロック構
成図、 第5図はその光デイスクコントローラLSIのエミュレ
ーション機能を内蔵した内部プロセッサの構成図、 第6図はそのパラメータリストフォーマットを示す図、 第7図はそのWrtte 5ReadSVerifyの
各動作を説明するための図、 第8図はその−riteおよびVerify処理を行う
ためのプログラムを示すフローチャート、第9〜11図
は従来の光デイスクコントローラを示す図であり、 第9図はその光デイスク上のセクタを直線的に表した図
、 第10図はそのセクタ、プライマリマツプ、Growt
hマツプおよびデータバッファブロックアドレスを示す
図、 第11図はその−riteおよびVerify処理を行
うためのプログラムを示すフローチャートである。 1・・・・・・光デイスクコントローラ、2・・・・・
・ホストMPU。 4・・・・・・データバッファ、 5・・・・・・パラメータリスト格納用RAM、6・・
・・・・コマンドレジスタ、 11・・・・・・光デイスク制御装置、12・・・・・
・コンピュータ、 13.14・・・・・・光デイスク装置、15・・・・
・・光デイスクコントローラLSI、16・・・・・・
ECCプロセッサ、 17・・・・・・マイクロプロセッサ、18・・・・・
・データバッファ、 19・・・・・・5C3I;1ll111LsI。 20・・・・・・ドライバレシーバ、 21・・・・・・MPUインターフェース回路、22・
・・・・・DMA制御回路、 23・・・・・・データバフファ/ECCP制御回路、
24・・・・・・フォーマットエンコード/デコード回
路、25・・・・・・ESDI制御回路、 26・・・・・・内部プロセッサ、 27.28.36・・・・・・FIF○メモリ、29・
・・・・・パラメータリスト格納用RAM (P−RA
M)、 30・・・・・・コマンドレジスタ、 31・・・・・・データ転送制御回路、32・・・・・
・ECC/シンドローム生成回路、33・・・・・・E
CC/シンドロームバッファ、34・・・・・・誤り位
置・数値検出回路、35・・・・・・内部プロセッサ、 41・・・・・・プログラムROM。 42・・・・・・シーケンス制御・ALU演算器、43
・・・・・・デバッグ制御レジスタ、44・・・・・・
エミエレーションレジスタ、45・・・・・・マルチプ
レクサ(MPX)、46・・・・・・内部バス。 5・15 第 図 2:ホストMPU 6:コマンドレジスタ 第5図
FIG. 1 is a diagram explaining the principle of the present invention, FIGS. 2 to 8 are diagrams showing an embodiment of the optical disk controller according to the present invention, FIG. 2 is an overall configuration diagram of the optical disk controller, and FIG. Figure 4 is a block diagram of the optical disc control LSI, Figure 4 is a block diagram of another optical disc controller 'aLS■, Figure 5 is a diagram of the internal processor with built-in emulation function of the optical disc controller LSI, FIG. 6 is a diagram showing the parameter list format, FIG. 7 is a diagram for explaining each operation of Wrtte 5ReadSVerify, FIG. 8 is a flowchart showing a program for performing the -rite and Verify processing, and FIG. Figure 11 is a diagram showing a conventional optical disk controller, Figure 9 is a diagram linearly representing sectors on the optical disk, and Figure 10 is a diagram showing the sectors, primary map, and grow.
FIG. 11 is a flowchart showing a program for performing the -rite and verify processing. 1... Optical disk controller, 2...
-Host MPU. 4...Data buffer, 5...RAM for storing parameter list, 6...
... Command register, 11 ... Optical disk control device, 12 ...
・Computer, 13.14... Optical disk device, 15...
...Optical disk controller LSI, 16...
ECC processor, 17...Microprocessor, 18...
・Data buffer, 19...5C3I; 1ll111LsI. 20...driver receiver, 21...MPU interface circuit, 22...
...DMA control circuit, 23... Data buffer/ECCP control circuit,
24...Format encode/decode circuit, 25...ESDI control circuit, 26...Internal processor, 27.28.36...FIF○ memory, 29・
...RAM for storing parameter list (P-RA
M), 30... Command register, 31... Data transfer control circuit, 32...
・ECC/syndrome generation circuit, 33...E
CC/syndrome buffer, 34...Error position/numeric value detection circuit, 35...Internal processor, 41...Program ROM. 42...Sequence control/ALU computing unit, 43
...Debug control register, 44...
Emission register, 45...multiplexer (MPX), 46...internal bus. 5.15 Figure 2: Host MPU 6: Command register Figure 5

Claims (1)

【特許請求の範囲】 光ディスクに対する処理内容を指定するパラメータを複
数個記憶可能なパラメータリスト記憶手段(29)と、 外部から与えられたコマンドを記憶する手段(30)と
、 該コマンドに従って、前記複数のパラメータを参照して
光ディスクに対する複数種類の処理を連続的に行う手段
(26)とを具備することを特徴とする光ディスクコン
トローラ。
[Scope of Claims] Parameter list storage means (29) capable of storing a plurality of parameters specifying processing contents for an optical disc; means (30) for storing a command given from the outside; 1. An optical disc controller comprising means (26) for sequentially performing a plurality of types of processing on an optical disc by referring to the parameters.
JP3479189A 1989-02-14 1989-02-14 Optical disk controller Pending JPH02213928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3479189A JPH02213928A (en) 1989-02-14 1989-02-14 Optical disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3479189A JPH02213928A (en) 1989-02-14 1989-02-14 Optical disk controller

Publications (1)

Publication Number Publication Date
JPH02213928A true JPH02213928A (en) 1990-08-27

Family

ID=12424096

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3479189A Pending JPH02213928A (en) 1989-02-14 1989-02-14 Optical disk controller

Country Status (1)

Country Link
JP (1) JPH02213928A (en)

Similar Documents

Publication Publication Date Title
US6332182B1 (en) Disk drive control without identification fields
US4914529A (en) Data disk defect handling using relocation ID fields
JPS6050669A (en) Data demodulation method
US5471351A (en) Method and apparatus of verifying accurate writing through comparisons of written and read data
JP2761289B2 (en) Disk track emulation method
JP2539417B2 (en) Information recording method
JPH02278572A (en) Alternative block processing system
JPH01178172A (en) Optical disk controller
JPS6117274A (en) Optical disk control device
JP2688018B2 (en) Disk controller
JPH04311218A (en) External storage controller
JPS58105434A (en) Storage device control method
JPS6050672A (en) Read control system of rotary memory
WO1998014939A1 (en) Headerless formatted disk drive
JPS5928246A (en) Optical disk processor
JPS59167144A (en) Information transmitting system
JPS608959A (en) Disk cache controlling method
JPS5953566B2 (en) channel device
JP2614130B2 (en) Magnetic tape unit
JPH0440794B2 (en)
JPS5928247A (en) Optical disk processor
JPH0337710A (en) Optical disk controller
JPH03122871A (en) Optical disk controller
JPH03164843A (en) Optical disk processing device
JPH03292526A (en) Magnetic disk processor