JP2003330798A - Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium - Google Patents

Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium

Info

Publication number
JP2003330798A
JP2003330798A JP2002142713A JP2002142713A JP2003330798A JP 2003330798 A JP2003330798 A JP 2003330798A JP 2002142713 A JP2002142713 A JP 2002142713A JP 2002142713 A JP2002142713 A JP 2002142713A JP 2003330798 A JP2003330798 A JP 2003330798A
Authority
JP
Japan
Prior art keywords
information
recording medium
data
written
cache
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
JP2002142713A
Other languages
Japanese (ja)
Inventor
Shuji Horikawa
修司 堀川
Tomohiro Koda
朋弘 甲田
Motoyuki Takai
基行 高井
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2002142713A priority Critical patent/JP2003330798A/en
Publication of JP2003330798A publication Critical patent/JP2003330798A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To improve the cache responsiveness by an efficient flash processing. <P>SOLUTION: According to the attribute of information stored in a cache memory (temporary storage means), the operation of reading information temporarily stored in the temporary storage means and writing it in the storage medium, that is, flash operation is controlled. Particularly, flash processing is started preferentially from data having a shorter flash processing time, or in order of continuous data, noncontinuous data, and blocking necessary data. Many data-writable empty spaces are formed in the cache memory in its early stages as much as possible by such a control to improve the cache responsiveness rate. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、記憶装置と、該記
憶装置を備えた記録及び/又は再生装置と、上記記憶装
置を含む情報記憶システムと、記憶方法と、上記記憶装
置又は記憶方法を実現するプログラムと、上記プログラ
ムを格納した記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device, a recording and / or reproducing device having the storage device, an information storage system including the storage device, a storage method, and the storage device or the storage method. The present invention relates to a program to be realized and a recording medium storing the program.

【0002】[0002]

【従来の技術】光ディスク、光磁気ディスクなどのメデ
ィアを用いるデータストレージ機器の開発が多様化して
おり、またデータストレージの目的たるデータも多様化
していることから、汎用的に各種データに対応できるデ
ータストレージ機器が各種提案されている。例えば光デ
ィスク、光磁気ディスクなどのメディアを用いる機器で
は、いわゆるAV(オーディオ・ビジュアル)機器と呼
ばれる、音楽データや映像データのストレージ(記録再
生)を行う機器や、パーソナルコンピュータ周辺機器と
してのストレージデバイスとしてパーソナルコンピュー
タで用いる各種データ(テキストデータ、オーディオデ
ータ、ビデオデータ、各種プログラムファイル、アプリ
ケーションデータ等)を保存する機器などが実用化され
ている。
2. Description of the Related Art The development of data storage devices that use media such as optical disks and magneto-optical disks has been diversified, and the data intended for data storage has also been diversified. Various storage devices have been proposed. For example, in a device using a medium such as an optical disk and a magneto-optical disk, it is used as a so-called AV (audio / visual) device for storing (recording / reproducing) music data and video data, and as a storage device as a personal computer peripheral device. A device for storing various data (text data, audio data, video data, various program files, application data, etc.) used in a personal computer has been put into practical use.

【0003】ここで近年、AV機器とパーソナルコンピ
ュータ周辺機器の両方に対応できるディスクメディアも
開発されており、記録再生装置としては、例えば単体で
はAV機として機能すると共にパーソナルコンピュータ
やネットワーク等と接続することで、PC周辺機器と同
様のストレージデバイスとしても機能できるようにする
ものも開発されている。
In recent years, a disk medium compatible with both AV equipment and personal computer peripheral equipment has been developed. As a recording / reproducing apparatus, for example, it functions as an AV machine by itself and is connected to a personal computer or a network. Therefore, a device that can function as a storage device similar to a PC peripheral device has also been developed.

【0004】なお説明上、音楽コンテンツ、映像コンテ
ンツ等の時間的連続性のあるデータを「AVデータ」と
呼び、ネットワークやパーソナルコンピュータ等で扱わ
れる制御データ、プログラムデータ、テキストデータ等
の各種データを「PCデータ」と呼ぶこととする。
For the sake of explanation, data having temporal continuity such as music contents and video contents is called "AV data", and various data such as control data, program data and text data handled by a network or a personal computer is called. It is called "PC data".

【0005】[0005]

【発明が解決しようとする課題】ところで、ネットワー
クやパーソナルコンピュータに接続できるAV機器を考
えるときには、汎用性,高速性が求められる。従来、A
V用ストレージ機器では,時間的に連続するAVデータ
の記録/再生が途切れなければ問題なく,それ以上の高
速化の追求よりは,消費電力その他の利便性の追求が求
められていた。しかしながら、機器をネットワークに接
続してデータをダウンロードするような利用方法が求め
られるようになると、PCデータのような各種設定を読
み書きしつつ,AVデータを数十倍〜数千倍の速さで読
み書きするような、高速性、汎用性が求められるものと
なる。
By the way, when considering an AV device that can be connected to a network or a personal computer, versatility and high speed are required. Conventionally, A
With V storage devices, there is no problem unless recording / playback of AV data that is temporally continuous is interrupted, and there has been a demand for power consumption and other convenience rather than for higher speeds. However, when there is a demand for a method of connecting a device to a network and downloading data, while reading and writing various settings such as PC data, AV data can be transmitted several tens to several thousand times faster. It requires high speed and versatility such as reading and writing.

【0006】ここで一般的なデータパスを考えると、デ
ィスク等の記録媒体に対して記録再生されるデータは、
多くの場合はキャッシュメモリを一時的に経由するよう
にされている。このキャッシュメモリについては、PC
データとAVデータでは利用目的が異なっていた。
Considering a general data path, the data recorded / reproduced on / from a recording medium such as a disc is
In many cases, the cache memory is temporarily passed. About this cache memory, PC
The purpose of use was different between data and AV data.

【0007】PCデータ用途のストレージデバイスにお
けるキャッシュの一般的な考え方としては、過去にディ
スク等から読み込んだデータをキャッシュに保持してお
き、ディスクからのデータ読出要求が発生した場合に
は、キャッシュ内のデータにヒットすることでストレー
ジデバイスでのディスクの読み書きを不要とすることで
要求に対する応答性を高速化する役割が大きい。そして
キャッシュヒットした時は、高速に応答できるが、キャ
ッシュヒットしなかったときはキャッシュヒットした場
合に比べて大幅に遅くなるため、キャッシュヒットの確
率を高くすることが機器の応答性向上に重要である。こ
のためにはキャッシュに確保するデータをできるだけ理
想的にランダムに散らすことでコリジョン発生を最小化
し、検索を高速化するハッシュアルゴリズムが用いられ
る。このハッシュアルゴリズムでは、結果としてキャッ
シュメモリ上のデータの断片化を促進してしまうが、要
求されたデータに対して所定のアルゴリズムでキャッシ
ュ上のアドレスが特定できるため、検索性がよいもので
ある。
The general idea of a cache in a storage device for PC data is that data read from a disk or the like in the past is held in the cache, and if a data read request from the disk occurs, the cache is stored. By hitting the above data, the read / write of the disk in the storage device becomes unnecessary, and the role of speeding up the response to the request is great. And when there is a cache hit, the response is fast, but when there is no cache hit, it is much slower than when there is a cache hit, so increasing the probability of a cache hit is important for improving the responsiveness of the device. is there. For this purpose, a hash algorithm that minimizes collisions and speeds up search by randomly distributing the data to be secured in the cache as ideally as possible is used. This hash algorithm, as a result, promotes fragmentation of the data in the cache memory, but the searchability is good because the address in the cache can be specified by the predetermined algorithm for the requested data.

【0008】一方、AVデータ用途の記録再生機器にお
けるキャッシュの一般的な考え方としては、できるだけ
先読みしてデータを溜め込んでおくことによって,スト
レージデバイスでの処理の遅れを吸収すること、及び、
モーター等の電源を落とすことで省電力を図るためのバ
ッファとしての役割が大きい。時系列的に連続するAV
データは、先読み妥当性の極めて高いデータがあらかじ
め分っているため、キャッシュの大部分を先読み用エリ
アとして使うことになる。またAVデータはPCデータ
に比べてデータサイズがが巨大で連続性が高いため、キ
ャッシュ領域を確保し続けるためにリングバッファ方式
を採用する場合が多い。そしてこのようなAVデータ用
途の場合は、上記のようにキャッシュ上でデータの断片
化が進むハッシュアルゴリズムは最適とはいえない。
On the other hand, the general idea of the cache in the recording / reproducing device for AV data is to prefetch as much as possible and store the data to absorb the delay of the processing in the storage device.
It plays a large role as a buffer for saving power by turning off the power source of the motor, etc. AV continuous in time series
Most of the cache is used as a read-ahead area because the data has a very high read-ahead validity. Further, since AV data has a larger data size and higher continuity than PC data, a ring buffer method is often adopted in order to keep a cache area. In the case of such AV data use, the hash algorithm in which the data fragmentation progresses on the cache as described above is not optimal.

【0009】また特に、記録媒体としてディスクを用い
たストレージデバイスを考えると、複数の読み書き処理
について、できるだけアドレスを連続にし、これを1回
の読み書きで処理することができれば、高速化,省電力
化を図ることができる。つまり、例えばスパイラル状に
形成されるディスク上のトラックに対して、連続した走
査(光ビームのトレース)により記録再生ができるよう
にすれば、頻繁なトラックジャンプやアクセス、ディス
ク回転待ち時間等を解消できるためである。しかしなが
ら上記ハッシュアルゴリズムによりキャッシュ上でデー
タが断片化することは、このようにアドレスを連続にし
て記録再生を行うことが困難になり、従ってAVデータ
を対象としてディスクに記録再生するという用途の場
合、ハッシュアルゴリズムは最適とはいえない。
Further, in particular, considering a storage device using a disk as a recording medium, if a plurality of read / write processes can be made to have consecutive addresses as much as possible and can be processed in one read / write operation, the speed and power consumption are reduced. Can be achieved. In other words, if tracks can be recorded and reproduced by continuous scanning (light beam tracing), for example, on a spirally formed track on a disk, frequent track jumps, access, disk rotation waiting time, etc. can be eliminated. Because you can. However, the fragmentation of data on the cache by the above hash algorithm makes it difficult to record / reproduce with continuous addresses in this way, and therefore, in the case of use for recording / reproducing AV data on a disc, The hash algorithm is not optimal.

【0010】このようにPCデータとAVデータのキャ
ッシュ目的の違いから、PCデータとAVデータの両方
に対応するストレージ機器を考えた場合、キャッシュ処
理が最適化しにくいという問題が生ずる。即ち、AVデ
ータの高速記録再生機能を実現しつつ、PCデータも効
率よく読み書きできるようにして、高速応答性、低消費
電力を実現することは困難であった。
As described above, due to the difference in the purpose of caching PC data and AV data, when a storage device that supports both PC data and AV data is considered, it is difficult to optimize cache processing. That is, it has been difficult to realize high-speed response and low power consumption by efficiently reading and writing PC data while realizing a high-speed recording / reproducing function of AV data.

【0011】また、キャッシュメモリに一時記憶したデ
ータを、ディスクに書き込むことを考えると、ディスク
に対する書込動作(例えばアクセス)や、書込データ単
位などの動作上の都合により、効率的な処理ができない
場合があるが、特にAVデータとPCデータの両方を考
慮した場合、効率的な処理を実現することが困難であ
る。
Considering that the data temporarily stored in the cache memory is to be written to the disk, efficient processing can be performed due to a write operation (for example, access) to the disk and an operation convenience such as a write data unit. Although it may not be possible, it is difficult to realize efficient processing, especially when considering both AV data and PC data.

【0012】[0012]

【課題を解決するための手段】そこで本発明では、ネッ
トワーク/パーソナルコンピュータに適応したストレー
ジ機器となるとともにAV機器としても機能する機器を
考慮し、AVデータの高速記録再生機能、PCデータの
効率性を確保し、高速応答性、低消費電力、さらには低
コストを実現するキャッシュ制御方式を提案したうえ
で、キャッシュ蓄積データをディスク等の記録媒体に書
き込む動作を効率化することを目的とする。
In view of the above, the present invention takes into consideration a storage device adapted to a network / personal computer and a device that also functions as an AV device, and has a high-speed AV data recording / reproducing function and PC data efficiency. It is an object of the present invention to provide a cache control method that ensures high speed response, low power consumption, and low cost, and also makes the operation of writing cache accumulated data into a recording medium such as a disk efficient.

【0013】本発明の記憶装置は、記録媒体から読み出
される情報及び/又は記録媒体に対して書き込む情報を
一時記憶する一時記憶手段と、上記一時記憶手段に一時
記憶される情報の属性を判別する属性判別手段と、上記
属性判別手段による判別結果に応じて、上記一時記憶手
段に一時記憶される情報を読み出すと共に上記記録媒体
に書き込むように制御する制御手段とを備える。また、
上記属性判別手段は、上記一時記憶手段内に一時記憶さ
れた情報について、上記記録媒体に連続して書き込まれ
る連続情報と、当該連続情報に比して上記記録媒体に非
連続で書き込まれる非連続情報とを判別し、上記制御手
段は、上記連続情報について、優先的に読み出して上記
記録媒体に書き込むように制御する。また、上記属性判
別手段は、上記一時記憶手段内に一時記憶された情報に
ついて、上記記録媒体に書き込むときにブロッキングを
要するブロッキング必要情報を判別し、上記制御手段
は、上記ブロッキング必要情報以外の情報について、優
先的に読み出して上記記録媒体に書き込むように制御す
る。この場合、上記制御手段は、上記ブロッキング必要
情報については、上記記録媒体から読み出された情報を
用いて所定の書込データ単位を形成するブロッキング処
理を実行させた上で、上記記録媒体に書き込むように制
御する。また、上記属性判別手段は、上記一時記憶手段
内に一時記憶された情報についてヒット状況を判別し、
上記制御手段は、上記ヒット状況を示す値が低い情報か
ら、優先的に読み出して上記記録媒体に書き込むように
制御する。
The storage device of the present invention discriminates the temporary storage means for temporarily storing the information read from the recording medium and / or the information to be written to the recording medium, and the attribute of the information temporarily stored in the temporary storage means. An attribute discriminating unit and a control unit for controlling the information stored in the temporary storage unit to be read out and written in the recording medium according to the discriminating result of the attribute discriminating unit. Also,
The attribute discriminating means is configured such that, regarding the information temporarily stored in the temporary storage means, continuous information continuously written in the recording medium, and discontinuously written in the recording medium discontinuously as compared with the continuous information. The control means controls to read the continuous information preferentially and write it to the recording medium. Further, the attribute determining means determines, for the information temporarily stored in the temporary storage means, blocking necessary information that requires blocking when writing to the recording medium, and the control means determines information other than the blocking necessary information. Is read out and written to the recording medium. In this case, the control means writes the necessary blocking information in the recording medium after performing a blocking process of forming a predetermined write data unit using the information read from the recording medium. To control. Further, the attribute determination means determines the hit status of the information temporarily stored in the temporary storage means,
The control means controls so that the information indicating the hit status having a low value is preferentially read and written in the recording medium.

【0014】本発明の記録及び/又は再生装置は、記録
媒体に対して情報の書込及び/又は読出を行う書込/読
出手段と、上記書込/読出手段によって記録媒体から読
み出される情報及び/又は上記書込/読出手段によって
記録媒体に対して書き込む情報を一時記憶する一時記憶
手段と、上記一時記憶手段に一時記憶される情報の属性
を判別する属性判別手段と、上記属性判別手段による判
別結果に応じて、上記一時記憶手段に一時記憶される情
報を読み出すと共に上記記録媒体に書き込むように制御
する制御手段とを備える。
The recording and / or reproducing apparatus of the present invention includes a writing / reading means for writing and / or reading information to / from a recording medium, and information and / or information read from the recording medium by the writing / reading means. And / or the temporary storage means for temporarily storing the information written to the recording medium by the writing / reading means, the attribute determination means for determining the attribute of the information temporarily stored in the temporary storage means, and the attribute determination means. And a control unit that controls the information temporarily stored in the temporary storage unit to be read and written in the recording medium according to the determination result.

【0015】本発明の、例えば記憶装置と情報処理装置
とから成るような情報記憶システムは、記録媒体から読
み出される情報及び/又は記録媒体に対して書き込む情
報を一時記憶する一時記憶手段と、上記一時記憶手段に
一時記憶される情報の属性を判別する属性判別手段と、
上記属性判別手段による判別結果に応じて、上記一時記
憶手段に一時記憶される情報を読み出すと共に上記記録
媒体に書き込むように制御する制御手段と、上記記録媒
体に対する情報の書込及び/又は読出のために、上記記
録媒体に対するアクセス位置を示すアドレスを、上記制
御手段に通知する書込/読出要求手段とを備える。
An information storage system according to the present invention, which comprises, for example, a storage device and an information processing device, is a temporary storage means for temporarily storing information read from a recording medium and / or information to be written to the recording medium, Attribute discriminating means for discriminating the attribute of information temporarily stored in the temporary storage means;
Control means for controlling the information stored in the temporary storage means to be read and written in the recording medium in accordance with the result of the determination by the attribute determining means, and for writing and / or reading the information in the recording medium. To this end, a writing / reading requesting means for notifying the control means of the address indicating the access position to the recording medium is provided.

【0016】本発明の記憶方法は、記録媒体から読み出
される情報及び/又は記録媒体に対して書き込む情報を
一時記憶手段に一時記憶した場合において、上記一時記
憶手段に一時記憶した情報の属性を判別し、上記属性の
判別結果に応じて、上記一時記憶手段に一時記憶される
情報を読み出すと共に上記記録媒体に書き込むように制
御する。
According to the storage method of the present invention, when the information read from the recording medium and / or the information to be written to the recording medium is temporarily stored in the temporary storage means, the attribute of the information temporarily stored in the temporary storage means is determined. Then, the information temporarily stored in the temporary storage means is read out and written in the recording medium according to the result of the discrimination of the attribute.

【0017】本発明のプログラムは、記録媒体から読み
出される情報及び/又は記録媒体に対して書き込む情報
を一時記憶手段に一時記憶した場合において、上記一時
記憶手段に一時記憶した情報の属性を判別し、上記属性
の判別結果に応じて、上記一時記憶手段に一時記憶され
る情報を読み出すと共に上記記録媒体に書き込むように
制御する処理を実行させるプログラムである。
The program of the present invention, when the information read from the recording medium and / or the information to be written to the recording medium is temporarily stored in the temporary storage means, determines the attribute of the information temporarily stored in the temporary storage means. The program is a program for executing a process of controlling to read the information temporarily stored in the temporary storage unit and write the information in the recording medium according to the result of the determination of the attribute.

【0018】本発明の記録媒体は、記録媒体から読み出
される情報及び/又は記録媒体に対して書き込む情報を
一時記憶手段に一時記憶した場合において、上記一時記
憶手段に一時記憶した情報の属性を判別し、上記属性の
判別結果に応じて、上記一時記憶手段に一時記憶される
情報を読み出すと共に上記記録媒体に書き込むように制
御する処理を実行させるプログラムを記録した記録媒体
である。
According to the recording medium of the present invention, when the information read from the recording medium and / or the information to be written to the recording medium is temporarily stored in the temporary storage means, the attribute of the information temporarily stored in the temporary storage means is determined. The recording medium stores a program for executing a process of controlling the information stored in the temporary storage unit to be read out and written in the recording medium according to the result of the determination of the attribute.

【0019】即ち本発明では、キャッシュメモリ(一時
記憶手段)に記憶された情報の属性に応じて、一時記憶
手段に一時記憶される情報を読み出すと共に上記記録媒
体に書き込む動作(フラッシュ動作)を制御する。特に
は、連続データなどフラッシュ処理時間が短いデータか
ら優先的にフラッシュ処理する。またヒット状況を示す
値が低いデータから優先的にフラッシュ処理する。これ
により、なるべく早い段階でキャッシュメモリ(一時記
憶手段)にデータ書込可能な空き領域が多くできるよう
にする。
That is, according to the present invention, the operation (flash operation) of reading the information temporarily stored in the temporary storage means and writing the information in the recording medium is controlled according to the attribute of the information stored in the cache memory (temporary storage means). To do. Particularly, the flash processing is preferentially performed from the data such as continuous data having a short flash processing time. In addition, the flash process is preferentially performed from the data having a low hit state value. As a result, it becomes possible to increase the free area in which data can be written in the cache memory (temporary storage means) at the earliest possible stage.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施の形態につい
て説明していく。説明は次の順序で行う。 1.記録再生装置の構成 2.ディスク及びストレージ部の構成 3.基本的なキャッシュ制御方式 4.ライト/リード動作 5.キャッシュ検索処理 6.フラッシュ処理例<1> 7.フラッシュ処理例<2>
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below. The description will be given in the following order. 1. 1. Configuration of recording / reproducing apparatus Configuration of disk and storage unit 3. Basic cache control method 4. Write / read operation 5. Cache search process 6. Flash processing example <1> 7. Flash processing example <2>

【0021】1.記録再生装置の構成 実施の形態としての記録再生装置は、一例として、磁界
変調方式でデータ記録が行われる光磁気ディスクである
ミニディスク(MD)方式のディスクに対する記録再生
装置とする。但し、既に普及している音楽用途のミニデ
ィスクのみではなく、より高密度記録を可能とし、コン
ピュータユースの各種データのストレージに利用できる
高密度ディスクについても対応可能な記録再生装置であ
る。
1. Configuration of Recording / Reproducing Apparatus The recording / reproducing apparatus as an embodiment is, for example, a recording / reproducing apparatus for a mini disk (MD) type disk which is a magneto-optical disk on which data is recorded by a magnetic field modulation method. However, the recording / reproducing apparatus is not limited to the mini-discs that are already in widespread use, but is also applicable to a high-density disc that enables higher-density recording and can be used for storage of various data for computer use.

【0022】図1により本例の記録再生装置の構成を説
明する。図1においては、本例の記録再生装置1が、例
えばパーソナルコンピュータ(或いはネットワーク)1
00として外部の機器との間でデータ通信可能な機器と
して示している。例えば記録再生装置1は、パーソナル
コンピュータ100とUSBケーブル等の伝送路101
で接続されることで、パーソナルコンピュータ100に
対する外部ストレージ機器として機能できる。また、パ
ーソナルコンピュータ100を介したり、或いは直接ネ
ットワークと接続できる機能を備えるなどしてネットワ
ーク接続されることで、音楽や各種データをダウンロー
ドし、記録再生装置1においてストレージ部2に装填さ
れたディスクに保存できるものともなる。
The configuration of the recording / reproducing apparatus of this example will be described with reference to FIG. In FIG. 1, a recording / reproducing apparatus 1 of this example is, for example, a personal computer (or network) 1
00 is shown as a device capable of data communication with an external device. For example, the recording / reproducing apparatus 1 includes a personal computer 100 and a transmission line 101 such as a USB cable.
By connecting with the personal computer 100, the personal computer 100 can function as an external storage device. Also, music or various data is downloaded via the personal computer 100 or by being connected to the network by having a function of directly connecting to the network, and the music and various data are downloaded to a disc loaded in the storage unit 2 in the recording / reproducing apparatus 1. It can also be saved.

【0023】一方、この記録再生装置1はパーソナルコ
ンピュータ100等に接続しなくとも、例えばオーディ
オ機器として機能する。例えば他のオーディオ機器等か
ら入力された音楽データをディスクに記録したり、ディ
スクに記録された音楽データ等を再生出力することがで
きる。即ち本例の記録再生装置1は、パーソナルコンピ
ュータ100等に接続されることで汎用的なデータスト
レージ機器として利用でき、かつ単体ではオーディオ記
録再生機器としても利用できる装置である。
On the other hand, the recording / reproducing apparatus 1 functions as an audio device, for example, without being connected to the personal computer 100 or the like. For example, music data input from another audio device or the like can be recorded on the disc, and music data recorded on the disc can be reproduced and output. That is, the recording / reproducing apparatus 1 of this example can be used as a general-purpose data storage device by being connected to the personal computer 100 or the like, and can also be used as an audio recording / reproducing device by itself.

【0024】記録再生装置1は、ストレージ部2、キャ
ッシュメモリ3、USBインターフェース4、入出力処
理部5、表示部6、操作部7、システムコントローラ
8、ROM9、RAM10、キャッシュ管理メモリ1
1、NV−RAM12を備える。
The recording / reproducing apparatus 1 includes a storage unit 2, a cache memory 3, a USB interface 4, an input / output processing unit 5, a display unit 6, an operation unit 7, a system controller 8, a ROM 9, a RAM 10, a cache management memory 1.
1, NV-RAM 12 is provided.

【0025】ストレージ部2は、装填されたディスクに
対する記録/再生を行う。本例で用いるいわゆるミニデ
ィスク方式のディスク及びそれに対応するストレージ部
2の構成については後述する。
The storage unit 2 performs recording / reproduction on the loaded disc. The so-called mini disk type disk used in this example and the configuration of the storage unit 2 corresponding thereto will be described later.

【0026】キャッシュメモリ3は、ストレージ部2で
ディスクに記録するデータ、或いはストレージ部2によ
ってディスクから読み出されたデータについてのバッフ
ァリングを行うキャッシュメモリである。例えばD−R
AM2より構成される。キャッシュメモリへのデータの
書込/読出は、システムコントローラ(CPU)8にお
いて起動されるタスクによって制御される。
The cache memory 3 is a cache memory for buffering the data recorded on the disk by the storage unit 2 or the data read from the disk by the storage unit 2. For example D-R
It is composed of AM2. Writing / reading of data to / from the cache memory is controlled by a task activated in the system controller (CPU) 8.

【0027】USBインターフェース4は、例えばパー
ソナルコンピュータ100とUSBケーブルとしての伝
送路101で接続された際の、データ伝送のための処理
を行う。入出力処理部5は、例えば記録再生装置1が単
体でオーディオ機器として機能する場合に記録再生デー
タの入出力のための処理を行う。
The USB interface 4 performs processing for data transmission when it is connected to the personal computer 100 via the transmission path 101 as a USB cable, for example. The input / output processing unit 5 performs processing for inputting / outputting recording / reproducing data when the recording / reproducing apparatus 1 functions as an audio device by itself, for example.

【0028】システムコントローラ8は、記録再生装置
1内の全体の制御を行うと共に、接続されたパーソナル
コンピュータ100との間の通信制御を行う。ROM9
にはシステムコントローラ8の動作プログラムや固定パ
ラメータ等が記憶される。RAM10はシステムコント
ローラ8によるワーク領域として用いられ、また各種必
要な情報の格納領域とされる。例えばストレージ部2に
よってディスクから読み出された各種管理情報や特殊情
報を記憶する。例えばP−TOCデータ、U−TOCデ
ータ、プレイリストデータ、FATデータ、ユニークI
D、ハッシュ値等を記憶する。P−TOCデータ、U−
TOCデータはミニディスクに記録されている音楽トラ
ック等の管理情報である。また後述もするが本例の記録
再生装置1が対応できるミニディスク方式に準拠した高
密度ディスクは、P−TOC、U−TOCによる管理形
式のうえに、FATファイルシステムを構築したもので
ある。またプレイリストは、高密度ディスクにおいてA
TRAC方式などによる音楽データ等のアドレス等を管
理する情報であって、FATシステム上の1つのファイ
ルとして記録されるものである。高密度ディスクが装填
された場合には、これらFATやプレイリストの情報も
読み込むことになる。ユニークID、ハッシュ値等はパ
ーソナルコンピュータ100等との間でのデータ伝送に
際しての認証処理や暗号化/復号に用いられる情報であ
る。
The system controller 8 controls the entire recording / reproducing apparatus 1 and controls communication with the connected personal computer 100. ROM9
The operation program of the system controller 8, fixed parameters, and the like are stored in. The RAM 10 is used as a work area by the system controller 8 and also as an area for storing various necessary information. For example, the storage unit 2 stores various management information and special information read from the disk. For example, P-TOC data, U-TOC data, playlist data, FAT data, Unique I
D, hash value, etc. are stored. P-TOC data, U-
The TOC data is management information such as music tracks recorded on the mini disc. Further, as will be described later, the high-density disc conforming to the mini-disc system, which the recording / reproducing apparatus 1 of the present example can support, is a management format by P-TOC and U-TOC, and a FAT file system is constructed. The playlist is A for high-density discs.
This is information for managing addresses and the like of music data in the TRAC system and is recorded as one file on the FAT system. When a high-density disc is loaded, the FAT and play list information is also read. The unique ID, hash value, and the like are information used for authentication processing and encryption / decryption during data transmission with the personal computer 100 or the like.

【0029】キャッシュ管理メモリ11は、例えばS−
RAMで構成され、キャッシュメモリ3の状態を管理す
る情報が格納される。システムコントローラ8はキャッ
シュ管理メモリ11を参照しながらデータキャッシュ処
理の制御を行う。キャッシュ管理メモリ11の情報につ
いては後述する。NV−RAM(不揮発性RAM)12
は、電源オフ時にも消失させないデータの格納領域とし
て用いられる。
The cache management memory 11 is, for example, S-
It is composed of a RAM and stores information for managing the state of the cache memory 3. The system controller 8 controls the data cache process while referring to the cache management memory 11. The information in the cache management memory 11 will be described later. NV-RAM (nonvolatile RAM) 12
Is used as a data storage area that is not lost even when the power is turned off.

【0030】表示部6は、システムコントローラ8の制
御に基づいて、ユーザーに対して提示すべき各種情報の
表示を行う。例えば動作状態、モード状態、楽曲等のデ
ータの名称情報、トラックナンバ、時間情報、その他の
情報表示を行う。操作部7には、ユーザーの操作のため
の各種操作子として、操作キーやジョグダイヤルなどが
形成される。ユーザーは記録・再生、データ通信のため
の所要の動作を操作部7を操作して指示する。システム
コントローラ8は操作部7によって入力された操作情報
に基づいて所定の制御処理を行う。
The display section 6 displays various information to be presented to the user under the control of the system controller 8. For example, operation status, mode status, name information of data such as music, track number, time information, and other information are displayed. Operation keys, a jog dial, and the like are formed on the operation unit 7 as various operators for user operations. The user operates the operation unit 7 to instruct necessary operations for recording / reproduction and data communication. The system controller 8 performs a predetermined control process based on the operation information input by the operation unit 7.

【0031】パーソナルコンピュータ100等が接続さ
れた際の、システムコントローラ8による制御は例えば
次のようになる。システムコントローラ8は、USBイ
ンターフェース4を介して接続されたパーソナルコンピ
ュータ100との間で通信可能とされ、書込要求、読出
要求等のコマンドの受信やステイタス情報その他の必要
情報の送信などを行う。システムコントローラ8は、例
えばディスクがストレージ部2に装填されることに応じ
て、ディスクからの管理情報等の読出をストレージ部2
に指示し、キャッシュメモリ3を介して取り込んでRA
M10に格納させる。P−TOC、U−TOCの管理情
報を読み込ませることで、システムコントローラ8はデ
ィスクのトラック記録状態を把握できる。またCATを
読み込ませることによりデータトラック内の高密度デー
タクラスタ構造を把握でき、パーソナルコンピュータ1
00からのデータトラックに対するアクセス要求に対応
できる状態となる。またユニークIDやハッシュ値によ
り、ディスク認証その他の処理を行ったり、或いはこれ
らの値をパーソナルコンピュータ100に送信して処理
させることができる。
The control by the system controller 8 when the personal computer 100 or the like is connected is as follows, for example. The system controller 8 is communicable with the personal computer 100 connected via the USB interface 4, and receives commands such as a write request and a read request and transmits status information and other necessary information. The system controller 8 reads the management information and the like from the disk when the disk is loaded in the storage section 2, for example.
To the RA and load it via the cache memory 3
Store in M10. By reading the management information of P-TOC and U-TOC, the system controller 8 can grasp the track recording state of the disc. Further, by reading the CAT, the high density data cluster structure in the data track can be grasped, and the personal computer 1
The access request from 00 to the data track is ready. Further, the unique ID or the hash value can be used to perform disk authentication or other processing, or to send these values to the personal computer 100 for processing.

【0032】パーソナルコンピュータ100からの或る
データの読出要求があった場合は、システムコントロー
ラ8はストレージ部2に、当該データの読出を実行させ
る。読み出されたデータはキャッシュメモリ3に書き込
まれる。但し、既に当該要求されたデータが既にキャッ
シュメモリ3に格納されていた場合は、ストレージ部2
による読出は必要ない。いわゆるキャッシュヒットであ
る。そしてシステムコントローラ8はキャッシュメモリ
3に書き込まれているデータを読み出させ、USBイン
ターフェース4を介してパーソナルコンピュータ100
に送信させる制御を行う。
When there is a request for reading certain data from the personal computer 100, the system controller 8 causes the storage section 2 to execute the reading of the data. The read data is written in the cache memory 3. However, if the requested data has already been stored in the cache memory 3, the storage unit 2
Is not required to be read. This is a so-called cache hit. Then, the system controller 8 causes the data written in the cache memory 3 to be read out, and the personal computer 100 is accessed via the USB interface 4.
Control to send to.

【0033】パーソナルコンピュータ100からの或る
データの書込要求があった場合は、システムコントロー
ラ8は、伝送されてくるデータをキャッシュメモリ3に
格納させる。そして、キャッシュメモリ3に格納された
データをストレージ部2によってディスクに記録させ
る。なお、ディスクへのデータ記録は、クラスタという
単位が最小単位で行われるものとされる。例えばクラス
タは32FATセクターである。もし、パーソナルコン
ピュータ100等が記録要求したデータ量が数セクター
などであって1クラスタに満たない場合、ブロッキング
と呼ばれる処理が行われる。即ちシステムコントローラ
8は、ストレージ部2に、まず当該FATセクターを含
むクラスタの読出を実行させる。読み出されたクラスタ
データはキャッシュメモリ3に書き込まれる。そしてシ
ステムコントローラ8は、パーソナルコンピュータ10
0からのFATセクターのデータ(記録データ)をUS
Bインターフェース4を介してキャッシュメモリ3に供
給させ、格納されているクラスタデータに対して、該当
するFATセクターのデータの書換を実行させる。そし
てシステムコントローラ8は、必要なFATセクターが
書き換えられた状態でキャッシュメモリ3に記憶されて
いるクラスタデータを、記録データとしてストレージ部
2に転送させる。ストレージ部2では、当該クラスタ単
位のデータをディスクに書き込む。
When there is a request for writing certain data from the personal computer 100, the system controller 8 causes the cache memory 3 to store the transmitted data. Then, the storage unit 2 records the data stored in the cache memory 3 on the disk. It should be noted that data recording on the disc is performed with a cluster unit as a minimum unit. For example, the cluster is 32 FAT sectors. If the amount of data requested to be recorded by the personal computer 100 or the like is several sectors and the amount is less than one cluster, a process called blocking is performed. That is, the system controller 8 first causes the storage unit 2 to read the cluster including the FAT sector. The read cluster data is written in the cache memory 3. The system controller 8 is the personal computer 10
FAT sector data (record data) from 0 to US
The data is supplied to the cache memory 3 via the B interface 4, and the stored cluster data is rewritten to the data of the corresponding FAT sector. Then, the system controller 8 transfers the cluster data stored in the cache memory 3 in a state where the necessary FAT sector is rewritten, to the storage unit 2 as recording data. The storage unit 2 writes the cluster unit data to the disk.

【0034】なお、以上は例えばパーソナルコンピュー
タ100との伝送を伴うデータの記録再生のための制御
であり、例えばミニディスク方式のオーディオデータな
どのの記録再生時のデータ転送は、入出力処理部5を介
して行われる。入出力処理部5は、例えば入力系とし
て、ライン入力回路/マイクロホン入力回路等のアナロ
グ音声信号入力部、A/D変換器や、デジタルオーディ
オデータ入力部を備える。またATRAC圧縮エンコー
ダ/デコーダを備える。さらに出力系として、デジタル
オーディオデータ出力部や、D/A変換器及びライン出
力回路/ヘッドホン出力回路等のアナログ音声信号出力
部を備える。
The above is the control for recording / reproducing data accompanying the transmission with the personal computer 100, for example, the data transfer at the time of recording / reproduction of audio data of the mini disk system is performed by the input / output processing unit 5. Done through. The input / output processing unit 5 includes, for example, an analog audio signal input unit such as a line input circuit / microphone input circuit, an A / D converter, and a digital audio data input unit as an input system. It also comprises an ATRAC compression encoder / decoder. Further, as an output system, a digital audio data output section and an analog audio signal output section such as a D / A converter and a line output circuit / headphone output circuit are provided.

【0035】入出力処理部5を介した処理としてディス
クにオーディオデータが記録されるのは、例えば入力T
INとして入出力処理部5にデジタルオーディオデータ
(又はアナログ音声信号)が入力される場合である。入
力されたリニアPCMデジタルオーディオデータ、或い
はアナログ音声信号で入力されA/D変換器で変換され
て得られたリニアPCMオーディオデータは、ATRA
C圧縮エンコードされてキャッシュメモリ3に蓄積され
る。そして所定タイミング(ADIPクラスタ相当のデ
ータ単位)でキャッシュメモリ3から読み出されてスト
レージ部2に転送される。ストレージ部2では、転送さ
れてくる圧縮データを所定の変調方式で変調してディス
クに記録する。
Audio data is recorded on the disc as a process via the input / output processing unit 5, for example, the input T
This is a case where digital audio data (or analog audio signal) is input to the input / output processing unit 5 as IN. The input linear PCM digital audio data or the linear PCM audio data input by the analog audio signal and converted by the A / D converter is ATRA.
It is C-compressed and encoded and stored in the cache memory 3. Then, it is read from the cache memory 3 and transferred to the storage unit 2 at a predetermined timing (a data unit corresponding to an ADIP cluster). The storage unit 2 modulates the transferred compressed data by a predetermined modulation method and records it on the disk.

【0036】ディスクからミニディスク方式のオーディ
オデータが再生される場合は、ストレージ部2は再生デ
ータをATRAC圧縮データ状態に復調してキャッシュ
メモリ3に転送する。そしてキャッシュメモリ3から読
み出されて入出力処理部5に転送される。入出力処理部
5は、供給されてくる圧縮オーディオデータに対してA
TRAC圧縮デコードを行ってリニアPCMオーディオ
データとし、デジタルオーディオデータ出力部から出力
する。或いはD/A変換器によりアナログ音声信号とし
てライン出力/ヘッドホン出力を行う。
When the mini-disc audio data is reproduced from the disc, the storage unit 2 demodulates the reproduced data into an ATRAC compressed data state and transfers it to the cache memory 3. Then, it is read from the cache memory 3 and transferred to the input / output processing unit 5. The input / output processing unit 5 sets A for the supplied compressed audio data.
TRAC compression decoding is performed to obtain linear PCM audio data, which is output from the digital audio data output unit. Alternatively, the D / A converter performs line output / headphone output as an analog audio signal.

【0037】なお、この図1の記録再生装置1の構成は
一例であり、例えば入出力処理部5は、オーディオデー
タだけでなく、ビデオデータに対応する入出力処理系を
備えるようにしてもよい。また、パーソナルコンピュー
タ100との接続はUSBでなく、IEEE1394等
の他の外部インターフェイスが用いられても良い。
The configuration of the recording / reproducing apparatus 1 of FIG. 1 is an example, and for example, the input / output processing unit 5 may be provided with an input / output processing system for not only audio data but also video data. . Further, the connection with the personal computer 100 is not limited to USB, and other external interface such as IEEE 1394 may be used.

【0038】2.ディスク及びストレージ部の構成 本実施の形態の記録再生装置1で記録媒体とされるディ
スクは、例えばミニディスク方式のディスクである。特
に従前の音楽用のミニディスクだけではなく、コンピュ
ータユースの各種データを記録できる高密度ディスクに
も対応する。
2. Configuration of Disk and Storage Unit The disk used as a recording medium in the recording / reproducing apparatus 1 of the present embodiment is, for example, a mini disk type disk. In particular, it supports not only conventional mini discs for music, but also high-density discs that can record various data for computer use.

【0039】ここで図2に、オーディオ用ミニディスク
(及びMD−DATA)と、高密度ディスクの規格を比
較して示す。ミニディスク(及びMD−DATA)のフ
ォーマットとしては、トラックピッチは1.6μm、ビ
ット長は0.59μm/bitとなる。また、レーザ波
長λ=780nmとされ、光学ヘッドの開口率NA=
0.45とされる。記録方式としては、グルーブ記録方
式を採っている。つまり、グルーブ(ディスク盤面上の
溝)をトラックとして記録再生に用いるようにしてい
る。アドレス方式としては、シングルスパイラルによる
グルーブ(トラック)を形成したうえで、このグルーブ
の両側に対してアドレス情報としてのウォブルを形成し
たウォブルドグルーブを利用する方式を採るようにされ
ている。なお、本明細書では、ウォブリングにより記録
される絶対アドレスをADIP(Address in Pregroov
e)とも呼ぶ。
FIG. 2 shows a comparison between the standards of the audio mini disc (and MD-DATA) and the high density disc. As a format of the mini disk (and MD-DATA), the track pitch is 1.6 μm and the bit length is 0.59 μm / bit. Further, the laser wavelength λ = 780 nm, and the numerical aperture NA of the optical head =
It is set to 0.45. As a recording method, a groove recording method is adopted. That is, the groove (groove on the disc surface) is used as a track for recording and reproduction. As an address method, a method is used in which a groove (track) is formed by a single spiral and then a wobbled groove in which wobbles are formed as address information on both sides of this groove is used. In this specification, the absolute address recorded by wobbling is referred to as ADIP (Address in Pregroov
Also called e).

【0040】記録データの変調方式としてはEFM(8
−14変換)方式を採用している。また、誤り訂正方式
としてはACIRC(Advanced Cross Interleave Reed-
Solomon Code) が採用され、データインターリーブには
畳み込み型を採用している。データの冗長度は46.3
%となる。
The recording data modulation method is EFM (8
-14 conversion) method is adopted. As an error correction method, ACIRC (Advanced Cross Interleave Reed-
Solomon Code) is adopted, and convolutional type is adopted for data interleaving. Data redundancy is 46.3
%.

【0041】また、データの検出方式はビットバイビッ
ト方式である。ディスク駆動方式としてはCLV(Const
ant Linear Verocity)が採用されており、CLVの線速
度としては、1.2m/sとされる。そして、記録再生
時の標準のデータレートとしては、133kB/sとさ
れ、記録容量としては、164MB(MD−DATAで
は140MB)となる。またクラスタというデータ単位
がデータの最小書換単位とされるが、このクラスタは、
32個のメインセクターと4個のリンクセクターによる
36セクターで構成される。
The data detection method is a bit-by-bit method. CLV (Const
ant linear velocity) is adopted, and the linear velocity of CLV is 1.2 m / s. The standard data rate during recording and reproduction is 133 kB / s, and the recording capacity is 164 MB (140 MB for MD-DATA). Also, the data unit called cluster is the minimum rewriting unit of data.
It consists of 36 main sectors with 32 main sectors and 4 link sectors.

【0042】一方、高密度ディスクは、トラックピッチ
は1.6μm、ビット長は0.44μm/bitとされ
る。また、レーザ波長λ=780nm、光学ヘッドの開
口率NA=0.45、記録方式はグルーブ記録方式、ア
ドレス方式はシングルスパイラルによるグルーブ(トラ
ック)を形成したうえで、このグルーブの両側に対して
アドレス情報としてのウォブルを形成したウォブルドグ
ルーブを利用する方式を採る。つまりこれらの点ではオ
ーディオ用ミニディスクと同様であり、ディスクドライ
ブ装置での光学系の構成やADIPアドレス読出方式、
サーボ処理については同様となることから互換性が維持
される。
On the other hand, the high density disc has a track pitch of 1.6 μm and a bit length of 0.44 μm / bit. The laser wavelength λ = 780 nm, the aperture ratio NA of the optical head = 0.45, the recording method is a groove recording method, and the address method is a groove (track) formed by a single spiral. A method of using a wobbled groove in which a wobble as information is formed is adopted. In other words, these points are the same as those of the audio mini-disc, and the configuration of the optical system in the disc drive device, the ADIP address reading method,
Since the servo processing is the same, compatibility is maintained.

【0043】記録データの変調方式としては、高密度記
録に適合するとされるRLL(1,7)PP方式(RL
L;Run Length Limited、PP:Parity preserve/Proh
ibitrmtr(repeated minimum transition runlength))
が採用され、誤り訂正方式としては、より訂正能力の高
いBIS(Burst Indicator Subcode)付きのRS−L
DC(Reed Solomon−Long Distance Code)方式を用い
ている。データインターリーブにはブロック完結型が採
用される。データの冗長度は20.50%とされる。ま
たデータの検出方式はパーシャルレスポンスPR(1,
2,1)MLを用いたビタビ復号方式とされる。なおR
LL(1−7)変調及びRS−LDC誤り訂正方式につ
いては、例えば「特開平11−346154号公報」
や、「国際特許公開公報WO 00/07300」など
に開示されている技術である。
As a recording data modulation method, the RLL (1,7) PP method (RL
L; Run Length Limited, PP: Parity preserve / Proh
ibitrmtr (repeated minimum transition runlength))
RS-L with BIS (Burst Indicator Subcode), which has a higher correction capability, is adopted as the error correction method.
The DC (Reed Solomon-Long Distance Code) method is used. A block complete type is adopted for data interleaving. The data redundancy is set to 20.50%. The data detection method is the partial response PR (1,
2, 1) Viterbi decoding method using ML. R
Regarding the LL (1-7) modulation and the RS-LDC error correction method, for example, "Japanese Patent Laid-Open No. 11-346154" is used.
Alternatively, the technology is disclosed in International Patent Publication WO 00/07300.

【0044】またディスク駆動方式はCLV(Constant
Linear Verocity)又はZCAV(Zone Constant Angu
lar Verocity)で、その標準線速度としては2.7m/
sとされ、記録再生時の標準線速度でのデータレートと
しては4.9Mbit/sとされる。そして、記録容量
としては297MBを得ることができる。変調方式がE
FMからRLL(1,7)PP方式とされることでウイ
ンドウマージンが0.5から0.666となり、この点
で、1.33倍の高密度化が実現できる。また物理フォ
ーマットとしてCIRC方式から、BIS付きのRS−
LDC方式とセクター構造の差異とビタビ復号を用いる
方式とされることで、データ効率は53.7%から7
9.5%となり、この点で1.48倍の高密度化が実現
できる。これらにより総合的には1.97倍(約2倍)
のデータ容量が実現される。つまり記録容量は297M
Bという、オーディオ用ミニディスクの約2倍とでき
る。データの最小書換単位は、64KBとなる。
The disk drive system is CLV (Constant
Linear Verocity) or ZCAV (Zone Constant Angu)
lar Verocity) and its standard linear velocity is 2.7 m /
s, and the data rate at the standard linear velocity during recording and reproduction is 4.9 Mbit / s. As a recording capacity, 297 MB can be obtained. Modulation method is E
By adopting the FM to RLL (1,7) PP method, the window margin is changed from 0.5 to 0.666, and in this respect, the density can be increased by 1.33 times. In addition, from the CIRC system as the physical format, RS- with BIS
The data efficiency is 53.7% to 7 due to the difference between the LDC method and the sector structure and the method using Viterbi decoding.
This is 9.5%, and a 1.48 times higher density can be realized in this respect. Overall, 1.97 times (about 2 times)
The data capacity of is realized. In other words, recording capacity is 297M
It can be double the size of a mini disc for audio called B. The minimum data rewriting unit is 64 KB.

【0045】ディスク上のエリア構造を図3に模式的に
示す。図3に示すように、ディスクの最内周側はP−T
OC(プリマスタードTOC)領域とされ、ここは物理
的な構造としてはプリマスタードエリアとなる。即ち、
エンボスピットによる再生専用データが記録されるエリ
アであり、その再生専用データとして管理情報であるP
−TOCが記録される。
The area structure on the disc is schematically shown in FIG. As shown in FIG. 3, the innermost side of the disc is PT
It is an OC (pre-mastered TOC) area, which is a pre-mastered area as a physical structure. That is,
This is an area in which reproduction-only data is recorded by embossed pits, and P is the management information as the reproduction-only data.
-TOC is recorded.

【0046】プリマスタードエリアより外周はレコーダ
ブルエリア(光磁気記録可能な領域)とされ、記録トラ
ックの案内溝としてのグルーブが形成された記録再生可
能領域となっている。このレコーダブルエリアの最内周
側はU−TOC領域とされる。なおU−TOC領域で
は、プリマスタードエリアとの緩衝エリアや、レーザー
光の出力パワー調整等のために用いられるパワーキャリ
ブレーションエリアが設けられ、またU−TOC領域内
の特定の3クラスタの区間にU−TOCデータが3回繰
り返し記録される。U−TOCの内容の詳細については
省略するが、プログラムエリアに記録されている各トラ
ックのアドレス、フリーエリアのアドレス等が記録さ
れ、また各トラックに付随するトラックネーム、記録日
時などの情報が記録できるようにU−TOCセクターが
規定されている。
The outer periphery of the premastered area is a recordable area (a magneto-optically recordable area), and is a recordable / reproducible area in which a groove as a guide groove for a recording track is formed. The innermost side of the recordable area is the U-TOC area. In the U-TOC area, a buffer area with the pre-mastered area and a power calibration area used for adjusting the output power of the laser light are provided, and in the section of specific 3 clusters in the U-TOC area. U-TOC data is recorded repeatedly three times. Although details of the contents of the U-TOC are omitted, the address of each track recorded in the program area, the address of the free area, etc. are recorded, and information such as the track name and recording date and time attached to each track is recorded. The U-TOC sector is defined so that it can be done.

【0047】レコーダブルエリアにおいてU−TOC領
域より外周側にアラートトラック及びデータエリアが形
成される。アラートトラックは、このディスクが高密度
ディスクであって、従前のミニディスクプレーヤでは再
生できないことを示す警告音が記録された警告トラック
である。データエリアは、オーディオデータやコンピュ
ータユースのデータなどの記録に用いられるエリアとな
る。即ち、通常の音楽用ミニディスクの場合であれば、
データエリアに1又は複数の音楽トラックが記録され
る。高密度ディスクの場合は、データエリアが各種デー
タのストレージ領域として用いられるものとなる。
In the recordable area, an alert track and a data area are formed on the outer peripheral side of the U-TOC area. The alert track is a warning track in which a warning sound indicating that this disc is a high density disc and cannot be reproduced by a conventional mini disc player is recorded. The data area is an area used for recording audio data and computer use data. That is, in the case of a normal music mini disk,
One or more music tracks are recorded in the data area. In the case of a high density disc, the data area is used as a storage area for various data.

【0048】図4によりディスクの管理構造を説明す
る。図4(b)は、音楽用ミニディスクシステムでの管
理構造を示している。この場合、管理情報としては、P
−TOC、U−TOCが記録される。P−TOCは書き
換え不能な情報としてピットにより記録される。このP
−TOCには、ディスクの基本的な管理情報として、デ
ィスクの総容量、U−TOC領域におけるU−TOC位
置、パワーキャリブレーションエリアの位置、データエ
リアの開始位置、データエリアの終了位置(リードアウ
ト位置)などが記録されている。
The management structure of the disk will be described with reference to FIG. FIG. 4B shows a management structure in the music mini disk system. In this case, the management information is P
-TOC and U-TOC are recorded. P-TOC is recorded by pits as non-rewritable information. This P
-TOC includes basic management information of the disc, such as the total capacity of the disc, the U-TOC position in the U-TOC area, the position of the power calibration area, the start position of the data area, and the end position of the data area (readout). (Position) etc. are recorded.

【0049】一方、レコーダブルエリアに記録されるU
−TOCは、トラック(オーディオトラック/データト
ラック)の記録、消去などに応じて書き換えられる管理
情報であり、各トラック(トラックを構成するパーツ)
について開始位置、終了位置、やモードを管理する。ま
た、データエリアにおいて未だトラックが記録されてい
ないフリーエリア、つまり書込可能領域としてのパーツ
も管理する。例えば図示するようにデータエリア内に、
ATRACデータとして3曲のオーディオトラックが記
録されている場合、U−TOCでは、3つのトラックを
それぞれスタートアドレス、エンドアドレス、モード情
報、さらには記録日時や名称情報を管理することにな
る。
On the other hand, U recorded in the recordable area
-TOC is management information that is rewritten according to recording and erasing of tracks (audio tracks / data tracks), and each track (parts that make up the track)
Manage start position, end position, and mode. It also manages a free area in which no track is recorded in the data area, that is, a part as a writable area. For example, in the data area as shown,
When three audio tracks are recorded as ATRAC data, the U-TOC manages the start address, end address, mode information, recording date and name information of each of the three tracks.

【0050】高密度ディスクの場合は図4(a)のよう
になる。高密度ディスクの場合も、U−TOC及びP−
TOCは、従前のミニディスクシステムに準拠する方式
で記録される。そして図4(a)のデータエリアには、
1つの高密度データトラックを示しているが、U−TO
Cでは、この高密度データトラックを1つのトラックと
して管理する状態となっている。つまりU−TOCから
は、ディスク上における、データトラックの全体として
の1又は複数のパーツ位置を管理するものとなる。な
お、上述したアラートトラックの位置もU−TOCに管
理される。
In the case of a high density disc, it becomes as shown in FIG. Even in the case of high density disc, U-TOC and P-
The TOC is recorded by a method that complies with the conventional mini disk system. And in the data area of FIG. 4 (a),
One high density data track is shown, U-TO
In C, the high-density data track is managed as one track. In other words, the U-TOC manages the position of one or more parts of the data track as a whole on the disc. The position of the alert track described above is also managed by the U-TOC.

【0051】高密度データトラックは、RS−LDC及
びRLL(1−7)PP方式で変調された高密度データ
によって形成されるトラックとされる。高密度データト
ラック内には、該データトラックに含まれる高密度デー
タクラスタを管理するクラスタアトリビュートテーブル
(CAT:Cluster AttributeTable)が記録される。C
ATでは、データトラックを構成する高密度データクラ
スタのそれぞれについての属性(公開可能/不可、正常
/不良等)を管理する。
The high-density data track is a track formed by high-density data modulated by RS-LDC and RLL (1-7) PP system. A cluster attribute table (CAT) that manages a high-density data cluster included in the data track is recorded in the high-density data track. C
The AT manages attributes (open / not open, normal / defective, etc.) for each of the high-density data clusters forming the data track.

【0052】このデータトラック内で公開不可とされる
高密度データクラスタを用いて、著作権保護等のために
用いられる、ディスクに固有のユニークID(UID)
や、データ改竄チェックのためのハッシュ値(hash)が
記録される。もちろんこれ以外にも、各種の非公開情報
が記録されても良い。この公開不可とされる領域には、
特別に許可された機器のみが限定的にアクセスすること
ができるものとする。
A unique ID (UID) unique to the disc, which is used for copyright protection and the like, by using a high-density data cluster that cannot be disclosed in this data track.
Also, a hash value (hash) for checking data tampering is recorded. Of course, other than this, various kinds of non-public information may be recorded. In the area that cannot be published,
Only specially authorized equipment shall have limited access.

【0053】データトラック内で公開可能とされる高密
度データクラスタによる領域(エクスポータブルエリ
ア)は、例えばUSBやSCSIなどの汎用データイン
ターフェースを経由して、外部のコンピュータなどがア
クセスし、記録領域として利用できる領域とされる。例
えばこの図4(a)の場合、エクスポータブルエリアに
は、FAT及びFAT管理のデータファイルによる、F
ATファイルシステムが構築されている状態を示してい
る。つまり、エクスポータブルエリアに記録されるデー
タは、U−TOCによっては管理されず、FATなどの
汎用的な管理情報により管理される形態となり、ミニデ
ィスクシステムに準拠しない外部のコンピュータなどに
よって認識可能なデータとなる。
An area (exportable area) formed by a high-density data cluster that can be disclosed in the data track is accessed by an external computer or the like via a general-purpose data interface such as USB or SCSI and is used as a recording area. It is considered as a usable area. For example, in the case of FIG. 4A, in the exportable area, the FAT and the FAT management data file
The state where the AT file system is constructed is shown. That is, the data recorded in the exportable area is not managed by the U-TOC but is managed by general-purpose management information such as FAT, and can be recognized by an external computer that does not comply with the mini disk system. It becomes data.

【0054】ATRAC方式等の音楽データ等がFAT
システム上で記録される場合は、その音楽データ等のフ
ァイルを管理する管理情報としてプレイリストが記録さ
れる。このプレイリストはFATシステム上の1つのフ
ァイルとしてきろくされるものであり、記録再生装置1
のシステムコントローラは、音楽データファイルの再生
時にはプレイリストからアドレス等を把握するものとな
る。
Music data such as ATRAC system is FAT
When recorded on the system, a playlist is recorded as management information for managing files such as music data. This playlist is created as one file on the FAT system, and the recording / reproducing apparatus 1
The system controller of (1) grasps the address and the like from the playlist when reproducing the music data file.

【0055】なお、このような構造のデータトラック
が、ディスク上に複数記録される場合もある。その場
合、各データトラックが、それぞれ1つのトラックとし
てU−TOCから管理され、それぞれのデータトラック
内のエクスポータブルエリア内のデータについては、F
AT等により管理される。例えば各データトラックがそ
れぞれ独自にFATファイルシステムを持つものとな
る。あるいは、複数のデータトラックに渡って一つのF
ATファイルシステムが記録されるようにしてもよい。
In some cases, a plurality of data tracks having such a structure are recorded on the disc. In this case, each data track is managed by the U-TOC as one track, and the data in the exportable area in each data track is F
Managed by AT, etc. For example, each data track has its own FAT file system. Alternatively, one F can be used across multiple data tracks.
The AT file system may be recorded.

【0056】また、ユニークID等の情報は、データト
ラック内であって、FAT管理されないデータとする例
を述べたが、FAT管理されない情報とするなら、どの
ような論理形態で記録されてもよい。例えばU−TOC
から直接的に管理されるトラックとして、非公開情報用
のトラックを設けるようにしたり、あるいはU−TOC
/P−TOC内に記録してもよい。更に、U−TOC領
域内で、U−TOCに使用されていない部分を用いて、
非公開情報用の記録領域を設けてもよい。
Further, the information such as the unique ID has been described as an example in which the data is not FAT managed in the data track. However, if the information is not FAT managed, it may be recorded in any logical form. . For example U-TOC
A track for private information should be provided as a track directly managed by the U-TOC.
It may be recorded in / P-TOC. Furthermore, in the U-TOC area, by using a part not used for U-TOC,
A recording area for private information may be provided.

【0057】なお、説明上、従前のミニディスクを「音
楽用ミニディスク」と呼ぶが、いわゆるMD−DATA
として知られているミニディスクも、この音楽用ミニデ
ィスクの範疇となる。また、高密度ディスクに対してデ
ータファイルとして音楽データが記録されることも当然
にあり得る。例えばネットワークやパーソナルコンピュ
ータからの音楽ファイルのダウンロードの場合などであ
る。
For the sake of explanation, the conventional mini disc is called a "music mini disc".
The mini disc known as is also in the category of this music mini disc. Further, it is naturally possible that music data is recorded as a data file on the high density disc. For example, when downloading a music file from a network or a personal computer.

【0058】図1に示したストレージ部2は、以上のよ
うな音楽用ミニディスクと汎用データ記録媒体としての
高密度ディスクに対応できるディスクドライブ部とされ
る。このストレージ部2の構成例を図5に示す。
The storage unit 2 shown in FIG. 1 is a disc drive unit capable of supporting the above-mentioned music mini disc and high-density disc as a general-purpose data recording medium. FIG. 5 shows an example of the configuration of this storage unit 2.

【0059】図示するディスク90は、上述した音楽用
ミニディスク或いは高密度ディスクである。ストレージ
部2においては、装填されたディスク90をスピンドル
モータ29によってCLV方式で回転駆動させる。この
ディスク90に対しては記録/再生時に光学ヘッド19
によってレーザ光が照射される。光学ヘッド19は、記
録時には記録トラックをキュリー温度まで加熱するため
の高レベルのレーザ出力を行ない、また再生時には磁気
カー効果により反射光からデータを検出するための比較
的低レベルのレーザ出力を行なう。このため、光学ヘッ
ド19には、ここでは詳しい図示は省略するがレーザ出
力手段としてのレーザダイオード、偏光ビームスプリッ
タや対物レンズ等からなる光学系、及び反射光を検出す
るためのディテクタが搭載されている。光学ヘッド19
に備えられる対物レンズとしては、例えば2軸機構によ
ってディスク半径方向及びディスクに接離する方向に変
位可能に保持されている。
The illustrated disc 90 is the above-mentioned music mini disc or high-density disc. In the storage unit 2, the loaded disk 90 is rotationally driven by the spindle motor 29 by the CLV method. The optical head 19 is used for recording / reproducing with respect to the disk 90.
Is irradiated with laser light. The optical head 19 outputs a high level laser output for heating the recording track to the Curie temperature during recording, and a relatively low level laser output for detecting data from the reflected light by the magnetic Kerr effect during reproduction. . Therefore, although not shown in detail here, the optical head 19 is equipped with a laser diode as a laser output means, an optical system including a polarization beam splitter and an objective lens, and a detector for detecting reflected light. There is. Optical head 19
As the objective lens provided in the disk, for example, it is held by a biaxial mechanism so as to be displaceable in the disk radial direction and the direction in which the disk comes in and out of contact with the disk.

【0060】また、ディスク90を挟んで光学ヘッド1
9と対向する位置には磁気ヘッド18が配置されてい
る。磁気ヘッド18は記録データによって変調された磁
界をディスク90に印加する動作を行なう。また、図示
しないが光学ヘッド19全体及び磁気ヘッド18をディ
スク半径方向に移動させためスレッドモータ及びスレッ
ド機構が備えられている。
Further, the optical head 1 with the disk 90 sandwiched therebetween.
A magnetic head 18 is arranged at a position opposed to 9. The magnetic head 18 operates to apply a magnetic field modulated by the recording data to the disk 90. Although not shown, a sled motor and a sled mechanism are provided for moving the entire optical head 19 and the magnetic head 18 in the radial direction of the disk.

【0061】このストレージ部2では、光学ヘッド1
9、磁気ヘッド18による記録再生ヘッド系、スピンド
ルモータ29によるディスク回転駆動系のほかに、記録
処理系、再生処理系、サーボ系等が設けられる。記録処
理系では、音楽用ミニディスクに対する記録時に第1の
変調方式の変調(EFM変調・ACIRCエンコード)
を行う部位と、高密度ディスクに対する記録時に第2の
変調方式(RLL(1−7)PP変調、RS−LDCエ
ンコード)の変調を行う部位が設けられる。再生処理系
では、音楽用ミニディスク(及び高密度ディスクのU−
TOC)の再生時に第1の変調方式に対する復調(EF
M復調・ACIRCデコード)を行う部位と、高密度デ
ィスクの再生時に第2の変調方式に対する復調(パーシ
ャルレスポンスPR(1,2,1)及びビタビ復号を用
いたデータ検出に基づくRLL(1−7)復調、RS−
LDCデコード)を行う部位が設けられる。
In this storage unit 2, the optical head 1
9. In addition to the recording / reproducing head system using the magnetic head 18 and the disk rotation driving system using the spindle motor 29, a recording processing system, a reproducing processing system, a servo system, and the like are provided. In the recording processing system, modulation of the first modulation method (EFM modulation / ACIRC encoding) is performed at the time of recording on a mini disc for music.
And a part for performing modulation of the second modulation method (RLL (1-7) PP modulation, RS-LDC encoding) at the time of recording on a high density disc. In the playback processing system, music mini discs (and high-density discs U-
When reproducing TOC, demodulation (EF) for the first modulation method
M demodulation / ACIRC decoding) and demodulation (partial response PR (1,2,1) for the second modulation method when reproducing a high density disc and RLL (1-7 based on data detection using Viterbi decoding) ) Demodulation, RS-
A part for performing LDC decoding) is provided.

【0062】光学ヘッド19のディスク90に対するレ
ーザ照射によりその反射光として検出された情報(フォ
トディテクタによりレーザ反射光を検出して得られる光
電流)は、RFアンプ21に供給される。RFアンプ2
1では入力された検出情報に対して電流−電圧変換、増
幅、マトリクス演算等を行い、再生情報としての再生R
F信号、トラッキングエラー信号TE、フォーカスエラ
ー信号FE、グルーブ情報(ディスク90にトラックの
ウォブリングにより記録されているADIP情報)等を
抽出する。
Information (photocurrent obtained by detecting the laser reflected light by the photodetector) detected as the reflected light by the laser irradiation of the optical head 19 onto the disk 90 is supplied to the RF amplifier 21. RF amplifier 2
In 1, the input detection information is subjected to current-voltage conversion, amplification, matrix calculation, etc. to reproduce R as reproduction information.
An F signal, a tracking error signal TE, a focus error signal FE, groove information (ADIP information recorded on the disk 90 by track wobbling) and the like are extracted.

【0063】音楽用ミニディスク再生時には、RFアン
プで得られた再生RF信号は、EFM復調部24及びA
CIRCデコーダ25で処理される。即ち再生RF信号
は、EFM復調部24で2値化されてEFM信号列とさ
れた後、EFM復調され、さらにACIRCデコーダ2
5で誤り訂正及びデインターリーブ処理される。即ちこ
の時点でATRAC圧縮データの状態となる。そして音
楽用ミニディスク再生時には、セレクタ26はB接点側
が選択されており、当該復調されたATRAC圧縮デー
タがディスク90からの再生データとして出力される。
この場合、図1のキャッシュメモリ3に圧縮データが供
給されることになる。
At the time of reproducing the mini disk for music, the reproduced RF signal obtained by the RF amplifier is supplied to the EFM demodulation unit 24 and A.
It is processed by the CIRC decoder 25. That is, the reproduced RF signal is binarized by the EFM demodulation unit 24 to form an EFM signal sequence, then EFM demodulated, and further, the ACIRC decoder 2
In step 5, error correction and deinterleave processing is performed. That is, at this point, the ATRAC compressed data state is set. Then, at the time of reproducing the mini disc for music, the B contact side is selected in the selector 26, and the demodulated ATRAC compressed data is output as the reproduction data from the disc 90.
In this case, the compressed data is supplied to the cache memory 3 of FIG.

【0064】一方、高密度ディスク再生時には、RFア
ンプで得られた再生RF信号は、RLL(1−7)PP
復調部22及びRS−LDCデコーダ25で処理され
る。即ち再生RF信号は、RLL(1−7)PP復調部
22において、PR(1,2,1)及びビタビ復号を用
いたデータ検出によりRLL(1−7)符号列としての
再生データを得、このRLL(1−7)符号列に対して
RLL(1−7)復調処理が行われる。そして更にRS
−LDCデコーダ23で誤り訂正及びデインターリーブ
処理される。そして高密度ディスク再生時には、セレク
タ26はA接点側が選択されており、当該復調されたデ
ータがディスク90からの再生データとして出力され
る。この場合、図1のキャッシュメモリ3に復調データ
が供給されることになる。
On the other hand, when reproducing a high density disc, the reproduced RF signal obtained by the RF amplifier is RLL (1-7) PP.
It is processed by the demodulation unit 22 and the RS-LDC decoder 25. That is, the reproduced RF signal is reproduced in the RLL (1-7) PP demodulation unit 22 by data detection using PR (1,2,1) and Viterbi decoding to obtain reproduced data as an RLL (1-7) code string. RLL (1-7) demodulation processing is performed on this RLL (1-7) code string. And further RS
-Error correction and deinterleave processing are performed by the LDC decoder 23. During reproduction of the high density disc, the A contact side of the selector 26 is selected and the demodulated data is output as reproduction data from the disc 90. In this case, the demodulated data will be supplied to the cache memory 3 of FIG.

【0065】RFアンプ21から出力されるトラッキン
グエラー信号TE、フォーカスエラー信号FEはサーボ
回路27に供給され、グルーブ情報はADIPデコーダ
30に供給される。
The tracking error signal TE and the focus error signal FE output from the RF amplifier 21 are supplied to the servo circuit 27, and the groove information is supplied to the ADIP decoder 30.

【0066】ADIPデコーダ30は、グルーブ情報に
対してバンドパスフィルタにより帯域制限してウォブル
成分を抽出した後、FM復調、バイフェーズ復調を行っ
てADIPアドレスを抽出する。抽出された、ディスク
上の絶対アドレス情報であるADIPアドレスは図1に
示したシステムコントローラ8に供給される。システム
コントローラ8ではADIPアドレスに基づいて、所要
の制御処理を実行する。またグルーブ情報はスピンドル
サーボ制御のためにサーボ回路27に供給される。
The ADIP decoder 30 extracts a wobble component by band-limiting the groove information with a bandpass filter, and then performs FM demodulation and bi-phase demodulation to extract an ADIP address. The extracted ADIP address, which is the absolute address information on the disc, is supplied to the system controller 8 shown in FIG. The system controller 8 executes a required control process based on the ADIP address. The groove information is also supplied to the servo circuit 27 for spindle servo control.

【0067】サーボ回路27は、例えばグルーブ情報に
対して再生クロック(デコード時のPLL系クロック)
との位相誤差を積分して得られる誤差信号に基づき、C
LVサーボ制御のためのスピンドルエラー信号を生成す
る。またサーボ回路27は、スピンドルエラー信号や、
上記のようにRFアンプ21から供給されたトラッキン
グエラー信号、フォーカスエラー信号、或いはシステム
コントローラ8からのトラックジャンプ指令、アクセス
指令等に基づいて各種サーボ制御信号(トラッキング制
御信号、フォーカス制御信号、スレッド制御信号、スピ
ンドル制御信号等)を生成し、モータドライバ28に対
して出力する。即ち上記サーボエラー信号や指令に対し
て位相補償処理、ゲイン処理、目標値設定処理等の必要
処理を行って各種サーボ制御信号を生成する。
The servo circuit 27 reproduces a clock (PLL system clock at the time of decoding) for the groove information, for example.
C based on the error signal obtained by integrating the phase error between
A spindle error signal for LV servo control is generated. Further, the servo circuit 27 sends a spindle error signal,
As described above, various servo control signals (tracking control signal, focus control signal, sled control) based on the tracking error signal, the focus error signal supplied from the RF amplifier 21, or the track jump command, the access command, etc. from the system controller 8. Signal, spindle control signal, etc.) and output to the motor driver 28. That is, various servo control signals are generated by performing necessary processing such as phase compensation processing, gain processing, and target value setting processing on the servo error signals and commands.

【0068】モータドライバ28では、サーボ回路27
から供給されたサーボ制御信号に基づいて所要のサーボ
ドライブ信号を生成する。ここでのサーボドライブ信号
としては、二軸機構を駆動する二軸ドライブ信号(フォ
ーカス方向、トラッキング方向の2種)、スレッド機構
を駆動するスレッドモータ駆動信号、スピンドルモータ
29を駆動するスピンドルモータ駆動信号となる。この
ようなサーボドライブ信号により、ディスク90に対す
るフォーカス制御、トラッキング制御、及びスピンドル
モータ29に対するCLV制御が行われることになる。
In the motor driver 28, the servo circuit 27
A required servo drive signal is generated based on the servo control signal supplied from. The servo drive signal here is a biaxial drive signal (two types of focus direction and tracking direction) for driving the biaxial mechanism, a sled motor drive signal for driving the sled mechanism, and a spindle motor drive signal for driving the spindle motor 29. Becomes With such a servo drive signal, focus control, tracking control for the disc 90 and CLV control for the spindle motor 29 are performed.

【0069】ディスク90に対して記録動作が実行され
る際には、キャッシュメモリ3からデータが供給され
る。音楽用ミニディスク記録時には、セレクタ16がB
接点に接続され、従ってACIRCエンコーダ14及び
EFM変調部15が機能することになる。この場合、オ
ーディオ処理部10からの圧縮データはACIRCエン
コーダ14でインターリーブ及びエラー訂正コード付加
が行われた後、EFM変調部15でEFM変調が行われ
る。そしてEFM変調データがセレクタ16を介して磁
気ヘッドドライバ17に供給され、磁気ヘッド18がデ
ィスク90に対してEFM変調データに基づいた磁界印
加を行うことでデータ記録が行われる。
When the recording operation is executed on the disk 90, the data is supplied from the cache memory 3. When recording a mini disc for music, the selector 16 is set to B
The ACIRC encoder 14 and the EFM modulator 15 are connected to the contacts, and thus function. In this case, the compressed data from the audio processing unit 10 is interleaved and the error correction code is added by the ACIRC encoder 14, and then the EFM modulation unit 15 performs the EFM modulation. Then, the EFM-modulated data is supplied to the magnetic head driver 17 via the selector 16, and the magnetic head 18 applies a magnetic field to the disk 90 based on the EFM-modulated data to perform data recording.

【0070】高密度ディスク記録時には、セレクタ16
がA接点に接続され、従ってRS−LDCエンコーダ1
2及びRLL(1−7)PP変調部13が機能すること
になる。この場合、メモリ転送コントローラ3からの高
密度データはRS−LDCエンコーダ12でインターリ
ーブ及びRS−LDC方式のエラー訂正コード付加が行
われた後、RLL(1−7)PP変調部13でRLL
(1−7)変調が行われる。そしてRLL(1−7)符
号列としての記録データがセレクタ16を介して磁気ヘ
ッドドライバ17に供給され、磁気ヘッド18がディス
ク90に対して変調データに基づいた磁界印加を行うこ
とでデータ記録が行われる。
When recording on a high density disc, the selector 16
Is connected to the A contact, and thus the RS-LDC encoder 1
2 and the RLL (1-7) PP modulator 13 will function. In this case, the high-density data from the memory transfer controller 3 is interleaved by the RS-LDC encoder 12 and an error correction code is added by the RS-LDC method, and then the RLL (1-7) PP modulator 13 performs the RLL.
(1-7) Modulation is performed. Then, the recording data as the RLL (1-7) code string is supplied to the magnetic head driver 17 via the selector 16, and the magnetic head 18 applies a magnetic field to the disk 90 based on the modulation data, thereby recording data. Done.

【0071】レーザドライバ/APC20は、上記のよ
うな再生時及び記録時においてレーザダイオードにレー
ザ発光動作を実行させるが、いわゆるAPC(Automati
c Lazer Power Control)動作も行う。即ち、図示して
いないが、光学ヘッド19内にはレーザパワーモニタ用
のディテクタが設けられ、そのモニタ信号がレーザドラ
イバ/APC20にフィードバックされる。レーザドラ
イバ/APC20は、モニタ信号として得られる現在の
レーザパワーを、設定されているレーザパワーと比較し
て、その誤差分をレーザ駆動信号に反映させることで、
レーザダイオードから出力されるレーザパワーが、設定
値で安定するように制御している。なお、レーザパワー
としては、再生レーザパワー、記録レーザパワーとして
の値がシステムコントローラ8によって、レーザドライ
バ/APC20内部のレジスタにセットされる。
The laser driver / APC 20 causes the laser diode to perform the laser emission operation during the reproduction and recording as described above.
c Lazer Power Control) also operates. That is, although not shown, a detector for laser power monitoring is provided in the optical head 19, and the monitor signal is fed back to the laser driver / APC 20. The laser driver / APC 20 compares the current laser power obtained as the monitor signal with the set laser power and reflects the error in the laser drive signal,
The laser power output from the laser diode is controlled to be stable at the set value. As the laser power, the values of the reproduction laser power and the recording laser power are set in the register inside the laser driver / APC 20 by the system controller 8.

【0072】以上の各動作(アクセス、各種サーボ、デ
ータ書込、データ読出の各動作)は、システムコントロ
ーラ8からの指示に基づいて実行される。
The above operations (accesses, various servos, data writing, and data reading) are executed based on instructions from the system controller 8.

【0073】3.基本的なキャッシュ制御方式 上記図1により説明したように記録再生装置1はAV機
器としてディスク90に対してオーディオデータ(AV
データ)の記録再生を行うとともに、パーソナルコンピ
ュータ(又はネットワーク)100に接続されてPCデ
ータやAVデータの記録再生を行うことができる機器と
される。そしてディスク90に読み書きされるデータは
キャッシュメモリ3を経由するものとなる。
3. Basic Cache Control Method As described above with reference to FIG. 1, the recording / reproducing apparatus 1 serves as an AV device for the audio data (AV
In addition to recording / reproducing data), the device is connected to a personal computer (or network) 100 to record / reproduce PC data or AV data. Then, the data read from and written to the disk 90 passes through the cache memory 3.

【0074】本例では、キャッシュメモリ3は、キャッ
シュ領域が所定単位Nで分割されて制御される。図6
は、キャッシュ領域がNクラスタ×Mブロックに分割設
定された状態を示している。図6に一枡で示す1つの領
域(セル)は1クラスタ(32KByte)の領域と
し、全体としてはN×Mクラスタの領域としている。そ
して説明の便宜のために縦一列にNクラスタを示し、こ
のNクラスタが1つの分割単位(ブロック)としてMブ
ロックが設定されているとする。このように、キャッシ
ュメモリ3におけるキャッシュ領域は、論理的に、Nク
ラスタ×Mブロックに分割設定される。
In this example, the cache area of the cache memory 3 is divided into predetermined units N and controlled. Figure 6
Indicates a state in which the cache area is divided and set into N clusters × M blocks. One area (cell) indicated by a box in FIG. 6 is an area of one cluster (32 KBytes), and is an area of N × M clusters as a whole. For convenience of explanation, it is assumed that N clusters are shown in a vertical column and that M blocks are set as one division unit (block). In this way, the cache area in the cache memory 3 is logically divided and set to N clusters × M blocks.

【0075】キャッシュメモリ3上のアドレス(キャッ
シュアドレス)は、キャッシュID(Cid)として連
続する。図7には、N=8とした場合の、各セルのアド
レスCidを示している。即ちアドレスCidとして
は、物理的には各セルについてCid=0〜Cid=8
(M−1)+7までが連続して付与されているが、これ
がN=8として設定されることで、Cid=0〜7、8
〜15、16〜23・・・8(M−1)〜8(M−1)
+7まで、8個のセル毎に1ブロックとして分割し、こ
れが連続する状態で管理される。
Addresses on the cache memory 3 (cache addresses) are consecutive as cache IDs (Cid). FIG. 7 shows the address Cid of each cell when N = 8. That is, as the address Cid, physically, Cid = 0 to Cid = 8 for each cell.
(M-1) +7 are continuously given, but by setting this as N = 8, Cid = 0 to 7, 8
~ 15, 16-23 ... 8 (M-1) to 8 (M-1)
Up to +7, every eight cells are divided into one block, which is managed in a continuous state.

【0076】このようなキャッシュ領域に対して、デー
タを書き込む場合は、データ属性(具体的にはデータの
ディスク90上のアドレス等)をNで割った余り値を起
点として順番にセルを割り当てる。図7のようにN=8
とした場合、各ブロックにおいては余り「0」〜余り
「7」に相当するセルが存在するものとなるが、ポイン
タcntの値で指定されたブロックにおいて余り値が対
応するセルが、そのデータに対応するセルとなる。起点
となるセルを含むブロックは、単純にカウントアップさ
れるポインタcntの値で指定される。このポインタc
ntは、カウントアップされていくことで各ブロックを
順次指定していくポインタである。なお、ポインタcn
tは、最後のブロック「(M−1)N」に達したら、次
に最初のブロック「0N」を指定する値にリセットされ
ることで、キャッシュ領域を長大なデータに対応できる
リングバッファのように用いることもできるようにして
いる。
When data is written to such a cache area, cells are sequentially allocated starting from the remainder value obtained by dividing the data attribute (specifically, the address of the data on the disk 90) by N. N = 8 as shown in FIG.
In this case, cells corresponding to the remainders “0” to “7” exist in each block, but the cells corresponding to the remainder value in the block designated by the value of the pointer cnt are included in the data. It becomes the corresponding cell. The block including the cell serving as the starting point is designated by the value of the pointer cnt that is simply counted up. This pointer c
nt is a pointer that sequentially designates each block as it is counted up. Note that the pointer cn
When t reaches the last block “(M−1) N”, t is reset to a value designating the first block “0N”, so that the cache area can be used as a ring buffer capable of handling long data. It can also be used for.

【0077】つまり基本的に、ディスク90上でのアド
レス(adrs)が連続していたならば、図中の左上のセル
から縦方向にキャッシュを埋めていき、一番下に達した
らポインタcntを1進める。これを繰り返してポイン
タcntが一番右端(最終ブロック)に達したらポイン
タcntを左端(先頭ブロック)に戻す。
That is, basically, if the addresses (adrs) on the disk 90 are continuous, the cache is filled vertically from the upper left cell in the figure, and when the bottom is reached, the pointer cnt is set. Go forward one. By repeating this, when the pointer cnt reaches the rightmost end (final block), the pointer cnt is returned to the left end (first block).

【0078】以上のことを具体的にのべると、ディスク
90に対して読み書き要求されたデータのディスク上の
アドレス(adrs)に対して、以下の式によりキャッシュ
ID(Cid)を割り当てるものとなる。 Cid= (N× cnt) + remainer(adrs ÷ N)
Specifically, the cache ID (Cid) is assigned to the address (adrs) on the disk of the data requested to be read from or written to the disk 90 by the following formula. Cid = (N x cnt) + remainer (adrs ÷ N)

【0079】このようなキャッシュアドレスCidの割
当の具体例を図8〜図11に示す。図8〜図11におい
てはキャッシュ領域の各セルのアドレスCidは示して
いないが図7に示したとおりとする。今、ディスク90
上でのアドレス(adrs)=25、26、27としての3
クラスタ分のデータの書込又は読出要求が発生したとす
る。
Specific examples of such allocation of the cache address Cid are shown in FIGS. Although the address Cid of each cell in the cache area is not shown in FIGS. 8 to 11, it is assumed to be as shown in FIG. Now disk 90
Address as above (adrs) = 3 as 25, 26, 27
It is assumed that a request for writing or reading data for the cluster has occurred.

【0080】なお、上述した高密度ディスクでの「クラ
スタ」単位と、キャッシュ領域でいう「クラスタ」単位
は、ディスクフォーマットや機器の設計などの都合で、
必ずしも一致しないが、ここでは説明の簡略化のために
一致している場合で述べ、ディスク上での1クラスタの
データが、キャッシュ領域の1つセルに格納されるもの
とする。もちろん一致していなくても、所要のアドレス
換算演算が行われることで、本例のキャッシュ制御方式
は実現できるものである。
The "cluster" unit in the above-mentioned high-density disk and the "cluster" unit in the cache area are, for convenience of the disk format and the design of the device,
Although not necessarily coincident with each other, it is assumed here that they coincide with each other for simplification of description, and it is assumed that one cluster of data on the disk is stored in one cell of the cache area. Of course, even if they do not match, the cache control method of this example can be realized by performing the required address conversion calculation.

【0081】まずキャッシュ領域に書き込むデータのア
ドレス(adrs)=25であり、キャッシュ領域はN=8
で分割設定され、また現在ポインタcnt=0でブロッ
ク「0N」を指定しているとすると、上記式は Cid= (8×0) + remainer(25÷8) となり、remainer(25÷8)として余り値「1」が導か
れる。つまりキャッシュ領域でのアドレスCid=
「1」が割り当てられ、図8に示すようにアドレスadrs
=25のデータが、キャッシュアドレスCid「1」の
セルに書き込まれる。続く、アドレス(adrs)=26、
27の各データも、それぞれ余り値「2」「3」とな
り、キャッシュアドレスCid「2」「3」のセルに連
続的に書き込まれる。
First, the address (adrs) of the data to be written in the cache area is 25, and the cache area is N = 8.
If the block "0N" is specified with the pointer cnt = 0 at the present, the above formula becomes Cid = (8 × 0) + remainer (25 ÷ 8), and it becomes the retainer (25 ÷ 8). The remainder value "1" is derived. That is, the address Cid = in the cache area
"1" is assigned and the address adrs is displayed as shown in FIG.
= 25 data is written in the cell with the cache address Cid “1”. Continued, address (adrs) = 26,
The respective data of 27 also have the residual values "2" and "3", respectively, and are continuously written in the cells of the cache addresses Cid "2" and "3".

【0082】次に、アドレス(adrs)=32、33、3
4としての3クラスタ分のデータの書込又は読出要求が
発生したとする。すると、アドレス(adrs)=32のN
で除した余り値は「0」であるが、この場合、ブロック
「0N」の残りのセルはCid=4,5,6,7であ
り、Cid=0のセルをすぎているため、ポインタcn
tがインクリメントされてcnt=1となる。従って上
記式は、 Cid= (8×1) + remainer(32÷8) となり、アドレスCid=8とされて、図9に示すよう
にアドレスadrs=32のデータが、キャッシュアドレス
Cid「8」のセルに書き込まれる。続く、アドレス
(adrs)=33、34の各データも、それぞれCid=
9、10が算出され、キャッシュアドレスCid「9」
「10」のセルに書き込まれる。この場合、Cid=
4,5,6,7のセルは、無効セルとされる。
Next, address (adrs) = 32, 33, 3
It is assumed that a request for writing or reading data for 3 clusters as No. 4 has occurred. Then, N of address (adrs) = 32
The remainder value divided by is 0, but in this case, the remaining cells of the block “0N” are Cid = 4,5,6,7, and past the cells of Cid = 0, so the pointer cn
t is incremented to cnt = 1. Therefore, the above formula becomes Cid = (8 × 1) + remainer (32 ÷ 8), and the address Cid = 8 is set. As shown in FIG. 9, the data at the address adrs = 32 becomes the cache address Cid “8”. Written to cell. The following data at addresses (adrs) = 33 and 34 also have Cid =
9, 10 are calculated, and the cache address Cid “9”
It is written in the cell of "10". In this case, Cid =
The cells of 4, 5, 6, and 7 are invalid cells.

【0083】更に次にアドレス(adrs)=14、15、
16としての3クラスタ分のデータの書込又は読出要求
が発生したとすると、これらのデータは、同様にしてC
id=14,15,16のセルが割り当てられ、図9に
示すように書き込まれる。以下、同様に、アドレス(ad
rs)=50、51、52、53としての4クラスタ分の
データの書込又は読出要求、アドレス(adrs)=45、
46、47、48としての4クラスタ分のデータの書込
又は読出要求が発生し、それぞれCidが割り当てられ
てキャッシュ領域に書き込まれた状態を図10に示して
いる。
Further next, addresses (adrs) = 14, 15,
If a request to write or read data for 3 clusters as 16 is issued, these data are similarly stored in C
The cells with id = 14, 15, 16 are allocated and written as shown in FIG. Similarly, the address (ad
rs) = 50, 51, 52, 53, data write or read request for 4 clusters, address (adrs) = 45,
FIG. 10 shows a state in which a write or read request for data of four clusters as 46, 47, and 48 is generated, and Cids are respectively assigned and written in the cache area.

【0084】以上の例は、例えば3クラスタ程度など、
比較的短いデータサイズのデータの書込又は読出要求発
生時の例であるが、AVデータのように長大なデータの
場合も同様となる。例えばポインタcnt=5であった
際に、アドレス(adrs)=100、101、102・・
・・として長大なデータの書込又は読出要求が発生した
場合には、図11に示すように、まずアドレス(adrs)
=100のデータについて上記式によりCid=44が
割り当てられ、このCid=44のセルから図示するよ
うに順次連続して割り当てて書き込まれていくことにな
る。
In the above example, for example, about 3 clusters,
This is an example when a write or read request for data of a relatively short data size occurs, but the same applies to the case of long data such as AV data. For example, when the pointer cnt = 5, the address (adrs) = 100, 101, 102 ...
.. When a request for writing or reading a large amount of data is generated, as shown in FIG.
Cid = 44 is assigned to the data of = 100 by the above formula, and the cells of Cid = 44 are sequentially assigned and written as shown in the drawing.

【0085】なお、AVデータの場合のように大きいサ
イズの連続データの書込/読出要求は、実際には複数回
に分けられて発生するが、アドレス(adrs)が連続する
データが順次書込/読出要求されるものであるため、結
果的に図11のように書き込まれていくことになる。
Although a write / read request for continuous data of a large size as in the case of AV data is actually generated by being divided into a plurality of times, data having consecutive addresses (adrs) is sequentially written. / Because it is a read request, it will be written as a result as shown in FIG.

【0086】このようなキャッシュ制御方式では、次の
ような利点が得られるものとなる。まず連続したアドレ
ス(adrs)に対して,キャッシュメモリ上でも連続性が確
保される。ただし図8〜図10の場合でわかるように、
アドレス(adrs)が連続していない場合には,最大N−
1クラスタ(セル)の隙間が生じる。
With such a cache control system, the following advantages can be obtained. First, continuity is ensured on the cache memory for consecutive addresses (adrs). However, as can be seen from FIGS. 8 to 10,
If the addresses (adrs) are not consecutive, maximum N-
A gap of 1 cluster (cell) is generated.

【0087】また、キャッシュを検索する時には、要求
されたアドレス(adrs)からキャッシュアドレスCid
を求め,そこを起点に左方向に1周するよう検索すれば
よく、キャッシュ検索の際に検索回数(検索対象のセル
数)が,全てのセルを検索する場合の1/N回で済み、
検索処理が高速化できる。このキャッシュ検索処理につ
いては後述する。
When searching the cache, the cache address Cid is changed from the requested address (adrs).
It is only necessary to search for one round to the left from that point as the starting point, and the number of searches (the number of search target cells) at the time of cache search is 1 / N of the case of searching all cells,
The search process can be speeded up. This cache search process will be described later.

【0088】また、キャッシュアドレスCidの割当処
理は、上述の式で示す単純な演算処理で可能である。特
に従来のハッシュアルゴリズムによる割当処理と比較す
れば著しく簡単な演算である。これは演算プログラムの
簡略化、処理負担の軽減、及び演算の迅速化を実現でき
るものとなる。特にNの値を上記「8」のように2のべ
き乗の値とすることにより、CPU(システムコントロ
ーラ8)によるキャッシュアドレスCid算出の高速化
を図ることができる。
Further, the cache address Cid allocation processing can be performed by the simple arithmetic processing shown by the above equation. In particular, it is a remarkably simple operation as compared with the allocation processing by the conventional hash algorithm. This makes it possible to simplify the calculation program, reduce the processing load, and speed up the calculation. In particular, by setting the value of N to a power of 2 as in the above “8”, it is possible to speed up the calculation of the cache address Cid by the CPU (system controller 8).

【0089】そしてこのようなキャッシュ制御方式で
は、PCデータのようになるべくキャッシュヒットの可
能性を高くし、更に検索性を向上させることで応答性を
向上させるというキャッシュの目的と、ディスク90上
で連続して書き込む(又は読み出す)データをキャッシ
ュメモリ3上でも連続させることでディスク90への書
込/読出動作を効率化させ、さらにAVデータのように
大きなデータサイズの連続的なバッファリングという目
的にも適したものとなる。
In such a cache control method, the possibility of a cache hit is increased as much as PC data, and the responsiveness is improved by improving the searchability. By making data to be written (or read) continuously on the cache memory 3 as well, the write / read operation to / from the disk 90 is made efficient, and the purpose is to continuously buffer a large data size such as AV data. It will be suitable for.

【0090】ところで、キャッシュアドレスCidの割
り当てがN×Mのキャッシュ領域で1周したら、2周目
では、無効セルとして残った隙間にキャッシュアドレス
Cid割り当てるようにすることも考えられる。ただ
し、このようにすると、キャッシュデータの断片化を促
進するため,一周したらキャッシュ満タンと判断し登録
抹消を始める、という使い方をするのであってもよい。
By the way, if the cache address Cid is allocated once in the N × M cache area, the cache address Cid may be allocated in the gap left as an invalid cell in the second cycle. However, in this case, in order to promote fragmentation of the cache data, it may be used to judge that the cache is full after one round and start deregistration.

【0091】なお、登録抹消とは、データが書き込まれ
たセル(データが存在し、書込に使用できないセルとし
て登録されたセル)を、データ書込可能な空のセルに戻
すことである。キャッシュメモリ3に書き込まれたデー
タは、少なくともディスク90への書込を行うまでは必
要なデータである。キャッシュメモリ3のデータをディ
スク90に書き込むことを「フラッシュ」と呼ぶが、フ
ラッシュされていないデータを有するセルは、書き込み
できないセルとして「登録」される状態となる。そし
て、少なくともフラッシュされたセルについて、登録抹
消が行われる。但し、フラッシュが登録抹消の条件では
ない。例えばキャッシュヒットを考慮すれば、登録され
たセルはできるだけ長く登録抹消せずにデータを確保し
ておくことが好ましい。その一方でキャッシュ領域は有
限であるため、いつまでも登録状態にしておくことはで
きない。このような事情から、キャッシュの状態、容
量、要求発生状況、書込要求されるデータサイズなどに
応じて、登録抹消は随時行われるものとなっている。
Deletion of registration means returning a cell in which data has been written (a cell registered as a cell that has data and cannot be used for writing) to an empty cell in which data can be written. The data written in the cache memory 3 is necessary data at least until writing to the disk 90. Writing the data of the cache memory 3 to the disk 90 is called “flash”, but a cell having data that has not been flushed is in a state of being “registered” as a cell that cannot be written. Then, deregistration is performed on at least the flushed cell. However, flash is not a condition for deregistration. Considering a cache hit, for example, it is preferable to reserve data in a registered cell without deregistering it as long as possible. On the other hand, since the cache area is limited, it cannot be kept in the registered state forever. Under such circumstances, the registration deletion is performed at any time according to the cache status, capacity, request generation status, write-requested data size, and the like.

【0092】キャッシュメモリ3におけるデータ書込状
態や書き込まれたデータの属性は、キャッシュ管理メモ
リ11にキャッシュ管理データによって管理される。キ
ャッシュ管理データにおいては、図12(a)に示すよ
うに、各キャッシュアドレスCid(つまり各セル)に
対応して管理情報を有するものとされる。そして各キャ
ッシュアドレスCidに対応して、図12(b)に示す
ようにアドレスCid、FATクラスタ番号(adrs)、
フラッシュ情報、キャッシュセクター情報を管理する。
The data writing state in the cache memory 3 and the attribute of the written data are managed in the cache management memory 11 by the cache management data. As shown in FIG. 12A, the cache management data has management information corresponding to each cache address Cid (that is, each cell). Then, corresponding to each cache address Cid, as shown in FIG. 12B, the address Cid, the FAT cluster number (adrs),
It manages flash information and cache sector information.

【0093】FATクラスタ番号(adrs)とは、そのキ
ャッシュアドレスCidに書き込まれたデータの属性と
して、ディスク90上でのアドレスを示すものとされ
る。上述したようにディスク90としての高密度ディス
クはFATシステムによって管理されたデータを記録す
るものであるため、それに対応してFATクラスタ番号
として(adrs)値を記憶するようにされる。つまり本実
施の形態の例では、FATクラスタ番号がディスクから
の書込又は読出要求の際のアドレスとして指定されるも
のとしている。例えば上記図8のようにCid「1」の
セルに、FATクラスタ番号としてのアドレス(adrs)
=「25」が書き込まれた場合は、Cid「1」の管理
情報として、FATクラスタ番号(adrs)=「25」と
登録される。
The FAT cluster number (adrs) indicates the address on the disk 90 as an attribute of the data written in the cache address Cid. As described above, since the high density disc as the disc 90 records data managed by the FAT system, the (adrs) value is stored as the FAT cluster number correspondingly. That is, in the example of the present embodiment, the FAT cluster number is designated as an address when a write or read request is made from the disk. For example, as shown in FIG. 8, the address (adrs) as the FAT cluster number is added to the cell with Cid “1”.
When “= 25” is written, the FAT cluster number (adrs) = “25” is registered as the management information of Cid “1”.

【0094】フラッシュ情報とは、そのキャッシュアド
レスCidのデータがフラッシュされたか否かを示す情
報である。そのキャッシュアドレスCidにデータが書
き込まれることに応じて「未書込」を示す値とされ、フ
ラッシュされることに応じて「ディスク書込済」を示す
値に更新される。
The flush information is information indicating whether or not the data of the cache address Cid has been flushed. When the data is written to the cache address Cid, the value is set to "unwritten", and when the data is flushed, the value is updated to "disk written".

【0095】キャッシュセクター情報とは、キャッシュ
アドレスCidの各セクターについてデータの書込の有
無を示す情報とされる。1つのキャッシュアドレスCi
dは1クラスタの領域のセルに付与されており、1クラ
スタは32セクターで構成されるとすると、例えばキャ
ッシュセクター情報は、32セクターにそれぞれ1ビッ
トが対応する32ビットのフラグ情報とされて、各セク
ターについてのデータ有無を示すようにされる。
The cache sector information is information indicating whether or not data is written for each sector of the cache address Cid. One cache address Ci
d is added to cells in the region of 1 cluster, and if 1 cluster is composed of 32 sectors, for example, the cache sector information is 32 bit flag information in which 1 bit corresponds to 32 sectors, The presence or absence of data for each sector is indicated.

【0096】例えばこのようにキャッシュ管理データが
構成されることで、システムコントローラ8はキャッシ
ュ管理メモリ11におけるキャッシュ管理データを参照
することで、キャッシュ領域の各セルの状態を把握し、
フラッシュ処理、登録抹消処理、ポインタcntのカウ
ント処理等の必要なキャッシュ制御を行うことができ
る。また後述するキャッシュ検索は、実際にはこのキャ
ッシュ管理データを検索するものである。
For example, by configuring the cache management data in this way, the system controller 8 refers to the cache management data in the cache management memory 11 to grasp the state of each cell in the cache area,
It is possible to perform necessary cache control such as flush processing, deregistration processing, and pointer cnt counting processing. Further, the cache search described later actually searches this cache management data.

【0097】4.ライト/リード動作 ここで、上記のように制御されるキャッシュメモリ3を
介して行われる記録再生時の動作の流れを説明してお
く。図13はディスク90へのデータ書込要求発生時
(ディスクライト時)、図14、図15はディスク90
からのデータ読出要求発生時(ディスクリード時)の流
れを示している。なお図14はキャッシュヒットしなか
った場合、図15はキャッシュヒットした場合である。
4. Write / Read Operation Here, the flow of operation at the time of recording / reproduction performed via the cache memory 3 controlled as described above will be described. FIG. 13 shows a data write request to the disk 90 (when a disk is written), and FIGS. 14 and 15 show the disk 90.
3 shows the flow when a data read request is issued from the disk (when a disk is read). Note that FIG. 14 shows a case where no cache hit occurs, and FIG. 15 shows a case where a cache hit occurs.

【0098】各図においては、録再管理タスク又はP
C、ファイルタスク又はUSBタスク、キャッシュタス
ク、ドライブタスクの処理を示している。録再管理タス
ク、ファイルタスク、USBタスク、キャッシュタス
ク、ドライブタスクは、それぞれシステムコントローラ
8(CPU)において起動されるタスクである。PCと
は図1にパーソナルコンピュータ(又はネットワーク)
100として示した外部処理である。
In each figure, the recording / reproduction management task or P
Processing of C, file task or USB task, cache task, drive task is shown. The recording / reproducing management task, the file task, the USB task, the cache task, and the drive task are tasks activated by the system controller 8 (CPU). PC is a personal computer (or network) in Fig. 1.
The external processing is shown as 100.

【0099】ドライブタスクは、ストレージ部2におけ
る記録再生動作やキャッシュメモリ3とストレージ部2
の間のデータ転送の制御を行う機能を有する。キャッシ
ュタスクは、キャッシュメモリ3に対する制御、即ち、
キャッシュアドレスCidの計算を始めとするキャッシ
ュ制御を行う機能を持つ。USBタスクは、USBイン
ターフェース4とパーソナルコンピュータ100との間
のデータ通信及びそのためのキャッシュメモリ3に対す
る書込/読出を制御する機能を有する。ファイルタスク
は、入出力処理部5を介して入出力されるデータについ
てのFATクラスタによる管理/変換や、FATやプレ
イリストに基づくアドレス検出等を行う機能を有する。
録再管理タスクは、入出力処理部5を介してのオーディ
オデータの入出力、即ち記録再生装置1の単体でのディ
スク90への記録再生をユーザー操作に基づいて指示す
る機能を有する。
The drive task includes a recording / reproducing operation in the storage unit 2 and the cache memory 3 and the storage unit 2.
It has a function of controlling data transfer between the two. The cache task controls the cache memory 3, that is,
It has a function of performing cache control including calculation of the cache address Cid. The USB task has a function of controlling data communication between the USB interface 4 and the personal computer 100 and writing / reading to / from the cache memory 3 for that purpose. The file task has a function of performing management / conversion by the FAT cluster for data input / output via the input / output processing unit 5 and address detection based on FAT or playlist.
The recording / reproducing management task has a function of instructing input / output of audio data via the input / output processing unit 5, that is, recording / reproducing to / from the disc 90 by the recording / reproducing apparatus 1 alone based on a user operation.

【0100】上述したように、ディスク90へのデータ
の記録再生としては、記録再生装置1が単体でAV機器
として用いられる場合と、パーソナルコンピュータ(又
はネットワーク)100に接続されて、それらに対する
ストレージ機器として用いられる場合の2通りがある。
パーソナルコンピュータ100に接続される場合は、例
えばパーソナルコンピュータ100がディスク90に対
するデータの書込要求、読出要求を発生させる。この場
合は、USBタスク、キャッシュタスク、ドライブタス
クが機能して、データの書込又は読出が行われる。
As described above, for recording / reproducing data to / from the disc 90, the recording / reproducing apparatus 1 is used alone as an AV device, or is connected to the personal computer (or network) 100 and is a storage device for them. There are two types when used as.
When connected to the personal computer 100, for example, the personal computer 100 issues a data write request and a data read request for the disk 90. In this case, the USB task, cache task, and drive task function to write or read data.

【0101】一方、記録再生装置1はAV機器として機
能でき、例えばユーザ操作に応じてオーディオデータ等
の記録再生が実行できるが、その場合は、操作部7から
のユーザーの記録操作、再生操作に応じて、システムコ
ントローラ8上で起動されている録再管理タスクがディ
スク90に対するデータの書込要求、読出要求を発生さ
せる。この場合は、ファイルタスク、キャッシュタス
ク、ドライブタスクが機能して、データの書込又は読出
が行われる。
On the other hand, the recording / reproducing apparatus 1 can function as an AV device and can record / reproduce audio data or the like in accordance with a user's operation. In response, the recording / reproducing management task activated on the system controller 8 issues a data write request and a data read request for the disk 90. In this case, the file task, cache task, and drive task function to write or read data.

【0102】あくまでここで説明する範囲としてのデー
タキャッシュに関する動作や伝送する情報は、録再管理
タスクとパーソナルコンピュータ100で同様であり、
またファイルタスクとUSBタスクは同様となるため、
これらを共通に説明する。なお、パーソナルコンピュー
タ100等ではディスク90上のアドレス(adrs)を論
理アドレスで扱い、ドライブタスクではディスク90上
のアドレス(adrs)を物理アドレスとして扱う。このた
め実際には論理/物理アドレス変換タスクが、例えばU
SBタスクとキャッシュタスクの間に介在され、キャッ
シュタスク、ドライブタスクでは物理アドレスによりア
ドレス(adrs)を、USBタスクやパーソナルコンピュ
ータ100側では論理アドレスによりアドレス(adrs)
を、それぞれ扱うことになるが、説明の簡略化のため、
論理/物理アドレス変換については省略する。
The operation regarding the data cache and the information to be transmitted, which are the ranges described here, are the same between the recording / reproducing management task and the personal computer 100.
Since the file task and USB task are the same,
These are commonly explained. It should be noted that the personal computer 100 or the like handles the address (adrs) on the disk 90 as a logical address, and the drive task handles the address (adrs) on the disk 90 as a physical address. Therefore, in practice, a logical / physical address conversion task, for example, U
It is interposed between the SB task and the cache task, and the cache task and the drive task use the physical address (adrs), and the USB task and the personal computer 100 side use the logical address (adrs).
Will be treated respectively, but for simplification of explanation,
The logical / physical address conversion is omitted.

【0103】まず図13でディスクライト時を説明す
る。手順W1では、録再管理タスク(又はPC)が書込
要求(ライト要求)を発生させると共に書込データを転
送する。ライト要求としては、ディスク90での書込の
起点となるアドレス(adrs)及びデータ長(length)の
情報を含む。そして書込データ(Wdata)を転送する。
ファイルタスク(又はUSBタスク)は、ライト要求が
発生し、入出力処理部5(又はUSBインターフェース
4)に書込データ(Wdata)が供給されてくると、手順
W11として、キャッシュタスクに対してキャッシュ書
込要求を行う。このキャッシュ書込要求ではアドレス
(adrs)及びデータ長(length)の情報をキャッシュタ
スクに伝える。キャッシュタスクは、手順W21におい
て、アドレス(adrs)に基づいて上述した式「Cid=
(N× cnt) + remainer(adrs ÷ N)」によりキャッ
シュアドレスCidを算出し、手順W22として算出し
たキャッシュアドレスCidをファイルタスク(又はU
SBタスク)に伝える。即ちキャッシュメモリ3におい
て書込データ(Wdata)を書き込むべきキャッシュアド
レスを伝える。
First, the disk write operation will be described with reference to FIG. In step W1, the recording / reproduction management task (or PC) issues a write request (write request) and transfers write data. The write request includes information on the address (adrs) and the data length (length) that are the starting points of writing on the disk 90. Then, the write data (Wdata) is transferred.
When a write request is generated and the write data (Wdata) is supplied to the input / output processing unit 5 (or USB interface 4), the file task (or USB task) caches the cache task as the procedure W11. Make a write request. In this cache write request, information on the address (adrs) and the data length (length) is transmitted to the cache task. In step W21, the cache task uses the expression “Cid =” described above based on the address (adrs).
(N × cnt) + remainer (adrs ÷ N) ”, and the cache address Cid calculated in step W22 is used for the file task (or U).
SB task). That is, the cache memory 3 transmits the cache address to which the write data (Wdata) should be written.

【0104】これに応じてファイルタスク(又はUSB
タスク)は、手順W12として、書込データ(Wdata)
を指定されたキャッシュアドレスCidを起点としてキ
ャッシュメモリ3に書き込んでいく処理を行う。そして
キャッシュ書込が完了したら、手順W13として、キャ
ッシュタスクに対してキャッシュ書込完了を通知する。
またこのとき、キャッシュ書込完了の時点で、録再管理
タスク(又はPC)に対しては書込完了を通知する。例
えばパーソナルコンピュータ100や録再管理タスク
は、一度ライト要求を送信した後は、そのライト要求に
対するライト完了がコマンドOKの通知とされ、そのコ
マンドOKとされた後に、次のライト要求が可能とな
る。従って、パーソナルコンピュータ100や録再管理
タスクは、連続的にライト要求を行う場合は、この時点
で次のライト要求を発生させることが可能となる。
In response to this, the file task (or USB
Task) is write data (Wdata) as procedure W12.
Is written in the cache memory 3 starting from the designated cache address Cid. Then, when the cache writing is completed, in step W13, the cache writing is notified to the cache task.
At this time, when the cache writing is completed, the recording / reproducing management task (or PC) is notified of the writing completion. For example, the personal computer 100 or the recording / reproducing management task, after transmitting a write request once, reports the completion of writing to the write request as a command OK notification, and after the command OK, the next write request becomes possible. . Therefore, when the personal computer 100 and the recording / reproducing management task continuously make write requests, the next write request can be generated at this point.

【0105】ファイルタスク(又はUSBタスク)から
のキャッシュ書込完了の通知があると、キャッシュタス
クは手順W23として、ドライブタスクに対してディス
ク90への書込要求を行う。ドライブタスクは手順W3
1として、キャッシュタスクからの書込要求に応じて、
キャッシュメモリ3に保持された書込データ(Wdata)
を読み出してストレージ部2に転送し、指定されたアド
レス(adrs)から記録するように制御することになる。
そしてストレージ部2においてディスク90へのデータ
書込が完了したら、手順W32としてキャッシュタスク
に対してディスク書込完了を通知する。ここまでの処理
により、書込データ(Wdata)のディスク90への書込
が完了する。
When the cache write completion is notified from the file task (or USB task), the cache task requests the drive task to write to the disk 90 in step W23. Drive task is procedure W3
1, in response to a write request from the cache task,
Write data (Wdata) held in the cache memory 3
Is read out, transferred to the storage unit 2, and recorded from the specified address (adrs).
Then, when the data writing to the disk 90 is completed in the storage unit 2, the completion of the disk writing is notified to the cache task in step W32. By the processing up to this point, the writing of the write data (Wdata) to the disc 90 is completed.

【0106】なお、このようにキャッシュメモリ3に格
納されたデータをディスク90に書き込むフラッシュ動
作は、ライト要求毎に実行する必要はなく、所定のフラ
ッシュタイミングにおいて実行されればよい。例えばキ
ャッシュメモリ3に書き込まれたデータを或る程度の時
間フラッシュさせないでおき、所要の時点でまとめてフ
ラッシュすることで、フラッシュ動作を効率化できる。
特にディスク90に対する書込動作を効率化できる。さ
らにその際に単純に順次各データをフラッシュしていく
のではなく、特定の優先順位を設けてフラッシュ処理す
ることでキャッシュメモリ3の応答性向上を実現でき
る。この処理については後にフラッシュ処理例<1><
2>として述べる。
The flash operation for writing the data stored in the cache memory 3 to the disk 90 in this way does not have to be executed for each write request, and may be executed at a predetermined flash timing. For example, the data written in the cache memory 3 may not be flushed for a certain period of time, and may be collectively flushed at a required time point, so that the flush operation can be made efficient.
In particular, the write operation on the disk 90 can be made efficient. Further, at that time, the responsiveness of the cache memory 3 can be improved by performing a flash process with a specific priority rather than simply sequentially flushing each data. This processing will be described later in flash processing example <1><
2>.

【0107】ところで、キャッシュメモリ3の状態は上
述したようにキャッシュ管理データで管理されるが、上
記手順W12で書込データ(Wdata)のキャッシュメモ
リ3への書込が行われることに応じて、キャッシュ管理
データでは、該当キャッシュアドレスCidについて図
12に示したFATクラスタ番号(adrs)が書き込ま
れ、またキャッシュセクター情報が更新される。またキ
ャッシュメモリ3に格納された書込データ(Wdata)
が、手順W31でディスク90へ書き込まれる(即ちフ
ラッシュされる)ことに応じて、その書込データ(Wdat
a)が格納されていたキャッシュアドレスCidはフラ
ッシュ済みとなるようにキャッシュ管理データのフラッ
シュ情報が更新される。
By the way, the state of the cache memory 3 is managed by the cache management data as described above. In the cache management data, the FAT cluster number (adrs) shown in FIG. 12 is written for the corresponding cache address Cid, and the cache sector information is updated. Also, write data (Wdata) stored in the cache memory 3
Is written (that is, flushed) to the disk 90 in step W31, the write data (Wdat
The flush information of the cache management data is updated so that the cache address Cid in which a) was stored is flushed.

【0108】次に図14でディスクリード時の動作を説
明する。これはキャッシュヒットしなかった場合であ
る。手順R1で、録再管理タスク(又はPC)は読出要
求(リード要求)を発生させる。リード要求としては、
ディスク90での読出の起点となるアドレス(adrs)及
びデータ長(length)の情報を含む。ファイルタスク
(又はUSBタスク)は、リード要求が発生すると、手
順R11として、キャッシュタスクに対してキャッシュ
読出要求を行う。このキャッシュ読出要求ではアドレス
(adrs)及びデータ長(length)の情報をキャッシュタ
スクに伝える。キャッシュタスクは、手順R21におい
て、アドレス(adrs)に基づいて上述した式「Cid=
(N× cnt) + remainer(adrs ÷ N)」によりキャッ
シュアドレスCidを算出し、そのキャッシュアドレス
Cidを起点として、上述したN×Mのマトリクス設定
されたキャッシュ領域における余り値が同一の行での検
索を行う。この検索処理は後述する。ここで、キャッシ
ュ検索を行っても、要求されたアドレス(adrs)のデー
タが発見されなかったとする。即ちキャッシュヒットし
なかったため、キャッシュタスクは続いて手順R22
で、ドライブタスクに対してディスク90からの読出要
求を行う。このとき、ディスクから読み出すべきアドレ
ス(adrs)、データ長(length)、及び読み出したデー
タを書き込ませるキャッシュメモリ3のキャッシュアド
レスCidを通知する。ドライブタスクは手順R31と
して、キャッシュタスクからの書込要求に応じて、スト
レージ部2が指定されたアドレス(adrs)から指定され
たデータ長(length)のデータ再生を行うように制御す
る。そして読み出されたデータは、指定されたキャッシ
ュアドレスCidに基づいて、キャッシュメモリ3に書
き込んでいく。そしてドライブタスクは、ストレージ部
2におけるディスク90からのデータ読出、及びキャッ
シュメモリ3への書込が完了したら、手順R32として
キャッシュタスクに対してディスク読出完了を通知す
る。
Next, the operation at the time of disc reading will be described with reference to FIG. This is when there is no cache hit. In step R1, the recording / reproduction management task (or PC) issues a read request (read request). As a lead request,
It includes information of an address (adrs) and a data length (length) which are the starting points of reading on the disk 90. When a read request is issued, the file task (or USB task) makes a cache read request to the cache task as procedure R11. In this cache read request, information of address (adrs) and data length (length) is transmitted to the cache task. In the procedure R21, the cache task uses the expression "Cid =" based on the address (adrs).
(N × cnt) + remainer (adrs ÷ N) ”, and the cache address Cid is calculated. Do a search. This search process will be described later. Here, it is assumed that the data of the requested address (adrs) is not found even if the cache search is performed. That is, since no cache hit occurs, the cache task continues with the procedure R22.
Then, a read request from the disk 90 is issued to the drive task. At this time, the address (adrs) to be read from the disk, the data length (length), and the cache address Cid of the cache memory 3 into which the read data is written are notified. In step R31, the drive task controls the storage unit 2 to reproduce the data of the specified data length (length) from the specified address (adrs) in response to the write request from the cache task. Then, the read data is written in the cache memory 3 based on the designated cache address Cid. Then, when the data reading from the disk 90 in the storage unit 2 and the writing to the cache memory 3 are completed, the drive task notifies the cache task of the disk reading completion as procedure R32.

【0109】するとキャッシュタスクは手順R23で、
上記手順R11でのキャッシュ読出要求に対応したレス
ポンスとして、読出を行うべきキャッシュアドレスCi
dを通知する。即ちドライブタスクによって読出データ
(Rdata)が書き込まれたキャッシュアドレスCidを
通知するものとなる。
Then, the cache task executes the procedure R23.
As a response corresponding to the cache read request in the above procedure R11, the cache address Ci to be read is to be read.
Notify d. That is, the cache address Cid in which the read data (Rdata) is written by the drive task is notified.

【0110】これに応じてファイルタスク(又はUSB
タスク)は、手順R12として、指定されたキャッシュ
アドレスCidから読出データ(Rdata)を読み出し、
入出力処理部5又はパーソナルコンピュータ100側に
転送していく。そしてキャッシュ読出及び転送が完了し
たら、手順R13として、録再管理タスク(又はPC)
に対して読出完了を通知する。なお、実際には、手順R
13の読出完了の通知は手順R12のデータの転送と同
時に行われる場合もある。
In response to this, the file task (or USB
Task) reads the read data (Rdata) from the specified cache address Cid in step R12,
The data is transferred to the input / output processing unit 5 or the personal computer 100 side. When the cache read and transfer are completed, the recording / reproduction management task (or PC) is executed as procedure R13.
Notify the completion of reading. Incidentally, in practice, the procedure R
The notification of the read completion in 13 may be issued at the same time as the data transfer in the procedure R12.

【0111】例えばパーソナルコンピュータ100や録
再管理タスクは、読出完了の通知に応じて次のリード要
求が可能となる。ところで、オーディオデータのように
連続した長大なデータであって、また入出力処理部5か
らの出力として時間的な連続性を保たなければならない
場合、読出完了の通知を待って新たに続きのデータを要
求するのでは間に合わないおそれもあり、またストレー
ジ部2での再生動作としては、ディスク90上で連続し
ているデータであるにもかかわらず、一旦読出を停止し
てリード要求を待って再度読出を開始するということ
は、非常に非効率的な動作となり、余分な電力消費も多
くなる。そこで通常、ドライブタスク側では例えばキャ
ッシュタスクの指示に基づいて、ストレージ部2の読出
動作として先読み動作を行わせ、まだ要求されていない
データについてもキャッシュメモリ3へバッファリング
していくようにしている。
For example, the personal computer 100 or the recording / reproducing management task can make the next read request in response to the read completion notification. By the way, when the data is continuous and long data such as audio data, and it is necessary to maintain temporal continuity as an output from the input / output processing unit 5, a new completion of the reading is waited for after the notification of the reading completion. Requesting data may not be in time, and as the reproducing operation in the storage unit 2, even if the data is continuous on the disk 90, the reading is temporarily stopped and the read request is waited for. Starting reading again is a very inefficient operation and consumes extra power. Therefore, normally, on the drive task side, a pre-read operation is performed as a read operation of the storage unit 2 based on, for example, an instruction of the cache task, and data not requested yet is also buffered in the cache memory 3. .

【0112】例えば手順R31で要求されたデータをデ
ィスク90から読み出してキャッシュメモリ3へ書き込
んだ際には、引き続きディスク90から連続的に読出を
実行させ、それぞれキャッシュメモリ3へ連続して書き
込んでいく。もちろんディスク90上でのアドレス(ad
rs)は連続したものであるため、キャッシュメモリ3上
でのキャッシュアドレスCidとしても連続したアドレ
スに書き込んで行くようにされることになる。このよう
な先読み動作により、図11に示したようなバッファリ
ングが行われていく。そして特にオーディオデータの場
合、次に要求されるデータが、先に要求されたデータに
連続する続きのデータとされる蓋然性は非常に高い。従
って先読みバッファリングを行っておけば、次のリード
要求の際には、次に説明するキャッシュヒットによりデ
ータを非常に迅速に転送することができる。これによ
り、入出力処理部5が時間的に連続してデータ出力する
ような場合でも、それに間に合うように入出力処理部5
に対して読出データを供給できる。
For example, when the data requested in the procedure R31 is read from the disk 90 and written to the cache memory 3, the disk 90 is continuously read continuously, and the data is continuously written to the cache memory 3. . Of course, the address on the disk 90 (ad
Since rs) is continuous, the cache address Cid on the cache memory 3 is also written to continuous addresses. By such a prefetch operation, the buffering as shown in FIG. 11 is performed. In particular, in the case of audio data, it is highly probable that the next requested data will be a continuous data following the previously requested data. Therefore, if the read-ahead buffering is performed, the data can be transferred very quickly by the cache hit described below when the next read request is made. As a result, even when the input / output processing unit 5 outputs data continuously in terms of time, the input / output processing unit 5 should be in time.
Can be supplied with read data.

【0113】なお、キャッシュメモリ3の状態を管理す
るキャッシュ管理データでは、上記手順W32で読出デ
ータ(Rdata)のキャッシュメモリ3への書込が行われ
ることに応じて、該当キャッシュアドレスCidについ
て図12に示したFATクラスタ番号(adrs)が書き込
まれ、またキャッシュセクター情報が更新される。
In the cache management data for managing the state of the cache memory 3, the read data (Rdata) is written in the cache memory 3 in the above procedure W32, and the cache address Cid shown in FIG. The FAT cluster number (adrs) shown in is written and the cache sector information is updated.

【0114】次に図15でディスクリード時の動作とし
て、キャッシュヒットした場合の動作を説明する。手順
R1で、録再管理タスク(又はPC)がリード要求を発
生させ、手順R11でファイルタスク(又はUSBタス
ク)がキャッシュタスクに対してキャッシュ読出要求を
行うことは図14の場合と同様である。キャッシュタス
クは、手順R21において、アドレス(adrs)に基づい
て上述した式「Cid= (N× cnt) + remainer(adrs
÷ N)」によりキャッシュアドレスCidを算出し、
そのキャッシュアドレスCidを起点として、上述した
N×Mのマトリクス設定されたキャッシュ領域における
余り値が同一の行での検索を行う。ここで、キャッシュ
検索結果として、要求されたアドレス(adrs)のデータ
がキャッシュメモリ3内に存在したとすると、キャッシ
ュタスクは手順R23で、上記手順R11でのキャッシ
ュ読出要求に対応したレスポンスとして、読出を行うべ
きキャッシュアドレスCidを通知する。即ち過去の或
る時点においてドライブタスクによって読出データ(Rd
ata)が書き込まれたキャッシュアドレスCidを通知
するものとなる。
Next, as the operation at the time of disk read, the operation in the case of a cache hit will be described with reference to FIG. It is the same as in the case of FIG. 14 that the recording / reproduction management task (or PC) issues a read request in step R1 and the file task (or USB task) issues a cache read request to the cache task in step R11. . In the procedure R21, the cache task uses the expression “Cid = (N × cnt) + remainer (adrs) based on the address (adrs) in the procedure R21.
÷ N) ”to calculate the cache address Cid,
With the cache address Cid as a starting point, a search is performed on the rows having the same residual value in the above-described N × M matrix-set cache areas. Assuming that the data of the requested address (adrs) exists in the cache memory 3 as the cache search result, the cache task reads in step R23 as a response corresponding to the cache read request in step R11. Is notified of the cache address Cid to be executed. That is, the read data (Rd
The cache address Cid in which ata) is written is notified.

【0115】これに応じてファイルタスク(又はUSB
タスク)は、手順R12として、指定されたキャッシュ
アドレスCidから読出データ(Rdata)を読み出し、
入出力処理部5又はパーソナルコンピュータ100側に
転送していく。そしてキャッシュ読出及び転送が完了し
たら、手順R13として、録再管理タスク(又はPC)
に対して読出完了を通知する。
In response to this, the file task (or USB
Task) reads the read data (Rdata) from the specified cache address Cid in step R12,
The data is transferred to the input / output processing unit 5 or the personal computer 100 side. When the cache read and transfer are completed, the recording / reproduction management task (or PC) is executed as procedure R13.
Notify the completion of reading.

【0116】このように、リード要求にかかる読出デー
タ(Rdata)が、既にキャッシュメモリ3内に格納され
ている場合は、ストレージ部2における読出動作を必要
とせずに、入出力処理部5又はパーソナルコンピュータ
100側に要求された読出データ(Rdata)を供給する
ことが可能となり、上述したキャッシュヒットしなかっ
た場合に比べて、応答性は非常によいものとなる。
As described above, when the read data (Rdata) relating to the read request is already stored in the cache memory 3, the read operation in the storage unit 2 is not required and the input / output processing unit 5 or the personal computer is not required. The requested read data (Rdata) can be supplied to the computer 100 side, and the responsiveness becomes very good as compared with the case where no cache hit occurs as described above.

【0117】5.キャッシュ検索処理 上記のようにキャッシュタスクが実行するキャッシュ検
索処理について説明する。即ち要求されたデータがキャ
ッシュメモリ3内に存在するか否かを判別する処理であ
る。
5. Cache Search Process The cache search process executed by the cache task as described above will be described. That is, this is a process of determining whether or not the requested data exists in the cache memory 3.

【0118】上述したようにキャッシュ領域をN×Mの
マトリクス管理する本例の場合、キャッシュ領域におい
てデータが記録されるセル(キャッシュアドレスCi
d)は、ディスク90上でのアドレス(adrs)が指定さ
れた際に「Cid= (N× cnt) + remainer(adrs ÷
N)」の演算で求められる。ここで、ポインタcntの
値は、データをキャッシュメモリ3に書き込む時点での
カウント値であり、検索時の値とは必ずしも一致せず、
検索時に(N× cnt)の値は特定できないが、或るアドレ
ス(adrs)のデータを記憶するキャッシュアドレスCi
dは、remainer(adrs ÷ N)としての余り値を求める項
で規定されることになる。
In the case of the present example in which the N × M matrix management of the cache area is performed as described above, a cell (cache address Ci
d) is “Cid = (N × cnt) + remainer (adrs ÷ when the address (adrs) on the disk 90 is designated.
N) ”. Here, the value of the pointer cnt is the count value at the time of writing the data in the cache memory 3, and does not always match the value at the time of search.
The value of (N × cnt) cannot be specified at the time of search, but the cache address Ci for storing the data of a certain address (adrs)
d will be defined by the term for obtaining the remainder value as remaining (adrs ÷ N).

【0119】例えば上記図7に示したように、N=8と
すると、N×Mのマトリクスにおいては、余り値0の行
〜余り値7の行が存在する。従って、或るアドレス(ad
rs)のデータが要求された際には、そのアドレス(adr
s)を用いたremainer(adrs ÷ N)の演算で得られる余
り値の行を検索すればよいものとなる。
For example, as shown in FIG. 7, if N = 8, there are rows with a remainder value of 0 to rows with a remainder value of 7 in the N × M matrix. Therefore, some address (ad
When the data of (rs) is requested, its address (adr
It is only necessary to retrieve the row of the residual value obtained by the operation of remainr (adrs ÷ N) using (s).

【0120】具体例で説明する。例えばキャッシュメモ
リ3には上記図10のようにデータが記憶されている場
合を考える。この時点でポインタcnt=4であるとす
る。ここで、アドレス(adrs)=「25」のデータが要
求されたとする。キャッシュタスクは、このとき、Ci
d= (N× cnt) + remainer(adrs ÷N)の演算を行う
ことで、図16に示すキャッシュアドレスCid=33
を得ることになる。ここで、remainer(adrs ÷ N)=2
であり、Cid=33は、余り値「2」の行のキャッシ
ュアドレスである。キャッシュタスクは、Cid=33
を起点として、図16に太枠で示した余り値2の行の各
キャッシュアドレスCidを検索していけばよい。
A specific example will be described. For example, consider a case where data is stored in the cache memory 3 as shown in FIG. It is assumed that the pointer cnt = 4 at this point. Here, it is assumed that the data of the address (adrs) = “25” is requested. At this time, the cache task is Ci
By performing the calculation of d = (N × cnt) + remainer (adrs ÷ N), the cache address Cid = 33 shown in FIG.
You will get Where remainr (adrs ÷ N) = 2
And Cid = 33 is the cache address of the row with the remainder value “2”. The cache task has Cid = 33
Starting from, each cache address Cid in the row of the remainder value 2 shown by the thick frame in FIG. 16 may be searched.

【0121】この場合、Cid=33にはデータが格納
されていない。次にCid=25もデータが格納されて
いない。次にCid=17もデータが格納されていな
い。Cid=9にはadrs=33のデータが格納されてい
る。そしてCid=1を確認した時点でadrs=25のデ
ータを発見し、キャッシュヒットと判断できる。
In this case, no data is stored in Cid = 33. Next, for Cid = 25, no data is stored. Next, no data is stored for Cid = 17. The data of adrs = 33 is stored in Cid = 9. Then, when Cid = 1 is confirmed, the data of adrs = 25 is discovered, and it can be determined that the cache hit.

【0122】なお、Cid=1も該当しなかった場合
は、次に検索対象を最終ブロック(M−1)Nの余り値
2のキャッシュアドレス(Cid=8(M−1)+1)
に進めていく。最終的に余り値2のキャッシュアドレス
の全てを検索しても該当データが存在しなかった場合は
キャッシュヒットしなかったと判断することになる。
If Cid = 1 does not apply, the search target is the cache address of the remainder value 2 of the final block (M-1) N (Cid = 8 (M-1) +1).
Proceed to. Finally, if the corresponding data does not exist even if all the cache addresses having the remainder value 2 are searched, it is determined that no cache hit has occurred.

【0123】この具体例からわかるように、キャッシュ
検索処理は、その対象となるキャッシュアドレスCid
(セル)は、全てのセルの1/Nの数とすることができ
る。即ち、通常、キャッシュ検索の場合にキャッシュ領
域の全てのキャッシュアドレスCidについて、要求さ
れたデータの有無を確認しなければならないが、その処
理を1/Nとすることができ、キャッシュ検索処理を著
しく迅速化できるものとなる。これによりデータ要求時
の応答性の向上を実現できる。なお、実際の検索はキャ
ッシュ管理データに対して行われる。即ち上記例の場
合、Cid=33、25、17・・・についての各キャ
ッシュ管理データのFATクラスタ番号を確認して行く
処理となる。
As can be seen from this specific example, the cache search process is executed by the target cache address Cid.
(Cell) may be 1 / N of all cells. That is, normally, in the case of a cache search, it is necessary to check the presence / absence of requested data for all cache addresses Cid in the cache area. It can be speeded up. This makes it possible to improve the responsiveness when requesting data. The actual search is performed on the cache management data. That is, in the case of the above example, the process is to confirm the FAT cluster number of each cache management data for Cid = 33, 25, 17 ...

【0124】キャッシュタスクにおいて、このような検
索処理を実現するフローチャートを図17に示す。ステ
ップF101では、要求されたアドレス(adrs)に基づ
いてCid= (N× cnt) + remainer(adrs ÷ N)の
演算を行ってキャッシュアドレスCidを得る。上記例
の場合、この処理でキャッシュアドレスCid=33を
得ることになる。そしてステップF102を介してF1
03に進み、当該キャッシュアドレスCid(Cid=
33)についてのキャッシュ管理データを参照して、要
求されたデータ(上記例の場合adrs=25)が記憶され
ているか否かを確認する。要求データが存在しなければ
ステップF104に進んで、検索すべきキャッシュアド
レスCidの値を、Cid−Nとする。上記例の場合、
新たなキャッシュアドレスCidは、33−8=25に
より、Cid=25となり、ステップF102→F10
3と進んで、当該キャッシュアドレスCid(Cid=
25)についてのキャッシュ管理データを参照して、要
求されたデータ(上記例の場合adrs=25)が記憶され
ているか否かを確認する。このループにより、例えばad
rs=25のデータが要求された場合は、余り値「1」の
行の各セルが順次前方に検索されていくことになる。な
おステップF104では、キャッシュアドレスCidが
最初のブロック(0N)の値となったら、最後のブロッ
クの同じ余り値の行のキャッシュアドレスの値とする。
FIG. 17 shows a flow chart for realizing such a retrieval process in the cache task. In step F101, a cache address Cid is obtained by calculating Cid = (N × cnt) + remainer (adrs ÷ N) based on the requested address (adrs). In the case of the above example, the cache address Cid = 33 is obtained by this processing. Then, through step F102, F1
03, the cache address Cid (Cid =
With reference to the cache management data for 33), it is confirmed whether the requested data (adrs = 25 in the above example) is stored. If the requested data does not exist, the process proceeds to step F104, and the value of the cache address Cid to be searched is set to Cid-N. In the above example,
The new cache address Cid becomes Cid = 25 due to 33-8 = 25, and steps F102 → F10.
3, the cache address Cid (Cid =
With reference to the cache management data of 25), it is confirmed whether the requested data (adrs = 25 in the above example) is stored. With this loop, for example ad
When data of rs = 25 is requested, each cell in the row having the remainder value “1” is sequentially searched forward. In step F104, when the cache address Cid reaches the value of the first block (0N), it is set to the value of the cache address of the row having the same remainder value in the last block.

【0125】ステップF103で要求データが発見され
た場合は、ステップF105に進み、キャッシュヒット
としてそのキャッシュアドレスCidを通知することに
なる。即ち図15の手順R23として、キャッシュアド
レスCidをファイルタスク(又はUSBタスク)に通
知する。
If the requested data is found in step F103, the flow advances to step F105 to notify the cache address Cid as a cache hit. That is, in step R23 of FIG. 15, the cache address Cid is notified to the file task (or USB task).

【0126】一方、ステップF103で要求データが発
見されないまま検索が続けられ、当該余り値の行を一周
した場合は、ステップF102からF106に進み、キ
ャッシュヒットしなかったとする。この場合図14に示
した処理が行われることになる。
On the other hand, if the search is continued without finding the requested data in step F103 and the line having the surplus value is circled, the process proceeds from step F102 to F106, and it is assumed that no cache hit occurs. In this case, the processing shown in FIG. 14 is performed.

【0127】ところで、このようなキャッシュ検索処理
によりからわかるように、N×Mのマトリクス状に扱っ
てキャッシュ制御を行う場合において、Nの値が大きい
ほど、キャッシュ検索処理は効率化できる。一方、図8
〜図10で説明したキャッシュ書込動作からわかるよう
に、本例のキャッシュ制御方式でキャッシュアドレスC
idが決定されると、Nの値が大きいほど、無効セルが
多く残される可能性が高くなる。つまり本例のキャッシ
ュ制御方式では、検索速度とメモリ利用効率(断片化抑
制率)がトレードオフの関係になっている。
By the way, as can be seen from the cache search process, the cache search process can be made more efficient as the value of N is larger in the case of performing cache control by handling it in an N × M matrix. On the other hand, FIG.
As can be seen from the cache write operation described with reference to FIG. 10, the cache control method of this example uses the cache address C
When the id is determined, the larger the value of N, the higher the possibility that more invalid cells are left. That is, in the cache control method of this example, the search speed and the memory utilization efficiency (fragmentation suppression rate) are in a trade-off relationship.

【0128】例えば図18に模式的に示すが、図18
(a)をN=8とした場合のマトリクスであるとした場
合に、図18(b)に示すようにN値を8より小さくし
た場合は、メモリ利用効率は向上できる。即ち平均的に
見て、書込時に空き状態で残されるセルが比較的少なく
なる。その一方で、横方向のセル数、即ちブロック数M
bが多くなり、同一の余り値となるアドレスの数が多く
なるため、検索時により多数のキャッシュアドレスCi
dの検索が必要となり、検索速度は低下する。一方、図
18(c)に示すようにN値を8より大きくした場合
は、横方向のセル数、即ちブロック数Mbが少なくな
り、同一の余り値となるアドレスの数が少なくなるた
め、検索時に検索するキャッシュアドレスCidの数が
減少され、検索速度は向上する。一方、平均的に見て、
書込時に空き状態で残されるセルが多くなり、メモリ利
用効率が低下してしまう。
For example, as schematically shown in FIG.
If (a) is a matrix with N = 8 and the N value is smaller than 8 as shown in FIG. 18 (b), the memory utilization efficiency can be improved. That is, on average, the number of cells left in an empty state during writing is relatively small. On the other hand, the number of cells in the horizontal direction, that is, the number of blocks M
Since b increases and the number of addresses having the same remainder value increases, a larger number of cache addresses Ci during search
The search of d becomes necessary, and the search speed decreases. On the other hand, when the N value is larger than 8 as shown in FIG. 18C, the number of cells in the horizontal direction, that is, the number of blocks Mb decreases, and the number of addresses having the same remainder value decreases. The number of cache addresses Cid that are sometimes searched is reduced, and the search speed is improved. On the other hand, on average,
Many cells are left in an empty state at the time of writing, and the memory utilization efficiency is reduced.

【0129】このような事情から、本例のキャッシュ制
御方式においてN値の設定は、その機器の使用態様、記
録媒体、扱うデータの種別などに応じて適切な値に設定
されるとよい。また、例えば使用状態やユーザー設定に
応じて、N値の設定が変化されるようにしてもよい。ま
た、動作状況に応じてN値が自動的に最適化制御される
ようにすれば、最も好ましいキャッシュ制御を実行でき
るものとなる。
Under these circumstances, the N value in the cache control method of this example is preferably set to an appropriate value according to the usage mode of the device, the recording medium, the type of data to be handled, and the like. Further, for example, the setting of the N value may be changed according to the usage state or the user setting. Further, if the N value is automatically optimized and controlled according to the operating condition, the most preferable cache control can be executed.

【0130】6.フラッシュ処理例<1> 本例ではキャッシュメモリ3については上述してきたよ
うにキャッシュアドレスCidの設定や検索が行われる
が、これ自体でAVデータ、PCデータの両方に対応す
るキャッシュ制御方式として好適なものとなる。即ち、
ネットワークやパーソナルコンピュータからAVデータ
をダウンロードしたり、AV機器としてAVデータを記
録再生する場合において、データの連続性を確保したバ
ッファリングを行うことができ、高速性能を実現でき
る。また、ディスク上のアドレスをN(所定値)で除し
たときの余りに対応する位置によりキャッシュメモリ検
索を行うことができるため効率的で迅速な検索が実現さ
れる。従ってPCデータの読み書きの場合の高速応答性
も確保できる。さらにハッシュアルゴリズムのような複
雑な演算を必要としないことからキャッシュ上のアドレ
ス割当の簡易性も実現でき、処理負担の軽減、ひいては
機器の低コスト化も促進できる。また、連続なアドレス
のデータに対して,キャッシュメモリ上でも連続性が確
保されるため、ディスクへの記録再生効率も向上でき、
アクセス回数が減ることで省電効果も見込まれる。
6. Flush processing example <1> In this example, the cache address Cid is set and searched for the cache memory 3 as described above, but it is suitable as a cache control method for both AV data and PC data. Will be things. That is,
When AV data is downloaded from a network or a personal computer, or AV data is recorded / reproduced as an AV device, data continuity can be buffered and high-speed performance can be realized. Further, since the cache memory can be searched by the position corresponding to the remainder when the address on the disk is divided by N (predetermined value), efficient and quick search is realized. Therefore, it is possible to secure high-speed response when reading and writing PC data. Further, since complicated calculation such as a hash algorithm is not required, the address allocation on the cache can be simplified, the processing load can be reduced, and the cost of the device can be reduced. Further, since the continuity is ensured on the cache memory for the data of consecutive addresses, the recording / reproducing efficiency on the disk can be improved,
Power saving effect can be expected by reducing the number of access.

【0131】そして本例では、このような効果に加え
て、キャッシュメモリ3に一時的に格納したデータの属
性に応じたフラッシュ処理制御を行うことで、上記効果
を、より一層向上させることができる。以下説明するフ
ラッシュ処理例<1>は、キャッシュメモリ3に格納さ
れたデータについてフラッシュを行う際に、各データの
属性から各データについてフラッシュ処理に要する時間
を判別し、処理時間が短いデータを優先的にフラッシュ
していく処理例である。
In the present example, in addition to such an effect, by performing the flash processing control according to the attribute of the data temporarily stored in the cache memory 3, the above effect can be further improved. . In the flash processing example <1> described below, when the data stored in the cache memory 3 is flashed, the time required for the flash processing for each data is determined from the attribute of each data, and the data with the short processing time is given priority. This is an example of a process of flashing.

【0132】なお、例えばパーソナルコンピュータ10
0からのライト要求に伴ってキャッシュメモリ3に書き
込まれるデータはセクター単位であり、一方、ストレー
ジ部2においてディスク90に書込を行うのはクラスタ
単位(例えば1クラスタ=32セクター)であると想定
する。そしてフラッシュ処理時間が異なるデータとして
は、ここではデータの属性に応じて3つのパターンがあ
るとする。連続データ、非連続データ、ブロッキング必
要データの3つである。
Incidentally, for example, the personal computer 10
It is assumed that the data written to the cache memory 3 in response to the write request from 0 is a sector unit, while the storage unit 2 writes to the disk 90 in a cluster unit (for example, 1 cluster = 32 sectors). To do. As data having different flash processing times, it is assumed here that there are three patterns depending on the attributes of the data. There are three types of data: continuous data, discontinuous data, and blocking required data.

【0133】連続データとは、ディスク90上で物理的
にアドレス(adrs)が連続する各クラスタのデータのこ
とをいう。連続データとされる複数のクラスタを連続し
てフラッシュ処理する場合、ストレージ部2において
は、ディスク90のトラックに対して1回の連続した走
査により各クラスタデータを書き込んでいける。つまり
複数のクラスタの書込の間に光学ヘッド19及び磁気ヘ
ッド18がアクセスを行う必要はなく、最も効率よく、
しかも短時間で複数のクラスタの書込が可能となる。つ
まり連続データを連続してフラッシュ処理していけば、
1クラスタあたりのフラッシュ時間は非常に短時間とな
る。
The continuous data means the data of each cluster in which the addresses (adrs) are physically continuous on the disk 90. When a plurality of clusters, which are continuous data, are continuously flash-processed, each cluster data can be written in the storage unit 2 by one continuous scan with respect to the track of the disk 90. That is, it is not necessary for the optical head 19 and the magnetic head 18 to access during writing of a plurality of clusters, and the most efficient
Moreover, it is possible to write a plurality of clusters in a short time. In other words, if you continuously flash the continuous data,
The flush time per cluster is very short.

【0134】非連続データとは、ディスク90上で物理
的にアドレス(adrs)が連続していないクラスタのデー
タのことである。つまりキャッシュメモリ3に格納され
たフラッシュすべき1つのクラスタデータであるが、そ
の前後のアドレス(adrs)のクラスタデータがフラッシ
ュするデータとしてキャッシュメモリ3に格納されてい
ない状態になっているデータである。非連続データを複
数個フラッシュする場合は、各非連続データとしてのク
ラスタのディスク90への書込の度に、光学ヘッド19
及び磁気ヘッド18はそのアドレス(adrs)に対してア
クセスすることが必要となる。このため1クラスタあた
りのフラッシュ時間は、上記連続データの場合に比べて
長くなる。
The non-consecutive data is data of clusters whose addresses (adrs) are not physically continuous on the disk 90. That is, it is one piece of cluster data stored in the cache memory 3 to be flushed, but cluster data at addresses (adrs) before and after that is not stored in the cache memory 3 as data to be flushed. . When a plurality of non-contiguous data is flashed, the optical head 19 is written every time the cluster as the non-contiguous data is written to the disk 90.
Also, the magnetic head 18 needs to access the address (adrs). Therefore, the flush time per cluster becomes longer than that in the case of the continuous data.

【0135】ブロッキング必要データとは、ディスク9
0への書込に際してブロッキング処理が必要となるデー
タである。上記のようにパーソナルコンピュータ100
から供給される書込データがセクター単位で、ディスク
90への書込単位がクラスタ単位となることから、ブロ
ッキング処理が必要となる場合が生ずる。ブロッキング
処理について図20で説明する。
The data necessary for blocking is the disk 9
This data requires a blocking process when writing to 0. As described above, the personal computer 100
Since the write data supplied from the disk unit is a sector unit and the write unit to the disk 90 is a cluster unit, a blocking process may be required in some cases. The blocking process will be described with reference to FIG.

【0136】図20(a)は、キャッシュメモリ3にお
ける或るキャッシュアドレスCid=x、x+1、x+
3の3クラスタ分の領域を示している。上述したように
各キャッシュアドレスCidのセルには、ディスク90
上のアドレス(adrs)を用いた演算による余り値によっ
て対応されるデータが格納される。ここで、例えばパー
ソナルコンピュータ100からの書込データWDが、セ
クター単位で供給され、それが図示するように、それぞ
れクラスタの一部を構成するデータであったとする。こ
のときキャッシュアドレスCid=x、x+1、x+3
の各領域において、書込データWDが書き込まれていな
い部分には、例えば過去に蓄積されたデータの一部など
の、現在無効なデータが存在する。このような書込デー
タWDをそのままフラッシュすることは、ディスク90
への書込単位がクラスタであるためできない。例えばキ
ャッシュアドレスCid=xのクラスタデータをフラッ
シュすると、ディスク90に無効なデータ部分までを書
き込んでしまい、ディスク90上で無効なデータによっ
て必要なデータが上書消去されてしまうためである。
FIG. 20A shows a cache address Cid = x, x + 1, x + in the cache memory 3.
The area of 3 clusters of 3 is shown. As described above, the disk 90 is assigned to the cell of each cache address Cid.
Data corresponding to a remainder value calculated by using the above address (adrs) is stored. Here, for example, it is assumed that the write data WD from the personal computer 100 is supplied in units of sectors and, as shown in the drawing, each of the data constitutes a part of a cluster. At this time, the cache address Cid = x, x + 1, x + 3
In each of the areas, in the portion where the write data WD is not written, currently invalid data such as a part of the data accumulated in the past exists. It is not possible to flush such write data WD as it is on the disk 90.
It cannot be done because the writing unit to is a cluster. This is because, for example, when the cluster data of the cache address Cid = x is flushed, even the invalid data portion is written to the disk 90, and the necessary data is overwritten and erased by the invalid data on the disk 90.

【0137】そこでこの場合、ブロッキング処理を行う
ものとなる。まずディスク90から当該書込データWD
に対応するアドレス(adrs)のクラスタデータを読み込
む。例えばRAM10に領域を確保し、図20(b)に
示すようにディスク90からの読出データDSDを格納
する。そして、図20(c)に示すように、読出データ
DSDのうちで無効データ領域とされている部分に相当
するセクターデータを、キャッシュメモリ3に書き込
む。するとキャッシュアドレスCid=x、x+1、x
+3におけるデータは、現在のディスク90上の対応す
るアドレス(adrs)のデータDSDに対して、書込デー
タWDの部分のセクターのみが書き換えられたデータ状
態となる。このようにブロッキングすることで、クラス
タ単位でフラッシュ処理を行うと、結果的にディスク9
0上では書込データWDのセクターのみが書き換えられ
ることになり、つまりパーソナルコンピュータ100等
からのライト要求に応じたディスク書込が実現できるも
のとなる。
Therefore, in this case, the blocking process is performed. First, the write data WD from the disc 90
The cluster data of the address (adrs) corresponding to is read. For example, an area is secured in the RAM 10 and read data DSD from the disk 90 is stored as shown in FIG. Then, as shown in FIG. 20C, the sector data corresponding to the invalid data area in the read data DSD is written in the cache memory 3. Then, the cache address Cid = x, x + 1, x
The data at +3 is in a data state in which only the sector of the write data WD is rewritten with respect to the data DSD at the corresponding address (adrs) on the current disk 90. When the flash process is performed in cluster units by blocking in this way, the disk 9
On 0, only the sector of the write data WD is rewritten, that is, the disk writing according to the write request from the personal computer 100 or the like can be realized.

【0138】このようなブロッキング処理が必要になる
データは、細かいセクター単位のライト要求のときだけ
でなく、比較的長大なデータの書込要求の場合も発生す
る。例えば図20(d)のように書込データWDとして
アドレス(adrs)が連続するデータが供給される場合で
も、その全データ長が正確にクラスタの整数倍のデータ
長となっていることはまれであるため、最後尾の数セク
ターのデータが、例えばキャッシュアドレスCid=x
+2の一部に格納される状態となる。つまりこのキャッ
シュアドレスCid=x+2に格納されたデータは、ブ
ロッキング必要データとなる。
The data for which such a blocking process is required occurs not only in the case of a write request in units of small sectors but also in the case of a request for writing a relatively long data. For example, even when data having consecutive addresses (adrs) is supplied as the write data WD as shown in FIG. 20D, it is rare that the total data length is exactly an integral multiple of the cluster. Therefore, the data of the last several sectors is, for example, the cache address Cid = x.
It is stored in a part of +2. That is, the data stored at this cache address Cid = x + 2 becomes blocking required data.

【0139】以上のようなブロッキング処理が必要なデ
ータをブロッキング必要データと呼ぶこととしている
が、このブロッキング必要データについては、フラッシ
ュ処理時にブロッキング処理が必要となることで、その
フラッシュ処理には、上記連続データや非連続データよ
りも長時間を要するものとなる。
The data requiring the above-mentioned blocking processing is called the blocking-required data. However, since the blocking processing is required at the time of the flush processing for this blocking-required data, the above-mentioned data is required for the flush processing. It will take longer than continuous or discontinuous data.

【0140】このようにキャッシュメモリ3に格納され
たデータについて、連続データ、非連続データ、ブロッ
キング必要データを考えると、1クラスタあたりのフラ
ッシュ処理時間として3パターンがあることがわかる。
そして本例のフラッシュ処理では、フラッシュ実行の際
には、まず連続データを優先してフラッシュを行い、次
に非連続データをフラッシュし、最後にブロッキング必
要データをフラッシュするものである。
Regarding the data stored in the cache memory 3 as described above, it can be seen that there are three patterns of flush processing time per cluster when considering continuous data, discontinuous data, and blocking required data.
In the flash process of this example, when the flash is executed, the continuous data is preferentially flushed first, then the non-continuous data is flushed, and finally the blocking required data is flushed.

【0141】図19に例えばキャッシュタスクによるフ
ラッシュ処理の制御手順を示す。上記図13の説明にお
いて述べたが、フラッシュ処理は必ずしもライト要求の
度に実行する必要はなく、或る程度キャッシュメモリ3
に書込データをため込んでからフラッシュすることがで
きる。例えばこのような際に、キャッシュタスクは図1
9の処理によりフラッシュ動作を制御する。
FIG. 19 shows a control procedure of flush processing by a cache task, for example. As described above with reference to FIG. 13, the flush process does not necessarily have to be executed each time a write request is made, and the cache memory 3
The write data can be stored in and then flashed. For example, in such a case, the cache task is
The flash operation is controlled by the process of 9.

【0142】まずステップF201では、キャッシュ書
込データ(ライト要求されてキャッシュメモリ3に書き
込まれたデータ)についての属性、この場合ディスク9
0上でのアドレス(adrs)から連続データを検索する。
図12で説明したように、キャッシュ管理データには、
各キャッシュアドレスCidについてFATクラスタ番
号(adrs)、フラッシュ情報、キャッシュセクター情報
が含まれている。ステップF201の連続データ検索処
理では、各キャッシュアドレスCidについてこれらの
データを確認すればよい。即ち、フラッシュ情報からま
だフラッシュを行っていないキャッシュアドレスCid
を抽出する。次に抽出したキャッシュアドレスCidの
内で、キャッシュセクター情報を参照して1クラスタを
構成する全てのセクターについて書込データWDが書き
込まれているキャッシュアドレスCid、つまりブロッ
キング必要を必要としないキャッシュアドレスCidを
抽出する。そして最後に、抽出された各キャッシュアド
レスCidにおいて、FATクラスタ番号(adrs)が連
続している複数のキャッシュアドレスCidを抽出す
る。このようにして検索された複数のキャッシュアドレ
スCidとしての各キャッシュアドレスCidに書き込
まれているデータが上述したようにフラッシュを短時間
で実行できる「連続データ」である。
First, in step F201, the attribute of the cache write data (data requested to be written and written in the cache memory 3), in this case the disk 9 is used.
The continuous data is searched from the address (adrs) on 0.
As described in FIG. 12, the cache management data includes
The FAT cluster number (adrs), flash information, and cache sector information are included for each cache address Cid. In the continuous data search process of step F201, these data may be confirmed for each cache address Cid. That is, the cache address Cid that has not yet been flushed from the flush information
To extract. Of the extracted cache addresses Cid, the cache address Cid in which the write data WD is written for all the sectors forming one cluster by referring to the cache sector information, that is, the cache address Cid that does not require blocking To extract. Finally, in each of the extracted cache addresses Cid, a plurality of cache addresses Cid having consecutive FAT cluster numbers (adrs) are extracted. The data written in each cache address Cid as the plurality of cache addresses Cid retrieved in this way is the “continuous data” that can execute the flush in a short time as described above.

【0143】そこでステップF202で、検索された各
「連続データ」についてフラッシュを行う。即ち図13
で手順W23として示したように、ドライブタスクに対
して各「連続データ」についてのディスク書込要求を行
っていく。各「連続データ」の全てについてのフラッシ
ュが完了したら、ステップF203からF204に進
む。
Therefore, in step F202, flushing is performed for each "consecutive data" retrieved. That is, FIG.
In step W23, the disk write request for each "continuous data" is issued to the drive task. Upon completion of flushing all of the "continuous data", the process proceeds from step F203 to F204.

【0144】ステップF204では、ブロッキングが不
要の非連続データを検索する。即ちこれは、上記のよう
に未フラッシュであり、かつブロッキング処理が不要と
されたキャッシュアドレスCidの内で、連続データと
して抽出されなかったキャッシュアドレスCidを抽出
するものとなる。このように「非連続データ」が抽出さ
れたら、ステップF205で、検索された各「非連続デ
ータ」についてフラッシュを行う。即ち図13で手順W
23として示したように、ドライブタスクに対して各
「非連続データ」についてのディスク書込要求を行って
いく。
In step F204, non-continuous data that does not require blocking is searched. That is, this is to extract the cache address Cid that has not been extracted as continuous data from the cache addresses Cid that have not been flushed and that the blocking process is unnecessary as described above. When the "non-continuous data" are extracted in this way, in step F205, flushing is performed for each of the retrieved "non-continuous data". That is, the procedure W in FIG.
As indicated by 23, the disk write request for each “non-consecutive data” is issued to the drive task.

【0145】なお、複数個の非連続データが存在する場
合には、その連続していないアドレス(adrs)につい
て、値の若い順にフラッシュ処理していくことが好適で
ある。これは、ディスク90上のスパイラル状のトラッ
クを走査していく光学ヘッド19及び磁気ヘッド18の
アクセスを効率化するものとなる。例えば比較的アドレ
スが近い場合にはトラックジャンプによるアクセス不要
としたり、順方向のアクセスのみを発生させ逆方向のア
クセスをなくすことになることで、アクセス時間を最小
限とできるためである。各「非連続データ」の全てにつ
いてのフラッシュが完了したら、ステップF206から
F207に進む。
When there are a plurality of non-contiguous data, it is preferable that the non-contiguous addresses (adrs) are flushed in ascending order of the value. This makes the access of the optical head 19 and the magnetic head 18 which scans the spiral track on the disk 90 efficient. This is because, for example, when the addresses are relatively close to each other, the access by the track jump is unnecessary, or only the forward access is generated and the backward access is eliminated, so that the access time can be minimized. When the flush of all the "non-consecutive data" is completed, the process proceeds from step F206 to F207.

【0146】ステップF207では、ブロッキング必要
データを検索する。即ちこれは、上記のように未フラッ
シュであるキャッシュアドレスCidの内で、ブロッキ
ング処理が不要とされたキャッシュアドレスCid以外
のキャッシュアドレスCidを抽出するものとなる。こ
のように「ブロッキング必要データ」が抽出されたら、
ステップF208で、検索された各「ブロッキング必要
データ」についてブロッキング及びフラッシュを行う。
なお、図13においてはブロッキング処理について示さ
なかったが、この場合キャッシュタスクはドライブタス
クに対してブロッキングに必要なデータ読出を要求し、
キャッシュメモリ3上でブロッキングを行う。その上で
手順W23として示したように、ドライブタスクに対し
て各「ブロッキング必要データ」についてのディスク書
込要求を行っていく。各「ブロッキング必要データ」の
全てについてのフラッシュが完了したら、以上でフラッ
シュ処理を終了する。
At step F207, the blocking necessary data is searched. That is, this is to extract the cache address Cid other than the cache address Cid for which the blocking process is unnecessary, from the cache addresses Cid that have not been flushed as described above. When "blocking required data" is extracted in this way,
In step F208, blocking and flushing are performed on each of the retrieved "blocking required data".
Although the blocking process is not shown in FIG. 13, in this case, the cache task requests the drive task to read the data necessary for blocking,
Blocking is performed on the cache memory 3. Then, as shown as procedure W23, a disk write request for each "blocking required data" is issued to the drive task. When the flush of all the "blocking required data" is completed, the flush process is completed.

【0147】このようなフラッシュ処理制御が行われる
ことによる効果を図21,図22のモデルにより説明す
る。図21は上記制御によるフラッシュ処理が行われる
場合である。図22は上記制御によらず、単純に順次フ
ラッシュ処理が行われる場合を比較のために示すもので
ある。
The effects of such flash processing control will be described with reference to the models of FIGS. 21 and 22. FIG. 21 shows a case where the flash process is performed under the above control. FIG. 22 shows, for comparison, a case where the sequential flash processing is simply performed without depending on the above control.

【0148】図21(a)、図22(a)は、キャッシ
ュメモリ3の各キャッシュアドレスCid(セル)を示
しているものとし、各キャッシュアドレスCidには、
フラッシュ処理すべきデータとして図示するようにフラ
ッシュ処理時間の異なる3種類のデータ(連続データ、
非連続データ、ブロッキング必要データ)が格納されて
いるとする。仮に、1クラスタあたりのフラッシュ処理
時間は、連続データは10msec、非連続データは2
0msec、ブロッキング必要データは40msecで
あるとする。
21 (a) and 22 (a) show each cache address Cid (cell) of the cache memory 3, and each cache address Cid includes
As shown in the figure, three types of data with different flash processing times (continuous data,
It is assumed that non-consecutive data and blocking required data) are stored. Assuming that the flash processing time per cluster is 10 msec for continuous data and 2 for discontinuous data.
It is assumed that 0 msec and blocking required data are 40 msec.

【0149】このような図21(a)、図22(a)の
状態から、まず単純に各キャッシュアドレスCid(セ
ル)のデータをフラッシュ処理していく場合を図22で
述べる。先頭のセルのデータから順にフラッシュ処理し
ていくと、図22(a)のように先頭から14個のセル
には、それぞれ処理に40msecを要するブロッキン
グ必要データが格納されているため、例えばフラッシュ
開始から500msec後では、図22(b)に示すよ
うに12個のセルがフラッシュ済となる(フラッシュ済
のセルを白抜きで示している)。またフラッシュ開始か
ら1500msec後となると、図22(c)のよう
に、47個のセルがフラッシュ済となる。
A case where the data of each cache address Cid (cell) is simply flash-processed from the states of FIGS. 21A and 22A will be described with reference to FIG. When the flash processing is sequentially performed from the data of the head cell, the 14 cells from the head store the necessary blocking data that requires 40 msec for processing, as shown in FIG. After 500 msec from that, 12 cells are already flushed as shown in FIG. 22 (b) (the flushed cells are outlined). Further, when 1500 msec has elapsed from the start of flushing, 47 cells have been flushed, as shown in FIG.

【0150】図22(a)のモデルでは、連続データの
セルが18個、非連続データのセルが22個、ブロッキ
ング必要データのセルが28個としているため、フラッ
シュ開始から全てのセルのフラッシュ完了までの時間
は、 (18×10)+(22×20)+(28×40)=1
740msec となる。
In the model of FIG. 22A, there are 18 continuous data cells, 22 non-continuous data cells, and 28 blocking required data cells. Therefore, flush start of all cells is completed. Until (18 × 10) + (22 × 20) + (28 × 40) = 1
It will be 740 msec.

【0151】次に図21に示す本例の制御によるフラッ
シュ処理の場合、まず図21(a)のような各セルのう
ちで連続データをフラッシュするため、例えばフラッシ
ュ開始から500msec後では、図21(b)に示す
ように34個のセルがフラッシュ済となる。またフラッ
シュ開始から1500msec後となると、図21
(c)のように、62個のセルがフラッシュ済となる。
なお、フラッシュ開始から全てのセルのフラッシュ完了
までの時間は、図22の場合と同じく1740msec
となる。
In the case of the flash processing under the control of the present example shown in FIG. 21, first, continuous data is flashed in each cell as shown in FIG. 21A. As shown in (b), 34 cells have been flushed. In addition, when 1500 msec has elapsed from the start of flashing, as shown in FIG.
As in (c), 62 cells have been flushed.
The time from the start of flashing to the completion of flashing of all cells is 1740 msec, which is the same as in the case of FIG.
Becomes

【0152】この図21,図22を比較すると、全デー
タのフラッシュ完了までの時間は同じであるが、本例の
制御による場合は、フラッシュ開始から早い段階で、よ
り多数のセルがフラッシュ済となる。例えば500ms
ecの時点では、図22では12個のセルしかフラッシ
ュ済となっていないことに対して、図21では34個の
セルがフラッシュ済となっている。フラッシュ済のセル
は、登録抹消処理により、あらたにデータの格納が可能
となる。つまり、本例の制御により、キャッシュメモリ
3における使用可能な領域をなるべく早く確保できるも
のとなり、つまりパーソナルコンピュータ100からの
書込データからのライト要求、リード要求に対応できる
状態に、迅速に回復できるものである。特に、キャッシ
ュ領域の大部分に未フラッシュのデータが蓄積されてい
る状態であっても、迅速に以降の処理に使用するセルを
確保できる。
Comparing FIG. 21 and FIG. 22, the time until the completion of flushing all data is the same, but according to the control of this example, it is determined that a larger number of cells have been flushed at an early stage from the start of flushing. Become. For example 500 ms
At the time of ec, only 12 cells are flushed in FIG. 22, whereas 34 cells are flushed in FIG. It is possible to newly store the data in the flushed cell by the deregistration process. That is, according to the control of the present example, the usable area in the cache memory 3 can be secured as soon as possible, that is, the write request and the read request from the write data from the personal computer 100 can be quickly recovered. It is a thing. In particular, even when the unflashed data is accumulated in most of the cache area, it is possible to quickly secure the cells to be used for the subsequent processing.

【0153】上述したように、キャッシュメモリ3に格
納されたデータのフラッシュは、或る程度まとめて実行
することが効率的である。その一方で、未フラッシュの
データを長く保持しておくと、キャッシュメモリ3にお
ける使用可能領域が減少し、パーソナルコンピュータ1
00等からのライト要求、リード要求に即座に対応でき
ない(対応するためには所要数のセルをフラッシュして
登録抹消状態にしなければならない)。ここで本例の制
御によると、フラッシュ開始からなるべく早い時点で多
数のセルをフラッシュ済とし、登録抹消して使用可能と
することで、ライト要求、リード要求に対応可能な状態
にでき、キャッシュメモリ3の応答性を向上できる。さ
らにこのため、或る程度まとめてフラッシュを行うよう
に、未フラッシュのデータを保存しておくことも容認で
きるものとなり、フラッシュ処理の効率化も実現でき
る。
As described above, it is efficient to collectively flush the data stored in the cache memory 3 to some extent. On the other hand, if the unflushed data is held for a long time, the usable area in the cache memory 3 decreases and the personal computer 1
A write request or a read request from 00 or the like cannot be immediately dealt with (in order to respond, a required number of cells must be flushed to bring them into a deregistration state). According to the control of this example, a large number of cells have been flushed at the earliest possible time after the start of flushing, and the cells can be deregistered and made usable so that write requests and read requests can be responded to. The responsiveness of 3 can be improved. Further, for this reason, it is also acceptable to save the unflashed data so that the flashes are collectively performed to some extent, and the efficiency of the flash processing can be improved.

【0154】7.フラッシュ処理例<2> フラッシュ処理例<2>も、所定の優先順序を設けてフ
ラッシュしていくものであるが、この場合、情報の属性
としてのキャッシュヒット率を優先順序の基準とする。
例えば各キャッシュアドレスCidに格納されたデータ
について、読出ヒット率、書込ヒット率の各々の統計を
とり、書込ヒット率が高ければフラッシュ実行の優先順
位下げるようにする。また読出ヒット率が高ければキャ
ッシュメモリ3からの登録抹消優先順位下げるようにも
する。読出ヒットとは、リード要求の対象となるデータ
がキャッシュメモリ3内において登録抹消されずに残っ
ている場合である。書込ヒットとは、ライト要求により
供給されたセクターデータを含むクラスタデータが登録
抹消されずに残っている場合である。各キャッシュアド
レスCidに格納されたデータについての読出ヒット
率、書込ヒット率は、例えばリード要求、ライト要求の
回数に対するヒット回数の割合としてもよいし、単純に
ヒット回数をカウントするものであってもよい。
7. Flush processing example <2> In the flash processing example <2>, too, flashing is performed by providing a predetermined priority order. In this case, the cache hit rate as an attribute of information is used as the reference of the priority order.
For example, with respect to the data stored in each cache address Cid, statistics of the read hit rate and the write hit rate are obtained, and if the write hit rate is high, the priority of the flash execution is lowered. If the read hit rate is high, the priority of deleting the registration from the cache memory 3 is lowered. A read hit is a case in which the data to be read request remains in the cache memory 3 without being deregistered. The write hit is a case where the cluster data including the sector data supplied by the write request remains without being deregistered. The read hit rate and the write hit rate for the data stored in each cache address Cid may be, for example, the ratio of the number of hits to the number of read requests and write requests, or simply count the number of hits. Good.

【0155】例えばこの場合、キャッシュ管理データと
しては、図23に示すように、各キャッシュアドレスC
idに対応する管理データにおいて、上記図12で説明
した内容に加えて、キャッシュヒット情報、フラッシュ
順位情報、登録抹消順位情報を記憶するようにする。
For example, in this case, as the cache management data, as shown in FIG.
In the management data corresponding to id, cache hit information, flush rank information, and registration deletion rank information are stored in addition to the contents described in FIG.

【0156】キャッシュヒット情報は、そのキャッシュ
アドレスCidに格納されたデータの読出ヒット率及び
書込ヒット率である。これらはキャッシュヒットが発生
する度に更新される。フラッシュ順位情報は、当該キャ
ッシュアドレスCidに格納されたデータについてのフ
ラッシュの優先順位を記憶する。優先順位は2段階、3
段階、或いはそれ以上の複数段階で設定されればよい。
登録抹消順位情報は、当該キャッシュアドレスCidに
格納されたデータについての登録抹消を行うときの優先
順位を記憶する。優先順位は2段階、3段階、或いはそ
れ以上の複数段階で設定されればよい。例えば説明上、
フラッシュ順位情報、登録抹消順位情報としては、第1
レベル(優先)、第2レベル(通常)、第3レベル(非
優先)の3段階を設定するものとする。なお、これらの
管理情報は、登録抹消によりクリアされる。
The cache hit information is the read hit rate and the write hit rate of the data stored in the cache address Cid. These are updated each time a cache hit occurs. The flash order information stores the priority order of the flash for the data stored at the cache address Cid. Priority is 2 levels, 3
It may be set in a plurality of stages or more.
The registration deletion order information stores the priority order when the registration deletion is performed on the data stored in the cache address Cid. The priority may be set in two stages, three stages, or a plurality of stages higher than that. For example, for explanation,
The flash ranking information and deregistration ranking information are the first
Three levels of level (priority), second level (normal), and third level (non-priority) are set. The management information is cleared by deleting the registration.

【0157】キャッシュタスクは、キャッシュメモリ3
の或るキャッシュアドレスCidにデータが書き込まれ
ることに応じて、そのキャッシュアドレスCidに対応
するキャッシュ管理データを更新する。即ちキャッシュ
管理メモリ11に記憶された図23のような構造のキャ
ッシュ管理データについて、当該キャッシュアドレスC
idの管理情報として、FATクラスタ番号、フラッシ
ュ情報、キャッシュセクター情報、キャッシュヒット情
報、フラッシュ順位情報、登録抹消順位情報を設定す
る。このとき、キャッシュヒット情報は「0」とする。
またフラッシュ順位情報登録抹消順位情報は、それぞれ
「第1レベル(優先)」とする。
The cache task is the cache memory 3
In response to the data being written to a certain cache address Cid, the cache management data corresponding to that cache address Cid is updated. That is, regarding the cache management data having the structure shown in FIG. 23 stored in the cache management memory 11, the cache address C
As the id management information, the FAT cluster number, flash information, cache sector information, cache hit information, flash order information, and registration deletion order information are set. At this time, the cache hit information is "0".
The flash order information registration deletion order information is set to "first level (priority)".

【0158】その後、キャッシュヒットが発生すると、
キャッシュヒット情報として読出ヒット率及び書込ヒッ
ト率を更新する。また読出ヒット率及び書込ヒット率を
更新した場合には、読出ヒット率、書込ヒット率につい
てそれぞれ設定された第1、第2の所定値を越えたか否
かを判別し、その結果によりフラッシュ順位情報、登録
抹消順位情報を更新する。即ち、読出ヒット率が第1の
所定値を越えた場合は、登録抹消順位情報を「第2レベ
ル(通常)」とする。また読出ヒット率が第2の所定値
を越えた場合は、登録抹消順位情報を「第3レベル(非
優先)」とする。また書込ヒット率が第1の所定値を越
えた場合は、フラッシュ順位情報を「第2レベル(通
常)」とする。また書込ヒット率が第2の所定値を越え
た場合は、フラッシュ順位情報を「第3レベル(非優
先)」とする。
After that, when a cache hit occurs,
The read hit rate and the write hit rate are updated as cache hit information. When the read hit rate and the write hit rate are updated, it is determined whether the read hit rate and the write hit rate have exceeded the first and second predetermined values respectively set, and the flash result is determined based on the result. Update ranking information and deregistration ranking information. That is, when the read hit rate exceeds the first predetermined value, the registration deletion order information is set to "second level (normal)". When the read hit rate exceeds the second predetermined value, the registration deletion order information is set to "third level (non-priority)". If the write hit rate exceeds the first predetermined value, the flash rank information is set to "second level (normal)". When the write hit rate exceeds the second predetermined value, the flash rank information is set to "third level (non-priority)".

【0159】キャッシュタスクは、このようにキャッシ
ュ管理データにおけるキャッシュヒット情報、フラッシ
ュ順位情報、登録抹消順位情報を、随時更新していくよ
うにしている。つまり、ヒット率が高くなるほどフラッ
シュ又は登録抹消についての優先順位を下げていく。
As described above, the cache task updates the cache hit information, the flush order information, and the registration deletion order information in the cache management data as needed. That is, the higher the hit rate, the lower the priority for flushing or deregistration.

【0160】キャッシュメモリ3に格納されたデータ
(未フラッシュとされているデータ)についてフラッシ
ュを行う場合は、キャッシュタスクは図24の処理を行
う。まずステップF301で、変数nを「1」にセット
し、ステップF302で、フラッシュについての優先順
位第nのデータを検索する。つまり最初に「第1レベル
(優先)」とされているデータを検索する。このために
キャッシュ管理データにおけるフラッシュ情報及びフラ
ッシュ順位情報を確認し、フラッシュ情報が未フラッシ
ュとされていて、フラッシュ順位情報が「第1レベル
(優先)」とされているキャッシュアドレスCidを抽
出していく。そしてステップF303で、このようにし
て検索された1又は複数のキャッシュアドレスCidに
書き込まれているデータについてフラッシュを行う。即
ち図13で手順W23として示したように、ドライブタ
スクに対してディスク書込要求を行っていく。
When the data stored in the cache memory 3 (data that has not been flushed) is flushed, the cache task performs the processing shown in FIG. First, in step F301, the variable n is set to "1", and in step F302, the nth priority data regarding the flash is searched. That is, first, the data set as the "first level (priority)" is searched. For this reason, the flash information and the flash order information in the cache management data are confirmed, and the cache address Cid whose flash order information is not flushed and whose flash order information is "first level (priority)" is extracted. Go. Then, in step F303, the data written in the one or more cache addresses Cid thus searched is flushed. That is, as shown as procedure W23 in FIG. 13, the disk write request is issued to the drive task.

【0161】検索された各キャッシュアドレスCidの
データの全てについてのフラッシュが完了したら、ステ
ップF304からF305に進む。そして未だフラッシ
ュしていないデータが存在すれば、ステップF306で
変数nをインクリメントしてステップF302に戻る。
この場合は、変数n=2であり、ステップF302で、
優先順位第2のデータ、つまり「第2レベル(通常)」
とされているデータ(キャッシュアドレスCid)を検
索する。そしてステップF303で検索されたキャッシ
ュアドレスCidについてフラッシュを行う。また、
「第2レベル(通常)」の全てのデータについてフラッ
シュが完了し、まだフラッシュしていないデータが存在
すれば、ステップF306で変数nをインクリメントし
てステップF302に戻る。この場合は、変数n=3で
あり、ステップF302で、優先順位第3のデータ、つ
まり「第3レベル(非優先)」とされているデータ(キ
ャッシュアドレスCid)を検索する。そしてステップ
F303で検索されたキャッシュアドレスCidについ
てフラッシュを行う。
When flushing of all the retrieved data of each cache address Cid is completed, the process proceeds from step F304 to F305. If there is data that has not been flushed, the variable n is incremented in step F306 and the process returns to step F302.
In this case, the variable n = 2, and in step F302,
Second priority data, ie "second level (normal)"
The data (cache address Cid) which is said to be searched. Then, the cache address Cid retrieved in step F303 is flushed. Also,
If flushing is completed for all the "second level (normal)" data and there is data that has not been flushed yet, the variable n is incremented in step F306 and the process returns to step F302. In this case, the variable n = 3, and in step F302, the third priority data, that is, the data (cache address Cid) that is the “third level (non-priority)” is searched. Then, the cache address Cid retrieved in step F303 is flushed.

【0162】フラッシュすべき全てのデータについてフ
ラッシュが完了した時点で、ステップF305からフラ
ッシュ処理を終了させる。
When the flush is completed for all the data to be flushed, the flush process is terminated from step F305.

【0163】このようなフラッシュ処理によれば、書込
ヒット率が高いデータについては、フラッシュ処理が遅
らせられることになる。書込ヒット率が高いデータにつ
いては、その後、またすぐ書込が行われる可能性が高い
ものであるため、できるだけフラッシュを遅らせること
が無駄なフラッシュ処理を解消でき、好適であると共
に、フラッシュが遅れれば、それに伴って登録抹消も遅
れるため、ヒット率の向上が見込まれる。例えば、ある
クラスタ内のあるセクターがライト要求された後、同ク
ラスタの他のセクターがライト要求されると書込ヒット
となるが、このような書込ヒットが多い場合、なるべく
フラッシュを遅らせることで複数のライト要求に対応す
るフラッシュを1回のフラッシュでまとめて実行でき
る。また、ブロッキングが必要であった場合に、まとめ
てブロッキングが実行できる。これらのことでフラッシ
ュ処理が効率化される。
According to such a flash process, the flash process is delayed for data having a high write hit rate. Data with a high write hit rate is likely to be written immediately thereafter, so delaying the flash as much as possible can eliminate wasteful flash processing, and it is also desirable to delay the flash. If so, the deregistration will be delayed accordingly, so the hit rate is expected to improve. For example, if a write request is made for one sector in a cluster and then another sector in the same cluster is write requested, a write hit occurs. However, if there are many such write hits, it is possible to delay the flush as much as possible. Flashes corresponding to a plurality of write requests can be collectively executed by one flash. Further, when blocking is necessary, blocking can be executed collectively. As a result, the flash processing becomes efficient.

【0164】また、フラッシュしたデータについては、
登録抹消することで、そのキャッシュアドレスCidの
領域は以降の新たなキャッシュ書込に使用できるものと
なるが、そのデータについてのキャッシュヒットは発生
しなくなる。このため、読出ヒット率が高いデータにつ
いては、できるだけ登録抹消を遅らせることで、キャッ
シュヒット率を向上できる。従って、登録抹消処理につ
いても、図25に示すように図24のフラッシュ処理と
ほぼ同様の手順で行うようにする。
Regarding the flashed data,
By deleting the registration, the area of the cache address Cid can be used for new cache writing thereafter, but no cache hit occurs for that data. Therefore, for data having a high read hit rate, the cache hit rate can be improved by delaying registration deletion as much as possible. Therefore, the deregistration process is performed in a procedure substantially similar to the flush process shown in FIG. 24, as shown in FIG.

【0165】図25においてキャッシュタスクによる登
録抹消処理を示しているが、まずステップF401で、
変数nを「1」にセットし、ステップF402で、登録
抹消についての優先順位第nのデータを検索する。つま
り最初に「第1レベル(優先)」とされているデータを
検索する。この場合、キャッシュ管理データにおけるフ
ラッシュ情報及び登録抹消順位情報を確認し、フラッシ
ュ情報がフラッシュ済みとされていて、登録抹消順位情
報が「第1レベル(優先)」とされているキャッシュア
ドレスCidを抽出していく。そしてステップF403
で、このようにして検索された1又は複数のキャッシュ
アドレスCidについて登録抹消を行う。つまり当該キ
ャッシュアドレスCidに対するキャッシュ管理情報の
内容をクリアする。
FIG. 25 shows the registration deletion processing by the cache task. First, in step F401,
The variable n is set to "1", and in step F402, the nth priority data for deregistration is searched. That is, first, the data set as the "first level (priority)" is searched. In this case, the flash information and the registration deletion order information in the cache management data are confirmed, and the cache address Cid in which the flash information is flushed and the registration deletion order information is "first level (priority)" is extracted. I will do it. And step F403
Then, the one or more cache addresses Cid thus searched are deregistered. That is, the content of the cache management information for the cache address Cid is cleared.

【0166】ステップF404では、必要量の登録抹消
が完了したか否かを判断する。なお、登録抹消は、その
キャッシュアドレスCidを新たに使用できる領域にす
る処理であり、どれだけのサイズの領域を登録抹消する
かは、その時々のキャッシュ状況に応じて決められるよ
うにすればよい。従って、フラッシュ済のキャッシュア
ドレスCidについて、全て登録抹消してもよいし、フ
ラッシュ済のキャッシュアドレスCidの一部を登録抹
消するものでもよい。ステップF404では、登録抹消
処理が、今回登録抹消しようとする領域サイズに達した
か否かを判断するものである。
In step F404, it is determined whether or not the necessary amount of registration deletion has been completed. The deregistration is a process of making the cache address Cid a newly usable area, and the size of the area to be deregistered may be determined according to the cache situation at that time. . Therefore, all of the flushed cache address Cid may be deregistered, or a part of the flushed cache address Cid may be deregistered. In step F404, the registration deletion processing determines whether or not the area size to be deleted this time has been reached.

【0167】必要量の登録抹消が完了していなければ、
ステップF405で、上記検索した「第1レベル(優
先)」のキャッシュアドレスCidについて登録抹消し
ていないものが残っているか否かを判断し、残っていれ
ばステップF403に戻って同様に登録抹消を行う。検
索された各キャッシュアドレスCidのデータの全てに
ついての登録抹消が完了したとステップF405で判断
された場合は、ステップF405からF406に進み、
変数nをインクリメントしてステップF402に戻る。
If deregistration of the required amount is not completed,
In step F405, it is judged whether or not there is any unregistered cache address Cid of the above-mentioned searched "first level (priority)". If there is any, the process returns to step F403 and the registration is similarly deleted. To do. If it is determined in step F405 that the registration deletion has been completed for all the data of the retrieved cache addresses Cid, the process proceeds from step F405 to F406.
The variable n is incremented and the process returns to step F402.

【0168】ステップF406で変数nをインクリメン
トして変数n=2としてステップF302に戻った場合
は、優先順位第2のデータ、つまりフラッシュ済であっ
て登録抹消順位情報が「第2レベル(通常)」とされて
いるデータ(キャッシュアドレスCid)を検索する。
そしてステップF403で検索されたキャッシュアドレ
スCidについて登録抹消を行う。
When the variable n is incremented in step F406 and the variable n = 2 is set and the process returns to step F302, the second priority data, that is, flushed and the registration deletion priority information is "second level (normal)". The data (cache address Cid) which is said to be "is searched.
Then, the registration of the cache address Cid retrieved in step F403 is deleted.

【0169】また、必要量の登録抹消が完了しない段階
で、「第2レベル(通常)」の全てのデータについて登
録抹消が完了し、まだ登録抹消を継続する場合は、ステ
ップF406で変数nをインクリメントしてステップF
402に戻る。この場合は、変数n=3であり、ステッ
プF402で、優先順位第3のデータ、つまりフラッシ
ュ済であって登録抹消順位情報が「第3レベル(非優
先)」とされているデータ(キャッシュアドレスCi
d)を検索する。そしてステップF403で検索された
キャッシュアドレスCidについて登録抹消を行う。
If the deregistration of all the data of the "second level (normal)" is completed at the stage where the deregistration of the required amount is not completed and the deregistration is still continued, the variable n is set in step F406. Increment and step F
Return to 402. In this case, the variable n = 3, and in step F402, the data having the third priority, that is, the data that has been flushed and the registration deletion order information is “third level (non-priority)” (cache address) Ci
Search d). Then, the registration of the cache address Cid retrieved in step F403 is deleted.

【0170】必要量の登録抹消が完了した時点では、ス
テップF405から登録抹消処理を終了させる。
At the time when the necessary amount of registration deletion is completed, the registration deletion process is ended from step F405.

【0171】このような登録抹消処理によれば、読出ヒ
ット率が高いデータについては登録抹消が遅らせられ、
即ち比較的長くキャッシュメモリ3に保存されるものと
なる。このためキャッシュヒットとなる確率を高くする
ことができ、キャッシュ応答性を向上させるとともに、
ディスク読出動作が必要となることを低減できる。
According to such registration deletion processing, the registration deletion is delayed for data having a high read hit rate,
That is, it is stored in the cache memory 3 for a relatively long time. Therefore, it is possible to increase the probability of a cache hit, improve cache responsiveness, and
It is possible to reduce the need for the disk read operation.

【0172】なお、図24に示したフラッシュ処理、或
いは図25の登録抹消処理については、フラッシュ処理
例<1>で説明した図19の処理と組み合わせてもよ
い。例えば図19のステップF202、F205、F2
08でフラッシュが実行される際に、それぞれ図24の
処理によってフラッシュ順序を設定すれば、ヒット率の
高いデータほどフラッシュが遅らせられることになる。
例えばステップF205では、非連続データのうちでヒ
ット率の小さいものからフラッシュされ、ヒット率の高
いものは比較的長く残される。これによって、図19の
処理による応答性効果と図24の処理によるヒット率向
上効果を得ることができる。
The flash process shown in FIG. 24 or the registration deletion process shown in FIG. 25 may be combined with the process shown in FIG. 19 described in the flash process example <1>. For example, steps F202, F205, and F2 in FIG.
When the flush order is set by the processing of FIG. 24 when the flush is executed at 08, the flush is delayed as the data having a higher hit rate.
For example, in step F205, the non-consecutive data having a smaller hit rate is flushed, and the one having a high hit rate is left for a relatively long time. As a result, the responsiveness effect of the processing of FIG. 19 and the hit rate improvement effect of the processing of FIG. 24 can be obtained.

【0173】以上、記録再生装置1及びパーソナルコン
ピュータ100等による構成によって、本発明の記憶装
置、記録及び/又は再生装置、情報記憶システム、記憶
方法としての実施の形態を説明してきたが、本発明の記
憶装置、記録及び/又は再生装置、情報記憶システム、
記憶方法の具体的な処理手順等は上記例に限定されず、
各種の変形例が考えられる。
The embodiments of the storage device, the recording and / or reproduction device, the information storage system, and the storage method according to the present invention having the configuration of the recording / reproduction device 1 and the personal computer 100 have been described above. Storage device, recording and / or reproducing device, information storage system,
The specific processing procedure of the storage method is not limited to the above example,
Various modifications are possible.

【0174】例えばフラッシュ処理としては、キャッシ
ュ書込直後のリード要求などでキャッシュ領域が足り
ず、キャッシュ領域をフラッシュしなければならない際
に、読出要求されたデータサイズを基準として、それと
同サイズないしは若干大きいサイズのデータ量のみをフ
ラッシュすることが考えられる。即ちキャッシュメモリ
3への書込直後であって、キャッシュ領域の大部分が登
録状態になっている場合、リード要求に応じたデータキ
ャッシュのために、フラッシュを行ってディスク90か
らのデータ読出に利用可能なキャッシュエリア確保しな
ければならないが、そのときに、読出データのサイズと
同サイズないしは若干大きくサイズのキャッシュ領域に
ついてのみフラッシュするようにする。このようにすれ
ば、ディスク90からの読出データのキャッシュ領域を
確保できると共に、フラッシュ処理は最小限となり、リ
ード要求に対するキャッシュ処理の応答速度向上が見込
まれる。
For example, as the flush processing, when the cache area is insufficient due to a read request immediately after writing to the cache and the cache area has to be flushed, the data size requested to be read is used as a reference, or slightly the same size. It is possible to flush only a large amount of data. That is, immediately after writing to the cache memory 3 and when most of the cache area is in the registered state, flush is performed for data cache in response to a read request and used for reading data from the disk 90. It is necessary to secure a possible cache area, but at that time, only the cache area having the same size as the read data size or a slightly larger size is flushed. By doing so, it is possible to secure the cache area for the read data from the disk 90, minimize the flush process, and improve the response speed of the cache process to the read request.

【0175】また本発明のプログラムは、記憶装置、記
録及び/又は再生装置、情報記憶システムにおいて上記
してきた記憶方法の動作を実行させるためのプログラム
であり、該プログラムにより本発明の記憶装置、記録及
び/又は再生装置、情報記憶システムを実現できるもの
である。さらに、そのような本発明のプログラムが記録
された本発明の記録媒体によれば、本発明を実現するプ
ログラムの提供が容易となり、装置設計やシステム構築
に好適である。該プログラムを記録する記録媒体は、C
D方式、DVD方式、MD方式の光ディスク、光磁気デ
ィスクや、フレキシブルディスクのような磁気ディス
ク、さらにはHDD(ハードディスクドライブ)や、固
体メモリを用いたメモリカードなどにより実現できる。
The program of the present invention is a program for executing the operation of the above-described storage method in a storage device, a recording and / or reproducing device, and an information storage system. And / or a reproducing device and an information storage system can be realized. Furthermore, according to the recording medium of the present invention in which the program of the present invention is recorded, it is easy to provide the program for realizing the present invention, and it is suitable for device design and system construction. The recording medium for recording the program is C
It can be realized by a D type, DVD type, MD type optical disc, a magneto-optical disc, a magnetic disc such as a flexible disc, an HDD (hard disk drive), a memory card using a solid-state memory, and the like.

【0176】[0176]

【発明の効果】以上の説明から理解されるように本発明
によれば、キャッシュメモリ(一時記憶手段)に記憶さ
れた情報の属性に応じて、一時記憶手段に一時記憶され
る情報を読み出すと共に上記記録媒体に書き込む動作、
即ちフラッシュ動作を制御する。特には、連続データ、
非連続データ、ブロッキング必要データの順のようにフ
ラッシュ処理時間が短いデータから優先的にフラッシュ
処理する。このような制御により、なるべく早い段階で
キャッシュメモリにデータ書込可能な空き領域が多くで
きるようになる。従ってキャッシュ応答速度向上が可能
となる。また、連続データについてはまとめてフラッシ
ュ処理が行われることになるため、ディスク等の記録媒
体において効率的な書込動作が実現でき、それとともに
ディスク等へのアクセス回数も減るため、記録媒体側で
の動作効率の向上及び省電効果が得られる。また、ヒッ
ト状況を示す値が低いデータから優先的にフラッシュ処
理するようにし、ヒット状況を示す値が高いデータはフ
ラッシュ処理を遅らせることで、キャッシュヒット率が
向上するものとなり、これもキャッシュ応答性の向上を
実現する。そしてこのようにデータの連続性や、ヒット
状況に応じてフラッシュ処理を制御することは、PCデ
ータとAVデータの混在するキャッシュメモリに関する
制御として好適なものとできる。即ち連続性の高いAV
データの特徴を生かした効率的なフラッシュ処理と、P
Cデータについてのキャッシュヒットの確率を維持する
フラッシュ処理を両立できるものとなる。
As can be understood from the above description, according to the present invention, the information temporarily stored in the temporary storage means is read according to the attribute of the information stored in the cache memory (temporary storage means). Operation of writing to the recording medium,
That is, the flash operation is controlled. In particular, continuous data,
The flash processing is preferentially performed from the data having a short flash processing time such as non-continuous data and data requiring blocking. By such control, it becomes possible to increase the free area in which data can be written in the cache memory at an early stage. Therefore, the cache response speed can be improved. In addition, since continuous data will be collectively flashed, efficient write operations can be realized on recording media such as discs, and the number of accesses to discs and the like can be reduced at the same time. It is possible to improve the operation efficiency and save electricity. In addition, the cache hit ratio is improved by preferentially performing the flush process on the data having the low hit state value and delaying the flush process for the data having the high hit state value. Realize the improvement of. Controlling the flash process according to the continuity of data and the hit status in this way can be suitable as control for a cache memory in which PC data and AV data are mixed. That is, AV with high continuity
Efficient flash processing that takes advantage of the characteristics of the data and P
Flush processing that maintains the probability of a cache hit for C data is compatible.

【0177】また本発明のプログラム、又はそのプログ
ラムを記録した記録媒体によれば、上記の効果を実現す
るキャッシュ制御を行う記憶装置、情報記憶システム、
記録及び/又は再生装置を容易に実現することができ
る。
Further, according to the program of the present invention or the recording medium recording the program, a storage device, an information storage system, which performs cache control for realizing the above-mentioned effects,
The recording and / or reproducing apparatus can be easily realized.

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

【図1】本発明の実施の形態の記録再生装置のブロック
図である。
FIG. 1 is a block diagram of a recording / reproducing apparatus according to an embodiment of the present invention.

【図2】実施の形態のディスクのフォーマットの説明図
である。
FIG. 2 is an explanatory diagram of a disk format according to the embodiment.

【図3】実施の形態のディスクのエリア構造の説明図で
ある。
FIG. 3 is an explanatory diagram of an area structure of the disc according to the embodiment.

【図4】実施の形態のディスクの管理構造の説明図であ
る。
FIG. 4 is an explanatory diagram of a disc management structure according to the embodiment.

【図5】実施の形態の記録再生装置のストレージ部のブ
ロック図である。
FIG. 5 is a block diagram of a storage unit of the recording / reproducing apparatus of the embodiment.

【図6】実施の形態のキャッシュ制御方式の説明図であ
る。
FIG. 6 is an explanatory diagram of a cache control method according to the embodiment.

【図7】実施の形態のキャッシュIDの説明図である。FIG. 7 is an explanatory diagram of a cache ID according to the embodiment.

【図8】実施の形態のキャッシュへのデータ書込動作の
説明図である。
FIG. 8 is an explanatory diagram of a data write operation to a cache according to the embodiment.

【図9】実施の形態のキャッシュへのデータ書込動作の
説明図である。
FIG. 9 is an explanatory diagram of a data write operation to the cache according to the embodiment.

【図10】実施の形態のキャッシュへのデータ書込動作
の説明図である。
FIG. 10 is an explanatory diagram of a data write operation to the cache according to the embodiment.

【図11】実施の形態のキャッシュへのデータ書込動作
の説明図である。
FIG. 11 is an explanatory diagram of a data write operation to the cache according to the embodiment.

【図12】実施の形態のキャッシュ管理データの説明図
である。
FIG. 12 is an explanatory diagram of cache management data according to the embodiment.

【図13】実施の形態のディスクライト時の動作の説明
図である。
FIG. 13 is an explanatory diagram of an operation at the time of disc writing according to the embodiment.

【図14】実施の形態のディスクリード時の動作の説明
図である。
FIG. 14 is an explanatory diagram of an operation when reading a disc according to the embodiment.

【図15】実施の形態のディスクリード時のキャッシュ
ヒットの場合の動作の説明図である。
FIG. 15 is an explanatory diagram of an operation in the case of a cache hit at the time of disk read according to the embodiment.

【図16】実施の形態のキャッシュ検索処理の説明図で
ある。
FIG. 16 is an explanatory diagram of cache search processing according to the embodiment.

【図17】実施の形態のキャッシュ検索処理のフローチ
ャートである。
FIG. 17 is a flowchart of cache search processing according to the embodiment.

【図18】実施の形態のキャッシュ制御の分割単位の説
明図である。
FIG. 18 is an explanatory diagram of a division unit of cache control according to the embodiment.

【図19】実施の形態のフラッシュ処理のフローチャー
トである。
FIG. 19 is a flowchart of flash processing according to the embodiment.

【図20】実施の形態のブロッキング処理の説明図であ
る。
FIG. 20 is an explanatory diagram of blocking processing according to the embodiment.

【図21】実施の形態のフラッシュ動作による状態遷移
の説明図である。
FIG. 21 is an explanatory diagram of state transition by the flash operation according to the embodiment.

【図22】通常のフラッシュ動作による状態遷移の説明
図である。
FIG. 22 is an explanatory diagram of state transition due to a normal flash operation.

【図23】実施の形態の他のキャッシュ管理データ内容
の説明図である。
FIG. 23 is an explanatory diagram of another cache management data content according to the embodiment.

【図24】実施の形態のフラッシュ処理手順のフローチ
ャートである。
FIG. 24 is a flowchart of a flash processing procedure according to the embodiment.

【図25】実施の形態の登録抹消処理手順のフローチャ
ートである。
FIG. 25 is a flowchart of a registration deletion processing procedure according to the embodiment.

【符号の説明】[Explanation of symbols]

1 記録再生装置、2 ストレージ部、3 キャッシュ
メモリ、4 USBインターフェース、5 入出力処理
部、6 表示部、7 操作部、8 システムコントロー
ラ、9 ROM、10 RAM、11 キャッシュ管理
メモリ、12NV−RAM、100 パーソナルコンピ
ュータ/ネットワーク
1 recording / reproducing apparatus, 2 storage section, 3 cache memory, 4 USB interface, 5 input / output processing section, 6 display section, 7 operation section, 8 system controller, 9 ROM, 10 RAM, 11 cache management memory, 12 NV-RAM, 100 Personal Computer / Network

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G11B 20/10 301 G11B 20/10 301Z H04N 5/85 H04N 5/85 Z 5/91 5/91 Z (72)発明者 高井 基行 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5B005 JJ11 MM11 NN02 NN15 PP03 QQ04 VV04 5B065 BA01 CE12 CH02 5C052 AA03 AB04 CC11 CC12 DD06 5C053 FA23 GA01 GB06 GB07 GB11 GB15 JA01 JA07 KA01 LA11 LA14 5D044 AB01 AB05 AB07 BC06 CC06 DE12 DE49 EF03 FG10 HH07Continuation of front page (51) Int.Cl. 7 Identification code FI theme code (reference) G11B 20/10 301 G11B 20/10 301Z H04N 5/85 H04N 5/85 Z 5/91 5/91 Z (72) Invention Person Takai Motoyuki 6-35 Kita-Shinagawa, Shinagawa-ku, Tokyo F-term in Sony Corporation (reference) 5B005 JJ11 MM11 NN02 NN15 PP03 QQ04 VV04 5B065 BA01 CE12 CH02 5C052 AA03 AB04 CC11 CC12 DD06 5C053 FA23 GA01 GB06 GB07 GB11 GB15 JA01 JA07 KA01 LA11 LA14 5D044 AB01 AB05 AB07 BC06 CC06 DE12 DE49 EF03 FG10 HH07

Claims (30)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体から読み出される情報及び/又
は記録媒体に対して書き込む情報を一時記憶する一時記
憶手段と、 上記一時記憶手段に一時記憶される情報の属性を判別す
る属性判別手段と、 上記属性判別手段による判別結果に応じて、上記一時記
憶手段に一時記憶される情報を読み出すと共に上記記録
媒体に書き込むように制御する制御手段と、 を備えることを特徴とする記憶装置。
1. A temporary storage means for temporarily storing information read from a recording medium and / or information to be written to the recording medium, and attribute determination means for determining an attribute of the information temporarily stored in the temporary storage means, A storage device, comprising: a control unit that controls to read out information temporarily stored in the temporary storage unit and write the information in the recording medium according to a determination result by the attribute determination unit.
【請求項2】 上記属性判別手段は、上記一時記憶手段
内に一時記憶された情報について、上記記録媒体に連続
して書き込まれる連続情報と、当該連続情報に比して上
記記録媒体に非連続で書き込まれる非連続情報とを判別
し、 上記制御手段は、上記連続情報について、優先的に読み
出して上記記録媒体に書き込むように制御することを特
徴とする請求項1に記載の記憶装置。
2. The attribute discriminating means, regarding the information temporarily stored in the temporary storing means, continuous information continuously written in the recording medium and discontinuous in the recording medium in comparison with the continuous information. 2. The storage device according to claim 1, wherein the control unit determines that the continuous information is written in step S <b> 3, and controls the sequential information to be preferentially read and written in the recording medium.
【請求項3】 上記属性判別手段は、上記一時記憶手段
内に一時記憶された情報について、上記記録媒体に書き
込むときにブロッキングを要するブロッキング必要情報
を判別し、 上記制御手段は、上記ブロッキング必要情報以外の情報
について、優先的に読み出して上記記録媒体に書き込む
ように制御することを特徴とする請求項1に記載の記憶
装置。
3. The attribute discriminating means discriminates, from the information temporarily stored in the temporary storage means, blocking necessary information that requires blocking when writing to the recording medium, and the control means makes the blocking necessary information. The storage device according to claim 1, wherein information other than the above is controlled to be preferentially read and written in the recording medium.
【請求項4】 上記制御手段は、上記ブロッキング必要
情報については、上記記録媒体から読み出された情報を
用いて所定の書込データ単位を形成するブロッキング処
理を実行させた上で、上記記録媒体に書き込むように制
御することを特徴とする請求項3に記載の記憶装置。
4. The recording means performs a blocking process of forming a predetermined write data unit using the information read from the recording medium for the blocking necessary information, and then the recording medium. The storage device according to claim 3, wherein the storage device is controlled to write to the storage device.
【請求項5】 上記属性判別手段は、上記一時記憶手段
内に一時記憶された情報についてヒット状況を判別し、 上記制御手段は、上記ヒット状況を示す値が低い情報か
ら、優先的に読み出して上記記録媒体に書き込むように
制御することを特徴とする請求項1に記載の記憶装置。
5. The attribute discriminating means discriminates a hit situation with respect to the information temporarily stored in the temporary storage means, and the control means preferentially reads out information having a low value indicating the hit situation. The storage device according to claim 1, wherein the storage device is controlled to be written in the recording medium.
【請求項6】 記録媒体に対して情報の書込及び/又は
読出を行う書込/読出手段と、 上記書込/読出手段によって上記記録媒体から読み出さ
れる情報及び/又は上記書込/読出手段によって上記記
録媒体に対して書き込む情報を一時記憶する一時記憶手
段と、 上記一時記憶手段に一時記憶される情報の属性を判別す
る属性判別手段と、 上記属性判別手段による判別結果に応じて、上記一時記
憶手段に一時記憶される情報を読み出すと共に上記記録
媒体に書き込むように制御する制御手段と、 を備えることを特徴とする記録及び/又は再生装置。
6. A writing / reading means for writing and / or reading information to / from a recording medium, and information read from the recording medium by the writing / reading means and / or the writing / reading means. The temporary storage means for temporarily storing the information to be written to the recording medium, the attribute determination means for determining the attribute of the information temporarily stored in the temporary storage means, and the determination result by the attribute determination means. A recording and / or reproducing apparatus, comprising: a control unit that controls to read information temporarily stored in the temporary storage unit and write the information in the recording medium.
【請求項7】 上記属性判別手段は、上記一時記憶手段
内に一時記憶された情報について、上記記録媒体に連続
して書き込まれる連続情報と、当該連続情報に比して上
記記録媒体に非連続で書き込まれる非連続情報とを判別
し、 上記制御手段は、上記連続情報について、優先的に上記
一時記憶手段から読み出して上記書込/読出手段により
上記記録媒体に書き込むように制御することを特徴とす
る請求項6に記載の記録及び/又は再生装置。
7. The attribute discriminating means is, for the information temporarily stored in the temporary storage means, continuous information continuously written in the recording medium and discontinuous in the recording medium in comparison with the continuous information. Discriminating the non-contiguous information written by the control means, the control means controls the consecutive information to be preferentially read from the temporary storage means and written to the recording medium by the writing / reading means. The recording and / or reproducing apparatus according to claim 6.
【請求項8】 上記属性判別手段は、上記一時記憶手段
内に一時記憶された情報について、上記記録媒体に書き
込むときにブロッキングを要するブロッキング必要情報
を判別し、 上記制御手段は、上記ブロッキング必要情報以外の情報
について、優先的に上記一時記憶手段から読み出して上
記書込/読出手段により上記記録媒体に書き込むように
制御することを特徴とする請求項6に記載の記録及び/
又は再生装置。
8. The attribute discriminating means discriminates, from the information temporarily stored in the temporary storage means, blocking necessary information that requires blocking when writing to the recording medium, and the control means makes the blocking necessary information. 7. The recording and / or recording according to claim 6, wherein the information other than is controlled to be preferentially read from the temporary storage means and written to the recording medium by the writing / reading means.
Or a playback device.
【請求項9】 上記制御手段は、上記ブロッキング必要
情報については、上記書込/読出手段により上記記録媒
体から読み出された情報を用いて所定の書込データ単位
を形成するブロッキング処理を実行させた上で、上記書
込/読出手段により上記記録媒体に書き込むように制御
することを特徴とする請求項8に記載の記録及び/又は
再生装置。
9. The control means causes the writing / reading means to execute a blocking process for forming a predetermined write data unit using the information read from the recording medium by the writing / reading means. 9. The recording and / or reproducing apparatus according to claim 8, wherein the writing / reading means controls the writing / reading means to write on the recording medium.
【請求項10】 上記属性判別手段は、上記一時記憶手
段内に一時記憶された情報についてヒット状況を判別
し、 上記制御手段は、上記ヒット状況を示す値が低い情報か
ら、優先的に上記一時記憶手段から読み出して上記書込
/読出手段により上記記録媒体に書き込むように制御す
ることを特徴とする請求項6に記載の記録及び/又は再
生装置。
10. The attribute discriminating means discriminates a hit situation with respect to the information temporarily stored in the temporary storage means, and the control means preferentially gives the temporary information from the information having a low value indicating the hit situation. 7. The recording and / or reproducing apparatus according to claim 6, wherein the recording and / or reproducing apparatus is controlled to read from the storage means and to write to the recording medium by the writing / reading means.
【請求項11】 記録媒体から読み出される情報及び/
又は記録媒体に対して書き込む情報を一時記憶する一時
記憶手段と、 上記一時記憶手段に一時記憶される情報の属性を判別す
る属性判別手段と、 上記属性判別手段による判別結果に応じて、上記一時記
憶手段に一時記憶される情報を読み出すと共に上記記録
媒体に書き込むように制御する制御手段と、 上記記録媒体に対する情報の書込及び/又は読出のため
に、上記記録媒体に対するアクセス位置を示すアドレス
を、上記制御手段に通知する書込/読出要求手段と、 を備えることを特徴とする情報記憶システム。
11. Information and / or information read from a recording medium
Alternatively, temporary storage means for temporarily storing information to be written in the recording medium, attribute determination means for determining the attribute of the information temporarily stored in the temporary storage means, and the temporary storage means according to the determination result by the attribute determination means. Control means for controlling the information stored in the storage means to be read out and written in the recording medium, and an address indicating an access position to the recording medium for writing and / or reading the information in the recording medium. An information storage system comprising: a writing / reading request means for notifying the control means.
【請求項12】 上記属性判別手段は、上記一時記憶手
段内に一時記憶された情報について、上記記録媒体に連
続して書き込まれる連続情報と、当該連続情報に比して
上記記録媒体に非連続で書き込まれる非連続情報とを判
別し、 上記制御手段は、上記連続情報について、優先的に読み
出して上記記録媒体に書き込むように制御することを特
徴とする請求項11に記載の情報記憶システム。
12. The attribute discriminating means, regarding the information temporarily stored in the temporary storing means, continuous information continuously written in the recording medium and discontinuous in the recording medium in comparison with the continuous information. 12. The information storage system according to claim 11, wherein the control means determines that the continuous information is written in step S4, and controls the continuous information to be preferentially read and written in the recording medium.
【請求項13】 上記属性判別手段は、上記一時記憶手
段内に一時記憶された情報について、上記記録媒体に書
き込むときにブロッキングを要するブロッキング必要情
報を判別し、 上記制御手段は、上記ブロッキング必要情報以外の情報
について、優先的に読み出して上記記録媒体に書き込む
ように制御することを特徴とする請求項11に記載の情
報記憶システム。
13. The attribute discriminating means discriminates, from the information temporarily stored in the temporary storage means, blocking necessary information that requires blocking when writing to the recording medium, and the control means makes the blocking necessary information. The information storage system according to claim 11, wherein information other than the above is controlled to be preferentially read and written in the recording medium.
【請求項14】 上記制御手段は、上記ブロッキング必
要情報については、上記記録媒体から読み出された情報
を用いて所定の書込データ単位を形成するブロッキング
処理を実行させた上で、上記記録媒体に書き込むように
制御することを特徴とする請求項13に記載の情報記憶
システム。
14. The control means performs a blocking process for forming a predetermined write data unit using the information read from the recording medium for the blocking necessary information, and then the recording medium. The information storage system according to claim 13, wherein the information storage system is controlled so that the information is written in
【請求項15】 上記属性判別手段は、上記一時記憶手
段内に一時記憶された情報についてヒット状況を判別
し、 上記制御手段は、上記ヒット状況を示す値が低い情報か
ら、優先的に読み出して上記記録媒体に書き込むように
制御することを特徴とする請求項11に記載の情報記憶
システム。
15. The attribute discriminating means discriminates a hit situation with respect to the information temporarily stored in the temporary storage means, and the control means preferentially reads out information having a low value indicating the hit situation. The information storage system according to claim 11, wherein the information storage system is controlled so as to be written in the recording medium.
【請求項16】 記録媒体から読み出される情報及び
/又は記録媒体に対して書き込む情報を一時記憶手段に
一時記憶した場合において、上記一時記憶手段に一時記
憶した情報の属性を判別し、 上記属性の判別結果に応じて、上記一時記憶手段に一時
記憶される情報を読み出すと共に上記記録媒体に書き込
むように制御することを特徴とする記憶方法。
16. When the information read from the recording medium and / or the information to be written to the recording medium is temporarily stored in the temporary storage means, the attribute of the information temporarily stored in the temporary storage means is determined, and the A storage method, characterized in that, in accordance with a result of the determination, the information temporarily stored in the temporary storage means is read out and written in the recording medium.
【請求項17】 上記一時記憶手段内に一時記憶された
情報について、上記記録媒体に連続して書き込まれる連
続情報と、当該連続情報に比して上記記録媒体に非連続
で書き込まれる非連続情報とを判別し、 上記連続情報について、優先的に読み出して上記記録媒
体に書き込むように制御することを特徴とする請求項1
6に記載の記憶方法。
17. Regarding information temporarily stored in said temporary storage means, continuous information continuously written in said recording medium, and discontinuous information written discontinuously in said recording medium as compared with said continuous information. The control is performed such that the continuous information is read out preferentially and written to the recording medium.
6. The storage method according to item 6.
【請求項18】 上記一時記憶手段内に一時記憶された
情報について、上記記録媒体に書き込むときにブロッキ
ングを要するブロッキング必要情報を判別し、 上記ブロッキング必要情報以外の情報について、優先的
に読み出して上記記録媒体に書き込むように制御するこ
とを特徴とする請求項16に記載の記憶方法。
18. With respect to the information temporarily stored in the temporary storage means, the blocking necessary information that requires blocking when writing to the recording medium is discriminated, and the information other than the blocking necessary information is read out preferentially. The storage method according to claim 16, wherein the storage method is controlled so as to write to a recording medium.
【請求項19】 上記ブロッキング必要情報について
は、上記記録媒体から読み出された情報を用いて所定の
書込データ単位を形成するブロッキング処理を実行させ
た上で、上記記録媒体に書き込むように制御することを
特徴とする請求項18に記載の記憶方法。
19. The blocking necessary information is controlled to be written in the recording medium after executing a blocking process for forming a predetermined write data unit using the information read from the recording medium. The storage method according to claim 18, further comprising:
【請求項20】 上記一時記憶手段内に一時記憶された
情報についてヒット状況を判別し、 上記ヒット状況を示す値が低い情報から、優先的に読み
出して上記記録媒体に書き込むように制御することを特
徴とする請求項16に記載の記憶方法。
20. A hit state is determined for information temporarily stored in the temporary storage means, and control is performed so that information having a lower value indicating the hit state is preferentially read and written in the recording medium. The storage method according to claim 16, wherein the storage method is a storage medium.
【請求項21】 記録媒体から読み出される情報及び
/又は記録媒体に対して書き込む情報を一時記憶手段に
一時記憶した場合において、上記一時記憶手段に一時記
憶した情報の属性を判別し、 上記属性の判別結果に応じて、上記一時記憶手段に一時
記憶される情報を読み出すと共に上記記録媒体に書き込
むように制御する処理を実行させるプログラム。
21. When the information read from the recording medium and / or the information to be written to the recording medium is temporarily stored in the temporary storage means, the attribute of the information temporarily stored in the temporary storage means is determined, and the A program for executing a process of controlling to read the information temporarily stored in the temporary storage unit and write the information in the recording medium according to the determination result.
【請求項22】 上記一時記憶手段内に一時記憶された
情報について、上記記録媒体に連続して書き込まれる連
続情報と、当該連続情報に比して上記記録媒体に非連続
で書き込まれる非連続情報とを判別し、 上記連続情報について、優先的に読み出して上記記録媒
体に書き込むように制御することを特徴とする請求項2
1に記載のプログラム。
22. Regarding information temporarily stored in the temporary storage means, continuous information continuously written to the recording medium, and discontinuous information written discontinuously to the recording medium as compared with the continuous information. 3. The control is performed so that the continuous information is read out preferentially and written to the recording medium.
The program according to 1.
【請求項23】 上記一時記憶手段内に一時記憶された
情報について、上記記録媒体に書き込むときにブロッキ
ングを要するブロッキング必要情報を判別し、 上記ブロッキング必要情報以外の情報について、優先的
に読み出して上記記録媒体に書き込むように制御するこ
とを特徴とする請求項21に記載のプログラム。
23. With respect to the information temporarily stored in the temporary storage means, the blocking necessary information that requires blocking when writing to the recording medium is discriminated, and the information other than the blocking necessary information is read out preferentially. 22. The program according to claim 21, which is controlled so as to be written in a recording medium.
【請求項24】 上記ブロッキング必要情報について
は、上記記録媒体から読み出された情報を用いて所定の
書込データ単位を形成するブロッキング処理を実行させ
た上で、上記記録媒体に書き込むように制御することを
特徴とする請求項23に記載のプログラム。
24. The blocking necessary information is controlled to be written in the recording medium after executing a blocking process for forming a predetermined write data unit using the information read from the recording medium. 24. The program according to claim 23, wherein
【請求項25】 上記一時記憶手段内に一時記憶された
情報についてヒット状況を判別し、 上記ヒット状況を示す値が低い情報から、優先的に読み
出して上記記録媒体に書き込むように制御することを特
徴とする請求項21に記載のプログラム。
25. It is determined that the hit status is determined for the information temporarily stored in the temporary storage means, and the information having a lower value indicating the hit status is read out preferentially and written in the recording medium. 22. The program according to claim 21, characterized in that
【請求項26】 記録媒体から読み出される情報及び
/又は記録媒体に対して書き込む情報を一時記憶手段に
一時記憶した場合において、上記一時記憶手段に一時記
憶した情報の属性を判別し、 上記属性の判別結果に応じて、上記一時記憶手段に一時
記憶される情報を読み出すと共に上記記録媒体に書き込
むように制御する処理を実行させるプログラムを記録し
た記録媒体。
26. When the information read from the recording medium and / or the information to be written to the recording medium is temporarily stored in the temporary storage means, the attribute of the information temporarily stored in the temporary storage means is determined, and the A recording medium having a program recorded thereon for executing a process of reading information temporarily stored in the temporary storage unit and controlling the writing of the information in the recording medium according to a determination result.
【請求項27】 上記プログラムは、上記一時記憶手段
内に一時記憶された情報について、上記記録媒体に連続
して書き込まれる連続情報と、当該連続情報に比して上
記記録媒体に非連続で書き込まれる非連続情報とを判別
し、 上記連続情報について、優先的に読み出して上記記録媒
体に書き込むように制御することを特徴とする請求項2
6に記載の記録媒体。
27. The program, for information temporarily stored in the temporary storage means, continuous information continuously written in the recording medium, and discontinuously written in the recording medium compared to the continuous information. The non-continuous information to be recorded is discriminated, and the continuous information is controlled to be preferentially read and written in the recording medium.
The recording medium according to 6.
【請求項28】 上記プログラムは、上記一時記憶手段
内に一時記憶された情報について、上記記録媒体に書き
込むときにブロッキングを要するブロッキング必要情報
を判別し、 上記ブロッキング必要情報以外の情報について、優先的
に読み出して上記記録媒体に書き込むように制御するこ
とを特徴とする請求項26に記載の記録媒体。
28. The program determines blocking necessary information that requires blocking when writing to the recording medium for information temporarily stored in the temporary storage means, and gives priority to information other than the blocking necessary information. 27. The recording medium according to claim 26, wherein the recording medium is controlled to be read out and written to the recording medium.
【請求項29】 上記プログラムは、上記ブロッキング
必要情報については、上記記録媒体から読み出された情
報を用いて所定の書込データ単位を形成するブロッキン
グ処理を実行させた上で、上記記録媒体に書き込むよう
に制御することを特徴とする請求項28に記載の記録媒
体。
29. The program causes the recording medium to execute a blocking process of forming a predetermined write data unit using the information read from the recording medium for the blocking necessary information. 29. The recording medium according to claim 28, wherein the recording medium is controlled to be written.
【請求項30】 上記プログラムは、上記一時記憶手段
内に一時記憶された情報についてヒット状況を判別し、 上記ヒット状況を示す値が低い情報から、優先的に読み
出して上記記録媒体に書き込むように制御することを特
徴とする請求項26に記載の記録媒体。
30. The program discriminates a hit situation with respect to the information temporarily stored in the temporary storage means, and preferentially reads and writes in the recording medium from the information having a lower value indicating the hit situation. The recording medium according to claim 26, which is controlled.
JP2002142713A 2002-05-17 2002-05-17 Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium Pending JP2003330798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002142713A JP2003330798A (en) 2002-05-17 2002-05-17 Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002142713A JP2003330798A (en) 2002-05-17 2002-05-17 Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium

Publications (1)

Publication Number Publication Date
JP2003330798A true JP2003330798A (en) 2003-11-21

Family

ID=29702920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002142713A Pending JP2003330798A (en) 2002-05-17 2002-05-17 Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium

Country Status (1)

Country Link
JP (1) JP2003330798A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277545A (en) * 2005-03-30 2006-10-12 Hitachi Ltd Computer system, storage device system and write processing control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277545A (en) * 2005-03-30 2006-10-12 Hitachi Ltd Computer system, storage device system and write processing control method

Similar Documents

Publication Publication Date Title
US5848038A (en) Method of data management using recorded flags to discriminate used allocation blocks and unwritten allocation blocks
KR100278191B1 (en) A method of managing a recordable area in a list and a recording or recording / reproducing apparatus for performing a recording operation based on the list information.
JP4784030B2 (en) Recording apparatus, reproducing apparatus, recording method, reproducing method
JP4007177B2 (en) Data editing method and data editing device
JP2003330797A (en) Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium
JPH0696559A (en) Recording device
US5539711A (en) Optical disc drive apparatus
JPH07168749A (en) Information managing method, data recording medium, data recording method, information retrieving method, and information retriever
JP2003330798A (en) Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium
JP2003338130A (en) Storage device, recording and/or reproducing device, information storage system, write/read method, program and recording medium
JP2003338131A (en) Storage device, reproducing device, information storage system, storage method, program, and recording medium
JP2003330796A (en) Storage device, recording and/or reproduction device, information storage system, storage method, program and recording medium
WO2005066960A1 (en) File management device and file management method
JP4292988B2 (en) Recording apparatus and method
US8069158B2 (en) Receiving apparatus, receiving method, receiving program, recording medium, and receiving system
JP4269841B2 (en) Recording apparatus and method
JP3707813B2 (en) REPRODUCTION DEVICE, RECORDING DEVICE, AND INFORMATION ACCESS METHOD
JP3669350B2 (en) Recording / reproducing apparatus and search circuit
JP4345475B2 (en) Disc playback apparatus and method
JP4158699B2 (en) Recording / reproducing apparatus and method
JP2005228380A (en) Reproducing device
JPH06243578A (en) Disk device
JP2005190569A (en) Disk reproducing device and method
JP2005038532A (en) Memory control device and method, and reproducing device and method
JP2005032397A (en) Data write-read device, reproducing device and method therefor