JPH0969756A - Filter operation device - Google Patents

Filter operation device

Info

Publication number
JPH0969756A
JPH0969756A JP22617595A JP22617595A JPH0969756A JP H0969756 A JPH0969756 A JP H0969756A JP 22617595 A JP22617595 A JP 22617595A JP 22617595 A JP22617595 A JP 22617595A JP H0969756 A JPH0969756 A JP H0969756A
Authority
JP
Japan
Prior art keywords
address
data
filter
frame
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP22617595A
Other languages
Japanese (ja)
Inventor
Masatoshi Matsuo
昌俊 松尾
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP22617595A priority Critical patent/JPH0969756A/en
Publication of JPH0969756A publication Critical patent/JPH0969756A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform the filter operation of data different of the number of samples in one frame without changing the control systems of other digital signal processors by changing only the address control of a filter operation part. SOLUTION: When data from a frame memory 106 is stored in a buffer 101 having the area of m+(i-j) words where (m) is the number of taps of the filter and (i-j) is the difference of the number of samples with respect to data where the number of samples in one frame is different and is (i) or (j) (i>j), the address is returned by (i-j) at each time of the frame change for the purpose of supplying a lack of (i-j) data from data in the preceding frame, and the address is skipped by (i-j)+1 to remove (i-j) data unnecessary for filter operation, and (m) data from this position are successively outputted to a filter operation circuit 102, and product sum operation between data and the coefficient from a filter coefficient memory 104 is repeated (i) times.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル信号処理に
おいて、1フレームのサンプル数が異なるデータに対し
て、フィルタ演算を行うためのフィルタ演算装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a filter arithmetic unit for performing a filter arithmetic operation on data having a different number of samples in one frame in digital signal processing.

【0002】[0002]

【従来の技術】ディジタル信号処理でよく用いられるF
IR(Finite Impulse Response)フィルタ演算では、フ
レームメモリに格納してあるAD(アナログ−ディジタ
ル)変換後の音声データを1サンプルづつFIRバッフ
ァに読み込み、前記FIRバッファとフィルタ係数を格
納してあるメモリから演算に必要なデータとフィルタ係
数を読みだし、積和演算を繰り返すことでフィルタ演算
を行っている。
2. Description of the Related Art F which is often used in digital signal processing
In the IR (Finite Impulse Response) filter calculation, the audio data after AD (analog-digital) conversion stored in the frame memory is read into the FIR buffer one sample at a time, and the FIR buffer and the memory storing the filter coefficient are read from the memory. The data necessary for the calculation and the filter coefficient are read, and the filter calculation is performed by repeating the product-sum calculation.

【0003】演算結果は、フレームメモリに書き込みを
行う。通常は、フレームメモリ上にFIRバッファ領域
を形成する。効率よくFIRフィルタ演算を行うため
に、FIRフィルタのタップ数分の領域をフレームメモ
リ上にFIRバッファとして確保し、その領域内の最も
古いデータの上に新たな音声データを上書きし、前記F
IRバッファ内を巡回アドレッシングすることによっ
て、FIRフィルタ演算回路にデータを転送するように
リングバッファを形成している。
The calculation result is written in the frame memory. Normally, an FIR buffer area is formed on the frame memory. In order to efficiently perform the FIR filter operation, an area for the number of taps of the FIR filter is secured as an FIR buffer in the frame memory, and the newest audio data is overwritten on the oldest data in the area.
By cyclically addressing the inside of the IR buffer, a ring buffer is formed so as to transfer data to the FIR filter arithmetic circuit.

【0004】フレームメモリとしては、不揮発性メモリ
等が用いられる。不揮発性メモリ等は、消去単位がブロ
ック毎になっているため、1フレームのデータがその消
去ブロックを越えて格納されないように、消去ブロック
内の領域を効率よく使用できるようなフレーム長にする
必要性がある。
A non-volatile memory or the like is used as the frame memory. Since the unit of erasure of non-volatile memory is block by block, it is necessary to set the frame length so that the area in the erase block can be used efficiently so that one frame of data is not stored beyond the erase block. There is a nature.

【0005】以下図面を参照しながら、上記した従来の
FIRフィルタ演算とFIRバッファの巡回アドレッシ
ングの一例について説明する。
An example of the conventional FIR filter calculation and cyclic addressing of the FIR buffer will be described below with reference to the drawings.

【0006】図6は、ディジタル信号処理装置における
FIRフィルタ演算部の概略図である。図6において、
601はFIRフィルタ演算のための音声データを格納
するFIRバッファである。FIRバッファ601に
は、1フレーム毎のAD変換を行った音声データが格納
してあるフレームメモリから順次データが読み込まれ、
最も古いデータ上に最新のデータが上書きされるように
602のアドレス発生回路によって、巡回アドレッシン
グされる。603はFIRバッファ601から読みだし
たデータと、フィルタ係数を格納してあるメモリから読
みだしたフィルタ係数を入力とするFIRフィルタ演算
回路である。FIRフィルタ回路603のタップ数をm
とすれば、FIRバッファ601はmワードの格納領域
を持つ。
FIG. 6 is a schematic diagram of the FIR filter operation unit in the digital signal processing device. In FIG.
Reference numeral 601 denotes an FIR buffer that stores audio data for FIR filter calculation. In the FIR buffer 601, data is sequentially read from a frame memory in which voice data obtained by AD conversion for each frame is stored.
It is cyclically addressed by the address generation circuit 602 so that the latest data is overwritten on the oldest data. Reference numeral 603 denotes an FIR filter arithmetic circuit which receives as input the data read from the FIR buffer 601 and the filter coefficient read from the memory storing the filter coefficient. The number of taps of the FIR filter circuit 603 is m
Then, the FIR buffer 601 has a storage area of m words.

【0007】以上のように構成されたディジタル信号処
理装置におけるFIRフィルタ演算部について、以下そ
の動作について説明する。
The operation of the FIR filter operation unit in the digital signal processing device configured as described above will be described below.

【0008】図7は、FIRフィルタ演算時のFIRバ
ッファの巡回アドレッシングによるデータ更新の流れを
示すものである。説明のために、ここではFIRフィル
タのタップ数を12とし、FIRバッファの領域を12
ワードとする。
FIG. 7 shows the flow of data updating by cyclic addressing of the FIR buffer during FIR filter calculation. For the sake of explanation, here, the number of taps of the FIR filter is 12, and the area of the FIR buffer is 12
It is a word.

【0009】図7の(a)は、フレームメモリ上のデータ
の一部を示している。フレームメモリから読みだされた
1サンプルづつのデータは、FIRバッファ上の最も古
いデータの上に上書きされるように、FIRバッファ用
のアドレス発生回路によって巡回アドレッシングされ、
順次格納されていく。時刻tnにおけるFIRバッファ
のデータを図7の(b)とした場合、次の時刻tn+1では
フレームメモリ上のtnの次のデータtn+1がFIRバッ
ファに読み込まれ、FIRバッファ上の最も古いデータ
であるtn-11に上書きされて図7の(c)のようになる。
以降、同様にしてFIRバッファ上の最も古いデータの
上に、フレームメモリから読み込まれる新しいデータが
上書きされるように巡回アドレッシングされる。
FIG. 7A shows a part of the data on the frame memory. The data of each sample read from the frame memory is cyclically addressed by the address generation circuit for the FIR buffer so that the oldest data on the FIR buffer is overwritten.
It is stored in sequence. Assuming that the data in the FIR buffer at time tn is (b) in FIG. 7, the data tn + 1 next to tn on the frame memory is read into the FIR buffer at the next time tn + 1 and is the oldest on the FIR buffer. The data tn-11 is overwritten and the result becomes as shown in FIG.
Thereafter, similarly, cyclic addressing is performed so that new data read from the frame memory is overwritten on the oldest data in the FIR buffer.

【0010】時刻tnにおけるFIRフィルタ演算は、
FIRバッファ上のデータを古い順(tn-11,tn-10,…,
tn-1,tn)から、もしくは新しい順(tn,tn-1,…,tn-
10,tn-11)から順次出力し、フィルタ係数が格納してあ
るメモリより出力される係数とをFIRフィルタ演算回
路によって積和演算を12回繰り返すことで実行する。
The FIR filter operation at time tn is
The data on the FIR buffer is in the order of oldness (tn-11, tn-10, ...,
tn-1, tn) or the new order (tn, tn-1, ..., tn-
10, tn-11) are sequentially output, and the coefficient output from the memory in which the filter coefficient is stored is repeatedly executed 12 times by the FIR filter operation circuit to execute it.

【0011】FIRフィルタ演算の一例として、1フレ
ームのサンプル数がiであるデータの連続処理の場合を
示す。ここでは、最初のフレームがD0からDi-1までの
iサンプル、次のフレームがS0からSi-1までのiサン
プルのデータを処理するものとする。FIRフィルタの
タップ数をmとし、FIRバッファをmワードとする。
FIRバッファ内のデータの推移を図8に示す。FIR
フィルタの係数を、新しいデータの係数から順次a0,a
1,…,am-2,am-1とすれば、FIRフィルタ演算結果は
図9のようになる。
As an example of the FIR filter calculation, the case of continuous processing of data in which the number of samples in one frame is i is shown. Here, it is assumed that the first frame processes data of i samples from D0 to Di-1, and the next frame processes data of i samples from S0 to Si-1. The number of taps of the FIR filter is m, and the FIR buffer is m words.
The transition of data in the FIR buffer is shown in FIG. FIR
The filter coefficients are sequentially set to a0, a from the coefficient of the new data.
If 1, ..., Am-2, am-1, the FIR filter calculation result is as shown in FIG.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、上記の
ようなディジタル信号処理におけるFIRフィルタ演算
処理では、1フレームのサンプル数が一定であり、処理
対象となるサンプル数に応じて信号処理のための制御は
決まっている。
However, in the FIR filter arithmetic processing in the digital signal processing as described above, the number of samples in one frame is constant, and control for signal processing is performed according to the number of samples to be processed. Is fixed.

【0013】フレームメモリとして用いられる不揮発性
メモリ等は、消去単位がブロック毎になっているため、
1フレームのデータがその消去ブロックを越えて格納さ
れないように、消去ブロック内の領域を効率よく使用で
きるようなフレーム長にする必要性がある。フレームメ
モリとして使用する不揮発性メモリ等に変更が生じた場
合、不揮発性メモリ等の消去ブロック内の領域を効率よ
く使用するためには、その不揮発性メモリ等に従って、
フレーム長を変更する必要性がある。ところが、FIR
フィルタの演算処理には、連続した時系列のデータが必
要となるため、1フレームのサンプル数が異なるデータ
に対してFIRフィルタ演算処理を行う場合は、ディジ
タル信号処理装置の全ての制御系を変更しなければなら
ないという問題点を有していた。
In a non-volatile memory or the like used as a frame memory, the erase unit is block by block.
There is a need to make the frame length so that the area in the erase block can be used efficiently so that one frame of data is not stored beyond the erase block. When the non-volatile memory used as the frame memory is changed, in order to use the area in the erase block of the non-volatile memory efficiently, according to the non-volatile memory, etc.,
It is necessary to change the frame length. However, FIR
Since the filter arithmetic processing requires continuous time-series data, when the FIR filter arithmetic processing is performed on data having different sample numbers in one frame, all control systems of the digital signal processing device are changed. It had a problem that it had to be done.

【0014】本発明は上記問題点に鑑み、ディジタル信
号処理において、1フレームのサンプル数が異なるデー
タに対して、FIRフィルタ演算部のアドレス制御を変
更するのみで、ディジタル信号処理装置の他の制御を変
えることなく、FIRフィルタ演算処理を可能とするフ
ィルタ演算装置を提供することを目的とする。
In view of the above problems, the present invention merely controls the address control of the FIR filter arithmetic unit for data having different numbers of samples in one frame in digital signal processing, and controls other digital signal processing devices. It is an object of the present invention to provide a filter calculation device that enables FIR filter calculation processing without changing.

【0015】[0015]

【課題を解決するための手段】上記問題点を解決するた
めに本発明は、1フレーム単位のデータを格納するフレ
ームメモリと、前記フレームメモリ用のアドレス発生回
路と、フレームメモリ内のデータを1サンプルづつ読み
だし、一時的に格納するFIRバッファと、前記FIR
バッファ内を巡回アドレッシング及び飛び越しアドレッ
シングすることが可能なアドレス発生回路と、フィルタ
係数を格納したメモリと、前記フィルタ係数メモリ用の
アドレス発生回路と、前記FIRバッファからのデータ
と前記フィルタ係数メモリからのフィルタ係数を入力と
するFIRフィルタ演算回路とから構成され、1フレー
ムのサンプル数が異なるデータに対して、前記FIRバ
ッファのアドレッシング制御を変更するのみで、他のデ
ィジタル信号処理装置の制御を変更することなく、FI
Rフィルタ演算処理を実行することを特徴とする。
In order to solve the above-mentioned problems, the present invention provides a frame memory for storing data in units of one frame, an address generating circuit for the frame memory, and data in the frame memory. FIR buffer for reading out each sample and temporarily storing it, and the FIR
An address generation circuit capable of cyclic addressing and interlace addressing in a buffer, a memory storing filter coefficients, an address generation circuit for the filter coefficient memory, data from the FIR buffer and the filter coefficient memory It is composed of an FIR filter arithmetic circuit which inputs a filter coefficient, and changes control of other digital signal processing devices only by changing addressing control of the FIR buffer with respect to data having different number of samples in one frame. Without FI
It is characterized in that R filter calculation processing is executed.

【0016】[0016]

【作用】FIRフィルタ演算処理を行うにあたり、1フ
レームのデータがiサンプル数からjサンプル数(i>
j)に変わり、有効データが減少した場合、不足するi
−j(i>j)サンプル数のデータを前フレームのデー
タから補充するようにフレームが変わる毎にFIRバッ
ファのアドレスを(i−j)戻し、その位置からはサンプ
ル数がiの場合と同じ巡回アドレッシングを実行するこ
とでFIRフィルタ演算処理を行うことにより、1フレ
ームがiサンプル数のデータを処理する場合と同様に1
フレームがjサンプル数のデータを処理することができ
るため、サンプル数に応じてFIRフィルタ演算制御以
外のディジタル信号処理装置の制御を変更する必要がな
く、変更の対象となるFIRフィルタ演算制御もFIR
バッファのアドレッシング制御の変更のみであるため、
サンプル数の変更に伴うディジタル信号処理装置の制御
変更が簡略化されることとなる。
In performing the FIR filter calculation process, one frame of data is converted from the number of i samples to the number of j samples (i>
j), and when the effective data decreases, i
-J (i> j) The address of the FIR buffer is returned (i-j) every time the frame is changed so that the data of the sample number is replenished from the data of the previous frame, and from that position, the same as when the sample number is i By performing the FIR filter arithmetic processing by executing the cyclic addressing, 1 frame is processed as in the case of processing the data of i samples.
Since the frame can process data of the number of j samples, it is not necessary to change the control of the digital signal processing device other than the FIR filter arithmetic control according to the number of samples, and the FIR filter arithmetic control to be changed is also the FIR filter arithmetic control.
Since only the addressing control of the buffer is changed,
The control change of the digital signal processing device due to the change in the number of samples is simplified.

【0017】[0017]

【実施例】以下、本発明の1フレームのサンプル数が異
なるデータのFIRフィルタ演算を実現するフィルタ演
算装置について、図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A filter arithmetic device for realizing an FIR filter arithmetic operation on data having a different number of samples per frame according to the present invention will be described below with reference to the drawings.

【0018】図1は本発明の第1の実施例におけるディ
ジタル信号処理装置のFIRフィルタ演算部の構成を示
すものである。図1において、106は110の1フレ
ーム単位のデータを格納するフレームメモリであり、1
07のアドレス発生回路1によってアドレッシングされ
る。101はフレームメモリ106からデータを1サン
プルづつ読みだし、格納するためのFIRバッファであ
り、103のアドレス発生回路2によって巡回及び飛び
越しアドレッシングされる。104はフィルタの係数が
格納されたフィルタ係数メモリで、105のアドレス発
生回路3によって適切な係数が出力されるようにアドレ
ッシングされる。102はFIRバッファ101からの
データと、フィルタ係数メモリ104からのフィルタ係
数を入力とするFIRフィルタ演算を行うための積和演
算回路である。これらのフィルタ演算部109は、フィ
ルタ演算制御部108によって制御されている。
FIG. 1 shows the configuration of the FIR filter operation section of the digital signal processing apparatus according to the first embodiment of the present invention. In FIG. 1, reference numeral 106 denotes a frame memory 110 for storing data in 1-frame units.
Address generation circuit 1 of No. 07 addresses. Reference numeral 101 is an FIR buffer for reading out data from the frame memory 106 one by one and storing it, and is cyclically and skip-addressed by the address generation circuit 2 of 103. Reference numeral 104 is a filter coefficient memory in which filter coefficients are stored, and is addressed by the address generating circuit 3 of 105 so that appropriate coefficients are output. Reference numeral 102 denotes a product-sum operation circuit for performing an FIR filter operation using the data from the FIR buffer 101 and the filter coefficient from the filter coefficient memory 104 as inputs. The filter calculation unit 109 is controlled by the filter calculation control unit 108.

【0019】以上のように構成されたFIRフィルタ演
算部について、以下図1、図2、図3及び図4を用いて
その動作を説明する。
The operation of the FIR filter operation unit configured as described above will be described below with reference to FIGS. 1, 2, 3 and 4.

【0020】図2、図3及び図4は、第1の実施例にお
ける図1の処理を示すものである。まず図2は、時刻t
nにおけるFIRバッファのデータと巡回アドレッシン
グの流れを示したものである。FIRバッファ201
は、1フレームのサンプル数がi及びj(i>j)のデ
ータをmタップのFIRフィルタ演算回路203で演算
が実行できるようにm+(i−j)ワードの領域を持つ。
時刻tnにおいて、最新のデータtnがFIRバッファ上
に格納された後、iサンプル数のデータを処理する場合
は、mタップのFIRフィルタ演算には不必要となるデ
ータ(i−j)個を除くように(i−j)+1だけアドレス
を飛び越え、その位置からm個のデータを順次出力する
ようにアドレッシングされる。次の時刻tn+1ではFI
Rバッファの最も古いデータであるtn-(m+(i-j)-1)上
に新しいデータが上書きされるようにアドレッシングさ
れ、再びFIRフィルタ演算に不必要な(i−j)個のデ
ータを除くように(i−j)+1だけアドレスを飛び越
え、その位置からm個のデータを順次出力するようにア
ドレッシングされる。以降、同様にしてFIRバッファ
内を巡回アドレッシングするように、202のアドレス
発生回路でアドレスを生成し、i回のFIRフィルタ演
算を繰り返す。
2, 3 and 4 show the processing of FIG. 1 in the first embodiment. First, in FIG. 2, time t
3 shows the flow of FIR buffer data and cyclic addressing at n. FIR buffer 201
Has an area of m + (i−j) words so that the data of which the number of samples in one frame is i and j (i> j) can be executed by the FIR filter operation circuit 203 of m taps.
At the time tn, when the latest data tn is stored in the FIR buffer and the data of i samples is processed, the data (i-j) unnecessary for the m-tap FIR filter operation is excluded. Thus, addressing is performed so that the address is skipped by (i-j) +1 and m pieces of data are sequentially output from that position. FI at the next time tn + 1
Addressing is performed so that new data is overwritten on tn- (m + (ij) -1), which is the oldest data in the R buffer, and again removes (i-j) data unnecessary for FIR filter operation. The address is addressed such that the address is skipped by (i-j) +1 and m pieces of data are sequentially output from that position. After that, in the same manner, the address is generated by the address generation circuit 202 so that the FIR buffer is cyclically addressed, and the FIR filter operation is repeated i times.

【0021】jサンプル数のデータのFIRフィルタ演
算を実行する場合には、フレームが変わる毎に、iサン
プル数の連続する時系列のデータをFIRフィルタ演算
する場合と同じ制御で演算を実現させるために、最初に
不足する(i−j)個のデータを前フレームから補充する
ように(i−j)だけアドレスを戻し、データを格納した
後に(i−j)+1アドレスを飛び越え、その位置からm
個のデータを順次出力するようにアドレッシングする。
以降はiサンプル数のデータの演算を行う場合と同様に
して、データを格納した後に(i−j)+1アドレス飛び
越え、その位置からm個のデータを順次出力するように
202のアドレス発生回路でアドレスを生成する。
When performing the FIR filter operation on the data of the number of j samples, the operation is realized by the same control as the case of performing the FIR filter operation on the data of continuous time samples of the number of i samples every time the frame changes. First, the address is returned by (i-j) so that the (i-j) number of missing data is replenished from the previous frame, and after the data is stored, the (i-j) +1 address is skipped, and from that position m
Addressing is performed so that each piece of data is sequentially output.
After that, in the same manner as when the data of the number of i samples is calculated, after the data is stored, the (i−j) +1 address is skipped and the address generation circuit of 202 outputs m data sequentially from that position. Generate an address.

【0022】このとき、前フレームの最後の(i−j)個
のデータが、次フレームの最初にFIRバッファに読み
込まれるようにフレームメモリ内のデータを更新する。
すなわち、1フレームがjサンプル数のデータをFIR
フィルタ演算する場合、更新されるFIRバッファのデ
ータの最初の(i−j)個は、そのアドレスに格納されて
いるデータと同じデータが上書きされる。1フレームが
iサンプル数(D0,D1,…,Di-2,Di-1)とjサンプル数
(S0,S1,…,Sj-2,Sj-1)のデータを連続演算したとき
のFIRバッファのデータの推移を示したものが図3で
ある。このときのFIRフィルタ演算結果は図4にな
る。
At this time, the data in the frame memory is updated so that the last (i-j) pieces of data of the previous frame are read into the FIR buffer at the beginning of the next frame.
That is, the data of j samples per frame is FIR
When the filter operation is performed, the same (i-j) pieces of data in the FIR buffer to be updated are overwritten with the same data stored in the address. One frame has i samples (D0, D1, ..., Di-2, Di-1) and j samples
FIG. 3 shows the transition of the data in the FIR buffer when the data of (S0, S1, ..., Sj-2, Sj-1) are continuously calculated. The FIR filter calculation result at this time is shown in FIG.

【0023】以上のようにして、1フレームのサンプル
数が異なるデータを、フィルタ演算部のアドレス制御を
変更するのみで、他のディジタル信号処理装置の制御系
を変更することなくフィルタ演算を実現することができ
る。
As described above, data having different numbers of samples in one frame can be subjected to the filter operation only by changing the address control of the filter operation unit without changing the control system of other digital signal processing devices. be able to.

【0024】なお、この実施例においては、FIRバッ
ファからフィルタ演算回路へのデータ転送は、古いデー
タから順次行っているが、FIRバッファのアドレッシ
ング及び係数が格納してあるメモリ上の係数の並びもし
くはアドレッシングを変更することで、新しいデータか
ら順次フィルタ演算回路にデータを転送して、異なるサ
ンプル数のデータをフィルタ演算することができる。
In this embodiment, the data transfer from the FIR buffer to the filter arithmetic circuit is performed sequentially from the oldest data, but the addressing of the FIR buffer and the arrangement of the coefficients on the memory in which the coefficients are stored or By changing the addressing, the data can be sequentially transferred from the new data to the filter calculation circuit, and the data of different sample numbers can be filtered.

【0025】[0025]

【発明の効果】以上のように本発明によれば、1フレー
ムのサンプル数がi、j(i>j)である異なるデータに
対し、フィルタのタップ数mとサンプル数の差(i−j)
の和であるm+(i−j)ワードの領域を持つバッファを
設け、jサンプルのデータをフィルタ演算するときは、
フレームメモリからのデータを格納するときに、不足す
る(i−j)個のデータを前フレームの最後の(i−j)個
のデータから補充するために、フレームが変わる毎にア
ドレスを(i−j)戻し、その後はiサンプルのデータを
フィルタ演算するときと同様に、フィルタ演算時に不要
となる(i−j)個のデータを除くようにアドレスを(i
−j)+1飛び越し、その位置からフィルタのタップ数
m個分のデータを順次フィルタ演算回路に出力するよう
に、アドレス発生回路により巡回及び飛び越しアドレッ
シングを行う。
As described above, according to the present invention, the difference (i−j) between the filter tap number m and the sample number is set for different data in which the number of samples in one frame is i, j (i> j). )
When a buffer having an area of m + (i−j) words that is the sum of
When the data from the frame memory is stored, in order to replenish the deficient (i-j) data from the last (i-j) data of the previous frame, the address is changed by (i -J) return, and thereafter, as in the case of performing the filter operation on the data of i samples, the address is set to (i
-J) +1 interlacing, and the address generating circuit performs cyclic and interlaced addressing so that data corresponding to the number of filter taps m is sequentially output to the filter arithmetic circuit from that position.

【0026】フィルタ演算回路においては、バッファか
らのデータとフィルタ係数メモリからの係数を入力とし
て、1フレームがiサンプルのデータを演算するときと
同じように積和演算をi回繰り返すことで、1フレーム
がjサンプルのデータのフィルタ演算を実現することが
できる。
In the filter operation circuit, the data from the buffer and the coefficient from the filter coefficient memory are input, and the sum of products operation is repeated i times in the same manner as when the data of i samples in one frame is calculated. It is possible to realize a filter operation of data whose frame is j samples.

【0027】また、フィルタ演算部のアドレス制御を変
更するのみで、他のディジタル信号装置の制御系を変更
することなく、1フレームのサンプル数が異なるデータ
のフィルタ演算が可能であるため、フレームメモリとし
て用いる不揮発性メモリ等の変更に伴い、1フレームの
フレーム長、すなわちサンプル数に変更が生じた場合に
も、ディジタル信号処理装置の制御変更が容易にでき
る。
Further, only by changing the address control of the filter calculation unit, it is possible to perform the filter calculation of the data in which the number of samples of one frame is different, without changing the control system of the other digital signal device. Even if the frame length of one frame, that is, the number of samples is changed due to the change of the non-volatile memory or the like used as, the control of the digital signal processing device can be easily changed.

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

【図1】本発明の一実施例におけるフィルタ演算装置の
構成のブロック図
FIG. 1 is a block diagram of a configuration of a filter calculation device according to an embodiment of the present invention.

【図2】同実施例におけるFIRバッファ内の巡回アド
レッシングを説明する図
FIG. 2 is a diagram illustrating cyclic addressing in an FIR buffer according to the same embodiment.

【図3】本発明の実施例における1フレームのサンプル
数が異なる場合のFIRバッファ内のデータ推移の概略
FIG. 3 is a schematic diagram of data transition in the FIR buffer when the number of samples in one frame is different in the embodiment of the present invention.

【図4】本発明の実施例における1フレームのサンプル
数が異なるデータをFIRフィルタ演算した結果を示す
FIG. 4 is a diagram showing a result of FIR filter calculation of data having different number of samples of one frame in the embodiment of the present invention.

【図5】本発明のアドレス発生回路の構成図FIG. 5 is a block diagram of an address generation circuit of the present invention.

【図6】従来のFIRバッファ内の巡回アドレッシング
を説明する図
FIG. 6 is a diagram for explaining cyclic addressing in a conventional FIR buffer.

【図7】従来のフレームメモリからFIRバッファへの
データ転送を説明する図
FIG. 7 is a diagram illustrating data transfer from a conventional frame memory to an FIR buffer.

【図8】従来の方法におけるFIRバッファ内のデータ
推移の概略図
FIG. 8 is a schematic diagram of data transition in the FIR buffer in the conventional method.

【図9】1フレームのサンプル数が同じデータをFIR
フィルタ演算した結果を示す図
FIG. 9: FIR data with the same number of samples in one frame
Figure showing the result of filter operation

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

101、201、601 FIRバッファ 102、203、603 FIRフィルタ演算回路 103、202、602 FIRバッファ用アドレス発
生回路 104 フィルタ係数メモリ 105 フィルタ係数メモリ用アドレス発生回路 106 フレームメモリ 107 フレームメモリ用アドレス発生回路 108 フィルタ演算制御部 109 フィルタ演算部 110 1フレーム単位のデータ 501 スタートアドレス設定回路 502 アドレス移動幅設定回路 503 加算器 504、507 セレクタ回路 505 アドレスレジスタ 506 ポインタアドレス保持回路
101, 201, 601 FIR buffer 102, 203, 603 FIR filter arithmetic circuit 103, 202, 602 FIR buffer address generation circuit 104 Filter coefficient memory 105 Filter coefficient memory address generation circuit 106 Frame memory 107 Frame memory address generation circuit 108 Filter operation control unit 109 Filter operation unit 110 Data for each frame 501 Start address setting circuit 502 Address movement width setting circuit 503 Adders 504 and 507 Selector circuit 505 Address register 506 Pointer address holding circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】1フレーム単位のデータを格納するフレー
ムメモリと、 前記フレームメモリ用のアドレスを任意に発生し、前記
フレームメモリに出力する第1のアドレス発生回路と、 前記フレームメモリからのデータを入力とし、一時的に
格納するバッファと、 前記バッファ内を任意に巡回及び飛び越しアドレッシン
グができるようにアドレスを発生し、前記バッファに出
力する第2のアドレス発生回路と、 フィルタ係数を格納するためのフィルタ係数メモリと、 前記フィルタ係数メモリ用のアドレスを任意に発生し、
前記フィルタ係数メモリに出力する第3のアドレス発生
回路と、 前記バッファからのデータ出力と前記フィルタ係数メモ
リからのフィルタ係数出力とを入力とし、積和演算を行
い、その結果を出力するフィルタ演算回路とを備えたこ
とを特徴とするフィルタ演算装置。
1. A frame memory that stores data in units of one frame, a first address generation circuit that arbitrarily generates an address for the frame memory and outputs the address to the frame memory, and a data from the frame memory. A buffer for inputting and temporarily storing, a second address generating circuit for generating an address so as to perform addressing and skipping addressing in the buffer and outputting the address to the buffer, and a buffer for storing a filter coefficient A filter coefficient memory and an address for the filter coefficient memory are arbitrarily generated,
A third address generating circuit for outputting to the filter coefficient memory, a filter arithmetic circuit for inputting the data output from the buffer and the filter coefficient output from the filter coefficient memory, performing a sum of products operation, and outputting the result. A filter operation device comprising:
【請求項2】演算処理を行う1フレームのサンプル数が
iおよびj(i>j)であり、フィルタのタップ数がm
である場合に、 バッファの領域をm+(i−j)ワードとすることを特徴
とする請求項1記載のフィルタ演算装置。
2. The number of samples in one frame for which arithmetic processing is performed is i and j (i> j), and the number of taps of the filter is m.
2. The filter operation device according to claim 1, wherein the buffer area is m + (i-j) words.
【請求項3】データ記憶装置の書き込み及び読みだし位
置指定処理において、第1の入力データであるスタート
アドレス設定入力と、第2の入力データであるアドレス
移動値設定入力とに応じて、繰り返し演算を実行するこ
とでデータ記憶装置上の任意のアドレスを発生させるた
めのアドレス発生回路であって、 前記第1の入力データとして、スタートアドレス制御信
号に従い、スタートアドレスN0を任意に出力させるス
タートアドレス設定部と、 前記第2の入力データとして、アドレス移動値制御信号
に従い、負の数を含むアドレス移動値Mを任意に出力さ
せるアドレス移動値設定部と、 前記第1の入力データN0を初期値とし、前記第2の入
力データMを繰り返し加算し、その演算結果Nn+1=Nn
+Mを出力することによってアドレスを更新するための
加算器と、 前記スタートアドレス設定部および前記加算器からの出
力を、第1のセレクタ制御信号に従い、選択するための
第1のセレクタと、 ポインタアドレス制御信号に従い、保持するためのレジ
スタを複数個具備することによって、ポインタアドレス
として格納、保持するためのポインタアドレス保持部
と、 第2のセレクタ制御信号に従い、前記ポインタアドレス
保持部および前記第1のセレクタからの出力を選択する
第2のセレクタと、 前記第2のセレクタ回路で選択された出力を格納、保持
し、前記データ記憶装置のアドレスおよび前記加算器の
入力Nnとして出力するアドレスレジスタとを備えたこ
とを特徴とするアドレス発生回路。
3. In the writing and reading position designation processing of the data storage device, a repetitive calculation is performed according to a start address setting input which is the first input data and an address movement value setting input which is the second input data. Is an address generating circuit for generating an arbitrary address on a data storage device by executing a start address setting for arbitrarily outputting a start address N0 according to a start address control signal as the first input data. Section, an address movement value setting section for arbitrarily outputting an address movement value M including a negative number as the second input data according to an address movement value control signal, and the first input data N0 as an initial value. , The second input data M is repeatedly added, and the operation result Nn + 1 = Nn
An adder for updating the address by outputting + M, a first selector for selecting the output from the start address setting unit and the adder according to a first selector control signal, and a pointer address By providing a plurality of registers for holding according to the control signal, a pointer address holding unit for storing and holding as a pointer address, and according to a second selector control signal, the pointer address holding unit and the first A second selector that selects an output from the selector; and an address register that stores and holds the output selected by the second selector circuit and outputs the address as the address of the data storage device and the input Nn of the adder. An address generation circuit characterized by being provided.
【請求項4】データ記憶装置の書き込み及び読みだし位
置指定処理において、アドレス移動値制御信号に従い、
yビットのアドレス移動値を任意に出力させるアドレス
移動値設定部と、 繰り返し演算を実行することでアドレスを更新するため
のyビット入力加算器と、 加算器の出力を格納、保持するためのリセット入力を持
つレジスタを複数個具備し、アドレス拡張のための上位
アドレス値を任意に設定し、x+yビットのアドレスと
して出力するアドレス拡張部と、 x+yビットのアドレスを格納、保持するアドレスレジ
スタと、 x+yビットのアドレスの下位yビットのみを前記加算
器の入力として出力するための分岐部とを備え、 1回の演算で複数のアドレスを更新することを特徴とす
るアドレス発生回路。
4. In the writing and reading position designation processing of the data storage device, according to the address movement value control signal,
Address movement value setting unit that arbitrarily outputs the y-bit address movement value, y-bit input adder that updates the address by executing repeated operations, and reset that stores and holds the output of the adder An address extension unit having a plurality of registers having inputs, arbitrarily setting an upper address value for address extension, and outputting as an x + y-bit address, an address register for storing and holding an x + y-bit address, x + y An address generation circuit comprising: a branch unit for outputting only the lower y bits of a bit address as an input of the adder, and updating a plurality of addresses in one operation.
JP22617595A 1995-09-04 1995-09-04 Filter operation device Pending JPH0969756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22617595A JPH0969756A (en) 1995-09-04 1995-09-04 Filter operation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22617595A JPH0969756A (en) 1995-09-04 1995-09-04 Filter operation device

Publications (1)

Publication Number Publication Date
JPH0969756A true JPH0969756A (en) 1997-03-11

Family

ID=16841066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22617595A Pending JPH0969756A (en) 1995-09-04 1995-09-04 Filter operation device

Country Status (1)

Country Link
JP (1) JPH0969756A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6348926B1 (en) * 1998-01-22 2002-02-19 Matsushita Electric Industrial Co., Ltd. Image conversion method and conversion device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6348926B1 (en) * 1998-01-22 2002-02-19 Matsushita Electric Industrial Co., Ltd. Image conversion method and conversion device

Similar Documents

Publication Publication Date Title
US4766561A (en) Method and apparatus for implementing multiple filters with shared components
US5262972A (en) Multichannel digital filter apparatus and method
CN108073549B (en) Convolution operation device and method
US5948053A (en) Digital signal processor architecture using signal paths to carry out arithmetic operations
JP2845114B2 (en) Reverberation device
EP0285316A2 (en) Programmable multistage digital filter
JP2005513643A (en) Programmable delay index type data path register file for array processing
JPH0969756A (en) Filter operation device
US5886912A (en) Processing elements connected in cascade having a controllable bypass
EP0397807A1 (en) Apparatus for simultaneously filtering and resampling digital data
US6658440B1 (en) Multi channel filtering device and method
JPH0767063B2 (en) Digital signal processing circuit
JP2856064B2 (en) Digital filter
KR100248266B1 (en) Tap coefficient renewal apparatus of fir adaptive digital filter
EP0661648B1 (en) Digital signal processing circuit
JP2005353094A (en) Product-sum computing unit
JP2005149517A (en) Product-sum computing element
JP3125672B2 (en) Digital filter
US6101583A (en) Digital signal processor for delayed signal processing using memory shared with another device
KR100484158B1 (en) Vertical down scaling apparatus and method in the image processing system
EP0562851A1 (en) Digital signal processing using parallel filters
JPS61993A (en) Addressing circuit for memory
JPS642290B2 (en)
JP3288074B2 (en) Address generation circuit
JPH08263365A (en) Data storage and processing system