Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH04167170A - Multiplication/addition arithmetic circuit - Google Patents
[go: Go Back, main page]

JPH04167170A - Multiplication/addition arithmetic circuit - Google Patents

Multiplication/addition arithmetic circuit

Info

Publication number
JPH04167170A
JPH04167170A JP2295025A JP29502590A JPH04167170A JP H04167170 A JPH04167170 A JP H04167170A JP 2295025 A JP2295025 A JP 2295025A JP 29502590 A JP29502590 A JP 29502590A JP H04167170 A JPH04167170 A JP H04167170A
Authority
JP
Japan
Prior art keywords
overflow
multiplication
circuit
maximum
addition
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
JP2295025A
Other languages
Japanese (ja)
Inventor
Mitsuyoshi Fukuda
光芳 福田
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2295025A priority Critical patent/JPH04167170A/en
Publication of JPH04167170A publication Critical patent/JPH04167170A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To perform a multiplication/addition arithmetic operation continuously and at high speed by clipping a computed result to a positive maximum value when overflow occurs to a positive side and a value nearest to a negative maximum value expressible in an arithmetic and logical unit when the overflow occurs to a negative side. CONSTITUTION:When the overflow occurs, an overflow signal line 100 goes to '1'. An overflow clipping circuit 21, when detecting the fact that the overflow signal line 100 goes to '1', checks a code bit outputted from the arithmetic and logic unit(ALU) 15, and performs such control to input clipped data from a clip data input terminal 101 when the code bit shows '0', and to fix the output of each selector 22 at positive maximum value. Also, when the code bit shows '1', the output of each selector 22 in the overflow clipping circuit 21 is controlled so as to be fixed at the negative maximum value.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は乗加算演算回路、特に時系列で入力されるデー
タを所定のアルゴリズムに基づいて処理し、時系列デー
タとして出力するデジタル信号処理装置で用いられる乗
加算演算回路に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a multiplication/addition calculation circuit, particularly a digital signal processing device that processes data input in time series based on a predetermined algorithm and outputs it as time series data. This invention relates to multiplication and addition calculation circuits used in

[従来の技術] 従来アナログ信号をデジタル的な手法によって処理する
システムとしてデジタル信号処理装置(DSPシステム
:デジタル・シグナル・プロセシング・システム)が知
られている。
[Prior Art] Conventionally, a digital signal processing device (DSP system: digital signal processing system) is known as a system that processes an analog signal using a digital method.

デジタル信号処理装置はアナログ信号処理に比べ高精度
処理が可能で、パラメータの設定により任意の特性が安
定して均一に得られると共に、調整が不要になるなどの
特徴を有している。このため、デジタル信号処理装置の
応用範囲は音声信号処理や通信信号処理など広い範囲に
及んできている。
Digital signal processing devices are capable of highly accurate processing compared to analog signal processing, and have characteristics such as being able to stably and uniformly obtain arbitrary characteristics by setting parameters, and eliminating the need for adjustment. For this reason, the application range of digital signal processing devices has expanded to a wide range such as audio signal processing and communication signal processing.

通常、上述したデジタル信号処理装置はデジタルフィル
タを形成できるように第2図に示す構成を取っている。
Usually, the digital signal processing device described above has the configuration shown in FIG. 2 so as to form a digital filter.

図において、データバス11には、入出力回路(Ilo
)12、データRAM13、乗算器14、演算回路(A
LU)15、アキュムレータ(ACC)16等が接続さ
れている。また、データRAM13の出力とデータRO
M17の出力が乗算器14に接続され、乗算器14の乗
算結果出力が演算回路(ALU)15の一方の人力に接
続されている。
In the figure, the data bus 11 includes an input/output circuit (Ilo
) 12, data RAM 13, multiplier 14, arithmetic circuit (A
LU) 15, accumulator (ACC) 16, etc. are connected. In addition, the output of data RAM 13 and data RO
The output of M17 is connected to the multiplier 14, and the multiplication result output of the multiplier 14 is connected to one input of the arithmetic unit (ALU) 15.

これらの各回路は、プログラムROM18から順次読み
出される命令に応じて、デコーダ19によりデコードさ
れるマイクロコード信号によって制御されている。
Each of these circuits is controlled by a microcode signal decoded by a decoder 19 in accordance with instructions sequentially read from the program ROM 18.

そして、この種のデジタル信号処理装置のデジタルフィ
ルタの実現においては、 Y−A−Xi +B−Xi〜l+c−Xj−2・・・・
 (1) という形の乗加算演算が繰り返し行われる。
In realizing the digital filter of this type of digital signal processing device, Y-A-Xi +B-Xi~l+c-Xj-2...
(1) Multiplication and addition operations of the form are repeatedly performed.

従って、このデジタルフィルタをデジタル信号処理装置
で実現する場合には、フィルタ内の節点の計算順序を決
定して、プログラムを作成し、そのプログラムをプログ
ラムROM18に格納すると共に、データROMl7内
に各係数を格納しておく。そして、プログラムを実行す
ることにより、乗加算演算が行われ、その演算結果はデ
ータRAM1Bに順次記憶されるようにしておく。
Therefore, when realizing this digital filter with a digital signal processing device, the calculation order of the nodes in the filter is determined, a program is created, the program is stored in the program ROM 18, and each coefficient is stored in the data ROM 17. Store it. Then, by executing the program, multiplication and addition operations are performed, and the results of the operations are sequentially stored in the data RAM 1B.

上述のようなデジタルフィルタを実現するデジタル信号
処理装置において使用される乗加算演算回路では、扱う
データが2の補数である固定小数点演算を行い、第3図
に示すような数表現を取っている。
The multiplication/addition calculation circuit used in the digital signal processing device that implements the digital filter described above performs fixed-point calculations where the data handled is two's complement, and the number is expressed as shown in Figure 3. .

すなわち、この様な固定小数点演算回路における数体系
では扱うデータnは 1>n≧−1・ψ・・ (2) の範囲となる。従って、この様な固定小数点演算回路に
おける数体系では、負の最大値と負の最大値の乗算を行
った場合は、固定小数点演算回路で表現できる正の最大
値を越える。
That is, in the number system in such a fixed-point arithmetic circuit, the data n handled falls within the range of 1>n≧-1·ψ (2). Therefore, in such a number system in a fixed-point arithmetic circuit, when the maximum negative value is multiplied by the maximum negative value, the maximum positive value that can be expressed by the fixed-point arithmetic circuit is exceeded.

すなわち、負の最大値(−1)と負の最大値(−1)の
乗算は −IX−1−1 となるはずであるが、上記(2)式から明らかなように
、この演算器では正の1は扱えないので、オーバーフロ
ーが発生することになる。
In other words, the multiplication of the maximum negative value (-1) and the maximum negative value (-1) should be -IX-1-1, but as is clear from equation (2) above, in this arithmetic unit, Since positive 1 cannot be handled, an overflow will occur.

このオーバーフローに対して、従来のデジタル信号処理
装置では以下のような対策が取られていた。
Conventional digital signal processing devices have taken the following measures against this overflow.

■ 負の最大値×負の最大値の乗算はオーバーフローを
起こすのでこの組合せの乗算か行われないようにソフト
ウェアでガードする。
■ Since the multiplication of the maximum negative value x the maximum negative value will cause an overflow, the software is guarded to prevent multiplication of this combination.

■ 負の最大値×負の最大値の乗算が行われた場合にオ
ーバーフローフラグを発生させ、そのフラグをソフトウ
ェアで検出してオーバーフローデータを補正する。
■ Generate an overflow flag when the product is multiplied by the maximum negative value x the maximum negative value, detect the flag using software, and correct the overflow data.

■ 負の最大値×負の最大値の乗算が行われた場合に乗
算器回路において、ハードウェアで表現できる正の最大
値にクリップする。
■ When a multiplication of the maximum negative value x the maximum negative value is performed, the multiplier circuit clips to the maximum positive value that can be represented by hardware.

また、演算回路においても乗算器と同様にオーバーフロ
ーが発生する。演算回路におけるオーバーフローは、正
側のオーバーフローと負側のオーバーフローがある。一
般的に、演算回路の出力には、正側のオーバーフローに
対しては正の最大値を出力し、負側のオーバーフローに
対しては負の最大値を出力する回路が設けられている。
In addition, overflow occurs in the arithmetic circuit as well as in the multiplier. Overflow in an arithmetic circuit includes overflow on the positive side and overflow on the negative side. Generally, the output of the arithmetic circuit is provided with a circuit that outputs a maximum positive value in response to an overflow on the positive side, and outputs a maximum negative value in response to an overflow on the negative side.

上述した従来のデジタル信号処理装置でのオーバーフロ
一対策のうち、ソフトウェアによるオーバーフロ一対策
に付いて、第2図に示す従来のデジタル信号処理装置で
説明する。
Among the countermeasures against overflow in the conventional digital signal processing apparatus described above, overflow countermeasures using software will be explained using the conventional digital signal processing apparatus shown in FIG.

(1)式に示された乗算と加算を繰り返すことによって
デジタルフィルタを構成する場合を例にとって説明する
。まず、入力データx1と係数Aを乗算器14に入力し
、乗算を行う。この乗算のP果、オーバーフローがある
か否かを乗算器14のオーバーフローフラグによって判
定し、オーバーフローがなければ、乗算結果は演算回路
15を介してACC16に保持される。オーバーフロー
が発生、すなわち、負の最大値×負の最大値が行われた
ときは、乗算器14の出力の代わりに正の最大値が演算
回路15の入力に印加され、演算回路15を介してAC
C16に保持される。次に、データRAM1Bに記憶さ
れた1サンプル前の入力データx i−1と係数Bを乗
算器14で乗算する。
An example will be explained in which a digital filter is constructed by repeating the multiplication and addition shown in equation (1). First, input data x1 and coefficient A are input to the multiplier 14 and multiplied. Whether or not there is an overflow as a result of this multiplication is determined by the overflow flag of the multiplier 14. If there is no overflow, the multiplication result is held in the ACC 16 via the arithmetic circuit 15. When an overflow occurs, that is, when the maximum negative value is multiplied by the maximum negative value, the maximum positive value is applied to the input of the arithmetic circuit 15 instead of the output of the multiplier 14, and the A.C.
It is held at C16. Next, the multiplier 14 multiplies the input data x i-1 of the previous sample stored in the data RAM 1B by the coefficient B.

この乗算の結果も前述と同様にオーバーフローがあるか
否かが判定される。オーバーフローがなければ乗算結果
とACC176に保持された直前の乗算結果が演算回路
15によって加算される。この加算の結果、オバーフロ
ーがなければ加算結果がACC16に保持され、正のオ
ーバーフローがあると正の最大値がACC16に保持さ
れ、負のオーバーフローがあると負の最大値がACC1
6に保持される。同様の乗加算を繰り返すことにより、
ACC16には1段のフィルタ処理の施されたデータが
得られる。このデータは、次のサンプリングデータのフ
ィルタ処理のためにデータRAM13に記憶されると共
に、次の段のフィルタ処理の入力として乗算器14に印
加される。そして、前述と同様に2段目のフィルタ係数
との乗算及び加算が行われる。もちろん、各乗算結果の
出力時及び加算時にはオーバーフローの判定がなされる
It is determined whether or not there is an overflow in the result of this multiplication in the same way as described above. If there is no overflow, the arithmetic circuit 15 adds the multiplication result and the previous multiplication result held in the ACC 176. As a result of this addition, if there is no overflow, the addition result is held in ACC16, if there is a positive overflow, the maximum positive value is held in ACC16, and if there is a negative overflow, the maximum negative value is held in ACC16.
It is held at 6. By repeating similar multiplication and addition,
The ACC 16 obtains data that has been subjected to one stage of filter processing. This data is stored in the data RAM 13 for filtering the next sampling data, and is applied to the multiplier 14 as an input for the next stage of filtering. Then, multiplication and addition with the second-stage filter coefficient are performed in the same manner as described above. Of course, overflow is determined when outputting and adding each multiplication result.

このように乗算の結果、オーバーフローの発生の検出と
、その検出結果に従って、乗算器14の出力を正の最大
値(0,11111・・・1)として換算回路16に出
力することをソフトウェアによって行っていた。
In this way, the software detects the occurrence of overflow as a result of multiplication and outputs the output of the multiplier 14 as the maximum positive value (0, 11111...1) to the conversion circuit 16 according to the detection result. was.

[発明が解決しようとする課題] しかし、デジタル信号処理装置でデジタルフィルタを実
現するための演算を行なう場合、乗加算演算は連続的に
しかも高速で行うことが要求される。そして、前記のソ
フトウェアによるオーバーフロ一対策は、ソフトウェア
によるオーバーフローの検出、及び回避処理に時間がか
かり過ぎていた。
[Problems to be Solved by the Invention] However, when performing calculations for realizing a digital filter using a digital signal processing device, the multiplication and addition calculations are required to be performed continuously and at high speed. In addition, the above-mentioned software-based overflow countermeasure requires too much time for software-based overflow detection and avoidance processing.

従って、従来のデジタル信号処理装置においては、デジ
タルフィルタ等の乗加算演算時にその演算結果が次の被
乗数となることが多いため、オーバーフローによって演
算結果を負の最大に設定すると再び乗算器回路で負の最
大値X負の最大値の乗算が行われる可能性が高いこと、
乗加算演算は連続的にしかも高速で行うことが要求され
ることなどから、前記ソフトウェアによるオーバーフロ
一対策では、プログラム処理時間がかかり過ぎ、充分な
対応が取れないという問題があった。
Therefore, in conventional digital signal processing devices, when multiplication and addition operations are performed in digital filters, etc., the operation result often becomes the next multiplicand, so if the operation result is set to the maximum negative value due to overflow, the multiplier circuit will again that there is a high possibility that the multiplication of the maximum value x the negative maximum value will be performed;
Since multiplication and addition operations are required to be performed continuously and at high speed, the above-mentioned software measures against overflow have the problem of taking too much program processing time and not being able to provide sufficient countermeasures.

また、負の最大値X負の最大値の乗算が行われた場合に
、乗算器回路において表現できる正の最大値にハードウ
ェアによってクリップするという上記■の対策では、乗
算器回路が出力時にオーバーフローの有無を判断し、オ
ーバーフロー発生時には正の最大値にクリップするため
の、専用回路を必要とするので、回路規模や演算速度の
面で不利となるという問題点があった。
In addition, when the multiplication of the maximum negative value x the maximum negative value is performed, the countermeasure (2) above, in which hardware clips the maximum positive value that can be expressed in the multiplier circuit, causes the multiplier circuit to overflow at the output. Since this requires a dedicated circuit to determine the presence or absence of overflow and to clip to the maximum positive value when an overflow occurs, there is a problem in that it is disadvantageous in terms of circuit scale and calculation speed.

本発明は上記のような問題点を解消するためになされた
もので、負の最大値×負の最大値の乗算によるオーバー
フロー発生時に、正の最大値にクリップさせるための専
用回路を必要とすることかなく、かつ、乗加算演算か連
続的にしかも高速で行うことができ、回路規模や演算速
度の面でも充分要求を満足できるデジタル信号処理装置
の乗加算演算回路を得ることを目的としている。
The present invention was made to solve the above-mentioned problems, and requires a dedicated circuit to clip to the positive maximum value when an overflow occurs due to the multiplication of the negative maximum value x the negative maximum value. The purpose of this invention is to obtain a multiplication/addition operation circuit for a digital signal processing device that can perform multiplication/addition operations continuously and at high speed without any problems, and that satisfies requirements in terms of circuit size and operation speed. .

ここで、本発明者は従来のデジタル信号処理装置におけ
る加算器のオーバーフロー発生時のクリップ回路に着目
した。すなわち、従来のデジタル信号処理装置は、加算
処理においてもオーバーフローの発生する可能性がある
ので、 正側にオーバーフローした時は正の最大値負側にオーバ
ーフローした時は負の最大値にそれぞれクリップ回路を
有し、更に、クリップされたデータが再び被乗数となる
ことに着目し、本発明を完成した。
Here, the inventors of the present invention focused their attention on a clip circuit when an overflow occurs in an adder in a conventional digital signal processing device. In other words, in conventional digital signal processing devices, overflow may occur even in addition processing, so when an overflow occurs on the positive side, the maximum positive value is set, and when an overflow occurs on the negative side, the maximum negative value is clipped. The present invention was completed by noting that the clipped data becomes the multiplicand again.

[課題を解決するための手段」 本発明にかかる乗加算演算回路は、加算演算の結果オー
バーフローが発生した場合において、正側にオーバーフ
ローした時は正の最大値に、負側にオーバーフローした
時は該演算回路で表現できる負の最大値に最も近い負の
値に、演算結果をクリップするためのクリップ回路を有
することを特徴とする。
[Means for Solving the Problems] When an overflow occurs as a result of an addition operation, the multiplication/addition operation circuit according to the present invention returns to the maximum positive value when the overflow occurs to the positive side, and returns to the maximum positive value when the overflow occurs to the negative side. The present invention is characterized in that it includes a clipping circuit for clipping the calculation result to a negative value closest to the maximum negative value that can be expressed by the calculation circuit.

[作用] 従って、本発明の乗加算演算回路によれば、加算演算の
結果オーバーフローが発生した場合において、正側にオ
ーバーフローした時は正の最大値に、負側にオーバーフ
ローした時は該演算回路で表現できる負の最大値に最も
近い負の値に、演算結果がクリップされるので、加算結
果をフィードバックして乗算演算を行なうこの種の乗加
算演算回路では、負の最大値×負の最大値の乗算が行わ
れる可能性をなくすことができるようになる。
[Operation] Therefore, according to the multiplication and addition operation circuit of the present invention, when an overflow occurs as a result of an addition operation, when the overflow occurs to the positive side, the maximum positive value is returned, and when the overflow occurs to the negative side, the operation circuit returns to the maximum positive value. Since the calculation result is clipped to the negative value closest to the maximum negative value that can be expressed as This eliminates the possibility of value multiplication.

[実施例コ 以下、本発明の一実施例を図について説明する。[Example code] Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の乗加算演算回路のブロック図である。FIG. 1 is a block diagram of a multiplication/addition calculation circuit according to the present invention.

第1図において、本発明の乗加算演算回路は、乗算器1
4と、演算回路(ALU)15と、オーバーフロークリ
ップ回路21と、アキュムレータ(ACC)16とから
構成され、オーバーフロークリップ回路21は演算回路
(ALU)15から出力されるデータビット数に対応す
る複数のセレクタ22を有している。
In FIG. 1, the multiplication and addition calculation circuit of the present invention includes a multiplier 1
4, an arithmetic unit (ALU) 15, an overflow clip circuit 21, and an accumulator (ACC) 16. It has a selector 22.

そして、乗算器14の乗算結果出力は演算回路(ALU
)15の一方の入力に印可されている。
Then, the multiplication result output of the multiplier 14 is output from the arithmetic circuit (ALU).
) 15 is applied to one input.

また、オーバーフロークリップ回路21は演算回路(A
LU)15からの演算結果を入力し、加算演算の結果オ
ーバーフローが発生していない場合は、オーバーフロー
信号線100は”0″であるので、各セレクタ22は演
算回路(ALU)15の出力を選択してアキュムレータ
(ACC)16に入力するように動作する。
In addition, the overflow clip circuit 21 is an arithmetic circuit (A
When the calculation result from the LU) 15 is input and no overflow occurs as a result of the addition calculation, the overflow signal line 100 is "0", so each selector 22 selects the output of the calculation circuit (ALU) 15. and inputs it to the accumulator (ACC) 16.

一方、演算回路(ALU)15における演算の結果オー
バーフローが発生すると、オーバーフロー信号線100
が”1”となる。オーバーフロークリップ回路21は、
オーバーフロー信号線100が”1“であることを検出
すると、演算回路(ALU)15から出力された符号ビ
ットをチエツクして、符号ビットが”0”であれば、ク
リップデータ入力端子101からクリップデータを入力
し、各セレクタ22の出力を正の最大値(0゜1111
・・・1)に固定するように制御する。
On the other hand, when an overflow occurs as a result of an operation in the arithmetic unit (ALU) 15, the overflow signal line 100
becomes “1”. The overflow clip circuit 21 is
When it is detected that the overflow signal line 100 is "1", the sign bit output from the arithmetic unit (ALU) 15 is checked, and if the sign bit is "0", the clip data is output from the clip data input terminal 101. is input, and the output of each selector 22 is set to the maximum positive value (0°1111
...1) is controlled to be fixed.

また、符号ビットが#1”であれば、オーバーフローク
リップ回路21の各セレクタ22の出力は負の最大値(
1,000・・・01)に固定されように制御される。
Further, if the sign bit is #1'', the output of each selector 22 of the overflow clipping circuit 21 is the negative maximum value (
1,000...01).

すなわち、加算演算の結果オーバーフローか発生した場
合においては、正側にオーバーフローした時は正の最大
値に、負側にオーバーフローした時は負の最大値に最も
近い負の値に、演算結果がクリップされる。
In other words, if an overflow occurs as a result of an addition operation, the operation result will be clipped to the maximum positive value if it overflows to the positive side, and to the negative value closest to the maximum negative value if it overflows to the negative side. be done.

[発明の効果] 以上説明したように、本発明の乗加算演算回路によれば
、加算演算の結果オーバーフローが発生した場合におい
て、正側にオーバーフローした時は正の最大値に、負側
にオーバーフローした時は該演算回路で表現できる負の
最大値に最も近い負の値に、演算結果をクリップするク
リップ回路を有するように構成したので、加算結果をフ
ィードバックして乗算演算を行なうこの種の乗加算演算
回路では、負の最大値×負の最大値の乗算か行われる可
能性をなくすことができ、負の最大値×負の最大値の乗
算によるオーバーフロー発生時に正の最大値にクリップ
させるための専用回路を必要とすることがなく、かつ、
乗加算演算か連続的にしかも高速で行うことができ、回
路規模や演算速度の面でも充分要求を満足できるという
効果かある。
[Effects of the Invention] As explained above, according to the multiplication/addition operation circuit of the present invention, when an overflow occurs as a result of an addition operation, when the overflow occurs on the positive side, the overflow occurs to the maximum positive value, and when the overflow occurs on the negative side, the overflow occurs to the positive maximum value. When a calculation result is calculated, the calculation result is clipped to the negative value closest to the maximum negative value that can be expressed by the calculation circuit. In the addition calculation circuit, it is possible to eliminate the possibility of multiplication of the negative maximum value x the negative maximum value, and to clip it to the positive maximum value when an overflow occurs due to the multiplication of the negative maximum value x the negative maximum value. does not require a dedicated circuit, and
Multiplying and adding operations can be performed continuously and at high speed, which has the effect of satisfying requirements in terms of circuit scale and operation speed.

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

第1図は本発明の一実施例を示す乗加算演算回路のブロ
ック図、 第2図は従来のデジタルフィルタを形成するデジタル信
号処理装置のブロック図、 第3図はデジタルフィルタを実現するデジタル信号処理
装置において使用される演算回路(すなわち、乗加算演
算を行い、扱うデータか2の補数である固定小数点演算
回路)において取られる数表現を示す図である。 11 ・・・ データバス 12 ・・・ 入出力回路(I 10)13 ・・・ 
データRAM 14 ・・・ 乗算器 15 ・・・ 演算回路(A L U)16 ・・・ 
アキュムレータ(ACC)17 ・・・ データROM 18 ・・・ プログラムROM 19 ・・・ デコーダ 21 ・・・ オーバーフロークリップ回路22 ・・
・ セレクタ
Fig. 1 is a block diagram of a multiplication/add operation circuit showing an embodiment of the present invention, Fig. 2 is a block diagram of a digital signal processing device forming a conventional digital filter, and Fig. 3 is a digital signal realizing the digital filter. FIG. 2 is a diagram showing a numerical expression taken in an arithmetic circuit used in a processing device (that is, a fixed-point arithmetic circuit that performs multiplication-add operations and handles data as a two's complement number); 11... Data bus 12... Input/output circuit (I10) 13...
Data RAM 14... Multiplier 15... Arithmetic circuit (ALU) 16...
Accumulator (ACC) 17... Data ROM 18... Program ROM 19... Decoder 21... Overflow clip circuit 22...
・Selector

Claims (1)

【特許請求の範囲】 デジタルフィルタを実現するデジタル信号処理装置等に
おいて用いられ、乗加算演算を行う乗加算演算回路であ
って、 加算演算の結果オーバーフローが発生した場合において
、正側にオーバーフローした時は正の最大値に、負側に
オーバーフローした時は該演算回路で表現できる負の最
大値に最も近い負の値に、演算結果をクリップするため
のクリップ回路を有することを特徴とする乗加算演算回
路。
[Claims] A multiplication and addition calculation circuit used in a digital signal processing device etc. that realizes a digital filter and performing multiplication and addition operations, in which an overflow occurs as a result of the addition operation, and when an overflow occurs on the positive side. A multiplication/addition system characterized by having a clipping circuit for clipping the calculation result to the maximum positive value, and when overflowing to the negative side to the negative value closest to the maximum negative value that can be expressed by the calculation circuit. Arithmetic circuit.
JP2295025A 1990-10-31 1990-10-31 Multiplication/addition arithmetic circuit Pending JPH04167170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2295025A JPH04167170A (en) 1990-10-31 1990-10-31 Multiplication/addition arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2295025A JPH04167170A (en) 1990-10-31 1990-10-31 Multiplication/addition arithmetic circuit

Publications (1)

Publication Number Publication Date
JPH04167170A true JPH04167170A (en) 1992-06-15

Family

ID=17815356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2295025A Pending JPH04167170A (en) 1990-10-31 1990-10-31 Multiplication/addition arithmetic circuit

Country Status (1)

Country Link
JP (1) JPH04167170A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5508951A (en) * 1993-11-12 1996-04-16 Matsushita Electric Industrial Co., Ltd. Arithmetic apparatus with overflow correction means
US6282558B1 (en) 1997-12-19 2001-08-28 Matsushita Electric Industrial Co., Ltd. Data processing system and register file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5508951A (en) * 1993-11-12 1996-04-16 Matsushita Electric Industrial Co., Ltd. Arithmetic apparatus with overflow correction means
US6282558B1 (en) 1997-12-19 2001-08-28 Matsushita Electric Industrial Co., Ltd. Data processing system and register file
US6334135B2 (en) 1997-12-19 2001-12-25 Matsushita Electric Industrial Co., Ltd. Data processing system and register file

Similar Documents

Publication Publication Date Title
JPH07193467A (en) Adaptive filter correction coefficient arithmetic circuit
JPS62191926A (en) Arithmetic unit
KR900008410B1 (en) Method and apparatus for compensating for cutting error of sample signal
EP0197945A1 (en) A digital signal processor for single cycle multiply/accumulation
JPH04167170A (en) Multiplication/addition arithmetic circuit
JP3578793B2 (en) IIR ghost canceling system
JPH0519170B2 (en)
JPS62197868A (en) Linear approximation conversion circuit for pipeline construction
JP2609630B2 (en) Divider and division method
JP3064405B2 (en) Complex number processing
JPH09101877A (en) Multiplication operation method and multiplication operation device
JPH1079644A (en) Digital filter
JPS5952375A (en) Arithmetic device
JPH076159A (en) Method fna apparatus for normalization of component of complex signal
KR950010822B1 (en) Exclusive logic adding system and its method of binary level logic and multiple level logic
JPS63113757A (en) Operation circuit
KR940007927B1 (en) Multiplication circuit of digital filter
KR950010824B1 (en) Acceleration / deceleration control device of PLC positioning unit
KR100664017B1 (en) Apparatus for digital automatic gain control
JP3109080B2 (en) Word length limiting circuit
JPH06209234A (en) Digital filter
JPH0414173A (en) Fixed point product sum computing element
JPH04192910A (en) Digital signal processor
JPH05250400A (en) Difference absolute value arithmetic circuit
JPS60245046A (en) Logical shift arithmetic circuit