JP2821406B2 - Product-sum operation unit and digital filter circuit using the same - Google Patents

Product-sum operation unit and digital filter circuit using the same

Info

Publication number
JP2821406B2
JP2821406B2 JP30533395A JP30533395A JP2821406B2 JP 2821406 B2 JP2821406 B2 JP 2821406B2 JP 30533395 A JP30533395 A JP 30533395A JP 30533395 A JP30533395 A JP 30533395A JP 2821406 B2 JP2821406 B2 JP 2821406B2
Authority
JP
Japan
Prior art keywords
data
significant bit
carry
register
product
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 - Fee Related
Application number
JP30533395A
Other languages
Japanese (ja)
Other versions
JPH09146923A (en
Inventor
修 氏森
Original Assignee
日本電気アイシーマイコンシステム株式会社
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 日本電気アイシーマイコンシステム株式会社 filed Critical 日本電気アイシーマイコンシステム株式会社
Priority to JP30533395A priority Critical patent/JP2821406B2/en
Publication of JPH09146923A publication Critical patent/JPH09146923A/en
Application granted granted Critical
Publication of JP2821406B2 publication Critical patent/JP2821406B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は積和演算器に関し、
特にディジタル信号処理装置(DSP)等に用いられる
積和演算器に関する。
The present invention relates to a multiply-accumulate unit,
In particular, the present invention relates to a product-sum calculator used in a digital signal processor (DSP) and the like.

【0002】[0002]

【従来の技術】この種の積和演算器はDSPにを用いた
高速フーリエ変換やディジタルフィルタ生成のための累
積演算を行うため広く用いられている。従来の積和演算
器では累積等のため乗算結果を加算器に入力するとき、
これら乗算結果と加算器の各々のデータの語長を合わせ
るため、乗算結果のうち加算器データ長からはみだす分
の下位ビット列を切捨てる丸め処理をしていた。
2. Description of the Related Art This type of sum-of-products arithmetic unit is widely used for performing a fast Fourier transform using a DSP and an accumulation operation for generating a digital filter. In the conventional product-sum operation unit, when the multiplication result is input to the adder due to accumulation or the like,
In order to match the word length of each of the data of the adder with the result of the multiplication, a rounding process is performed in which the lower-order bit string of the multiplication result that protrudes from the data length of the adder is truncated.

【0003】一般的な従来の第1の積和演算器をブロッ
クで示す図5(A)を参照すると、この従来の第1の積
和演算器は、乗数Aと被乗数Bとを乗算し乗算結果Mを
出力する乗算器1と、乗数A,被乗数Bをそれぞれ格納
する乗数レジスタ2,被乗数3と、乗算結果Mを一時格
納し丸め処理した加数データUMを出力するバッファ用
の乗算結果レジスタ101と、加数データUMを累算し
加算結果ADを出力する加算器6と、加算結果ADを格
納する加算結果レジスタ9とを備える。
Referring to FIG. 5A, which shows a block diagram of a general conventional first product-sum operation unit, this conventional first product-sum operation unit multiplies a multiplier A by a multiplicand B and performs multiplication. Multiplier 1 for outputting result M, multiplier register 2 for storing multiplier A and multiplicand B respectively, multiplicand 3, and multiplication result register for buffer for temporarily storing multiplication result M and outputting rounded addend data UM 101, an adder 6 for accumulating the addend data UM and outputting an addition result AD, and an addition result register 9 for storing the addition result AD.

【0004】次に、図5(A)を参照して、従来の第1
の積和演算器の動作について説明すると、乗算器1はレ
ジスタ2,3の各々から乗数A,被乗数Bの供給を受け
所定の乗算を実行し、乗算結果Mを乗算結果レジスタ1
01に格納する。加算器6は乗算結果レジスタ101か
らこの加算器のデータ長と同一データ長の上位ビット列
すなわち加数データUMの供給を受け、加算結果レジス
タ9の出力データAAと加算し、新たな加算データAD
を加算結果レジスタ9に格納する。一方、乗算結果レジ
スタ101に格納された乗算結果Mのうち加数データU
Mより下位の下位ビット列LMは切捨てる。
[0004] Next, referring to FIG.
The multiplier 1 receives supply of the multiplier A and the multiplicand B from each of the registers 2 and 3 and executes a predetermined multiplication.
01 is stored. The adder 6 receives, from the multiplication result register 101, a higher-order bit string having the same data length as that of the adder, that is, the addend data UM, and adds the output data AA of the addition result register 9 to the new addition data AD.
Is stored in the addition result register 9. On the other hand, among the multiplication results M stored in the multiplication result register 101, the addend data U
Lower bit strings LM lower than M are discarded.

【0005】しかし、この従来の第1の積和加算器の演
算方法では加数データUMに含まれる切り捨て誤差は常
に負の方向に分布するため、加算を行うたびに加算結果
に上記切り捨て誤差が累積し極めて大きくなるという問
題があった。
However, in the conventional method of calculating the first product-sum adder, the truncation error included in the addend data UM is always distributed in the negative direction. There has been a problem that the accumulation becomes extremely large.

【0006】この問題に対して、上記累積誤差をいかに
して小さくするかという試みが開示されている。例え
ば、特開昭62−216072号公報記載の従来の第2
の積和演算器は、切り捨て誤差となるビット列のうち一
部のビット列を保持するバッファを持ち、それを加算器
で別に累積加算することで繰り上がり時に発生するキャ
リーを積和演算に代入し、繰り上がり加算するものであ
る。
[0006] To solve this problem, an attempt to reduce the accumulated error has been disclosed. For example, the conventional second device described in Japanese Patent Application Laid-Open No. Sho 62-216072.
Has a buffer that holds a part of the bit string that becomes a truncation error, and accumulates it separately by an adder to substitute the carry generated at the time of carry up into the product-sum operation, Carry-up addition is performed.

【0007】従来の第2の積和演算器を図5(A)と共
通の構成要素には共通の参照文字/数字を付して同様に
ブロックで示す図5(B)を参照すると、上述の第1の
積和演算器との相違点は、乗算結果Mのうちの切捨て対
象の下位ビット列LMの一部のビット列Lmを保持する
バッファ111を有する乗算結果レジスタ102と、ビ
ット列Lmを累算し繰上がり時に発生するキャリーCを
加算器6に供給する加算器103とを備えることであ
る。
Referring to FIG. 5B, which shows the second conventional product-sum operation unit in common with FIG. 5A by using the same components as those in FIG. Are different from the first sum-of-products arithmetic unit in that a multiplication result register 102 having a buffer 111 for holding a part of the lower bit string LM to be truncated in the multiplication result M and a bit string Lm are accumulated. And an adder 103 for supplying the carry C generated at the time of carry-up to the adder 6.

【0008】これにより、この従来の第2の積和演算器
では内部バス、中間データ・バッファ、加算器のそれぞ
れのデータ語長を増やすことなく、切り捨て誤差の累積
を低減した積和演算が得られる。
Thus, in the second conventional product-sum operation unit, a product-sum operation in which the accumulation of truncation errors is reduced can be obtained without increasing the data word lengths of the internal bus, the intermediate data buffer, and the adder. Can be

【0009】上述したように、この種の積和演算器はそ
の機能を応用してディジタル信号処理を用いたフィルタ
回路すなわちディジタルフィルタ回路における積分処理
に用いることが一般的に知られている。
As described above, it is generally known that this type of product-sum operation unit is applied to an integration process in a filter circuit using digital signal processing, that is, a digital filter circuit, by applying its function.

【0010】一般的なディジタルフィルタ回路のシグナ
ルフローを示す図4(B)を参照すると、このシグナル
フローは、乗算201と、加算202と、1時遅延20
3とを含み、加算202と一時遅延203とは累算ルー
プを構成している。この種のディジタルフィルタ回路
は、限られた時間内ではなく理論的には無限の、実際に
は回路が動作を開始して停止するまで連続する積和演算
が行われる場合が多い。ここでは、切り捨て誤差が加算
結果のなかに累積され、積和演算の結果に無視できない
誤差として現れるという問題がある。
Referring to FIG. 4B, which shows a signal flow of a general digital filter circuit, the signal flow includes a multiplication 201, an addition 202, and a one-time delay 20.
3, the addition 202 and the temporary delay 203 constitute an accumulation loop. This type of digital filter circuit often performs a product-sum operation that is theoretically infinite, not within a limited time, but actually continues until the circuit starts and stops. Here, there is a problem that the truncation error is accumulated in the addition result and appears as a nonnegligible error in the result of the product-sum operation.

【0011】[0011]

【発明が解決しようとする課題】上述した従来の第1の
積和演算器は、回路規模の増大を避けるためと、入力デ
ータの分解能を超えた演算精度を重視しないこととか
ら、加算器の入力の加数データ語長が乗算結果より短い
もので構成されているので、上記乗算結果の下位ビット
列を切捨てる丸め処理により語長を合せた上記加数デー
タを生成するため切捨て誤差を生じるが、2進演算にお
ける切捨て誤差はデータの符号と無関係に常に負の極性
を有するため、積和演算ではその反復回数が多いほど切
捨て誤差も大きく累積されるという欠点があった。
The above-mentioned first product-sum operation unit of the prior art has the following problems. To avoid an increase in the circuit scale and not to attach importance to the operation accuracy exceeding the resolution of the input data, Since the input addend data word length is shorter than the result of the multiplication, the rounding process for cutting off the lower bit string of the multiplication result generates the addend data whose word length is adjusted by the rounding process, so that a truncation error occurs. Since the truncation error in the binary operation always has a negative polarity irrespective of the sign of the data, the product-sum operation has a disadvantage that the greater the number of repetitions, the larger the truncation error is accumulated.

【0012】また、この改善を図った従来の第2の積和
演算器も、切捨て誤差の極性は変らないのでやはり積和
演算の反復回数が多くなると切捨て誤差も大きく累積さ
れるという欠点があった。
Also, the conventional second sum-of-products arithmetic unit designed to improve this problem has a drawback that the truncation error is largely accumulated as the number of times of the sum-of-products operation is increased since the polarity of the truncation error does not change. Was.

【0013】本発明の目的は、積和演算処理の実行時に
発生する誤差が一定の極性に偏ることを解消し、精度良
く積和演算を実行する積和演算器を提供することにあ
る。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a product-sum calculator that eliminates an error generated during execution of a product-sum operation and is biased to a certain polarity, and that performs a product-sum operation with high accuracy.

【0014】[0014]

【課題を解決するための手段】本発明の積和演算器は、
乗数と被乗数とを乗算し乗算結果を出力する乗算器と、
前記乗算結果の予め定めた上位ビット列を加数とし前回
の加算結果を被加数として加算し累積加算結果を出力す
る加算器と、前記累積加算結果を保持する加算結果レジ
スタとを備える積和演算器において、前記乗算結果の前
記上位ビット列を除いた切捨て対象の下位ビット列の最
上位ビットを供給する最上位ビット供給手段を備え、前
記加算器が、前記最上位ビットの供給に応答してこの最
上位ビットを桁上げ信号として桁上げ加算をすることを
特徴とするものである。
According to the present invention, a multiply-accumulate unit according to the present invention comprises:
A multiplier that multiplies the multiplier by the multiplicand and outputs a multiplication result;
A product-sum operation comprising: an adder that adds a predetermined higher-order bit string of the multiplication result as an addend, adds the previous addition result as an augend, and outputs a cumulative addition result, and an addition result register that holds the cumulative addition result An adder for supplying the most significant bit of a lower bit string to be truncated except for the upper bit string of the multiplication result, wherein the adder responds to the supply of the most significant bit to supply the most significant bit. It is characterized in that carry addition is performed using the upper bit as a carry signal.

【0015】[0015]

【発明の実施の形態】次に、本発明の実施の形態を図4
(A)と共通の構成要素は共通の文字を付して同様にブ
ロックで示す図1を参照すると、この図に示す本実施の
形態の積和演算器は、従来と共通の乗算器1と、乗数レ
ジスタ2と、被乗数レジスタ3と、加算器6と、加算結
果レジスタ9とに加えて、乗算結果Mの上位ビット列す
なわち加数データUMを一時格納するバッファ用の上位
レジスタ4と、切捨て対象の下位ビット列データLMを
格納する下位レジスタ5と、加算の実行によって更新さ
れたキャリーフラグFを直後の加算実行時まで保持する
フラグレジスタ7と、選択ステート信号Sの値に応答し
てレジスタ5に保持された下位ビット列データLMの最
上位ビットMBまたはキャリーフラグFのいずれかを選
択しキャリービットCとして加算器6に供給するマルチ
プレクサ8とを備える。なお加算器6は、一般の数値演
算器である従来の第2の積和演算器の加算器6と同様に
加算の際にキャリービットCを同時加算すなわち桁上げ
加算する機能を備えている。
FIG. 4 shows an embodiment of the present invention.
Referring to FIG. 1, in which the same components as those in FIG. 1A are denoted by the same characters and similarly denoted by blocks, the product-sum operation unit according to the present embodiment shown in FIG. , A multiplier register 2, a multiplicand register 3, an adder 6, and an addition result register 9, an upper register 4 for a buffer for temporarily storing an upper bit string of the multiplication result M, that is, the addend data UM, A lower register 5 for storing the lower bit string data LM, a flag register 7 for holding the carry flag F updated by the execution of the addition until the immediately following addition, and a register 5 in response to the value of the selection state signal S. A multiplexer 8 for selecting either the most significant bit MB of the held lower bit string data LM or the carry flag F and supplying it as a carry bit C to the adder 6. That. The adder 6 has a function of simultaneously adding carry bits C, that is, carry-up addition at the time of addition, similarly to the adder 6 of the second conventional product-sum operation unit, which is a general numerical operation unit.

【0016】次に、図1を参照して本実施の形態の動作
について説明すると、説明の便宜上、選択ステート信号
Sは’1’でありマルチプレクサ8に対しその入力とし
て下位レジスタ5の最上位ビットMBを選択しキャリー
ビットCとして出力するよう指示しているものとする。
まず、乗算器1はレジスタ2,3の各々から乗数A,被
乗数Bの供給を受け所定の乗算を実行し、乗算結果Mの
うちの上位ビット列すなわち加数データUMを上位レジ
スタ4に下位ビット列LMを下位レジスタ5にそれぞれ
転送・格納する。次に、上位レジスタ4から加数データ
UMを加算結果レジスタ9から被加数AAを加算器6に
供給する。加算器6はこれら被加数AA,加数データU
MとキャリービットCとを加算する。この加算結果AD
は加算結果レジスタ9に転送され1回の積和演算を終了
する。最上位ビットMBすなわちキャリービットCが’
1’となる確率は0.5であるからキャリービットCに
よる桁上げ加算の確率も0.5となる。
Next, the operation of this embodiment will be described with reference to FIG. 1. For convenience of explanation, the selection state signal S is "1", and the most significant bit of the lower register 5 is input to the multiplexer 8 as an input thereto. It is assumed that an instruction has been given to select an MB and output it as carry bit C.
First, the multiplier 1 receives a supply of the multiplier A and the multiplicand B from each of the registers 2 and 3 and executes a predetermined multiplication. The higher bit sequence of the multiplication result M, that is, the addend data UM is stored in the upper register 4 in the lower bit sequence LM. Is transferred and stored in the lower register 5 respectively. Next, the addend data UM is supplied from the upper register 4 and the addend AA is supplied to the adder 6 from the addition result register 9. The adder 6 calculates the addend AA and the addend data U
Add M and carry bit C. This addition result AD
Is transferred to the addition result register 9 to end one product-sum operation. The most significant bit MB, that is, carry bit C
Since the probability of 1 'is 0.5, the probability of carry addition by carry bit C is also 0.5.

【0017】また、選択ステート信号Sが’0’のとき
は、マルチプレクサ8はキャリーフラグFを選択しキャ
リービットCとして供給するので、従来の積和加算器と
同様の動作となる。
When the selection state signal S is "0", the multiplexer 8 selects the carry flag F and supplies it as the carry bit C, so that the operation is the same as that of the conventional product-sum adder.

【0018】1回の積和演算につき累積される誤差の分
布を示す図2(A),(B)を参照すると、1回当りの
累積誤差は、加算結果ADの最下位ビットの重みを1,
切捨てられるビット数をn,誤差をeとすると、(A)
に示す従来の第1の積和演算器による演算すなわちキャ
リービットによる桁上げ加算を行わない場合の−(1−
-n)≦e≦0に対し、本実施の形態の積和演算器を用
いて桁上げ加算を行った場合は(B)に示すように−
(0.5−2-n)/2≦e≦0.5となる。このよう
に、従来負方向だけに分布していた誤差が正負にわたっ
て分布するようになり、積和演算1回につき累積される
誤差の平均は、桁上げ加算を行わない場合の−(1−2
-n)/2に対し、桁上げ加算を行った場合では2-(n+1)
となる。
Referring to FIGS. 2A and 2B showing the distribution of errors accumulated for one product-sum operation, the accumulated error per operation is obtained by adding the weight of the least significant bit of the addition result AD to 1 ,
Assuming that the number of bits to be truncated is n and the error is e, (A)
In the case where the operation by the conventional first product-sum operation unit shown in FIG.
When the carry-add operation is performed using the product-sum operation unit of this embodiment with respect to 2 −n ) ≦ e ≦ 0, as shown in FIG.
(0.5-2- n ) /2≦e≦0.5. As described above, the error that has conventionally been distributed only in the negative direction is now distributed in the positive and negative directions, and the average of the error accumulated per product-sum operation is-(1-2) when the carry addition is not performed.
-n ) / 2, when carry addition is performed, 2- (n + 1)
Becomes

【0019】したがって、乗算結果の上位ビット列であ
る加数データの語長の乗算結果全体の語長との差が2ビ
ット以上であれば累積誤差の削減効果を得ることが出来
る。
Therefore, if the difference between the word length of the addend data, which is the higher-order bit string of the multiplication result, and the word length of the entire multiplication result is 2 bits or more, the effect of reducing the accumulated error can be obtained.

【0020】例として、積和演算器が乗数,被乗数であ
る入力16ビット,乗算結果出力31ビットの乗算器と
入力16ビットの加算器で構成される場合、切捨てビッ
ト数は15ビットとなり、桁上げ加算を行わない場合の
積和演算1回あたりの平均誤差−(1−2-15 )/2に
対し本発明の積和演算器で桁上げ加算を行った場合では
平均誤差2-16 と従来の約6/100000と大幅に低
減できる。
As an example, if the multiply-accumulate unit is composed of a multiplier of 16 bits as the multiplier and the multiplicand, a multiplier of 31 bits of the multiplication result output and an adder of 16 bits of the input, the number of truncated bits is 15 bits, and average error per product-sum operation one case without increasing addition - and (1-2 -15) / mean error 2 -16 in the case of performing the carry adder 2 to the product-sum operation unit of the present invention It can be greatly reduced to about 6 / 100,000 in the past.

【0021】次に、本発明の第2の実施の形態を図1と
共通の構成要素は共通の文字を付して同様にブロックで
示す図3を参照すると、本実施の形態の前述の第1の実
施の形態との相違点は、選択ステート信号Sを保持する
選択ステート信号レジスタ10をさらに備えることであ
る。
Next, referring to FIG. 3, which shows the second embodiment of the present invention in the same manner as in FIG. The difference from the first embodiment is that a selection state signal register 10 for holding a selection state signal S is further provided.

【0022】これにより、一旦供給された選択ステート
信号Sを再度新たな選択ステート信号Sの供給されるま
で保持し、この保持したステート信号Sをマルチプレク
サ8に連続的に供給する。
As a result, the selection state signal S once supplied is held until a new selection state signal S is supplied again, and the held state signal S is continuously supplied to the multiplexer 8.

【0023】次に、本発明の第3の実施の形態であるデ
ィジタルフィルタをブロックで示す図4(A)を参照す
ると、このディジタルフィルタは本発明の積和演算器2
1を利用したものであり、積和演算器21と、演算の実
行とデータの入出力と転送を指定する命令コードを記憶
する命令ROM22と、命令ROM22の内容を制御信
号にデコードする命令デコーダ23と、制御信号にした
がってデータの記憶を行うデータRAM24と、主にフ
ィルタ係数などに用いる定数を記憶するデータROM2
5と、装置内部のデータ転送に用いる信号路である内部
データバス26とを備える。
Next, referring to FIG. 4A, which shows a block diagram of a digital filter according to a third embodiment of the present invention, this digital filter is a product-sum calculator 2 of the present invention.
1, an instruction ROM 22 for storing an instruction code for designating execution of operation, input / output and transfer of data, and an instruction decoder 23 for decoding the contents of the instruction ROM 22 into control signals. A data RAM 24 for storing data in accordance with a control signal, and a data ROM 2 for storing constants mainly used for filter coefficients and the like.
5 and an internal data bus 26 which is a signal path used for data transfer inside the device.

【0024】本実施の形態のディジタルフィルタのシグ
ナルフローを示す図4(B)を参照すると、このシグナ
ルフローは、乗算201と、加算202と、1時遅延2
03とを含み、加算202と一時遅延203とは累算ル
ープを構成している。
Referring to FIG. 4B, which shows the signal flow of the digital filter according to the present embodiment, the signal flow includes a multiplication 201, an addition 202, and a one-time delay of two.
03, and the addition 202 and the temporary delay 203 form an accumulation loop.

【0025】積和演算器21は命令デコーダ23から供
給される制御信号にしたがってデータROM25,デー
タRAM24および内部データバス26から入力された
データを用い、図4(B)のシグナルフローにそれぞれ
対応した演算を行う。
The product-sum operation unit 21 uses the data input from the data ROM 25, the data RAM 24 and the internal data bus 26 in accordance with the control signal supplied from the instruction decoder 23, and corresponds to the signal flow of FIG. Perform the operation.

【0026】これにより所望の特性のディジタルフィル
タを実現できる。
Thus, a digital filter having desired characteristics can be realized.

【0027】[0027]

【発明の効果】以上説明したように、本発明の積和演算
器は、切捨て対象の下位ビット列の最上位ビットを供給
する最上位ビット供給手段を備え、この最上位ビットを
キャリービットとして桁上げ加算を行うことにより、誤
差が正負に均等に分布するため反復計算による累積誤差
が大幅に低減でき、精度の良い演算結果が得られるとい
う効果がある。
As described above, the multiply-accumulate unit according to the present invention includes the most significant bit supply means for supplying the most significant bit of the lower bit string to be truncated, and carries the most significant bit as a carry bit. By performing the addition, the errors are evenly distributed in the positive and negative directions, so that the accumulated error due to the repetitive calculation can be greatly reduced, and there is an effect that an accurate calculation result can be obtained.

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

【図1】本発明の積和演算器の第1の実施の形態を示す
ブロック図である。
FIG. 1 is a block diagram illustrating a first embodiment of a product-sum operation unit according to the present invention.

【図2】本実施の形態の積和演算器における誤差および
従来の切捨て誤差をそれぞれ示す説明図である。
FIG. 2 is an explanatory diagram showing an error in the product-sum operation unit of the present embodiment and a conventional truncation error.

【図3】本発明の積和演算器の第2の実施の形態を示す
ブロック図である。
FIG. 3 is a block diagram showing a second embodiment of the product-sum operation unit of the present invention.

【図4】本発明の第3の実施の形態のディジタルフィル
タを示すブロック図およびシグナルフロー図である。
FIG. 4 is a block diagram and a signal flow diagram showing a digital filter according to a third embodiment of the present invention.

【図5】従来の第1および第2のの積和演算器の一例を
それぞれ示すブロック図である。
FIG. 5 is a block diagram showing an example of first and second conventional product-sum calculators, respectively.

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

1 乗算器 2 乗数レジスタ 3 被乗数レジスタ 4 上位レジスタ 5 下位レジスタ 7 フラグレジスタ 9 加算結果レジスタ 6 加算器 8 マルチプレクサ 10 選択ステート信号レジスタ 21 積和演算器 22 命令ROM 23 命令デコーダ 24 データRAM 25 データROM 26 内部データバス 101,102 乗算結果レジスタ DESCRIPTION OF SYMBOLS 1 Multiplier 2 Multiplier register 3 Multiplicand register 4 Upper register 5 Lower register 7 Flag register 9 Addition result register 6 Adder 8 Multiplexer 10 Selection state signal register 21 Multiply-accumulator 22 Instruction ROM 23 Instruction decoder 24 Data RAM 25 Data ROM 26 Internal data bus 101, 102 Multiplication result register

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 17/10 H03H 17/02 681 H03H 17/06 641 H03H 17/06 655 JICSTファイル(JOIS)Continued on the front page (58) Fields investigated (Int.Cl. 6 , DB name) G06F 17/10 H03H 17/02 681 H03H 17/06 641 H03H 17/06 655 JICST file (JOIS)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 乗数と被乗数とを乗算し乗算結果を出力
する乗算器と、前記乗算結果の予め定めた上位ビット列
を加数とし前回の加算結果を被加数として加算し累積加
算結果を出力する加算器と、前記累積加算結果を保持す
る加算結果レジスタとを備える積和演算器において、 前記乗算結果の前記上位ビット列を除いた切捨て対象の
下位ビット列の最上位ビットを供給する最上位ビット供
給手段を備え、 前記加算器が、前記最上位ビットの供給に応答してこの
最上位ビットを桁上げ信号として桁上げ加算をすること
を特徴とする積和演算器。
1. A multiplier for multiplying a multiplier and a multiplicand to output a multiplication result, and adding a predetermined upper bit sequence of the multiplication result as an addend and adding a previous addition result as an addend and outputting a cumulative addition result. And an addition result register for holding the cumulative addition result, wherein the most significant bit supply for supplying the most significant bit of the lower bit string to be truncated excluding the upper bit string of the multiplication result Means, wherein the adder performs carry addition using the most significant bit as a carry signal in response to the supply of the most significant bit.
【請求項2】 前記最上位ビット供給手段が、前記最上
位ビットを保持する最上位ビットレジスタと、 選択制御信号に応答して前記最上位ビットと前記加算器
から出力される桁上げフラグとのいずれか一方を選択的
に前記桁上げ信号として前記加算器に供給するマルチプ
レクサとを備えることを特徴とする請求項1記載の積和
演算器。
2. An apparatus according to claim 1, wherein said most significant bit supply means includes a most significant bit register for holding said most significant bit, and a most significant bit and a carry flag output from said adder in response to a selection control signal. 2. The multiply-accumulate operation unit according to claim 1, further comprising: a multiplexer that selectively supplies one of the carry signals as the carry signal to the adder.
【請求項3】 前記選択制御信号を保持する選択信号レ
ジスタを備えることを特徴とする請求項2記載の積和演
算器。
3. The sum-of-products arithmetic unit according to claim 2, further comprising a selection signal register for holding the selection control signal.
【請求項4】 演算の実行とデータの入出力と転送を指
定する命令コードを記憶する命令ROMと、 前記命令ROMの内容を制御信号にデコードする命令デ
コーダと、 前記制御信号にしたがってデータの記憶を行うデータR
AMと、 定数を記憶するデータROMと、 前記制御信号にしたがって前記データROM,データR
AMおよび外部入力データを用い予め定めたシグナルフ
ローにそれぞれ対応した演算を行うため請求項1記載の
積和演算器とを備えることを特徴とするディジタルフィ
ルタ回路。
4. An instruction ROM for storing an instruction code for designating execution of operation, input / output and transfer of data, an instruction decoder for decoding the contents of the instruction ROM into a control signal, and storing data according to the control signal. R to perform
AM, a data ROM for storing constants, the data ROM and data R according to the control signal.
A digital filter circuit comprising: the product-sum operation unit according to claim 1 for performing an operation corresponding to each of a predetermined signal flow using AM and external input data.
JP30533395A 1995-11-24 1995-11-24 Product-sum operation unit and digital filter circuit using the same Expired - Fee Related JP2821406B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30533395A JP2821406B2 (en) 1995-11-24 1995-11-24 Product-sum operation unit and digital filter circuit using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30533395A JP2821406B2 (en) 1995-11-24 1995-11-24 Product-sum operation unit and digital filter circuit using the same

Publications (2)

Publication Number Publication Date
JPH09146923A JPH09146923A (en) 1997-06-06
JP2821406B2 true JP2821406B2 (en) 1998-11-05

Family

ID=17943861

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30533395A Expired - Fee Related JP2821406B2 (en) 1995-11-24 1995-11-24 Product-sum operation unit and digital filter circuit using the same

Country Status (1)

Country Link
JP (1) JP2821406B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7177000B2 (en) * 2019-05-16 2022-11-22 日立Astemo株式会社 Arithmetic device and method

Also Published As

Publication number Publication date
JPH09146923A (en) 1997-06-06

Similar Documents

Publication Publication Date Title
KR100239029B1 (en) Result normalizer and method of operation
US20170139677A1 (en) Multiplication of first and second operands using redundant representation
US6128726A (en) Accurate high speed digital signal processor
US5426600A (en) Double precision division circuit and method for digital signal processor
JP3529828B2 (en) Population count calculator
US20170139673A1 (en) Redundant representation of numeric value using overlap bits
US6941334B2 (en) Higher precision divide and square root approximations
US5648924A (en) Method and apparatus for finding arctangents
JP2000122850A (en) Floating-point computation implementing method
JP2821406B2 (en) Product-sum operation unit and digital filter circuit using the same
JPH07234778A (en) Arithmetic circuit
US20170293467A1 (en) Apparatus and method for supporting a conversion instruction
KR100317767B1 (en) Floating point binary quad word format multiply instruction unit
JPH09231201A (en) Floating point multiplication accumulation device
JPH0519170B2 (en)
JP3579087B2 (en) Arithmetic unit and microprocessor
JPH0831024B2 (en) Arithmetic processor
US5646876A (en) Method and apparatus for reducing rounding error when evaluating binary floating point polynomials
Osorio et al. New arithmetic coder/decoder architectures based on pipelining
JP3336986B2 (en) Signal processor and multiply-accumulate unit with rounding function used therefor
KR100315303B1 (en) Digital signal processor
JP2608090B2 (en) High radix non-restoring divider
JP3201097B2 (en) Multiplication prescription method in multiplier
JP2508286B2 (en) Square root calculator
JPH11353157A (en) Cumulative adding circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980728

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees