JP3669350B2 - Recording / reproducing apparatus and search circuit - Google Patents

Recording / reproducing apparatus and search circuit Download PDF

Info

Publication number
JP3669350B2
JP3669350B2 JP2002226580A JP2002226580A JP3669350B2 JP 3669350 B2 JP3669350 B2 JP 3669350B2 JP 2002226580 A JP2002226580 A JP 2002226580A JP 2002226580 A JP2002226580 A JP 2002226580A JP 3669350 B2 JP3669350 B2 JP 3669350B2
Authority
JP
Japan
Prior art keywords
search
data
area
address
recording
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.)
Expired - Fee Related
Application number
JP2002226580A
Other languages
Japanese (ja)
Other versions
JP2003196962A (en
Inventor
保旭 前田
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 JP2002226580A priority Critical patent/JP3669350B2/en
Publication of JP2003196962A publication Critical patent/JP2003196962A/en
Application granted granted Critical
Publication of JP3669350B2 publication Critical patent/JP3669350B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Electrophonic Musical Instruments (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は例えばディスク状記録媒体に楽曲等のデータを記録することのできる記録再生装置、及びその記録再生装置内に設けられる検索回路に関するものである。
【0002】
【従来の技術】
ユーザーが音楽データ等を記録することのできるデータ書き換え可能なディスクメディアが知られており、このようなディスクメディアでは、既に楽曲等のデータが記録されているエリア(セグメント)や未記録エリア(セグメント)を管理するデータ領域(ユーザーTOC,以下U−TOCという)が設けられ、例えば記録動作や記録された楽曲等の消去動作の終了毎にこの管理データも書き換えられるようになされている。
【0003】
そして、例えば或る楽曲の録音を行なおうとする際には、録音装置はU−TOCからディスク上の未記録エリアを探し出し、ここに音声データを記録していくようになされている。また、再生装置においては再生すべき楽曲が記録されているエリアをU−TOCから判別し、そのエリアにアクセスして再生動作を行なう。
【0004】
ところで、光磁気ディスク(MOディスク)等の記録可能のディスクメディアにおいては、DATやコンパクトカセットテープ等のテープ状記録媒体に比べてランダムアクセスがきわめて容易であり、従って、例えば1つの楽曲を必ずしも連続したセグメント(なお、本明細書において『セグメント』とは物理的に連続したデータが記録されているトラック部分のことをいう)に記録する必要はなく、ディスク上において離散的に複数のセグメントに分けて記録してしまっても問題ない。
【0005】
特に、光磁気ディスクから読み出されたデータを高速レートで一旦バッファメモリに蓄え、バッファRAMから低速レートで読出を行なって音声再生信号として復調処理していくシステムでは、セグメント間のアクセスにより、一時的に光磁気ディスクからのデータ読出が中断されてしまっても、再生音声がとぎれることなく出力することができる。
【0006】
従って、セグメント内の記録再生動作と高速アクセス動作(バッファRAMの書込レートと読出レートの差によって生じるデータ蓄積量による再生可能時間以内に終了するアクセス動作)とを繰り返していけば、1つの楽曲のトラックが複数のセグメントに別れて物理的に分割されていても楽曲の記録/再生に支障はないようにすることができる。
【0007】
例えば図18に示すように第1曲目がセグメントT1 、第2曲目がセグメントT2 として連続的に記録されているが、第4曲目、5曲目としてセグメントT4(1)〜T4(4)、T5(1)〜T5(2)に示すようにトラック上に分割して記録されることも可能である。(なお、図18はあくまでも模式的に示したもので、実際には1つのセグメントは数〜数100トラックもしくはそれ以上にわたることが多い。)
【0008】
光磁気ディスクに対して楽曲の記録や消去が繰り返されたとき、記録する楽曲の演奏時間や消去した楽曲の演奏時間の差によりトラック上の空き領域が不規則に発生してしまうが、このように離散的な記録を実行することにより、例えば消去した楽曲よりも長い楽曲を、その消去部分を活用して記録することが可能になり、記録/消去の繰り返しにより、データ記録領域の無駄が生じることは解消される。なお、記録されるのは必ずしも『楽曲』に限らず、音声信号であれば如何なるものも含まれるが、本明細書では内容的に連続する1つのデータのかたまり(記録データ単位)を『楽曲』と表現することとする。
【0009】
もちろんこのようなディスクメディアに対しては、記録時には複数の未記録エリアとなるセグメントをアクセスしながら録音を継続していき、また再生時には1つの楽曲が正しく連続して再生されるようにセグメントがアクセスされていかなければならない。このために必要な、1つの楽曲内のセグメント(例えばT4( 1)〜T4(4))を連結するためのデータや、未記録エリアを示すデータは、上記したように記録動作や消去動作毎に書き換えられるU−TOC情報として保持されており、記録/再生装置は例えばディスクがローディングされた時点でこのU−TOC情報を読み込んでメモリに保持する。そして、記録/再生/消去等の動作の際にはメモリに保持されたU−TOC情報に基づいてヘッドのアクセスを行なうことにより、適正に記録/再生/消去動作をなすように制御される。
【0010】
なお、光磁気ディスクにおける記録トラックは、図19のように4セクターの(1セクタ=2352バイト)サブデータ領域と32セクターのメインデータ領域からなるクラスタCL(=36セクタ−)が連続して形成されており、1クラスタが記録時の最小単位とされる。1クラスタは2〜3周回トラック分に相当する。なお、アドレスは1セクター毎に記録される。
4セクターのサブデータ領域はサブデータやリンキングエリアとしてなどに用いられ、TOCデータ、オーディオデータ等の記録は32セクターのメインデータ領域に行なわれる。
【0011】
また、セクターはさらにサウンドグループに細分化され、2セクターが11サウンドグループに分けられている。そして、サウンドグループ内には512サンプルのデータがLチャンネルとRチャンネルに分けられて記録されることになる。1サウンドグループは11.6msecの時間に相当する音声データ量となる。
【0012】
ここで、録音又は消去に応じたU−TOCの編集動作について説明する。
図20はディスクのトラックのエリア構造をその半径方向に模式的に示したものであり、まずこのエリア構造を説明する。
【0013】
光磁気ディスクの場合、大きくわけて図20にピットエリアとして示すようにエンボスピットによりデータが記録されているエリア(プリマスタードエリア)と、いわゆる光磁気エリアとされてグルーブが設けられているグルーブエリアに分けられる。
【0014】
ここでピットエリアとしては管理情報としてのプリマスタードTOC(以下、P−TOC)が繰り返し記録されており、このP−TOCには、U−TOCの位置がU−TOCスタートアドレスUSTA として示され、また、リードアウトスタートアドレスROA 、レコーダブルユーザーエリアスタートアドレスRSTA 、パワーキャルエリアスタートアドレスPCA 等が示されている。
【0015】
このディスクの最内周側のピットエリアに続いてグルーブエリアが形成されるが、このグルーブエリア内のうち上記P−TOC内のリードアウトスタートアドレスROA として示されるアドレスまでのエリアが、記録可能なレコーダブルエリアとされ、以降はリードアウトエリアとされている。
【0016】
さらにこのレコーダブルエリアのうち、実際にデータが記録されるレコーダブルユーザーエリアは、上記P−TOC内のレコーダブルユーザーエリアスタートアドレスRSTA として示される位置(アドレスAMIN )から、リードアウトスタートアドレスROA 直前の位置(アドレスAMAX )までとなる。
【0017】
そして、グルーブエリア内においてレコーダブルユーザーエリアスタートアドレスRSTA より前となるエリアは、記録再生動作のための管理エリアとされ、上記したU−TOC等が記録され、またパワーキャルエリアスタートアドレスPCA として示される位置から1クラスタ分がレーザーパワーのキャリブレーションエリアとして設けられる。
【0018】
U−TOCはこの記録再生動作のための管理エリア内において所要の位置に3クラスタ連続して記録されるものであり、U−TOCがどのアドレス位置に記録されるかはP−TOCにおけるU−TOCスタートアドレスUSTA に示されることになる。
【0019】
そして、U−TOC内には、管理情報として、レコーダブルユーザーエリアの記録状況を備えることになる。
【0020】
今、仮に図20のように、レコーダブルユーザーエリアに4曲の楽曲M1 〜M4 が記録されているとする。即ち、アドレスA1 (=AMIN )〜A2 のセグメントに第1曲目の楽曲M1 が記録され、また第2曲目の楽曲M2 はアドレスA3 〜A4 のセグメントに記録された部分M2(1)とアドレスA11〜A12のセグメントに記録された部分M2(2)にわかれて記録されている。
【0021】
さらに、第3曲目の楽曲M3 はアドレスA5 〜A6 のセグメントに記録され、また第4曲目の楽曲M4 はアドレスA9 〜A10のセグメントに記録された部分M4(1)とアドレスA13〜A14のセグメントに記録された部分M4(2)にわかれて記録されているとする。
【0022】
この状態で、まだ楽曲の記録されていない未記録領域、つまり新たに録音可能なフリーエリアはアドレスA7 〜A8 のセグメント(F(1) )と、アドレスA15〜A16(=AMAX )のセグメント(F(2) )となる。
【0023】
この状態はU−TOC内において図21に示すように管理される。
U−TOC内には、図21に示すように各種テーブルポインタ(P-DFA,P-EMPTY ,P-FRA ,P-TNO1〜P-TNO255)からなる対応テーブル指示データ部が設けられ、また、これに対応して255個のパーツテーブル(01h) 〜(FFh) を有する管理テーブル部が設けられている。各パーツテーブルはディスク上の1つのセグメントについてそのスタートアドレス、エンドアドレス、トラックモードを示し、また他のパーツテーブルにリンクするためのリンク情報が記録されるようになされている。
そして、対応テーブル指示データ部の各種テーブルポインタによって或るパーツテーブルが示され、セグメントが管理される。
【0024】
テーブルポインタP-DFA はディスク上の欠陥エリアを示すものであるが、今、図20におけるレコーダブルユーザーエリアに欠陥は無いものとすると、テーブルポインタP-DFA は『00h』とされる。続いてテーブルポインタP-EMPTY は未使用のパーツテーブルを示す。
【0025】
テーブルポインタP-FRA は未記録領域(フリーエリア)を管理するためのものであり、ここでテーブルポインタP-FRA に(01h)というパーツテーブルが示されているとする(なお、実際に各テーブルポインタには所定の演算処理でパーツテーブルのアドレスを得ることができる数値によってパーツテーブルが示されている)。
【0026】
この場合、これに対応してパーツテーブル(01h)には、上記図20のフリーエリアF(1) についての情報が示され、つまりアドレスA7 がスタートアドレス、アドレスA8 がエンドアドレスとして示される。また、他のセグメントとしてフリーエリアF(2) が存在するため、パーツテーブル(01h)のリンク情報としてパーツテーブル(09h)が示されている(実際に所定の演算処理で或るパーツテーブルのアドレスを得ることができる数値がリンク情報として示されている)。
【0027】
そしてパーツテーブル(09h)にはフリーエリアF(2) に対応して、アドレスA15がスタートアドレス、アドレスA16がエンドアドレスとして示される。そして、フリーエリアとなるセグメントは他に存在しないため、他のパーツテーブルにリンクさせる必要はなく、リンク情報は『00h』とされる。
【0028】
このようにフリーエリアが管理されることにより、例えば記録を行なう際にはテーブルポインタP-FRA を起点としてパーツテーブルを検索していけば、フリーエリアとなるセグメントのアドレスを得、そのセグメントに楽曲等の録音を行なうことができる。
【0029】
これと同様の形態で既に記録された楽曲も管理されている。楽曲については、テーブルポインタP-TNO1〜P-TNO255により、最大255曲までが管理可能とされる。
【0030】
例えば第1曲目M1 についてはテーブルポインタP-TNO1に示される(02h)のパーツテーブルにおいてそのスタートアドレスA1 及びエンドアドレスA2 が示される。楽曲M1 は1つのセグメントに記録されているため、この場合パーツテーブル(02h)のリンク情報は『00h』とされている。
【0031】
また、第2曲目M2 については、テーブルポインタP-TNO2に示される(04h)のパーツテーブルにおいてそのスタートアドレスA3 及びエンドアドレスA4 が示されている。ただし楽曲M2 は2つのセグメントに別れて記録されており、アドレスA3 及びアドレスA4 は楽曲M2 の前半部分(M2(1))のセグメントを示すのみである。そこでパーツテーブル(04h)のリンク情報として例えばパーツテーブル(06h)が示され、パーツテーブル(06h)には後半部分(M2(2))のセグメントを示すべく、スタートアドレスA11及びエンドアドレスA12が記録されている。以降リンクは不要であるためパーツテーブル(06h)のリンク情報は『00h』とされている。
【0032】
第3曲目M3 ,第4曲目M4 についてもそれぞれテーブルポインタP-TNO3,P-TNO4を起点として得られるパーツテーブルによってそのセグメント位置が管理されている。なお、4曲しか録音されていないため、テーブルポインタP-TNO5〜P-TNO255までは使用されておらず『00h』とされている。
【0033】
このように各楽曲もそのセグメント位置が管理されることにより、曲順が不規則とされたり、または2以上のセグメントに分割されて記録されていても、再生動作は適正に実行できる。
【0034】
また、テーブルポインタP-EMPTY は上記のように未使用のパーツテーブルを示すためのものであって、この例の場合、テーブルポインタP-EMPTY はパーツテーブル(08h)を示している。そして、パーツテーブル(08h)からリンク情報によって図示するようにパーツテーブル(FFh)までの使用されていないパーツテーブルが連結管理されている。未使用パーツテーブルの連結の最後となるパーツテーブル(この場合パーツテーブル(FFh))のリンク情報は以降連結なしとして『00h』とされる。
【0035】
ところで、楽曲の記録/消去等を行なっているうちに、上記管理形態のU−TOCによって管理されない無駄エリア(トラッシュエリア)が生じることが発生する。これは、楽曲の記録の際に誤って他のトラックのデータを消去することがないように前後に例えば数クラスタ分のガードバンド領域を設けて録音を行なったり、さらに録音がクラスタ単位とされて録音開始位置が規定されていること、さらに、曲の一部を削除したり合成する楽曲編集を行なうことなどが原因となって生じる。
【0036】
例えば図20の場合では、斜線部として示した部分、即ちアドレスA4 〜A5 ,アドレスA6 〜A7 ,アドレスA12〜A13がトラッシュエリアとして発生しており、これらのトラッシュエリアとなったセグメントは図21に示したU−TOCの管理形態上ではあらわれてこないことになる。そして、このようなトラッシュエリアが発生すると、その分ディスクの記録容量が小さくなってしまうととなるため、従来より、或る時点でU−TOCの再編集を行なってトラッシュエリアを解消するようにしていた。例えば或る楽曲の消去の際や、ユーザー操作によりU−TOC再編集が指令された際、或は制御装置がトラッシュエリアが増えたと判断した際などにU−TOC編集処理が実行される。
【0037】
ここで消去動作に応じた編集処理例を説明する。
図20の状態から図22に示すように楽曲M3 を消去するとする。このとき、楽曲M3 のセグメントはフリーエリアに組み込まれることになるが、この楽曲M3 のセグメントの前後に位置するトラッシュエリアも同時にフリーエリアに組み込み、さらに後続するアドレスA7 〜A8 のフリーエリアF(1) を合成して、図22に示すようにアドレスA17〜A8 として新たにフリーエリアF(1) を設定すれば、アドレスA4 〜A5 及びアドレスA6 〜A7 のトラッシュエリアは解消されることになる。つまり、新たにU−TOCによって図23の状態でレコーダブルユーザーエリアが管理されるようにU−TOCが書き換えられればよい。
【0038】
そこで、このような記録装置ではメモリ内に保持されたU−TOC情報について、図21の状態から図24の状態に書き換えることになる。図24において斜線を付した部位が図21の状態から書き換えられた部位を示す。
【0039】
即ち、フリーエリアF(1) を示すパーツテーブル(01h)のスタートアドレスがアドレスA17に書き換えられ、さらに、楽曲M3 が消去されたことによって楽曲M4 が繰り上って楽曲M3 とされる。即ちテーブルポインタP-TNO4に書かれていたデータ(即ちパーツテーブル(07h)を示すデータ)がテーブルポインタP-TNO3に書き込まれ、テーブルポインタP-TNO4は『00h』とされる。また、それまで楽曲M3 のセグメントを示していたパーツテーブル(03h)は不要となるため、パーツテーブル(FFh)からリンクされて、テーブルポインタP-EMPTY を起点としてリンクされ、未使用パーツテーブルとして管理されることになる。
この図24のようにU−TOCが編集されることにより図23の状態が実現される。
【0040】
【発明が解決しようとする課題】
ところが、このような編集を行なうためには、U−TOC内のパーツテーブルを検索し、楽曲M3 が記録されていたセグメントと前後に隣り合うセグメント、及びそれらのセグメントが楽曲が記録されたエリアかフリーエリアかを判別することが必要であり、さらに、それら前後のセグメントとの間にトラッシュエリアが存在しているか否かも判別しなくてはならない。
【0041】
特に、図21から分かるように、パーツテーブルからは、或るパーツテーブルに示されたセグメントに対して実際にディスク上で隣り合っているセグメントは分からないため、全てのパーツテーブルについてセグメントのアドレスを順に読み込んで、基準となるセグメント(この場合消去された楽曲M3 のセグメント)のアドレスと比較していき、最も近いものが隣り合うセグメントであるとする検索動作を行なう必要がある。
【0042】
通常、このような記録装置においては、U−TOCを保持するメモリに対してメモリ書込/読出アドレスの出力や記憶データの授受を行なうメモリコントローラが設けられ、さらに、このメモリコントローラに対してシステムコントローラ(マイコン)が動作制御を行なってデータの記憶/読出を実行している。そして、上記したシステムコントローラはメモリからU−TOCを読み込んで実際の記録等の動作を制御しているとともに、上記したU−TOC編集動作も行なっているが、この編集動作のためにシステムコントローラはメモリコントローラを介して上述のように全てのパーツテーブルに対する検索を行ない、しかも検索された各パーツテーブルについてのアドレス比較動作を行なって隣接セグメントを検索することになる。
【0043】
このため、メモリ(メモリコントローラ)からシステムコントローラまでのパーツテーブルのデータの通信に膨大な時間がかかり、また、これらの通信動作と比較処理のために処理負担も著しく大きくなってしまっているという問題がある。
特にメモリコントローラとシステムコントローラがシリアル通信でデータ授受を行なうものである場合、例えば、上記のような編集動作によりトラッシュエリアの処理を実行すると、最悪で2分程度の処理時間が必要になってしまい、このように処理時間が必要になることは、記録装置の実際の使用上、非常に都合が悪い。
【0044】
【課題を解決するための手段】
本発明はこのような問題点にかんがみてなされたもので、U−TOCの編集処理の著しい迅速化とシステムコントローラの処理負担の軽減を同時に実現することができるようにすることを目的とする。
【0045】
このため検索回路は、記録データが記録された記録データ領域と、記録データが未記録な未記録領域と、記録データ領域および未記録領域の各々の領域の開始位置と終了位置とを管理する管理データが記録される管理データ記録領域とを備えるとともに記録データが離散的に記録できる記録媒体から所定の未記録領域に隣接する管理データにて管理されていない無駄領域を検索する検索回路において、記録媒体に記録された管理情報をアドレス管理して記憶するメモリと、所定の未記録領域の位置を検索基準として保持する基準データレジスタ手段と、検索操作によってメモリから読み出されるデータから検索対象データを抽出して出力する出力選択手段と、出力選択手段から出力される検索対象データを検索データとして保持することが出来る検索データレジスタ手段と、出力選択手段から出力される検索対象データに基づいて検索対象データの位置情報を保持する検索対象データ位置レジスタ手段と、基準データレジスタ手段に保持された基準データと出力選択手段から出力される検索対象データとを比較する第1の比較手段と、検索データレジスタ手段に保持された検索データと上記出力選択手段から出力される検索対象データとを比較する第2の比較手段と、第1と第2の比較手段の比較結果に基づいて、検索データレジスタ手段の検索データを更新するために出力選択手段から出力される検索対象データが検索データレジスタ手段に保持され、検索データ位置レジスタ手段の検索位置情報を更新するために検索対象データ位置レジスタ手段に保持された検索対象データ位置情報が検索データ位置レジスタ手段に保持されることを許可する更新制御手段とから構成される。
【0046】
そして、更新制御手段は、所定の未記録領域の前方に位置する無駄領域の検索の場合には、検索データレジスタ手段には検索対象データが備える終了位置を保持させるように制御し、所定の未記録領域の後方に位置する無駄領域の検索の場合には、検索データレジスタ手段には検索対象データが備える開始位置を保持させるように制御するように構成する。
【0047】
また、所定の未記録領域の前方に位置する無駄領域の検索の場合には、第1の比較手段は出力手段から出力される検索対象データが備える終了位置が検索基準より前であるか否かを比較するとともに、第2の比較手段は検索データレジスタが保持する検索データが出力選択手段から出力される検索対象データが備える終了位置より前であるか否かを比較し、所定の未記録領域の後方に位置する無駄領域の検索の場合には、第1の比較手段は出力手段から出力される検索対象データが備える終了位置が検索基準より後であるか否かを比較するとともに、第2の比較手段は検索データレジスタが保持する検索データが出力選択手段から出力される検索対象データが備える終了位置より後であるか否かを比較するようにする。
【0048】
さらに、記録データが記録された記録データ領域と、記録データが未記録な未記録領域と、記録データ領域および未記録領域の各々の領域の開始位置と終了位置とを管理する管理データが記録される管理データ記録領域とを備えるとともに記録データが離散的に記録できる記録媒体から所定の未記録領域に隣接する管理データにて管理されていない無駄領域を検索する記録再生装置において、記録媒体から管理データ記録領域に記録された管理データを再生する再生手段と、再生手段にて再生された記録媒体に記録された管理情報をアドレス管理して記憶するメモリと、所定の未記録領域の位置を検索基準として保持する基準データレジスタ手段と、検索操作によってメモリから読み出されるデータから検索対象データを抽出して出力する出力選択手段と、出力選択手段から出力される検索対象データを検索データとして保持することが出来る検索データレジスタ手段と、出力選択手段から出力される検索対象データに基づいて検索対象データの位置情報を保持する検索対象データ位置レジスタ手段と、基準データレジスタ手段に保持された基準データと出力選択手段から出力される検索対象データとを比較する第1の比較手段と、検索データレジスタ手段に保持された検索データと出力選択手段から出力される検索対象データとを比較する第2の比較手段と、第1と第2の比較手段の比較結果に基づいて、検索データレジスタ手段の検索データを更新するために出力選択手段から出力される検索対象データが検索データレジスタ手段に保持され、検索データ位置レジスタ手段の検索位置情報を更新するために検索対象データ位置レジスタ手段に保持された検索対象データ位置情報が検索データ位置レジスタ手段に保持されることを許可する更新制御手段と、検索データレジスタに保持された検索データに基づいて所定の空き領域に検索された所定の空き領域に隣接する無駄領域をマージして検索された無駄領域を消失させるようにメモリに記憶された管理情報を編集する制御手段と、編集されたメモリに記憶された管理情報を記録媒体の管理データ記録領域に書き戻す記録手段とを備えて構成する。
【0049】
【作用】
本発明は、所定の未記録領域の位置を検索基準として保持し、検索操作によってメモリから読み出されるデータから検索対象データを抽出して検索データとして保持し、該検索対象データの位置情報を検索対象データ位置レジスタ手段に保持し、基準データと検索対象データとを比較する第1の比較結果と、検索データと検索対象データとを比較する第2の比較結果に基づいて、検索データを更新するために検索対象データが検索データレジスタ手段に保持され、検索位置情報を更新するために検索対象データ位置情報が検索データ位置レジスタ手段に保持される。
このため、編集の基準となるセグメントの前後のセグメントを検索する処理が検索回路により実行されることにより、システムコントローラが検索を実行する必要はなくなり、システムコントローラの処理負担は軽減される。
【0050】
【実施例】
以下、図1〜図17を用いて本発明のメモリ制御装置及びメモリデータサーチ回路の実施例を説明する。この実施例は光磁気ディスクを記録媒体として用いた記録再生装置において設けられるメモリ制御装置、及びそのメモリ制御装置内に設けられるメモリデータサーチ回路とする。
【0051】
図1は記録再生装置の要部のブロック図を示している。
図1において、1は例えば音声データが記録されている光磁気ディスクを示し、スピンドルモータ2により回転駆動される。3は光磁気ディスク1に対して記録/再生時にレーザ光を照射する光学ヘッドであり、記録時には記録トラックをキュリー温度まで加熱するための高レベルのレーザ出力をなし、また再生時には磁気カー効果により反射光からデータを検出するための比較的低レベルのレーザ出力をなす。
【0052】
このため、光学ヘッド3はレーザ出力手段としてのレーザダイオード、偏向ビームスプリッタや対物レンズ等からなる光学系、及び反射光を検出するためのディテクタが搭載されている。対物レンズ3aは2軸機構4によってディスク半径方向及びディスクに接離する方向に変位可能に保持されている。
【0053】
また、6は供給されたデータによって変調された磁界を光磁気ディスクに印加する磁気ヘッドを示し、光磁気ディスク1を挟んで光学ヘッド3と対向する位置に配置されている。光学ヘッド3全体及び磁気ヘッド6は、スレッド機構5によりディスク半径方向に移動可能とされている。
【0054】
再生動作によって、光学ヘッド3により光磁気ディスク1から検出された情報はRFアンプ7に供給される。RFアンプ7は供給された情報の演算処理により、再生RF信号、トラッキングエラー信号、フォーカスエラー信号、絶対位置情報(光磁気ディスク1にプリグルーブ(ウォブリンググルーブ)として記録されている絶対位置情報)、アドレス情報、フォーカスモニタ信号等を抽出する。そして、抽出された再生RF信号はエンコーダ/デコーダ部8に供給される。また、トラッキングエラー信号、フォーカスエラー信号はサーボ回路9に供給され、アドレス情報はアドレスデコーダ10に供給される。さらに絶対位置情報、フォーカスモニタ信号は例えばマイクロコンピュータによって構成されるシステムコントローラ11に供給される。
【0055】
サーボ回路9は供給されたトラッキングエラー信号、フォーカスエラー信号や、システムコントローラ11からのトラックジャンプ指令、シーク指令、スピンドルモータ2の回転速度検出情報等により各種サーボ駆動信号を発生させ、2軸機構4及びスレッド機構5を制御してフォーカス及びトラッキング制御をなし、またスピンドルモータ2を一定角速度(CAV)又は一定線速度(CLV)に制御する。
【0056】
再生RF信号はエンコーダ/デコーダ部8でEFM復調、CIRC等のデコード処理された後、メモリコントローラ12によって一旦バッファRAM13に書き込まれる。なお、光学ヘッド3による光磁気ディスク1からのデータの読み取り及び光学ヘッド3からバッファRAM13までの系における再生データの転送は1.41Mbit/secで、しかも間欠的に行なわれる。
【0057】
バッファRAM13に書き込まれたデータは、再生データの転送が0.3Mbit/sec となるタイミングで読み出され、エンコーダ/デコーダ部14に供給される。そして、音声圧縮処理に対するデコード処理等の再生信号処理を施され、D/A変換器15によってアナログ信号とされ、端子16から所定の増幅回路部へ供給されて再生出力される。例えばL,Rオーディオ信号として出力される。
【0058】
ここで、バッファRAM13へのデータの書込/読出は、メモリコントローラ12によって書込ポインタと読出ポインタの制御によりアドレス指定されて行なわれるが、書込ポインタ(書込アドレス)は上記したように1.41Mbit/secのタイミングでインクリメントされ、一方、読出ポインタ(読出アドレス)は0.3Mbit/sec のタイミングでインクリメントされていくため、この書込と読出のビットレートの差異により、バッファRAM13内には或る程度データが蓄積された状態となる。バッファRAM13内にフル容量のデータが蓄積された時点で書込ポインタのインクリメントは停止され、光学ヘッド3による光磁気ディスク1からのデータ読出動作も停止される。ただし読出ポインタRのインクリメントは継続して実行されているため、再生音声出力はとぎれないことになる。
【0059】
その後、バッファRAM13から読出動作のみが継続されていき、或る時点でバッファRAM13内のデータ蓄積量が所定量以下となったとすると、再び光学ヘッド3によるデータ読出動作及び書込ポインタWのインクリメントが再開され、再びバッファRAM13のデータ蓄積がなされていく。
【0060】
このようにバッファRAM13を介して再生音響信号を出力することにより、例えば外乱等でトラッキングが外れた場合などでも、再生音声出力が中断してしまうことはなく、データ蓄積が残っているうちに例えば正しいトラッキング位置までにアクセスしてデータ読出を再開することで、再生出力に影響を与えずに動作を続行できる。即ち、耐震機能を著しく向上させることができる。
【0061】
図1において、アドレスデコーダ10から出力されるアドレス情報や制御動作に供されるサブコードデータはエンコーダ/デコーダ部8を介してシステムコントローラ11に供給され、各種の制御動作に用いられる。
さらに、記録/再生動作のビットクロックを発生させるPLL回路のロック検出信号、及び再生データ(L,Rチャンネル)のフレーム同期信号の欠落状態のモニタ信号もシステムコントローラ11に供給される。
【0062】
また、システムコントローラ11は光学ヘッド3におけるレーザダイオードの動作を制御するレーザ制御信号SLPを出力しており、レーザダイオードの出力をオン/オフ制御するとともに、オン制御時としては、レーザパワーが比較的低レベルである再生時の出力と、比較的高レベルである記録時の出力とを切り換えることができるようになされている。
【0063】
光磁気ディスク1に対して記録動作が実行される際には、端子17に供給された記録信号(アナログオーディオ信号)は、A/D変換器18によってデジタルデータとされた後、エンコーダ/デコーダ部14に供給され、音声圧縮エンコード処理を施される。エンコーダ/デコーダ部14によって圧縮された記録データはメモリコントローラ12によって一旦バッファRAM13に書き込まれ、また所定タイミングで読み出されてエンコーダ/デコーダ部8に送られる。そしてエンコーダ/デコーダ部8でCIRCエンコード、EFM変調等のエンコード処理された後、磁気ヘッド駆動回路15に供給される。
【0064】
磁気ヘッド駆動回路15はエンコード処理された記録データに応じて、磁気ヘッド6に磁気ヘッド駆動信号を供給する。つまり、光磁気ディスク1に対して磁気ヘッド6によるN又はSの磁界印加を実行させる。また、このときシステムコントローラ11は光学ヘッドに対して、記録レベルのレーザ光を出力するように制御信号を供給する。
【0065】
19はユーザー操作に供されるキーが設けられた操作入力部、20は例えば液晶ディスプレイによって構成される表示部を示す。操作入力部19には録音キー、再生キー、停止キー、AMSキー、サーチキー等がユーザー操作に供されるように設けられている。
【0066】
また、ディスク1に対して記録/再生動作を行なう際には、ディスク1に記録されている管理情報、即ちP−TOC、U−TOCを読み出して、システムコントローラ11はこれらの管理情報に応じてディスク1上の記録すべきセグメントのアドレスや、再生すべきセグメントのアドレスを判別することとなるが、この管理情報はバッファRAM13に保持される。このためバッファRAM13は、上記した記録データ/再生データのバッファエリアと、これら管理情報を保持するエリアが分割設定されている。
【0067】
そして、システムコントローラ11はこれらの管理情報を、ディスク1が装填された際に管理情報の記録されたディスクの最内周側の再生動作を実行させることによって読み出し、バッファRAM13に記憶しておき、以後そのディスク1に対する記録/再生動作の際に参照できるようにしている。
【0068】
また、U−TOCはデータの記録や消去に応じて編集され、また場合によっては上述したトラッシュエリアを解消するマージ処理を伴って編集されて書き換えられるものであるが、システムコントローラ11は記録/消去動作のたびにこの編集処理をバッファRAM13に記憶されたU−TOC情報に対して行ない、その書換動作に応じて所定のタイミングでディスク1のU−TOCエリアについても書き換えるようにしている。
【0069】
ここで、ディスク1におけるP−TOC及びU−TOCについて説明する。
P−TOC情報としては、ディスクの記録可能エリア(レコーダブルユーザーエリア)などのエリア指定やU−TOCエリアの管理等が行なわれる。なお、ディスク1が再生専用の光ディスクであるプリマスタードディスクの場合は、P−TOCによってROM化されて記録されている楽曲の管理も行なうことができるようになされている。
【0070】
P−TOCのフォーマットを図14に示す。
図14はP−TOC用とされる領域(例えばディスク最内周側のROMエリア)において繰り返し記録されるP−TOC情報の1つのセクター(セクター0)を示している。
【0071】
P−TOCのセクターのデータ領域は、例えば4バイト×588(=2336バイト) のデータ領域として構成され、先頭位置にオール0又はオール1の1バイトデータによって成る同期パターンを及びクラスタアドレス及びセクターアドレスを示すアドレス等が4バイト付加され、以上でヘッダとされてP−TOCの領域であることが示される。
【0072】
また、ヘッダに続いて所定アドレス位置に『MINI』という文字に対応したアスキーコードによる識別IDが付加されている。
さらに、続いてディスクタイプや録音レベル、記録されている最初の楽曲の曲番(First TNO)、最後の楽曲の曲番(Last TNO) 、リードアウトスタートアドレスROA 、パワーキャルエリアスタートアドレスPCA 、U−TOC(後述する図15のU−TOCセクター0のデータ領域)のスタートアドレスUSTA 、録音可能なエリアのスタートアドレスRSTA 等が記録される。
【0073】
これらの24ビット(3バイト)のスタートアドレスは図17(a)に示すように上位16ビットがクラスタアドレス、下位8ビットがセクターアドレスとされている。そして、図20において前述したようにこれらのスタートアドレスによってディスク1上のエリア管理がなされる。
【0074】
続いて、記録されている各楽曲等を後述する管理テーブル部におけるパーツテーブルに対応させるテーブルポインタ(P-TNO1 〜P-TNO255) を有する対応テーブル指示データ部が用意されている。
【0075】
そして対応テーブル指示データ部に続く領域には、対応テーブル指示データ部におけるテーブルポインタ(P-TNO1 〜P-TNO255) に対応して、(01h) 〜(FFh) までの255個のパーツテーブルが設けられた管理テーブル部が用意される(なお、『h』を付した数値はいわゆる16進表記のものである)。それぞれのパーツテーブルには、或るセグメントについて起点となるスタートアドレス、終端となるエンドアドレス、及びそのセグメント(トラック)のモード情報(トラックモード)が記録できるようになされている。
【0076】
各パーツテーブルにおけるトラックのモード情報とは、そのセグメントが例えばオーバーライト禁止やデータ複写禁止に設定されているか否かの情報や、オーディオ情報か否か、モノラル/ステレオの種別などが記録されている。
【0077】
管理テーブル部における(01h) 〜(FFh) までの各パーツテーブルは、対応テーブル指示データ部のテーブルポインタ (P-TNO1〜P-TNO255) によって、そのセグメントの内容が示される。つまり、第1曲目の楽曲についてはテーブルポインタP-TNO1として或るパーツテーブル(例えば(01h) 。ただし実際にはテーブルポインタには所定の演算処理によりP−TOCセクター0内のバイトポジションで或るパーツテーブルを示すことができる数値が記されている)が記録されており、この場合パーツテーブル(01h) のスタートアドレスは第1曲目の楽曲の記録位置のスタートアドレスとなり、同様にエンドアドレスは第1曲目の楽曲が記録された位置のエンドアドレスとなる。さらに、トラックモード情報はその第1曲目についての情報となる。
【0078】
なお、これらのパーツテーブルにおける24ビット(3バイト)のスタートアドレス、エンドアドレスは図17(b)に示すように上位14ビットがクラスタアドレス、続く6ビットがセクターアドレス、下位4ビットがサウンドグループアドレスとされている。
【0079】
同様に第2曲目についてはテーブルポインタP-TNO2に示されるパーツテーブル(例えば(02h) )に、その第2曲目の記録位置のスタートアドレス、エンドアドレス、及びトラックモード情報が記録されている。
以下同様にテーブルポインタはP-TNO255まで用意されているため、P−TOC上では第255曲目まで管理可能とされている。
そして、このようにP−TOCセクター0が形成されることにより、例えば再生時において、所定の楽曲をアクセスして再生させることができる。
【0080】
なお、本実施例について後述するようU−TOCの編集動作が行なわれる対象となるディスクは、記録/再生可能な光磁気ディスクであり、この場合いわゆるプリマスタードの楽曲エリアが存在しないものであるため、上記した対応テーブル指示データ部及び管理テーブル部は用いられず(これらは続いて説明するU−TOCで管理される)、従って各バイトは全て『00h』とされている。
ただし、楽曲等が記録されるエリアとしてROMエリアと光磁気エリアの両方を備えたハイブリッドタイプのディスクについては、そのROMエリア内の楽曲の管理に上記対応テーブル指示データ部及び管理テーブル部が用いられる。
【0081】
続いてU−TOCの説明を行なう。
図15はU−TOCの1セクターのフォーマットを示しており、主にユーザーが録音を行なった楽曲や新たに楽曲が録音可能な未記録エリア(フリーエリア)についての管理情報が記録されているデータ領域とされる。
例えばディスク1に或る楽曲の録音を行なおうとする際には、このシステムコントローラ11は、U−TOCからディスク上のフリーエリアを探し出し、ここに音声データを記録していくことができるようになされている。また、再生時には再生すべき楽曲が記録されているエリアをU−TOCから判別し、そのエリアにアクセスして再生動作を行なう。
【0082】
図15に示すU−TOCのセクター(セクター0)には、P−TOCと同様にまずヘッダが設けられ、続いて所定アドレス位置に、メーカーコード、モデルコード、最初の楽曲の曲番(First TNO)、最後の楽曲の曲番(Last TNO)、セクター使用状況、ディスクシリアルナンバ、ディスクID等のデータが記録され、さらに、ユーザーが録音を行なって記録されている楽曲の領域や未記録領域等を後述する管理テーブル部に対応させることによって識別するため、対応テーブル指示データ部として各種のテーブルポインタ(P-DFA,P-EMPTY ,P-FRA ,P-TNO1〜P-TNO255) が記録される領域が用意されている。
【0083】
そして対応テーブル指示データ部のテーブルポインタ(P-DFA〜P-TNO255) に対応させることになる管理テーブル部として(01h) 〜(FFh) までの255個のパーツテーブルが設けられ、それぞれのパーツテーブルには、上記図14のP−TOCセクター0と同様に或るセグメントについて起点となるスタートアドレス、終端となるエンドアドレス、そのセグメントのモード情報(トラックモード)が記録されており、さらにこのU−TOCセクター0の場合、各パーツテーブルで示されるセグメントが他のセグメントへ続いて連結される場合があるため、その連結されるセグメントのスタートアドレス及びエンドアドレスが記録されているパーツテーブルを示すリンク情報が記録できるようになされている。
【0084】
これらのパーツテーブルにおける24ビット(3バイト)のスタートアドレス、エンドアドレスは、図17(b)に示すように上位14ビットがクラスタアドレス、続く6ビットがセクターアドレス、下位4ビットがサウンドグループアドレスとされている。
【0085】
上述のようにこの種の記録再生装置では、例えば1つの楽曲のデータ物理的に不連続に、即ち複数のセグメントにわたって記録されていてもセグメント間でアクセスしながら再生していくことにより再生動作に支障はないため、ユーザーが録音する楽曲等については、録音可能エリアの効率使用等の目的から、複数セグメントにわけて記録する場合もある。そのため、リンク情報が設けられ、例えば各パーツテーブルに与えられたナンバ(01h) 〜(FFh) (実際には所定の演算処理によりU−TOCセクター0内のバイトポジションとされる数値で示される)によって、連結すべきパーツテーブルを指定することによってパーツテーブルが連結できるようになされている。(なお、あらかじめ記録される楽曲等については通常セグメント分割されることがないため、前記図14のようにP−TOCセクター0においてリンク情報はすべて『(00h) 』とされている。)
【0086】
つまりU−TOCセクター0における管理テーブル部においては、1つのパーツテーブルは1つのセグメントを表現しており、例えば3つのセグメントが連結されて構成される楽曲についてはリンク情報によって連結される3つのパーツテーブルによって、そのセグメント位置の管理はなされる。
【0087】
U−TOCセクター0の管理テーブル部における(01h) 〜(FFh) までの各パーツテーブルは、対応テーブル指示データ部におけるテーブルポインタ(P-DFA,P-EMPTY ,P-FRA ,P-TNO1〜P-TNO255) によって、以下のようにそのセグメントの内容が示される。
【0088】
テーブルポインタP-DFA は光磁気ディスク1上の欠陥領域に付いて示しており、傷などによる欠陥領域となるトラック部分(=セグメント)が示された1つのパーツテーブル又は複数のパーツテーブル内の先頭のパーツテーブルを指定している。つまり、欠陥セグメントが存在する場合はテーブルポインタP-DFA において(01h) 〜(FFh) のいづれかが記録されており、それに相当するパーツテーブルには、欠陥セグメントがスタート及びエンドアドレスによって示されている。また、他にも欠陥セグメントが存在する場合は、そのパーツテーブルにおけるリンク情報として他のパーツテーブルが指定され、そのパーツテーブルにも欠陥セグメントが示されている。そして、さらに他の欠陥セグメントがない場合はリンク情報は例えば『(00h) 』とされ、以降リンクなしとされる。
【0089】
テーブルポインタP-EMPTY は管理テーブル部における1又は複数の未使用のパーツテーブルの先頭のパーツテーブルを示すものであり、未使用のパーツテーブルが存在する場合は、テーブルポインタP-EMPTY として、(01h) 〜(FFh) のうちのいづれかが記録される。未使用のパーツテーブルが複数存在する場合は、テーブルポインタP-EMPTY によって指定されたパーツテーブルからリンク情報によって順次パーツテーブルが指定されていき、全ての未使用のパーツテーブルが管理テーブル部上で連結される。
【0090】
例えば全く楽曲等の音声データの記録がなされておらず欠陥もない光磁気ディスクであれば、パーツテーブルは全て使用されていないため、例えばテーブルポインタP-EMPTY によってパーツテーブル(01h) が指定され、また、パーツテーブル(01h) のリンク情報としてパーツテーブル(02h) が指定され、パーツテーブル(02h) のリンク情報としてパーツテーブル(03)が指定され、というようにパーツテーブル(FFh) まで連結される。この場合パーツテーブル(FFh) のリンク情報は以降連結なしを示す『(00h) 』とされる。
【0091】
テーブルポインタP-FRA は光磁気ディスク1上のデータの書込可能なフリーエリア(消去領域を含む)について示しており、フリーエリアとなるトラック部分(=セグメント)が示された1又は複数のパーツテーブル内の先頭のパーツテーブルを指定している。つまり、フリーエリアが存在する場合はテーブルポインタP-FRA において(01h) 〜(FFh) のいづれかが記録されており、それに相当するパーツテーブルには、フリーエリアであるセグメントがスタート及びエンドアドレスによって示されている。また、このようなセグメントが複数個有り、つまりパーツテーブルが複数個有る場合はリンク情報により、リンク情報が『(00h) 』となるパーツテーブルまで順次指定されている。
【0092】
図16にパーツテーブルにより、フリーエリアとなるセグメントの管理状態を模式的に示す。これはセグメント(03h)(18h)(1Fh)(2Bh)(E3h) がフリーエリアとされている時に、この状態が対応テーブル指示データP-FRA に引き続きパーツテーブル(03h)(18h)(1Fh)(2Bh)(E3h) のリンクによって表現されている状態を示している。なお、上記した欠陥領域や、未使用パーツテーブルの管理形態もこれと同様となる。
【0093】
テーブルポインタP-TNO1〜P-TNO255は、光磁気ディスク1にユーザーが記録を行なった楽曲について示しており、例えばテーブルポインタP-TNO1では1曲目のデータが記録された1又は複数のセグメントのうちの時間的に先頭となるセグメントが示されたパーツテーブルを指定している。
【0094】
例えば1曲目とされた楽曲がディスク上でトラックが分断されずに(つまり1つのセグメントで)記録されている場合は、その1曲目の記録領域はテーブルポインタP-TNO1で示されるパーツテーブルにおけるスタート及びエンドアドレスとして記録されている。
【0095】
また、例えば2曲目とされた楽曲がディスク上で複数のセグメントに離散的に記録されている場合は、その楽曲の記録位置を示すため各セグメントが時間的な順序に従って指定される。つまり、テーブルポインタP-TNO2に指定されたパーツテーブルから、さらにリンク情報によって他のパーツテーブルが順次時間的な順序に従って指定されて、リンク情報が『(00h) 』となるパーツテーブルまで連結される(上記、図16と同様の形態)。このように例えば2曲目を構成するデータが記録された全セグメントが順次指定されて記録されていることにより、このU−TOCセクター0のデータを用いて、2曲目の再生時や、その2曲目の領域へのオーバライトを行なう際に、光学ヘッド3及び磁気ヘッド6をアクセスさせ離散的なセグメントから連続的な音楽情報を取り出したり、記録エリアを効率使用した記録が可能になる。
【0096】
以上のようにディスク上のエリア管理はP−TOCによってなされ、またレコーダブルユーザーエリアにおいて記録された楽曲やフリーエリア等はU−TOCにより行なわれる。
【0097】
これらのTOC情報はバッファRAM13に読み込まれてシステムコントローラ11がこれを参照できるようになされるが、上述したように例えば消去動作を行なった際などにはトラッシュエリアを消失させるマージ処理を含めたU−TOC編集処理を行なうことになる。そして、この処理に好適な構成を備えて本実施例のメモリ制御装置及びメモリデータサーチ回路が構成されている。
本実施例のメモリ制御装置としては、図1の記録再生装置におけるメモリコントローラ12及びシステムコントローラ11のメモリコントローラ12に対する制御機能によって構成されることになり、また本実施例のメモリデータサーチ回路はメモリコントローラ12の内部に具備されるものとなる。
【0098】
以下、これらのメモリ制御装置、メモリデータサーチ回路、及び実行されるU−TOC編集処理について図2〜図13を用いて説明する。
図2はメモリコントローラ12の内部構成を示すブロック図である。30はディスクドライブインターフェース部であり、ディスクドライブ側、即ちエンコーダ/デコーダ部8に対する記録/再生データDt、及びTOC情報TDtの保持及び授受を行なう。
【0099】
31はRAMデータインターフェース部であり、バッファRAM13に対してデータの書込/読出及びこれらのデータの保持を行なう。書込/読出対象となるデータは記録/再生データDt、及びTOC情報TDtとなる。
32は音声圧縮インターフェース部であり、音声圧縮部即ちエンコーダ/デコーダ部14に対する記録/再生データDtの保持及び授受を行なう。
【0100】
33はコントローラインターフェース部であり、システムコントローラ11に対するインターフェースとなる。ここではシステムコントローラ11との間でTOC情報TDtの受け渡しや、システムコントローラ11からの制御信号の入力、及びこれらのデータ保持が行なわれる。
【0101】
34はアドレスカウンタであり、システムコントローラ11からの制御信号に基づいて書込アドレス/読出アドレス(MAd)を発生させ、バッファRAM13に出力する。
【0102】
35はメモリデータサーチ回路であり、コントローラインターフェース部33を介してシステムコントローラ11からの各種制御信号を入力すると、それに基づいてバッファRAM13に保持されたTOC情報TDtの検索動作を行なうことができるようになされている。
Bは各部を接続している制御バスを示す。
【0103】
メモリデータサーチ回路35の構成を図3に示す。
40は出力選択部、41はDフリップフロップにより構成される基準アドレスレジスタを示す。この基準アドレスレジスタ41にはシステムコントローラ11からコントローラインターフェース部33を介して供給された基準アドレスADref がセットされる。この基準アドレスADref とは、後述するU−TOC編集処理において基準となるセグメントのスタートアドレス又はエンドアドレスがこれに相当することとなる。
【0104】
また出力選択部40は、例えば後述する検索動作時においてバッファRAM13から読み出されたデータ(U−TOCのパーツテーブルにおけるデータ)から基準アドレスADref と比較すべき検索対象アドレスADR を出力する。
【0105】
42はDフリップフロップにより構成される近接アドレスレジスタであり、出力選択部40から出力されるアドレスADR をラッチすることができるようになされている。最終的には、この近接アドレスレジスタ42にラッチされているアドレスADprevが、このメモリデータサーチ回路34の検索処理により求められる検索アドレスとなる。
【0106】
43はテンポラリレジスタを示し、出力選択部40から出力される検索対象アドレスADR と同一のパーツテーブルに記録されていたリンク情報(もしくはテーブルポインタ)が入力され、例えば2段のレジスタ構成で、今回入力されたリンク情報と前回入力されたリンク情報が保持される。前回入力されて保持しているリンク情報を検索対象パーツ情報LKR とする。
【0107】
また、44はリンクレジスタであり、テンポラリレジスタ43から出力される検索対象パーツ情報LKR を検索パーツ情報LKprevとしてラッチできるようになされている。このリンクレジスタ44はDフリップフロップで構成されている。
【0108】
45は、基準アドレスレジスタ41にラッチされている基準アドレスADref と出力選択部40から出力された検索対象アドレスADR を比較する比較部、46は、出力選択部40から出力された検索対象アドレスADR と近接アドレスレジスタ42にラッチされている検索アドレスADprevを比較する比較部である。
【0109】
47はコントロールロジックを示し、比較部45,46による比較結果に基づいて近接アドレスレジスタ42及びリンクレジスタ44に対してラッチ信号を出力し、近接アドレスレジスタ42に対しては、出力選択部40から出力された検索対象アドレスADR を新たな検索アドレスADprevとする、検索アドレスADprevの更新動作を実行させ、またリンクレジスタ44に対しては、テンポラリレジスタ43にラッチされている検索対象パーツ情報LKR が新たな検索パーツ情報LKprevとなるように、検索パーツ情報LKprevの更新動作を実行させる。
【0110】
メモリコントローラ12内にこのようなメモリデータサーチ回路35が設けられることにより、例えば或る楽曲を消去したことに応じてU−TOCの編集がなされる際に、その楽曲が消去されたセグメント(編集の基準となるセグメント)の前後のセグメントを検索し、トラッシュエリアが存在する場合はそのトラッシュエリアを解消するマージ処理が行なわれるが(前記図20〜図24参照)、このとき必要な編集の基準となるセグメントの前後のセグメントを検索する処理は、このメモリデータサーチ回路35によって実行されることになり、システムコントローラ11が検索を実行する必要はなくなる。
【0111】
U−TOC編集処理の際のマージ処理について図4、図9のフローチャートを参照しながら説明する。なお、マージ処理は編集基準となるセグメントの前方(ディスク内周側)のマージ処理と後方(ディスク外周側)のマージ処理があり、これに関するシステムコントローラ11の処理を図4と図9にわけて説明していく。
【0112】
前方マージ処理としてのシステムコントローラ11の処理は図4のとおりとなる。
まず、システムコントローラ11は編集基準となるセグメントのスタートアドレスを基準アドレスNref として内部でセットする(F101)。例えば図5〜図8に示すように、ディスク1上でアドレスA26〜A27のセグメント(斜線部)に楽曲が記録されており、これを消去したことに応じてマージ処理が実行されるとすると、その消去されフリーエリアにかわるアドレスA26〜A27のセグメントが編集基準のセグメント(基準フリーエリア)となり、この基準フリーエリアのスタートアドレスA26が基準アドレスNref としてセットされる。
【0113】
なお、図5〜図8は基準フリーエリアの前方について各種場合を示しているものであり、図5(a)は基準フリーエリアの前方にトラッシュエリアを介して楽曲が記録されているセグメントが存在している場合、図6は基準フリーエリアの前方はすぐに楽曲が記録されているセグメントが存在しトラッシュエリアがない場合、図7(a)は基準フリーエリアの前方にトラッシュエリアを介してフリーエリアとなるセグメントが存在している場合、図8(a)は基準フリーエリアの前方はすぐにフリーエリアとなるセグメントが存在しトラッシュエリアがない場合を示しているものであり、以下の前方マージ処理は、現在の状態がこのいづれに該当する状態であるかを判別し、それに応じてマージ処理を行なうものとなる。
【0114】
基準アドレスNref をセットしたら、システムコントローラ11は次にメモリコントローラ12に対して前方サーチモードを実行させる。即ち、基準フリーエリアの前方隣接位置が図5(a)、図6、図7(a)、図8(a)のいづれの状態であるかをメモリコントローラ12に判別させる(F102)。
【0115】
このために、メモリコントローラ12のコントローラインターフェース部33を介してメモリデータサーチ回路35の基準アドレスレジスタ41に基準アドレスNref を供給するとともにラッチ制御コマンドを供給し、基準アドレスNref を基準アドレスレジスタ41に基準アドレスADref として保持させる。
【0116】
また、同様に近接アドレスレジスタ42に対しては検索アドレスADprevの初期値としてアドレスAMIN を供給し、これをラッチさせる。なお、アドレスAMIN は図20に示したようにレコーダブルユーザーエリアの先頭位置のアドレスである。
さらに、リンクレジスタ44の検索パーツ情報LKprevをクリアする。
【0117】
また、サーチモード信号SSMを出力選択部40及びコントロールロジック47に対して出力する。サーチモード信号SSMとは、メモリデータサーチ回路35に対して前方マージ処理を実行するか後方マージ処理を実行するかを識別させる信号となる。
【0118】
前方マージ処理を示すサーチモード信号SSMが供給されると、出力選択部40は読み込まれたU−TOCにおけるパーツテーブルのアドレスデータのうち、エンドアドレスを検索対象アドレスADR として出力するようにセットされる。
【0119】
また、前方マージ処理を示すサーチモード信号SSMにより、コントロールロジック47は、比較部45における基準アドレスADref と検索対象アドレスADR の比較によって、ADR <ADref が得られ、かつ、比較部46における検索アドレスADprevと検索対象アドレスADR の比較によってADprev<ADR が得られた際に、近接アドレスレジスタ42及びリンクレジスタ44に対してラッチ制御信号を出力し、検索アドレスADprev及び検索パーツ情報LKprevの更新を実行させるようにセットされる。
【0120】
そして、システムコントローラ11はメモリコントローラ12に対してこのように前方サーチモードをオンとしたら、バッファRAM13に保持されているU−TOCについて、まずテーブルポインタP-FRA から導かれるパーツテーブルについての検索を実行させるように制御する(F103)。即ちメモリコントローラ12にフリーエリアに関するパーツテーブルのリードスキャンを実行させる。そして、このリードスキャンが終了するまで待機する(F104)。
【0121】
このリードスキャンにおいて、メモリコントローラ12のメモリデータサーチ回路35では、基準フリーエリアに対して前方で最も近い位置のフリーエリアとされているセグメントが検索されることになる。
即ち、メモリコントローラ33はアドレスカウンタ34によってテーブルポインタP-FRA から導かれるパーツテーブルについてのアドレスを順次発生させ、これによりRAMデータインターフェース部31を介してフリーエリアを対象としたパーツテーブルのデータが順次取り込まれる。ここで1つのパーツテーブルから取り込まれるデータとは、スタートアドレス3バイト、エンドアドレス3バイト、トラックモード情報1バイト、リンク情報1バイトの全8バイトとなる。
【0122】
メモリデータサーチ回路35がこれらのデータをコントローラインターフェース部33を介して取り込むと、まず、リンク情報はテンポラリレジスタ43に取り込まれる。
【0123】
ただし、このリードスキャン開始の際にはテーブルポインタP-FRA がテンポラリレジスタ43に取り込まれており、最初のパーツテーブルが読み込まれた時点ではテンポラリレジスタ43には前回のリンク情報としてテーブルポインタP-FRA の値が保持され、このテーブルポインタP-FRA の値と今回取り込まれたリンク情報が2段のレジスタ構成によりそれぞれ保持されることになる。そしてこの時点でテンポラリレジスタ43はテーブルポインタP-FRA の値を検索対象パーツ情報LKR として保持していることになる。
【0124】
また、出力選択部40からはそのパーツテーブルに記録されたエンドアドレスが、検索対象アドレスADR として出力される。
そして、比較部45では基準アドレスADref (この場合アドレスA26)と検索対象アドレスADR (そのパーツテーブルのエンドアドレス)が比較される。
【0125】
ここでADR >ADref とされる場合は、その読み込まれたパーツテーブルが基準フリーエリアよりも後方に位置するセグメントについてのパーツテーブルであることを示すことになり、逆に、ADR <ADref であった場合は、読み込まれたパーツテーブルが基準フリーエリアよりも前方に位置するセグメントについてのパーツテーブルであることを示すことになる。
【0126】
また、比較部46では検索アドレスADprev(この場合、最初は初期値であるアドレスAMIN )と検索対象アドレスADR (読み込まれたパーツテーブルのエンドアドレス)が比較される。
【0127】
ここでADR >ADprevとされる場合は、その読み込まれたパーツテーブルが検索アドレスADprevにエンドアドレスが示されるセグメントより後方のセグメントであることになり、一方ADR <ADprevである場合は、その読み込まれたパーツテーブルが検索アドレスADprevにエンドアドレスが示されるセグメントより前方のセグメントであることになる。
ただし、まだ検索アドレスADprevが一度も更新されていない時点で読み込まれたパーツテーブルについては、比較される検索アドレスADprevが初期値AMIN とされているため、必ずADR >ADprevとなる。
【0128】
ここで、比較部45でADR <ADref とされると(検索アドレスADprevが初期値AMIN の場合、比較部46でADR >ADprevという結果が出る)、読み込まれたパーツテーブルは、基準フリーエリアよりも前方であって、比較的近い位置に位置するフリーエリアのセグメントを示すパーツテーブルと判断され、コントロールロジック47は近接アドレスレジスタ42及びリンクレジスタ44にラッチ制御信号を出力し、アドレスADR を新たな検索アドレスADprevとし、またテンポラリレジスタ43にラッチされていた検索対象パーツ情報LKR をリンクレジスタ44に検索パーツ情報LKprevとしてラッチさせる。
【0129】
テンポラリレジスタ43における検索対象パーツ情報LKR は即ち前回読み込まれたパーツテーブルにおけるリンク情報(この場合は即ちテーブルポインタP-FRA の値となる)であるため、このように近接アドレスレジスタ42における検索アドレスADprevが更新されると同時に、その更新されたADprevの値となるエンドアドレスが記録されたパーツテーブルの位置情報がリンクレジスタ44に検索パーツ情報LKprevとして保持されることになる。
【0130】
これにより、基準フリーエリアの前方のセグメントのエンドアドレスが検索アドレスADprevとして保持され、またそのセグメントを示すパーツテーブルの位置が検索リンク情報LKprevとして示される。
【0131】
続いて、リードスキャンに応じてそのパーツテーブルからリンクされているパーツテーブルが読み込まれてくることになり、このパーツテーブルにおけるリンク情報はテンポラリレジスタ43に取り込まれる。このとき、テンポラリレジスタ43における検索対象パーツ情報LKR は前回取り込まれたリンク情報となり、即ち検索対象パーツ情報LKR により今回取り込まれたパーツテーブルのU−TOC上の位置が示されることになる。
またそのパーツテーブルのエンドアドレスが出力選択部40より検索対象アドレスADR として出力される。
【0132】
このとき、その検索対象アドレスADR と基準アドレスADref が比較部45で比較され、さらに検索対象アドレスADR と検索アドレスADprevが比較部46で比較されて、その結果ADR <ADref であって、しかもADR >ADprevであれば、その読み込まれたパーツテーブルは、その時点でエンドアドレスが検索アドレスADprevとして保持されているパーツテーブルよりも、基準フリーエリアに対して前方側でより近い位置にあるセグメントに対するパーツテーブルであることになる。
【0133】
従って、コントロールロジック47は近接アドレスレジスタ42及びリンクレジスタ44にラッチを実行させ、検索アドレスADprevがその読み込まれたパーツテーブルにおけるエンドアドレスとされるように更新させ、また検索パーツ情報LKprevとしてその読み込まれたパーツテーブルの位置を示すリンク情報、即ちこの時点でテンポラリレジスタ43に検索対象パーツ情報LKR として保持されている値に更新されるようにする。
【0134】
続いてリンクされているパーツテーブルが順次読み込まれていくことになるが、その都度比較部45,46による比較動作が実行され、その結果ADR <ADref であって、しかもADR >ADprevであれば、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevが更新され、一方、ADR <ADref かつADR >ADprevの結果が得られなかった時は、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevは更新されずにそのまま前回の更新時の値が保持される。
【0135】
従ってメモリデータサーチ回路35でこのような動作がテーブルポインタP-FRA から導かれる全てのパーツテーブルについてのリードスキャンに応じて実行されると、それが終了した時点で、基準フリーエリアに対して前方側で最も近いフリーエリアとなっているセグメントのエンドアドレスが検索アドレスADprevとして保持され、また、そのセグメントを示すパーツテーブルが検索パーツ情報LKprevとして保持されていることになる。
【0136】
メモリコントローラ12によるテーブルポインタP-FRA からのパーツテーブルのリードスキャンが終了すると、システムコントローラ11の処理は図4のステップF105に進み、メモリデータサーチ回路35に保持されている検索アドレスADprev及び検索パーツ情報LKprevを取り込む。そして検索アドレスADprevを近接フリーエリアアドレスN1 として保持し、また検索パーツ情報LKprevを近接フリーエリアパーツ情報NL1 として保持する。
【0137】
続いて、システムコントローラ11は再びメモリコントローラ12のメモリデータサーチ回路35に対して、近接アドレスレジスタ42に初期値としてアドレスAMIN を検索アドレスADprevとしてセットし、さらにリンクレジスタ44の検索パーツ情報LKprevをクリアする(F106)。
【0138】
そして、システムコントローラ11はメモリコントローラ12に対してこのようにメモリデータサーチ回路35をセットしたら、メモリコントローラ12に対して、バッファRAM13に保持されているU−TOCについて今度はテーブルポインタP-TNO1〜P-TNO255のそれぞれから導かれるパーツテーブルについての検索を順次実行させるように制御する(F108)。即ちメモリコントローラ12に楽曲が記録されているセグメント(楽曲エリア)に関するパーツテーブルのリードスキャンを実行させる。そして、このリードスキャンが終了するまで待機する(F109)。
【0139】
このリードスキャンにおいては、メモリコントローラ12のメモリデータサーチ回路35では、基準フリーエリアに対して前方で最も近い位置の楽曲エリアとなるセグメントが検索されることになる。
【0140】
即ち、メモリコントローラ33はアドレスカウンタ34によってテーブルポインタP-TNO1から導かれるパーツテーブルについてのアドレスを順次発生させ、これによりRAMデータインターフェース部31を介して第1曲目の1又は複数のセグメントを対象としたパーツテーブルのデータが順次取り込まれる。ここで1つのパーツテーブルから取り込まれるデータとは、スタートアドレス3バイト、エンドアドレス3バイト、トラックモード情報1バイト、リンク情報1バイトの全8バイトとなる。
【0141】
また、第1曲目についてのパーツテーブルのリードスキャンが終了したら続いて第2曲目としてテーブルポインタP-TNO2からのパーツテーブル、さらに続いて第3曲目としてテーブルポインタP-TNO3からのパーツテーブルと、順次リードスキャンされ、従って録音されている全ての楽曲についてのセグメントに対応するパーツテーブルが順次バッファRAM13から読み出される。
【0142】
メモリデータサーチ回路35はこれらのパーツテーブルのデータをコントローラインターフェース部33を介して取り込むと、上記フリーエリアに関するパーツテーブルの場合同様に各セグメントのエンドアドレスの比較処理や、前回のリンク情報の保持がなされ、また比較部45,46の比較結果に応じて、ADR >ADprevかつADR <ADref であれば、読み込まれたパーツテーブルは、基準フリーエリアよりも前方であって、比較的近い位置に位置する楽曲エリアのセグメントを示すパーツテーブルと判断され、コントロールロジック47から近接アドレスレジスタ42及びリンクレジスタ44にラッチ制御信号が出力される。そして、アドレスADR を新たな検索アドレスADprevとし、またテンポラリレジスタ43にラッチされていた検索対象パーツ情報LKR をリンクレジスタ44に検索パーツ情報LKprevとしてラッチさせる。
【0143】
さらに続いてパーツテーブルが順次読み込まれていくことになるが、その都度比較部45,46による比較動作が実行され、その結果ADR <ADref であって、しかもADR >ADprevであれば、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevが更新され、一方、ADR <ADref かつADR >ADprevの結果が得られなかった時は、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevは更新されずにそのまま前回の更新時の値が保持される。
【0144】
従ってメモリデータサーチ回路35でこのような動作がテーブルポインタP-TNO1〜P-TNO255(ただしP-TNO1〜P-TNO255のうち『00h』とされているテーブルポインタについてパーツテーブルは存在しないためリードスキャンは不要となり、例えば3曲しか録音されていなければテーブルポインタP-TNO4〜P-TNO255に関するリードスキャンは不要である)から導かれる全てのパーツテーブルについてのリードスキャンに応じて実行されると、それが終了した時点で、基準フリーエリアに対して前方側で最も近い楽曲エリアとなっているセグメントのエンドアドレスが検索アドレスADprevとして保持され、また、そのセグメントを示すパーツテーブルが検索パーツ情報LKprevとして保持されていることになる。
【0145】
メモリコントローラ12によるテーブルポインタP-TNO1〜P-TNO255からのパーツテーブルのリードスキャンが終了すると、システムコントローラ11の処理は図4のステップF109に進み、メモリデータサーチ回路35に保持されている検索アドレスADprev及び検索パーツ情報LKprevを取り込む。そして検索アドレスADprevを近接楽曲エリアアドレスN2 として保持し、また検索パーツ情報LKprevを近接楽曲エリアパーツ情報NL2 として保持する。
【0146】
この時点でシステムコントローラ11は近接フリーエリアアドレスN1 と近接楽曲エリアアドレスN2 を比較する(F110)。この比較によって基準フリーエリアの前にフリーエリアが位置しているのか楽曲エリアが位置しているのかが分かる。
【0147】
例えば図5(a)、図6のように基準フリーエリアの直前に楽曲エリアが存在している場合は、図示するように近接フリーエリアアドレスN1 はアドレスA21に相当し、また近接楽曲エリアアドレスN2 はアドレスA23に相当して、即ちN1 <N2 となる。
一方図7(a)、図8(a)のように基準フリーエリアの直前にフリーエリアが存在している場合は、図示するように近接フリーエリアアドレスN1 はアドレスA23に相当し、また近接楽曲エリアアドレスN2 はアドレスA21に相当して、即ちN1 >N2 となる。
【0148】
ステップF110でN1 <N2 とされ、前方が楽曲エリアと判別された場合は、続いて基準アドレスNref から近接楽曲エリアアドレスN2 を減算し、これにより基準フリーエリアとその直前の楽曲エリアの間にトラッシュエリアが存在しているか否かを判別する(F111)。
【0149】
もし、近接楽曲エリアアドレスN2 と基準アドレスNref の差が1サウンドグループの差であれば、つまり基準フリーエリアとその直前の楽曲エリアは完全に隣接し、トラッシュエリアは存在しないことになる。つまり図6の状態であることが判別される。
この場合はトラッシュエリアに対するマージ処理は不要のため、前方マージ処理を終了する (F111→YES)。
【0150】
ところが、近接楽曲エリアアドレスN2 と基準アドレスNref の差が2サウンドグループ以上の差であれば、つまり基準フリーエリアとその直前の楽曲エリアの間にトラッシュエリアが存在し、即ち図5(a)の状態であることが判別される。
【0151】
この場合はトラッシュエリアに対するマージ処理を実行する (F111→F112) 。即ち、図5(b)に示すように基準フリーエリアのスタートアドレスをアドレスA26からアドレスA24に変更して保持する。このアドレスA24は近接楽曲エリアアドレスN2 +1の演算により算出する。これにより、システムコントローラ11内では基準フリーエリアは直前の楽曲エリアと完全に隣接し、トラッシュエリアが無くなった状態として把握されることになる。
【0152】
また、ステップF110でN1 >N2 とされ、前方がフリーエリアと判別された場合は、トラッシュエリアの有無を判別することなくマージ処理を実行することになる (F110→F113) 。つまり、前方のフリーエリアと基準フリーエリアを合成することで、トラッシュエリアがもし存在しても自動的にそれが解消されることになる。
【0153】
例えば図8(a)のように基準フリーエリアとその直前のフリーエリアが完全に隣接し、トラッシュエリアは存在しない場合では、基準フリーエリアのスタートアドレスA24を前方のフリーエリアのスタートアドレスA22として把握し、図8(b)のようにアドレスA22〜A27を基準フリーエリアとして新たに把握する。
【0154】
なお、この前方マージ処理及び後述する後方マージ処理が終了した後、U−TOCの書換編集が行なわれるが、実際にU−TOCを編集する際には、アドレスA22からのフリーエリアのセグメントが示されたパーツテーブルにおけるエンドアドレスをA23からA27に変更する処理を行なうことになる。ただし、後述する後方マージ処理でさらにフリーエリアが後方にも合成された場合は、それに応じてアドレスA22をスタートアドレスとするパーツテーブルのエンドアドレスは、その後方のフリーエリアのエンドアドレスに書き換えられることになる。
【0155】
また、例えば図7(a)のように基準フリーエリアとその直前のフリーエリアの間にトラッシュエリアが存在していても、同様に基準フリーエリアのスタートアドレスA24を前方のフリーエリアのスタートアドレスA22として把握し、図7(b)のようにアドレスA22〜A27を基準フリーエリアとして新たに把握することで、トラッシュエリアは自動的に消滅することになる。
【0156】
以上の前方マージ処理が終了したら、今度はシステムコントローラ11は基準フリーアドレスからの後方マージよりを実行する。
【0157】
後方マージ処理としてのシステムコントローラ11の処理は図9のとおりとなる。
まず、システムコントローラ11は編集基準となるセグメントのエンドアドレスを基準アドレスNref として内部でセットする(F201)。例えば図10〜図13に示すように、ディスク1上でアドレスA24〜A27のセグメントもしくはA24〜A29セグメントが上述した前方マージ処理後の基準フリーエリア(斜線部)とされている場合、この基準フリーエリアのエンドアドレスA27(図11の場合はA29)が基準アドレスNref としてセットされる。
【0158】
なお、図10〜図13は基準フリーエリアの後方について各種場合を示しているものであり、図10(a)は基準フリーエリアの後方にトラッシュエリアを介して楽曲が記録されているセグメントが存在している場合、図11は基準フリーエリアの後方はすぐに楽曲が記録されているセグメントが存在しトラッシュエリアがない場合、図12(a)は基準フリーエリアの後方にトラッシュエリアを介してフリーエリアとなるセグメントが存在している場合、図13(a)は基準フリーエリアの後方はすぐにフリーエリアとなるセグメントが存在しトラッシュエリアがない場合を示しているものであり、以下の後方マージ処理は、現在の状態がこのいづれに該当する状態であるかを判別し、それに応じてマージ処理を行なうものとなる。
【0159】
基準アドレスNref をセットしたら、システムコントローラ11は次にメモリコントローラ12に対して後方サーチモードを実行させる。即ち、基準フリーエリアの後方隣接位置が図10(a)、図11、図12(a)、図13(a)のいづれの状態であるかをメモリコントローラ12に判別させる(F202)。
【0160】
このために、メモリコントローラ12のコントローラインターフェース部33を介してメモリデータサーチ回路35の基準アドレスレジスタ41に基準アドレスNref を供給するとともにラッチ制御コマンドを供給し、基準アドレスNref を基準アドレスレジスタ41に基準アドレスADref として保持させる。つまりこの基準アドレスは前方マージ処理の場合が基準フリーエリアのスタートアドレスであったこととは逆に基準フリーエリアのエンドアドレスとなる。
【0161】
また、同様に近接アドレスレジスタ42に対しては初期値としてアドレスAMAX を供給し、これをラッチさせる。なお、アドレスAMAX は図20に示したようにレコーダブルユーザーエリアの最後位置のアドレスであり、リードアウトスタートアドレスROA の1つ前のアドレスとなる。
さらに、リンクレジスタ44の検索パーツ情報LKprevをクリアする。
【0162】
また、サーチモード信号SSMを出力選択部40及びコントロールロジック47に対して出力する。この場合のサーチモード信号SSMとは、上述のようにメモリデータサーチ回路35に対して前方マージ処理を実行するか後方マージ処理を実行するかを識別させる信号であり、後方マージ処理を示すサーチモード信号SSMが供給された場合は、出力選択部40は読み込まれたU−TOCにおけるパーツテーブルのアドレスデータのうち、スタートアドレスを検索対象アドレスADR として出力するようにセットされる。
【0163】
また、後方マージ処理を示すサーチモード信号SSMにより、コントロールロジック47は、比較部45における基準アドレスADref と検索対象アドレスADR の比較によって、ADR >ADref が得られ、かつ、比較部46における検索アドレスADprevと検索対象アドレスADR の比較によってADprev>ADR が得られた際に、近接アドレスレジスタ42及びリンクレジスタ44に対してラッチ制御信号を出力し、検索アドレスADprev及び検索パーツ情報LKprevの更新を実行させるようにセットされる。
【0164】
そして、システムコントローラ11はメモリコントローラ12に対してこのように後方サーチモードをオンとしたら、バッファRAM13に保持されているU−TOCについて、まずテーブルポインタP-FRA から導かれるパーツテーブルについての検索を実行させるように制御する(F203)。即ちメモリコントローラ12にフリーエリアに関するパーツテーブルのリードスキャンを実行させる。そして、このリードスキャンが終了するまで待機する(F204)。
【0165】
このリードスキャンにおいて、メモリコントローラ12のメモリデータサーチ回路35では、基準フリーエリアに対して後方で最も近い位置のフリーエリアとされているセグメントが検索されることになる。
即ち、メモリコントローラ33はアドレスカウンタ34によってテーブルポインタP-FRA から導かれるパーツテーブルについてのアドレスを順次発生させ、これによりRAMデータインターフェース部31を介してフリーエリアを対象としたパーツテーブルのデータが順次取り込まれる。つまり前方マージ処理の際と同様に1つのパーツテーブルから、スタートアドレス3バイト、エンドアドレス3バイト、トラックモード情報1バイト、リンク情報1バイトの全8バイトのータが取り込まれる。
【0166】
メモリデータサーチ回路35がこれらのデータをコントローラインターフェース部33を介して取り込むと、まず、リンク情報はテンポラリレジスタ43に取り込まれる。
【0167】
ただし、このリードスキャン開始の際にはテーブルポインタP-FRA がテンポラリレジスタ43に取り込まれており、最初のパーツテーブルが読み込まれた時点ではテンポラリレジスタ43には前回のリンク情報としてテーブルポインタP-FRA の値が保持され、このテーブルポインタP-FRA の値と今回取り込まれたリンク情報が2段のレジスタ構成によりそれぞれ保持されることになる。そしてこの時点でテンポラリレジスタ43はテーブルポインタP-FRA の値を検索対象パーツ情報LKR として保持していることになる。
【0168】
また、出力選択部40からはそのパーツテーブルに記録されたスタートアドレスが、検索対象アドレスADR として出力される。
そして、比較部45では基準アドレスADref (この場合アドレスA27)と検索対象アドレスADR (そのパーツテーブルのスタートアドレス)が比較される。
ここでADR >ADref とされる場合は、その読み込まれたパーツテーブルが基準フリーエリアよりも後方に位置するセグメントについてのパーツテーブルであることを示すことになり、逆に、ADR <ADref であった場合は、読み込まれたパーツテーブルが基準フリーエリアよりも前方に位置するセグメントについてのパーツテーブルであることを示すことになる。
【0169】
また、比較部46では検索アドレスADprev(この場合、最初は初期値であるアドレスAMAX )と検索対象アドレスADR (読み込まれたパーツテーブルのスタートアドレス)が比較される。
【0170】
ここでADR >ADprevとされる場合は、その読み込まれたパーツテーブルが検索アドレスADprevにスタートアドレスが示されるセグメントより後方のセグメントであることになり、一方ADR <ADprevである場合は、その読み込まれたパーツテーブルが検索アドレスADprevにスタートアドレスが示されるセグメントより後方のセグメントであることになる。
ただし、まだ検索アドレスADprevが1度も更新されていない時点で読み込まれたパーツテーブルについては、比較される検索アドレスADprevが初期値AMAX とされているため、必ずADR <ADprevとなる。
【0171】
ここで、比較部45でADR >ADref とされると(検索アドレスADprevが初期値AMAX の場合、比較部46ではADR <ADprevという結果が出る)、読み込まれたパーツテーブルは、基準フリーエリアよりも後方であって、比較的近い位置に位置するフリーエリアのセグメントを示すパーツテーブルと判断され、コントロールロジック47は近接アドレスレジスタ42及びリンクレジスタ44にラッチ制御信号を出力し、アドレスADR を新たな検索アドレスADprevとし、またテンポラリレジスタ43にラッチされていた検索対象パーツ情報LKR をリンクレジスタ44に検索パーツ情報LKprevとしてラッチさせる。
【0172】
テンポラリレジスタ43における検索対象パーツ情報LKR は即ち前回読み込まれたパーツテーブルにおけるリンク情報(このときはテーブルポインタP-FRA の値となる場合もある)であるため、このように近接アドレスレジスタ42における検索アドレスADprevが更新されると同時に、その更新されたADprevの値となるエンドアドレスが記録されたパーツテーブルの位置情報がリンクレジスタ44に検索パーツ情報LKprevとして保持されることになる。
【0173】
これにより、基準フリーエリアの後方のセグメントのスタートアドレスが検索アドレスADprevとして保持され、またそのセグメントを示すパーツテーブルの位置が検索リンク情報LKprevとして示される。
【0174】
続いて、リードスキャンに応じてそのパーツテーブルからリンクされているパーツテーブルが読み込まれてくることになり、このパーツテーブルにおけるリンク情報はテンポラリレジスタ43に取り込まれる。このとき、テンポラリレジスタ43における検索対象パーツ情報LKR は前回取り込まれたリンク情報となり、即ち検索対象パーツ情報LKR により今回取り込まれたパーツテーブルのU−TOC上の位置が示されることになる。
またそのパーツテーブルのスタートアドレスが出力選択部40より検索対象アドレスADR として出力される。
【0175】
このとき、その検索対象アドレスADR と基準アドレスADref が比較部45で比較され、さらに検索対象アドレスADR と検索アドレスADprevが比較部46で比較されて、その結果ADR >ADref であって、しかもADR <ADprevであれば、その読み込まれたパーツテーブルは、その時点でスタートアドレスが検索アドレスADprevとして保持されているパーツテーブルよりも、基準フリーエリアに対して後方側でより近い位置にあるセグメントに対するパーツテーブルであることになる。
【0176】
従って、コントロールロジック47は近接アドレスレジスタ42及びリンクレジスタ44にラッチを実行させ、検索アドレスADprevがその読み込まれたパーツテーブルにおけるスタートアドレスとされるように更新させ、また検索パーツ情報LKprevとしてその読み込まれたパーツテーブルの位置を示すリンク情報、即ちこの時点でテンポラリレジスタ43に検索対象パーツ情報LKR として保持されている値に更新されるようにする。
【0177】
続いてリンクされているパーツテーブルが順次読み込まれていくことになるが、その都度比較部45,46による比較動作が実行され、その結果ADR >ADref であって、しかもADR <ADprevであれば、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevが更新され、一方、ADR >ADref かつADR <ADprevの結果が得られなかった時は、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevは更新されずにそのまま前回の更新時の値が保持される。
【0178】
従ってメモリデータサーチ回路35でこのような動作がテーブルポインタP-FRA から導かれる全てのパーツテーブルについてのリードスキャンに応じて実行されると、それが終了した時点で、基準フリーエリアに対して後方側で最も近いフリーエリアとなっているセグメントのスタートアドレスが検索アドレスADprevとして保持され、また、そのセグメントを示すパーツテーブルが検索パーツ情報LKprevとして保持されていることになる。
【0179】
メモリコントローラ12によるテーブルポインタP-FRA からのパーツテーブルのリードスキャンが終了すると、システムコントローラ11の処理は図9のステップF205に進み、メモリデータサーチ回路35に保持されている検索アドレスADprev及び検索パーツ情報LKprevを取り込む。そして検索アドレスADprevを近接フリーエリアアドレスN1 として保持し、また検索パーツ情報LKprevを近接フリーエリアパーツ情報NL1 として保持する。
【0180】
続いて、システムコントローラ11は再びメモリコントローラ12のメモリデータサーチ回路35に対して、近接アドレスレジスタ42に初期値としてアドレスAMAX を検索アドレスADprevとしてセットし、さらにリンクレジスタ44の検索パーツ情報LKprevをクリアする(F206)。
【0181】
そして、システムコントローラ11はメモリコントローラ12に対してこのようにメモリデータサーチ回路35をセットしたら、メモリコントローラ12に対して、バッファRAM13に保持されているU−TOCについて今度はテーブルポインタP-TNO1〜P-TNO255のそれぞれから導かれるパーツテーブルについての検索を順次実行させるように制御する(F208)。即ちメモリコントローラ12に楽曲が記録されているセグメント(楽曲エリア)に関するパーツテーブルのリードスキャンを実行させる。そして、このリードスキャンが終了するまで待機する(F209)。
【0182】
このリードスキャンにおいては、メモリコントローラ12のメモリデータサーチ回路35では、基準フリーエリアに対して後方で最も近い位置の楽曲エリアとなるセグメントが検索されることになる。
即ち、メモリコントローラ33はアドレスカウンタ34によってテーブルポインタP-TNO1から導かれるパーツテーブルについてのアドレスを順次発生させ、これによりRAMデータインターフェース部31を介して第1曲目の1又は複数のセグメントを対象としたパーツテーブルのデータが順次取り込まれる。ここで1つのパーツテーブルから取り込まれるデータとは、スタートアドレス3バイト、エンドアドレス3バイト、トラックモード情報1バイト、リンク情報1バイトの全8バイトとなる。
【0183】
また、第1曲目についてのパーツテーブルのリードスキャンが終了したら続いて第2曲目としてテーブルポインタP-TNO2からのパーツテーブル、さらに続いて第3曲目としてテーブルポインタP-TNO3からのパーツテーブルと、順次リードスキャンされ、従って録音されている全ての楽曲についてのセグメントに対応するパーツテーブルが順次バッファRAM13から読み出される。
【0184】
メモリデータサーチ回路35はこれらのパーツテーブルのデータをコントローラインターフェース部33を介して取り込むと、上記フリーエリアに関するパーツテーブルの場合同様に各セグメントのスタートアドレスの比較処理や、前回のリンク情報の保持がなされ、また比較部45,46の比較結果に応じて、ADR <ADprevかつADR >ADref であれば、読み込まれたパーツテーブルは、基準フリーエリアよりも後方であって、比較的近い位置に位置する楽曲エリアのセグメントを示すパーツテーブルと判断され、コントロールロジック47から近接アドレスレジスタ42及びリンクレジスタ44にラッチ制御信号が出力される。そして、アドレスADR を新たな検索アドレスADprevとし、またテンポラリレジスタ43にラッチされていた検索対象パーツ情報LKR をリンクレジスタ44に検索パーツ情報LKprevとしてラッチさせる。
【0185】
さらに続いてパーツテーブルが順次読み込まれていくことになるが、その都度比較部45,46による比較動作が実行され、その結果ADR >ADref であって、しかもADR <ADprevであれば、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevが更新され、一方、ADR >ADref かつADR <ADprevの結果が得られなかった時は、近接アドレスレジスタ42の検索アドレスADprev及びリンクレジスタ44の検索パーツ情報LKprevは更新されずにそのまま前回の更新時の値が保持される。
【0186】
従ってメモリデータサーチ回路35でこのような動作がテーブルポインタP-TNO1〜P-TNO255(もちろんこの場合も、P-TNO1〜P-TNO255のうち『00h』とされているテーブルポインタについてはパーツテーブルは存在しないためリードスキャンは不要である)から導かれる全てのパーツテーブルについてのリードスキャンに応じて実行されると、それが終了した時点で、基準フリーエリアに対して後方側で最も近い楽曲エリアとなっているセグメントのスタートアドレスが検索アドレスADprevとして保持され、また、そのセグメントを示すパーツテーブルが検索パーツ情報LKprevとして保持されていることになる。
【0187】
メモリコントローラ12によるテーブルポインタP-TNO1〜P-TNO255からのパーツテーブルのリードスキャンが終了すると、システムコントローラ11の処理は図4のステップF209に進み、メモリデータサーチ回路35に保持されている検索アドレスADprev及び検索パーツ情報LKprevを取り込む。そして検索アドレスADprevを近接楽曲エリアアドレスN2 として保持し、また検索パーツ情報LKprevを近接楽曲エリアパーツ情報NL2 として保持する。
【0188】
この時点でシステムコントローラ11は近接フリーエリアアドレスN1 と近接楽曲エリアアドレスN2 を比較する(F210)。この比較によって基準フリーエリアの後にフリーエリアが存在しているのか楽曲エリアが存在しているのかが分かる。
【0189】
例えば図10(a)、図11のように基準フリーエリアの後に楽曲エリアが存在している場合は、図示するように近接フリーエリアアドレスN1 はアドレスA32に相当し、また近接楽曲エリアアドレスN2 はアドレスA30に相当して、即ちN1 >N2 となる。
一方図12(a)、図13(a)のように基準フリーエリアの後にフリーエリアが存在している場合は、図示するように近接フリーエリアアドレスN1 はアドレスA30又はA28に相当し、また近接楽曲エリアアドレスN2 はアドレスA32に相当して、即ちN1 <N2 となる。
【0190】
ステップF220でN1 >N2 とされ、後方が楽曲エリアと判別された場合は、続いて近接楽曲エリアアドレスN2 から基準アドレスNref を減算し、これにより基準フリーエリアとその後の楽曲エリアの間にトラッシュエリアが存在しているか否かを判別する(F211)。
【0191】
もし、近接楽曲エリアアドレスN2 と基準アドレスNref の差が1サウンドグループの差であれば、つまり基準フリーエリアとその後の楽曲エリアは完全に隣接し、トラッシュエリアは存在しないことになる。つまり図11の状態であることが判別される。
この場合はトラッシュエリアに対するマージ処理は不要のため、後方マージ処理を終了する (F211→YES)。
【0192】
ところが、近接楽曲エリアアドレスN2 と基準アドレスNref の差が2サウンドグループ以上の差であれば、つまり基準フリーエリアとその後の楽曲エリアの間にトラッシュエリアが存在し、即ち図10(a)の状態であることが判別される。
【0193】
この場合はトラッシュエリアに対するマージ処理を実行する (F211→F212) 。即ち、図10(b)に示すように基準フリーエリアのエンドアドレスをアドレスA27からアドレスA29に変更して保持する。このアドレスA29は近接楽曲エリアアドレスN2 −1の演算により算出する。これにより、システムコントローラ11内では基準フリーエリアは後の楽曲エリアと完全に隣接し、トラッシュエリアが無くなった状態として把握されることになる。
【0194】
また、ステップF220でN1 <N2 とされ、後方がフリーエリアと判別された場合は、トラッシュエリアの有無を判別することなくマージ処理を実行することになる (F220→F213) 。つまり、後方のフリーエリアと基準フリーエリアを合成することで、トラッシュエリアがもし存在しても自動的にそれが解消されることになる。
【0195】
例えば図13(a)のように基準フリーエリアとその後のフリーエリアが完全に隣接し、トラッシュエリアは存在しない場合では、基準フリーエリアのエンドアドレスA27を後方のフリーエリアのエンドアドレスA31として把握し、図13(b)のようにアドレスA24〜A31を基準フリーエリアとして新たに把握する。
【0196】
なお、ここでは後方マージ処理のみで説明しているが、もちろん前述した前方マージ処理において図7,図8のように基準フリーエリアが前方のフリーエリアと合成されていた場合には、このときの基準フリーエリアのスタートアドレスは、その前方のフリーエリアのスタートアドレスとされている。
そして、これらのマージ処理の後、実際にU−TOCを編集する際には、これらのマージ処理において新たに把握された基準フリーエリアが、それまで前方または後方のフリーエリアのセグメントに対応して設けられていたパーツテーブルにおいて含有されて表現されることになる。
【0197】
また、例えば図12(a)のように基準フリーエリアとその後のフリーエリアの間にトラッシュエリアが存在していても、同様に基準フリーエリアのエンドアドレスA27を後方のフリーエリアのエンドアドレスA31として把握し、図12(b)のようにアドレスA24〜A31を基準フリーエリアとして新たに把握することで、トラッシュエリアは自動的に消滅することになる。
【0198】
以上のように前方マージ処理、後方マージ処理が終了したら、システムコントローラ11はそのマージ処理に基づいてU−TOCの編集動作を実行し、バッファRAM13内のU−TOCを書き換えることになる。
例えば前記図20の例でいえば、図21のU−TOCを図24のように編集して書き換える。そして所定時点で、この編集されたU−TOCを記録データとしてディスク1に供給し、ディスク1上でU−TOCを書き換えることになる。
【0199】
以上のようにマージ処理を行なってU−TOC編集を行なうことで、トラッシュエリアが解消され、ディスク1のレコーダブルユーザーエリアの有効利用をはかることができる。
【0200】
そして、この実施例のようにメモリコントローラ12側にメモリデータサーチ回路を備えたメモリ制御装置により、これらの処理を実行することにより、マージ処理の際にシステムコントローラ11はリードスキャンされるパーツテーブルのデータの受取りや、それの比較処理による隣り合ったセグメントの判別動作は不要となり、従って従来システムコントローラ11とメモリコントローラ12の間でリードスキャンデータの通信に要していた時間は完全に解消されるため、迅速なマージ処理が実現される。例えば、従来2分程度かかっていたU−TOC編集処理時間を2秒程度に短縮することができる。
【0201】
また、メモリデータサーチ回路35における出力選択部40に対してシステムコントローラ11はサーチモード信号SSMを供給して、前方マージ処理時にはエンドアドレスを、また後方マージ処理時にはスタートアドレスを出力させ、結局前方マージ処理時にはエンドアドレスが検索アドレスとされて、また後方マージ処理時にはスタートアドレスが検索アドレスとされるようにすることにより、そのままその検索アドレスをトラッシュエリア有無の判別に用いることができるようにしているため、処理の効率化が促進されることにもなる。
【0202】
ところで、以上の実施例では前方マージ処理を先に実行するようにしたが、後方マージ処理を先に実行してもよいし、また、前方マージ処理と後方マージ処理を同時に実行することでさらに処理時間を短縮化することもできる。ただし、前方マージ処理と後方マージ処理を同時に実行するには、メモリコントローラ12においてメモリデータサーチ回路35を前方サーチ用と後方サーチ用の2単位設ける必要がある。
【0203】
また、メモリデータサーチ回路35における出力選択部40及びコントロールロジック47は、サーチモード信号SSMを供給して、前方マージ処理時の動作と後方マージ処理時の動作を判別設定させ、特に前述したように出力選択部40の動作を前方マージ処理時にはエンドアドレスを、また後方マージ処理時にはスタートアドレスを出力させることで処理の効率化を計っているが、これらはかならずしも必要ではない。
【0204】
つまり、出力選択部40については、前方マージ処理時にはエンドアドレスを出力するようにしているが、これはスタートアドレスであっても構わない。即ち、基準フリーエリアより前方に位置するセグメントをシークし、またそれが楽曲エリアかフリーエリア化を判別するという目的のみに限れば、スタートアドレスで比較を行なっても同様の結果を得ることができる。そして、この場合、検索された前方のセグメントと基準フリーエリアとの間にトラッシュエリアが存在するか否かの判別については、システムコントローラ11は、リンクレジスタ44から取り込まれた検索パーツ情報LKprevを、近接フリーエリアパーツ情報NL1 又は近接楽曲エリアパーツ情報NL2 として取り込んでいるため、それより示されたパーツテーブルを読み出せば、その前方のセグメントのエンドアドレスを得ることができる。従って、基準アドレスNref と前方のセグメントのエンドアドレスを比較して、トラッシュエリアが存在しているか否かを判別することができる。
【0205】
これと同様の理由で、出力選択部40は、後方マージ処理時にはスタートアドレスではなく、エンドアドレスであっても構わない。
つまり、処理方式によっては出力選択部40の動作をサーチモード信号SSMに応じて動作させることは必ずしも必要ではない。
【0206】
また、コントロールロジックについても同様にサーチモード信号SSMよって区別して動作させなくてもよい。
即ち、近接アドレスレジスタ42において前方マージ処理開始時に初期値として適正にAMIN がセットされ、また後方マージ処理開始時に初期値として適正にAMAX がセットされているのであれば、コントロールロジック47は、ADprev<ADR <ADref (即ち前方マージ処理時のラッチ条件)か、又はADprev>ADR >ADref (即ち後方マージ処理時のラッチ条件)かの、いづれかが満たされた時点でラッチ制御信号を出力するようにすれば、上述した前方及び後方のセグメントの検索が実現されることになる。
【0207】
ところで、実施例では、前方又は後方に隣接するセグメントのパーツテーブルの位置情報としてリンクレジスタ44から検索パーツ情報LKprevとして得られるようにしているが、上記実施例のマージ処理に関しては、これは必ずしも必要ではない。即ちメモリデータサーチ回路35としてはテンポラリレジスタ43、リンクレジスタ44を設けないようにしてもよい。
【0208】
ただし、実際のマージ処理(ステップF112,F113,F212,F213 )やU−TOCの編集処理の際には、この隣接するセグメントについてのパーツテーブルの位置情報がメモリデータサーチ回路35で検出されて得られていることにより、処理を効率よく実行できる。
なお、上記のマージ処理が実行されるのは消去時のみに限られないことはいうまでもない。
【0209】
なお、以上の実施例はメモリ制御装置及びメモリデータサーチ回路を光磁気ディスク1に対する記録再生装置に適用した例で説明したが、記録専用装置その他の機器におけるメモリ制御装置,メモリデータサーチ回路として応用できる。
【0210】
【発明の効果】
以上説明したように本発明は、メモリコントローラにおいて管理情報(U−TOC)の検索及び比較処理を行なって編集動作の基準となる記録媒体上のセグメントの前又は後に位置するセグメントに相当する管理情報を判別する動作を実行するメモリデータサーチ回路を備えることにより、検索対象のデータ(即ちU−TOCにおけるパーツテーブルのデータ)自体はシステムコントローラに対して通信を行なう必要はなくなり、編集処理において、このデータ通信に要する時間を不要とすることができ、処理時間の大幅な短縮を実現することができるという効果がある。
【0211】
また、システムコントローラはデータ比較によって隣接するセグメントを検索する処理も不要となるた、システムコントローラの処理負担は大幅に軽減されるという利点もある。
【0212】
また、メモリデータサーチ回路35における出力選択部40に対してシステムコントローラ11はサーチモード信号SSMを供給して、前方マージ処理時にはエンドアドレスを、また後方マージ処理時にはスタートアドレスを出力させ、結局前方マージ処理時にはエンドアドレスが検索アドレスとされて、また後方マージ処理時にはスタートアドレスが検索アドレスとされるようにすることにより、そのままその検索アドレスをトラッシュエリア有無の判別に用いることができるようにしているため、処理の効率化が促進されることにもなる。
【0213】
また、システムコントローラは、メモリデータサーチ回路によって検索を行なわせる際に、基準となるセグメントに対して前方に位置するセグメントに相当する管理情報を検索させる場合は、管理情報における各セグメントのエンドアドレスを検索させ、一方、後方に位置するセグメントに相当する管理情報を検索させる場合は、管理情報における各セグメントのスタートアドレスを検索させるように制御することで、そのままその検索アドレスをトラッシュエリア有無の判別に用いることができ、処理の効率化が促進されるという効果がある。
【0214】
さらに、メモリデータサーチ回路として上述してきたように、基準データレジスタ手段、出力選択手段、検索データレジスタ手段、検索対象データ位置レジスタ手段、検索データ位置レジスタ手段、第1の比較手段、第2の比較手段、及び更新制御手段とを備えて構成することにより、リードスキャン期間において正確に前又は後に位置するセグメント及びそのセグメントのパーツテーブルの位置を検索することができるという効果がある。
【図面の簡単な説明】
【図1】本発明の実施例のメモリ制御装置及びメモリデータサーチ回路を備えた記録再生装置のブロック図である。
【図2】実施例のメモリ制御装置及び周辺回路部のブロック図である。
【図3】実施例のメモリデータサーチ回路及び周辺回路部のブロック図である。
【図4】実施例のメモリ制御装置による前方マージ処理のフローチャートである。
【図5】前方マージ処理の説明図である。
【図6】前方マージ処理の説明図である。
【図7】前方マージ処理の説明図である。
【図8】前方マージ処理の説明図である。
【図9】実施例のメモリ制御装置による後方マージ処理のフローチャートである。
【図10】後方マージ処理の説明図である。
【図11】後方マージ処理の説明図である。
【図12】後方マージ処理の説明図である。
【図13】後方マージ処理の説明図である。
【図14】ディスクのP−TOC情報の説明図である。
【図15】ディスクのU−TOC情報の説明図である。
【図16】ディスクのU−TOC情報の管理形態の説明図である。
【図17】ディスクのP−TOC及びU−TOC情報のアドレスデータフォーマットの説明図である。
【図18】セグメント分割して記録できるディスクの説明図である。
【図19】ディスクのトラックフォーマットの説明図である。
【図20】ディスクのエリア状態の説明図である。
【図21】ディスクの記録データの管理状態の説明図である。
【図22】ディスクの記録データの消去に伴う処理の説明図である。
【図23】ディスクの記録データの消去に伴う処理の説明図である。
【図24】ディスクの記録データの消去に伴うU−TOC編集処理の説明図である。
【符号の説明】
1 ディスク
3 光学ヘッド
8 エンコーダ/デコーダ部
11 システムコントローラ
12 メモリコントローラ
13 バッファRAM
14 エンコーダ/デコーダ部
30 ディスクドライブインターフェース部
31 RAMデータインターフェース部
32 音声圧縮インターフェース部
33 コントローラインターフェース部
34 アドレスカウンタ
35 メモリデータサーチ回路
40 出力選択部
41 基準アドレスレジスタ
42 近接アドレスレジスタ
43 テンポラルレジスタ
44 リンクレジスタ
45,46 比較部
47 コントロールロジック
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a recording / reproducing apparatus capable of recording data such as music on a disk-shaped recording medium, and a search circuit provided in the recording / reproducing apparatus.
[0002]
[Prior art]
Data rewritable disc media that allow users to record music data and the like are known, and in such disc media, areas (segments) where data such as music is already recorded and unrecorded areas (segments) ) Is managed, and the management data is also rewritten at the end of each recording operation or erasing operation of recorded music, for example.
[0003]
For example, when recording a certain piece of music, the recording device finds an unrecorded area on the disk from the U-TOC and records audio data therein. In the playback device, the area where the music to be played back is recorded is determined from the U-TOC, and the playback operation is performed by accessing the area.
[0004]
By the way, in recordable disk media such as magneto-optical disks (MO disks), random access is extremely easy as compared to tape-like recording media such as DAT and compact cassette tapes. It is not necessary to record in the segment (in this specification, “segment” means a track portion where physically continuous data is recorded), and it is divided into a plurality of segments discretely on the disc. There is no problem even if you record.
[0005]
In particular, in a system in which data read from a magneto-optical disk is temporarily stored in a buffer memory at a high rate and read out from the buffer RAM at a low rate and demodulated as an audio reproduction signal, temporary access is caused by access between segments. Therefore, even if data reading from the magneto-optical disk is interrupted, the reproduced sound can be output without interruption.
[0006]
Therefore, if a recording / playback operation within a segment and a high-speed access operation (access operation that ends within a reproducible time due to the amount of data accumulated due to the difference between the write rate and read rate of the buffer RAM) are repeated, one piece of music Even if the track is physically divided into a plurality of segments, it is possible to prevent the music from being recorded / reproduced.
[0007]
For example, as shown in FIG.1 The second song is segment T2 Is recorded continuously, but segment T is the fourth and fifth songs.4 (1)~ T4 (4), T5 (1)~ T5 (2)As shown in FIG. 5, it is also possible to divide and record on tracks. (Note that FIG. 18 is a schematic illustration only, and in practice, one segment often covers several to several hundred tracks or more.)
[0008]
When recording and erasing of music is repeated on the magneto-optical disk, empty areas on the track are irregularly generated due to the difference in the performance time of the recorded music and the performance time of the erased music. By performing discrete recording, it becomes possible to record, for example, a song longer than the erased song by utilizing the erased portion, and the data recording area is wasted due to repeated recording / erasing. That is solved. Note that what is recorded is not necessarily limited to “music”, and any audio signal may be included. In the present specification, a piece of data (recording data unit) that is continuous in terms of content is “music”. It will be expressed as
[0009]
Of course, for such disk media, recording is continued while accessing a plurality of unrecorded segments during recording, and segments are recorded so that one piece of music is played back correctly and continuously during playback. It must be accessed. A segment in one piece of music necessary for this (eg TFour( 1)~ T4 (4)) And data indicating unrecorded areas are held as U-TOC information that is rewritten for each recording operation and erasing operation as described above, and the recording / reproducing apparatus is loaded with, for example, a disc. At this point, the U-TOC information is read and stored in the memory. During recording / reproducing / erasing operations, the head is accessed based on the U-TOC information held in the memory, thereby controlling the recording / reproducing / erasing operations properly.
[0010]
As shown in FIG. 19, the recording track on the magneto-optical disk is formed by continuously forming a cluster CL (= 36 sectors−) consisting of a 4-sector (1 sector = 2352 bytes) sub-data area and a 32-sector main data area. One cluster is the minimum unit for recording. One cluster corresponds to two to three rounds of tracks. The address is recorded for each sector.
The 4-sector sub-data area is used as sub-data or a linking area, and TOC data, audio data, etc. are recorded in the 32-sector main data area.
[0011]
The sectors are further subdivided into sound groups, and two sectors are divided into 11 sound groups. In the sound group, 512-sample data is recorded separately for the L channel and the R channel. One sound group has an audio data amount corresponding to a time of 11.6 msec.
[0012]
Here, the U-TOC editing operation according to recording or erasing will be described.
FIG. 20 schematically shows the area structure of the track of the disk in the radial direction. First, the area structure will be described.
[0013]
In the case of a magneto-optical disk, roughly, as shown as a pit area in FIG. 20, an area where data is recorded by embossed pits (pre-mastered area) and a groove area where a groove is provided as a so-called magneto-optical area. It is divided into.
[0014]
Here, as the pit area, pre-mastered TOC (hereinafter referred to as P-TOC) as management information is repeatedly recorded, and in this P-TOC, the U-TOC position is the U-TOC start address UST.A And the lead-out start address ROA Recordable user area start address RSTA , Power cal area start address PCA Etc. are shown.
[0015]
A groove area is formed following the innermost pit area of the disc. The lead-out start address RO in the P-TOC in the groove area.A The area up to the address shown as is a recordable area that can be recorded, and the subsequent area is a lead-out area.
[0016]
Further, among the recordable areas, a recordable user area where data is actually recorded is a recordable user area start address RST in the P-TOC.A As the location (address AMIN ) Lead out start address ROA Previous position (address AMAX ) Until.
[0017]
Then, in the groove area, the recordable user area start address RSTA The previous area is a management area for recording / reproducing operation, the above-mentioned U-TOC etc. are recorded, and the power cal area start address PCA One cluster from the position shown as is provided as a laser power calibration area.
[0018]
The U-TOC is recorded continuously at a required position in the management area for the recording / reproducing operation in three clusters, and the address position at which the U-TOC is recorded depends on the U-TOC in the P-TOC. TOC start address USTA Will be shown.
[0019]
In the U-TOC, the recording status of the recordable user area is provided as management information.
[0020]
Now, as shown in FIG. 20, there are four songs M in the recordable user area.1 ~ MFour Is recorded. That is, address A1 (= AMIN ) ~ A2 The first song M in the segment1 Is recorded, and the second song, M2 Is address AThree ~ AFour M recorded in the segment of2 (1)And address A11~ A12M recorded in the segment of2 (2)It is recorded in a split.
[0021]
In addition, the third song MThree Is address AFive ~ A6 The fourth song M is recorded in the segmentFour Is address A9 ~ ATenM recorded in the segment of4 (1)And address A13~ A14M recorded in the segment of4 (2)Suppose that it is recorded in a bit.
[0022]
In this state, an unrecorded area where no music is recorded yet, that is, a newly recordable free area is address A.7 ~ A8 Segment (F(1) ) And address A15~ A16(= AMAX ) Segment (F(2) )
[0023]
This state is managed in the U-TOC as shown in FIG.
In the U-TOC, as shown in FIG. 21, there is provided a correspondence table instruction data section composed of various table pointers (P-DFA, P-EMPTY, P-FRA, P-TNO1 to P-TNO255). Corresponding to this, a management table section having 255 part tables (01h) to (FFh) is provided. Each part table indicates a start address, an end address, and a track mode for one segment on the disk, and link information for linking to another part table is recorded.
Then, a part table is indicated by various table pointers in the correspondence table instruction data section, and segments are managed.
[0024]
The table pointer P-DFA indicates a defective area on the disc. If it is assumed that there is no defect in the recordable user area in FIG. 20, the table pointer P-DFA is set to “00h”. Subsequently, the table pointer P-EMPTY indicates an unused parts table.
[0025]
The table pointer P-FRA is for managing an unrecorded area (free area). Here, it is assumed that a part table of (01h) is shown in the table pointer P-FRA (note that each table is actually In the pointer, the part table is indicated by a numerical value by which the address of the part table can be obtained by a predetermined calculation process).
[0026]
In this case, the parts table (01h) correspondingly has a free area F in FIG.(1) Information about is shown, ie address A7 Is the start address, address A8 Is shown as the end address. In addition, as other segment free area F(2) Therefore, the parts table (09h) is shown as the link information of the parts table (01h) (a numerical value at which the address of a certain parts table can actually be obtained by a predetermined arithmetic processing is shown as the link information. ing).
[0027]
And the parts table (09h) has free area F(2) Corresponding to address A15Is the start address, address A16Is shown as the end address. Since there is no other segment that becomes a free area, there is no need to link to another parts table, and the link information is set to “00h”.
[0028]
By managing the free area in this way, for example, when recording, if the part table is searched starting from the table pointer P-FRA, the address of the segment that becomes the free area is obtained, and the music is stored in that segment. Etc. can be recorded.
[0029]
Music already recorded in the same form is also managed. As for music, up to 255 music can be managed by the table pointers P-TNO1 to P-TNO255.
[0030]
For example, the first song M1 Is the start address A in the part table (02h) indicated by the table pointer P-TNO1.1 And end address A2 Is shown. Music M1 Is recorded in one segment. In this case, the link information of the parts table (02h) is “00h”.
[0031]
The second song M2 For the start address A in the parts table (04h) indicated by the table pointer P-TNO2.Three And end address AFour It is shown. Music M2 Is recorded in two segments, address AThree And address AFour Is music M2 The first half of (M2 (1)) Segments only. Therefore, for example, the parts table (06h) is shown as the link information of the parts table (04h), and the latter half (M2 (2)) To indicate the segment of start address A11And end address A12Is recorded. Since no link is required thereafter, the link information of the parts table (06h) is set to “00h”.
[0032]
3rd song MThree , 4th song MFour Also, the segment positions are managed by the parts table obtained from the table pointers P-TNO3 and P-TNO4, respectively. Since only four songs are recorded, the table pointers P-TNO5 to P-TNO255 are not used and are set to “00h”.
[0033]
As described above, by managing the segment position of each music piece, even if the music order is irregular or divided and recorded in two or more segments, the reproduction operation can be executed properly.
[0034]
Further, the table pointer P-EMPTY is for indicating an unused part table as described above. In this example, the table pointer P-EMPTY indicates the part table (08h). Then, as shown by the link information from the part table (08h), the part tables (FFh) that are not used are connected and managed. The link information of the part table (part table (FFh) in this case) which is the last of the connection of the unused parts table is set to “00h” as there is no connection thereafter.
[0035]
By the way, while recording / deleting music, etc., a waste area (trash area) that is not managed by the U-TOC in the above management form occurs. This is because, for example, a guard band area for several clusters is provided before and after recording so that the data of other tracks is not accidentally erased at the time of recording the music, and further recording is performed in cluster units. This is caused by the fact that the recording start position is defined, and further, the part of the music is deleted or the music is edited to be synthesized.
[0036]
For example, in the case of FIG. 20, the portion indicated by the hatched portion, that is, the address AFour ~ AFive , Address A6 ~ A7 , Address A12~ A13Are generated as trash areas, and the segments that become these trash areas do not appear on the management form of the U-TOC shown in FIG. If such a trash area is generated, the recording capacity of the disc will be reduced accordingly. Therefore, the U-TOC is re-edited at a certain point in time to eliminate the trash area. It was. For example, the U-TOC editing process is executed when a certain piece of music is deleted, when U-TOC re-editing is instructed by a user operation, or when the control device determines that the trash area has increased.
[0037]
Here, an example of editing processing according to the erasing operation will be described.
As shown in FIG. 22 from the state of FIG.Three Suppose you want to erase. At this time, music MThree Will be included in the free area.Three The trash area located before and after the segment is also included in the free area, and the subsequent address A7 ~ A8 Free area F(1) And address A as shown in FIG.17~ A8 As new free area F(1) Is set, address AFour ~ AFive And address A6 ~ A7 The trash area will be eliminated. That is, the U-TOC may be rewritten so that the recordable user area is newly managed by the U-TOC in the state of FIG.
[0038]
Therefore, in such a recording apparatus, the U-TOC information held in the memory is rewritten from the state of FIG. 21 to the state of FIG. In FIG. 24, the hatched portion indicates the portion rewritten from the state of FIG.
[0039]
That is, free area F(1) The start address of the parts table (01h) indicating17In addition, the music MThree Music MFour Goes up and the song MThree It is said. That is, the data written in the table pointer P-TNO4 (that is, data indicating the parts table (07h)) is written in the table pointer P-TNO3, and the table pointer P-TNO4 is set to “00h”. Until then, Music MThree Since the parts table (03h) indicating the segment is no longer necessary, it is linked from the parts table (FFh), linked from the table pointer P-EMPTY, and managed as an unused parts table.
The state shown in FIG. 23 is realized by editing the U-TOC as shown in FIG.
[0040]
[Problems to be solved by the invention]
However, in order to perform such editing, the parts table in the U-TOC is searched and the music MThree It is necessary to discriminate between the segment where the track was recorded and the segment adjacent to the front and back, and whether the segment is the area where the music was recorded or the free area, and there is a trash area between these segments. You must also determine whether it exists.
[0041]
In particular, as can be seen from FIG. 21, from the parts table, it is not known which segments are actually adjacent to the segment shown in a certain parts table. Read in order and become the reference segment (in this case the erased music MThree It is necessary to perform a search operation that the closest segment is an adjacent segment.
[0042]
Normally, such a recording apparatus is provided with a memory controller that outputs a memory write / read address and sends / receives stored data to / from a memory that holds the U-TOC, and further provides a system for the memory controller. A controller (microcomputer) performs operation control to execute data storage / reading. The system controller reads the U-TOC from the memory and controls the actual recording operation and the like, and also performs the U-TOC editing operation. For this editing operation, the system controller As described above, all the part tables are searched through the memory controller, and the address comparison operation for each searched part table is performed to search for adjacent segments.
[0043]
For this reason, the communication of the parts table data from the memory (memory controller) to the system controller takes an enormous amount of time, and the processing load is significantly increased due to these communication operations and comparison processing. There is.
In particular, when the memory controller and the system controller exchange data via serial communication, for example, if processing of the trash area is performed by the editing operation as described above, the processing time of about 2 minutes is required at worst. Such a need for processing time is very inconvenient for practical use of the recording apparatus.
[0044]
[Means for Solving the Problems]
The present invention has been made in view of these problems, and an object of the present invention is to enable a remarkable speed-up of U-TOC editing processing and reduction of processing load on a system controller at the same time.
[0045]
Therefore, the search circuit manages the recording data area where the recording data is recorded, the unrecorded area where the recording data is not recorded, and the start position and the end position of each of the recording data area and the unrecorded area. In a search circuit that includes a management data recording area in which data is recorded and that searches for a useless area that is not managed by management data adjacent to a predetermined unrecorded area from a recording medium on which the recorded data can be discretely recorded Memory for managing and storing management information recorded on the medium, reference data register means for holding the position of a predetermined unrecorded area as a search reference, and extracting search target data from data read from the memory by a search operation The output selection means for outputting the data and the search target data output from the output selection means as search data. Search data register means, search target data position register means for holding position information of search target data based on search target data output from output selection means, reference data held in reference data register means and output selection First comparison means for comparing the search target data output from the means, and second comparison means for comparing the search data held in the search data register means and the search target data output from the output selection means Based on the comparison result of the first and second comparison means, search object data output from the output selection means for updating the search data in the search data register means is held in the search data register means, and the search data The search target data position held in the search target data position register means for updating the search position information of the position register means Information is composed of an update control means which allow it to be held in the search data position register means.
[0046]
The update control means controls the search data register means to hold the end position of the search target data in the case of a search for a waste area located in front of the predetermined unrecorded area. In the case of searching for a useless area located behind the recording area, the search data register means is controlled to hold the start position of the search target data.
[0047]
Further, in the case of searching for a waste area located in front of a predetermined unrecorded area, the first comparison means determines whether or not the end position provided in the search target data output from the output means is before the search reference. And the second comparing means compares whether or not the search data held in the search data register is before the end position provided in the search target data output from the output selecting means, and determines a predetermined unrecorded area. In the case of the search for the waste area located behind the first comparison means, the first comparison means compares whether or not the end position provided in the search target data output from the output means is after the search reference, and the second comparison means. The comparison means compares whether the search data held in the search data register is after the end position included in the search target data output from the output selection means.
[0048]
Further, there is recorded management data for managing a recording data area in which recording data is recorded, an unrecorded area in which no recording data is recorded, and a start position and an end position of each of the recording data area and the unrecorded area. In a recording / reproducing apparatus for searching for a useless area not managed by management data adjacent to a predetermined unrecorded area from a recording medium capable of discretely recording the recorded data and managing the recording data from the recording medium Reproducing means for reproducing management data recorded in the data recording area, memory for managing and storing management information recorded on the recording medium reproduced by the reproducing means, and searching for a position of a predetermined unrecorded area A reference data register means that is held as a reference, and an output for extracting and outputting search target data from data read from the memory by a search operation. Selection means, search data register means capable of holding search target data output from output selection means as search data, and position information of search target data based on search target data output from output selection means Search target data position register means, first comparison means for comparing reference data held in the reference data register means and search target data output from the output selection means, and search held in the search data register means In order to update the search data of the search data register means based on the comparison result of the second comparison means for comparing the data and the search target data output from the output selection means, and the first and second comparison means The search object data output from the output selection means is held in the search data register means, and the search data position register means is detected. Update control means for allowing search object data position information held in search object data position register means to update position information, and search data held in search data register Control means for editing the management information stored in the memory so as to erase the wasted area searched by merging the wasted areas adjacent to the prescribed empty area based on the Recording means for writing back the management information stored in the memory to the management data recording area of the recording medium.
[0049]
[Action]
The present invention holds a position of a predetermined unrecorded area as a search reference, extracts search target data from data read from a memory by a search operation, holds the search target data, and stores position information of the search target data as a search target To update the search data based on the first comparison result held in the data position register means and comparing the reference data and the search target data and the second comparison result comparing the search data and the search target data The search target data is held in the search data register means, and the search target data position information is held in the search data position register means for updating the search position information.
For this reason, the search circuit executes the process of searching for the segment before and after the segment serving as the editing reference, so that the system controller does not need to execute the search and the processing load on the system controller is reduced.
[0050]
【Example】
Hereinafter, an embodiment of a memory control device and a memory data search circuit according to the present invention will be described with reference to FIGS. In this embodiment, a memory control device provided in a recording / reproducing apparatus using a magneto-optical disk as a recording medium and a memory data search circuit provided in the memory control device are used.
[0051]
FIG. 1 shows a block diagram of a main part of the recording / reproducing apparatus.
In FIG. 1, reference numeral 1 denotes a magneto-optical disk on which audio data is recorded, for example, and is rotated by a spindle motor 2. An optical head 3 irradiates a laser beam to the magneto-optical disk 1 at the time of recording / reproducing, and at the time of recording provides a high level laser output for heating the recording track to the Curie temperature, and at the time of reproduction by the magnetic Kerr effect. A relatively low level laser output for detecting data from the reflected light.
[0052]
For this reason, the optical head 3 is equipped with a laser diode as a laser output means, an optical system including a deflection beam splitter, an objective lens, and the like, and a detector for detecting reflected light. The objective lens 3a is held by a biaxial mechanism 4 so as to be displaceable in the radial direction of the disc and in the direction in which the objective lens 3a is in contact with or separated from the disc.
[0053]
Reference numeral 6 denotes a magnetic head for applying a magnetic field modulated by the supplied data to the magneto-optical disk, which is disposed at a position facing the optical head 3 with the magneto-optical disk 1 interposed therebetween. The entire optical head 3 and the magnetic head 6 can be moved in the disk radial direction by a thread mechanism 5.
[0054]
Information detected from the magneto-optical disk 1 by the optical head 3 by the reproducing operation is supplied to the RF amplifier 7. The RF amplifier 7 performs processing of the supplied information to reproduce RF signals, tracking error signals, focus error signals, absolute position information (absolute position information recorded as a pregroove (wobbling groove) on the magneto-optical disk 1), Address information, focus monitor signal, etc. are extracted. The extracted reproduction RF signal is supplied to the encoder / decoder unit 8. The tracking error signal and the focus error signal are supplied to the servo circuit 9, and the address information is supplied to the address decoder 10. Further, the absolute position information and the focus monitor signal are supplied to a system controller 11 constituted by, for example, a microcomputer.
[0055]
The servo circuit 9 generates various servo drive signals based on the supplied tracking error signal, focus error signal, track jump command, seek command from the system controller 11, information on the rotational speed detection of the spindle motor 2, and the like. And the thread mechanism 5 is controlled to perform focus and tracking control, and the spindle motor 2 is controlled to a constant angular velocity (CAV) or a constant linear velocity (CLV).
[0056]
The reproduction RF signal is subjected to decoding processing such as EFM demodulation and CIRC by the encoder / decoder unit 8, and then temporarily written in the buffer RAM 13 by the memory controller 12. The reading of data from the magneto-optical disk 1 by the optical head 3 and the transfer of reproduction data in the system from the optical head 3 to the buffer RAM 13 are performed at 1.41 Mbit / sec and intermittently.
[0057]
The data written in the buffer RAM 13 is read out at the timing when the reproduction data is transferred at 0.3 Mbit / sec and supplied to the encoder / decoder unit 14. Then, a reproduction signal process such as a decoding process for the audio compression process is performed, and an analog signal is made by the D / A converter 15, supplied from a terminal 16 to a predetermined amplifier circuit unit, and reproduced and output. For example, it is output as L and R audio signals.
[0058]
Here, writing / reading of data to / from the buffer RAM 13 is performed by the memory controller 12 being addressed under the control of the write pointer and the read pointer, but the write pointer (write address) is 1.41 as described above. On the other hand, the read pointer (read address) is incremented at the timing of 0.3 Mbit / sec while being incremented at the timing of Mbit / sec. The data is accumulated to some extent. When the full capacity data is accumulated in the buffer RAM 13, the increment of the write pointer is stopped, and the data read operation from the magneto-optical disk 1 by the optical head 3 is also stopped. However, since the increment of the read pointer R is continuously executed, the reproduced audio output is not interrupted.
[0059]
Thereafter, only the reading operation from the buffer RAM 13 is continued, and if the amount of data stored in the buffer RAM 13 becomes a predetermined amount or less at a certain time, the data reading operation by the optical head 3 and the increment of the write pointer W are again performed. The data is stored again in the buffer RAM 13 again.
[0060]
By outputting the playback sound signal via the buffer RAM 13 in this way, for example, even when tracking is lost due to a disturbance or the like, the playback sound output is not interrupted. By accessing the correct tracking position and restarting data reading, the operation can be continued without affecting the reproduction output. That is, the earthquake resistance function can be remarkably improved.
[0061]
In FIG. 1, the address information output from the address decoder 10 and the subcode data used for the control operation are supplied to the system controller 11 via the encoder / decoder unit 8 and used for various control operations.
Further, a lock detection signal of a PLL circuit that generates a bit clock for recording / reproducing operation, and a monitor signal of a frame synchronization signal missing state of reproduced data (L and R channels) are also supplied to the system controller 11.
[0062]
The system controller 11 also controls a laser control signal S for controlling the operation of the laser diode in the optical head 3.LPThe output of the laser diode is controlled on / off, and at the time of on control, the output during reproduction when the laser power is relatively low and the output during recording where the laser power is relatively high Can be switched.
[0063]
When a recording operation is performed on the magneto-optical disk 1, the recording signal (analog audio signal) supplied to the terminal 17 is converted into digital data by the A / D converter 18, and then the encoder / decoder unit. 14 is subjected to audio compression encoding processing. The recording data compressed by the encoder / decoder unit 14 is once written in the buffer RAM 13 by the memory controller 12, read at a predetermined timing, and sent to the encoder / decoder unit 8. The encoder / decoder unit 8 performs an encoding process such as CIRC encoding and EFM modulation, and then supplies the encoded signal to the magnetic head driving circuit 15.
[0064]
The magnetic head drive circuit 15 supplies a magnetic head drive signal to the magnetic head 6 in accordance with the encoded recording data. That is, an N or S magnetic field is applied to the magneto-optical disk 1 by the magnetic head 6. At this time, the system controller 11 supplies a control signal to the optical head so as to output a recording level laser beam.
[0065]
Reference numeral 19 denotes an operation input unit provided with keys used for user operations, and 20 denotes a display unit constituted by, for example, a liquid crystal display. The operation input unit 19 is provided with a recording key, a reproduction key, a stop key, an AMS key, a search key and the like for user operations.
[0066]
When performing recording / reproducing operation on the disk 1, management information recorded on the disk 1, that is, P-TOC and U-TOC are read out, and the system controller 11 responds to these management information. The address of the segment to be recorded on the disc 1 and the address of the segment to be reproduced are discriminated, but this management information is held in the buffer RAM 13. Therefore, the buffer RAM 13 is divided into the recording data / reproduction data buffer area and the area for holding the management information.
[0067]
Then, the system controller 11 reads out the management information by executing the reproducing operation on the innermost circumference side of the disc on which the management information is recorded when the disc 1 is loaded, and stores it in the buffer RAM 13. Thereafter, it can be referred to when recording / reproducing the disc 1.
[0068]
The U-TOC is edited in accordance with data recording and erasing, and may be edited and rewritten with a merge process for eliminating the trash area as described above. Each time the operation is performed, this editing process is performed on the U-TOC information stored in the buffer RAM 13, and the U-TOC area of the disk 1 is also rewritten at a predetermined timing in accordance with the rewriting operation.
[0069]
Here, P-TOC and U-TOC in the disc 1 will be described.
As the P-TOC information, area designation such as a recordable area (recordable user area) of the disc, management of the U-TOC area, and the like are performed. When the disc 1 is a pre-mastered disc that is a reproduction-only optical disc, it is possible to manage music recorded in ROM by the P-TOC.
[0070]
The format of P-TOC is shown in FIG.
FIG. 14 shows one sector (sector 0) of P-TOC information repeatedly recorded in an area for P-TOC (for example, the ROM area on the innermost side of the disk).
[0071]
The data area of the sector of the P-TOC is configured as a data area of 4 bytes × 588 (= 2336 bytes), for example, and has a synchronization pattern consisting of 1 byte data of all 0 or all 1 at the head position, and a cluster address and a sector address. 4 bytes are added, and the header is used to indicate the P-TOC area.
[0072]
Further, an identification ID by an ASCII code corresponding to the characters “MINI” is added to a predetermined address position following the header.
Next, the disc type and recording level, the recorded first song number (First TNO), the last song number (Last TNO), and the lead-out start address ROA , Power cal area start address PCA , Start address UST of U-TOC (data area of U-TOC sector 0 in FIG. 15 described later)A , Start address RST of recordable areaA Etc. are recorded.
[0073]
In these 24-bit (3-byte) start addresses, as shown in FIG. 17A, the upper 16 bits are the cluster address and the lower 8 bits are the sector address. Then, as described above in FIG. 20, area management on the disk 1 is performed by these start addresses.
[0074]
Subsequently, a correspondence table instruction data portion having table pointers (P-TNO1 to P-TNO255) for associating each recorded music and the like with a parts table in a management table portion described later is prepared.
[0075]
In the area following the correspondence table instruction data portion, 255 part tables from (01h) to (FFh) are provided corresponding to the table pointers (P-TNO1 to P-TNO255) in the correspondence table indication data portion. (A numerical value with “h” is a so-called hexadecimal notation). Each part table is capable of recording a start address for a certain segment, an end address for the end, and mode information (track mode) of the segment (track).
[0076]
The track mode information in each part table includes information indicating whether the segment is set to prohibit overwriting or data copying, whether it is audio information, the type of monaural / stereo, and the like. .
[0077]
Each part table from (01h) to (FFh) in the management table part is indicated by the contents of the segment by the table pointer (P-TNO1 to P-TNO255) in the corresponding table instruction data part. In other words, the first music piece has a part table (for example, (01h) as the table pointer P-TNO1. However, the table pointer is actually a byte position in the P-TOC sector 0 by a predetermined calculation process. In this case, the start address of the parts table (01h) is the start address of the recording position of the first song, and the end address is the same as the end address. This is the end address of the position where the first song is recorded. Further, the track mode information is information about the first music piece.
[0078]
Note that the start address and end address of 24 bits (3 bytes) in these parts tables are the cluster address, the next 6 bits are the sector address, and the lower 4 bits are the sound group address, as shown in FIG. 17B. It is said that.
[0079]
Similarly, for the second music, the start address, end address, and track mode information of the recording position of the second music are recorded in the parts table (for example, (02h)) indicated by the table pointer P-TNO2.
Similarly, since the table pointers are prepared up to P-TNO255, it is possible to manage up to the 255th music piece on the P-TOC.
Then, by forming the P-TOC sector 0 in this way, it is possible to access and reproduce a predetermined musical piece at the time of reproduction, for example.
[0080]
As will be described later with respect to the present embodiment, the disk on which the U-TOC editing operation is performed is a recordable / reproducible magneto-optical disk, and in this case, there is no so-called pre-mastered music area. The correspondence table instruction data portion and the management table portion described above are not used (these are managed by the U-TOC which will be described later), and therefore each byte is set to “00h”.
However, for a hybrid type disc having both a ROM area and a magneto-optical area as an area for recording music and the like, the correspondence table instruction data section and the management table section are used for managing the music in the ROM area. .
[0081]
Next, U-TOC will be described.
FIG. 15 shows the format of one sector of U-TOC, in which data on which management information is recorded mainly about a song recorded by a user and an unrecorded area (free area) in which a new song can be recorded. It is considered as an area.
For example, when recording a certain piece of music on the disk 1, the system controller 11 searches the U-TOC for a free area on the disk, and can record audio data here. Has been made. Further, at the time of reproduction, the area where the music to be reproduced is recorded is determined from the U-TOC, and the area is accessed to perform the reproduction operation.
[0082]
The U-TOC sector (sector 0) shown in FIG. 15 is provided with a header in the same manner as the P-TOC, and then a manufacturer code, a model code, and the first song number (First TNO) at a predetermined address position. ), The last song number (Last TNO), sector usage, disc serial number, disc ID, etc. are recorded, and the recorded and recorded song areas are recorded by the user. Are associated with the management table part to be described later, and various table pointers (P-DFA, P-EMPTY, P-FRA, P-TNO1 to P-TNO255) are recorded as the correspondence table instruction data part. An area is prepared.
[0083]
Then, 255 part tables (01h) to (FFh) are provided as management table parts to be associated with the table pointers (P-DFA to P-TNO255) of the correspondence table instruction data part. In the same manner as the P-TOC sector 0 in FIG. 14, the start address for the certain segment, the end address for the end, and the mode information (track mode) of the segment are recorded. In the case of TOC sector 0, since the segment indicated in each part table may be connected to another segment in some cases, link information indicating the part table in which the start address and end address of the connected segment are recorded. Can be recorded.
[0084]
As shown in FIG. 17B, the 24 bits (3 bytes) start address and end address in these parts tables are the cluster address, the next 6 bits are the sector address, and the lower 4 bits are the sound group address. Has been.
[0085]
As described above, in this type of recording / reproducing apparatus, for example, data of one piece of music is physically discontinuous, that is, even if it is recorded over a plurality of segments, it is reproduced while being accessed between segments. Since there is no hindrance, music recorded by the user may be divided into a plurality of segments for the purpose of efficient use of the recordable area. For this reason, link information is provided, for example, the numbers (01h) to (FFh) given to each part table (actually indicated by a numerical value that is a byte position in the U-TOC sector 0 by a predetermined arithmetic process) By specifying the parts table to be linked, the parts table can be linked. (Note that since the music or the like recorded in advance is not normally divided into segments, the link information in the P-TOC sector 0 is all “(00h)” as shown in FIG. 14).
[0086]
That is, in the management table section in the U-TOC sector 0, one part table represents one segment. For example, for a music composed of three segments connected, three parts connected by link information. The segment position is managed by the table.
[0087]
Each part table from (01h) to (FFh) in the management table part of U-TOC sector 0 is the table pointer (P-DFA, P-EMPTY, P-FRA, P-TNO1-P in the corresponding table instruction data part) -TNO255) shows the contents of the segment as follows:
[0088]
The table pointer P-DFA indicates a defective area on the magneto-optical disk 1 and is the head of one part table or a plurality of part tables indicating a track portion (= segment) that becomes a defective area due to a scratch or the like. The parts table is specified. In other words, if a defective segment exists, one of (01h) to (FFh) is recorded in the table pointer P-DFA, and the defective segment is indicated by the start and end addresses in the corresponding parts table. . When there are other defective segments, other part tables are designated as link information in the parts table, and the defective segments are also indicated in the parts table. If there is no other defective segment, the link information is, for example, “(00h)”, and there is no link thereafter.
[0089]
The table pointer P-EMPTY indicates the first part table of one or more unused part tables in the management table section. If there is an unused part table, the table pointer P-EMPTY is (01h ) ~ (FFh) is recorded. When there are multiple unused part tables, the part tables are specified sequentially by link information from the part table specified by the table pointer P-EMPTY, and all unused part tables are linked on the management table section. Is done.
[0090]
For example, if the audio data such as music is not recorded at all and there is no defect, the parts table is not used at all, so the parts table (01h) is specified by the table pointer P-EMPTY, for example, Also, the parts table (02h) is specified as the link information for the parts table (01h), the parts table (03) is specified as the link information for the parts table (02h), and so on. . In this case, the link information of the parts table (FFh) is “(00h)” indicating no connection thereafter.
[0091]
The table pointer P-FRA indicates a free area (including an erase area) in which data can be written on the magneto-optical disk 1, and one or a plurality of parts indicating a track portion (= segment) as a free area. The first part table in the table is specified. In other words, if there is a free area, one of (01h) to (FFh) is recorded in the table pointer P-FRA, and the corresponding part table indicates the segment that is the free area by the start and end addresses. Has been. Further, when there are a plurality of such segments, that is, there are a plurality of parts tables, the link information sequentially designates the parts tables whose link information is “(00h)”.
[0092]
FIG. 16 schematically shows a management state of a segment that becomes a free area by a parts table. This is because when the segment (03h) (18h) (1Fh) (2Bh) (E3h) is a free area, this state continues to the corresponding table instruction data P-FRA and the parts table (03h) (18h) (1Fh) The state represented by the link (2Bh) (E3h) is shown. The above-described defect area and unused part table management form are also the same.
[0093]
Table pointers P-TNO1 to P-TNO255 indicate the music recorded by the user on the magneto-optical disk 1. For example, the table pointer P-TNO1 includes one or more segments in which data of the first music is recorded. The parts table that shows the first segment in time is specified.
[0094]
For example, if the first song is recorded on the disc without the track being divided (that is, in one segment), the recording area of the first song is the start in the parts table indicated by the table pointer P-TNO1. And the end address.
[0095]
Also, for example, when the second music piece is recorded discretely on a plurality of segments on the disc, each segment is designated according to the temporal order to indicate the recording position of the music piece. In other words, from the part table specified in the table pointer P-TNO2, other part tables are further specified in accordance with the time order in accordance with the link information, and the part table in which the link information becomes “(00h)” is linked. (The same form as FIG. 16 above). In this way, for example, all segments in which data constituting the second music is recorded are sequentially designated and recorded, so that the data of this U-TOC sector 0 is used to reproduce the second music or the second music. When overwriting the area, it is possible to access the optical head 3 and the magnetic head 6 to extract continuous music information from discrete segments, or to record using the recording area efficiently.
[0096]
As described above, the area management on the disc is performed by the P-TOC, and the music and the free area recorded in the recordable user area are performed by the U-TOC.
[0097]
These pieces of TOC information are read into the buffer RAM 13 so that the system controller 11 can refer to them. As described above, for example, when an erasing operation is performed, a U including a merge process for erasing the trash area is included. -The TOC editing process will be performed. The memory control device and the memory data search circuit of this embodiment are configured with a configuration suitable for this processing.
The memory control device of this embodiment is constituted by the control function for the memory controller 12 and the system controller 11 in the recording / reproducing device of FIG. 1, and the memory data search circuit of this embodiment is a memory. It is provided inside the controller 12.
[0098]
Hereinafter, these memory control device, memory data search circuit, and U-TOC editing process to be executed will be described with reference to FIGS.
FIG. 2 is a block diagram showing the internal configuration of the memory controller 12. A disk drive interface unit 30 holds and exchanges recording / reproduction data Dt and TOC information TDt with respect to the disk drive side, that is, the encoder / decoder unit 8.
[0099]
A RAM data interface unit 31 writes / reads data to / from the buffer RAM 13 and holds these data. The data to be written / read is the recording / reproduction data Dt and the TOC information TDt.
An audio compression interface unit 32 holds and exchanges recording / reproduction data Dt with respect to the audio compression unit, that is, the encoder / decoder unit 14.
[0100]
A controller interface unit 33 serves as an interface to the system controller 11. Here, the TOC information TDt is exchanged with the system controller 11, the control signal from the system controller 11 is input, and these data are held.
[0101]
An address counter 34 is a write address / read address (M) based on a control signal from the system controller 11.Ad) And output to the buffer RAM 13.
[0102]
Reference numeral 35 denotes a memory data search circuit. When various control signals are input from the system controller 11 via the controller interface unit 33, a search operation for the TOC information TDt held in the buffer RAM 13 can be performed based on the control signals. Has been made.
B indicates a control bus connecting each part.
[0103]
The configuration of the memory data search circuit 35 is shown in FIG.
Reference numeral 40 denotes an output selection unit, and 41 denotes a reference address register constituted by a D flip-flop. The reference address register 41 is supplied to the reference address register 41 via the controller interface unit 33 from the system controller 11.ref Is set. This reference address ADref This corresponds to the start address or end address of a segment serving as a reference in the U-TOC editing process described later.
[0104]
Further, the output selection unit 40 uses, for example, a reference address AD from data read from the buffer RAM 13 (data in the U-TOC parts table) during a search operation to be described later.ref Address AD to be compared withR Is output.
[0105]
Reference numeral 42 denotes a proximity address register constituted by a D flip-flop, and an address AD output from the output selection unit 40.R Is made to be able to latch. Finally, the address AD latched in the proximity address register 42prevIs a search address obtained by the search processing of the memory data search circuit 34.
[0106]
Reference numeral 43 denotes a temporary register, and a search target address AD output from the output selection unit 40.R The link information (or table pointer) recorded in the same parts table is input, and the link information input this time and the link information input last time are held in a two-stage register configuration, for example. The link information that was previously input and held is the search target part information LK.R And
[0107]
Reference numeral 44 denotes a link register, which is search target part information LK output from the temporary register 43.R Search parts information LKprevIt can be latched as The link register 44 is composed of a D flip-flop.
[0108]
45 is a reference address AD latched in the reference address register 41.ref And the search target address AD output from the output selection unit 40R The comparison unit 46 compares the search target address AD output from the output selection unit 40.R And the search address AD latched in the proximity address register 42prevIt is a comparison part which compares.
[0109]
Reference numeral 47 denotes a control logic, which outputs a latch signal to the proximity address register 42 and the link register 44 based on the comparison results by the comparison units 45 and 46, and outputs from the output selection unit 40 to the proximity address register 42. Search target address ADR A new search address ADprevSearch address ADprevThe update target part information LK latched in the temporary register 43 for the link register 44 is executed.R Is new search parts information LKprevSearch parts information LK so thatprevThe update operation is executed.
[0110]
By providing such a memory data search circuit 35 in the memory controller 12, for example, when a U-TOC is edited in response to deletion of a certain piece of music, the segment (edit) in which that piece of music is deleted is edited. The segment before and after the segment) is searched, and if there is a trash area, merge processing is performed to eliminate the trash area (see FIGS. 20 to 24). The process of searching for the segment before and after the segment to be executed is executed by the memory data search circuit 35, and the system controller 11 does not need to execute the search.
[0111]
The merge process in the U-TOC editing process will be described with reference to the flowcharts of FIGS. The merge process includes a merge process at the front (inner side of the disk) and a merge process at the rear (at the outer side of the disk) of the segment serving as the editing reference. The processes of the system controller 11 relating to this are divided into FIGS. I will explain.
[0112]
The process of the system controller 11 as the forward merge process is as shown in FIG.
First, the system controller 11 sets the segment start address as the reference address N as the reference address.ref Is set internally (F101). For example, as shown in FIGS.26~ A27If the music is recorded in the segment (shaded portion) of this and the merge process is executed in response to the deletion, the address A that is deleted and replaces the free area26~ A27This segment becomes the editing reference segment (reference free area), and the start address A of this reference free area26Is the reference address Nref Set as
[0113]
5 to 8 show various cases in front of the reference free area, and FIG. 5A shows a segment in which music is recorded through the trash area in front of the reference free area. FIG. 6 shows a case where there is a segment in which music is recorded immediately in front of the reference free area and there is no trash area. FIG. When there is an area segment, FIG. 8A shows a case where there is a segment that becomes a free area immediately before the reference free area and there is no trash area. The process determines whether the current state corresponds to this state, and performs a merge process accordingly.
[0114]
Reference address Nref Then, the system controller 11 causes the memory controller 12 to execute the forward search mode. That is, the memory controller 12 determines whether the front adjacent position of the reference free area is in any of the states of FIGS. 5A, 6, 7A, and 8A (F102).
[0115]
For this purpose, the reference address N is stored in the reference address register 41 of the memory data search circuit 35 via the controller interface unit 33 of the memory controller 12.ref As well as a latch control command and a reference address Nref To the reference address register 41ref Let me hold as.
[0116]
Similarly, the search address AD is used for the proximity address register 42.prevAddress A as the initial value ofMIN And latch it. Address AMIN Is the address of the head position of the recordable user area as shown in FIG.
Furthermore, the search part information LK in the link register 44prevTo clear.
[0117]
Further, the search mode signal SSMIs output to the output selection unit 40 and the control logic 47. Search mode signal SSMIs a signal for identifying to the memory data search circuit 35 whether to execute the forward merging process or the backward merging process.
[0118]
Search mode signal S indicating forward merge processingSMIs output, the output selection unit 40 uses the end address of the read part table address data in the U-TOC as the search target address AD.R Is set to output as
[0119]
Further, the search mode signal S indicating the forward merging process.SMThus, the control logic 47 uses the reference address AD in the comparison unit 45.ref And search target address ADR By comparing ADR <ADref And the search address AD in the comparison unit 46 is obtained.prevAnd search target address ADR Comparison of ADprev<ADR Is obtained, a latch control signal is output to the proximity address register 42 and the link register 44, and the search address AD is output.prevAnd search parts information LKprevSet to cause updates to be performed.
[0120]
When the system controller 11 turns on the forward search mode for the memory controller 12 in this way, the U-TOC stored in the buffer RAM 13 is first searched for the part table derived from the table pointer P-FRA. Control to execute (F103). That is, the memory controller 12 is caused to execute a read scan of the parts table relating to the free area. Then, it waits until this read scan is completed (F104).
[0121]
In this read scan, the memory data search circuit 35 of the memory controller 12 searches for a segment that is the closest free area in front of the reference free area.
That is, the memory controller 33 sequentially generates an address for the part table derived from the table pointer P-FRA by the address counter 34, whereby the data of the part table for the free area is sequentially transmitted via the RAM data interface unit 31. It is captured. Here, the data fetched from one parts table is a total of 8 bytes including a start address 3 bytes, an end address 3 bytes, track mode information 1 byte, and link information 1 byte.
[0122]
When the memory data search circuit 35 fetches these data via the controller interface unit 33, first, link information is fetched into the temporary register 43.
[0123]
However, at the start of this read scan, the table pointer P-FRA is taken into the temporary register 43, and when the first parts table is read, the temporary register 43 stores the table pointer P-FRA as the previous link information. The value of the table pointer P-FRA and the link information fetched this time are respectively held by the two-stage register configuration. At this time, the temporary register 43 sets the value of the table pointer P-FRA to the search target part information LK.R Will hold as.
[0124]
Further, the end address recorded in the parts table from the output selection unit 40 is the search target address AD.R Is output as
Then, in the comparison unit 45, the reference address ADref (In this case, address A26) And search target address ADR (The end address of the parts table) is compared.
[0125]
Where ADR > ADref If it is, it means that the read part table is a part table for a segment located behind the reference free area, and conversely ADR <ADref If it is, it means that the read part table is a part table for a segment located in front of the reference free area.
[0126]
The comparison unit 46 also searches the search address AD.prev(In this case, the first address A is the initial value.MIN ) And search target address ADR (End address of the read parts table) is compared.
[0127]
Where ADR > ADprevThe read parts table is the search address ADprevIs the segment behind the segment whose end address is indicated inR <ADprevIf this is the case, the read parts table is the search address ADprevThis is a segment ahead of the segment whose end address is shown in FIG.
However, the search address AD is stillprevFor parts tables that have been read at the time that has not been updated, the search address AD to be comparedprevIs the initial value AMIN Because it is said that it is always ADR > ADprevIt becomes.
[0128]
Here, the comparison unit 45 performs ADR <ADref (Search address ADprevIs the initial value AMIN In the case of AD, the comparison unit 46R > ADprevAs a result, it is determined that the read part table is a part table indicating a segment of the free area that is located in front of and relatively close to the reference free area, and the control logic 47 detects the proximity address register 42. And a latch control signal is output to the link register 44, and the address ADR A new search address ADprevAnd the search target part information LK latched in the temporary register 43R Search part information LK in the link register 44prevAs latch.
[0129]
Search target part information LK in the temporary register 43R Is the link information (in this case, the value of the table pointer P-FRA in this case) in the part table read last time, and thus the search address AD in the proximity address register 42 is thus obtained.prevIs updated at the same time as the updated ADprevThe position information of the parts table in which the end address that is the value of is stored in the link register 44 is searched part information LKprevWill be held as.
[0130]
As a result, the end address of the segment ahead of the reference free area becomes the search address AD.prevAnd the position of the parts table indicating the segment is the search link information LKprevAs shown.
[0131]
Subsequently, the part table linked from the part table is read according to the read scan, and the link information in this part table is taken into the temporary register 43. At this time, the search target part information LK in the temporary register 43R Is the link information fetched last time, that is, search target part information LKR The position on the U-TOC of the part table fetched this time is indicated.
Further, the end address of the parts table is retrieved from the output selection unit 40 by the search target address AD.R Is output as
[0132]
At this time, the search target address ADR And reference address ADref Are compared by the comparison unit 45, and further the search target address ADR And search address ADprevAre compared by the comparison unit 46, and as a result, ADR <ADref And ADR > ADprevIf so, the read-out part table has an end address at that time as a search address AD.prevThis is a part table for a segment located closer to the front side than the reference free area than the part table held as.
[0133]
Therefore, the control logic 47 causes the proximity address register 42 and the link register 44 to execute latch, and the search address AD.prevIs updated to be the end address in the read parts table, and the search part information LKprevLink information indicating the position of the read parts table, that is, the search target part information LK in the temporary register 43 at this timeR It is updated to the value held as.
[0134]
Subsequently, the linked parts table is sequentially read, and each time the comparison operation by the comparison units 45 and 46 is executed, and as a result ADR <ADref And ADR > ADprevIf so, the search address AD of the proximity address register 42prevAnd link part 44 search part information LKprevIs updated while ADR <ADref And ADR > ADprevIf the result is not obtained, the search address AD of the proximity address register 42 is obtained.prevAnd link part 44 search part information LKprevIs not updated and the value at the time of the previous update is held as it is.
[0135]
Therefore, when such an operation is executed in the memory data search circuit 35 in response to the read scan for all the part tables derived from the table pointer P-FRA, the forward of the reference free area is reached when the operation is completed. The end address of the segment that is the closest free area is the search address ADprevThe parts table indicating the segment is stored as the search part information LK.prevWill be held as.
[0136]
When the read scan of the parts table from the table pointer P-FRA by the memory controller 12 is completed, the processing of the system controller 11 proceeds to step F105 in FIG. 4 and the search address AD held in the memory data search circuit 35prevAnd search parts information LKprevCapture. And search address ADprevProximity free area address N1 As search parts information LKprevProximity free area parts information NL1 Hold as.
[0137]
Subsequently, the system controller 11 again sends the address A as an initial value to the proximity address register 42 to the memory data search circuit 35 of the memory controller 12.MIN Search address ADprevAnd the search part information LK in the link register 44prevIs cleared (F106).
[0138]
When the system controller 11 sets the memory data search circuit 35 to the memory controller 12 in this way, the table controller P-TNO1 to the U-TOC held in the buffer RAM 13 is now set to the memory controller 12. Control is performed to sequentially execute the search for the parts table derived from each of the P-TNO 255 (F108). That is, the memory controller 12 performs a read scan of the parts table related to the segment (music area) where the music is recorded. Then, it waits until this read scan is completed (F109).
[0139]
In this read scan, the memory data search circuit 35 of the memory controller 12 searches for a segment that is the music area closest to the front with respect to the reference free area.
[0140]
That is, the memory controller 33 sequentially generates an address for the parts table derived from the table pointer P-TNO1 by the address counter 34, thereby targeting one or more segments of the first song via the RAM data interface unit 31. The data of the parts table that has been selected is taken in sequentially. Here, the data fetched from one parts table is a total of 8 bytes including a start address 3 bytes, an end address 3 bytes, track mode information 1 byte, and link information 1 byte.
[0141]
When the lead scan of the parts table for the first song is completed, the second song is followed by the parts table from the table pointer P-TNO2, the third song is followed by the parts table from the table pointer P-TNO3, and so on. The parts table corresponding to the segments for all the music pieces that have been read-scanned and thus recorded are sequentially read from the buffer RAM 13.
[0142]
When the memory data search circuit 35 fetches the data of these parts tables via the controller interface unit 33, the end address comparison processing of each segment and the holding of the previous link information are performed as in the case of the parts table related to the free area. In addition, according to the comparison result of the comparison units 45 and 46, ADR > ADprevAnd ADR <ADref If this is the case, the read parts table is determined to be a parts table that indicates a segment of the music area that is located in front of and relatively close to the reference free area, and the proximity logic register 42 and the link are linked from the control logic 47. A latch control signal is output to the register 44. And address ADR A new search address ADprevAnd the search target part information LK latched in the temporary register 43R Search part information LK in the link register 44prevAs latch.
[0143]
Subsequently, the parts table is sequentially read, but each time the comparison operation by the comparison units 45 and 46 is executed, and as a result ADR <ADref And ADR > ADprevIf so, the search address AD of the proximity address register 42prevAnd link part 44 search part information LKprevIs updated while ADR <ADref And ADR > ADprevIf the result is not obtained, the search address AD of the proximity address register 42 is obtained.prevAnd link part 44 search part information LKprevIs not updated and the value at the time of the previous update is held as it is.
[0144]
Accordingly, the memory data search circuit 35 performs such an operation because the table pointer P-TNO1 to P-TNO255 (however, there is no part table for the table pointer set to “00h” in P-TNO1 to P-TNO255). For example, if only three songs are recorded, the lead scan for the table pointers P-TNO4 to P-TNO255 is not necessary). Is completed, the end address of the segment that is the closest music area in front of the reference free area is the search address AD.prevThe parts table indicating the segment is stored as the search part information LK.prevWill be held as.
[0145]
When the read scan of the parts table from the table pointers P-TNO1 to P-TNO255 by the memory controller 12 is completed, the processing of the system controller 11 proceeds to step F109 in FIG. 4 and the search address held in the memory data search circuit 35 ADprevAnd search parts information LKprevCapture. And search address ADprevNear music area address N2 As search parts information LKprevProximity music area parts information NL2 Hold as.
[0146]
At this time, the system controller 11 has a proximity free area address N1 And adjacent music area address N2 Are compared (F110). From this comparison, it can be seen whether the free area is located in front of the reference free area or the music area is located.
[0147]
For example, when a music area exists immediately before the reference free area as shown in FIGS. 5A and 6, the proximity free area address N as shown in the figure.1 Is address Atwenty oneAnd the adjacent music area address N2 Is address Atwenty threeIs equivalent to N1 <N2 It becomes.
On the other hand, when a free area exists immediately before the reference free area as shown in FIGS. 7A and 8A, the adjacent free area address N as shown in FIG.1 Is address Atwenty threeAnd the adjacent music area address N2 Is address Atwenty oneIs equivalent to N1 > N2 It becomes.
[0148]
N in Step F1101 <N2 If the front is determined as the music area, the reference address Nref To nearby music area address N2 Thus, it is determined whether or not a trash area exists between the reference free area and the music area immediately before (F111).
[0149]
If adjacent music area address N2 And reference address Nref If the difference is one sound group, the reference free area and the music area immediately before it are completely adjacent to each other, and there is no trash area. That is, it is determined that the state shown in FIG.
In this case, since the merge process for the trash area is unnecessary, the forward merge process is terminated (F111 → YES).
[0150]
However, the adjacent music area address N2 And reference address Nref If the difference is greater than or equal to two sound groups, it is determined that there is a trash area between the reference free area and the music area immediately before it, that is, the state shown in FIG.
[0151]
In this case, merge processing for the trash area is executed (F111 → F112). That is, as shown in FIG. 5B, the start address of the reference free area is set to address A.26To address Atwenty fourChange to and hold. This address Atwenty fourIs the adjacent music area address N2 Calculated by calculation of +1. As a result, in the system controller 11, the reference free area is completely adjacent to the immediately preceding music area, and is understood as having no trash area.
[0152]
In step F110, N1 > N2 If the front is determined to be a free area, the merge process is executed without determining the presence or absence of a trash area (F110 → F113). That is, by combining the front free area and the reference free area, even if a trash area exists, it is automatically resolved.
[0153]
For example, as shown in FIG. 8A, when the reference free area and the immediately preceding free area are completely adjacent and no trash area exists, the start address A of the reference free areatwenty fourTo the start address A of the free area aheadtwenty twoAnd address A as shown in FIG.twenty two~ A27As a standard free area.
[0154]
The U-TOC rewrite editing is performed after the forward merging process and the backward merging process described later are completed. When the U-TOC is actually edited, the address Atwenty twoThe end address in the parts table where the free area segments fromtwenty threeTo A27The process to change to is performed. However, if the free area is further combined backward in the backward merge processing described later, the address A is accordingly changed.twenty twoThe end address of the parts table with the start address is rewritten to the end address of the free area behind it.
[0155]
Further, for example, even if a trash area exists between the reference free area and the immediately preceding free area as shown in FIG.twenty fourTo the start address A of the free area aheadtwenty twoAnd address A as shown in FIG.twenty two~ A27As a new reference free area, the trash area will automatically disappear.
[0156]
When the above forward merging process is completed, the system controller 11 executes the backward merging from the reference free address.
[0157]
The processing of the system controller 11 as the backward merging processing is as shown in FIG.
First, the system controller 11 sets the end address of the segment serving as the editing reference as the reference address N.ref Is set internally as (F201). For example, as shown in FIGS.twenty four~ A27Segment or Atwenty four~ A29If the segment is a reference free area (shaded area) after the forward merge process described above, the end address A of this reference free area27(A in the case of FIG. 1129) Is the reference address Nref Set as
[0158]
10 to 13 show various cases behind the reference free area, and FIG. 10A shows a segment where music is recorded via the trash area behind the reference free area. 11, FIG. 11 shows a case where there is a segment in which music is recorded immediately behind the reference free area and there is no trash area. FIG. 12A shows the free area via the trash area behind the reference free area. When there is an area segment, FIG. 13A shows a case where there is a free area segment immediately after the reference free area and there is no trash area. The process determines whether the current state corresponds to this state, and performs a merge process accordingly.
[0159]
Reference address Nref Then, the system controller 11 causes the memory controller 12 to execute the backward search mode. In other words, the memory controller 12 is made to determine whether the rear adjacent position of the reference free area is in the state of FIG. 10A, FIG. 11, FIG. 12A, or FIG. 13A (F202).
[0160]
For this purpose, the reference address N is stored in the reference address register 41 of the memory data search circuit 35 via the controller interface unit 33 of the memory controller 12.ref As well as a latch control command and a reference address Nref To the reference address register 41ref Let me hold as. In other words, this reference address is the end address of the reference free area, contrary to the start address of the reference free area in the case of the forward merge process.
[0161]
Similarly, the address A is used as an initial value for the proximity address register 42.MAX And latch it. Address AMAX Is the address of the last position of the recordable user area as shown in FIG.A Is the previous address.
Furthermore, the search part information LK in the link register 44prevTo clear.
[0162]
Further, the search mode signal SSMIs output to the output selection unit 40 and the control logic 47. Search mode signal S in this caseSMIs a signal for identifying whether the memory data search circuit 35 executes the forward merging process or the backward merging process as described above, and the search mode signal S indicating the backward merging process.SMIs supplied, the output selection unit 40 uses the start address of the part table address data in the read U-TOC as the search target address AD.R Is set to output as
[0163]
Further, the search mode signal S indicating the backward merging process.SMThus, the control logic 47 uses the reference address AD in the comparison unit 45.ref And search target address ADR By comparing ADR > ADref And the search address AD in the comparison unit 46 is obtained.prevAnd search target address ADR Comparison of ADprev> ADR Is obtained, a latch control signal is output to the proximity address register 42 and the link register 44, and the search address AD is output.prevAnd search parts information LKprevSet to cause updates to be performed.
[0164]
When the system controller 11 turns on the backward search mode for the memory controller 12 in this way, the U-TOC held in the buffer RAM 13 is first searched for the part table derived from the table pointer P-FRA. Control to execute (F203). That is, the memory controller 12 is caused to execute a read scan of the parts table relating to the free area. Then, it waits until this read scan is completed (F204).
[0165]
In this read scan, the memory data search circuit 35 of the memory controller 12 searches for a segment that is the closest free area to the rear of the reference free area.
That is, the memory controller 33 sequentially generates an address for the part table derived from the table pointer P-FRA by the address counter 34, whereby the data of the part table for the free area is sequentially transmitted via the RAM data interface unit 31. It is captured. That is, as in the case of the forward merging process, all 8-byte data including a start address of 3 bytes, an end address of 3 bytes, track mode information of 1 byte, and link information of 1 byte are fetched from one part table.
[0166]
When the memory data search circuit 35 fetches these data via the controller interface unit 33, first, link information is fetched into the temporary register 43.
[0167]
However, at the start of this read scan, the table pointer P-FRA is taken into the temporary register 43, and when the first parts table is read, the temporary register 43 stores the table pointer P-FRA as the previous link information. The value of the table pointer P-FRA and the link information fetched this time are respectively held by the two-stage register configuration. At this time, the temporary register 43 sets the value of the table pointer P-FRA to the search target part information LK.R Will hold as.
[0168]
Further, the start address recorded in the parts table from the output selection unit 40 is the search target address AD.R Is output as
Then, in the comparison unit 45, the reference address ADref (In this case, address A27) And search target address ADR (The start address of the parts table) is compared.
Where ADR > ADref If it is, it means that the read part table is a part table for a segment located behind the reference free area, and conversely ADR <ADref If it is, it means that the read part table is a part table for a segment located in front of the reference free area.
[0169]
The comparison unit 46 also searches the search address AD.prev(In this case, the first address A is the initial value.MAX ) And search target address ADR (Start address of the read parts table) is compared.
[0170]
Where ADR > ADprevThe read parts table is the search address ADprevIs the segment behind the segment whose start address is shown inR <ADprevIf this is the case, the read parts table is the search address ADprevThis is a segment behind the segment indicated by the start address.
However, the search address AD is stillprevFor parts tables that have been read at the time when has not been updated, the search address AD to be comparedprevIs the initial value AMAX Because it is said that it is always ADR <ADprevIt becomes.
[0171]
Here, the comparison unit 45 performs ADR > ADref (Search address ADprevIs the initial value AMAX In the case ofR <ADprevAs a result, the read part table is determined to be a part table indicating a segment of the free area that is located behind and relatively close to the reference free area, and the control logic 47 detects the proximity address register 42. And a latch control signal is output to the link register 44, and the address ADR A new search address ADprevAnd the search target part information LK latched in the temporary register 43R Search part information LK in the link register 44prevAs latch.
[0172]
Search target part information LK in the temporary register 43R That is, since it is link information in the part table read last time (in this case, it may be the value of the table pointer P-FRA), the search address AD in the proximity address register 42 is thus obtained.prevIs updated at the same time as the updated ADprevThe position information of the parts table in which the end address that is the value of is stored in the link register 44 is searched part information LKprevWill be held as.
[0173]
As a result, the start address of the segment behind the reference free area becomes the search address AD.prevAnd the position of the parts table indicating the segment is the search link information LKprevAs shown.
[0174]
Subsequently, the part table linked from the part table is read according to the read scan, and the link information in this part table is taken into the temporary register 43. At this time, the search target part information LK in the temporary register 43R Is the link information fetched last time, that is, search target part information LKR The position on the U-TOC of the part table fetched this time is indicated.
Further, the start address of the parts table is retrieved from the output selection unit 40 by the search target address AD.R Is output as
[0175]
At this time, the search target address ADR And reference address ADref Are compared by the comparison unit 45, and further the search target address ADR And search address ADprevAre compared by the comparison unit 46, and as a result, ADR > ADref And ADR <ADprevIf so, the read-out parts table has a start address at that time as a search address AD.prevThis is a part table for a segment located closer to the rear side with respect to the reference free area than the part table held as.
[0176]
Therefore, the control logic 47 causes the proximity address register 42 and the link register 44 to execute latch, and the search address AD.prevIs updated to be the start address in the read parts table, and the search part information LKprevLink information indicating the position of the read parts table, that is, the search target part information LK in the temporary register 43 at this timeR It is updated to the value held as.
[0177]
Subsequently, the linked parts table is sequentially read, and each time the comparison operation by the comparison units 45 and 46 is executed, and as a result ADR > ADref And ADR <ADprevIf so, the search address AD of the proximity address register 42prevAnd link part 44 search part information LKprevIs updated while ADR > ADref And ADR <ADprevIf the result is not obtained, the search address AD of the proximity address register 42 is obtained.prevAnd link part 44 search part information LKprevIs not updated and the value at the time of the previous update is held as it is.
[0178]
Therefore, when such an operation is executed in the memory data search circuit 35 in response to the read scan for all the parts tables derived from the table pointer P-FRA, the process is completed after the reference free area. The start address of the segment that is the closest free area is the search address ADprevThe parts table indicating the segment is stored as the search part information LK.prevWill be held as.
[0179]
When the read scan of the parts table from the table pointer P-FRA by the memory controller 12 is completed, the processing of the system controller 11 proceeds to step F205 in FIG. 9 and the search address AD held in the memory data search circuit 35prevAnd search parts information LKprevCapture. And search address ADprevProximity free area address N1 As search parts information LKprevProximity free area parts information NL1 Hold as.
[0180]
Subsequently, the system controller 11 again sends the address A as an initial value to the proximity address register 42 to the memory data search circuit 35 of the memory controller 12.MAX Search address ADprevAnd the search part information LK in the link register 44prevIs cleared (F206).
[0181]
When the system controller 11 sets the memory data search circuit 35 to the memory controller 12 in this way, the table controller P-TNO1 to the U-TOC held in the buffer RAM 13 is now set to the memory controller 12. Control is performed so that the search for the parts table derived from each P-TNO 255 is executed sequentially (F208). That is, the memory controller 12 performs a read scan of the parts table related to the segment (music area) where the music is recorded. Then, it waits until this read scan is completed (F209).
[0182]
In this read scan, the memory data search circuit 35 of the memory controller 12 searches for the segment that is the music area closest to the back with respect to the reference free area.
That is, the memory controller 33 sequentially generates an address for the parts table derived from the table pointer P-TNO1 by the address counter 34, thereby targeting one or more segments of the first song via the RAM data interface unit 31. The data of the parts table that has been selected is taken in sequentially. Here, the data fetched from one parts table is a total of 8 bytes including a start address 3 bytes, an end address 3 bytes, track mode information 1 byte, and link information 1 byte.
[0183]
When the lead scan of the parts table for the first song is completed, the second song is followed by the parts table from the table pointer P-TNO2, the third song is followed by the parts table from the table pointer P-TNO3, and so on. The parts table corresponding to the segments for all the music pieces that have been read-scanned and thus recorded are sequentially read from the buffer RAM 13.
[0184]
When the memory data search circuit 35 takes in the data of these parts tables via the controller interface unit 33, the start address comparison processing of each segment and the holding of the previous link information are performed as in the case of the parts table related to the free area. In addition, according to the comparison result of the comparison units 45 and 46, ADR <ADprevAnd ADR > ADref If this is the case, the read parts table is determined to be a part table indicating a segment of the music area located behind and relatively close to the reference free area, and the proximity address register 42 and the link from the control logic 47 are determined. A latch control signal is output to the register 44. And address ADR A new search address ADprevAnd the search target part information LK latched in the temporary register 43R Search part information LK in the link register 44prevAs latch.
[0185]
Subsequently, the parts table is sequentially read, but each time the comparison operation by the comparison units 45 and 46 is executed, and as a result ADR > ADref And ADR <ADprevIf so, the search address AD of the proximity address register 42prevAnd link part 44 search part information LKprevIs updated while ADR > ADref And ADR <ADprevIf the result is not obtained, the search address AD of the proximity address register 42 is obtained.prevAnd link part 44 search part information LKprevIs not updated and the value at the time of the previous update is held as it is.
[0186]
Accordingly, the memory data search circuit 35 performs such an operation on the table pointers P-TNO1 to P-TNO255 (of course, in this case as well, for the table pointer that is set to “00h” among the P-TNO1 to P-TNO255, the parts table is When it is executed according to the lead scan for all the parts tables derived from (there is no existence, the lead scan is unnecessary), the music area closest to the reference free area is The start address of the segment is the search address ADprevThe parts table indicating the segment is stored as the search part information LK.prevWill be held as.
[0187]
When the read scan of the parts table from the table pointers P-TNO1 to P-TNO255 by the memory controller 12 is completed, the processing of the system controller 11 proceeds to step F209 in FIG. 4 and the search address held in the memory data search circuit 35 ADprevAnd search parts information LKprevCapture. And search address ADprevNear music area address N2 As search parts information LKprevProximity music area parts information NL2 Hold as.
[0188]
At this time, the system controller 11 has a proximity free area address N1 And adjacent music area address N2 Are compared (F210). From this comparison, it can be seen whether there is a free area or a music area after the reference free area.
[0189]
For example, when the music area exists after the reference free area as shown in FIGS. 10A and 11, the proximity free area address N as shown in the figure.1 Is address A32And the adjacent music area address N2 Is address A30Is equivalent to N1 > N2 It becomes.
On the other hand, when there is a free area after the reference free area as shown in FIGS. 12A and 13A, the proximity free area address N as shown in FIG.1 Is address A30Or A28And the adjacent music area address N2 Is address A32Is equivalent to N1 <N2 It becomes.
[0190]
N in Step F2201 > N2 If the back is determined to be the music area, the adjacent music area address N2 To reference address Nref Thus, it is determined whether or not a trash area exists between the reference free area and the subsequent music area (F211).
[0191]
If adjacent music area address N2 And reference address Nref If the difference is one sound group, that is, the reference free area and the subsequent music area are completely adjacent to each other, and there is no trash area. That is, it is determined that the state shown in FIG.
In this case, the merge process for the trash area is unnecessary, and the backward merge process is terminated (F211 → YES).
[0192]
However, the adjacent music area address N2 And reference address Nref If the difference is greater than or equal to two sound groups, it is determined that there is a trash area between the reference free area and the subsequent music area, that is, the state shown in FIG.
[0193]
In this case, merge processing for the trash area is executed (F211 → F212). That is, as shown in FIG. 10B, the end address of the reference free area is set to address A.27To address A29Change to and hold. This address A29Is the adjacent music area address N2 Calculated by calculation of -1. As a result, in the system controller 11, the reference free area is completely adjacent to the subsequent music area, and the trash area is eliminated.
[0194]
In step F220, N1 <N2 If the rear is determined as a free area, the merge process is executed without determining the presence or absence of a trash area (F220 → F213). That is, by combining the rear free area and the reference free area, even if a trash area exists, it is automatically resolved.
[0195]
For example, as shown in FIG. 13A, when the reference free area and the subsequent free area are completely adjacent and there is no trash area, the end address A of the reference free area27To the end address A of the free area behind31And address A as shown in FIG.twenty four~ A31As a standard free area.
[0196]
Although only the backward merging process is described here, of course, in the above-described forward merging process, when the reference free area is combined with the front free area as shown in FIGS. The start address of the reference free area is the start address of the free area in front of it.
When the U-TOC is actually edited after the merge processing, the reference free area newly grasped in the merge processing corresponds to the segment of the free area forward or backward until then. It will be contained and expressed in the provided parts table.
[0197]
Further, for example, even if a trash area exists between the reference free area and the subsequent free area as shown in FIG.27To the end address A of the free area behind31And address A as shown in FIG.twenty four~ A31As a new reference free area, the trash area will automatically disappear.
[0198]
When the forward merging process and the backward merging process are completed as described above, the system controller 11 executes the U-TOC editing operation based on the merging process and rewrites the U-TOC in the buffer RAM 13.
For example, in the example of FIG. 20, the U-TOC of FIG. 21 is edited and rewritten as shown in FIG. At a predetermined time, the edited U-TOC is supplied to the disk 1 as recording data, and the U-TOC is rewritten on the disk 1.
[0199]
By performing merge processing as described above and performing U-TOC editing, the trash area is eliminated, and the recordable user area of the disc 1 can be used effectively.
[0200]
Then, the memory controller having a memory data search circuit on the memory controller 12 side as in this embodiment executes these processes, so that the system controller 11 can read the part table to be read-scanned during the merge process. The operation of receiving adjacent data and determining the adjacent segments by comparing the data becomes unnecessary. Therefore, the time required for communication of read scan data between the system controller 11 and the memory controller 12 is completely eliminated. Therefore, a quick merge process is realized. For example, the U-TOC editing processing time, which conventionally takes about 2 minutes, can be shortened to about 2 seconds.
[0201]
Further, the system controller 11 sends a search mode signal S to the output selection unit 40 in the memory data search circuit 35.SMThe end address is output during forward merge processing and the start address is output during backward merge processing. By doing so, the search address can be used as it is for the determination of the presence or absence of the trash area, so that the efficiency of the process is also promoted.
[0202]
By the way, in the above embodiment, the forward merge process is executed first. However, the backward merge process may be executed first, or the forward merge process and the backward merge process are executed simultaneously. Time can also be shortened. However, in order to execute the forward merging process and the backward merging process at the same time, it is necessary to provide two units of the memory data search circuit 35 for the forward search and the backward search in the memory controller 12.
[0203]
The output selection unit 40 and the control logic 47 in the memory data search circuit 35 are connected to the search mode signal S.SMTo determine the operation at the time of the forward merge process and the operation at the time of the backward merge process. In particular, as described above, the operation of the output selection unit 40 is the end address during the forward merge process, and the start address during the backward merge process. However, these are not always necessary.
[0204]
That is, the output selection unit 40 outputs the end address during the forward merging process, but this may be the start address. In other words, the same result can be obtained even if the comparison is made with the start address, only for the purpose of seeking a segment located in front of the reference free area and determining whether the segment is a music area or a free area. . In this case, the system controller 11 determines whether or not there is a trash area between the searched forward segment and the reference free area. The system controller 11 uses the search part information LK fetched from the link register 44.prev, Proximity free area parts information NL1 Or nearby music area parts information NL2 Therefore, the end address of the segment in front of it can be obtained by reading the part table shown. Therefore, the reference address Nref And the end address of the preceding segment can be compared to determine whether or not a trash area exists.
[0205]
For the same reason, the output selection unit 40 may be an end address instead of a start address during the backward merge process.
That is, depending on the processing method, the operation of the output selection unit 40 is changed to the search mode signal S.SMIt is not always necessary to operate according to the above.
[0206]
The search mode signal S is similarly applied to the control logic.SMTherefore, it is not necessary to distinguish and operate.
In other words, the proximity address register 42 appropriately sets A as the initial value when the forward merge process starts.MIN Is set, and A is properly set as the initial value at the start of backward merge processing.MAX Is set, the control logic 47 sets the ADprev<ADR <ADref (That is, the latch condition at the time of forward merge processing) or ADprev> ADR > ADref If the latch control signal is output when one of the conditions (that is, the latch condition at the time of the backward merge process) is satisfied, the above-described search for the front and rear segments is realized.
[0207]
Incidentally, in the embodiment, the search part information LK is obtained from the link register 44 as the position information of the part table of the segment adjacent to the front or rear.prevHowever, this is not always necessary for the merge process of the above embodiment. That is, the temporary register 43 and the link register 44 may not be provided as the memory data search circuit 35.
[0208]
However, in actual merge processing (steps F112, F113, F212, F213) and U-TOC editing processing, the position information of the parts table for this adjacent segment is obtained by the memory data search circuit 35. Therefore, the processing can be executed efficiently.
Needless to say, the merge process is not limited to the time of erasure.
[0209]
In the above embodiment, the memory control device and the memory data search circuit are applied to the recording / reproducing device for the magneto-optical disk 1. However, the memory control device and the memory data search circuit are applied to the recording-only device and other devices. it can.
[0210]
【The invention's effect】
As described above, according to the present invention, the management information corresponding to the segment located before or after the segment on the recording medium which is the reference of the editing operation by performing the search and comparison processing of the management information (U-TOC) in the memory controller. By providing a memory data search circuit that executes an operation for discriminating the data, the data to be searched (that is, the data of the part table in the U-TOC) itself does not need to be communicated to the system controller. The time required for data communication can be eliminated, and the processing time can be significantly shortened.
[0211]
In addition, since the system controller does not need to search for adjacent segments by data comparison, there is an advantage that the processing load on the system controller is greatly reduced.
[0212]
Further, the system controller 11 sends a search mode signal S to the output selection unit 40 in the memory data search circuit 35.SMThe end address is output during forward merge processing and the start address is output during backward merge processing. By doing so, the search address can be used as it is for the determination of the presence or absence of the trash area, so that the efficiency of the process is also promoted.
[0213]
In addition, when the system controller causes the memory data search circuit to perform a search, when searching for management information corresponding to a segment positioned in front of the reference segment, the system controller sets the end address of each segment in the management information. On the other hand, when searching for management information corresponding to a segment located at the back, control is performed so that the start address of each segment in the management information is searched, so that the search address can be used as it is to determine whether there is a trash area. It can be used, and there is an effect that efficiency of processing is promoted.
[0214]
Further, as described above as the memory data search circuit, the reference data register means, the output selection means, the search data register means, the search object data position register means, the search data position register means, the first comparison means, and the second comparison By comprising the means and the update control means, there is an effect that it is possible to accurately search the segment located before or after the lead scan period and the position of the part table of the segment.
[Brief description of the drawings]
FIG. 1 is a block diagram of a recording / reproducing apparatus including a memory control device and a memory data search circuit according to an embodiment of the present invention.
FIG. 2 is a block diagram of a memory control device and a peripheral circuit unit according to the embodiment.
FIG. 3 is a block diagram of a memory data search circuit and a peripheral circuit unit according to the embodiment.
FIG. 4 is a flowchart of forward merge processing by the memory control device according to the embodiment.
FIG. 5 is an explanatory diagram of a forward merge process.
FIG. 6 is an explanatory diagram of a forward merge process.
FIG. 7 is an explanatory diagram of a forward merge process.
FIG. 8 is an explanatory diagram of a forward merge process.
FIG. 9 is a flowchart of backward merge processing by the memory control device according to the embodiment.
FIG. 10 is an explanatory diagram of a backward merge process.
FIG. 11 is an explanatory diagram of a backward merge process.
FIG. 12 is an explanatory diagram of a backward merge process.
FIG. 13 is an explanatory diagram of a backward merge process.
FIG. 14 is an explanatory diagram of P-TOC information of a disc.
FIG. 15 is an explanatory diagram of U-TOC information of a disc.
FIG. 16 is an explanatory diagram of a management form of U-TOC information of a disc.
FIG. 17 is an explanatory diagram of an address data format of P-TOC and U-TOC information of a disc.
FIG. 18 is an explanatory diagram of a disc that can be segmented and recorded.
FIG. 19 is an explanatory diagram of a track format of a disc.
FIG. 20 is an explanatory diagram of an area state of a disc.
FIG. 21 is an explanatory diagram of a management state of recording data of a disc.
FIG. 22 is an explanatory diagram of processing involved in erasing recorded data on a disc.
FIG. 23 is an explanatory diagram of processing associated with erasure of recorded data on a disc.
FIG. 24 is an explanatory diagram of U-TOC editing processing that accompanies erasure of recorded data on a disc.
[Explanation of symbols]
1 disc
3 Optical head
8 Encoder / Decoder part
11 System controller
12 Memory controller
13 Buffer RAM
14 Encoder / Decoder part
30 Disk drive interface section
31 RAM data interface
32 Voice compression interface
33 Controller interface
34 Address counter
35 Memory data search circuit
40 Output selector
41 Reference address register
42 Proximity address register
43 Temporal Register
44 Link register
45, 46 comparison part
47 Control logic

Claims (4)

記録データが記録された記録データ領域と、記録データが未記録な未記録領域と、上記記録データ領域および上記未記録領域の各々の領域の開始位置と終了位置とを管理する管理データが記録される管理データ記録領域とを備えるとともに記録データが離散的に記録できる記録媒体から所定の未記録領域に隣接する上記管理データにて管理されていない無駄領域を検索する検索回路において、
上記記録媒体に記録された管理情報をアドレス管理して記憶するメモリと、
上記所定の未記録領域の位置を検索基準として保持する基準データレジスタ手段と、
検索操作によって上記メモリから読み出されるデータから検索対象データを抽出して出力する出力選択手段と、
上記出力選択手段から出力される検索対象データを検索データとして保持することが出来る検索データレジスタ手段と、
上記出力選択手段から出力される検索対象データに基づいて検索対象データの位置情報を保持する検索対象データ位置レジスタ手段と、
上記基準データレジスタ手段に保持された基準データと上記出力選択手段から出力される検索対象データとを比較する第1の比較手段と、
上記検索データレジスタ手段に保持された検索データと上記出力選択手段から出力される検索対象データとを比較する第2の比較手段と、
上記第1と第2の比較手段の比較結果に基づいて、上記検索データレジスタ手段の検索データを更新するために上記出力選択手段から出力される検索対象データが上記検索データレジスタ手段に保持され、上記検索データ位置レジスタ手段の上記検索位置情報を更新するために上記検索対象データ位置レジスタ手段に保持された上記検索対象データ位置情報が上記検索データ位置レジスタ手段に保持されることを許可する更新制御手段と
を備える検索回路。
Management data for recording the recording data area where the recording data is recorded, the unrecorded area where the recording data is not recorded, and the start position and end position of each of the recording data area and the unrecorded area are recorded. A search circuit for searching for a useless area that is not managed by the management data adjacent to a predetermined unrecorded area from a recording medium on which the record data can be recorded discretely.
A memory for storing and managing the management information recorded on the recording medium;
Reference data register means for holding the position of the predetermined unrecorded area as a search reference;
Output selection means for extracting and outputting search target data from data read from the memory by a search operation;
Search data register means capable of holding search target data output from the output selection means as search data;
Search object data position register means for holding position information of the search object data based on the search object data output from the output selection means;
First comparison means for comparing the reference data held in the reference data register means and search target data output from the output selection means;
Second comparison means for comparing the search data held in the search data register means with the search target data output from the output selection means;
Based on the comparison result of the first and second comparison means, search object data output from the output selection means for updating the search data of the search data register means is held in the search data register means, Update control that permits the search object data position information held in the search object data position register means to be held in the search data position register means in order to update the search position information of the search data position register means And a search circuit.
上記更新制御手段は、
上記所定の未記録領域の前方に位置する無駄領域の検索の場合には、上記検索データレジスタ手段には検索対象データが備える終了位置を保持させるように制御し、
上記所定の未記録領域の後方に位置する無駄領域の検索の場合には、上記検索データレジスタ手段には検索対象データが備える開始位置を保持させるように制御する
ことを特徴とする請求項1記載の検索回路。
The update control means includes
In the case of a search for a waste area located in front of the predetermined unrecorded area, the search data register means is controlled to hold the end position of the search target data,
The search data register means controls the search data register means to hold the start position of the search target data when searching for a useless area located behind the predetermined unrecorded area. Search circuit.
上記所定の未記録領域の前方に位置する無駄領域の検索の場合には、上記第1の比較手段は上記出力手段から出力される検索対象データが備える終了位置が上記検索基準より前であるか否かを比較するとともに、上記第2の比較手段は上記検索データレジスタが保持する検索データが上記出力選択手段から出力される検索対象データが備える終了位置より前であるか否かを比較し、上記所定の未記録領域の後方に位置する無駄領域の検索の場合には、上記第1の比較手段は上記出力手段から出力される検索対象データが備える終了位置が上記検索基準より後であるか否かを比較するとともに、上記第2の比較手段は上記検索データレジスタが保持する検索データが上記出力選択手段から出力される検索対象データが備える終了位置より後であるか否かを比較する
ことを特徴とする請求項1記載の検索回路。
In the case of searching for a useless area located in front of the predetermined unrecorded area, the first comparison means determines whether the end position provided in the search target data output from the output means is before the search reference. And the second comparison unit compares whether the search data held in the search data register is before the end position included in the search target data output from the output selection unit, In the case of searching for a useless area located behind the predetermined unrecorded area, the first comparison means determines whether the end position provided in the search target data output from the output means is after the search reference. And the second comparison means is arranged so that the search data held in the search data register is after the end position included in the search target data output from the output selection means. Searching circuit according to claim 1, wherein the comparing whether.
記録データが記録された記録データ領域と、記録データが未記録な未記録領域と、上記記録データ領域および上記未記録領域の各々の領域の開始位置と終了位置とを管理する管理データが記録される管理データ記録領域とを備えるとともに記録データが離散的に記録できる記録媒体から所定の未記録領域に隣接する上記管理データにて管理されていない無駄領域を検索する記録再生装置において、
上記記録媒体から上記管理データ記録領域に記録された上記管理データを再生する再生手段と、
上記再生手段にて再生された上記記録媒体に記録された管理情報をアドレス管理して記憶するメモリと、
上記所定の未記録領域の位置を検索基準として保持する基準データレジスタ手段と、
検索操作によって上記メモリから読み出されるデータから検索対象データを抽出して出力する出力選択手段と、
上記出力選択手段から出力される検索対象データを検索データとして保持することが出来る検索データレジスタ手段と、
上記出力選択手段から出力される検索対象データに基づいて検索対象データの位置情報を保持する検索対象データ位置レジスタ手段と、
上記基準データレジスタ手段に保持された基準データと上記出力選択手段から出力される検索対象データとを比較する第1の比較手段と、
上記検索データレジスタ手段に保持された検索データと上記出力選択手段から出力される検索対象データとを比較する第2の比較手段と、
上記第1と第2の比較手段の比較結果に基づいて、上記検索データレジスタ手段の検索データを更新するために上記出力選択手段から出力される検索対象データが上記検索データレジスタ手段に保持され、上記検索データ位置レジスタ手段の上記検索位置情報を更新するために上記検索対象データ位置レジスタ手段に保持された上記検索対象データ位置情報が上記検索データ位置レジスタ手段に保持されることを許可する更新制御手段と、
上記検索データレジスタに保持された検索データに基づいて上記所定の空き領域に検索された上記所定の空き領域に隣接する無駄領域をマージして上記検索された無駄領域を消失させるように上記メモリに記憶された管理情報を編集する制御手段と、
編集された上記メモリに記憶された管理情報を上記記録媒体の管理データ記録領域に書き戻す記録手段と
を備える記録再生装置。
Management data for recording the recording data area in which the recording data is recorded, the unrecorded area in which the recording data is not recorded, and the start position and end position of each of the recording data area and the unrecorded area are recorded. A recording / reproducing apparatus that searches for a useless area that is not managed by the management data adjacent to a predetermined unrecorded area from a recording medium on which the recorded data can be discretely recorded.
Reproducing means for reproducing the management data recorded in the management data recording area from the recording medium;
A memory for managing and storing management information recorded on the recording medium reproduced by the reproducing means;
Reference data register means for holding the position of the predetermined unrecorded area as a search reference;
Output selection means for extracting and outputting search target data from data read from the memory by a search operation;
Search data register means capable of holding search target data output from the output selection means as search data;
Search object data position register means for holding position information of the search object data based on the search object data output from the output selection means;
First comparison means for comparing the reference data held in the reference data register means and search target data output from the output selection means;
Second comparison means for comparing the search data held in the search data register means with the search target data output from the output selection means;
Based on the comparison result of the first and second comparison means, search object data output from the output selection means for updating the search data of the search data register means is held in the search data register means, Update control that permits the search object data position information held in the search object data position register means to be held in the search data position register means in order to update the search position information of the search data position register means Means,
Based on the search data held in the search data register, the memory is arranged to merge the useless areas adjacent to the specified empty area searched for in the predetermined empty area so as to erase the searched useless area. Control means for editing the stored management information;
A recording / reproducing apparatus comprising recording means for rewriting the edited management information stored in the memory in the management data recording area of the recording medium.
JP2002226580A 2002-08-02 2002-08-02 Recording / reproducing apparatus and search circuit Expired - Fee Related JP3669350B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002226580A JP3669350B2 (en) 2002-08-02 2002-08-02 Recording / reproducing apparatus and search circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002226580A JP3669350B2 (en) 2002-08-02 2002-08-02 Recording / reproducing apparatus and search circuit

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP11930293A Division JP3353381B2 (en) 1993-04-23 1993-04-23 Recording and playback device

Publications (2)

Publication Number Publication Date
JP2003196962A JP2003196962A (en) 2003-07-11
JP3669350B2 true JP3669350B2 (en) 2005-07-06

Family

ID=27606605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002226580A Expired - Fee Related JP3669350B2 (en) 2002-08-02 2002-08-02 Recording / reproducing apparatus and search circuit

Country Status (1)

Country Link
JP (1) JP3669350B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9600183B2 (en) * 2014-09-22 2017-03-21 Intel Corporation Apparatus, system and method for determining comparison information based on memory data

Also Published As

Publication number Publication date
JP2003196962A (en) 2003-07-11

Similar Documents

Publication Publication Date Title
JP3353381B2 (en) Recording and playback device
KR100342118B1 (en) Recording method and apparatus for recording medium
KR100284921B1 (en) Disc recording and playback device
JPH06309106A (en) Recording or reproducing device and memory controller
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.
JPH07326175A (en) Recording/reproducing apparatus
JPH0696559A (en) Recording device
US5897652A (en) Memory control device and address generating circuit
JP3669350B2 (en) Recording / reproducing apparatus and search circuit
JP3617107B2 (en) Recording or playback device
JP3433759B2 (en) Recording position acquisition device
JP3538858B2 (en) Recording / reproducing apparatus and recording / reproducing method
JP3711991B2 (en) Recording device
JP3541785B2 (en) Recording / reproducing apparatus and recording / reproducing method
JP3794069B2 (en) Editing device
JP3444277B2 (en) Playback device
JP3297936B2 (en) Playback device
JPH08297956A (en) Recorder
JP3735987B2 (en) Editing device
JP3584551B2 (en) Recording apparatus, reproducing apparatus, recording method and reproducing method
JPH0945052A (en) Recorder
JPH09153270A (en) Management information updating device
JPH08235834A (en) Recording and reproducing device
JPH08329659A (en) Management information renewal device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050310

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050322

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050404

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080422

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090422

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090422

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100422

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees