JPH0444411A - Arithmetic method for digital filter - Google Patents
Arithmetic method for digital filterInfo
- Publication number
- JPH0444411A JPH0444411A JP15237290A JP15237290A JPH0444411A JP H0444411 A JPH0444411 A JP H0444411A JP 15237290 A JP15237290 A JP 15237290A JP 15237290 A JP15237290 A JP 15237290A JP H0444411 A JPH0444411 A JP H0444411A
- Authority
- JP
- Japan
- Prior art keywords
- data
- coefficient
- multiplied
- filter
- rom
- 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
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
「産業上の利用分野」
本発明は係数格納用ROMを有するディジタルフィルタ
の演算方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a calculation method for a digital filter having a ROM for storing coefficients.
「従来の技術」
ディジタルフィルタにおいて、フィルタ係数精度を上げ
るにはまず第1に係数格納用ROMのビット数を上げる
ことが考えられるが、ROMの容量が増加するのであま
り好ましくない、第2に浮動小数点演算方法により行な
う方法があるが、処理が複雑するという問題がある。"Prior Art" In digital filters, in order to increase the precision of filter coefficients, the first step is to increase the number of bits in the coefficient storage ROM, but this is not so desirable as it increases the ROM capacity. There is a method using a decimal point arithmetic method, but there is a problem that the processing is complicated.
この浮動小数点演算方法についてさらに詳しく説明する
。This floating point arithmetic method will be explained in more detail.
例えば、7タツプのディジタルフィルタで、ROMビッ
ト数が4、フィルタ係数がA1=A7=0.1、A 2
= A 6 =−0,2、A3=A5=0.3、A4
=0.6とする。MSBとMSB−1ビツトの間に小数
点をもつ4ビツトデータにまるめこむと、乗算係数はつ
ぎのようになる。For example, in a 7-tap digital filter, the number of ROM bits is 4, the filter coefficients are A1=A7=0.1, A2
= A 6 = -0,2, A3=A5=0.3, A4
=0.6. When rounded to 4-bit data with a decimal point between the MSB and MSB-1 bits, the multiplication coefficient becomes as follows.
A 1 = A 7 = OOO1(0,125)A2
=A6=1110 (−0,25)A 3 = A
5 = 0010 (0,25)A 4 = 010
1 (0,625)係数データは2の補数表示である
。A 1 = A 7 = OOO1 (0,125) A2
=A6=1110 (-0,25)A3=A
5 = 0010 (0,25)A 4 = 010
1 (0,625) Coefficient data is expressed in two's complement.
フィルタ係数がこのままで演算する場合の回路が第3図
である。この第3図において、データが入力端子(1)
に入力すると、データ遅延回路(2)((21)〜(2
7))に−時記憶されたデータがそれぞれ係数ROM(
3) ((AI)〜(A7))の係数と乗算され、これ
を加算回路(4)で加算して出力端子(5)から出力す
る。FIG. 3 shows a circuit for calculating the filter coefficients as they are. In this figure 3, data is input terminal (1)
data delay circuit (2) ((21) to (2
7)) The data stored in the coefficient ROM (
3) Multiplied by the coefficients ((AI) to (A7)), added by the adder circuit (4), and output from the output terminal (5).
「発明が解決しようとする課題」
この第3図の場合、係数が0.1は0.125.−0.
2は−O,ZS、0.3は0.25.0.6は0.62
5としであるため。"Problem to be Solved by the Invention" In the case of this Figure 3, the coefficient is 0.1, which is 0.125. -0.
2 is -O, ZS, 0.3 is 0.25, 0.6 is 0.62
Because it is 5.
精度はあまりよくない、そこで、このデータ精度を2倍
にするため1ビット上げA1=A7=0.25、A 2
= A 6 =−0,375、A3=A5=0.62
5. A4= 0.125 X 101とすると、A4
だけが4ピツトでは表現できなくなる。そこで、第4図
に示すように、係数ROM (3)から指数情報ビット
をシフトレジスタ(6)へ送り、Al、A2.A3.A
5.A6.A7については係数を2倍にして乗算器(7
)でデータRA M (9)のデータと乗算し、それを
シフトレジスタ(6)で十にする。またA4についてだ
けは2倍にしないもとのままの係数を乗算器(7)でデ
ータと乗算し、シフトレジスタ(6)で十にせずにその
ままのデータを出力する。これらを加算回路(4)で加
算し出力する。The accuracy is not very good, so to double the accuracy of this data, increase it by 1 bit A1 = A7 = 0.25, A 2
= A6 = -0,375, A3=A5=0.62
5. If A4 = 0.125 x 101, then A4
The only thing that can't be expressed with 4 pits. Therefore, as shown in FIG. 4, the exponent information bits are sent from the coefficient ROM (3) to the shift register (6), Al, A2. A3. A
5. A6. For A7, double the coefficient and use the multiplier (7
) by the data in the data RAM (9), and the shift register (6) sets it to ten. For A4, the multiplier (7) multiplies the data with the original coefficient, which is not doubled, and the shift register (6) outputs the data as is without being multiplied by 10. These are added by an adder circuit (4) and output.
このようにすることによって、精度を上げることができ
るが、シフトレジスタを必要とし、しかも処理が複雑に
なる。By doing this, accuracy can be improved, but a shift register is required and processing becomes complicated.
本発明は、シフトレジスタを付加することなく係数精度
アップできる方法を得ることを目的とするものである。An object of the present invention is to provide a method that can improve coefficient accuracy without adding a shift register.
「課題を解決するための手段」
本発明は複数タップのディジタル信号に、係数ROM中
の各タップ毎のフィルタ係数を乗算し、これらを加算器
で加算して出力を得るようにしたディジタルフィルタに
おいて、前記係数ROMのフィルタ係数を、ビット数を
越えない範囲内でn倍してデータと乗算し、ビット数を
越えるフィルタ係数はそのままでデータと乗算した後n
回加算し、これらを加算した後、古に除算して出力を得
るようにした方法である。"Means for Solving the Problem" The present invention provides a digital filter in which a digital signal of multiple taps is multiplied by a filter coefficient for each tap in a coefficient ROM, and these are added by an adder to obtain an output. , the filter coefficient of the coefficient ROM is multiplied by n within the range not exceeding the number of bits and multiplied by the data, and the filter coefficients exceeding the number of bits are left unchanged and multiplied by the data, and then n
In this method, the sum is added twice, and after the addition, the output is obtained by dividing the sum.
「作用」
例えば7タツプのディジタルフィルタにおいて、AI、
A2.A3.A5.A6.A7が2倍しても係数ROM
のビット数が変らず、A4だけが変るものとする。この
ような場合、Al、A2.A3.A5、A6.A7を2
倍にしたB 1.B 2.B 3.B 5゜B 6.B
7の係数を得てデータと乗算する。A4については2
倍にせずそのままA4の係数をデータと乗算し1乗算後
の同一データを2回加算する。"Function" For example, in a 7-tap digital filter, AI,
A2. A3. A5. A6. Even if A7 is doubled, the coefficient ROM
Assume that the number of bits does not change, and only A4 changes. In such a case, Al, A2. A3. A5, A6. A7 2
Doubled B 1. B2. B 3. B 5゜B 6. B
Get a coefficient of 7 and multiply by the data. 2 for A4
Without doubling, the data is directly multiplied by the coefficient of A4, and the same data after being multiplied by 1 is added twice.
このようにして全データを加算した後、十に除算すると
精度アップが図られる。After adding all the data in this way, the accuracy can be improved by dividing by ten.
「実施例」
以下、本発明の一実施例として前記同様の例によって説
明する。"Example" Hereinafter, an example similar to the above will be described as an example of the present invention.
例えば、7タツプのディジタルフィルタとし。For example, consider a 7-tap digital filter.
係数ROM (3)のビット数を4.フィルタ係数をA
1=A7=0.1、A 2 =A 6 =−0,2、A
3=A5=0.3、A4=0.6とする。The number of bits of coefficient ROM (3) is set to 4. Set the filter coefficient to A
1=A7=0.1, A2=A6=-0,2,A
3=A5=0.3, A4=0.6.
ここで、データ精度を1ビット上げるため、A1からA
7まですべてを2倍にすると、A4についてだけ4ビツ
トでは表現できなくなる。そこで。Here, in order to increase the data accuracy by 1 bit, from A1 to A
If you double everything up to 7, only A4 can no longer be expressed with 4 bits. Therefore.
Al、A2.A3.A5.A6.A7については2倍処
理をしてそれぞれB 1.B 2.B 3.B 5.B
6゜B7とする。そしてA4についてはそのままとし
て、加算処理の時点でA4とデータとの乗算データを2
回加算する。Al, A2. A3. A5. A6. A7 is processed twice and B1. B2. B 3. B5. B
6°B7. Then, while A4 is left as is, the multiplication data of A4 and data is 2 at the time of addition processing.
Add times.
すなわち、第1図において、入力端子(1)に入力した
7タツプデータは、データ遅延回路(2)((21)〜
(27) )で遅延される。そしてこのうちデータ遅延
回路(21) (22) (23) (25) (26
) (27)のデータは係数ROM (Bl) (B2
) (B3) (B5) (B6) (B7)にて2倍
(MSB側へ1ビツトシフト)した係数と乗算される。That is, in FIG. 1, the 7 tap data input to the input terminal (1) is sent to the data delay circuit (2) ((21) to
(27) ) is delayed. Of these, data delay circuits (21) (22) (23) (25) (26
) (27) data is coefficient ROM (Bl) (B2
) (B3) (B5) (B6) Multiplyed by the coefficient doubled (shifted by 1 bit to the MSB side) in (B7).
データ遅延回路(24)のデータだけが係数ROM (
A4)の2倍しないそのままの係数と乗算される。Only the data of the data delay circuit (24) is stored in the coefficient ROM (
A4) is multiplied by the same coefficient that is not doubled.
そして2倍した係数との乗算データは1回分だけ、また
2倍しない係数との乗算データは2回それぞれ加算回路
(4)で加算される。この加算回路(4)のデータは除
算器(8)で十に除算されて出力端子(5)から出力す
る。Then, the multiplication data with the doubled coefficient is added once, and the multiplication data with the non-doubled coefficient is added twice, respectively, in the adding circuit (4). The data of this adder circuit (4) is divided by ten by a divider (8) and outputted from an output terminal (5).
第1図の実施例では7タツプのフィルタの場合であるが
、第2図は乗算器(7)を利用した一般的な回路を示し
、このような回路例ではより効果的である。The embodiment shown in FIG. 1 is for a 7-tap filter, but FIG. 2 shows a general circuit using a multiplier (7), which is more effective in such a circuit example.
r発明の効果」
本発明は上述のような演算方法としたので、シフトレジ
スタを付加することなく、演算精度を向上させることが
できるという効果を有する。Effects of the Invention Since the present invention employs the calculation method as described above, it has the effect that calculation accuracy can be improved without adding a shift register.
第1図は本発明のディジタルフィルタの演算方法を具体
化する第1実施例のブロック図、第2図は本発明の他の
実施例のブロック図、第3図および第4図はそれぞれ従
来の方法を説明するためのブロック図である。
(1)・・・入力端子、(2) ((21)〜(27)
)・・・データ遅延回路、 (3) ((AI)〜(
A7) )・・・係数ROM、(4)・・・加算回路、
(5)・・・出力端子、(6)・・・シフトレジスタ、
(7)・・・乗算器、(8)・・・除算器、(9)・・
・データRAM、(21) (22) (23) (2
5) (26) (27)・・・データ遅延回路、(B
1) (B2) (B3) (B5) (B6) (B
7)・・・係数ROM、(24)・・・データ遅延回路
。
第
図FIG. 1 is a block diagram of a first embodiment embodying the digital filter calculation method of the present invention, FIG. 2 is a block diagram of another embodiment of the present invention, and FIGS. FIG. 2 is a block diagram for explaining the method. (1)...Input terminal, (2) ((21) to (27)
)...Data delay circuit, (3) ((AI)~(
A7) )... Coefficient ROM, (4)... Addition circuit,
(5)...output terminal, (6)...shift register,
(7)... Multiplier, (8)... Divider, (9)...
・Data RAM, (21) (22) (23) (2
5) (26) (27)...Data delay circuit, (B
1) (B2) (B3) (B5) (B6) (B
7) Coefficient ROM, (24) Data delay circuit. Diagram
Claims (1)
各タップ毎のフィルタ係数を乗算し、これらを加算器で
加算して出力を得るようにしたディジタルフィルタにお
いて、前記係数ROMのフィルタ係数を、ビット数を越
えない範囲内でn倍してデータと乗算し、ビット数を越
えるフィルタ係数はそのままでデータと乗算した後n回
加算し、これらを加算した後、1/nに除算して出力を
得るようにしたことを特徴とするディジタルフィルタの
演算方法。(1) In a digital filter in which a multi-tap digital signal is multiplied by a filter coefficient for each tap in a coefficient ROM and an adder adds these to obtain an output, the filter coefficients in the coefficient ROM are Multiply by n times within the range that does not exceed the number of bits and multiply by data. Filter coefficients exceeding the number of bits are multiplied by data as is, then added n times, and after adding these, divide by 1/n and output. A method of calculating a digital filter, characterized in that it obtains the following.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2152372A JP3053637B2 (en) | 1990-06-11 | 1990-06-11 | Calculation method of digital filter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2152372A JP3053637B2 (en) | 1990-06-11 | 1990-06-11 | Calculation method of digital filter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0444411A true JPH0444411A (en) | 1992-02-14 |
| JP3053637B2 JP3053637B2 (en) | 2000-06-19 |
Family
ID=15539090
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2152372A Expired - Lifetime JP3053637B2 (en) | 1990-06-11 | 1990-06-11 | Calculation method of digital filter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3053637B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6155689B2 (en) | 2013-02-22 | 2017-07-05 | 株式会社ニコン | Authentication apparatus and authentication method |
-
1990
- 1990-06-11 JP JP2152372A patent/JP3053637B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP3053637B2 (en) | 2000-06-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5726924A (en) | Exponentiation circuit utilizing shift means and method of using same | |
| US5255216A (en) | Reduced hardware look up table multiplier | |
| JP3000325B2 (en) | Finite impulse response digital filter | |
| JP2004005662A (en) | Circuit, system, and method for calculating approximate value of logarithm, inverse logarithm, and reciprocal | |
| US4430721A (en) | Arithmetic circuits for digital filters | |
| EP0137816A1 (en) | Apparatus for generating scaled weighting coefficients for sampled data filters | |
| JP2544326B2 (en) | Digital filter | |
| US6370556B1 (en) | Method and arrangement in a transposed digital FIR filter for multiplying a binary input signal with tap coefficients and a method for designing a transposed digital filter | |
| TWI386845B (en) | Error calculation of the integer division operation circuit | |
| JP2822399B2 (en) | Logarithmic function arithmetic unit | |
| JPH01209529A (en) | Arithmetic unit for inverse trigonometrical function | |
| US20210064340A1 (en) | Arithmetic circuit | |
| JPH0831776B2 (en) | Digital filter | |
| Muscedere et al. | On efficient techniques for difficult operations in one and two-digit DBNS index calculus | |
| Juang et al. | Multifunction RNS modulo (2 n±1) multipliers based on modified booth encoding | |
| JP3053637B2 (en) | Calculation method of digital filter | |
| JP2000183753A (en) | Signal conversion device and signal conversion method | |
| JPS63113757A (en) | Operation circuit | |
| JPH0720047B2 (en) | Digital Filter | |
| JPH09186554A (en) | Digital filter | |
| JPH059031U (en) | High precision filter device | |
| KR100395511B1 (en) | Method of construction of parallel In-Output multiplier over Galois Field | |
| JP2883494B2 (en) | Digital filter | |
| JPH0374530B2 (en) | ||
| JPH074658Y2 (en) | Logarithmic conversion circuit |