JPS6150335B2 - - Google Patents
Info
- Publication number
- JPS6150335B2 JPS6150335B2 JP56069234A JP6923481A JPS6150335B2 JP S6150335 B2 JPS6150335 B2 JP S6150335B2 JP 56069234 A JP56069234 A JP 56069234A JP 6923481 A JP6923481 A JP 6923481A JP S6150335 B2 JPS6150335 B2 JP S6150335B2
- Authority
- JP
- Japan
- Prior art keywords
- bit
- signal
- bits
- result
- multiplication
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/52—Multiplying; Dividing
- G06F7/523—Multiplying only
- G06F7/53—Multiplying only in parallel-parallel fashion, i.e. both operands being entered in parallel
- G06F7/5324—Multiplying only in parallel-parallel fashion, i.e. both operands being entered in parallel partitioned, i.e. using repetitively a smaller parallel parallel multiplier or using an array of such smaller multipliers
Landscapes
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Computational Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
- Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
- Filters That Use Time-Delay Elements (AREA)
Description
【発明の詳細な説明】
本発明はデジタル乗算回路に係り、PCM等の
デジタル信号のレベル及び周波数特性を変更する
デジタル信号処理用機器に使用される乗算器にお
いて、乗算器のビツト数が制限れているにもかゝ
わらず処理する入力データのビツト数が乗算器の
ビツト数よりも大きくても倍精度演算により乗算
処理を可能にするデジタル乗算回路を提供するこ
とを目的とする。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a digital multiplication circuit, and relates to a multiplier used in digital signal processing equipment such as PCM that changes the level and frequency characteristics of a digital signal. To provide a digital multiplication circuit which can perform multiplication processing by double precision arithmetic even if the number of bits of input data to be processed is larger than the number of bits of a multiplier.
一般にPCMデジタル信号をレベル減衰させた
り周波数特性を変更したりする場合はデジタル乗
算器が必要になつてくる。ところが乗算器のビツ
ト数が乗数入力データ又は被乗数である任意の係
数のビツト数よりも小さい場合は分割して計算し
なくてはならない。 Generally, a digital multiplier is required when attenuating the level or changing the frequency characteristics of a PCM digital signal. However, if the number of bits in the multiplier is smaller than the number of bits in the multiplier input data or any coefficient that is the multiplicand, the calculation must be performed by dividing.
一方、PCMデジタル信号は通常2の補数表示
で扱う。このような2の補数表示のデータを上記
のように分割して計算する場合、乗数の入力デー
タもしくは被乗数の係数が負の場合には分割計算
が不可能である。例えば、入力信号が8ビツト、
係数が4ビツトの乗算を4ビツトの乗算器2つで
実施する事を考える。 On the other hand, PCM digital signals are usually handled in two's complement representation. When such two's complement data is divided and calculated as described above, the division calculation is impossible if the input data of the multiplier or the coefficient of the multiplicand is negative. For example, if the input signal is 8 bits,
Consider performing multiplication with a 4-bit coefficient using two 4-bit multipliers.
即ち、入力信号が0.1011101で係数が1.010であ
つた場合、通常の8ビツトの計算では答えは
11.0111010010であるが、これを4ビツトずつに
分割して計算すると最初の4ビツトは0101×1010
=11100010であり次の4ビツトは1101×1010=
00010010でありこれらを加算した結果は
11.1000110010となり真の答えと全く相違した結
果が得られてしまう。このため従来においては第
1図に示されているように端子1に入来し、保持
器2に保持された入力データ及び係数器4から出
力された係数は変換器3,5において各々バイナ
リーコードに変換され乗算器6に供給される。乗
算器6にて、乗算された結果は変換器10におい
てオフセツトバイナリーコードからの2の補数表
示に変換されて出力されねばならない。この為、
変換器3,5,10が必要でありさらに演算処理
の時間が長くなるなどの欠点があつた。 In other words, if the input signal is 0.1011101 and the coefficient is 1.010, the answer in normal 8-bit calculation is
11.0111010010, but if you divide this into 4 bits and calculate, the first 4 bits are 0101×1010
=11100010 and the next 4 bits are 1101×1010=
00010010 and the result of adding these is
11.1000110010, which is completely different from the true answer. For this reason, conventionally, as shown in FIG. 1, input data input to terminal 1 and held in holder 2 and coefficients output from coefficient unit 4 are converted into binary codes in converters 3 and 5, respectively. and is supplied to the multiplier 6. The multiplied result in the multiplier 6 must be converted into two's complement representation from the offset binary code in the converter 10 and output. For this reason,
There were disadvantages such as the need for converters 3, 5, and 10, and the long calculation time.
本発明は上記欠点を除去するものであり具体的
実施例について第2図とゝもに説明する。 The present invention eliminates the above-mentioned drawbacks, and a specific embodiment thereof will be described with reference to FIG. 2.
本実施例においては、4ビツト×4ビツトの乗
算器を用い、乗数の入力データは8ビツト、被乗
数の係数は4ビツトであるとする。即ち、入力デ
ータは0.1011101、係数は1.010として2の補数で
表示され、この乗算を4×4ビツトの乗算器で実
行することを考える。 In this embodiment, it is assumed that a 4-bit x 4-bit multiplier is used, the input data of the multiplier is 8 bits, and the coefficient of the multiplicand is 4 bits. That is, assume that the input data is 0.1011101, the coefficient is 1.010, and is expressed as a two's complement number, and that this multiplication is performed using a 4×4 bit multiplier.
まず、端子11に入来した入力データは入力保
持器12,13にてそれぞれ4ビツトの信号系列
として保持される。即ち、入力保持器12へ上位
4ビツトの0.101が入力され、入力保持器13へ
は下位4ビツトの1101が入力される。 First, input data input to the terminal 11 is held in input holders 12 and 13 as a 4-bit signal sequence, respectively. That is, the upper 4 bits of 0.101 are input to the input holder 12, and the lower 4 bits of 1101 are input to the input holder 13.
入力保持器12から上位4ビツトの出力0.101
と係数器4からの係数1.010とは乗算器6にて乗
算されて、1.100010を得て保持器7に供給され
る。 Output of upper 4 bits from input holder 12 is 0.101
and the coefficient 1.010 from the coefficient unit 4 are multiplied by the multiplier 6 to obtain 1.100010, which is supplied to the holder 7.
一方入力保持器13からの下位4ビツトの出力
1101は信号処理器14に供給される。信号処理器
14は前記下位4ビツト信号を1/2倍する。即
ち、出力信号は1ビツトずつ下位へシフトされ
MSBへは0が入られて、0110となる。乗算器6
はこの0110と係数1.010とを乗算し、この結果
11.011100は保持器8に供給される。保持器8の
出力は信号処理器15に供給される。信号処理器
15は、前記乗算結果の8ビツトのデータをまず
2倍にする。即ち11.011100は2倍にされて、
10.111000とする。こゝで、このデータは、保持
器7に蓄えられた上位ビツトの演算結果との桁合
せのために右へ4ビツトシフトされる。一般に8
ビツト×8ビツトの乗算を分割して4ビツト×4
ビツトで実行する場合、2の補数表示で負数が被
乗数に入つていると、演算中で2の補数表示処理
をすることにより4ビツト×4ビツトの演算結果
と8ビツト×8ビツトの演算結果との間に原理的
な誤差を生ずる。よつて、前記右へ4ビツトシフ
トさせる際には、MSBが負数の場合には同じく
負数を上位へ追加させ111110111000の12ビツトと
する。こゝで下位ビツトの演算結果を、上位ビツ
トの演算結果に桁合せのために所定ビツトだけシ
フトさせるということは、上記のような方法で右
へ4ビツトシフトさせるということを意味する。
この12ビツトの出力データと前記保持器7の出力
データとが加算器9で加算され、その結果
11.0111011000を得て、出力される。この結果と
真値11.0111010010との間は多少差異が生ずるが
8ビツトで出力される加算器では1.0111011であ
り、LSBが1ビツト相違する。即ち確率としては
1/2LSB差が生ずることになる。この誤差は、
信号処理器を付加することにより、より精度を上
げて減少することがきる。 On the other hand, the output of the lower 4 bits from the input holder 13
1101 is supplied to the signal processor 14. The signal processor 14 multiplies the lower 4-bit signal by 1/2. That is, the output signal is shifted down one bit at a time.
A 0 is placed in the MSB, resulting in 0110. Multiplier 6
multiplies this 0110 by the coefficient 1.010, and this result is
11.011100 is supplied to the holder 8. The output of the holder 8 is supplied to a signal processor 15. The signal processor 15 first doubles the 8-bit data of the multiplication result. That is, 11.011100 is doubled,
10.111000. Here, this data is shifted 4 bits to the right for digit alignment with the operation result of the upper bits stored in the holder 7. generally 8
Divide the bit x 8 bit multiplication to 4 bit x 4
When executing in bits, if a negative number is included in the multiplicand in two's complement representation, the two's complement representation processing during the calculation will result in a 4-bit x 4-bit operation result and an 8-bit x 8-bit operation result. A fundamental error occurs between the two. Therefore, when shifting 4 bits to the right, if the MSB is a negative number, a negative number is similarly added to the upper part to make 12 bits of 111110111000. Here, shifting the operation result of the lower bits by a predetermined bit amount for digit alignment with the operation result of the upper bits means shifting it 4 bits to the right using the method described above.
This 12-bit output data and the output data of the holder 7 are added by an adder 9, and the result is
11.0111011000 is obtained and output. Although there is some difference between this result and the true value 11.0111010010, it is 1.0111011 in the case of an adder that outputs 8 bits, and the LSB differs by 1 bit. That is, the probability is that a 1/2 LSB difference will occur. This error is
By adding a signal processor, the accuracy can be further increased and reduced.
以上の実施例では、入力信号データを分割し、
下位ビツトに対して信号処理を施したが、係数の
データを同様に分割して処理してもよい。又、保
持器を増加させることにより実施例の8ビツトに
限らず任意のビツト数で乗算処理が行なえる。 In the above embodiment, the input signal data is divided,
Although signal processing was performed on the lower bits, the coefficient data may be similarly divided and processed. Furthermore, by increasing the number of holders, multiplication processing can be performed with any number of bits, not just 8 bits as in the embodiment.
このように本実施例ではPCMデジタル信号
を、2の補数表示のまゝ乗算できることが可能で
あり、入出力の保持器の配線変更のみで該乗算器
を構成でき演算時間の短縮化も計れる。 As described above, in this embodiment, the PCM digital signal can be multiplied in two's complement representation, and the multiplier can be configured by simply changing the wiring of the input/output holder, and the calculation time can be shortened.
上述の如く本発明になるデジタル乗算回路で
は、2の補数として表示されたデジタル信号に所
定の係数を乗算するデジタル乗算回路において、
該デジタル信号を上位側信号ビツト系列と下位側
信号ビツト系列に分割し保持する保持回路と、該
下位側信号ビツト系列を右へ少なくとも1ビツト
ずつシフトし、最上位ビツトへは0を挿入する第
1の信号処理回路と、該第1の信号処理回路から
の出力ビツトおよび前記上位側ビツト系列を前記
係数に乗算する乗算回路と、該第1の信号処理回
路からの出力ビツトの乗算結果を左へ1ビツトず
つシフトし、該1ビツトシフト結果が前記上位側
ビツト系列の乗算結果に対して桁が一致するよう
に所定のビツトだけ該1ビツトシフト結果をシフ
トして下位演算結果を得る第2の信号処理回路
と、該第2の信号処理回路からの下位演算結果と
前記上位側ビツト系列の乗算結果とを加算して乗
算結果を得る加算回路とからなるようにしたゝ
め、直接2の補数表示のまゝで乗算が可能であ
り、入力および出力保持器の出力の配線変更のみ
で乗算器が構成でき回路構成が簡単であり、演算
時間の大幅な短縮が可能であり、演算誤差が発生
しないという特長が得られる。さらに係数側に上
記処理を施し、入力デジタル信号はそのまゝ通過
させても同様な特長が得ることができる。 As described above, the digital multiplication circuit according to the present invention multiplies a digital signal expressed as a two's complement by a predetermined coefficient.
A holding circuit that divides and holds the digital signal into an upper signal bit series and a lower signal bit series, and a holding circuit that shifts the lower signal bit series to the right by at least 1 bit and inserts 0 into the most significant bit. a multiplication circuit that multiplies the output bits from the first signal processing circuit and the upper bit series by the coefficient; and a multiplication circuit that multiplies the output bits from the first signal processing circuit by a second signal for obtaining a lower operation result by shifting the 1-bit shift result by a predetermined bit such that the 1-bit shift result matches the multiplication result of the upper bit series in digits; It consists of a processing circuit and an addition circuit that adds the lower-order operation result from the second signal processing circuit and the multiplication result of the upper bit series to obtain the multiplication result, so that it can be directly displayed in two's complement. It is possible to perform multiplication as is, and the multiplier can be configured by simply changing the wiring of the input and output holder outputs. The circuit configuration is simple, the calculation time can be significantly shortened, and calculation errors do not occur. This feature is obtained. Furthermore, similar features can be obtained even if the above processing is applied to the coefficient side and the input digital signal is passed through as is.
第1図は従来の一実施例の回路図、第2図は本
発明のデジタル乗算器の一実施例の回路図であ
る。
2,7,8,12,13……保持器、3,5,
10……変換器、6……乗算器、9……加算器、
14,15……信号処理器。
FIG. 1 is a circuit diagram of a conventional embodiment, and FIG. 2 is a circuit diagram of an embodiment of a digital multiplier according to the present invention. 2, 7, 8, 12, 13...retainer, 3, 5,
10... converter, 6... multiplier, 9... adder,
14, 15...Signal processor.
Claims (1)
定の係数を乗算するデジタル乗算回路において、
該デジタル信号を上位側信号ビツト系列と下位側
信号ビツト系列に分割し保持する保持回路と、該
下位側信号ビツト系列を右へ少くとも1ビツトず
つシフトし、最上位ビツトへは0を挿入する第1
の信号処理回路と、該第1の信号処理回路からの
出力ビツトおよび前記上位側ビツト系列を前記係
数に乗算する乗算回路と該第1の信号処理回路か
らの出力ビツトの乗算結果を左へ1ビツトずつシ
フトし、該1ビツトシフト結果が前記上位側ビツ
ト系列の乗算結果に対して桁が一致するように所
定のビツトだけ該1ビツトシフト結果をシフトし
て下位演算結果を得る第2の信号処理回路と、該
第2の信号処理回路からの下位演算結果と前記上
位側ビツト系列の乗算結果とを加算して乗算結果
を得る加算回路とからなることを特徴とするデジ
タル乗算回路。1. In a digital multiplication circuit that multiplies a digital signal expressed as a two's complement by a predetermined coefficient,
A holding circuit that divides and holds the digital signal into an upper signal bit series and a lower signal bit series, and shifts the lower signal bit series to the right by at least 1 bit and inserts 0 into the most significant bit. 1st
a signal processing circuit, a multiplication circuit that multiplies the output bits from the first signal processing circuit and the upper bit series by the coefficient, and a multiplication result of the output bits from the first signal processing circuit to the left. a second signal processing circuit that shifts bit by bit and shifts the 1-bit shift result by a predetermined bit such that the 1-bit shift result matches the digit of the multiplication result of the upper bit series to obtain a lower-order operation result; and an addition circuit that adds the lower-order operation result from the second signal processing circuit and the multiplication result of the upper bit series to obtain the multiplication result.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56069234A JPS57182845A (en) | 1981-05-08 | 1981-05-08 | Digital multiplying circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56069234A JPS57182845A (en) | 1981-05-08 | 1981-05-08 | Digital multiplying circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57182845A JPS57182845A (en) | 1982-11-10 |
| JPS6150335B2 true JPS6150335B2 (en) | 1986-11-04 |
Family
ID=13396838
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56069234A Granted JPS57182845A (en) | 1981-05-08 | 1981-05-08 | Digital multiplying circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57182845A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2544326B2 (en) * | 1984-11-14 | 1996-10-16 | ソニー株式会社 | Digital filter |
-
1981
- 1981-05-08 JP JP56069234A patent/JPS57182845A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57182845A (en) | 1982-11-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5553012A (en) | Exponentiation circuit utilizing shift means and method of using same | |
| EP0472139A2 (en) | A floating-point processor | |
| US4583180A (en) | Floating point/logarithmic conversion system | |
| EP0103722A2 (en) | Multiplying circuit | |
| JPH07182141A (en) | Arithmetic device and arithmetic method | |
| 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 | |
| EP0416308A2 (en) | Rectangular array signed digit multiplier | |
| JPS6150335B2 (en) | ||
| JPH0566921A (en) | Data shift circuit | |
| US3982112A (en) | Recursive numerical processor | |
| US5463571A (en) | Multi-nary OR logic device | |
| US4737925A (en) | Method and apparatus for minimizing a memory table for use with nonlinear monotonic arithmetic functions | |
| RU2136041C1 (en) | Device for computing elementary functions by table-and-algorithm method | |
| JP3071607B2 (en) | Multiplication circuit | |
| KR100309520B1 (en) | Multiplication methods and multiplication circuits with round-off capability | |
| GB1476603A (en) | Digital multipliers | |
| JP2508286B2 (en) | Square root calculator | |
| US6360242B1 (en) | Summing circuit with high precision | |
| JP2550597B2 (en) | Squarer | |
| JPS6363130B2 (en) | ||
| JP3105577B2 (en) | Division product multiplier | |
| JPH0451857B2 (en) | ||
| KR100270814B1 (en) | Filtering coefficient realization method and apparatus using a digit shift-adder | |
| SU881741A1 (en) | Digital logarithmic converter | |
| JPS61258521A (en) | digital filter |