JPH02285719A - Buffer memory circuit - Google Patents

Buffer memory circuit

Info

Publication number
JPH02285719A
JPH02285719A JP1106918A JP10691889A JPH02285719A JP H02285719 A JPH02285719 A JP H02285719A JP 1106918 A JP1106918 A JP 1106918A JP 10691889 A JP10691889 A JP 10691889A JP H02285719 A JPH02285719 A JP H02285719A
Authority
JP
Japan
Prior art keywords
data
buffer
audio data
read
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1106918A
Other languages
Japanese (ja)
Other versions
JP2850366B2 (en
Inventor
Toshito Uchiyama
俊人 内山
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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP1106918A priority Critical patent/JP2850366B2/en
Publication of JPH02285719A publication Critical patent/JPH02285719A/en
Application granted granted Critical
Publication of JP2850366B2 publication Critical patent/JP2850366B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To reduce the storage capacity of a buffer memory without causing any hindrance for consecutive readout by writing an audio data of one sector's share while one block data written just before is read. CONSTITUTION:When an audio data of one sector's share is fed to a write circuit 2a of a readout/write control circuit 2, the data is sequentially written in an address of buffers A, B of a work RAM 1. When the data of one sector's share is written, a readout signal is fed to a readout circuit 2b and the data in the buffers A, B is sequentially read out. A detection circuit 2c measures the readout elapsed time by the circuit 2b, detects a point of time when a half the capacity of the buffer A or B is read, supplies a write signal to the circuit 2a and the succeeding one block data is written to an area whose data is finished for readout. Thus, the storage capacity is reduced without causing any hindrance to the consecutive readout.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、例えばCD−1(コンパクト・ディスク・
インタラクティブ)等から読出されるADPCMデータ
をPCMデータにデコードする際に用いて好適なバッフ
ァメモリ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" This invention is applicable to, for example, CD-1
The present invention relates to a buffer memory circuit suitable for use when decoding ADPCM data read from a computer such as an interactive computer into PCM data.

「従来の技術」 CD−1のリアルタイムファイルは、オーディオデータ
、ビデオデータ、およびプログラムをインターリーブし
てディスク上に配置したファイルであり、再生はそれぞ
れのデータの同期をとって行われる。このリアルタイム
ファイルの中には、PCMデータを1/2.1/4.1
/8.1/16に圧縮したリアルタイム再生用のADP
CMデータも含まれている。
"Prior Art" A real-time file on a CD-1 is a file in which audio data, video data, and a program are interleaved and arranged on a disc, and playback is performed by synchronizing each data. This real-time file contains PCM data of 1/2.1/4.1
/8. ADP for real-time playback compressed to 1/16
CM data is also included.

ここで、PCMデータを圧縮したADPCMデータが、
正しくリアルタイム処理されるように、データブロック
をディスク上のセクタにインターリーブ配置した場合の
データの状態を第5図に示す。図示の「*」の記号は、
オーディオデータが入っている位置を示しており、「・
」の記号は、インターリーブにより他のデータ(例えば
、ビデオデータ、プログラムデータ等)を入れることが
できる位置を示している。また、第6図にはCD−Iデ
ィスク上のオーディオデータのデータ量と再生時間との
関係を示しである。このCD−1デイスク上のインター
リーブされたオーディオデータを再生する場合、オーデ
ィオデータの再生時間は、図示のようにオーディオデー
タコントローラへの転送レート(読出し時間)より長く
なる。このためCD−1システムでは、ディスクから供
給されるオーディオデータにタイミングを合わせて再生
しないと、データが失われたり、再生音に隙間が生じる
。したがって、実際に、圧縮されたオーディオデータを
リアルタイムで連続再生するためには、オーディオデー
タを一時記憶してお(バッファメモリを1セクタ分以上
用意し、現在再生中のオーディオデータと次に再生する
オーディオデータとを一時記憶しておく必要がある。
Here, ADPCM data compressed from PCM data is
FIG. 5 shows the state of data when data blocks are interleaved in sectors on the disk so that they can be processed in real time correctly. The symbol “*” shown in the diagram is
Indicates the location where the audio data is stored.
” indicates a position where other data (eg, video data, program data, etc.) can be inserted by interleaving. Further, FIG. 6 shows the relationship between the amount of audio data on a CD-I disc and the playback time. When reproducing the interleaved audio data on the CD-1 disc, the reproduction time of the audio data is longer than the transfer rate (reading time) to the audio data controller as shown in the figure. For this reason, in the CD-1 system, if the audio data supplied from the disc is not reproduced in synchronization with the timing, data may be lost or gaps may occur in the reproduced sound. Therefore, in order to actually play back compressed audio data continuously in real time, it is necessary to temporarily store the audio data (prepare a buffer memory of one sector or more, and store the audio data currently being played and the next one). It is necessary to temporarily store the audio data.

そこで、通常考えられるCD−1システムでは、2セク
タ分のオーディオデータを記憶する第1、第2のバッフ
ァメモリが用いられ、これらの第1.第2のバッファメ
モリにCD−1デイスクからのオーディオデータがセク
タ単位で書き込まれる。
Therefore, in a conventional CD-1 system, first and second buffer memories are used to store two sectors worth of audio data, and these first and second buffer memories are used to store two sectors worth of audio data. Audio data from the CD-1 disc is written sector by sector into the second buffer memory.

この場合、まず、第1のバッファメモリに1セクタ分の
オーディオデータが書き込まれる。次に、第1のバッフ
ァメモリ内のオーディオデータが読出されて再生される
。この第1のバッファメモリの再生時に、第2のバッフ
ァメモリへ次のオーディオデータが書き込まれる。この
第1のバッファメモリの再生が終了すると、引き続き第
2のバッファメモリのオーディオデータが読出されて再
生される。また、この第2のバッファメモリの再生時に
、既に再生が終了した第1のバッファメモリへ次のセク
タのオーディオデータが書き込まれる。
In this case, first, one sector worth of audio data is written into the first buffer memory. The audio data in the first buffer memory is then read out and played back. When the first buffer memory is played back, the next audio data is written to the second buffer memory. When the reproduction of the first buffer memory is completed, the audio data of the second buffer memory is subsequently read out and reproduced. Furthermore, when playing back the second buffer memory, the next sector of audio data is written into the first buffer memory whose playback has already been completed.

そして、第2のバッファメモリの再生が終了すると、上
述した第1のバッファメモリのオーディオデータが再生
される。この第1のバッファメモリの再生時に、さらに
次のセクタのオーディオデータが第2のバッファメモリ
へ書き込まれる。このように一方のバッファメモリのオ
ーディオデータが再生されている間に、他方のバッファ
メモリに次のオーディオデータを書き込み、オーディオ
データを待機させることで連続再生を可能にしている。
When the reproduction of the second buffer memory is completed, the audio data of the first buffer memory described above is reproduced. During reproduction of the first buffer memory, audio data of the next sector is further written to the second buffer memory. In this way, while the audio data in one buffer memory is being played back, the next audio data is written in the other buffer memory and the audio data is put on standby, thereby enabling continuous playback.

「発明が解決しようとする課題」 ところで、上述したバッファメモリ回路では、2セクタ
分のバッファメモリを必要とするため、メモリ容量が太
き(、部品点数が多くなり、かつ、当該バッファメモリ
回路の占有面積が大きくなるという問題を生じる。
"Problems to be Solved by the Invention" By the way, the buffer memory circuit described above requires two sectors of buffer memory, so the memory capacity is large (and the number of parts is large, and the buffer memory circuit is A problem arises in that the occupied area becomes large.

この発明は、上述の問題点に鑑みてなされたもので、 
メモリ容量を小さくすることができるバッファメモリ回
路を提供することを目的としている。
This invention was made in view of the above-mentioned problems.
It is an object of the present invention to provide a buffer memory circuit whose memory capacity can be reduced.

「課題を解決するための手段」 このような問題点を解決するために、この発明では圧縮
ブロックデータを−Hバッファメモリに書き込み、当該
圧縮ブロックデータを順次読出して出力するにあたり、
読出し完了以前に次の圧縮ブロックデータを書き込むよ
うに構成されたバッファメモリ回路において、 1ブロックの圧縮ブロックデータを書き込むのに要する
時間Wで読出せるデータ量に1ブロックのデータ量を加
えた分のデータを記憶するバッファメモリ手段と、 このバッファメモリ手段に直前に書き込まれたlブロッ
クデータを時間Rで順次読出してい(読出制御部と、こ
の読出制御部による読出開始から時間(R−W)だけ経
過したことを検出する検出部と、この検出部の出力信号
に応じ、前記バッファメモリ手段上に現在読出し中の1
ブロックデータのうち、まだ読出しが完了していない領
域以外の部分を次なる1ブロックデータの書込領域とし
て割り付け、この書込領域に次の1ブロックデータを順
次書き込む書込制御部とからなる読出書込制御手段とを
具備することを特徴とする。
"Means for Solving the Problems" In order to solve these problems, the present invention writes compressed block data to a -H buffer memory, reads out the compressed block data sequentially, and outputs the data.
In a buffer memory circuit configured to write the next compressed block data before the reading is completed, the amount of data that can be read in the time W required to write one block of compressed block data plus the data amount of one block is A buffer memory means for storing data, and l block data written immediately before in this buffer memory means are sequentially read out at a time R (a read control unit and a time (R-W) from the start of reading by this read control unit). a detecting section for detecting the elapsed time; and a detecting section for detecting the elapsed time;
A read system consisting of a write control unit that allocates a portion of the block data other than the area for which reading has not yet been completed as a write area for the next block of data, and sequentially writes the next block of data to this write area. It is characterized by comprising a write control means.

「作用」 1ブロックデータを書き込むのに要する時間Wで読出せ
るデータ量に、lブロックのデータ量を加えた分のAD
PCMデータを記憶するバッファメモリ手段を用意し、 ■読出制御部によってバッファメモリ手段に直前に書き
込まれたlブロックデータを時間Rで読出す。この際、
■読出制御部による読出開始からの時間が所定の時間(
R−W)だけ経過したことを検出部によって検出する。
"Effect" AD equal to the amount of data that can be read in the time W required to write one block data plus the amount of data for one block.
A buffer memory means for storing PCM data is prepared, and 1 block data written immediately before in the buffer memory means is read out at a time R by a read control section. On this occasion,
■The time from the start of reading by the reading control unit is a predetermined time (
The detection unit detects that the time period R−W) has elapsed.

そして、■この検出部の出力信号に基づき、書込制御部
によって前記バッファメモリ手段上に、現在読出し中の
1ブロックデータのうち、まだ読出しが完了していない
領域以外の部分を次なる1ブロックデータの書込領域と
して割り付け、この書込領域に次の1ブロックデータを
書き込む。
Based on the output signal of the detection section, the write control section transfers the data of one block of data currently being read to the next one block onto the buffer memory means, except for the area where the reading has not yet been completed. It is allocated as a data write area, and the next one block data is written in this write area.

このように上述した■〜■の動作をタイミングを取りな
がらデータがな(なるまで繰り返す。
In this way, the operations ① to ② described above are repeated while taking proper timing until the data is exhausted.

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

第1図は、この発明の一実施例の構成を示すブロック図
である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

この図において、■はオーディオデータを一時記憶する
ワークRAMであり、これがデータ復号用のバッファメ
モリに該当する。この場合、オーディオデータの連続再
生を行おうとする場合は、以下の点に注意する必要があ
る。
In this figure, ■ is a work RAM that temporarily stores audio data, and corresponds to a buffer memory for data decoding. In this case, when attempting to continuously reproduce audio data, it is necessary to pay attention to the following points.

(1)1セクタ分の再生が終わる前に、次のセクタのオ
ーディオデータをバッファメモリに書き込む。
(1) Before the reproduction of one sector is finished, the next sector of audio data is written to the buffer memory.

(2)読出しが終わっていないオーディオデータの書か
れているメモリ領域に新たなオーディオデータを書き込
んではならない。
(2) New audio data must not be written to a memory area in which audio data has not yet been read.

上述の(1)、 (2)の条件から、ワークRAMIの
記憶容量は、1セクタ分書き込むのに要する時間を時間
Wとすれば、この時間Wで読出し可能なデータ量と1セ
クタ分のデータ量とを足した分だけ必要となる。
From the conditions (1) and (2) above, the storage capacity of the work RAMI is the amount of data that can be read in this time W and the data for one sector, assuming that the time required to write one sector is time W. Only the amount required is the sum of the amount.

ここで、書き込みに要する時間Wは、以下に示す(i)
、(ii)の時間の合計になる。
Here, the time W required for writing is shown below (i)
, (ii).

(i)  検出回路2cからの信号s1が書込回路2a
に供給されてから、実際にオーディオデータを書き込み
に行くまでのc pu(中央処理装置)の処理時間。
(i) Signal s1 from detection circuit 2c is sent to write circuit 2a
Processing time of CPU (Central Processing Unit) from when audio data is supplied to when audio data is actually written.

(ii)  DAM(ダイレクト・アクセス・メモリ)
等によってオーディオデータを転送する時間。
(ii) DAM (Direct Access Memory)
Time to transfer audio data by etc.

ところで、第5図に示す各レベルに対して書き込み時間
Wが同じ場合、lセフタ分のオーディオデータの読出し
時間Rに対して書き込み時間Wが一番かかる(書き込み
時間Wに余裕がない)のは、読出し時間の一番短いレベ
ルAステレオの時である。この実施例では、CD−Iデ
ィスクから1セクタ分のオーディオデータの読出す時間
はl/75秒であり、上記レベルAステレオの再生時間
Rは上述した理由により2/75秒かかる。また、CD
−1では、1775秒以内にオーディオデータをADP
CMデコーダに送り込まなければならない。したがって
、書き込み時間Wで読出せるデータ量を記憶させるのに
必要なバッファメモリの記憶容量は、最低0.5セクタ
分必要となる。
By the way, if the writing time W is the same for each level shown in FIG. , for level A stereo, which has the shortest readout time. In this embodiment, the time to read one sector of audio data from a CD-I disc is 1/75 seconds, and the level A stereo playback time R takes 2/75 seconds for the reasons described above. Also, CD
-1, the audio data is ADP within 1775 seconds.
It must be sent to the CM decoder. Therefore, the storage capacity of the buffer memory required to store the amount of data that can be read in the write time W is at least 0.5 sectors.

以上の結果、ワークRAMIの記憶容量は1゜5セクタ
分あればよい。したがって、ワークRAM1は、第2図
に示すように物理的サイズが相対アドレス「0」からr
3455Jまでの1.5セクタ分の記憶容量があり、ア
ドレス「0」〜「2303」までをバッファA1アドレ
ス「0」〜「1151」とアドレスr2304J〜r3
455JとをバッファBとする。この場合、アドレス「
0」〜rl151Jは、バッファAとバッファBとで共
用するようになっている。また、このワークRAMIは
、オーディオデータの書き込みと読出しを同時に行える
ようになっている。ただし、1つのバッファに対して同
時に書き込みと読出しを行うことはできず、バッファA
が書き込み側になっている場合には、バッファBは読出
し側になっており、反対にバッファAが読出し側になっ
ている場合には、バッファBは書き込み側になっている
As a result of the above, the storage capacity of the work RAMI only needs to be 1.5 sectors. Therefore, the work RAM 1 has a physical size ranging from relative address "0" to r as shown in FIG.
It has a storage capacity of 1.5 sectors up to 3455J, and addresses "0" to "2303" are stored in buffer A1 addresses "0" to "1151" and addresses r2304J to r3.
455J is designated as buffer B. In this case, the address "
0'' to rl151J are shared by buffer A and buffer B. Further, this work RAMI is designed to be able to simultaneously write and read audio data. However, it is not possible to write and read to one buffer at the same time, and buffer A
When buffer B is on the write side, buffer B is on the read side, and conversely, when buffer A is on the read side, buffer B is on the write side.

2は読出書込制御回路であり、書込回路2 a +読出
回路2b、および検出回路2Cから構成されている。書
込回路2aは、ワークRAMIの書き込み用アドレスを
発生し、この書き込み用アドレスに基づいてワークRA
MIに1セクタ分のオーディオデータを時間Wで書き込
むようになっている。読出回路2bは、ワークRAMI
の読出し用アドレスを発生し、この読出し用アドレスに
基づきワークRAMIから1セクタ分のオーディオデー
タを時間Rで読出して、ADPCMデコーダ3に供給す
るようになっている。検出回路2Cは、読出回路2bの
読出開始から時間(R−W)だけ経過したことを検出し
、信号S1を書込回路2aに供給するようになっている
。上記読出回路2bによって読出されたオーディオデー
タは、ADPCMデコーダ3に供給されるようになって
いる。
Reference numeral 2 denotes a read/write control circuit, which is composed of a write circuit 2 a +read circuit 2 b, and a detection circuit 2C. The write circuit 2a generates a write address for the work RAMI, and writes the work RAMI based on the write address.
One sector worth of audio data is written to MI in time W. The read circuit 2b is a work RAMI.
Based on this read address, one sector worth of audio data is read from the work RAMI in time R and supplied to the ADPCM decoder 3. The detection circuit 2C detects that the time (R-W) has elapsed since the start of reading by the reading circuit 2b, and supplies the signal S1 to the writing circuit 2a. The audio data read out by the reading circuit 2b is supplied to the ADPCM decoder 3.

ADPCMデコーダ3では、オーディオデータがPCM
データに変換され、必要に応じてデジタルフィルタ(図
示路)等を介してD/A変換器(図示路)に供給される
ようになっている。PCMデータは、D/A変換器によ
ってアナログ信号に変換されるようになっている。
The ADPCM decoder 3 converts the audio data into PCM
The data is converted into data and supplied to a D/A converter (path shown) via a digital filter (path shown) as necessary. PCM data is converted into an analog signal by a D/A converter.

次に第3図に示すタイミングチャートを参照して上記構
成によるこの実施例の動作について説明する。
Next, the operation of this embodiment with the above configuration will be explained with reference to the timing chart shown in FIG.

まず、CD−Iディスクから1セクタ分のオーディオデ
ータが書込回路2aに供給される。書込回路2aでは、
時刻1.においてWRITE信号がワークRAMIに出
力されるとともに、「0」〜r2303Jのアドレスデ
ータが生成される。
First, one sector worth of audio data is supplied from the CD-I disc to the writing circuit 2a. In the write circuit 2a,
Time 1. At this point, the WRITE signal is output to the work RAMI, and address data from "0" to r2303J is generated.

そして、上記l上22分のオーディオデータは、この書
込回路2aによって上記アドレスデータに基づきバッフ
ァAに書き込まれる。
Then, the audio data for the first 22 minutes is written into the buffer A by the write circuit 2a based on the address data.

バッファAへの1セクタ分のオーディオデータの書き込
みが終了すると、時刻t3において読出回路2bにRE
AD  A信号が供給される。これにより第1回目のバ
ッファA、Bの切り換えが生ずる。すなわち、第1回目
のバッファ切り換えタイミングは、バッファAまたはB
に1セクタ分のデータの書き込みが終了した時点に生ず
る。READ  A信号が供給された読出回路2bでは
、「0」からr2303Jまでのアドレスデータが生成
される。このアドレスデータに基づいて、読出回路2b
によってバッファAのオーディオデータが再生時間に合
わせて順次読出されるとともに、ADPCMデコーダ3
に供給される。
When writing of one sector worth of audio data to buffer A is completed, RE is sent to readout circuit 2b at time t3.
AD A signal is provided. This causes the first switching between buffers A and B. In other words, the first buffer switching timing is for buffer A or B.
This occurs when writing of one sector worth of data is completed. The read circuit 2b supplied with the READ A signal generates address data from "0" to r2303J. Based on this address data, read circuit 2b
The audio data in buffer A is sequentially read out according to the playback time, and the ADPCM decoder 3
supplied to

また、検出回路2Cでは上記読出回路2bによる読出開
始時刻t、からの時間経過の計測が行われる。この実施
例では、具体的にはアドレスが「1152」になる時点
、すなわちバッファAの(1−0,5)分が読出し完了
した時点を検出することで実現しているが、これは別途
タイマ等を設け、これにより計測するようにしてもよい
ことは勿論である。そして、時刻t4において、すなわ
ち読出開始時刻t3から時間(R−W)だけ経過すると
、検出回路2Cから書込回路2aに信号Slが供給され
る。この場合、データの読出し動作は、アドレスrl1
52Jまできており、ワークRAM1には、1セクタ分
の書き込み可能な領域が確保される。上記信号S1が供
給された書込回路2aでは、時刻t、においてWRIT
E信号がワークRAMIに出力されるとともに、時刻t
、〜t8にかけて、次のセクタのオーディオデータがア
ドレス「0」〜N15Nとアドレスr2304J〜r3
455Jとに172セクタづつ分割されて書き込まれる
。この書込回路2aによる書き込み動作は、上述した読
出回路2bによる読出し動作と並行して行われる。
Furthermore, the detection circuit 2C measures the passage of time from the reading start time t by the reading circuit 2b. In this embodiment, this is specifically achieved by detecting the point in time when the address becomes "1152", that is, the point in time when reading (1-0,5) of buffer A is completed, but this is achieved using a separate timer. Of course, it is also possible to provide a device such as the above and perform measurement using this. Then, at time t4, that is, when time (R-W) has elapsed from read start time t3, signal Sl is supplied from detection circuit 2C to write circuit 2a. In this case, the data read operation is performed at address rl1.
52J, and a writable area for one sector is secured in the work RAM 1. In the write circuit 2a to which the signal S1 is supplied, WRIT is executed at time t.
The E signal is output to the work RAMI, and the time t
, to t8, the audio data of the next sector is at address "0" to N15N and address r2304J to r3.
The data is divided into 455J and 172 sectors each and written. The write operation by the write circuit 2a is performed in parallel with the read operation by the read circuit 2b described above.

次に、時刻t、において、読出し回路2bにREAD 
 B信号が供給される。これにより第2回目のバッファ
の切り換えが生じる。すなわち、第2回目以降のバッフ
ァ切換タイミングは、バッファAまたはBの1セクタ分
のデータの読出しが終了した時点に生ずる。このように
して、読出回路2bによるオーディオデータの読出し動
作が終了すると、引き続き時刻t、からバ・ノファBに
割り当てられているアドレスrOJ〜rl151Jとア
ドレスr2304J〜r3455Jとに書き込まれてい
るオーディオデータが読出回路2bによって順次読出さ
れるとともに、ADPCMデコーダ3に供給される。
Next, at time t, the readout circuit 2b receives READ.
A B signal is supplied. This causes a second buffer switch. That is, the second and subsequent buffer switching timings occur at the time when reading of one sector worth of data from buffer A or B is completed. In this way, when the readout operation of the audio data by the readout circuit 2b is completed, the audio data written in the addresses rOJ to rl151J and addresses r2304J to r3455J assigned to Ba Nofa B from time t onward are read out. The readout circuit 2b sequentially reads out the signals and supplies them to the ADPCM decoder 3.

また、検出回路2cでは上記読出回路2bによる読出開
始時刻t7からの時間経過の計測(具体的には読出しア
ドレスの値の検出)が行われる。
Further, the detection circuit 2c measures the passage of time from the read start time t7 by the read circuit 2b (specifically, detects the value of the read address).

そして、時刻t8において、すなわち読出開始時刻t7
から時間(R−W)分だけ経過すると、検出回路2Cか
ら書込回路2aに信号S1が供給される。書込回路2a
では、時刻tllにおいてWRITE信号がワークRA
MIに出力されるとともに、時刻t、〜tooにかけて
、次のセクタのオーディオデータがバッファAに割り当
てられているアドレス「0」〜r2303Jに書き込ま
れる。
Then, at time t8, that is, reading start time t7
When the time (R-W) has elapsed, the signal S1 is supplied from the detection circuit 2C to the write circuit 2a. Write circuit 2a
Then, at time tll, the WRITE signal is sent to work RA.
At the same time as being output to MI, the audio data of the next sector is written to addresses "0" to r2303J assigned to buffer A from time t to too.

そして、時刻tllにおいて、読出回路2bによるバッ
ファBの読出し動作が終了すると、読出回路2bによっ
てバッファAのオーディオデータが引き続き読出される
とともに、ADPCMデコーダ3に供給される。
Then, at time tll, when the reading operation of the buffer B by the reading circuit 2b is completed, the audio data of the buffer A is continuously read by the reading circuit 2b and is supplied to the ADPCM decoder 3.

このように、最初のオーディオデータをバッファ八に書
き込むと、次のオーディオデータはバッファBに書き込
まれ、さらに、次のセクタのオーディオデータはバッフ
ァAに書き込まれるというように、バッファA→バッフ
ァB→バッファA→バッファB・・・・・・とオーディ
オデータが無くなるまで書き込みが繰り返される。また
、書き込みと同様に、読出しについてもバッファA→バ
ッファB→バッファA→バッファB・・・・・・と繰り
返される。
In this way, when the first audio data is written to buffer 8, the next audio data is written to buffer B, and the next sector of audio data is written to buffer A, and so on. Buffer A → Buffer B → Writing is repeated from buffer A to buffer B... until there is no audio data left. Further, in the same way as writing, reading is repeated in the order of buffer A→buffer B→buffer A→buffer B, and so on.

次に、この発明の第2の実施例について説明をする。な
お、この実施例の電気的な構成は、第1図に示す第1の
実施例と同様である。
Next, a second embodiment of the invention will be explained. The electrical configuration of this embodiment is the same as that of the first embodiment shown in FIG.

第4図は、この実施例のワークRAMの論理的構成を説
明するための概念図である。この図において、ワークR
AMIは、物理的サイズが相対アドレス「0」からr3
455Jまで1.5セクタ分あり、アドレス「0」〜r
l151JまでをバッファAとバッファBとで共用し、
アドレスN152」〜r2303JまでをバッファAと
バッファCとで共用し、アドレスr2304J〜[34
55」までをバッファBとバッファCとで共用するよう
になっている。
FIG. 4 is a conceptual diagram for explaining the logical configuration of the work RAM of this embodiment. In this figure, workpiece R
AMI has physical size from relative address "0" to r3
There are 1.5 sectors up to 455J, addresses "0" to r
Up to l151J are shared between buffer A and buffer B,
Addresses N152'' to r2303J are shared by buffer A and buffer C, and addresses r2304J to [34
55'' are shared by buffer B and buffer C.

上記構成によれば、まず、バッファAに最初の1セクタ
分のオーディオデータが書込回路2aによって書き込ま
れる。そして、上記バッファAのオーディオデータが読
出回路2bによって、順次読出され、この読出しがオー
ディオデータの前半部分■の最終部分、すなわちアドレ
スrl151Jまで(ると、次の1セクタ分のオーディ
オデータがバッファBに書き込まれる。この場合のオー
ディオデータは、図示のようにバッファAのオーディオ
データの後半部分■に連続するようにバッファBに書き
込まれる。
According to the above configuration, first, the first sector worth of audio data is written into the buffer A by the write circuit 2a. Then, the audio data in the buffer A is sequentially read out by the readout circuit 2b, and this readout reaches the final part of the first half (2) of the audio data, that is, the address rl151J (then, the next one sector worth of audio data is read out from the buffer B In this case, the audio data is written into buffer B so as to be continuous with the second half of the audio data in buffer A, as shown in the figure.

次に、上述したバッファAのオーディオデータが全て読
出されると、引き続き読出回路2bによってバッファB
のオーディオデータの前半部分■。
Next, when all the audio data in the buffer A mentioned above is read out, the reading circuit 2b continues to read out the audio data in the buffer B.
■ The first half of the audio data.

■が順次読出される。そして、この読出しがバッファB
のオーディオデータ前半部分■の最終部分、すなわちア
ドレスr3455Jまでくると、次の1セクタ分のオー
ディオデータがバッファCに書き込まれる。この場合も
バッファBと同様に、バッファBのオーディオデータの
後半部分■に連続するように書き込まれる。
(2) are read out sequentially. Then, this read is performed in buffer B.
When the last part of the first half of the audio data (2) reaches the address r3455J, the next one sector of audio data is written to the buffer C. In this case as well, as with buffer B, the second half of the audio data in buffer B is written in a continuous manner.

そして、上述のバッファAからバッファBへの読出し動
作の引き継ぎと同様に、バッファBのオーディオデータ
が全て読出されると、引き続き読出回路2bによってバ
ッファCのオーディオデータが読出される。
Then, similar to the above-described transfer of the read operation from buffer A to buffer B, when all the audio data in buffer B is read out, the audio data in buffer C is subsequently read out by the readout circuit 2b.

次に、読出し動作がバッファCのオーディオデータ前半
部分■の最終部分までくると、再びバ。
Next, when the read operation reaches the final part of the first half of the audio data in buffer C, the process starts again.

ファAに次の1セクタ分のオーディオデータが書き込ま
れる。以下同様に、読出し動作と書き込み動作とがバッ
ファA→バッファB→バッファC→バッファA・・・・
・・と繰り返される。
The next one sector worth of audio data is written to file A. Similarly, read operation and write operation are performed from buffer A → buffer B → buffer C → buffer A, etc.
...is repeated.

このように、この実施例では、オーディオデータがワー
クRAM1のアドレス「0」から「3455」へリング
形式に書き込まれるという特徴がある。したがって、書
込回路2aおよび読出回路2bによって発生されるアド
レスデータは、「0〜3455.0〜3455.・・・
・・・」と単純連続パタ−ンでよく、ハードウェアまた
はソフトウェアの負担が軽減される。
As described above, this embodiment is characterized in that audio data is written in a ring format from addresses "0" to "3455" of the work RAM 1. Therefore, the address data generated by the write circuit 2a and the read circuit 2b is "0-3455.0-3455. . .
A simple continuous pattern such as "..." is sufficient, and the burden on hardware or software is reduced.

なお、上述した第1および第2の実施例において、l/
2セクタ分のオーディオデータを読出したときに、次の
1セクタ分のオーディオデータを書き込むようにしたた
め、連続読出しに支障をきたすことなく、ワークRAM
Iの記憶容量を25%小さ(することができる利点が得
られる。また、バッファメモリへのオーディオデータの
書き込み時間Wがもっと短い場合には、ワークRAMI
の記憶容量は1.5セクタ分よりさらに小さくしてもよ
い。また、ワークRAMIの記憶容量を1゜5セクタ分
以上用意して、各バッファメモリに対応させれば、書き
込み時間Wに余裕ができ、CPU等の速度が遅いCD−
1システムにも有効である。
Note that in the first and second embodiments described above, l/
When two sectors worth of audio data are read, the next one sector worth of audio data is written, so that the work RAM is
This has the advantage of reducing the storage capacity of I by 25%.Also, if the writing time W of audio data to the buffer memory is shorter, the work RAMI
The storage capacity of may be even smaller than 1.5 sectors. In addition, if you prepare a work RAMI with a storage capacity of 1.5 sectors or more and make it compatible with each buffer memory, you can have more margin in the writing time W, and you can use it for CD-ROMs with slow CPUs, etc.
It is also effective for one system.

「発明の効果」 以上説明したように、この発明によれば、バッファメモ
リ手段に直前に書き込まれた1ブロックデータを読出す
際に、当該バッファメモリ手段に1セクタ分のADPC
Mデータを書き込める領域が確保された時点で、次の1
セクタ分のADPCMデータを書き込むことで、連続読
出しに支障をきたすことなく、バッファメモリ手段の記
憶容量を小さくすることができる利点が得られる。
"Effects of the Invention" As explained above, according to the present invention, when reading one block of data written immediately before in the buffer memory means, one sector worth of ADPC is stored in the buffer memory means.
As soon as the area where M data can be written is secured, the next 1.
Writing a sector's worth of ADPCM data has the advantage that the storage capacity of the buffer memory means can be reduced without interfering with continuous reading.

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

第1図は、この発明の一実施例の構成を示すブロック図
、第2図は同実施例のバッファメモリの構成を説明する
ための概念図、第3図は同実施例の動作を説明するため
のタイミングチャート図、第4図は、この発明の第2の
実施例のバッファメモリの構成を説明するための概念図
、第5図はオーディオデータをインターリーブ配置した
場合のディスク上の状態を示す図表、第6図はディスク
上のオーディオデータと再生音の時間関係を説明するた
めのタイミング図である。 1・・・・・・ワークRAM(バッファメモリ手段)、
2・・・・・・読出書込制御回路(読出書込制御手段)
、2a・・・・・・書込回路(書込制御部)、 2b・
・・・・・読出回路(読出制御部)、2c・・・・・・
検出回路(検出部)。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a conceptual diagram illustrating the configuration of a buffer memory of the embodiment, and FIG. 3 explains the operation of the embodiment. FIG. 4 is a conceptual diagram for explaining the configuration of the buffer memory of the second embodiment of the present invention, and FIG. 5 shows the state on the disk when audio data is arranged in an interleaved manner. FIG. 6 is a timing chart for explaining the time relationship between audio data on a disc and reproduced sound. 1... Work RAM (buffer memory means),
2... Read/write control circuit (read/write control means)
, 2a...Write circuit (write control section), 2b.
...readout circuit (readout control section), 2c...
Detection circuit (detection section).

Claims (1)

【特許請求の範囲】 圧縮ブロックデータを一旦バッファメモリに書き込み、
当該圧縮ブロックデータを順次読出して出力するにあた
り、読出し完了以前に次の圧縮ブロックデータを書き込
むように構成されたバッファメモリ回路において、 1ブロックの圧縮ブロックデータを書き込むのに要する
時間Wで読出せるデータ量に1ブロックのデータ量を加
えた分のデータを記憶するバッファメモリ手段と、 このバッファメモリ手段に直前に書き込まれた1ブロッ
クデータを時間Rで順次読出していく読出制御部と、こ
の読出制御部による読出開始から時間(R−W)だけ経
過したことを検出する検出部と、この検出部の出力信号
に応じ、前記バッファメモリ手段上に現在読出し中の1
ブロックデータのうち、まだ読出しが完了していない領
域以外の部分を次なる1ブロックデータの書込領域とし
て割り付け、この書込領域に次の1ブロックデータを順
次書き込む書込制御部とからなる読出書込制御手段とを
具備することを特徴とするバッファメモリ回路。
[Claims] Once compressed block data is written to a buffer memory,
When sequentially reading and outputting the compressed block data, in a buffer memory circuit configured to write the next compressed block data before the reading is completed, data that can be read in the time W required to write one block of compressed block data. buffer memory means for storing data equal to the amount of data plus one block of data; a read control unit that sequentially reads out one block of data written immediately before in this buffer memory means at a time R; and this read control unit. a detecting section for detecting that a time period (R-W) has elapsed since the start of reading by the buffer memory means;
A read system consisting of a write control unit that allocates a portion of the block data other than the area for which reading has not yet been completed as a write area for the next block of data, and sequentially writes the next block of data to this write area. A buffer memory circuit comprising write control means.
JP1106918A 1989-04-26 1989-04-26 Buffer memory circuit Expired - Fee Related JP2850366B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1106918A JP2850366B2 (en) 1989-04-26 1989-04-26 Buffer memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1106918A JP2850366B2 (en) 1989-04-26 1989-04-26 Buffer memory circuit

Publications (2)

Publication Number Publication Date
JPH02285719A true JPH02285719A (en) 1990-11-26
JP2850366B2 JP2850366B2 (en) 1999-01-27

Family

ID=14445807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1106918A Expired - Fee Related JP2850366B2 (en) 1989-04-26 1989-04-26 Buffer memory circuit

Country Status (1)

Country Link
JP (1) JP2850366B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092046A (en) * 1997-03-21 2000-07-18 Mitsubishi Denki Kabushiki Kaisha Sound data decoder for efficient use of memory
US6839863B2 (en) * 2000-09-06 2005-01-04 Nec Corporation Input data processing circuit comprising of a readout circuit for selecting one of first and second FIFO buffers having a faster clock

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62195987A (en) * 1986-02-24 1987-08-29 Mitsubishi Electric Corp Picture encoding and decoding device
JPH02203690A (en) * 1989-02-02 1990-08-13 Nippon Telegr & Teleph Corp <Ntt> Two buffer memory switching method for picture signal decoder
JPH02203689A (en) * 1989-02-02 1990-08-13 Nippon Telegr & Teleph Corp <Ntt> Two buffer memory switching method for picture signal coder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62195987A (en) * 1986-02-24 1987-08-29 Mitsubishi Electric Corp Picture encoding and decoding device
JPH02203690A (en) * 1989-02-02 1990-08-13 Nippon Telegr & Teleph Corp <Ntt> Two buffer memory switching method for picture signal decoder
JPH02203689A (en) * 1989-02-02 1990-08-13 Nippon Telegr & Teleph Corp <Ntt> Two buffer memory switching method for picture signal coder

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092046A (en) * 1997-03-21 2000-07-18 Mitsubishi Denki Kabushiki Kaisha Sound data decoder for efficient use of memory
US6839863B2 (en) * 2000-09-06 2005-01-04 Nec Corporation Input data processing circuit comprising of a readout circuit for selecting one of first and second FIFO buffers having a faster clock

Also Published As

Publication number Publication date
JP2850366B2 (en) 1999-01-27

Similar Documents

Publication Publication Date Title
FI913152A (en) SKIVREGISTRERINGS- OCH REPRODUCERINGSAPPARAT.
JPH0334156A (en) Information reproducing device
AU5248300A (en) Data transfer apparatus, data transfer system, and data transfer method with double buffering
JPH02285719A (en) Buffer memory circuit
JPS59175011A (en) Reproducing system of pcm signal
JPH0461670A (en) Reproducing device
JP2789656B2 (en) Audio digital signal recording and playback device
JP3670758B2 (en) CD-ROM decoder
JPH05307834A (en) Buffer memory device
JP2754716B2 (en) ADPCM playback device
JPH0714308A (en) Fast forwarding method for disk reproducing device
JPS61168104A (en) Sound storage device
JPH02203469A (en) Recording device and reproducing device
JP3332639B2 (en) Read / write control method and control circuit for memory for audio recording / reproducing device
JPH01149263A (en) Digital data recorder
JPH0877729A (en) Disk reproducing device
JP3292018B2 (en) Digital recording and playback device
JPH0237639B2 (en)
JPS5945608A (en) Signal processor
JPH0969261A (en) Digital magnetic recording/reproducing apparatus
JPS61182686A (en) Digital audio file device
JPS59175010A (en) Magnetic recording and reproducing device
JPS59113498A (en) Voice processor
JPH06150573A (en) Data decoder
JPH02158965A (en) Digital data reproducing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees