JPH04107731A - Multiplication circuit - Google Patents

Multiplication circuit

Info

Publication number
JPH04107731A
JPH04107731A JP2227717A JP22771790A JPH04107731A JP H04107731 A JPH04107731 A JP H04107731A JP 2227717 A JP2227717 A JP 2227717A JP 22771790 A JP22771790 A JP 22771790A JP H04107731 A JPH04107731 A JP H04107731A
Authority
JP
Japan
Prior art keywords
multiplicand
multiplier
address
multiplication
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2227717A
Other languages
Japanese (ja)
Inventor
Tamotsu Naganami
長南 保
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.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP2227717A priority Critical patent/JPH04107731A/en
Publication of JPH04107731A publication Critical patent/JPH04107731A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the quantity of hardware and to simplify circuit configuration by preparing a multiplication result in a memory device, and providing a function to switch a multiplicand and a multiplier based on the comparison result of the size of the addresses of the multiplicand and the multiplier when comprising the address with the multiplicand and the multiplier. CONSTITUTION:A subtractor 1 performs the size comparison of the multiplicand 2 and the multiplier 3. Also, data selectors 5a,5b select the multiplicand 3 and either a high-order address 6 or a low-order address 7 by a borrow signal 4 by the result of substraction, and the content of the memory device 8 designated by the address is outputted as the multiplication result 9. In other words, the correspondence of the content of the memory device 8 and the address is performed by setting the number of cells to 1/2 by comparing the multiplicand 2 with the multiplier 3 by the subtractor 1 and switching the multiplicand 2 with the multiplier 3 at a data selector 5 when the multiplicand 2 is less than the multiplier 3. Thereby, it is possible to reduce the quantity of hardware and to simplify the circuit configuration.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は乗算回路に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a multiplication circuit.

〔従来の技術〕[Conventional technology]

従来の乗算回路は、第2図に示す様に、組み合せ回路方
式の乗算回路があり、被乗数ビット数X乗数のビット数
(16個)分のANDゲート21〜36と、乗数ビット
−1段(3段)の並列加算器11〜13とからなる構成
となっていた。
As shown in Fig. 2, the conventional multiplier circuit has a combinational circuit type multiplier circuit, which includes AND gates 21 to 36 for the number of multiplicand bits x the number of bits of the multiplier (16), and the multiplier bit minus one stage ( The configuration consisted of parallel adders 11 to 13 (3 stages).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の乗算回路では、ANDゲート、加算器の
ハードウェア量が多く、回路構成が複雑になってしまう
という欠点がある。
The above-mentioned conventional multiplication circuit has the disadvantage that the AND gate and the adder require a large amount of hardware, making the circuit configuration complicated.

本発明の目的は、このような欠点を除き、ハードウェア
量を少くし、簡単な回路構成とした乗算回路を提供する
ことにある。
An object of the present invention is to eliminate such drawbacks, reduce the amount of hardware, and provide a multiplication circuit with a simple circuit configuration.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の乗算回路の構成、は乗算を行う場合の被乗数お
よび乗数を上位アドレスおよ下位アドレスとして、その
アドレスが示す内容を乗算結果として出力する記憶装置
と、前記被乗数と乗数との大小を比較する減算器と、こ
の減算器の出力により前記上位アドレスと下位アドレス
とを交換するデータセレクタとを有し、前記記憶装置の
出力を乗算出力としたことを特徴とする特 〔実施例〕 次に本発明について図面を参照して説明する。
The configuration of the multiplier circuit of the present invention includes a storage device that outputs the contents indicated by the addresses as a multiplication result, using the multiplicand and the multiplier as upper addresses and lower addresses when performing multiplication, and comparing the magnitude of the multiplicand and the multiplier. and a data selector that exchanges the upper address and the lower address using the output of the subtracter, and the output of the storage device is used as the multiplication output. The present invention will be explained with reference to the drawings.

第1図は本発明一実施例を示す乗算回路のブロック図で
ある。この図で、減算器lは、被乗数2と乗数3の大小
比較を行う。また、データ・セレクタ5は、減算の結果
によるボロー信号4によって被乗数2と乗数3を上位ア
ドレス6にするか、下位アドレス7にするかを選び、そ
のアドレスによって指定される記憶装置8の内容が乗算
結果9として出力される。
FIG. 1 is a block diagram of a multiplication circuit showing one embodiment of the present invention. In this figure, the subtracter l compares the magnitude of the multiplicand 2 and the multiplier 3. Further, the data selector 5 selects whether the multiplicand 2 and the multiplier 3 should be set to the upper address 6 or the lower address 7 by the borrow signal 4 resulting from the subtraction, and the contents of the storage device 8 specified by the address are The multiplication result 9 is output.

この記憶装置8の内容とアドレスの対応は、被乗数を上
位アドレス、乗数を下位アドレスと固定した場合には、
第1表の様なるが、被乗数と乗数を交換しても乗算結果
は一致するため、減算器1によって被乗数2と乗数3と
を比較し、被乗数2が乗数3より小さい場合には、デー
タ・セレクタ5で被乗数2と乗数3とを入換えることに
よって、第2表に示す様にメモリ・セル数を172にす
ることができる。
The correspondence between the contents of this storage device 8 and addresses is as follows when the multiplicand is fixed as an upper address and the multiplier is fixed as a lower address.
As shown in Table 1, even if the multiplicand and the multiplier are exchanged, the multiplication results are the same, so the subtracter 1 compares the multiplicand 2 and the multiplier 3, and if the multiplicand 2 is smaller than the multiplier 3, the data By exchanging multiplicand 2 and multiplier 3 in selector 5, the number of memory cells can be increased to 172 as shown in Table 2.

〔発明の効果〕 以上説明したように本発明は、記憶装置に乗算妻結果を
用意し被乗数と乗数の大小比較の結果によって、被乗数
と乗数を入換える機能を有することにより、ハードウェ
ア量が少なく簡単な回路構成で、乗算回路が実現できる
効果があり、さらに処理速度が被乗数と乗数のビット数
に依存しないという効果もある。
[Effects of the Invention] As explained above, the present invention has a function of preparing the multiplication result in the storage device and exchanging the multiplicand and the multiplier based on the result of comparing the magnitude of the multiplicand and the multiplier, thereby reducing the amount of hardware. This has the advantage that a multiplication circuit can be realized with a simple circuit configuration, and the processing speed does not depend on the number of bits of the multiplicand and the multiplier.

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

第1図は本発明の一実施例のブoyり図、第2図は従来
の4ビツト、4ビツトの組み合せ方式の乗算回路のブロ
ック図である。 1・・・・・・減算器、2・・・・・・被乗数、3・・
・・・・乗数、4・・・・・・ボロー信号、5・・・・
・・データセレクタ、6・・・・・・上位アドレス、7
・・・・・・下位アドレス1,8・・・・・・記憶装置
、9・・・・・・乗算結果、11〜13・・・・・・加
算器、21〜36・・・・・・ANDゲート。 代理人 弁理士  内 原   晋
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional 4-bit, 4-bit combination type multiplication circuit. 1... Subtractor, 2... Multiplicand, 3...
... Multiplier, 4 ... Borrow signal, 5 ...
...Data selector, 6... Upper address, 7
...Lower address 1,8...Storage device, 9...Multiplication result, 11-13...Adder, 21-36...・AND gate. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】[Claims] 乗算を行う場合の被乗数および乗数を上位アドレスおよ
び下位アドレスとして、そのアドレスが示す内容を乗算
結果として出力する記憶装置と、前記被乗数と乗数との
大小を比較する減算器と、この減算器の出力により前記
上位アドレスと下位アドレスとを交換するデータセレク
タとを有し、前記記憶装置の出力を乗算出力としたこと
を特徴とする乗算回路。
A storage device that uses a multiplicand and a multiplier when performing multiplication as an upper address and a lower address and outputs the contents indicated by the addresses as a multiplication result, a subtractor that compares the magnitude of the multiplicand and the multiplier, and the output of this subtractor. 1. A multiplication circuit comprising: a data selector for exchanging the upper address and the lower address; and an output of the storage device is used as a multiplication output.
JP2227717A 1990-08-29 1990-08-29 Multiplication circuit Pending JPH04107731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2227717A JPH04107731A (en) 1990-08-29 1990-08-29 Multiplication circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2227717A JPH04107731A (en) 1990-08-29 1990-08-29 Multiplication circuit

Publications (1)

Publication Number Publication Date
JPH04107731A true JPH04107731A (en) 1992-04-09

Family

ID=16865251

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2227717A Pending JPH04107731A (en) 1990-08-29 1990-08-29 Multiplication circuit

Country Status (1)

Country Link
JP (1) JPH04107731A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0619557A2 (en) * 1993-03-31 1994-10-12 Motorola, Inc. A data processing system and method thereof
KR100389082B1 (en) * 1995-04-24 2004-09-04 삼성전자주식회사 Multiplier using combination of adder and subtracter for rgb matrix generating algorithm of digital camera signal processing ic

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0619557A2 (en) * 1993-03-31 1994-10-12 Motorola, Inc. A data processing system and method thereof
EP0619557A3 (en) * 1993-03-31 1996-06-12 Motorola Inc A data processing system and method thereof.
KR100389082B1 (en) * 1995-04-24 2004-09-04 삼성전자주식회사 Multiplier using combination of adder and subtracter for rgb matrix generating algorithm of digital camera signal processing ic

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
US5508948A (en) Numeric representation converting apparatus and vector processor unit such apparatus
JP2009507413A (en) Full adder module and multiplier device using the full adder module
KR960024997A (en) Digital array processor for multi-instruction multi-data type neural network and system configured using same
JPH04107731A (en) Multiplication circuit
JPH0553920A (en) Structural address generator
JPS6382530A (en) Semiconductor storage device
JPS63111535A (en) Data processor
JPS60129853A (en) Address generating device
JP2617813B2 (en) Address translation device
JP2556904B2 (en) High-speed adder / subtractor
JPS604499B2 (en) Addressing device in data processing equipment
JPH03113653A (en) Address generation circuit
JPH04149728A (en) Rom type digital arithmetic circuit
JPS59201144A (en) Decimal arithmetic circuit
JPH06149660A (en) Memory access device
JPH08179998A (en) Multi-stage hardware timer
JPH02239349A (en) Circuit for detecting exception of virtual computer
JPS6225216B2 (en)
JPS6314233A (en) Decimal multplying circuit
JPH0443444A (en) Address generation system for storage
JPH03242742A (en) Memory address controller
JPH04155441A (en) Address generating circuit
JPS61109138A (en) Computer controller
JPH0619798B2 (en) Address generation circuit