JPS6347007B2 - - Google Patents

Info

Publication number
JPS6347007B2
JPS6347007B2 JP4014680A JP4014680A JPS6347007B2 JP S6347007 B2 JPS6347007 B2 JP S6347007B2 JP 4014680 A JP4014680 A JP 4014680A JP 4014680 A JP4014680 A JP 4014680A JP S6347007 B2 JPS6347007 B2 JP S6347007B2
Authority
JP
Japan
Prior art keywords
bit
output
equation
bit information
vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP4014680A
Other languages
Japanese (ja)
Other versions
JPS56137725A (en
Inventor
Shigechika Kawarai
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP4014680A priority Critical patent/JPS56137725A/en
Publication of JPS56137725A publication Critical patent/JPS56137725A/en
Publication of JPS6347007B2 publication Critical patent/JPS6347007B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 本発明はデイジタルフイルタに関するものであ
り、さらに詳しくは、蓄積装置からサンプル値の
各ビツトに対応するベクトルを用いて、順次に数
表出力を読み出し、それらの値を累算することに
よつてフイルタ出力を得るデイジタルフイルタに
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a digital filter, and more particularly, it sequentially reads numerical table outputs from an accumulator using vectors corresponding to each bit of a sample value, and accumulates the values. This invention relates to a digital filter that obtains a filter output by calculation.

理論によれば、一般にデイジタルフイルタにお
いては連続信号x(t)をT(秒)間隔で標本化
(サンプリング)して得られる離数信号(サンプ
ル値)x(nT)を入力系列とするとき、出力系列
y(nT)は y(nT)=KK=0 akx{(n−k)T} +Ll=1 bly{(n−l)T} ……(1) なる定係線形差分方程式から求められ、やはりサ
ンプル値である。式(1)は少くとも1つのblが零で
ないときには巡回形デイジタルフイルタを表わ
し、すべてのblが零のときには非巡回形デイジタ
ルフイルタを表わす。式(1)を便宜的に yoKK=0 akxo-kLl=1 blyo-l ……(2) と表記する。ただし、xo-k=△x{(n−k)T}
(k=0、1、……、k)、yo-l=△y{(n−l)
T}(l=0、1、……、L)と定義する。
According to theory, in general, in a digital filter, when the input sequence is a discrete signal (sample value) x(nT) obtained by sampling a continuous signal x(t) at intervals of T (seconds), The output series y(nT) is y(nT)= KK=0 a k x {(n-k)T} + Ll=1 b l y{(n-l)T} ...(1) It is obtained from the constant linear difference equation, and is also a sample value. Equation (1) represents a cyclic digital filter when at least one bl is not zero, and represents an acyclic digital filter when all bls are zero. For convenience, equation (1) is written as y o = KK=0 a k x ok + Ll=1 b l y ol ……(2). However, x ok = △x {(n-k)T}
(k = 0, 1, ..., k), y ol = △y {(n-l)
T} (l=0, 1, ..., L).

さらに式(2)は形式的に y=N-1i=0 αiZi ……(3) で表わされる。ただし、Y=yoを、αiはakまたは
blを、Ziはxo-kまたはyo-lをそれぞれ表わす。
Furthermore, formula (2) can be formally expressed as y= N-1i=0 α i Z i ...(3). However, Y=y o , α i is a k or
b l and Z i represent x ok or y ol , respectively.

式(3)の表式そのままでは1つのサンプリング時
点でのフイルタ出力Yを求めるにはN個の乗算と
(N−1)回の加算を行なわなければならない。
デイジタル的に扱う場合には、これらの乗算およ
び加算は2進数の演算であるから出力Yを求める
のに時間がかかり、回路構成も乗算器を用意しな
ければならないので非常に複雑になる。
If the expression (3) is used as is, N multiplications and (N-1) additions must be performed to obtain the filter output Y at one sampling point.
When handling digitally, since these multiplications and additions are binary operations, it takes time to obtain the output Y, and the circuit configuration becomes very complicated because a multiplier must be provided.

デイジタルフイルタの特長の1つは、1つのハ
ードウエアで等価的に複数(R)個のフイルタと
して動作させ得るいわゆる時分割多重化が可能な
点にある。R個のフイルタとして動作させるため
には上記重算と加算をT/Rの時間内に終了しなけ ればならないが、実際には演算時間が長いので多
重度Rを大きくできない。また、単体(R=1)
のフイルタとして用いる場合でも、演算時間が長
いためサンプリング周期Tを小さくできないから
扱える周波数を高くできない。
One of the features of digital filters is that so-called time division multiplexing is possible, in which one piece of hardware can equivalently operate as a plurality (R) of filters. In order to operate as R filters, the multiplication and addition must be completed within the time T/R, but in reality, the multiplicity R cannot be increased because the calculation time is long. Also, single unit (R=1)
Even when used as a filter, the sampling period T cannot be reduced due to the long computation time, and the frequency that can be handled cannot be increased.

このため、2進数の乗算器を用いないで式(3)の
フイルタ出力を求める方法がいくつか知られてい
て、Peled、A.and Liu、B.:“A new
hardware realization of digital filters”、
IEEE Trans.Acoust.、Speech&Signal
Process.、ASSP−22、6、p.456(1974)および
アラン・クロワズイエ他のデイジタル・フイルタ
(特公昭53−30972号)に述べられている。以下に
それらを説明する。
For this reason, there are several known methods to obtain the filter output of equation (3) without using a binary multiplier. Peled, A. and Liu, B.: “A new
“hardware realization of digital filters”
IEEE Trans. Acoust., Speech & Signal
Process., ASSP-22, 6, p. 456 (1974) and Digital Filter by Alain Croisier et al. These are explained below.

まず第1のもの(IEEE Trans.ASSP−22)に
ついて述べる。式(3)のサンプル値Ziはデイジタル
的に扱う場合には2進数で表わされるが、正数も
負数も取り得る(正負両数を取り得る)ので正負
を含む2進数の表現方法いわゆる2の補数コード
で表わされる。すなわち、Ziは2の補数コードサ
ンプル値である。この表現方法を用いてデータ語
長がMビツトで表わされるZiの大きさは次のよう
になる(説明を簡単にするために、整数だけを考
えることにするが、以下の説明はもちろん小数に
も同様に適用できる)。
First, the first one (IEEE Trans.ASSP-22) will be described. The sample value Z i in Equation (3) is expressed as a binary number when handled digitally, but since it can take both positive and negative numbers (it can take both positive and negative numbers), it can be expressed as a binary number that includes positive and negative numbers. It is represented by the complement code of That is, Z i is a two's complement code sample value. Using this representation method, the size of Z i whose data word length is expressed in M bits is as follows (to simplify the explanation, we will consider only integers, but the following explanation will of course be based on decimal numbers). (applicable as well).

Zi=−ZM i2M-1M-1j=1 Zj i2j-1 ……(4) ただし、Zj iは0または1である。式(4)からZi M
が0のときはZiは正数になり、Zi Mが1のときはZi
は負数になることがわかるのでZi Mは極性を表わ
すビツトであることがわかる。
Z i =−Z M i 2 M-1M-1j=1 Z j i 2 j-1 ...(4) However, Z j i is 0 or 1. From equation (4), Z i M
When Z i is 0, Z i is a positive number, and when Z i M is 1, Z i
Since it can be seen that is a negative number, it can be seen that Z i M is a bit representing polarity.

式(4)を式(3)に代入すると Y=N-1i=0 αi(−ZM i2M-1 M-1j=1 Zj i2j-1)=−2M-1 N-1i=0 αiZM iM-1j=1 2j-1 N-1i=0 αiZj i ……(5) となるので、数表出力φjおよび関数φを φj=△φ(Zj 0、Zj 1、…、Zj N-1)=△N-1i=0 αiZj 1 ……(6) と定義すると、式(5)は Y=−φ(ZM 0、ZM 1、…ZM N-1)2M-1M-1j=1 φ(Zj 0、Zj 1、…Zj N-1)2j-1 =−φM2M-1M-1j=1 φj2j-1 ……(7) と表わされる。 Substituting equation (4) into equation (3), Y= N-1i=0 α i (−Z M i 2 M-1 M-1j=1 Z j i 2 j-1 )=−2 M-1 N-1i=0 α i Z M i + M-1j=1 2 j-1 N-1i=0 α i Z j i ……(5), so the numerical table Define the output φ j and the function φ as φ j = △φ (Z j 0 , Z j 1 , ..., Z j N-1 ) = △ N-1i=0 α i Z j 1 ......(6) Then, equation (5) becomes Y=-φ(Z M 0 , Z M 1 ,...Z M N-1 )2 M-1 + M-1j=1 φ(Z j 0 , Z j 1 ,... Z j N-1 )2 j-1 = −φ M 2 M-1 + M-1j=1 φ j 2 j-1 ……(7).

式(6)の関数φは、そのN個の変数Zj 0、Zj 1、…、
Zj N-1の各々が0か1かによつて2N通りの値を取
る。したがつて、式(6)の数表出力φjはN個の変数
Zj 0、Zj 1、…、Zj N-1の組、すなわち、N次元ベクト
ル(Zj 0、Zj 1、…、Zj N-1)をアドレス値として、2N
個の関数φの値が貯蔵してある読み出し専用メモ
リ(ROM)もしくはランダムアクセスメモリ
(RAM)等の蓄積装置から引出すことができる。
ゆえに、式(7)からこのように引出した数表出力φj
を順次シフトして加算する動作(M−1)回繰返
し、M回目には、引出した数表出力φMをシフト
して減算することによりフイルタ出力Yを求めら
れることがわかる。この方法による構成を第1図
に示す。第1図は式(3)においてN=5で、αi=ai
(i=0、1、2)、α3=b1およびα4=b2とし、Zi
=xo-i(i=0、1、2)、Z3=yo-1、Z4=yo-2
よびY=yoとして得られる。
The function φ in equation (6) is defined by its N variables Z j 0 , Z j 1 ,...
Each of Z j N-1 takes 2 N values depending on whether it is 0 or 1. Therefore, the numerical table output φ j of equation (6) has N variables.
2 N _ _ _ _ _ _ _ _ _ _ _
The values of the function φ can be retrieved from a storage device such as a read-only memory (ROM) or a random access memory (RAM) in which the values of the function φ are stored.
Therefore, the numerical table output φ j derived from equation (7) in this way
It can be seen that the filter output Y can be obtained by repeating the operation of sequentially shifting and adding (M-1) times, and at the Mth time, by shifting and subtracting the derived numerical table output φ M. A configuration based on this method is shown in FIG. In Figure 1, N=5 in equation (3) and α i =a i
(i = 0, 1, 2), α 3 = b 1 and α 4 = b 2 , and Z i
= x oi (i = 0, 1, 2), Z 3 = y o-1 , Z 4 = y o-2 and Y = y o .

yo=a0xo+a1xo-1+a2xo-2+b1yo-1+b2yo-2
……(8) なる2次の巡回形デイジタルフイルタの構成を示
す。このとき、数表出力φjおよび関数φは式(6)よ
り φj=φ(xj o、Xj o-1、Xj o-2、Yj o-1、Yj o-2) =a0xj o+a1xj o-1+a2xj o-2 +b1yj o-1+b2yj o-2 ……(9) であり、フイルタ出力yoは式(7)より yn=−φM2M-1M-1j=1 φj2j-1 ……(10) である。
y o =a 0 x o +a 1 x o-1 +a 2 x o-2 +b 1 y o-1 +b 2 y o-2
...(8) shows the configuration of a second-order cyclic digital filter. At this time, the numerical table output φ j and the function φ are obtained from equation (6) as φ j = φ (x j o , X j o-1 , X j o-2 , Y j o-1 , Y j o-2 ) =a 0 x j o +a 1 x j o-1 +a 2 x j o-2 +b 1 y j o-1 +b 2 y j o-2 ...(9), and the filter output y o is expressed by equation (7 ), yn=−φ M 2 M-1 + M-1j=1 φ j 2 j-1 ……(10).

第1図において、SR1〜SR3は直列形のシフ
トレジスタ、PSRは並列入力−直列出力形のシ
フトレジスタ、R1,R2はレジスタ、MEM1
はROMもしくはRAM等の蓄積装置、ADSは減
算可能な加算器、ACC1はADSおよびR2から
なり、R2の出力線が下位ビツト方向に1ビツト
ずらしてADSの一方の入力に結線された、すな
わちR2の下位2ビツト目をADSの下位1ビツ
ト目に結線されている累算器であつて、図示のご
とく構成してある。同図においては、サンプル値
xoの各ビツトは最下位ビツトを先頭に順次直列に
シフトレジスタSR1に与えられる。また同時に
xo-1の各ビツトが順次シフトレジスタSR1から
SR2に移動していき、SR2からはxo-2の各ビツ
トがやはり最下位ビツトから順次出てくる。xo
xo-2の各ビツトはそれぞれ順次蓄積装置MEM1
に与えられる。同様にして並列にシフトレジスタ
PSRに貯蔵されたyo-1の各ビツトが順次シフトレ
ジスタSR3に入つていき、SR3からはyo-2の各
ビツトが順次出てくる。yo-1およびyo-2の各ビツ
トはそれぞれ順次蓄積装置MEM1に与えられ
る。したがつて、蓄積装置MEM1には5ビツト
の情報xj o、xj o-1、xj o-2、yj o-1、yj o-2が与えられる

第1図に示すように蓄積装置MEM1は上記5ビ
ツトをアドレス値とする32の記憶個所を有し、そ
の各々にデータとして式(9)によつて予め計算され
た関数φの値がBビツトの2の補数コードで貯蔵
されている。したがつて、与えられた5次元ベク
トル(xj o、xj o-1、xj o-2、yj o-1、yj o-2)により数表
出力φjを引出すことができ、これがレジスタR1
に蓄積される。次にレジスタR1の出力は累算器
ACC1中の加算器ADSに与えられ、レジスタR
2に貯蔵されている部分和j-1j=1 φj2j-1(加算器ADS
の先の出力を1ビツト下位ビツト方向にシフトし
たもの)と加算される(この動作はシフト加算と
呼ばれる)。
In Figure 1, SR1 to SR3 are serial type shift registers, PSR is a parallel input-serial output type shift register, R1 and R2 are registers, and MEM1
is a storage device such as ROM or RAM, ADS is an adder capable of subtraction, and ACC1 consists of ADS and R2, and the output line of R2 is shifted by one bit toward the lower bit and connected to one input of ADS, that is, R2 This is an accumulator in which the lower two bits of ADS are connected to the lower first bit of ADS, and is configured as shown in the figure. In the figure, the sample value
Each bit of xo is sequentially applied to the shift register SR1 in series starting with the least significant bit. Also at the same time
Each bit of x o-1 is sequentially transferred from shift register SR1.
It moves to SR2, and from SR2 each bit of x o-2 comes out sequentially starting from the least significant bit. xo ,
Each bit of x o-2 is sequentially stored in the storage device MEM1.
given to. Shift registers in parallel in the same way
Each bit of y o-1 stored in PSR enters the shift register SR3 in sequence, and each bit of y o-2 sequentially comes out from SR3. Each bit of y o-1 and y o-2 is sequentially applied to storage device MEM1. Therefore, the storage device MEM1 is provided with 5-bit information x j o , x j o-1 , x j o-2 , y j o-1 , y j o-2 .
As shown in FIG. 1, the storage device MEM1 has 32 storage locations with the above 5 bits as address values, and each of them has B bits of the value of the function φ calculated in advance by equation (9) as data. It is stored in two's complement code. Therefore, the numerical table output φ j can be derived from the given five-dimensional vector (x j o , x j o-1 , x j o-2 , y j o-1 , y j o-2 ). , this is register R1
is accumulated in Next, the output of register R1 is the accumulator
Provided to adder ADS in ACC1, register R
Partial sum j-1j=1 φ j 2 j-1 (adder ADS
(the previous output shifted by one bit toward the lower bit) is added (this operation is called shift addition).

次に蓄積装置MEM1には新しいベクトル(xo j
+1、xj+1 o-1、xj+1 o-2、yj+1 o-1、yj+1 o-2)が与えら
れ、これ
に対応した数表出力φj+1が引出される。これが再
びレジスタR1を通して加算器ADSで、レジス
タR2に貯蔵されている部分和jj=1 φj2j-1とシフト
加算される。このような動作を(M−1)回繰返
し、M回目には(M−1)回シフト加算されて得
られた部分和M-1j=1 φj2j-1から、ベクトル(xM o
xM o-1、xM o-2、yM o-1、yM o-2)により蓄積装置MEM
1から引出された数表出力φMをレジスタR1を
通して加算器ADSで減算すれば、式(10)のフイル
タ出力yoが求められる。
Next, the new vector (x o j
+1 , x j+1 o-1 , x j+1 o-2 , y j+1 o-1 , y j+1 o-2 ) are given, and the corresponding numerical table output φ j+1 is be drawn out. This is shifted and added to the partial sum jj=1 φ j 2 j-1 stored in the register R2 by the adder ADS through the register R1 again. This operation is repeated (M - 1 ) times, and the vector ( x Mo ,
x M o-1 , x M o-2 , y M o-1 , y M o-2 )
If the numerical table output φ M drawn from 1 is subtracted by the adder ADS through the register R1, the filter output y o of equation (10) is obtained.

この例は上述の2進数の乗算器を用いる方法よ
りも回路構成が簡単になり、演算時間も速くなつ
ているが、加算器が減算も可能でなければならな
いので、まだ回路構成および制御が複雑であると
いう欠点がある。
Although this example has a simpler circuit configuration and faster calculation time than the method using a binary multiplier described above, the circuit configuration and control are still complex because the adder must also be capable of subtraction. It has the disadvantage of being.

このため、第2の従来例(特公昭53−30972号)
として、加算のみによりフイルタ出力を求める方
法について述べる。
For this reason, the second conventional example (Special Publication No. 53-30972)
A method for obtaining the filter output using only addition will be described below.

サンプル値Ziを ZiMj=1 Zj i2j-1 ………(11) なる形式をなす2進数で表わす。ただし、Zj iは0
または1である。
The sample value Z i is expressed as a binary number in the form Z i = Mj=1 Z j i 2 j-1 (11). However, Z j i is 0
or 1.

式(11)を式(3)に代入すると Y=N-1i=1 αiMj=0 Zj i2j-1Mj=1 2j-1 N-1j=1 αiZj i ……(12) となるので、数表出力φjおよび関数φを式(6)で定
義すると式(12)は Y=Mj=1 φ(Zj 0、Zj 0、…、Zj o-1)2j-1Mj=1 φj2j-1 ……(13) と表わされ、加算のみで減算を含んでいない。し
たがつて、式(13)は数表出力φjを順次M回シフ
ト加算することによりフイルタ出力Yが得られる
ことを示している。
Substituting equation (11) into equation (3), Y= N-1i=1 α iMj=0 Z j i 2 j-1 = Mj=1 2 j-1 N-1j= 1 α i Z j i ...(12) Therefore, if the numerical table output φ j and the function φ are defined by equation (6), equation (12) becomes Y= Mj=1 φ (Z j 0 , Z j 0 , ..., Z j o-1 ) 2 j-1 = Mj=1 φ j 2 j-1 ... (13), which includes only addition and does not include subtraction. Therefore, equation (13) indicates that the filter output Y can be obtained by sequentially shifting and adding the numerical table output φ j M times.

この例は加算器に減算を含める必要がないので
回路構成および制御も簡単になる。しかし、この
例がフイルタとして動作するためには、 () 式(11)から明らかなようにZiは非負(正また
は零)であること(使用できる信号に制御が課
せられる) () 非巡回形フイルタの場合にはZiは入力サン
プル値のみであるから入力サンプル値が非負で
あればよいが、巡回形の場合にはZi入力サンプ
ル値ばかりでなく出力サンプル値もあるから、
Ziが非負であると同時にフイルタ出力Yも非負
でなければならないこと、すなわちインパルス
応答が非負になるようなαiが必要であること 等に限られ、他の場合はフイルタ動作が不可能で
ある。したがつて、この例は極く限定された場合
しか適用できない。また実用的なフイルタとして
望まれる要件はデイジタル信号(サンプル値)も
アナログ信号と同様に正負両数を取り得る(正負
両符号)信号である。正信号のみをフイルタリン
グするとフイルタ出力のオーバーフローも大きく
なる。
In this example, since there is no need to include subtraction in the adder, the circuit configuration and control are also simplified. However, in order for this example to work as a filter, () Z i must be non-negative (positive or zero) as is clear from equation (11) (control is imposed on the signals that can be used) () Acyclic In the case of a type filter, Z i is only the input sample value, so it is sufficient if the input sample value is non-negative, but in the case of a cyclic type filter, there is not only the input sample value but also the output sample value, so
The only requirement is that Z i must be non-negative and the filter output Y must also be non-negative, that is, α i must be such that the impulse response is non-negative; in other cases, the filter cannot operate. be. Therefore, this example can only be applied in extremely limited cases. Further, a desirable requirement for a practical filter is that the digital signal (sample value) is a signal that can take on both positive and negative numbers (both positive and negative signs) similarly to analog signals. If only positive signals are filtered, the overflow of the filter output will also increase.

本発明の目的は、上記従来技術の欠点を改良
し、正負両符号の信号に対して使用可能であり、
かつ加算のみの演算によるデイジタルフイルタを
提供することにある。
An object of the present invention is to improve the drawbacks of the above-mentioned prior art, and to be usable for signals of both positive and negative signs.
Another object of the present invention is to provide a digital filter using only addition operations.

本発明の最も基本的な特徴は、式(5)の第2式の
右辺における減算を表わす第一項が変数ZM 0、ZM 1
…ZM N-1の関数になつていることに着目し、第一項
を定数に変換して、その定数を蓄積装置に貯蔵し
て引出すことによりフイルタ出力Yを加算のみの
演算で求めるようにしたものである。以下に本発
明について詳細に説明する。
The most basic feature of the present invention is that the first term representing subtraction on the right side of the second equation of equation (5) is the variable Z M 0 , Z M 1 ,
...Noting that it is a function of Z M N-1 , the first term is converted to a constant, and the constant is stored in the storage device and retrieved, thereby calculating the filter output Y using only addition. This is what I did. The present invention will be explained in detail below.

サンプル値Ziは正負両符号信号であるから前述
の2の補数コードで表わすと式(4)より Zi=−Zi M2M-1M-1j=1 Zi j2j-1 ……(4) である。前述のように式(4)を式(3)に代入すると式
(5)が導かれる。
Since the sample value Z i is a signal with both positive and negative signs, if it is expressed using the two's complement code mentioned above, then from equation (4) Z i = −Z i M 2 M-1 + M-1j=1 Z i j 2 j -1 ...(4). As mentioned above, substituting equation (4) into equation (3) yields equation
(5) is derived.

Y=−2M-1N-1i=0 αiZM iM-1j=1 2j-1 N-1i=0 αiZj i ……(5) ところで、留意すべきことは、 ZM iM i=1 ……(14) が恒等的に成り立つことである。ただし、i M
ZM iの否定を表わす。すなわち、ZM i=0のとき、
M i=1であり、ZM i=1のとき、M i=0である。
Y=−2 M-1N-1i=0 α i Z M i + M-1j=1 2 j-1 N-1i=0 α i Z j i ……(5) By the way, please note What should be done is to make sure that Z M i + M i =1 (14) holds true. However, i M is
Represents the negation of Z M i . That is, when Z M i =0,
Z M i =1, and when Z M i =1, M i =0.

式(14)よりZM i=1−M iであるから、式(5)に
代入すると Y=−2M-1 N-1i=0 αi(1−M i)+M-1j=1 2j-1 N-1i=0 αiZj i =−2M-1 N-1i=0 αiMj=1 2j-1 N-1i=0 αiZj i …(15) となる。ただし、 ZM i=△ M i ……(16) と定義する。式(16)は2の補数コードで表わさ
れたZiの極性ビツトを反転したものを改めてZM i
見なすことを示している。
From equation (14), Z M i =1- M i , so substituting into equation (5) yields Y=-2 M-1 N-1i=0 α i (1- M i ) + M-1j=1 2 j-1 N-1i=0 α i Z j i =−2 M-1 N-1i=0 α i + Mj=1 2 j-1 N-1i =0 α i Z j i …(15). However, it is defined as Z M i =△ M i ...(16). Equation (16) indicates that the polarity bit of Z i expressed in two's complement code is inverted and is regarded as Z M i again.

したがつて、数表出力φjを式(6)で定義し、数表
出力φM+1を φM+1=A=△−1/2N-1i=0 αi(定数) ……(17) と定義すると式(15)は Y=φM+12MMj=1 φj2j-1N+1j=1 φj2j-1 ……(18) となり、さらに式(18)は Y=〔φM+1+〔φM+…+〔φj+…+{φ3+(φ2
φ12-1)2-1}2-1…〕2-1…〕2-1…〕2M ……(19) とも表わされる。ここでは部分和Ψjを Ψj=△φj+〔φj-1+…+{φ3+(φ2 +φ12-1)2-1}2-1…〕2-1 ……(20) と定義すると Ψj=φj+Ψj-12-1 ……(21) が成り立つ。ただし、Ψ0=△0とする。
Therefore, the numerical table output φ j is defined by equation (6), and the numerical table output φ M+1 is φ M+1 = A=△−1/2 N-1i=0 α i (constant) ...(17) If we define Equation (15) as Y=φ M+1 2 M + Mj=1 φ j 2 j-1 = N+1j=1 φ j 2 j-1 ……( 18), and equation (18) is further calculated as Y=[φ M+1 +[φ M +...+[φ j +...+{φ 3 + (φ 2 +
It is also expressed as φ 1 2 -1 ) 2 -1 }2 -1 …〕2 -1 …〕2 -1 …〕2 M …(19). Here, the partial sum Ψ j is defined as Ψ j =△φ j + [φ j-1 +…+{φ 3 + (φ 21 2 -1 )2 -1 }2 -1 …] 2 -1 …( 20) Then, Ψ j = φ j + Ψ j-1 2 -1 ...(21) holds true. However, it is assumed that Ψ 0 =Δ0.

式(20)より式(19)は Y=ΨM+12M ……(22) と表わされる。 From equation (20), equation (19) is expressed as Y=Ψ M+1 2 M (22).

本発明は、式(16)〜(18)または式(16)、
(17)、(21)、(22)の演算原理を基礎におき、つ
ぎのような構成をその要旨とする。
The present invention provides formulas (16) to (18) or formula (16),
Based on the calculation principles of (17), (21), and (22), the following structure is the gist.

すなわち、Mビツトの2つの補数コードサンプ
ル値Ziの極性ビツトが反転されたサンプル値Zi
ZM i、ZM-1 i…Z2 iZ1 iをN個用意してN次元ベクトル
(Zj 0、Zj 1、…Zj N-1)を発生する。関数φおよび定
数Aの値が貯蔵してある蓄積装置を備え、この蓄
積装置からN次元の零ベクトルを除くベクトル
(Zj 0、Zj 1、…Zj N-1)をアドレス値として数表出力
φjを引出し、零ベクトルのアドレス値に対しては
零をシフト加算器(累算器)に加える。この動作
をM回繰返した後、(M+1)回目には蓄積装置
から定数Aを引出して累算器に加える。こうし
て、式(18)または式(22)によるフイルタ出力
Yが得られる。すなわち加算のみの演算によつて
もとの正負両符号のサンプル値Ziに対するフイル
タ出力Yが求まる。
That is, the sample value Z i = M-bit two's complement code sample value Z i with the polarity bit inverted.
N pieces of Z M i , Z M-1 i . . . Z 2 i Z 1 i are prepared to generate N-dimensional vectors (Z j 0 , Z j 1 , . . . Z j N-1 ). It is equipped with a storage device in which the values of the function φ and the constant A are stored, and vectors (Z j 0 , Z j 1 , ...Z j N-1 ) excluding N-dimensional zero vectors from this storage device are used as address values. Pull out the table output φ j and add zero to the shift adder (accumulator) for address values of zero vectors. After repeating this operation M times, the constant A is extracted from the storage device and added to the accumulator at the (M+1)th time. In this way, the filter output Y according to equation (18) or equation (22) is obtained. That is, the filter output Y for the original sample value Z i of both positive and negative signs is determined by the operation of addition only.

つぎに、図面に示した実施例について本発明を
具体的に説明する。なお、第2図および第3図の
実施例は、いずれも簡単のためにまた対比のため
に、前記第1図の場合と同様に式(8)で示される2
次の巡回形デイジタルフイルタを示す。したがつ
て、数表出力φjは式(9)で表わされ、または式
(17)は φM+1=A=−1/2(a0+a1+a2+b1+b2) ……(23) となり、式(18)と式(23)は等価であるので動
作説明の便宜上式(22)を用いるとフイルタ出力
yoは yo=ΨM+12M ……(24) となる。
Next, the present invention will be specifically described with reference to embodiments shown in the drawings. Note that in both the embodiments shown in FIGS. 2 and 3, for the sake of simplicity and for comparison, 2 expressed by equation (8) as in the case of FIG.
The following cyclic digital filter is shown. Therefore, the table output φj is expressed by equation (9), or equation (17) is φ M+1 =A=-1/2(a 0 +a 1 +a 2 +b 1 +b 2 )...( 23) Since Equation (18) and Equation (23) are equivalent, for convenience of explanation of operation, Equation (22) is used to calculate the filter output.
y o becomes y oM+1 2 M ……(24).

第1実施例について、第2図によつて説明す
る。
The first embodiment will be explained with reference to FIG.

第2図において、EOR1、EOR2は排他的論
理和、SR1〜SR3は直列形のシフトレジスタ、
PSRは並列入力−直列出力形のシフトレジスタ、
NOTは否定、ORは論理和、AND1〜AND5は
論理積、MEM2はROMもしくはRAM等の蓄積
装置、R1,R2はレジスタ、ADは加算器、
ACC2はADおよびR2からなり、ACC1と同様
にR2の出力を下位ビツト方向に1ビツトシフト
してADの入力に結線された累算器であつて図示
のごとく構成してある。第2図においては、サン
プル値xoの各ビツトは最下位ビツトを先頭に順次
直列にEOR1に印加され、極性ビツトの通過時
間に限り信号HMをハイレベルにすることにより
極性ビツトを反転して、xoの極性ビツトを反転し
たサンプル値x′oとしてシフトレジスタSR1に与
えられる。また同時に1サンプル時間遅延された
入力サンプル値x′o-1の各ビツトが順次シフトレ
ジスタSR1からSR2に移動していき、SR2か
らは2サンプル時間遅延された入力サンプル値
x′o-2の各ビツトが順次出てくる。x′、x′o-1およ
びx′o-2の各ビツトはそれぞれ順次論理積AND1
〜AND3を通して蓄積装置MEM2、および論
理和ORに与えられる。同様にして並列にシフト
レジスタPSRに貯蔵された1サンプル時間遅延
された出力サンプル値yo-1の各ビツトが順次直列
に前記と同様の極性ビツトを反転するための排他
的論理和EOR2を通つてyo-1の極性ビツトを反
転した1サンプル遅延された出力サンプル値
y′o-1としてシフトレジスタSR3へ移動していき、
SR3からは2サンプル時間遅延された出力サン
プル値y′o-2の各ビツトが順次出てくる。y′o-1
よびy′o-2の各ビツトはそれぞれ順次論理積AND
4およびAND5を通して蓄積装置MEM2、お
よび論理和ORに与えられる。蓄積装置MEM2
は、第1図に示されている蓄積装置MEM1にお
いて5次元の零ベクトル(0、0、0、0、0)
のアドレス値に貯蔵してある関数の値が零である
から、第2図に示されるようにこの記憶個所に式
(23)で表わされる定数Aの値をBビツトの2の
補数コードで貯蔵し、他の記憶個所は蓄積装置
MEM1と同じ内容を貯蔵している。したがつ
て、与えられた5次元ベクトル(xj o、xj o-1
xj o-2、yj o-1y、yj o-2)が零ベクトルに等しくない
ときには蓄積装置MEM2から数表出力φjを引出
し、レジスタR1に蓄積される。ベクトル(xj o
xj o-1、xj o-2、yj o-1、yj o-2)が零ベクトルに等しい
ときには論理和ORからのローレベル信号である
クリア信号によつてレジスタR1の内容を零にす
る。次にレジスタR1の出力は累算器ACC2中
の加算器ADに与えられ、レジスタR2に貯蔵さ
れている部分和Ψj-1とシフト加算される。
In Figure 2, EOR1 and EOR2 are exclusive OR, SR1 to SR3 are serial shift registers,
PSR is a parallel input-serial output type shift register.
NOT is negation, OR is logical sum, AND1 to AND5 is logical product, MEM2 is a storage device such as ROM or RAM, R1 and R2 are registers, AD is adder,
ACC2 consists of AD and R2, and like ACC1, it is an accumulator that shifts the output of R2 by one bit in the direction of the lower bit and is connected to the input of AD, and is constructed as shown in the figure. In Figure 2, each bit of the sample value xo is applied to EOR1 in series starting from the least significant bit, and the polarity bit is inverted by making the signal H M high level only during the transit time of the polarity bit. Then, the polarity bit of xo is inverted and the sample value x'o is provided to the shift register SR1. At the same time, each bit of the input sample value x'o -1 delayed by 1 sample time is sequentially moved from shift register SR1 to SR2, and from SR2 the input sample value delayed by 2 sample times is transferred from shift register SR1 to SR2.
Each bit of x′ o-2 comes out sequentially. Each bit of x', x'o -1 and x'o-2 is sequentially logical AND1
It is applied to the storage device MEM2 through AND3 and to the logical sum OR. Similarly, each bit of the output sample value y o -1 delayed by one sample time and stored in parallel in the shift register PSR is sequentially and serially passed through an exclusive OR EOR2 for inverting the polarity bit similar to the above. The output sample value is delayed by one sample with the polarity bit of y o-1 inverted.
Move to shift register SR3 as y′ o-1 ,
Each bit of the output sample value y'o -2 delayed by two sample times is sequentially output from SR3. Each bit of y′ o-1 and y′ o-2 is sequentially ANDed.
4 and AND5 to the storage device MEM2, and to the logical sum OR. Storage device MEM2
is a five-dimensional zero vector (0, 0, 0, 0, 0) in the storage device MEM1 shown in FIG.
Since the value of the function stored at the address value is zero, the value of the constant A expressed by equation (23) is stored in this storage location as a B-bit two's complement code, as shown in Figure 2. However, other storage locations are storage devices.
It stores the same contents as MEM1. Therefore, given five-dimensional vectors (x j o , x j o-1 ,
When x j o-2 , y j o-1 y, y j o-2 ) is not equal to a zero vector, the table output φ j is extracted from the storage device MEM2 and stored in the register R1. Vector (x j o ,
x j o-1 , x j o-2 , y j o-1 , y j o-2 ) is equal to a zero vector, the contents of register R1 are cleared by the clear signal, which is a low level signal from the logical OR. Make it zero. The output of register R1 is then applied to adder AD in accumulator ACC2, where it is shifted and added to the partial sum Ψ j-1 stored in register R2.

このような動作を(M−1)回繰返し、M回目
には信号HMがハイレベルのもとにEOR1および
EOR2により反転された極性ビツトを成分とす
るベクトル(xM o、xM o-1、xM o-2、yM o-1、yM o-2)につ
いて上記動作を行ない、(M+1)回目には信号
HM+1をハイレベルにして否定NOTから生じたロ
ーベル信号により論理積AND1〜AND5から零
ベクトルを発生させ、その零ベクトルをアドレス
値として蓄積装置MEM2から引出された数表出
力φM+1(すなわち定数A)がレジスタR1を通し
て加算器ADに与えられ、レジスタR2に貯蔵さ
れている部分和ΨMとシフト加算されることによ
り式(24)のフイルタ出力Yが求められる。
This operation is repeated (M-1) times, and at the Mth time, EOR1 and
The above operation is performed for the vector (x M o , x M o-1 , x M o-2 , y M o - 1 , y M o-2 ) whose components are the polarity bits inverted by EOR2, and (M+1) signal at the turn
When H M+1 is set to high level, a zero vector is generated from the logical products AND1 to AND5 by the low-bell signal generated from NOT, and the zero vector is used as an address value to output the numerical table output φ M+1 from the storage device MEM2. (ie, constant A) is given to adder AD through register R1, and is shifted and added to partial sum Ψ M stored in register R2, thereby obtaining filter output Y in equation (24).

また、第1実施例において累算器ACC2中の
レジスタR2を並列入力−並列出力形のシフトレ
ジスタに置換えてもよい。
Further, in the first embodiment, the register R2 in the accumulator ACC2 may be replaced with a parallel input-parallel output type shift register.

つぎに、第2実施例について、第3図によつて
説明する。
Next, a second embodiment will be explained with reference to FIG.

第3図は第2図と殆んど同じであるが、相異し
ているのは第2図の累算器ACC2の代りにレジ
スタR2を並列入力−並列出力形のシフトレジス
タPPRに置換した累算器ACC3が設けられてい
る点である。
Figure 3 is almost the same as Figure 2, but the difference is that instead of accumulator ACC2 in Figure 2, register R2 is replaced with a parallel input-parallel output type shift register PPR. The point is that an accumulator ACC3 is provided.

第3図の動作については第2図の場合と異なる
点についてのみ説明を与える。与えられた5次元
ベクトル(xj o、xj o-1、xj o-2、yj o-1、yj o-2)が零ベ
クトルに等しいときに、第2図では論理和ORか
らのクリア信号によつてレジスタR1の内容を零
にして、そのレジスタR1の出力を加算器ADに
加えているのに対して、第3図においては論理和
ORからのシフト信号によつて累算器ACC3中の
シフトレジスタPPRの内容を1ビツトシフトす
るだけで等価的に数表出力φjを零にしている。
Regarding the operation in FIG. 3, only the points different from those in FIG. 2 will be explained. When the given five-dimensional vector (x j o , x j o-1 , x j o-2 , y j o-1 , y j o-2 ) is equal to a zero vector, in Figure 2, the logical OR The contents of register R1 are set to zero by the clear signal from
By simply shifting the contents of the shift register PPR in the accumulator ACC3 by one bit using the shift signal from the OR, the table output φ j is equivalently made zero.

第2実施例は(M+1)回目に生ずるものを除
く零ベクトルに対しては加算を行なわないように
構成されているので、フイルタ出力Yを求めるた
めの演算時間が短縮できる。
Since the second embodiment is configured so that addition is not performed on zero vectors other than those occurring the (M+1)th time, the calculation time for obtaining the filter output Y can be shortened.

また、第2実施例において、レジスタR1を省
略し、蓄積装置MEM2と累算器ACC3とを直接
結線してもよい。
Furthermore, in the second embodiment, the register R1 may be omitted and the storage device MEM2 and the accumulator ACC3 may be directly connected.

第1実施例および第2実施例において、アドレ
ス値は5次元ベクトル(xj o、xj o-1、xj o-2、yj o-1
yj o-2)で定められていたが、一般的に5ビツトの
情報xj o、xj o-1、xj o-2、yj o-1、yj o-2の関数(xj o
xj o-1、xj o-2、yj o-1、yj o-2により定まるアドレス値)
として定めることもできる。
In the first and second embodiments, the address values are five-dimensional vectors (x j o , x j o-1 , x j o-2 , y j o-1 ,
y j o- 2 ) , but generally it is a function ( x j o ,
address value determined by x j o-1 , x j o-2 , y j o-1 , y j o-2 )
It can also be defined as

本発明によれば、式(16)、(17)、(18)または
式(16)、(17)、(21)、(22)を基本原理として採
用したから、上記実施例からも明らかなように、
正負両符号のサンプル値を、回路構成も制御も簡
単な加算のみによる演算によつてフイルタリング
ができるとともに、演算時間も短縮できるという
効果がある。
According to the present invention, since formulas (16), (17), (18) or formulas (16), (17), (21), and (22) are adopted as basic principles, it is clear from the above embodiments that like,
This has the effect that sample values of both positive and negative signs can be filtered by calculation using only addition with a simple circuit configuration and control, and the calculation time can also be shortened.

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

第1図は減算可能な加算器を用いた従来のデイ
ジタルフイルタの構成を示す図、第2図は第1図
の従来例と対比できる構成を有する本発明の一実
施例を示す図、第3図は本発明の他の実施例を示
す図である。 ADS:減算可能な加算器、AD:加算器、
MEM1,MEM2:蓄積装置、SR1〜SR3:
直列形のシフトレジスタ、PSR:並列入力−直
列出力形のシフトレジスタ、R1,R2:レジス
タ、PPR:並列入力−並列出力形のシフトレジ
スタ、EOR1,EOR2:排他的論理和、AND1
〜AND5:論理積、ACC1〜ACC3:累算器を
示す。
FIG. 1 is a diagram showing the configuration of a conventional digital filter using a subtractable adder, FIG. 2 is a diagram showing an embodiment of the present invention having a configuration that can be compared with the conventional example in FIG. The figure shows another embodiment of the invention. ADS: subtractable adder, AD: adder,
MEM1, MEM2: Storage device, SR1~SR3:
Serial type shift register, PSR: Parallel input-serial output type shift register, R1, R2: Register, PPR: Parallel input-parallel output type shift register, EOR1, EOR2: Exclusive OR, AND1
~AND5: indicates logical product, ACC1 to ACC3: indicates accumulator.

Claims (1)

【特許請求の範囲】 1 相継いで到来するN個の正負を含むMビツト
2進コードサンプル値Ziをフイルタし、 Y=N-1i=0 αiZi なる関数によつて表わされるフイルタ出力Yを出
力するデイジタルフイルタにおいて:該2進コー
ドサンプル値を受領し、極性を示すビツトのみを
選択的に反転する極性反転手段と;N個の極性反
転された2進コードサンプル値の各ビツトに対応
するNビツト情報を順次出力するベクトル発生手
段と;該Nビツト情報が所定ベクトルであること
を検出するベクトル検出手段と;所定アドレスに
は定数値Aを、それ以外のアドレスには係数αi
該Nビツト情報で定まる関数φとを蓄積する蓄積
装置と;該蓄積装置の出力φjと該ベクトル検出手
段の出力とを受領し、 該Nビツト情報が所定ベクトルでないとき Ψj=φj+Ψj-12-1 なる累算を行い、 該Nビツト情報が所定ベクトルであるとき Ψj=Ψj-12-1 なる計算を行う累算装置と; 該Nビツト情報を受領し、1≦j≦MのM回に
おいては該Nビツト情報が所定ベクトルでないと
き該Nビツト情報に対応する関数φを格納したア
ドレスを発生し、M+1回目には該所定アドレス
を発生するアドレス発生手段とを備えたことを特
徴とするデイジタルフイルタ。
[Claims] 1. Filter M-bit binary code sample values Z i containing N positive and negative values successively arriving, and express by a function Y= N-1i=0 α i Z i In a digital filter that outputs a filter output Y, a polarity inverting means receives the binary code sample value and selectively inverts only the bits indicating the polarity; Vector generating means for sequentially outputting N-bit information corresponding to each bit; Vector detecting means for detecting that the N-bit information is a predetermined vector; a storage device that stores a coefficient α i and a function φ determined by the N-bit information; receives an output φ j of the storage device and an output of the vector detection means; and when the N-bit information is not a predetermined vector, Ψ j = φ j + Ψ j-1 2 -1 , and when the N bit information is a predetermined vector, an accumulator that calculates Ψ j = Ψ j-1 2 -1 ; When the N-bit information is not a predetermined vector, an address storing the function φ corresponding to the N-bit information is generated M times when 1≦j≦M, and an address that stores the function φ corresponding to the N-bit information is generated at the M+1 time. A digital filter comprising a generating means.
JP4014680A 1980-03-31 1980-03-31 Digital filter Granted JPS56137725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4014680A JPS56137725A (en) 1980-03-31 1980-03-31 Digital filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4014680A JPS56137725A (en) 1980-03-31 1980-03-31 Digital filter

Publications (2)

Publication Number Publication Date
JPS56137725A JPS56137725A (en) 1981-10-27
JPS6347007B2 true JPS6347007B2 (en) 1988-09-20

Family

ID=12572626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4014680A Granted JPS56137725A (en) 1980-03-31 1980-03-31 Digital filter

Country Status (1)

Country Link
JP (1) JPS56137725A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58107713A (en) * 1981-12-22 1983-06-27 Nec Corp Digital filter
JPS5922428A (en) * 1982-07-28 1984-02-04 Anritsu Corp Digital filter
JPS6157109A (en) * 1984-08-28 1986-03-24 Mitsubishi Electric Corp Device changing smoothly digital quantity
JPH05225854A (en) * 1992-02-10 1993-09-03 Oi Masao Key board

Also Published As

Publication number Publication date
JPS56137725A (en) 1981-10-27

Similar Documents

Publication Publication Date Title
US3997773A (en) Interpolating digital filter with input buffer
JPS6354264B2 (en)
US3822404A (en) Digital filter for delta coded signals
JPS6037513B2 (en) digital circuit
US4398262A (en) Time multiplexed n-ordered digital filter
DK150875B (en) RECURSIVE DIGITAL FILTER
JPS6347007B2 (en)
US4048485A (en) Digital filter generating a discrete convolution function
US4142242A (en) Multiplier accumulator
JPS6336572B2 (en)
US4897654A (en) Digital-analog converting method, and apparatus therefor
JPS6351413B2 (en)
US4118784A (en) Differential DFT digital filtering device
JPS642246B2 (en)
JPS642244B2 (en)
JPS642245B2 (en)
JPS6351414B2 (en)
JPS6351415B2 (en)
JPS6351412B2 (en)
US5031137A (en) Two input bit-serial multiplier
JPS5841532B2 (en) Sekiwa Keisan Cairo
EP4336344A1 (en) Calculation unit for multiplication and accumulation operations
JPS59218031A (en) Signal processing circuit of combinational logic type
SU1756887A1 (en) Device for integer division in modulo notation
SU987804A1 (en) Device for computing digital filter coefficients