JPH01229322A - Micro processor with decimal multiplier - Google Patents

Micro processor with decimal multiplier

Info

Publication number
JPH01229322A
JPH01229322A JP63055181A JP5518188A JPH01229322A JP H01229322 A JPH01229322 A JP H01229322A JP 63055181 A JP63055181 A JP 63055181A JP 5518188 A JP5518188 A JP 5518188A JP H01229322 A JPH01229322 A JP H01229322A
Authority
JP
Japan
Prior art keywords
data
multiplier
bit
arithmetic
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.)
Granted
Application number
JP63055181A
Other languages
Japanese (ja)
Other versions
JP2706459B2 (en
Inventor
Hiroshi Mizuguchi
博 水口
Tadashi Kunihira
宰司 國平
Yutaka Ota
豊 太田
Toshihiko Sakai
堺 俊彦
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63055181A priority Critical patent/JP2706459B2/en
Publication of JPH01229322A publication Critical patent/JPH01229322A/en
Application granted granted Critical
Publication of JP2706459B2 publication Critical patent/JP2706459B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To directly execute the multiplication of the multiplicand data of an integer and multiplier data of a decimal by providing a multiplication control block which sets an arithmetic logical operation means to add data in which a previous addition result is shifted right to multiplicand data. CONSTITUTION:In a micro processor having a decimal multiplier, a multiplication control circuit 41 consisting of a decoder 34 and a bit AND circuit 31 discriminates values for the bits of multiplicand data supplied through a data bus 10 by the signal of a multiplication control circuit 35 and the multiplication control block 30 which drives a switch group 32 by said result and which sets an arithmetic logical operation unit ALU 20 to add data in which the previous addition result is shifted right 33 to multiplicand data supplied from the bus 10 is provided. With such a constitution, multiplicand data of the integer and multiplication data can directly be added and an execution speed can be made faster than a multiplier which deals only integers.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、機器を制御するに好適な小数乗算器を有する
マイクロプロセッサに関するものである。 従来の技術 最近のマイクロプロセッサには、乗算命令を備えたもの
が多く見受けられ、汎用のマイクロプロセッサには整数
乗算器が搭載され、信号処理や機器の制御に用いられる
/グナルプロセッサには浮動小数点乗算器が搭載されて
いる。 いま、第3図に示すようなモータの回転速度制御装置の
主要部をマイクロプロセッサで実現する場合について考
えてみると、速度誤差検出部1からは整数の誤差データ
が出力され、デジタルフィルタ2によって周波数領域で
の補償を行ったうえでD−Aコンバータ3によって直流
電圧に変換される。ところで、よく知られているように
、一般にこの種のディジタルフィルタでは乗数として小
数を扱う。これに対してディジタルフィルタ2に人力さ
れるのは整数の誤差検出データである。このような乗算
器としては整数のみを扱う乗算器か、あるいは規模の大
きな浮動小数点乗算器が使用されている。 発明が解決しようとする課題 しかしながら、上記のような従来のマイクロプロセッサ
の乗算器では、整数の被乗数と小数の乗数との乗算を直
接行うことができないという問題点があった。したがっ
て整数のみを扱う乗算器では実行を早めるためには乗算
器を多く必要とし、ICの面積が大きくなり、またコス
ト高の要因にもなっていた。 課題を解決するための手段 前記し、た課題を解決するために本発明の小数乗算器を
有するマイクロプロセッサでは、データバスを介して供
給される乗数データのビットごとの値の判別を行い、そ
の結果により前回の加算結果を右シフトしたデータと前
記データバスから供給される被乗数データの加算を算術
論理演算手段に実行させる乗算開側ブロックを備えてい
る。 作  用 本発明では前記した構成によって、整数の被乗数データ
と小数の乗数データの乗算が直接実行できる乗算aQを
有するマイクロプロセッサが得られる。 実施例 以下、本発明の実施例について図面を参照しながら説明
する。 第1図は本発明の一実施例におけるマイクロプロセッサ
の小数乗算器の部分のブロックダイアグラムを示したも
のである。データバス10から被乗数レジスタ11に供
給される被乗数データの、ALU (算術論理演算ユニ
ッ1−)20への転送路には、ビット論理積回路31の
出力によって開閉する16ビ7)のスイッチ群32が設
けられており、AL’U20の出力データは出方レジス
タ21゜16ビツトの帰還バス22と右シフタ33を介
してALU20の入力側に戻される。 また、ビット論理積回路31の一方の入力側にはデータ
バス10から乗数レジスタ12を介して乗数データが供
給され、他方の入力側にはデコーダ34を介して乗算制
御回路35がらのビット位置選択信号が供給され、AL
U20には乗算制御回路36からの加算指令信号ADD
が供給されている。なお、乗算制御回路36からデコー
ダ34にはビット位置選択信号が0から16までの数値
データとして供給され、デコーダ34はこの数値データ
に対応するビット位置がセットされた16ビツトのデー
タをビット論理積回路31に送出する。ビット論理積回
路31は乗数データとデコーダ34からのデータとの論
理積演算を行い、その結果を1ビツト化してスイッチ群
32に送出する。 スイッチ群32はビット論理積回路31の出力が”1”
であれば閉状態となり、反対に”0”であれば開状態と
なる。なお、スイッチ群32が開状態となったときには
、ALU20の被乗数側には零が供給される。 右シフタ33は、入力データをその値の減少方向にシフ
トしてALU20の入力側に供給するが、入力データと
してはALU20の加算結果が供給される。 いま、被乗数データが16進数でC4E20)、すなわ
ち、10進数で20000であり、乗数データが16進
数で〔8000〕、10進数で32768であるとする
と、乗算制御回路35から、ビット論理積回路31とデ
コーダ34に上って構成されたビット判別部4Qに対し
て0から15までの数値データが供給され、同時にAL
U20に対して16サイクルのパルス信号が供給された
とき、デコーダ34の出力のデータRn、ビット判別部
40の出力Cn  、出力レジスタ21の出力データD
n。 右シフタ33の出力データSnは以下のように遷移する
。なお、ここで出力レジスタ21は加算動作が完了する
までその出力データとして前回の値を保持するものとす
る。 (>・I’p光簀) n    Rn     Cn     Dn    
  5n(1)   Coool)  [:o〕 Co
ooo〕 (oooo〕(2)   Cooo2)  
[:o)  (oooo)  Coooo)(3)  
 [0004:)  CD)  (0000〕 (00
00,:](4)   C00O8)   (O〕  
[0000)  (00001(5)   Coolo
:]  Col  Coooo)  (oooo〕(6
)  〔0020〕 〔0〕 〔0000〕 〔000
0〕(7)   (0040)  [:0]  [00
00)  (000,0:](3)  [:0080)
   Co)  C00OOI   C00OO)(9
)   (0100〕 [:0]  [0000〕 (
0000〕αI  [0200)  Co)   (0
000〕  (0000)Ql)  (0400:l 
 Co)  (0000)  (0000)(LID 
 l:0800]  CO)  (0000〕 (00
00)α3  [1000:]  (0)   [00
001[0000)Q局 [20001CO)   (
0000)   (0000)αQ  (4000〕 
 (0)  (0000〕 (0000〕αG  (a
ooo:l  CD  (4E20:]  Coooo
)乗算結果は被乗数の(4E 201:l  に小数の
1.0を乗じたものに等しくなる。 同様にして、被乗数データが16進数で(4E20)で
あり、乗数データが16進数で(ssss)、10進数
で21845であるとすると、乗算制御回路35からビ
ット判別部40に対して0から16までの数値データが
供給され、同時にALU20に対して16サイクルのパ
ルス信号が供給されたとき、デコーダ34の出力のデー
タRn、ビット判別部4゜chi力Cn、ALU20の
出力データDn 、右シフタ33の出力データSnは以
下のように遷移する。 n   Rn   Cn   Dn     5n(1
)  [0001:II  (1)  C4E20) 
 (0000)(3)  Coooa)  [1]  
(61As)  (1388)(4)  [0008)
  (0)  (30D4)  (30D4)(5) 
 (0010)  (1:)  (668A)  (1
86A)(6)  [0020)  [:O)  [3
345)  (3345:](7)  [0040) 
 [1)  (67C2〕(19A2)(s)  (o
oso〕Co〕[:33E1]  (33E1](9)
  Co1oo)  [:D  [6810〕(19F
’o]α0  [0200)  CO)  (3408
)  (3408]1.11)  [0400)  [
1)  (6824]  CIAO4)(2)Coao
o〕(0〕(3412)  [3412]α3  (1
0001[1)  [6829)  (IAO9)(1
,Ill〔2000〕〔0〕〔5414〕〔6414〕
85  [4000)  CD  C682A]  (
IAOA)Qe  Caooo)  (01(3415
)  (3415)この場合の乗算結果は10進数で1
3333となり、被乗数のC4E20]に小数の0.6
1、すなわち、(20ωq/32767 )を乗じたも
のに等しくなる。 結局、第1図に示した小数乗算器では、被乗数データの
値D、乗数データの値Mから乗算結果Aは次のようにし
て算出される。 D = dls・215+d14・214+・・・+d
2−22+d1−21+dO−20−=−・・・・(1
)M= ml 5・215+ m14−2” 4+−・
・+ml・2 +m1・2 十−・20    ・・・
・・・・・・(2)ここで、dls、m1s  はそれ
ぞれ被乗数データD。 乗数データMの最上位ピントの値で、do、moはそれ
ぞれ被乗数データD9乗数データMの最下位ビットの値
である。最初の加算動作が完了した時点の、加算結果a
Oは、 aO=ω・D           ・・・・・・・・
・(3)2回目の加算動作が完了した時点の、加算結果
a1  は、 O a1=m1・D+− 3回目の加算動作が完了した時点の、加算結果a2は、 a2=D脅m2十− したがって、 このようにして、第1図の小数乗算器では、整数の被乗
数データと小数の乗数データとの乗算を簡単に行うこと
ができる。また、従来の整数乗算では、16ビツトのデ
ータの乗算を実行するとその結果を格納するために32
ビツトのレジスタあるいはメモリ領域を必要としたが、
第1図の小数乗算器では乗数データの値が1を越えない
かぎり桁あふれは発生しないので、乗算結果を格納する
ために必要となるビット数も少なくてすむ。 さて、第2図は本発明の別の実施例を示したもので、第
2図の小数乗算器では、乗数データの最下位ビットから
順にビット単位の値の判別を行うビット判別手段として
シフトレジスタ36が用いられ、乗算制御回路36から
シフトレジスタ36にはALU20に供給される加算指
令信号ADDと同じ16サイクルのパルス列からなる右
シフト指令信号が供給され、シフトレジスタ36がらの
シフトキャリーによってスイッチ群32が開閉される。 なお、本実施例では被乗数データ、乗数データともに1
6ビツトの場合について説明したが、両者が必ずしも同
じビット数である必要はない。例えば、第1図において
乗数データが8ピツトであれば乗算制御回路35から8
サイクルのパルス列を発生させればよく、その場合には
より速く乗算が完了する。さらに、説明の便宜上から被
乗数データと乗数データを区別したが、これらを入れ替
えても何等差しつかえないことは(1)〜(6)式から
も明らかである。 ところで、第1図および第2図のALU20は、もとも
とマイクロプロセッサが備えているものを利用すること
ができ、出力レジスタ21.被乗数レジスタ112乗数
レジスタ12についても同様である。したがって、第1
図の実施例についていえば、ビット論理積回路31.ス
イッチ群32゜右シフタ33.デコーダ342乗算制御
回路36によって構成される乗算制御ブロック30’z
マイクロプロセツサのコア部に付加するだけでよい。 また、第2図の実施例では、スイッチ群32.右シフタ
332乗算制御回路36.シフトレジスタ36によって
第1図と同様の乗算制御ブロック30が構成される。 以上の説明から明らかなように、本実施例の小数乗算器
を有するマイクロプロセッサは、データバス1oを介し
て供給されるデータの加減算を行うALU20と、前記
データバスを介して供給される乗数データのビットごと
の値の判別を行い、その結果により前回の加算結果を右
シフトしたデータと前記データバスから供給される被乗
算データの加算を前記ALUに実行させる乗算制御ブロ
ックを具備しているので、整数の被乗数データと小数の
乗数データの直接乗算を実行させることができ、犬なる
効果を秦する。また、本実施例においては、乗数データ
のビットごとの値の判別を行うビット判別手段(ビット
判別部4oまたはシフトレジスタ36)と、前記ビット
判別手段からの出力に応じて、前記データバスからAL
tJ 20への被乗数データの転送路を開閉するスイッ
チ手段(スイッチ群32)と、ALU20の出力をAL
U20の入力側に戻す帰還手段(帰還バス22)と、あ
らかじめ定めた回数のビット位置選択信号を前記ビット
判別手段に送出するとともに、加算指令信号をALU2
0に送出する乗算制御回路36によって構成されている
ので、容易に小数乗算機能全実現することができる。 発明の効果 以上のように本発明によれば、簡易な構成で繁数の被乗
数データと小数の乗数データの乗算が直接実行でき、整
数のみを扱う乗算器よりも実行速度をより早くでき、か
つ安価に構成できる。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a microprocessor having a fractional multiplier suitable for controlling equipment. Conventional technology Many modern microprocessors are equipped with multiplication instructions, and general-purpose microprocessors are equipped with integer multipliers, which are used for signal processing and equipment control. Equipped with a multiplier. Now, if we consider the case where the main part of a motor rotational speed control device as shown in FIG. After performing compensation in the frequency domain, it is converted into a DC voltage by the DA converter 3. By the way, as is well known, this type of digital filter generally uses decimal numbers as multipliers. On the other hand, what is manually input to the digital filter 2 is integer error detection data. As such a multiplier, a multiplier that handles only integers or a large-scale floating point multiplier is used. Problems to be Solved by the Invention However, the conventional microprocessor multiplier as described above has a problem in that it cannot directly multiply an integer multiplicand by a decimal multiplier. Therefore, a multiplier that handles only integers requires a large number of multipliers in order to speed up execution, which increases the area of the IC and also causes high costs. Means for Solving the Problems In order to solve the above-mentioned problems, a microprocessor having a decimal multiplier according to the present invention determines the value of each bit of multiplier data supplied via a data bus. A multiplication open side block is provided for causing an arithmetic and logic operation means to add data obtained by right-shifting the previous addition result and multiplicand data supplied from the data bus. Operation According to the present invention, the above-described configuration provides a microprocessor having a multiplication aQ that can directly perform multiplication of integer multiplicand data and decimal multiplier data. EXAMPLES Hereinafter, examples of the present invention will be described with reference to the drawings. FIG. 1 shows a block diagram of a fractional multiplier portion of a microprocessor in one embodiment of the present invention. A transfer path for the multiplicand data supplied from the data bus 10 to the multiplicand register 11 to the ALU (arithmetic logic unit 1-) 20 includes a switch group 32 of 16 bits 7) that is opened and closed by the output of the bit AND circuit 31. The output data of the AL'U 20 is returned to the input side of the ALU 20 via the output register 21, the 16-bit feedback bus 22, and the right shifter 33. Further, multiplier data is supplied to one input side of the bit AND circuit 31 from the data bus 10 via the multiplier register 12, and bit position selection data from the multiplication control circuit 35 is supplied to the other input side via the decoder 34. signal is supplied and AL
U20 receives an addition command signal ADD from the multiplication control circuit 36.
is supplied. Note that a bit position selection signal is supplied from the multiplication control circuit 36 to the decoder 34 as numerical data from 0 to 16, and the decoder 34 performs a bit AND operation on the 16-bit data in which the bit position corresponding to this numerical data is set. The signal is sent to the circuit 31. The bit AND circuit 31 performs an AND operation on the multiplier data and the data from the decoder 34, converts the result into 1 bit, and sends it to the switch group 32. In the switch group 32, the output of the bit AND circuit 31 is "1"
If it is "0", it is in a closed state, and on the other hand, if it is "0", it is in an open state. Note that when the switch group 32 is in the open state, zero is supplied to the multiplicand side of the ALU 20. The right shifter 33 shifts the input data in the direction of decreasing value and supplies it to the input side of the ALU 20, but the addition result of the ALU 20 is supplied as the input data. Now, assuming that the multiplicand data is in hexadecimal number C4E20), that is, 20000 in decimal number, and the multiplier data is [8000] in hexadecimal number and 32768 in decimal number, the multiplication control circuit 35 transfers the data to the bit AND circuit 31. Numerical data from 0 to 15 is supplied to the bit discriminator 4Q configured by the decoder 34, and at the same time the AL
When a 16-cycle pulse signal is supplied to U20, the output data Rn of the decoder 34, the output Cn of the bit discriminator 40, and the output data D of the output register 21
n. The output data Sn of the right shifter 33 transitions as follows. It is assumed here that the output register 21 holds the previous value as its output data until the addition operation is completed. (>・I'p light screen) n Rn Cn Dn
5n(1) Cool) [:o] Co
ooo〕 (oooo〕(2) Cooo2)
[:o) (oooo) Coooo) (3)
[0004:) CD) (0000] (00
00,:] (4) C00O8) (O]
[0000) (00001(5) Coolo
:] Col Coooo) (oooo) (6
) [0020] [0] [0000] [000
0] (7) (0040) [:0] [00
00) (000,0:](3) [:0080)
Co) C00OOI C00OO) (9
) (0100] [:0] [0000] (
0000] αI [0200) Co) (0
000] (0000)Ql) (0400:l
Co) (0000) (0000) (LID
l:0800] CO) (0000] (00
00) α3 [1000:] (0) [00
001 [0000) Q station [20001CO) (
0000) (0000) αQ (4000)
(0) (0000] (0000) αG (a
ooo:l CD (4E20:] Coooo
) The multiplication result is equal to the multiplicand (4E 201:l multiplied by the decimal 1.0.) Similarly, if the multiplicand data is (4E20) in hexadecimal and the multiplier data is (ssss) in hexadecimal, , 21845 in decimal notation, when numerical data from 0 to 16 is supplied from the multiplication control circuit 35 to the bit discriminator 40, and at the same time a 16-cycle pulse signal is supplied to the ALU 20, the decoder 34 output data Rn, bit discriminator 4°chi output Cn, ALU 20 output data Dn, and right shifter 33 output data Sn transition as follows: n Rn Cn Dn 5n (1
) [0001:II (1) C4E20)
(0000)(3) Coooa) [1]
(61As) (1388)(4) [0008]
(0) (30D4) (30D4) (5)
(0010) (1:) (668A) (1
86A) (6) [0020) [:O) [3
345) (3345:](7) [0040)
[1) (67C2] (19A2) (s) (o
oso〕Co〕[:33E1] (33E1] (9)
Co1oo) [:D [6810] (19F
'o] α0 [0200) CO) (3408
) (3408]1.11) [0400) [
1) (6824] CIAO4) (2) Coao
o] (0) (3412) [3412] α3 (1
0001 [1) [6829) (IAO9) (1
, Ill [2000] [0] [5414] [6414]
85 [4000) CD C682A] (
IAOA) Qe Caooo) (01(3415
) (3415) In this case, the multiplication result is 1 in decimal
3333, and the decimal 0.6 is added to the multiplicand C4E20]
1, that is, equal to the product multiplied by (20ωq/32767). In the end, in the decimal multiplier shown in FIG. 1, the multiplication result A is calculated from the multiplicand data value D and the multiplier data value M as follows. D = dls・215+d14・214+...+d
2-22+d1-21+dO-20-=-...(1
) M= ml 5・215+ m14-2” 4+-・
・+ml・2 +m1・2 10-・20 ・・・
(2) Here, dls and m1s are multiplicand data D, respectively. In the most significant focus value of the multiplier data M, do and mo are the values of the least significant bit of the multiplicand data D9 and the multiplier data M, respectively. Addition result a when the first addition operation is completed
O is aO=ω・D・・・・・・・・・
・(3) When the second addition operation is completed, the addition result a1 is O a1=m1・D+− When the third addition operation is completed, the addition result a2 is: a2=D threat m2− Therefore, in this way, the decimal multiplier of FIG. 1 can easily perform multiplication of integer multiplicand data and decimal multiplier data. In addition, in conventional integer multiplication, when 16-bit data is multiplied, 32 bits are required to store the result.
It requires a bit register or memory area, but
In the decimal multiplier of FIG. 1, overflow does not occur unless the value of the multiplier data exceeds 1, so the number of bits required to store the multiplication result can be reduced. Now, FIG. 2 shows another embodiment of the present invention. In the decimal multiplier shown in FIG. A right shift command signal consisting of a 16-cycle pulse train, which is the same as the addition command signal ADD supplied to the ALU 20, is supplied from the multiplication control circuit 36 to the shift register 36, and the switch group is shifted by the shift carry from the shift register 36. 32 is opened and closed. Note that in this embodiment, both the multiplicand data and the multiplier data are 1.
Although the case of 6 bits has been explained, it is not necessary that the two bits have the same number of bits. For example, if the multiplier data is 8 pits in FIG.
It is sufficient to generate a pulse train of cycles, in which case the multiplication is completed more quickly. Furthermore, although multiplicand data and multiplier data have been distinguished for convenience of explanation, it is clear from equations (1) to (6) that there is no problem even if they are interchanged. By the way, the ALU 20 shown in FIGS. 1 and 2 can use what is originally provided in a microprocessor, and the output register 21 . The same applies to the multiplicand register 112 and the multiplier register 12. Therefore, the first
Regarding the illustrated embodiment, bit AND circuit 31. Switch group 32° right shifter 33. Multiplication control block 30'z configured by decoder 342 multiplication control circuit 36
Just add it to the core of the microprocessor. In the embodiment of FIG. 2, the switch group 32. Right shifter 332 Multiplication control circuit 36. The shift register 36 constitutes a multiplication control block 30 similar to that shown in FIG. As is clear from the above description, the microprocessor having a decimal multiplier according to the present embodiment includes an ALU 20 that performs addition and subtraction of data supplied via the data bus 1o, and multiplier data supplied via the data bus 1o. The multiplication control block determines the value of each bit, and uses the result to cause the ALU to add the data obtained by shifting the previous addition result to the right and the multiplicand data supplied from the data bus. , a direct multiplication of the integer multiplicand data and the decimal multiplier data can be performed, which eliminates the dog effect. Further, in this embodiment, a bit discriminating means (bit discriminating section 4o or shift register 36) for discriminating the value of each bit of multiplier data, and an AL from the data bus according to an output from the bit discriminating means.
Switch means (switch group 32) that opens and closes the transfer path of multiplicand data to tJ 20, and the output of ALU 20
Feedback means (feedback bus 22) returns to the input side of U20, sends a predetermined number of bit position selection signals to the bit discrimination means, and sends an addition command signal to the ALU2.
Since it is constituted by the multiplication control circuit 36 that sends out 0, the entire decimal multiplication function can be easily realized. Effects of the Invention As described above, according to the present invention, multiplication of multiple multiplicand data and decimal multiplier data can be directly executed with a simple configuration, and the execution speed can be faster than that of a multiplier that handles only integers. Can be configured at low cost.

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

第1図は本発明の一実施例を示す小数乗算器のブロック
図、第2図は本発明の他の実施例を示す小数乗算器のブ
ロック図、第3図は小数乗算器を必要とする制御装置の
ブロック図である。 10・・・・・データバス、2o・・・・・八LU、2
0・・・・・・帰還バス、3o・・・・・・乗算側副ブ
ロック、32・・・・・・スイッチ群、33・・・・・
・右シフタ、35・・・・・乗算制御回路、36・・・
・・・シフトレジスタ、4o・・・・・・ビット判別部
Fig. 1 is a block diagram of a decimal multiplier showing one embodiment of the present invention, Fig. 2 is a block diagram of a decimal multiplier showing another embodiment of the invention, and Fig. 3 requires a decimal multiplier. FIG. 2 is a block diagram of a control device. 10...Data bus, 2o...8 LU, 2
0...Return bus, 3o...Multiplication collateral block, 32...Switch group, 33...
・Right shifter, 35... Multiplication control circuit, 36...
...Shift register, 4o...Bit discrimination section.

Claims (3)

【特許請求の範囲】[Claims] (1)データバスを介して供給されるデータの加減算を
行う算術論理演算手段と、前記データバスを介して供給
される乗数データのビットごとの値の判別を行い、その
結果により前回の加算結果を右シフトしたデータと前記
データバスから供給される被乗数データとの加算を前記
算術論理演算手段に実行させる乗算制御ブロックを具備
してなる小数乗算器を有するマイクロプロセッサ。
(1) Arithmetic and logic operation means for adding and subtracting data supplied via the data bus, and determining the value of each bit of the multiplier data supplied via the data bus, and based on the result, the previous addition result A microprocessor having a decimal multiplier comprising a multiplication control block for causing the arithmetic and logic operation means to add right-shifted data and multiplicand data supplied from the data bus.
(2)乗数データのビットごとの値の判別を行うビット
判別手段と、前記ビット判別手段からの出力に応じて、
前記データバスから算術論理演算手段への被乗数データ
の転送路を開閉するスイッチ手段と、前記算術論理演算
手段の出力を前記算術論理演算手段の入力側に戻す帰還
手段と、あらかじめ定めた回数のビット位置選択信号を
前記ビット判別手段に送出するとともに、加算指令信号
を前記算術論理演算手段に送出する乗算制御回路を具備
してなる、請求項1記載の小数乗算器を有するマイクロ
プロセッサ。
(2) bit discrimination means for discriminating the value of each bit of multiplier data, and according to the output from the bit discrimination means,
switch means for opening and closing a transfer path for multiplicand data from the data bus to the arithmetic and logic operation means; feedback means for returning the output of the arithmetic and logic operation means to the input side of the arithmetic and logic operation means; and a predetermined number of bits. 2. A microprocessor having a decimal multiplier according to claim 1, further comprising a multiplication control circuit for sending a position selection signal to said bit discrimination means and for sending an addition command signal to said arithmetic and logic operation means.
(3)乗数データのビットごとの値の判別を行うビット
判別手段と、前記ビット判別手段からの出力に応じて、
前記データバスから算術論理演算手段への被乗数データ
の転送路を開閉するスイッチ手段と、前記算術論理演算
手段の出力データをその値が減少する方向にシフトして
前記算術論理演算手段に供給する右シフタと、あらかじ
め定めた回数のビット位置選択信号を前記ビット判別手
段に送出するとともに、加算指令信号を前記算術論理演
算手段に送出する乗算制御回路を具備してなる、請求項
1記載の小数乗算器を有するマイクロプロセッサ。
(3) bit discrimination means for discriminating the value of each bit of multiplier data, and according to the output from the bit discrimination means,
switch means for opening and closing a transfer path for multiplicand data from the data bus to the arithmetic and logic operation means; and a switch means for shifting the output data of the arithmetic and logic operation means in a direction in which the value thereof decreases and supplying the output data to the arithmetic and logic operation means. 2. The decimal multiplication device according to claim 1, further comprising a shifter and a multiplication control circuit for sending a predetermined number of bit position selection signals to said bit discrimination means and for sending an addition command signal to said arithmetic and logic operation means. A microprocessor with a device.
JP63055181A 1988-03-09 1988-03-09 Microprocessor with decimal multiplier Expired - Lifetime JP2706459B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63055181A JP2706459B2 (en) 1988-03-09 1988-03-09 Microprocessor with decimal multiplier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63055181A JP2706459B2 (en) 1988-03-09 1988-03-09 Microprocessor with decimal multiplier

Publications (2)

Publication Number Publication Date
JPH01229322A true JPH01229322A (en) 1989-09-13
JP2706459B2 JP2706459B2 (en) 1998-01-28

Family

ID=12991548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63055181A Expired - Lifetime JP2706459B2 (en) 1988-03-09 1988-03-09 Microprocessor with decimal multiplier

Country Status (1)

Country Link
JP (1) JP2706459B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014187539A (en) * 2013-03-22 2014-10-02 Mega Chips Corp Image processing apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59172040A (en) * 1983-03-22 1984-09-28 Toshiba Corp Multiplying circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59172040A (en) * 1983-03-22 1984-09-28 Toshiba Corp Multiplying circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014187539A (en) * 2013-03-22 2014-10-02 Mega Chips Corp Image processing apparatus

Also Published As

Publication number Publication date
JP2706459B2 (en) 1998-01-28

Similar Documents

Publication Publication Date Title
US4975868A (en) Floating-point processor having pre-adjusted exponent bias for multiplication and division
US4893268A (en) Circuit and method for accumulating partial products of a single, double or mixed precision multiplication
JP2674754B2 (en) Barrel shifter
EP0136834A2 (en) A digital circuit performing an arithmetic operation with an overflow
US5892699A (en) Method and apparatus for optimizing dependent operand flow within a multiplier using recoding logic
US5508948A (en) Numeric representation converting apparatus and vector processor unit such apparatus
JPS61177538A (en) Position detection for highest-order numeral
JPS62197823A (en) Multifunctional arithmetic logical circuit
JPH0769782B2 (en) Microprogrammable 32-bit cascadable bit slice
JPS6227412B2 (en)
JPH01229322A (en) Micro processor with decimal multiplier
JPH01100626A (en) Decimal fraction multiplier
JP2663287B2 (en) Method and apparatus for unambiguously evaluating data processor conditions
US5761106A (en) Horizontally pipelined multiplier circuit
US6035310A (en) Method and circuit for performing a shift arithmetic right operation
JPH01103738A (en) Decimal multiplier
JP2711487B2 (en) Fixed data addition / subtraction circuit
JP3696669B2 (en) Comparator mechanism and comparator
US6411975B1 (en) Digital processing
JP3110072B2 (en) Pre-normalization circuit
JP2615746B2 (en) Bit operation circuit
JPS6097436A (en) Rounding control circuit
JPS62249227A (en) Shift device
JPS63208938A (en) Flag generating circuit
JPS63298526A (en) Floating decimal point adder

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081009

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081009

Year of fee payment: 11