JPH044464A - Accumulator - Google Patents
AccumulatorInfo
- Publication number
- JPH044464A JPH044464A JP2408820A JP40882090A JPH044464A JP H044464 A JPH044464 A JP H044464A JP 2408820 A JP2408820 A JP 2408820A JP 40882090 A JP40882090 A JP 40882090A JP H044464 A JPH044464 A JP H044464A
- Authority
- JP
- Japan
- Prior art keywords
- adder
- input
- register
- data string
- input terminal
- 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
Links
Landscapes
- Complex Calculations (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
[0001] [0001]
この発明は、固定小数点演算方式のデジタル演算回路に
関するものであり、特にデータ列の総和を演算し、さら
に有効ビット長に丸め演算を行う累算器に関するもので
ある。
[0002]The present invention relates to a fixed-point arithmetic digital arithmetic circuit, and more particularly to an accumulator that calculates the sum of a data string and further performs a rounding operation to an effective bit length. [0002]
デジタル演算を行う演算装置においては、データ列DI
(n): (n=1〜N)の総和を求める演算(累
算)が頻出する。特に、デジタル信号処理においては、
畳み込み演算、マトリクス演算等、累算が頻出する。こ
のとき、固定小数点演算方式の累算器においては、演算
誤差を最小にするために、加算器およびレジスタのビッ
ト幅を入力データのビット幅よりオーバーフローが起こ
らないように大きく設計してあり、演算結果DOを精度
良く有限のビット幅で、たとえば入力データ列と同じビ
ット幅で表現するため、丸め演算(四捨五入、ここでは
O捨1人)が行われる。なお、丸め演算とは、累算結果
に2 を加算し、加算結果をシフタで右シフトして2
の桁以上の下位ビットを切り捨てる演算をいい、累算の
回数と最終出力のビット幅が決まれば、丸め演算の桁m
も決定されるものである。
[0003]
図5は従来の累算器の一構成例を示すブロック図であり
、1は累算用の加算器2はレジスタ、3はリセット回路
、4は丸め演算用の加算器、5は右シフトを行うシフタ
である。
ここで、加算器1,4.レジスタ2およびシフタ5のビ
ット幅は、前述のように入力DIのビット幅より大きく
設計されている。
[0004]
以下に、図5の累算器の動作を図6の動作タイミング図
を参照しながら説明する。
図5の加算器1には、図6(b)に示す入力データ列D
I (n): (n=1〜N)と図6 (C)に示す
レジスタ2の出力Q (n); (n=1〜N)とが
図6 (a)に示すクロックに同期して一方および他方
の入力端子にそれぞれ順次入力される。加算された結果
A (n); (n=1〜N)がレジスタ2に入力さ
れ、つぎのクロックで順次取り込まれる。すなわち、Q
(n)=A (n−1)である。
[0005]
以上の一連の演算により、入力データ列DI (n)
の累算が行われる。ただしレジスタ2は、リセット回路
3の制御により、予めII O11すなわちQ (0)
=0にリセットされていなければならない。
以上の演算により、入力データ列DI (n)の総和
がレジスタ2の出力Q (N)として求められるが、前
述のように精度良く有限のビット長で表現するため、丸
め演算(四捨五入)が必要である。すなわち、2 を加
算して、2 の桁以下の下位ビットを切り捨てる演算が
必要である。このような丸め演算を行うために累算用の
加算器1とは別の丸め演算用の加算器4を設け、この加
算器4でレジスタ2に得られている入力データ列DI
(n)の総和つまり出力Q (N)と、丸め演算用の
加算データR(R=2)とを加算する。そして、この演
算結果(図6 (d)参照)をシフタ5で右シフトして
、2 の桁以下の下位ビットを切り捨てる演算を行って
出力するようにしている(図6(e)参照)。
[0006]In an arithmetic unit that performs digital arithmetic, the data string DI
(n): An operation (accumulation) that calculates the sum of (n=1 to N) occurs frequently. Especially in digital signal processing,
Accumulation is frequently used in convolution operations, matrix operations, etc. At this time, in fixed-point arithmetic accumulators, in order to minimize calculation errors, the bit width of the adder and register is designed to be larger than the bit width of the input data so that overflow does not occur. In order to accurately represent the result DO with a finite bit width, for example, with the same bit width as the input data string, a rounding operation (rounding to the nearest whole number, here one O) is performed. Note that the rounding operation involves adding 2 to the cumulative result, shifting the addition result to the right using a shifter, and adding 2 to the accumulated result.
This is an operation in which the lower bits of digits or more are rounded down. Once the number of accumulations and the bit width of the final output are determined, the number of digits m of rounding operations is
is also determined. [0003] FIG. 5 is a block diagram showing an example of the configuration of a conventional accumulator, in which 1 is an adder for accumulation, 2 is a register, 3 is a reset circuit, 4 is an adder for rounding operations, and 5 is an adder for accumulation. This is a shifter that performs a right shift. Here, adders 1, 4 . The bit widths of register 2 and shifter 5 are designed to be larger than the bit width of input DI, as described above. [0004] The operation of the accumulator in FIG. 5 will be described below with reference to the operation timing diagram in FIG. 6. The adder 1 in FIG. 5 has an input data string D shown in FIG. 6(b).
I (n): (n = 1 to N) and the output Q (n); (n = 1 to N) of register 2 shown in Figure 6 (C) are synchronized with the clock shown in Figure 6 (a). The signals are sequentially input to one and the other input terminals, respectively. The added result A (n); (n=1 to N) is input to the register 2 and sequentially fetched at the next clock. That is, Q
(n)=A (n-1). [0005] Through the above series of operations, the input data string DI (n)
are accumulated. However, under the control of the reset circuit 3, the register 2 is set in advance to II O11, that is, Q (0)
must be reset to =0. Through the above calculation, the sum of the input data string DI (n) can be obtained as the output Q (N) of register 2, but in order to express it with a finite bit length with high accuracy as described above, rounding operation (rounding off) is necessary. It is. That is, it is necessary to perform an operation of adding 2 and discarding the lower bits below the 2 digit. In order to perform such rounding operations, an adder 4 for rounding operations is provided, which is separate from the adder 1 for accumulation.
(n), that is, the output Q (N), and addition data R (R=2) for rounding operation are added. The result of this operation (see FIG. 6(d)) is shifted to the right by the shifter 5, and the lower bits below the 2 digit are rounded off and output (see FIG. 6(e)). [0006]
以上のように、従来の累算器において丸め演算を行う場
合には、丸め演算のために入力データ列DI (n)の
総和を求めた後で、丸め演算用の加算器4を用いてさら
に演算処理しなければならない。すなわち、回路規模お
よび演算時間が大きくなるという問題がある。特に、デ
ジタル信号処理等においては、処理のリアルタイム性が
重要であり、頻出する累算において、演算時間の短縮は
重大な課題であり、回路規模の削減も同様に重大課題で
ある。
[0007]As described above, when performing a rounding operation in a conventional accumulator, after calculating the sum of the input data string DI (n) for the rounding operation, the adder 4 for the rounding operation is used to further Must be processed. That is, there is a problem that the circuit scale and calculation time become large. In particular, in digital signal processing, etc., real-time processing is important, and in the frequent accumulation, shortening the calculation time is an important issue, and reducing the circuit scale is also an important issue. [0007]
この発明の累算器は、入力データ列のビット幅より大き
いビット幅の加算器とレジスタとを主構成要素として、
入力データ列を加算器の一方の入力端子に入力しレジス
タの出力を加算器の他方の入力端子に入力し加算器の出
力をレジスタに入力することにより、入力データ列を累
算するとともに丸め演算用の加算データを加算し、得ら
れた演算結果をシフタにより右シフトして下位ビットを
切り捨てることにより、任意のビット幅に丸め演算を行
って出力するようにした固定小数点演算方式の累算器で
あって、
請求項1では、レジスタの内容を丸め演算用の加算デー
タに初期設定するための初期値設定回路を設けている。
[0008]
また、請求項2では、加算器の他方の入力端子にマルチ
プレクサを設け、入力データ列の第1番目のデータが加
算器の一方の入力端子に入力されるときだけ丸め演算用
の加算データを選択して加算器の他方の入力端子に入力
し、入力データ列の第2番目以降のデータが加算器の一
方の入力端子に入力されるときはレジスタの出力を選択
して加算器の他方の入力端子に入力するように、マルチ
プレクサを制御している。
[0009]The accumulator of the present invention mainly includes an adder and a register having a bit width larger than the bit width of an input data string.
By inputting the input data string to one input terminal of the adder, inputting the output of the register to the other input terminal of the adder, and inputting the output of the adder to the register, the input data string is accumulated and a rounding operation is performed. A fixed-point arithmetic accumulator that performs rounding operations to an arbitrary bit width and outputs the result by adding up the addition data for the data, shifting the resulting operation result to the right using a shifter, and truncating the lower bits. According to claim 1, an initial value setting circuit is provided for initializing the contents of the register to addition data for rounding operation. [0008] Further, in claim 2, a multiplexer is provided at the other input terminal of the adder, and the addition for rounding operation is performed only when the first data of the input data string is input to one input terminal of the adder. Select the data and input it to the other input terminal of the adder, and when the second and subsequent data in the input data string are input to one input terminal of the adder, select the output of the register and input it to the other input terminal of the adder. The multiplexer is controlled to input to the other input terminal. [0009]
請求項1の構成によれば、予め丸め演算用の加算データ
を初期値設定回路に設定しておき、累算を行う前に丸め
演算用の加算データをレジスタにセットすることにより
、丸め演算用の加算データを初期値として入力データ列
を累算していくことになる。
[0010]
また、請求項2の構成によれば、入力データ列の第1番
目のデータが入力されるときに丸め演算用の加算データ
が加算器に同時に入力され、請求項1の構成と同様に、
丸め演算用の加算データに入力データ列を累算していく
ことになる。
この結果、丸め演算のための加算器を必要とせずに入力
データ列を累算するとともに丸め演算用の加算データを
加算することが可能となり、また演算時間は丸め算なし
の累算のみの時間と等しくなる。この結果、回路規模お
よび演算時間を大幅に削減できる。
[0011]According to the configuration of claim 1, the addition data for rounding operations is set in advance in the initial value setting circuit, and the addition data for rounding operations is set in the register before performing the accumulation. The input data string is accumulated using the addition data of as the initial value. [0010] Furthermore, according to the configuration of claim 2, when the first data of the input data string is input, the addition data for rounding operation is input to the adder at the same time, which is similar to the configuration of claim 1. To,
The input data string is accumulated to add data for rounding operations. As a result, it is possible to accumulate the input data string and add the addition data for the rounding operation without the need for an adder for the rounding operation, and the calculation time is the time required for only accumulation without rounding. is equal to As a result, the circuit scale and calculation time can be significantly reduced. [0011]
図1は請求項1の発明の累算器の一実施例を示すブロッ
ク図である。図1において、1は加算器、2はレジスタ
、5はシフタであり、これらは図5の従来例と同一構成
要素である。ここで、加算器1.レジスタ2およびシフ
タ5は、入力データDIのビット幅より大きく設計され
ている。そして、6は丸め演算用の加算データをレジス
タ5にセットするための初期値設定回路である。
[0012]
以下に、図1の累算器の動作を図2の動作タイミング図
を参照しながら説明する。
図1の加算器1には、図2(b)に示す入力データ列D
I (n); (n=1〜N)と図2 (C)に示す
レジスタ2の出力Q (n): (n=1〜N)とが
図2(a)に示すクロックに同期して一方および他方の
入力端子にそれぞれ順次入力される。加算された結果A
(n); (n=1〜N)がレジスタ2に入力され
、つぎのクロックで順次取り込まれる。すなわち、Q
(n)=A (n−1)である。
[0013]
以上の一連の演算により、入力データ列DI (n)
の累算が行われる。ただしレジスタ2は、初期値設定回
路6の制御により、予め丸め演算用の加算データR(R
=2)が設定される。すなわち、Q (0)=Rである
。
初期値の設定は従来の累算器において、レジスタ2をリ
セットする処理と同様に簡単に実現できる。
[0014]
以上の演算により、出力Q (N)・には、入力データ
列DI (n)の総和が求められるが、この時すでに
丸め演算用の加算データR(R=2)に対して入力デー
タ列DI (n)が累算されており、後はこの演算結果
Doをシフタ5で右シフトして、2 の相思下の下位ビ
ットを切り捨てる演算を行って出力(図2(d)参照)
するだけで丸め演算が実現できる。
[0015]
この実施例によれば、従来例のような丸め演算用の加算
器を必要とせずに丸め演算用の加算データR(R=2)
を累算結果に加えることができ、丸め演算用の加算器が
不要な分だけ回路規模を縮小することができる。また、
従来例のような加算演算は行わず、加算データRをレジ
スタ2に初期設定するだけであるので累算および丸め演
算に要する演算時間を削減することができる。
[0016]
つぎに、図3は請求項2の発明の累算器の一実施例を示
すブロック図である。
図3において、1は加算器、2はレジスタ、5はシフタ
であり、これらは図5の従来例と同一構成要素である。
ここでも、加算器1.レジスタ2およびシフタ5は入力
データDIのビット幅より大きく設計されている。そし
て、7はマルチプレクサであり、レジスタ2の出力かま
たは丸め演算用の加算データとなる初期値(R)を選択
して加算器1の他方の入力端子へ加える。
[0017]
図3の累算器の動作を図4の動作タイミング図とともに
説明する。
図3の加算器1には図4(b)に示す入力データ列DI
(n): (n=1〜N)と図4(C)に示すマル
チプレクサ7の出力Q (n): (n=1〜N)と
が図4(a)に示すクロックに同期して一方および他方
の入力端子にそれぞれ順次入力される。加算された結果
A (n); (n=1〜N)がレジスタ2に入力さ
れ、つぎのクロックで順次取り込まれる。
[0018]
ここで、マルチプレクサ7は、入力データ列DI (n
)の第1番目のデータDI (1)が入力されるときだ
け前記丸め演算用の加算データRを選択して加算器1の
他方に入力端子に入力し、通常(第2番目以降のデータ
DI (2)〜DI (N)の入力時)は前記レジスタ
2からの出力を選択して加算器1の他方の入力端子へ入
力(帰還)するように、マルチプレクサ7が制御されて
いる。すなわち、Q (0)=Rである。
[0019]
以上の演算により、Q (N)には入力データ列DI
(n)の総和が求められるが、この時すでに丸め演算
のための加算データR(R=2)に対して入力データ列
DI (n)が累算されており、後はこの演算結果DO
をシフタ5で右シフトして、出力するだけで丸め演算が
実現できる(図4(d)参照)。
この実施例においても、請求項1の発明と同様、丸め演
算のための第2の加算器を必要とせず、さらに演算時間
は丸め演算なしの累算のみの時間と等しくなり回路規模
および演算時間を削減できるものである。
[0020]FIG. 1 is a block diagram showing an embodiment of an accumulator according to the invention. In FIG. 1, 1 is an adder, 2 is a register, and 5 is a shifter, which are the same components as in the conventional example shown in FIG. Here, adder 1. Register 2 and shifter 5 are designed to be larger than the bit width of input data DI. Reference numeral 6 denotes an initial value setting circuit for setting addition data for rounding operations in the register 5. [0012] The operation of the accumulator in FIG. 1 will be described below with reference to the operation timing diagram in FIG. 2. The adder 1 in FIG. 1 has an input data string D shown in FIG. 2(b).
I (n); (n = 1 to N) and the output Q (n): (n = 1 to N) of register 2 shown in Figure 2 (C) are synchronized with the clock shown in Figure 2 (a). The signals are sequentially input to one and the other input terminals, respectively. Added result A
(n); (n=1 to N) is input to the register 2 and sequentially fetched at the next clock. That is, Q
(n)=A (n-1). [0013] Through the above series of operations, the input data string DI (n)
are accumulated. However, under the control of the initial value setting circuit 6, the register 2 is set in advance as addition data R (R
=2) is set. That is, Q (0)=R. Setting the initial value can be easily accomplished in the same manner as the process of resetting register 2 in a conventional accumulator. [0014] Through the above calculation, the sum of the input data string DI (n) is obtained as the output Q (N), but at this time, the input data R (R = 2) for the rounding operation has already been calculated. The data string DI (n) has been accumulated, and the operation result Do is then shifted to the right using the shifter 5, and the lower bits below the 2 are rounded off to be output (see Figure 2 (d)).
You can perform rounding operations simply by doing this. [0015] According to this embodiment, the addition data R (R=2) for rounding operation is not required as in the conventional example, but an adder for rounding operation is not required.
can be added to the accumulated result, and the circuit scale can be reduced by eliminating the need for an adder for rounding operations. Also,
Unlike the conventional example, an addition operation is not performed, and the addition data R is simply initialized in the register 2, so that the calculation time required for accumulation and rounding operations can be reduced. [0016] Next, FIG. 3 is a block diagram showing an embodiment of the accumulator of the invention of claim 2. In FIG. 3, 1 is an adder, 2 is a register, and 5 is a shifter, which are the same components as in the conventional example shown in FIG. Again, adder 1. Register 2 and shifter 5 are designed to be larger than the bit width of input data DI. A multiplexer 7 selects the output of the register 2 or the initial value (R) which becomes the addition data for the rounding operation and applies it to the other input terminal of the adder 1. [0017] The operation of the accumulator in FIG. 3 will be explained with reference to the operation timing diagram in FIG. 4. The adder 1 in FIG. 3 has an input data string DI shown in FIG. 4(b).
(n): (n=1 to N) and the output Q of the multiplexer 7 shown in FIG. 4(C) (n): (n=1 to N) are synchronized with the clock shown in FIG. and the other input terminal respectively. The added result A (n); (n=1 to N) is input to the register 2 and sequentially fetched at the next clock. [0018] Here, the multiplexer 7 inputs the input data string DI (n
) only when the first data DI (1) is input, the addition data R for the rounding operation is selected and inputted to the other input terminal of the adder 1, (2) to DI (N)), the multiplexer 7 is controlled so that the output from the register 2 is selected and input (feedback) to the other input terminal of the adder 1. That is, Q (0)=R. [0019] By the above calculation, Q (N) has input data string DI
(n) is calculated, but at this time the input data string DI (n) has already been accumulated with respect to the addition data R (R=2) for the rounding operation, and the rest is to calculate the operation result DO.
The rounding operation can be realized by simply shifting the value to the right using the shifter 5 and outputting it (see FIG. 4(d)). Similarly to the invention of claim 1, this embodiment also does not require a second adder for rounding operations, and furthermore, the operation time is equal to the time for only accumulation without rounding operations, which reduces the circuit size and operation time. It is possible to reduce the [0020]
請求項1の発明の累算器によれば、初期値設定回路を設
け、入力データ列の累算の前に丸め演算用の加算データ
をレジスタにセットすることにより、また請求項2の発
明の累算器によれば、加算器への他方の入力端子にマル
チプレクサを設け、入力データ列の第1番目のデータが
入力されるときだけ丸め演算用の加算データを加算器の
他方の入力端子に入力し、入力データ列の第2番目以降
のデータが加算器の一方の入力端子に入力されるときは
レジスタの出力を選択して加算器の他方の入力端子に入
力することにより、0からの累算ではなく、丸め演算用
の加算データに入力データ列を累算していくため、丸め
演算のための加算時間を全く必要とせず、丸め演算なし
の累算のみの時間と等しくなり、特にリアルタイム性の
重要なデジタル信号処理に用いれば、高速化の効果が非
常に大きい。
[0021]
また、丸め演算のための第2の加算器を必要としなくな
り、累算器の構成要素の中で最も回路規模の大きな加算
器を削減できるため、累算器の回路規模をおよそ半分に
まで削減できる優れた効果を有する。
また、この発明の累算器をプログラム制御方式の演算器
(プロセッサ)の構成要素として用い、レジスタへの加
算データの設定、すなわち初期値設定回路の動作を、プ
ログラム制御によりプロセッサの資源を用いて行わせる
方法も容易に実現できるが、この場合においても上記発
明の効果が得られる侵れなプロセッサを実現できる。According to the accumulator of the invention of claim 1, by providing an initial value setting circuit and setting addition data for rounding operation in the register before accumulating the input data string, and by setting the addition data for rounding operation in the register, According to the accumulator, a multiplexer is provided at the other input terminal to the adder, and the addition data for rounding operation is sent to the other input terminal of the adder only when the first data of the input data string is input. When the second and subsequent data in the input data string is input to one input terminal of the adder, the output from the register is selected and input to the other input terminal of the adder. Instead of accumulation, the input data string is accumulated using addition data for rounding operations, so there is no need for addition time for rounding operations, which is equal to the time for only accumulation without rounding operations, and especially If used in digital signal processing where real-time performance is important, the effect of speeding up is extremely large. [0021] Furthermore, since the second adder for rounding operations is no longer required and the adder, which has the largest circuit scale among the components of the accumulator, can be eliminated, the circuit scale of the accumulator can be reduced by approximately half. It has an excellent effect of reducing the amount of water used. Furthermore, the accumulator of the present invention can be used as a component of a program-controlled arithmetic unit (processor), and the setting of addition data to a register, that is, the operation of an initial value setting circuit, can be performed using the resources of the processor under program control. Although the method of doing this can also be easily realized, in this case as well, it is possible to realize an intrusive processor that can obtain the effects of the above invention.
【図1】
図1は請求項1の発明の一実施例の累算器の構成を示す
ブロック図である。FIG. 1 is a block diagram showing the configuration of an accumulator according to an embodiment of the invention according to claim 1.
【図2】 図2は図1の累算器の動作タイミング図である。[Figure 2] FIG. 2 is an operational timing diagram of the accumulator of FIG. 1.
【図3】
図3は請求項2の発明の一実施例の累算器の構成を示す
ブロック図である。FIG. 3 is a block diagram showing the configuration of an accumulator according to an embodiment of the invention according to claim 2.
【図4】 図4は図3の累算器の動作タイミング図である。[Figure 4] FIG. 4 is an operational timing diagram of the accumulator of FIG. 3.
【図5】 図5は従来の累算器の構成を示すブロック図である。[Figure 5] FIG. 5 is a block diagram showing the configuration of a conventional accumulator.
【図6】 図6は図5の累算器の動作タイミング図である。[Figure 6] FIG. 6 is an operation timing diagram of the accumulator of FIG. 5.
1 加算器 2 レジスタ 5 シフタ 6 初期値設定回路 7 マルチプレクサ 1 Adder 2 Register 5 Shifter 6 Initial value setting circuit 7 Multiplexer
【図11 図面 【図2】[Figure 11 drawing [Figure 2]
【図3】[Figure 3]
【図4】[Figure 4]
【図5】[Figure 5]
【図6】[Figure 6]
Claims (2)
幅の加算器とレジスタを主構成要素として、前記入力デ
ータ列を前記加算器の一方の入力端子に入力し前記レジ
スタの出力を前記加算器の他方の入力端子に入力し前記
加算器の出力を前記レジスタに入力することにより、前
記入力データ列を累算するとともに、丸め演算用の加算
データを加算し、得られた演算結果をシフタにより右シ
フトして下位ビットを切り捨てることにより、任意のビ
ット幅に丸め演算を行って出力するようにした固定小数
点演算方式の累算器であって、前記レジスタの内容を予
め前記丸め演算用の加算データに初期設定するための初
期値設定回路を設けたことを特徴とする累算器。1. The main components include an adder and a register having a bit width larger than the bit width of an input data string, the input data string is input to one input terminal of the adder, and the output of the register is sent to the adder. By inputting the output of the adder to the other input terminal of the register, the input data string is accumulated, addition data for rounding operation is added, and the result of the operation is transferred to the shifter. The accumulator is a fixed-point arithmetic accumulator that performs a rounding operation to an arbitrary bit width by right-shifting and discarding the lower bits, and outputs the resulting result. An accumulator characterized by being provided with an initial value setting circuit for initializing data.
幅の加算器とレジスタを主構成要素として、前記入力デ
ータ列を前記加算器の一方の入力端子に入力し前記レジ
スタの出力を前記加算器の他方の入力端子に入力し前記
加算器の出力を前記レジスタに入力することにより、前
記入力データ列を累算するとともに、丸め演算用の加算
データを加算し、得られた演算結果をシフタにより右シ
フトして下位ビットを切り捨てることにより、任意のビ
ット幅に丸め演算を行って出力するようにした固定小数
点演算方式の累算器であって、前記加算器の他方の入力
端子にマルチプレクサを設け、前記入力データ列の第1
番目のデータが前記加算器の一方の入力端子に入力され
るときだけ前記丸め演算用の加算データを選択して前記
加算器の他方の入力端子に入力し、前記入力データ列の
第2番目以降のデータが前記加算器の一方の入力端子に
入力されるときは前記レジスタの出力を選択して前記加
算器の他方の入力端子に入力するように、前記マルチプ
レクサを制御したことを特徴とする累算器。2. The main components include an adder and a register having a bit width larger than the bit width of the input data string, the input data string is input to one input terminal of the adder, and the output of the register is sent to the adder. By inputting the output of the adder to the other input terminal of the register, the input data string is accumulated, addition data for rounding operation is added, and the result of the operation is transferred to the shifter. A fixed-point arithmetic accumulator that performs a rounding operation to an arbitrary bit width by right-shifting and discarding the lower bits, and outputs the result, and a multiplexer is provided at the other input terminal of the adder. , the first of the input data string
Only when the th data is input to one input terminal of the adder, the addition data for the rounding operation is selected and input to the other input terminal of the adder, and the second and subsequent data of the input data string is selected. The multiplexer is controlled such that when the data is input to one input terminal of the adder, the output of the register is selected and input to the other input terminal of the adder. Calculator.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2646590 | 1990-02-05 | ||
| JP2-26465 | 1990-02-05 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH044464A true JPH044464A (en) | 1992-01-08 |
Family
ID=12194270
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2408820A Pending JPH044464A (en) | 1990-02-05 | 1990-12-28 | Accumulator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH044464A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01158814A (en) * | 1987-12-16 | 1989-06-21 | Hitachi Ltd | High speed signal processor |
| JPH01266668A (en) * | 1988-04-18 | 1989-10-24 | Hitachi Ltd | Information processor |
-
1990
- 1990-12-28 JP JP2408820A patent/JPH044464A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01158814A (en) * | 1987-12-16 | 1989-06-21 | Hitachi Ltd | High speed signal processor |
| JPH01266668A (en) * | 1988-04-18 | 1989-10-24 | Hitachi Ltd | Information processor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20030088602A1 (en) | High-speed computation in arithmetic logic circuit | |
| JPS6114532B2 (en) | ||
| EP0416869B1 (en) | Digital adder/accumulator | |
| KR100489880B1 (en) | State machine design to generate half-filled and half-blank flags in an asynchronous FIFO | |
| JP2502836B2 (en) | Preprocessing device for division circuit | |
| US5400271A (en) | Apparatus for and method of calculating sum of products | |
| JPH07253965A (en) | Multiply-accumulator | |
| JPH07109974B2 (en) | Digital filter processor | |
| JPH07107664B2 (en) | Multiplication circuit | |
| JPH044464A (en) | Accumulator | |
| CN117149131A (en) | A fast right-shift shift accumulator, distributed arithmetic processor and filter | |
| JPH0831024B2 (en) | Arithmetic processor | |
| JP4408727B2 (en) | Digital circuit | |
| JP3595449B2 (en) | Cumulative addition circuit | |
| RU2823911C1 (en) | Pipeline adder-accumulator by arbitrary modules | |
| KR0176883B1 (en) | Complex multiplier | |
| JP2821406B2 (en) | Product-sum operation unit and digital filter circuit using the same | |
| JPS61213926A (en) | Dsp arithmetic processing system | |
| JP3336986B2 (en) | Signal processor and multiply-accumulate unit with rounding function used therefor | |
| JP2643165B2 (en) | Arithmetic circuit | |
| JP2000165204A (en) | Iir type digital low pass filter | |
| JP2508286B2 (en) | Square root calculator | |
| KR920006324B1 (en) | Optimization method of 2's complement code multplier | |
| JP2000137701A (en) | Product-sum operation error correcting method and product sum arithmetic unit | |
| JPH0427587B2 (en) |