JPH03254525A - Digital signal processor - Google Patents
Digital signal processorInfo
- Publication number
- JPH03254525A JPH03254525A JP5189090A JP5189090A JPH03254525A JP H03254525 A JPH03254525 A JP H03254525A JP 5189090 A JP5189090 A JP 5189090A JP 5189090 A JP5189090 A JP 5189090A JP H03254525 A JPH03254525 A JP H03254525A
- Authority
- JP
- Japan
- Prior art keywords
- data
- buffer
- write
- read
- word
- 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
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、例えばいわゆるDSP(ディジタル・シグナ
ル・プロセッサ)等のディジタル信号処理装置に関する
ものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a digital signal processing device such as a so-called DSP (digital signal processor).
本発明は、アクセス単位が処理に必要な語長の倍以上の
語長のバッファを有するディジタル信号処理装置におい
て、アクセス単位の語長を、処理に必要な語長で分割し
、各々をリードバッファとライトバッファとすると共に
、データ書き込み時には、リードバッファのデータを保
護して書き込み、データ読み出し時にリードバッファの
データを読み出してライトバッファのデータをリードバ
ッファへ転送するようにしたことにより、必要とされる
バッファメモリの容量を低減することができ、かつ、デ
ータ書込/読出の制御が簡単な、ディジタル信号処理装
置を提供するものである。The present invention provides a digital signal processing device in which the access unit has a buffer with a word length that is twice or more than the word length required for processing. In addition, when writing data, the data in the read buffer is protected and written, and when reading data, the data in the read buffer is read and the data in the write buffer is transferred to the read buffer. The present invention provides a digital signal processing device that can reduce the capacity of a buffer memory used and that can easily control data writing/reading.
3、発明の詳細な説明
〔従来の技術〕
一般に、入力ディジタル信号を圧縮して伝送する場合、
ある時間間隔(ブロック)内で圧縮処理された複数の圧
縮データを伝送すると共に、同ブロック内での上記圧縮
に必要な固定の情報(パラメータ)も伝送される。3. Detailed Description of the Invention [Prior Art] Generally, when an input digital signal is compressed and transmitted,
A plurality of compressed data compressed within a certain time interval (block) are transmitted, and fixed information (parameters) necessary for the compression within the same block is also transmitted.
例えば、いわゆるCD−1,CDROM−XAでのディ
ジタルオーディオ信号を、例えば適応差分PCM (A
DPCM)等の適応予測符号化(AP C:Adapt
ive Predictive Coding)によっ
て圧縮して伝送する場合には、ディジタルオーディオ信
号の例えば28サンプル区間(37,8kHzサンプリ
ングとして0.741m5ec)を1ブロツクとし、こ
のブロック毎に得られる28個の圧縮データが伝送され
る。この時、上記圧縮処理に必要な固定のパラメータと
して、後述するAPCの予測フィルタ情報と、レンジン
グゲイン情報とが伝送される。For example, a digital audio signal on a so-called CD-1 or CDROM-XA may be processed using adaptive differential PCM (A
Adaptive predictive coding (APC) such as DPCM)
In the case of compressing and transmitting data using ive predictive coding, for example, 28 sample sections (0.741 m5ec as 37.8 kHz sampling) of a digital audio signal are taken as one block, and 28 pieces of compressed data obtained for each block are transmitted. be done. At this time, APC prediction filter information and ranging gain information, which will be described later, are transmitted as fixed parameters necessary for the compression process.
なお、これらAPCフィルタ情報とレンジングゲイン情
報の伝送の際には、情報の重要性(情報欠落の場合の復
元の困難性)を考慮して同じ情報が1ブロツクで例えば
4回連続して送られるようになっている。Note that when transmitting these APC filter information and ranging gain information, the same information is transmitted, for example, four times in a row in one block, taking into consideration the importance of the information (difficulty in restoring in the case of missing information). It looks like this.
ここで、上述したディジタルオーディオ信号のADPC
Mによるデータ圧縮と、圧縮データ及びパラメータデー
タの伝送とは、例えば第8図に示すような構成の装置に
より威される。この第8図では、16ビツトのディジタ
ルオーディオ信号を8ビツトに圧縮(ピットリダクショ
ン)する装置を示しており、32バイト(パラメータ4
バイト+圧縮データ28バイト)の伝送を1ブロツクの
28サンプル区間で実行している。また、ADPCMの
ような適応予測符号化は、具体的には入力信号の性質に
応じた特性の予測フィルタを選択することにより実現さ
れている。第8図では、その最も簡単な例として、0次
のフィルタと、1次の予測フィルタの何れかをブロック
単位でを選択するような装置を示している。Here, the ADPC of the above-mentioned digital audio signal
The data compression by M and the transmission of compressed data and parameter data are performed by, for example, an apparatus having a configuration as shown in FIG. Fig. 8 shows a device that compresses (pit reduction) a 16-bit digital audio signal to 8 bits, with 32 bytes (parameter 4).
bytes + 28 bytes of compressed data) is executed in 28 sample sections of one block. Further, adaptive predictive coding such as ADPCM is specifically realized by selecting a predictive filter having characteristics according to the properties of the input signal. FIG. 8 shows, as the simplest example, a device that selects either a zero-order filter or a first-order prediction filter on a block-by-block basis.
すなわち、この第8図の装置において、入力端子1には
、1サンプル16ビツトのストレートPCM (Pul
se Code Modulation)信号のディジ
タルオーディオ信号が供給されている。このディジタル
オーディオ信号は、例えば28サンプル(28ワード)
単位のブロック毎にバッファメモリ11及び12へ蓄え
られるようになっている。ただし、上記バッファメモリ
11には、上記0次のフィルタ(図示は省略している)
を介したストレートPCM信号の各値がそのまま蓄えら
れる。また、上記バッファメモリ12には、上記ディジ
タルオーディオ信号が1サンプル遅延器13と乗算器1
4と加算器15とからなる1次差分フィルタを介して得
られる1次差分PCM信号の各値が蓄えられるようにな
っている。これらストレートPCM信号と1次差分PC
M信号は、予測・レンジ適応回路16にも伝送されてい
る。該予測・レンジ適応回路16では、上記ブロック毎
にストレートPCM値及び1次差分PCM値の各ブロッ
ク内の最大絶対値(以下ピーク値と呼ぶ)或いはこのピ
ーク値に係数を乗算した値が求められ、これらのピーク
(+!(或いはその係数乗算(l[)に基づいてAPC
フィルタ情報が得られるようになっている。具体的には
、各ピーク値(或いはその係数乗算値)のうち値が最小
となるようなフィルタ選択情報と、選択されたフィルタ
(第8図では0次或いは1次のフィルタ)のフィルタ係
数とが得られる。That is, in the device shown in FIG. 8, the input terminal 1 has a straight PCM (Pulle
A digital audio signal of the SE Code Modulation signal is supplied. This digital audio signal is, for example, 28 samples (28 words).
Data is stored in buffer memories 11 and 12 in units of blocks. However, the buffer memory 11 includes the zero-order filter (not shown).
Each value of the straight PCM signal via is stored as is. Further, the buffer memory 12 stores the digital audio signal through a one-sample delayer 13 and a multiplier 1.
4 and an adder 15, each value of the first-order differential PCM signal obtained through the first-order differential filter is stored. These straight PCM signals and the first difference PC
The M signal is also transmitted to the prediction and range adaptation circuit 16. In the prediction/range adaptation circuit 16, the maximum absolute value (hereinafter referred to as peak value) in each block of the straight PCM value and the first-order difference PCM value or the value obtained by multiplying this peak value by a coefficient is determined for each block. , APC based on these peaks (+! (or their coefficient multiplication (l[))
Filter information is now available. Specifically, the filter selection information that minimizes the value among each peak value (or its coefficient multiplication value) and the filter coefficient of the selected filter (0th order or 1st order filter in FIG. 8) is obtained.
このフィルタ情報に応して、切換選択スイッチ17の被
選択端子に供給されている上記バッファメモリ11.1
2の出力の切り換え選択が行われる。これにより、スト
レートPCM信号或いは1次差分PCM信号の何れか一
方の選択すなわち上記0次或いは1次のフィルタの選択
が行われることになる。このスイッチ17の出力は、い
わゆるブロックフローティング処理部(或いはブロック
レンジング処理部)に送られる。According to this filter information, the buffer memory 11.1 is supplied to the selected terminal of the changeover selection switch 17.
A switching selection of two outputs is performed. As a result, either the straight PCM signal or the first-order differential PCM signal is selected, that is, the zero-order or first-order filter is selected. The output of this switch 17 is sent to a so-called block floating processing section (or block ranging processing section).
この処理部でのレンジング処理は、上記ピーク値が16
ビツトの2の補数表現における正の最大値に最接近する
利得を求め、更に、レンジングアンプ(シック)19に
より同一ブロック内の28ワードを求められた利得によ
り増幅し、量子化器20で例えば8ビツトに丸めること
により行っている。なお、この時、量子化の最に発生し
た丸め雑音(量子化誤差)を、いわゆるノイズシェイパ
24を介して加算器18に帰還することで、いわゆるノ
イズシェービングを行っている。In the ranging process in this processing section, the peak value is 16
The gain that is closest to the maximum positive value in the two's complement representation of bits is found, and the 28 words in the same block are amplified by the found gain using the ranging amplifier (sic) 19, and the quantizer 20 is used to amplify, for example, 8 words. This is done by rounding into bits. At this time, so-called noise shaving is performed by feeding back the rounding noise (quantization error) generated at the end of quantization to the adder 18 via the so-called noise shaper 24.
すなわち、レンジングアンプ19からの量子化器20に
入力された16ビツトのディジタル信号は、該量子化器
20によって上位8ビツトと下位8ビツトとに分けられ
、上位8ビツトのみが取り出されていわゆる丸め処理が
施された後出力されるようになっている。また、下位8
ビツトは上記ノイズシェイパ24を介して加算器18に
帰還されている。すなわち、a亥ノイズシェイパ24で
は、量子化器20からの上記下位8ビツト出力が更に8
ビツト分左シフト(256倍)されて16ビツトとされ
た信号(量子化誤差)を、上記アンプ19の利得(係数
2G)の逆の利得(係数2−G)を有するアンプ21と
、遅延器22及び乗算器23からなる予測器とを介して
加算器18に減算信号として供給することで、ノイズシ
ェービング処理が行われている。なお、該乗算器23に
は上記選択されたフィルタ情報(すなわち実際はフィル
タ係数)が伝送されている。That is, the 16-bit digital signal input from the ranging amplifier 19 to the quantizer 20 is divided into the upper 8 bits and the lower 8 bits by the quantizer 20, and only the upper 8 bits are taken out and rounded. It is output after processing. Also, the bottom 8
The bits are fed back to the adder 18 via the noise shaper 24 described above. That is, in the a-noise shaper 24, the lower 8 bits output from the quantizer 20 are further
The signal (quantization error) that has been left-shifted (256 times) by bits to 16 bits (quantization error) is passed through an amplifier 21 having a gain (coefficient 2-G) opposite to the gain (coefficient 2G) of the amplifier 19 and a delay device. Noise shaving processing is performed by supplying the signal as a subtraction signal to the adder 18 via a predictor consisting of a multiplier 22 and a multiplier 23. Note that the selected filter information (actually, filter coefficients) is transmitted to the multiplier 23.
また、上記予測・レンジ適応回路16は、上記ストレー
トPCM信号或いは1次差分PCM信号のブロック内ピ
ーク値に基づいたレンジングゲイン情報も出力しており
、このレンジングゲイン情報を上記各アンプ19.21
に送ることで、該アンプ19.21での上記利得(係数
2’、2−aが決定されている。これらレンジングゲイ
ン情報とフィルタ情報とは、パラメータ発生回路28に
よって合成処理されてパラメータデータとされた後出力
されるようになっている。Further, the prediction/range adaptation circuit 16 also outputs ranging gain information based on the intra-block peak value of the straight PCM signal or the first-order difference PCM signal, and this ranging gain information is transmitted to each of the amplifiers 19 and 21.
The above-mentioned gains (coefficients 2', 2-a) in the amplifier 19.21 are determined by sending the ranging gain information and filter information to the amplifier 19.21.These ranging gain information and filter information are synthesized by the parameter generation circuit 28 and converted into parameter data. It is now output after the
なお、以上は入力16ビツトを8ビツトに圧縮するモー
ドに該当するが、この他、CD−1,CDROMの規格
において、入力の16ビツトデータを例えば4ビツトに
圧縮するモードの時には、4個の予測フィルタ(0次フ
ィルタ、1次フィルタ及び2個の2次フィルタ)のうち
の1個を選択するようになる。Note that the above corresponds to a mode that compresses 16 bits of input to 8 bits, but in addition to this, in the CD-1 and CDROM standards, when the mode is to compress 16 bits of input data to 4 bits, for example, 4 bits are compressed. One of the prediction filters (zero-order filter, first-order filter, and two second-order filters) is selected.
ところで、上述のデータ圧縮処理は、通常、いわゆるD
SP (ディジタル・シグナル・プロセッサ)を用いて
ソフトウェア的に実現される。このDSPにおいては、
1回のタスクが26.46μsec以内に実行され、決
定された上記圧縮データと、上記パラメータデータとは
、それぞれ書込切換スイッチ25.29を介してバッフ
ァメモリ26゜27に送られるようになっている。ここ
で、これらバッファメモリ26と27は、データの書き
込みと読み出しが交互に切り換えられるようになってい
る。また、上記書込切換スイッチ25,29、及びバッ
ファメモリ26.27の出力側の続出切換スイッチ30
は、上記バッファメモリ26.27での書込/読出に連
動した切換動作を行うようにされている。このため、例
えば、バッファメモ1J26ヘデータが書き込まれ、バ
ッファメモリ27からデータが読み出される時には、圧
縮データ用の書込切換スイッチ25の被選択端子25a
及び、パラメータデータ用の書込切換スイッチ29の被
選択端子29aが選ばれて、上記圧縮データとパラメー
タデータとがバッファメモリ26に書き込まれ、同時に
、続出切換スイッチ30では被選択端子30bが選ばれ
て上記バッファメモリ27のデータが読み出されて出力
端子2から出力される。逆にバッファメモリ27にデー
タが書き込まれる時には、バッファメモリ26からデー
タが読み出される。この時の上記スイッチ25では被選
択端子25bが、スイッチ29では被選択端子29bが
、スイッチ30では被選択端子30aが選択される。こ
のようなデータの書込/Vt出は、ブロック毎に行われ
るようになっている。By the way, the above-mentioned data compression process is usually performed using the so-called D
It is realized in software using an SP (digital signal processor). In this DSP,
One task is executed within 26.46 μsec, and the determined compressed data and parameter data are sent to buffer memories 26 and 27 via write changeover switches 25 and 29, respectively. There is. Here, these buffer memories 26 and 27 are designed so that writing and reading of data can be switched alternately. In addition, the write changeover switches 25 and 29 and the output changeover switch 30 on the output side of the buffer memory 26 and 27 are also provided.
is adapted to perform switching operations in conjunction with writing/reading in the buffer memories 26 and 27. Therefore, for example, when data is written to the buffer memory 1J26 and data is read from the buffer memory 27, the selected terminal 25a of the write changeover switch 25 for compressed data
Then, the selected terminal 29a of the write changeover switch 29 for parameter data is selected, and the compressed data and parameter data are written into the buffer memory 26, and at the same time, the selected terminal 30b of the write changeover switch 30 is selected. The data in the buffer memory 27 is read out and output from the output terminal 2. Conversely, when data is written to the buffer memory 27, data is read from the buffer memory 26. At this time, the switch 25 selects the selected terminal 25b, the switch 29 selects the selected terminal 29b, and the switch 30 selects the selected terminal 30a. Such data writing/Vt output is performed for each block.
すなわち、上記DSPでは、圧縮データとパラメータデ
ータの伝送のために、第9図に示すような各々32バイ
ト(パラメータ4バイト+圧縮データ28バイト)の書
込/読出用の上記バッファメモリ26.27を用意し、
各ブロック毎に書き込みと読み出しとを交代することで
データの伝送を行っていた。したがって、この場合、ブ
ロック毎の書込/読出の動作切り換えのための手段が必
要になると共に、読み出しの方を必ず先行させなければ
ならない、したがって、これらの切り換え制御が複雑と
なっている。また、−aに、DSP内部のメモリアクセ
スは、ワード単位で行われるようになっている。このた
め、実際の処理に必要な語長がバイト単位であったとし
ても、上記処理単位であるワード単位に直して用いるこ
とになり、バッファメモリの多くの容量を無駄に消費し
てしまっている。すなわち、通常のDSPの上記バッフ
ァメモリ26.27は、1ワード16ビツトの単位とな
っているため、実際の処理に必要な語長が第8図のよう
に1バイト8ビ・ントとなっていても、この8ビツトを
16ビツトに直して(例えば符号ビット拡張して)から
、書き込むようになる。That is, in the above-mentioned DSP, in order to transmit compressed data and parameter data, the above-mentioned buffer memories 26 and 27 for writing/reading each 32 bytes (4 bytes of parameters + 28 bytes of compressed data) as shown in FIG. Prepare
Data transmission was performed by alternating between writing and reading for each block. Therefore, in this case, a means for switching the write/read operations for each block is required, and reading must necessarily take precedence, making the switching control complicated. Further, -a, memory access inside the DSP is performed in units of words. Therefore, even if the word length required for actual processing is in bytes, it is converted into words, which is the processing unit mentioned above, and a large amount of buffer memory is wasted. . In other words, since the buffer memories 26 and 27 of a normal DSP are in units of 1 word and 16 bits, the word length required for actual processing is 1 byte and 8 bits as shown in Figure 8. However, the 8 bits are converted to 16 bits (for example, by extending the sign bit) before being written.
したがって、上記バッファメモリ26.27では、容量
の半分を無駄にしていることになる。このように、従来
は、書込/読出の各32バイトに対し、実際には32ワ
ードを各々準備する必要があり、バッファメモリの容量
やチップサイズの点で無駄が多くなっている。Therefore, half of the capacity of the buffer memories 26 and 27 is wasted. As described above, conventionally, it is actually necessary to prepare 32 words for each 32 bytes of writing/reading, which results in a lot of waste in terms of buffer memory capacity and chip size.
そこで、本発明は、上述のような実情に鑑みて提案され
たものであり、バッファメモリの容量の無駄を排してチ
ップサイズを小さくすることができ、かつバッファメモ
リへのデータ書込/読出の制御が簡単なディジタル信号
処理装置を提供することを目的とするものである。Therefore, the present invention has been proposed in view of the above-mentioned circumstances, and it is possible to reduce the chip size by eliminating wasted capacity of the buffer memory, and to reduce the size of the chip by writing/reading data to/from the buffer memory. The object of the present invention is to provide a digital signal processing device that is easy to control.
〔課題を解決するための手段)
本発明のディジタル信号処理装置は、上述の目的を遠戚
するために提案されたものであり、アクセス単位が、処
理に必要な語長の倍以上の語長となっているバッファを
有するディジタル信号処理装置であって、上記アクセス
単位の語長を、上記処理に必要な語長で少なくとも2つ
に分割し、該分割された各々をリードバッファとライト
バッファとして用いると共に、データ書き込み時には上
記リードバッファ内のデータを保護して書込データをラ
イトバッファに書き込み、データ読み出し時には上記リ
ードバッファのデータを読み出した後、ライトバッファ
のデータをリードバッファへ転送するようにしたもので
ある。[Means for Solving the Problems] The digital signal processing device of the present invention has been proposed in order to achieve the above-mentioned object, and the access unit has a word length that is twice or more than the word length required for processing. A digital signal processing device having a buffer that divides the word length of the access unit into at least two parts according to the word length necessary for the processing, and each of the divided parts is used as a read buffer and a write buffer. In addition, when writing data, the data in the read buffer is protected and the write data is written to the write buffer, and when reading data, after reading the data from the read buffer, the data from the write buffer is transferred to the read buffer. This is what I did.
なお、上記は書き込み先行時での動作を示しているが、
読み出し先行時には、リードバッファのデータを読み出
し後、書き込み時に、ライトバッファへの書き込みとラ
イトバッファからリードバッファへの転送を実行するよ
うにすればよい。Note that the above shows the operation in advance of writing, but
At the time of advance reading, after reading data from the read buffer, at the time of writing, writing to the write buffer and transfer from the write buffer to the read buffer may be executed.
本発明によれば、1つのバッファのアクセス単位を、処
理に必要な語長で分割し、各々をリードバッファ9 ラ
イトバッファとして用いるようにしている。そのため、
1つのバッファメモリのみでデータの書込/M出ができ
る。According to the present invention, one buffer access unit is divided into word lengths necessary for processing, and each is used as a read buffer 9 and a write buffer. Therefore,
Data can be written/output using only one buffer memory.
[実施例]
以下、本発明を適用した実施例について図面を参照しな
がら説明する。[Example] Hereinafter, an example to which the present invention is applied will be described with reference to the drawings.
第1図に本発明実施例ディジタル信号処理装置の機能ブ
ロックを示す。FIG. 1 shows functional blocks of a digital signal processing apparatus according to an embodiment of the present invention.
この第1図に示す装置は、オーディオ等のディジタル信
号をブロック(28サンプル区間)毎にビット圧縮(ビ
ットリダクシッン)するものであり、例えば、いわゆる
DSP (ディジタル・シグナル・プロセッサ)に本発
明を適用したものである。The device shown in FIG. 1 performs bit compression (bit reduction) on digital signals such as audio in blocks (28 sample sections). is applied.
すなわち、本実施例のディジタル信号処理装置は、アク
セス単位が、処理に必要な語長(1バイト例えば8ビツ
ト)の倍以上の語長(1ワード例えば16ビツト)とな
っているバッファメモリ54を有するDSP50であっ
て、上記アクセス単位の語長(lワード)を、上記処理
に必要な語長(1バイト)で少なくとも2つに分割し、
当該分割された各々をリードバッファ54Aとライトバ
ッファ541として用いると共に、データ書き込み時に
は上記リードバッファ54A内のデータを保護して書込
データを上記ライトバッファ54おに書き込み、データ
読み出し時には上記リードバッファ54Aのデータを読
み出した後、ライトバッファ54.のデータをリードバ
ッファ54.へ転送するようにしたものである。That is, the digital signal processing device of this embodiment uses the buffer memory 54 in which the access unit has a word length (1 word, 16 bits, for example) that is more than twice the word length (1 byte, 8 bits, for example) required for processing. A DSP 50 having a DSP 50, which divides the word length (l word) of the access unit into at least two parts by the word length (1 byte) necessary for the processing,
Each of the divided sections is used as a read buffer 54A and a write buffer 541, and when writing data, the data in the read buffer 54A is protected and write data is written to the write buffer 54, and when reading data, the read buffer 54A is used as the read buffer 54A. After reading the data of write buffer 54. Read data from buffer 54. It was designed to be transferred to.
ここで、入力端子31には16ビントのディジタルオー
ディオ信号(ストレートPCM信号)が供給されている
。このディジタルオーディオ信号は、信号処理機能ブロ
ック51に伝送される。当該信号処理機能ブロック51
は、前述の第7図と同様なブロックフローティング処理
によって一、1サンプル16ビツトのデータを8ビツト
データに圧縮する圧縮処理機能ブロック52と、前記A
PCの予測フィルタ情報とレンジングゲイン情報とを台
底したパラメータデータ(8ビツト)を発生させるパラ
メータ発生機能ブロック53とで構成されている。この
信号処理機能ブロック51では、上記ビット圧縮、パラ
メータ発生の他に前記ノイズシェービング処理も行って
いる。これら圧縮処理機能ブロック52からの8ビツト
圧縮データ、及び、上記パラメータ発生機能ブロック5
3からの8ビツトのパラメータデータは、上記バッファ
メモリ54に伝送され、書込、転送、続出の処理がなさ
れるようになっている。Here, a 16-bit digital audio signal (straight PCM signal) is supplied to the input terminal 31. This digital audio signal is transmitted to the signal processing functional block 51. The signal processing function block 51
A compression processing function block 52 compresses 16-bit data of each sample into 8-bit data by block floating processing similar to that shown in FIG.
It is composed of a parameter generation function block 53 that generates parameter data (8 bits) based on the prediction filter information and ranging gain information of the PC. This signal processing functional block 51 performs the noise shaving process in addition to the bit compression and parameter generation described above. These 8-bit compressed data from the compression processing function block 52 and the parameter generation function block 5
The 8-bit parameter data from No. 3 is transmitted to the buffer memory 54, and is subjected to writing, transfer, and subsequent processing.
当該バッファメモリ54は、上述したように、リードバ
ッファ54^、ライトバッファ54.に分割して用いる
ようにされている0例えば、バッファメモリ54の上位
側1バイト(8ビツト)がリードバッファ54^に、下
位側1バイト(8ビツト)がライトバッファ54.にな
るように分割される。ここで、書込動作時には、上記ラ
イトバッファ54□に1サンプル毎の8ビット圧縮デー
タ或いはパラメータデータが32バイト分書き込まれる
。すなわち、上記パラメータデータは、上記ライトバッ
ファ54−の先頭4バイトのパラメータ記憶領域SPに
書き込まれ、上記圧縮データは、残り28バイトの圧縮
データ記憶領域SDに記憶される。また、読出動作時に
は、上記ライトバッファ54.のデータがリードバッフ
ァ54^へ転送された後、読み出される。As described above, the buffer memory 54 includes a read buffer 54^, a write buffer 54 . For example, the upper 1 byte (8 bits) of the buffer memory 54 is used as the read buffer 54^, and the lower 1 byte (8 bits) is used as the write buffer 54. It is divided into Here, during the write operation, 32 bytes of 8-bit compressed data or parameter data for each sample are written into the write buffer 54□. That is, the parameter data is written in the first 4 bytes of the parameter storage area SP of the write buffer 54-, and the compressed data is stored in the remaining 28 bytes of the compressed data storage area SD. Also, during a read operation, the write buffer 54. After the data is transferred to the read buffer 54^, it is read out.
ところで、本発明実施例は、−船釣なりSPに適用する
ことを考慮しているため、上記バッファメモリ54の実
際のアクセス単位は、通常のDSPに用いられるものと
同様に1ワ一ド16ビツト単位となっている。すなわち
、上記バッファメモリ54に送られる(或いは該バッフ
ァメモリ54から出力される)上記圧縮データ或いはパ
ラメータデータは、通常、その1バイト8ビツトのテ゛
−タを符号ビット(サインビット)拡張してlワード1
6ビツトに直したデータとされている。By the way, since the embodiment of the present invention is considered to be applied to a boat fishing SP, the actual access unit of the buffer memory 54 is 1 word and 16 words, similar to that used in a normal DSP. It is in bits. That is, the compressed data or parameter data sent to the buffer memory 54 (or output from the buffer memory 54) is usually expanded by adding a sign bit (sign bit) to the 1-byte 8-bit data. word 1
The data is said to have been converted to 6 bits.
このようなことから、本実施例においては、当該lワー
ド単位のバッファメモリ54を用いて、上述したような
ライトバッファ54sとリードバッファ54.でのlバ
イト単位の書込、転送、読出動作を実現するため、具体
的に以下のような処理を行っている。For this reason, in this embodiment, the write buffer 54s and read buffer 54 . In order to realize write, transfer, and read operations in 1-byte units, the following processing is specifically performed.
すなわち、上記バッファメモリ54におけるライトバッ
ファ54m、リードバッファ541の動作上での分割と
、これらライトバッファ541゜リードバッファ54A
での1バイト8ビット単位の書込→転送、書込→読出の
動作とを、いわゆるバレルシフタ機能を有したアキュム
レータ55を媒介することで実現している0例えば、上
記り−ドバッファ54A、ライトバッファ540でのデ
ータ続出、転送、書込処理は、処理に必要な語長(1バ
イト)の4倍の語長の32ビツトすなわちバッファメモ
リ54の語長(1ワード)の倍の語長を有するアキュム
レータ(ACC)55を媒介させることで実現している
。That is, the operational division of the write buffer 54m and read buffer 541 in the buffer memory 54, and the division of these write buffers 541° and read buffer 54A.
Write → transfer and write → read operations in units of 1 byte and 8 bits are realized by intermediating an accumulator 55 having a so-called barrel shifter function.For example, the write buffer 54A, the write buffer The data succession, transfer, and write processing in 540 has a word length of 32 bits, which is four times the word length (1 byte) required for processing, that is, a word length that is twice the word length (1 word) of the buffer memory 54. This is realized by using an accumulator (ACC) 55 as an intermediary.
ここで、上記アキュムレータ55を媒介したバッファメ
モリ54への1サンプル分のデータ書込。Here, data for one sample is written to the buffer memory 54 via the accumulator 55.
転送、続出の具体的な動作を説明する。The specific operations of transfer and successive transfer will be explained.
先ず、第2図を用いてデータ書込→転送、書込の動作を
説明する。First, the operation of data write→transfer and write will be explained using FIG.
この第2図において、上記1バイト8ビツトの圧縮デー
タ或いはパラメータデータ(以下1バイトデータと呼ぶ
)は、符号ビット拡張してバイト単位をワード単位に直
したデータ(以下1ワードデータと呼ぶ)として送られ
てくる。ただし、この時の符号ビット拡張されたlワー
ドデータは、後述するように、負数の場合に符号ビット
クリアされて、上位8ビツトに0を並べたデータとされ
て送られてくるようになっている。このため、このlワ
ードデータをそのままバッファメモリ54に書き込むと
、リードバッファ54.には0が、ライトバッファ54
.には上記1バイトデータが書き込まれることになる(
第2図(a))、このバッファメモリ54に記憶された
lワードデータは、8ビツト左にシフトされてアキュム
レータ(ACC)55にロードされる(第2図の(b)
)。ただし、アキュムレータ55の最上位バイトには符
号ビ、7ト拡張による拡張ビットが、最下位バイトには
すべてOが並べられる。該アキュムレータ55にロード
されたデータは、上位ワード(16ビツト)と下位ワー
ド(16ビツト)とで分離される。第2図の(c)に下
位ワードのみを示す、当該分離された下位ワードにおい
ては、上位バイトに上記lバイトデータがきて、下位バ
イトはOとなる。この時、新たな1ワードデータ(負数
の場合は符号ビット拡張が抑圧される)が当該バッファ
メモリ54に送られてきて(第2図の(d))、当該新
たな1ワードデータと上記分離された下位ワードのデー
タとの論理ORが取られる。すなわち、上記バッファメ
モリ54に送られるlワードデータに対して、負数の場
合に符号ビット拡張を抑圧(符号ビットクリア)するの
は、この論理OR演算を完全なものとするためである。In this Figure 2, the 1-byte 8-bit compressed data or parameter data (hereinafter referred to as 1-byte data) is converted into data (hereinafter referred to as 1-word data) obtained by extending the sign bit and converting the byte unit into a word unit. It will be sent to you. However, as will be described later, the sign bit-extended l-word data at this time is sent as data with the sign bit cleared and 0 arranged in the upper 8 bits in the case of a negative number. There is. Therefore, if this l word data is written as it is to the buffer memory 54, the read buffer 54. is 0, write buffer 54
.. The above 1-byte data will be written to (
In FIG. 2(a), the l word data stored in this buffer memory 54 is shifted to the left by 8 bits and loaded into the accumulator (ACC) 55 (FIG. 2(b)).
). However, the most significant byte of the accumulator 55 is arranged with a sign bit and an extension bit by 7-bit expansion, and the least significant byte is all O's. The data loaded into the accumulator 55 is separated into an upper word (16 bits) and a lower word (16 bits). In the separated lower word of which only the lower word is shown in FIG. 2(c), the above 1-byte data comes in the upper byte, and O is in the lower byte. At this time, new 1-word data (sign bit extension is suppressed in the case of a negative number) is sent to the buffer memory 54 ((d) in FIG. 2), and the new 1-word data and the above-mentioned separation are sent to the buffer memory 54 ((d) in FIG. 2). A logical OR is performed with the data of the lower word. That is, the reason why the sign bit extension is suppressed (sign bit cleared) for the l-word data sent to the buffer memory 54 in the case of a negative number is to complete this logical OR operation.
ここで、上記負数時の符号ビットクリアは、具体的に以
下のような条件で行われる。すなわち、上述した新たに
送られてくる圧縮データの1ワードデータをynとする
と、yn≧0の時、上記1ワードの圧縮データの上位バ
イトはOとなっている。そのため、そのままバッファメ
モリ54の内容と論理OR1算が行われる。また、yn
<0の時には、当工亥lワードデータynの上位バイト
をクリアして0とし、上記バッファメモリ54の内容と
論理OR演算が行われる。ただし、パラメータデータは
負数とならない(0−8)ので、この処理は必要ない。Here, the clearing of the sign bit in the case of a negative number is specifically performed under the following conditions. That is, if yn is one word of newly sent compressed data, then when yn≧0, the upper byte of the one word of compressed data is O. Therefore, logical OR1 calculation with the contents of the buffer memory 54 is performed as is. Also, yn
When <0, the upper byte of the current word data yn is cleared to 0, and a logical OR operation is performed with the contents of the buffer memory 54. However, since the parameter data is not a negative number (0-8), this process is not necessary.
上述のようにして得られた論理ORデータ(第2図の(
e))は、上位バイトが先の1バイトデータで、下位バ
イトが上記新たな1バイトデータとなる。この論理OR
データは、再びバッファメモリ54に書き込まれる(第
2図の(f))。すなわち、先に書き込まれたライトバ
ッファ54にの1バイトデータは、−旦アキュムレータ
55を介することで保存されてリードバッファ54.に
転送され、後に供給されてきた新たな1バイトデータが
ライトバッファ54.に書き込まれる。上述のようにし
て、アキュムレータ55を媒介したリードバッファ54
.、 ライトバッファ51Lでのデータ書込→転送、
書込の動作が行われる。The logical OR data obtained as described above ((in Figure 2)
In e)), the upper byte is the previous 1-byte data, and the lower byte is the new 1-byte data. This logical OR
The data is again written to the buffer memory 54 (FIG. 2(f)). That is, the 1-byte data previously written to the write buffer 54 is stored via the accumulator 55 and then stored in the read buffer 54. The new 1-byte data that is transferred to the write buffer 54. and later supplied is transferred to the write buffer 54. will be written to. As described above, the read buffer 54 via the accumulator 55
.. , Data write in write buffer 51L → transfer,
A write operation is performed.
次に、第2図のようにして上記リードバッファ54、
ライトバッファ54bに書き込まれた1バイトデータ
の読出動作を、第3図を用いて説明する。Next, as shown in FIG. 2, the read buffer 54,
The read operation of 1-byte data written in the write buffer 54b will be explained using FIG. 3.
すなわち、リードバッファ541.ライトバッファ54
.に書き込まれた1バイトデータ(第3図の(a))は
、8ビツト左シフトされてアキュムレータ55にロード
される(第3図の(b))、この時、アキュムレータ5
5の最上位バイトには符号ビット拡張による拡張ピント
が、最下位バイトには0が並べられ、上位ワードと下位
ワードとで分離される。この上位ワードが読み出され、
下位ワードはバッファメモリ54に再ストアされる(第
3図の(c))、このようにすることで、1ワードデー
タが読み出されることになる。That is, read buffer 541. Write buffer 54
.. The 1-byte data ((a) in FIG. 3) written in is shifted to the left by 8 bits and loaded into the accumulator 55 ((b) in FIG. 3).
The most significant byte of 5 is an expanded pinpoint by sign bit extension, and the least significant byte is 0, and the upper word and lower word are separated. This upper word is read out,
The lower word is restored to the buffer memory 54 ((c) in FIG. 3). By doing this, one word of data is read out.
上述のような第2図における書込→転送、書込と、第3
図における読み出しとを繰り返すことで、バッファメモ
リ54でのデータの書込、転送、Vt出が可能となる。Write → transfer, write in Figure 2 as described above, and the third
By repeating the reading shown in the figure, it becomes possible to write and transfer data in the buffer memory 54, and output Vt.
更に、本実施例装置におけるデータ書込/読出において
は、具体的には、1サンプルに1回上記ライトバッファ
548への書き込みが行われ、1サンプル毎に2回、上
記ライトバッファ54mに書き込まれたデータが上記リ
ードバッファ54Aに転送され、その後読み出されるよ
うになっている。すなわち、読出動作時には、上述のよ
うに1サンプル毎に2回の転送と読み出しとが行われる
ため、リードバッファ54Aの32バイト全てを読み出
すには16サンプル期間あればよく、残りの12サンプ
ル期間では読み出しは行われないようになっている。こ
のように、1フ゛ロツク当たり28回の圧縮処理(メイ
ンタスク)に同期して、32回の圧縮データの出力を可
能にしている。なお、この場合、データ送出の仕方とし
ては種々考えられるが、−回のメインタスク毎に多くの
データ送出を行うほど、ホスト側でのDMA (直接メ
モリアクセス)転送が間に合わなくなる0例えば、メイ
ンタスク7回毎に8回のデータ転送を行うとすると、デ
ータ送出間隔は1 usec 、 DTRQNパルス
幅は100nsecとなり、ホスト側のスピードが追従
できない、そこで、本実施例では、上述したように、メ
インタスク1回に2回の送出としている。Furthermore, in data writing/reading in the device of this embodiment, specifically, data is written to the write buffer 548 once per sample, and written to the write buffer 54m twice per sample. The data is transferred to the read buffer 54A and then read out. That is, during the read operation, as described above, transfer and read are performed twice for each sample, so it only takes 16 sample periods to read all 32 bytes of the read buffer 54A, and the remaining 12 sample periods are Reading is not performed. In this way, it is possible to output compressed data 32 times in synchronization with the 28 compression processes (main task) per block. In this case, there are various ways to send data, but the more data is sent every - times the main task, the less time the DMA (direct memory access) transfer on the host side will have. If data is transferred 8 times every 7 times, the data transmission interval is 1 usec, and the DTRQN pulse width is 100 nsec, and the host side cannot keep up with the speed. Therefore, in this embodiment, as described above, the main task is Two transmissions are made at one time.
上述した第2図及び第3図は、バッファメモリ54に対
してデータ書き込みが先行している場合を前提としてい
る。これは、読み出し時にライトバッファ54.のデー
タをリードバッファ54゜へ転送するためである。しか
し、データの送出タイミングはその逆の読み出し先行の
場合もあり得る。すなわち、例えば第4図に示すように
、lサンプルに1回ずつ1バイトの圧縮データを書き込
んでいくと同時に、1サンプルに2回ずつ読み出してい
くと、当該圧縮データの書き込みは4回目まで先行する
が、5回目以降は逆転して読み出しが先行するようにな
る。2 and 3 described above are based on the premise that data is written to the buffer memory 54 in advance. This is the write buffer 54. This is to transfer the data to the read buffer 54°. However, the data transmission timing may be reversed, with read-out timing first. In other words, for example, as shown in Fig. 4, if 1 byte of compressed data is written to each sample once and read out twice to each sample at the same time, the compressed data will be written in advance until the 4th time. However, from the 5th time onward, the reading is reversed and the reading takes place first.
このようなことから、本実施例では、書込先行/読出先
行の順番によらないアルゴリズムを採用している。For this reason, this embodiment employs an algorithm that does not depend on the order of writing precedence/reading precedence.
すなわち、例えば第5図に示すように、リードバッファ
54^、ライトバッファ54mの各アドレス位置を示す
リードバッファ用インデックスレジスタARr及びライ
トバッファ用インデックスレジスタ^Rwを用いてアド
レス比較を行うことで、書込先行となっているか或いは
読出先行となっているかを検出するようにしている0例
えば、各インデックスレジスタ間の関係が、ARr <
AR−の時は書込先行であるため、上述したような書込
、転送読出の処理が行われる。これに対し、当該レジス
タ間の関係が、ARr>ARwの時は読出先行であるた
め、後続する書込処理実行後、直ちにそのデータのリー
ドバッファ54Aへの転送を行うようにする。That is, as shown in FIG. 5, for example, by comparing the addresses using the read buffer index register ARr and the write buffer index register ^Rw, which indicate the address positions of the read buffer 54^ and the write buffer 54m, the write For example, if the relationship between each index register is ARr <
When it is AR-, writing is preceded, so the above-mentioned writing and transfer/reading processes are performed. On the other hand, when the relationship between the registers is ARr>ARw, reading is preceded, so the data is transferred to the read buffer 54A immediately after the subsequent write process is executed.
具体的には、第4図において、データの書込開始番地は
$4($は16進数を表す)で、続出開始番地は$0で
あり、各々のアドレシングは、インデックスレジスタA
Rr、へR−による間接アドレシングとしてdsa4及
びdma2の各メモリにストアされる。このことから、
書込先行であるか続出先行であるかは、各々のアドレス
を比較すればよい、すなわち、各アドレスの関係がdm
a4>dma2ならば読出先行、d+wa4≦dma2
ならば書込先行が威り立つ。Specifically, in FIG. 4, the data write start address is $4 ($ represents a hexadecimal number), the successive write start address is $0, and each address is set to index register A.
It is stored in each memory of dsa4 and dma2 as indirect addressing by R- to Rr. From this,
To determine whether it is a write lead or a successive write lead, it is enough to compare each address.In other words, if the relationship between each address is dm
If a4>dma2, read first, d+wa4≦dma2
In that case, writing first is important.
したがって、データ書き込み時に、例えばdma4 >
dma2となっている場合、既にインデックスレジスタ
^Rrの続出アドレスは、インデックスレジスタ^Rw
の書込アドレスに先行しているので、データ読み出し時
にプログラムの同一ブロック内で、ライトバッファ54
1のデータはリードバッファ54Aに転送できない、こ
のため、ライトバッファ54、にデータが書き込まれた
ならば、直ちにリードバッファ54mに転送する。また
、データ書き込み時にdma4≦dma2となっている
場合、上記書込アドレスが先行して上記続出アドレスが
追いかけるので、データ読み出し時に同一ブロック内で
ライトバッファ54.のデータはリードバッファ54A
へ転送される。一方、データ読み出し時のり−ドバッフ
ァ54.においては、従来のプログラムと同一である。Therefore, when writing data, for example, dma4 >
If it is dma2, the successive addresses of index register ^Rr are already in index register ^Rw.
Since the write address in the write buffer 54 precedes the write address in the write buffer 54, the
1 data cannot be transferred to the read buffer 54A. Therefore, once data is written to the write buffer 54, it is immediately transferred to the read buffer 54m. In addition, if dma4≦dma2 at the time of data writing, the write address takes the lead and the succeeding addresses follow, so when reading data, the write buffer 54. The data is stored in the read buffer 54A.
will be forwarded to. On the other hand, when reading data, the read buffer 54. is the same as the conventional program.
第6図に上述したバッファメモリ54へのアドレス書込
ルーチンのフローチャートを示す。FIG. 6 shows a flowchart of the address write routine to the buffer memory 54 described above.
すなわち、この第6図において、インデックスレジスタ
ARr、^R−による間接アドレシングを行うため、ス
テップS1でインデックスレジスタARwにライトバッ
ファ54mの書込開始アドレスをセットし、ステップS
2でライトバッファ54.のアドレスをメモリdma2
にストアする。また、ステップS3でインデックスレジ
スタ^Rrにリードバッファ54gの続出開始アドレス
をセットし、ステップS4でリードバッファ54Aのア
ドレスをメモリdaa4にストアする。その後、ステッ
プs5では、圧縮データの前記圧縮データ記憶領域SD
への書き込みのループ(in(nは0〜27)が27と
なったか否かの判断がなされる。n−27(−aX)の
時ステップS6へ進み、n〈27の時ステップS9へ進
む、ステップS6ではパラメータデータ(フィルタ情報
、レンジングゲイン情報)を合威し、更にステップS7
で現在、過去のパラメ−タデータを合成した後、ステッ
プS8でライトバッファ54.のパラメータ記憶領域S
Pにそれら合成されたパラメータデータをストアする。That is, in FIG. 6, in order to perform indirect addressing using the index registers ARr, ^R-, the write start address of the write buffer 54m is set in the index register ARw in step S1, and the write start address of the write buffer 54m is set in step S1.
2 for write buffer 54. address of memory dma2
Store in. Further, in step S3, the successive start address of the read buffer 54g is set in the index register ^Rr, and in step S4, the address of the read buffer 54A is stored in the memory daa4. After that, in step s5, the compressed data storage area SD of compressed data is
It is determined whether the write loop (in (n is 0 to 27) has reached 27 or not. When n-27 (-aX), the process advances to step S6; when n<27, the process advances to step S9. , in step S6, the parameter data (filter information, ranging gain information) is combined, and further in step S7
After combining the current and past parameter data in step S8, the write buffer 54. parameter storage area S
The combined parameter data is stored in P.
このステップS8からステップS9へ進む。ステップS
9では、前述したような圧縮データの符号ピントクリア
(符号ビット拡張を抑圧)して圧縮データ記憶領域SD
にストアし、ステップSIOではインデックスレジスタ
AR−にdma2のデータをロードする。その後、ステ
ップSllでアドレスの比較が行われ、読出先行か書込
先行かの判定が行われ、書込先行の時はステップ512
へ、読出先行の時はステップS14へ進む、ステップS
12では、前述したライトバッファ54.の前記1バイ
トデータをアキュムレータ55を介し、前記新たな1バ
イトデータと合成(論理OR演算による合成)してそれ
をバッファメモリ54に再ストアした後、ステップS1
3でライトバッファ54゜をアドレス更新して、そのア
ドレスをメモリdma2にストアする。その後、次のブ
ロックでの処理に移行する。また、ステップS14では
ステップS12同様に1バイトデータの合成とバッファ
メモIJ 54への再ストアが行われる。その後、ステ
ップS15で、直ちにライトバッファ548からリード
バッファ54Aへのデータの転送を行い、ステップ51
6でライトバッファ541をアドレス更新して、そのア
ドレスをメモリdma2にストアし、次のブロックでの
処理に移行する。The process advances from step S8 to step S9. Step S
9, clears the code focus of the compressed data (suppresses code bit expansion) as described above and stores the compressed data in the compressed data storage area SD.
In step SIO, the data of dma2 is loaded into the index register AR-. After that, the addresses are compared in step Sll, and it is determined whether it is a read precedence or a write precedence. If it is a write precedence, step 512 is performed.
, if the reading is precedence, proceed to step S14, step S
12, the above-mentioned write buffer 54. After combining the 1-byte data with the new 1-byte data through the accumulator 55 (synthesizing by logical OR operation) and restoring it in the buffer memory 54, step S1
3, the address of the write buffer 54° is updated and the address is stored in the memory dma2. After that, the process moves to the next block. Further, in step S14, like step S12, 1-byte data is synthesized and restored to the buffer memory IJ 54. Thereafter, in step S15, data is immediately transferred from the write buffer 548 to the read buffer 54A, and in step S15
In step 6, the address of the write buffer 541 is updated, the address is stored in the memory dma2, and processing shifts to the next block.
ここで、上述したことは、DSPでのエンコード(すな
わちビット圧縮)時についてのものであるが、逆にDS
Pでの処理のデコード時の場合、バッファメモリ54へ
のアクセスは、上述とは逆のものとなる。すなわち、第
7図に示すように、1サンプル毎に2バイトのデータを
エンコーダから受信してライトバッファ54おに書き込
むと共に、lサンプル毎にlバイトをリードバッファ5
4Aから読み出す、このようにデコーダ側では必ず書き
込みが先行して読み出しが追いかけることになる。Here, what has been described above is about encoding (i.e. bit compression) in DSP, but conversely,
In the case of decoding processing in P, access to the buffer memory 54 is the opposite of that described above. That is, as shown in FIG. 7, 2 bytes of data are received from the encoder for each sample and written to the write buffer 54, and 1 byte is received for each 1 sample to the read buffer 5.
4A. In this way, on the decoder side, writing always precedes and reading follows.
上述したように、本実施例のディジタル信号処理装置は
、DSPのアクセス単位を分割して各々をリードバッフ
ァとライトバッファとして用いると共に、これらリード
バッファ、ライトバッファのアドレシング位置を示す2
組のインデックスレジスタを用いてアドレス比較を行う
ことにより、書き込みと読み出しの順序をm!してデー
タの書込、転送、続出を行うことができる。すなわち、
書込先行時は、リードバッファのデータを保護して書き
込み、読み出し時にリードバッファのデータを読み出す
と共に、この書き込まれるデータをライトバッファから
リードバッファへ転送している。また、読出先行時は、
リードバッファのデータを読み出した後、直ちにライト
バッファへの書き込みとライトバッファからリードバッ
ファへの転送を実行するようにしている。このように、
本実施例装置においては、バッファメモリを実質的に分
割して各々を独立にアクセスすることが可能となり、こ
のため、従来のDSPのバッファメモリに対して容量を
1/2に低減することができる。As described above, the digital signal processing device of this embodiment divides the access unit of the DSP and uses each as a read buffer and a write buffer, and also has two
By performing address comparison using the index registers of the set, the write and read order can be changed to m! data can be written, transferred, and continued. That is,
During advance writing, the data in the read buffer is protected and written, and during reading, the data in the read buffer is read and the data to be written is transferred from the write buffer to the read buffer. Also, when reading first,
After reading data from the read buffer, writing to the write buffer and transfer from the write buffer to the read buffer are executed immediately. in this way,
In the device of this embodiment, it is possible to substantially divide the buffer memory and access each part independently, and therefore, the capacity can be reduced to 1/2 compared to the buffer memory of a conventional DSP. .
また、1ブロツク毎に読み出しと書き込みとを適応的に
切り換える方式に比べて、専用のリードバッファ、ライ
トバッファを用いるので制御が容易となっている。Furthermore, compared to a system that adaptively switches between reading and writing for each block, control is easier because dedicated read buffers and write buffers are used.
[発明の効果]
本発明のディジタル信号処理装置においては、アクセス
単位の語長を、処理に必要な語長で分割し、各々をリー
ドバッファとライトバッファとすると共に、データ書き
込み時には、リードバッファのデータを保護して書き込
み、データ読み出し時にリードバッファのデータを読み
出してライトバッファのデータをリードバッファへ転送
するようにしたことにより、データ書込/読出の制御が
簡単にできるようになる。また、必要とされるバッファ
メモリの容量を従来のものと比べて低減することができ
、したがって、バッファメモリの容量の無駄を排してチ
ップサイズを小さくすることが可能となっている。[Effects of the Invention] In the digital signal processing device of the present invention, the word length of the access unit is divided by the word length necessary for processing, and each is used as a read buffer and a write buffer, and when writing data, the read buffer is Data writing/reading can be easily controlled by writing data while protecting it, reading data from the read buffer when reading data, and transferring data from the write buffer to the read buffer. Further, the required capacity of the buffer memory can be reduced compared to the conventional one, and therefore, it is possible to reduce the chip size by eliminating wasted capacity of the buffer memory.
第1図は本発明実施例のディジタル信号処理装置の概略
構成を示す機能ブロック図、第2図はデータ書込→転送
、書込の動作を説明するための図、第3図はデータ読出
動作を説明するための図、第4図は書込先行/読出先行
を説明するための図、第5図はインデックスレジスタを
説明するための図、第6図は書き込み動作時のフローチ
ャート、第7図はデコーダ側の動作を説明するための図
、第8図は従来のデータ圧縮を行うための概略構成を示
すブロック回路図、第9図は従来のDSPのバッファメ
モリの書込/読出動作を説明するための図である。
50・・・・・・・・・・・・DSP
51・・・・・・・・・・・・信号処理機能ブロック5
2・・・・・・・・・・・・圧縮処理機能ブロック53
・・・・・・・・・・・・パラメータ発生機能ブロック
54・・・・・・・・・・・・バッファメモリ54^・
・・・・・・・・・リードバッファ54廊・・・・・・
・・・・ライトバンファ55・・・・・・・・・・・・
アキュムレータ155−
第1図
@込先行/鼓出句行
第4図
インチ・ソワスL−ジスタの殴書
第5図
”70−+ヤード
第6図FIG. 1 is a functional block diagram showing a schematic configuration of a digital signal processing device according to an embodiment of the present invention, FIG. 2 is a diagram for explaining data write → transfer and write operations, and FIG. 3 is a data read operation. FIG. 4 is a diagram for explaining write advance/read advance, FIG. 5 is a diagram for explaining index register, FIG. 6 is a flowchart during write operation, and FIG. 7 is a diagram for explaining write operation. is a diagram for explaining the operation on the decoder side, FIG. 8 is a block circuit diagram showing a schematic configuration for performing conventional data compression, and FIG. 9 is for explaining the write/read operation of the buffer memory of a conventional DSP. This is a diagram for 50・・・・・・・・・DSP 51・・・・・・・・・Signal processing function block 5
2...Compression processing function block 53
......Parameter generation function block 54...Buffer memory 54^.
・・・・・・Read Buffer 54th Hall・・・・・・
・・・・Light banfa 55・・・・・・・・・・・・
Accumulator 155- Fig. 1 @Include advance/Tsuzuki haiku line Fig. 4 Inch Sois L-Jista's strokes Fig. 5 "70-+ Yard Fig. 6
Claims (1)
っているバッファを有するディジタル信号処理装置にお
いて、 上記アクセス単位の語長を、上記処理に必要な語長で少
なくとも2つに分割し、当該分割された各々をリードバ
ッファとライトバッファとして用いると共に、 データ書き込み時には上記リードバッファ内のデータを
保護して書込データをライトバッファに書き込み、デー
タ読み出し時には上記リードバッファのデータを読み出
した後、ライトバッファのデータをリードバッファへ転
送するようにしたことを特徴とするディジタル信号処理
装置。[Claims] In a digital signal processing device having a buffer in which the access unit has a word length that is twice or more than the word length necessary for the processing, the word length of the access unit is defined as the word length necessary for the processing. At the same time, each divided part is used as a read buffer and a write buffer, and when writing data, the data in the read buffer is protected and the write data is written to the write buffer, and when reading data, the read buffer is used as a read buffer and a write buffer. A digital signal processing device characterized in that after reading data from the buffer, data from the write buffer is transferred to the read buffer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051890A JP3038760B2 (en) | 1990-03-05 | 1990-03-05 | Digital signal processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051890A JP3038760B2 (en) | 1990-03-05 | 1990-03-05 | Digital signal processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03254525A true JPH03254525A (en) | 1991-11-13 |
| JP3038760B2 JP3038760B2 (en) | 2000-05-08 |
Family
ID=12899480
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2051890A Expired - Fee Related JP3038760B2 (en) | 1990-03-05 | 1990-03-05 | Digital signal processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3038760B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100449264B1 (en) * | 1997-06-02 | 2005-01-27 | 삼성전자주식회사 | A buffer of digital signal processor |
| JP2007172284A (en) * | 2005-12-21 | 2007-07-05 | Sanyo Electric Co Ltd | Data multiplexing storage device and processor |
-
1990
- 1990-03-05 JP JP2051890A patent/JP3038760B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100449264B1 (en) * | 1997-06-02 | 2005-01-27 | 삼성전자주식회사 | A buffer of digital signal processor |
| JP2007172284A (en) * | 2005-12-21 | 2007-07-05 | Sanyo Electric Co Ltd | Data multiplexing storage device and processor |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3038760B2 (en) | 2000-05-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TW420908B (en) | Lossless encoding and decoding system | |
| KR100321437B1 (en) | Car MP3 Player | |
| EP0299711B1 (en) | An audio signal recording and reproducing apparatus | |
| US5524170A (en) | Vector-quantizing device having a capability of adaptive updating of code book | |
| JP2597987B2 (en) | Decoding device for block transmission signal | |
| JPH0897728A (en) | Waveform data compression device | |
| US5703579A (en) | Decoder for compressed digital signals | |
| JPH03254525A (en) | Digital signal processor | |
| JP3046213B2 (en) | Sub-band audio signal synthesizer | |
| US6069865A (en) | Method and apparatus for cutting apart of a main signal and recording it as a synchronous signal | |
| JP2003337596A (en) | Audio data processing method and apparatus | |
| EP0679987A2 (en) | Digital data formatting/deformatting circuits | |
| JP3166218B2 (en) | Data compression / expansion apparatus and electronic musical instrument using the same | |
| US6285301B1 (en) | Prediction on data in a transmission system | |
| US6326907B1 (en) | Coding device | |
| JP3386638B2 (en) | Variable length code decoding method and apparatus | |
| JPS58197918A (en) | Adaptive differential decoder | |
| JP3237374B2 (en) | Digital signal recording device, digital signal reproducing device, and digital signal recording / reproducing device | |
| JP3224127B2 (en) | Image data conversion processor | |
| JP2007142547A (en) | Coding method and decoding method, and coder and decoder employing same | |
| JP3501246B2 (en) | MPEG audio decoder | |
| KR100213007B1 (en) | Sound extension circuit | |
| JP2005151223A (en) | Time series signal encoding device | |
| JPS5848100A (en) | Voice analysis synthesizer | |
| JP2005099629A (en) | Reverse quantization device, audio decoder, image decoder, reverse quantization method and reverse quantization program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |