JPS59170940A - Read-only fixed memory and multiplying method using this read-only fixed memory - Google Patents

Read-only fixed memory and multiplying method using this read-only fixed memory

Info

Publication number
JPS59170940A
JPS59170940A JP4431383A JP4431383A JPS59170940A JP S59170940 A JPS59170940 A JP S59170940A JP 4431383 A JP4431383 A JP 4431383A JP 4431383 A JP4431383 A JP 4431383A JP S59170940 A JPS59170940 A JP S59170940A
Authority
JP
Japan
Prior art keywords
input
binary data
bit
bits
bit binary
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
JP4431383A
Other languages
Japanese (ja)
Inventor
Takaya Maruoka
丸岡 嵩彌
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.)
KOKUSAI SYST SANGYO KK
Original Assignee
KOKUSAI SYST SANGYO KK
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 KOKUSAI SYST SANGYO KK filed Critical KOKUSAI SYST SANGYO KK
Priority to JP4431383A priority Critical patent/JPS59170940A/en
Publication of JPS59170940A publication Critical patent/JPS59170940A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods 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/52Multiplying; Dividing
    • G06F7/523Multiplying only
    • G06F7/53Multiplying only in parallel-parallel fashion, i.e. both operands being entered in parallel
    • G06F7/5324Multiplying 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

Abstract

PURPOSE:To attain multiplication in a short arithmetic processing time by preparing a ROM specified at the addresses by 8-bit binary data and stored the multiplied value of numbers indicated by high-order 4 bits and low-order 4 bits respectively, and executing multiplication by using said ROM and two registers. CONSTITUTION:A multiplicand P and a multiplier Q which are indicated as 8-bit binary numbers respectively are divided into the parts A, B of the multiplicand P and the parts C, D of the multiplier Q which are indicated as 4-bit data respectively. The multiplied values of all combinations of these 4-bit binary data A, B; C, D are found out. In case of BXD for instance, respective bits of the divided part B consisting of 4- bit binary data are inputted to the address specification input ports AD7-AD4 of the ROM from the upper bit successively and respective bits of the divided part D consisting of 4-bit binary data are inputted to the address specification input ports AD3-AD0 of said ROM from the upper bit successively to obtain the multiplied values from the output ports C7-C0. In the same manner, respective multiplied values of AXD, BXC and AXC are found out. On the basis of BXD, AXD and BXC are shifted by 4 bits respectively. AXC is shifted by 8 bits and these shifted values are added to obtain the multiplied value.

Description

【発明の詳細な説明】 本発明は、m−4−n = jとなるJビットの2進ボ
ードに入力する2通データで指定されたアドレスの記憶
値?上記出力ボートから出力する読み出し専用固定記憶
装置と、この記憶装置を使用した乗算方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a memory value of an address specified by two sets of data input to a J-bit binary board where m-4-n = j? The present invention relates to a read-only fixed storage device output from the output port and a multiplication method using this storage device.

従来2進数どうしと乗算する場合、一般に下記の演算例
に示すように、 1011 ・・・・・・被乗数(1) XIIOI  ・川・・乗数(2) 1011 ・・・・・・(3) 0000 ・・・・・−(4) 1011  ・・・・・・(5) 1011   曲・・(6) 10001111  ・・・・・・乗算値(7)被乗数
(1)と乗数(2)の桁数に対応させてシフトし、対応
する乗数(2)の相方り“のときは被乗数の各ビットと
゛)、、、:Nとし、このように得られた各2進データ
(3! 、 (41、(5) 、 (6)を2入力加算
回路を用いて、[[(: (3!十(4)) +(51
) 十(6)’:lのように順次加算することにより、
乗算値(力を得るようにしている。
Conventionally, when multiplying binary numbers, as shown in the calculation example below, 1011... Multiplicand (1) XIIOI Multiplicand (2) 1011... (3) 0000・・・・・・-(4) 1011 ・・・・・・(5) 1011 Song...(6) 10001111 ・・・・・・Multiply value (7) Number of digits of multiplicand (1) and multiplier (2) , and each bit of the multiplicand when the corresponding multiplier (2) is ``)''), , :N, and each binary data obtained in this way (3!, (41, (5) and (6) using a two-input adder circuit, [[(: (3! ten (4)) + (51
) By adding sequentially like 10(6)':l,
Multiply value (I'm trying to get power.

しかしながら、このような乗算方法では、乗数(2)の
桁数が多くなると、それに伴って加算回数が増加し、t
た通常この加算時間が比較的長くなることから全体の演
算時間が長くなるという問題があった。
However, in such a multiplication method, as the number of digits in the multiplier (2) increases, the number of additions increases accordingly, and t
However, since this addition time is usually relatively long, there is a problem in that the overall calculation time becomes long.

本発明は上記の問題点に鑑み、また、近年多大な記憶容
量を有し、安価に入手できるようになった半導体で購成
される読み出し専用固定記憶装置、すなわちROMの読
み出り時間が上記加算時間に比べて著しく短いというこ
とに着目してなされたものであり、演算処理時間の短い
乗算を可能にすることを目的としている。そして、この
目的を達成するために、本発明は、基本となる読み出し
専用固定記憶装置において、m+n=jとなるjビット
の2進データが入力するアドレス指定入力ボートと、所
定の出方ボートとを有し、上記入力ボートに入力するJ
ビット2進データで指定されるアドレスに当該jビット
2進データの所定mビットとnビットで表ゎされる容赦
どうしの積値を記憶し、任意のjビット2進データが上
記入力ボートに入力した時に上記出力ポートから上記ア
ドレスに記憶した数値の2進数出力分行なうようにしk
ものであり、乗算方法として、2進数でなる被乗数と乗
数をそれぞれ任意のビット数に分割し、この分割された
被乗数と乗数の分割部分それぞれの各ビットと上記読み
出し専用固定記憶装置のアドレス指定ボートに入力する
ことにより出力ポートから出力される2進データとなる
上記被乗数と乗数の分割部分どうしの積値と得、この波
乗:数と乗数のすべての分割部分の組合せについて得た
各分割部分の積値2進データとそれぞれその分割部分の
組合せに応じて所定ビットだけシフトし、このシフトし
た各積値2進データを加算して被乗数と乗数の乗算値と
得るようにした。
In view of the above-mentioned problems, the present invention has been developed to solve the above-mentioned problem. This was done with the focus on the fact that the time is significantly shorter than the addition time, and the purpose is to enable multiplication in a short calculation processing time. In order to achieve this objective, the present invention provides an addressing input port into which j-bit binary data such as m+n=j is input, and a predetermined output port in the basic read-only fixed storage device. and enter J into the input boat above.
The product value of the tolerances expressed by the predetermined m bits and n bits of the J-bit binary data is stored at the address specified by the bit binary data, and any J-bit binary data is input to the input port. When this happens, output the binary number of the numerical value stored at the above address from the above output port.
As a multiplication method, the binary multiplicand and multiplier are each divided into arbitrary numbers of bits, and each bit of each divided part of the divided multiplicand and multiplier is combined with the address designation board of the above-mentioned read-only fixed storage device. The product value of the divided parts of the multiplicand and the multiplier, which becomes binary data output from the output port by inputting to The product value binary data is shifted by a predetermined bit according to the combination of its divided parts, and each of the shifted product value binary data is added to obtain the product value of the multiplicand and the multiplier.

以下、本発明の実施例を図面に基づいて説明する。まず
、基本となる読み出し専用固定記憶装置、すなわちRO
Mについて説明する。第1図は8ビツトのアドレス指定
入カポ−) ADO、IAD。
Embodiments of the present invention will be described below based on the drawings. First, the basic read-only persistent storage, or RO
Let me explain about M. Figure 1 shows 8-bit addressing inputs (ADO, IAD).

AD2. AD3. AD4. A鶏、 AD6. A
八に有するROMの例であり、その出力ポートも8ビッ
トC61C1lc、 、 c3. c、 、 a、 、
 a6. c、となっている。そして、当該アドレス指
定入力ボートに入力する8ビツト2進データによって指
定されるアドレスにはアドレス指定入力ボートAD3.
 AD、、 、 AD、 、 A′D。
AD2. AD3. AD4. A chicken, AD6. A
This is an example of a ROM having 8 bits, and its output port is also 8 bits C61C1lc, , c3. c, , a, ,
a6. c. Then, the address specified by the 8-bit binary data input to the addressing input port is input to the addressing input port AD3.
AD, , , AD, , A'D.

の4ビツトで表わされる数と、アドレス指定入力ボート
AD7. AD、 、 Aハ、 AD、の4ビツトで表
わされる数との積値が記憶されており、アドレス指定入
力ボートに任意の8ビツト2進データが入力した時に第
2図に示すように出力ポート07〜coから上記8ビツ
ト2進データで指定されるアドレスに記憶した積値の2
進数出力を行なうようになっている。すなわち、当該8
ビツト2進データをアドレス入力ボートAD3〜AD、
、 、!:AD、〜AD、に分割した各4ビツト2進数
の積値が出力される。例えば、アドレス入カボート凪〜
ADoに入力する8ビツト2進データが(0011oo
io)の場合は積3×2の値と2進数表現した( 00
000110)が出力ポート07〜Coから出力される
(第2図におけるアドレス5o、1fiQ)。
A number represented by 4 bits, and an addressing input port AD7. The product value of AD, , A, AD, and the number represented by 4 bits is stored, and when arbitrary 8-bit binary data is input to the addressing input port, the output port is output as shown in Figure 2. 2 of the product value stored in the address specified by the above 8-bit binary data from 07 to co
It is designed to output decimal numbers. In other words, the 8
Bit binary data is input to address input ports AD3 to AD,
, ,! The product value of each 4-bit binary number divided into :AD, ~AD, is output. For example, address input Kabot Nagi ~
The 8-bit binary data input to ADo is (0011oo
io), the value of the product 3×2 is expressed in binary (00
000110) are output from output ports 07 to Co (addresses 5o and 1fiQ in FIG. 2).

尚、本実施例では、゛γアドレス升指定人カポ−) A
I)、〜ADoに人力する8ピツ)・2進データによっ
て指定されるアドレスは、当該8ビツト2進数によって
表現される数に対応Jるものとなっている。例えば当該
8ビツト2進敷が(00i 10010)であるならば
指定アト1/スは50というこ々になる。
In addition, in this embodiment, ゛γ address square designator capo) A
I), ~8-bit input manually into ADo) The address specified by the binary data corresponds to the number expressed by the 8-bit binary number. For example, if the 8-bit binary code is (00i 10010), the designated address 1/s will be 50.

このような読み出し専用IM定定記製装置OMによれば
、例えば当該R,OMと4ビツト2巡数を(各納するレ
ジスタを2個用いて、一方のレジスタAの各出力ポート
を上位から第1図に示すR,OMのアドレス指定入カポ
−) AD、〜A])4のそれぞ績v続し、他方のレジ
スタBの各出力ポートを北位から当該R,OΔ1のアド
レス指定入カポ−) AI)3〜ADoのそれぞれに接
続すれは、各レジスタA。
According to such a read-only IM regularization device OM, for example, the R, OM, and a 4-bit 2-circular number (using two registers each storing the output ports of one register A from the upper The addressing inputs of R and OM shown in Figure 1 are successively connected to the respective output ports of the other register B from the north to the addressing inputs of R and OΔ1. Capo) AI) Each register A is connected to each of 3 to ADo.

Bに入力される4ビツト2進数の乗算装置が構成される
こととなり、この乗算装置の演算処理時間はほぼROM
の読み出し時間だけとなり著しく短いものとなる。
A multiplication device for the 4-bit binary number input to B is configured, and the calculation processing time of this multiplication device is approximately the same as that of the ROM.
The readout time is extremely short.

次に今まで澱明してきた読み出し専用固定記憶装↑p 
ROMを用いて更に桁数C゛大きい2進数の乗算値を得
る方法について説明する。
Next, the read-only fixed storage device that has been stagnant until now ↑p
A method of obtaining a multiplied value of a binary number with an even larger number of digits C by using a ROM will be explained.

第3図は8ビツト2進数と・51−の乗算を行う方法を
示す説明図である。そして、この場合例え6・二r第1
図及び第2図に示すROΔ1と用いることとする。
FIG. 3 is an explanatory diagram showing a method of multiplying an 8-bit binary number by .51-. In this case, Parable 6.2r 1st
It will be used with ROΔ1 shown in FIG.

まず8ビツト2進数となる被乗数Pと乗数Qをそれぞれ
4ビツト2進データとなる被乗数Pの部分A、Bと乗数
Qの部分C2Dに分割する。
First, the multiplicand P and the multiplier Q, which are 8-bit binary numbers, are each divided into parts A and B of the multiplicand P and part C2D of the multiplier Q, which are 4-bit binary data.

この4ビツト2進デ・−りとなる被乗数Pの分割部分A
 、 Bと乗数Qの分割部分C2])とのすべての組合
せについての積値、すなわち、BXD 。
The divided part A of the multiplicand P that becomes this 4-bit binary data
, B and the divided portion C2] of the multiplier Q, i.e., BXD.

AXD 、BXC! 、AXCの値を求める。この分割
部分の積値を求めるには、例えばB X Dについてみ
ると、4ビツト2進データとなる分割部分Bの各ビット
を上位ビットから第1図に示すROΔ1のアドレス指定
入カポ−) AD7〜AJ)4に人力し、同様に4ビツ
ト2進データとなる分割部分Cの各ビットを上位ビット
から当該ROMのアト【、・ス指定入カポ−トAD3〜
A−DoK入力することにより、その出力ボートCヮ〜
Coから出力される8ビツト2進データとなる分9:1
1部分BとCの積値を得る。以下同様に、AXD 、B
XO、AXCの値を求める。
AXD, BXC! , AXC. To find the product value of this divided portion, for example, considering B x D, each bit of divided portion B, which is 4-bit binary data, is input from the upper bit to the addressing address of ROΔ1 shown in FIG. 1 (AD7). ~AJ) 4, and similarly input each bit of the divided portion C, which becomes 4-bit binary data, from the upper bit to the specified input port AD3~ of the ROM.
By inputting A-DoK, its output port Cヮ~
The ratio of 8-bit binary data output from Co is 9:1.
1. Obtain the product value of parts B and C. Similarly, AXD, B
Find the values of XO and AXC.

ここでM采数P、乗数Q、分割部分A、 、 B 。Here, M function number P, multiplier Q, and division parts A, , B.

0、Dの値をそれぞれp + q + a 1 b 、
c 、 dとすると、 pXq=(a・2’1−b)−(c−2’−1−d)−
= a*c*2″4−b++ca2’+aedm2’+
beaとなる。この1こめ、1−記のようにして求めた
8ビツト2進データとなるBXJ)、AXD 、BXC
,AXOをそねぞ才1、f3 X Dを〃二ン郭として
、AXD 、BXC!をそれぞれ4ビツトシフトし、A
xctsビットシフトする。そして、このようにシフト
した8ビツト2進データとなる各分割部分の積値と加算
すると、被乗数I) 、!=采数Qとによる乗算値が得
られる。
The values of 0 and D are respectively p + q + a 1 b,
If c and d, then pXq=(a・2'1-b)-(c-2'-1-d)-
= a*c*2″4-b++ca2’+aedm2’+
It becomes bea. After this step, the 8-bit binary data obtained as described in step 1-BXJ), AXD, BXC
, AXO is 1, f3 are shifted by 4 bits each, and A
xcts bit shift. Then, when added to the product value of each divided portion, which becomes 8-bit binary data shifted in this way, the multiplicand I), ! = The multiplication value by the number of columns Q is obtained.

4−、記の方法に従って例えば、被乗数P=10111
101(189)、乗数Q二11.101100(23
6)とした場合ひこついて乗算値を求めると、被乗数P
の分割部分A−、Bは A、=1011  、   B=1101乗数Qの分割
部分C2Dは C=1110  、  D=1100 となる。第1図Uこ示す1(OMにより、BXD 、 
AXD 、BXC、AXCを求めると、 BXD=10011100.  AXD=100001
00BXG!=1.0110110 、  AXC=1
0011010となり、この分1111部分の積値2進
データ?所定ビツトシフトして加算するき、 10011100    ・・・・・・B×]〕100
00100      ・・・・・・A×1)1011
011.0     −−− BXC乗算値P X Q
 ’?c 1010111000111100(446
04)として得ることができる。
4-, according to the method described, for example, the multiplicand P=10111
101 (189), multiplier Q211.101100 (23
6) If you are forced to find the multiplier value, the multiplicand P
The divided parts A- and B of are A,=1011, B=1101, and the divided part C2D of multiplier Q is C=1110, D=1100. Figure 1 shows 1 (by OM, BXD,
When calculating AXD, BXC, and AXC, BXD=10011100. AXD=100001
00BXG! =1.0110110, AXC=1
The result is 0011010, which is the product value binary data of the 1111 part? When adding after shifting the specified bits, 10011100...B×]]100
00100...A×1)1011
011.0 --- BXC multiplication value P X Q
'? c 1010111000111100 (446
04).

このような乗算方法によれば、被乗数と乗数の各分割部
分どうしの積値は、当該ROMによって求めるようにし
たため、その処理時間は著しく短く、また、最初に説明
した従来の演算方法では乗数が8ビツト2進数の場合、
加算すべき2進データが8個となるのに比べ、本方法で
は、加算すべき2進数が4個となるため、その加算時間
も短かくなり、乗算に係る演算処理時間は大幅に短縮す
ることができる。
According to such a multiplication method, the product value of each divided part of the multiplicand and multiplier is determined by the ROM, so the processing time is extremely short, and the multiplier is In the case of 8-bit binary numbers,
Compared to the 8 binary data to be added, in this method, the number of binary numbers to be added is 4, so the addition time is shortened, and the calculation processing time related to multiplication is significantly shortened. be able to.

また、各分割部分の積値を加算する手段として、第4図
に示すような、jビットの2進データが入力するアドレ
ス指定入力ボートと、2n−1−1〈」≦2°−1とな
るnビットの2進数が出力する出力ボートを有し、上記
入カポ−)K入力する2進データで指定されるアドレス
に該入ボートに入力した時に上記nビットの出力ボート
から入力した2進データによって指定されるアドレスに
記憶した数値の2進数出力を行なうようにした読み出し
専用記憶装置ROMを複数設けた加算部ADDを利用す
れば、その加算時間が各ROMの読み出し時間の累積値
だけとなるので更に演算処理時間は短縮される。
In addition, as a means for adding the product values of each divided portion, there is an addressing input port into which j-bit binary data is input, as shown in FIG. It has an output port that outputs an n-bit binary number, and the binary input from the n-bit output port when input to the input port at the address specified by the input binary data If the adder ADD is equipped with a plurality of read-only storage ROMs that output the binary value stored at the address specified by the data, the addition time will be equal to the cumulative value of the readout time of each ROM. Therefore, the calculation processing time is further shortened.

尚、ここで、第4図に示す加算装置について簡単に説明
する。これは、4ビツト2進数の同ビシμ 桁どうしを下位桁から桁上がいτ倶に順次加算してゆく
ことにより加算値を得るようにした加算装置である。
Here, the addition device shown in FIG. 4 will be briefly explained. This is an adder that obtains an added value by sequentially adding the same bit μ digits of a 4-bit binary number to the carry digits τ from the lower digits.

第4図において、加算部ADDを構成する読み出し専用
固定記憶装置ROMo〜ROM、は第5図に示すように
5ビツトの入力ボート^r A3 + A2 +A4 
、んと3ビツト(23−ヒ1〈5≦28−1)の出カポ
−) B2. B、 、 Boとと有し、入力ポートA
、、4゜A2 、AI 、Aoに入力する2進データに
よって指定されるアドレスには、第6図に示すように、
その人力2進データにおける11′%総個数が記憶され
ており、入力ボート入+ A、3 + A2 + AI
 +ムに2進データが入力した時に、その2進データで
指定されたアドレスに記憶する数値が、出カポ−) B
2. B、 、 Boから2進数として出力するように
なっている。
In FIG. 4, the read-only fixed storage devices ROMo to ROM constituting the adder ADD have 5-bit input ports ^r A3 + A2 + A4 as shown in FIG.
B2. B, , Bo, and input port A
, 4° A2 , AI , The address specified by the binary data input to Ao is as shown in FIG.
The total number of 11'% in the manual binary data is stored, and the input board input + A, 3 + A2 + AI
When binary data is input to +, the numeric value stored in the address specified by that binary data is output.
2. B, , Bo are output as binary numbers.

なお、第4図において各ROMo〜ROM 、の接続さ
れていない各入力ポートはすべて“0°入力としている
In addition, in FIG. 4, each unconnected input port of each ROMo to ROM is set to "0° input."

ここで、下記の演算をする場合、第4図に示す加算装置
の作動を説明すると、 0101  ・・・・・・ (1) ・ 1111 ・・・・・・ (2) iooooi  °””’  (4) まず、レジスタA、B、Cに加算する上記2進数(1)
 、 (2) 、 (31を格納すると、ROMo、 
ROM、 、 ROM2゜ROM3  の入カポ−) 
A、、 、 A3.14に当該2進数の同相のビットデ
ータが人力する。ここでROMQのアドレス指定入力ポ
ー1氏2人p、 、A2 、AI 、Aoには(111
00)が入力し、第6図に示す表から明らかなように、
その出カポ−)馬、Bl、13111からは(011)
が出力する。ROM、のアドレス指定入力ボートん+ 
4 r A2 + AI +丸には(01001)が入
力し、同様にその出カポ−)B2.B、、BOからは(
oio)か出力する。ROM2のアドレス指定入力ポー
ト入+ 4 + A2 + AI +鳥には(11,1
01)が入力し、同様にその出カポ−) B2. B、
 、 Boからは(100)が出力する。ROM3のア
ドレス指定入力ボー5氏、A3.A2.A1.A43に
は(11000)が入力し、同様にその出カポ−)B2
.B、、Bl)からは(010)が出力する。ROM 
、のアドレス指定入力ボート入、A3.A2.Ao、A
Qには(00011)が入力し、同様にその出カポ−)
 B2. B、 、 BOからは(010)が出力する
。ROM、のアドレス指定入力ケートA4.A3.A2
.A1.A4には(ooooi)が入力し、同様にその
出力ボート馬、B1.BOからは(001)が出力する
。その結果、各ROMの出力ボート焉とROM、の出力
ボートB1の各ビットで表わされる ′加算値ハ、D5
.D4.D3.D2.DI、D、は(0100001)
となり、上記演算例の演算結果(4)と一致する。
Here, when performing the following calculation, the operation of the addition device shown in FIG. 4) First, add the above binary number (1) to registers A, B, and C.
, (2) , (When storing 31, ROMo,
ROM, , ROM2゜ROM3 input capo)
A, , , A3.14 is manually input the in-phase bit data of the binary number. Here, ROMQ's addressing input ports 1 and 2 p, , A2 , AI , Ao are (111
00) is input, and as is clear from the table shown in Figure 6,
From the horse, Bl, 13111 (011)
outputs. ROM, addressing input port +
4 r A2 + AI + Enter (01001) in the circle, and similarly its output capo)B2. B,, from BO (
oio) or output. ROM2 address input port input + 4 + A2 + AI + bird (11, 1
B2. B,
, (100) is output from Bo. ROM3 address designation input Mr. Bo 5, A3. A2. A1. (11000) is input to A43, and similarly its output ()B2
.. (010) is output from B,,Bl). ROM
, enters the addressing input port of A3. A2. Ao, A
(00011) is input to Q, and the output cap-)
B2. B, , BO outputs (010). ROM, addressing input gate A4. A3. A2
.. A1. (ooooi) is input to A4, and similarly its output boat horse, B1. (001) is output from BO. As a result, the output port of each ROM and each bit of the output port B1 of the ROM are represented by the sum D5.
.. D4. D3. D2. DI, D, is (0100001)
This matches the calculation result (4) of the above calculation example.

このような加算装置の演算時間は各ROMo〜凡OM、
  の読み出し時間の累積値だけとなり著しく短いもの
となる。
The calculation time of such an adding device is ROMo to OM,
This is only the cumulative value of the readout time, which is extremely short.

そして、第4図に示すような加算装置の加算部ADDを
第3図に示す本発明におけるシフトした各分割部分の積
値2進データの加算部Sに利用する場合には、その加算
する2進数の個数、すなわち4 (BXD 、AXI)
、BXC、AXO)と、当該加算する2進数のシフト数
を考慮した実際具なされるビット数、すなわち1Xlビ
ツトとによって、使用する■(50Δ1の入カポ−■・
数とROMの個数を決定し、第4図と同じようにその各
、ROMを並列に接続して構成すれば良い。
When the adder ADD of the adder shown in FIG. 4 is used as the adder S of the product value binary data of each shifted divided portion in the present invention shown in FIG. Number of base numbers, i.e. 4 (BXD, AXI)
, BXC, AXO) and the actual number of bits to be implemented considering the number of shifts of the binary number to be added, that is, 1Xl bits.
The number of ROMs may be determined, and the ROMs may be connected in parallel as shown in FIG. 4.

今−土で、第1図に示す読み出し専用固定記憶装置?X
 11.0Mを用いた8ビツト2進数どうしの乗匣方法
について説明してきたが、このROMを用いて更に多数
ビットの2進数の乗算も行える。例えば16ビツト2進
数どうしの乗算であれ&J各々4ビットずつ、4個に分
割すれば第7図に示すようになり、その時の各分割部分
の積値2進データのシフト数は第8図に示すようになっ
ている。また本発明によれば更に一般的なInビット2
進数とnビット2進数の乗算も可能となる。
Now, the read-only fixed storage device shown in Figure 1? X
Although the method of multiplying 8-bit binary numbers using 11.0M has been described, this ROM can also be used to multiply binary numbers of even more bits. For example, in the case of multiplication between 16-bit binary numbers, if &J is divided into 4 pieces with 4 bits each, the result will be as shown in Figure 7, and the shift number of the product value binary data of each divided part is shown in Figure 8. It is as shown. Further, according to the present invention, a more general In bit 2
Multiplication of a base number and an n-bit binary number is also possible.

また、上記実施例では、被乗数、乗数をそれぞれ4ビツ
トずつ分割するようにしたが、これに限られず、例えば
8ビツトの被乗数、乗数それぞれを5ビツト、3ビツト
に分NJするようにしても良い。但し、この場合、読み
出し専用固定記憶装置はそれぞれのビット数に対応させ
て7y数使用することとなる。
Further, in the above embodiment, the multiplicand and the multiplier are each divided into 4 bits, but the invention is not limited to this. For example, the 8-bit multiplicand and the multiplier may be divided into 5 bits and 3 bits, respectively. . However, in this case, 7y number of read-only fixed storage devices will be used in correspondence with each number of bits.

以上説明してきたように本発明に係る読み出し専用固定
記憶装置6を提供することにより、演算処理時間の著し
く短い乗算が可能となるという効果が得られる。
As explained above, by providing the read-only fixed storage device 6 according to the present invention, it is possible to achieve the effect that multiplication can be performed in a significantly short calculation processing time.

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

第1図は本発明に係る読み出し専用固定記憶装置の一実
施例における入出力ボート?示す説明図、第2図は第1
図の読み出し専用固定記憶装置の記憶内容とその入出力
関係を示す説明図、第3図は第1図及び第2図で示す読
み出し専用固定記憶装置?用いた本発明に係る乗算方法
の一例を示す説明図、第4図は本発明に係る乗算方法に
おいて利用できる加算装置の一例を示すブロック図、第
5図は第4図の加算装置に使用する読み出し専用固定記
憶装置の入出力ボートを示す説明図、第6図は第5図に
示す読み出し専用固定記憶装置の記・1.は内容とその
人出力関係?示す説明図、第7図は本発明に係る乗算方
法の他の一例を示す説明図、第8図は第7図の乗算方法
における各分割部分の積値2進データのシフト数を示す
説明図である。 特許出願人  国際システム産業株式会社同   出 
願 人   丸   岡   嵩   彌第8図 勺・雪・躇V斤A潰 −ンフ1一枚
FIG. 1 shows an input/output board in an embodiment of the read-only fixed storage device according to the present invention. The explanatory diagram shown in Fig. 2 is the first
An explanatory diagram showing the storage contents of the read-only fixed storage device and its input/output relationship, FIG. 3 is the read-only fixed storage device shown in FIGS. 1 and 2? An explanatory diagram showing an example of the multiplication method according to the present invention used, FIG. 4 is a block diagram showing an example of an addition device that can be used in the multiplication method according to the present invention, and FIG. An explanatory diagram showing the input/output ports of the read-only fixed storage device, FIG. 6 is a description of the read-only fixed storage device shown in FIG. 5.1. Is there a relationship between the content and the person's output? FIG. 7 is an explanatory diagram showing another example of the multiplication method according to the present invention, and FIG. 8 is an explanatory diagram showing the shift number of the product value binary data of each divided portion in the multiplication method of FIG. 7. It is. Patent applicant: Kokusai System Sangyo Co., Ltd.
Request person Takashi Maruoka Figure 8 勺・Yuki・V catty A crushed 11 pieces

Claims (2)

【特許請求の範囲】[Claims] (1)  m + n = jとなるjビットの2進デ
ータが入力するアドレス指定人力ボートと、所定の出力
ボートとを有し、」−記入力ボートに入力するjビット
2進データで指定されるアドレスに当該Jビット2進デ
ータの所定mビットとnビットで表わされる容赦ど升し
の積値を記憶し、任意のjビット2進データが」皿子入
力ボートに入力した時に上記出力ボートから上記アドレ
スに記憶した積値の2′a数出力を行なうようにした読
み出し専用固定記憶装置。
(1) It has an addressing manual port into which j-bit binary data such that m + n = j is input, and a predetermined output port; The product value of the specified m bits and n bits of the J-bit binary data is stored in the address, and when any J-bit binary data is input to the input port, the above output port is stored. A read-only fixed storage device configured to output the 2'a number of product values stored at the above address from .
(2)2進数でなる被乗数と乗数をそれぞれ任意のビッ
ト栄位に分割して当該被乗数の一つのjビットの2進デ
ータが入力するアドレス指定入力ボートと、所定出力ボ
ートと2有し、上記入力ボートに入力するJビット2進
データで指定されるアドレスに当該jビット2進データ
の所定mビットとnビットで表わされる容赦どお゛しの
積値?記憶し、任意のjビット2進データが」−記入力
ボートに入力した時に上記出力ボートから−F記子アド
レス記憶した積値の2進数出力と行なうようにした読み
出し専用固定記憶装置のアドレス指定入力ボートに入力
することにより、出力ボートから出力される2進データ
となる上記被乗数と乗数の分割部分どうしの積値を得、
この被乗数と乗数のすべての分割部分の組合せについて
得た各分割部分どうしの積値2進データをそれぞれその
分割部分の組合せに応じて所定桁数シフトし、このシフ
トした各積値2進データを加算して被乗数と乗数の乗算
値を得るようにしたこと?特徴とする乗算方法。
(2) The multiplicand and the multiplier each consisting of a binary number are divided into arbitrary bit positions, and there are two addressing input ports into which one j-bit binary data of the multiplicand is input, and a predetermined output port, and the above-mentioned At the address specified by the J-bit binary data input to the input port, is the product value of the specified m bits and n bits of the J-bit binary data? Addressing input of a read-only fixed storage device such that when arbitrary j-bit binary data is input to the input input port, the output port outputs the stored product value in binary from the output port. By inputting it into the boat, the product value of the divided parts of the multiplicand and multiplier is obtained, which becomes binary data output from the output boat.
The product value binary data of each divided part obtained for all the divided part combinations of the multiplicand and the multiplier is shifted by a predetermined number of digits according to the combination of the divided parts, and each of the shifted product value binary data is Did you add the multiplicand and the multiplier to get the product value? Featured multiplication method.
JP4431383A 1983-03-18 1983-03-18 Read-only fixed memory and multiplying method using this read-only fixed memory Pending JPS59170940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4431383A JPS59170940A (en) 1983-03-18 1983-03-18 Read-only fixed memory and multiplying method using this read-only fixed memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4431383A JPS59170940A (en) 1983-03-18 1983-03-18 Read-only fixed memory and multiplying method using this read-only fixed memory

Publications (1)

Publication Number Publication Date
JPS59170940A true JPS59170940A (en) 1984-09-27

Family

ID=12687992

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4431383A Pending JPS59170940A (en) 1983-03-18 1983-03-18 Read-only fixed memory and multiplying method using this read-only fixed memory

Country Status (1)

Country Link
JP (1) JPS59170940A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0365723A (en) * 1989-08-03 1991-03-20 Matsushita Electric Ind Co Ltd Parallel multiplication circuit
EP0447244A2 (en) * 1990-03-16 1991-09-18 International Business Machines Corporation Table lookup multiplier

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0365723A (en) * 1989-08-03 1991-03-20 Matsushita Electric Ind Co Ltd Parallel multiplication circuit
EP0447244A2 (en) * 1990-03-16 1991-09-18 International Business Machines Corporation Table lookup multiplier

Similar Documents

Publication Publication Date Title
US4707798A (en) Method and apparatus for division using interpolation approximation
EP0158530B1 (en) Nonrestoring divider
JPS6347874A (en) Arithmetic unit
JPH0934693A (en) Exponent logarithm conversion circuit
JPH07168697A (en) Circuit and method for double-precision division
EP0631243A2 (en) Alpha blending calculator
JPS59170940A (en) Read-only fixed memory and multiplying method using this read-only fixed memory
JPH06274317A (en) Multiplication circuit and dividion circuit
CN113032723A (en) Matrix multiplier realizing method and matrix multiplier device
JPH11327875A (en) Arithmetic circuit
US3882483A (en) Code converter system and method
US5777915A (en) Multiplier apparatus and method for real or complex numbers
JPH076024A (en) Decimal number multiplier
JP2734438B2 (en) Multiplier
JPS6222178A (en) Multiplier for multiplying two complex numbers
JP2991788B2 (en) Decoder
JP2524035Y2 (en) Multiplier for convolution arithmetic circuit
JPH07262010A (en) Device and method for arithmetic processing
JPS59170939A (en) Read-only fixed memory and adder and multiplier using this read-only memory
JPS58119047A (en) Decimal multiplier and divider
JP2001134556A (en) Repetitive multiplier and array multiplier
JPS60108932A (en) Decimal operation processor
JPS6259828B2 (en)
JP3278488B2 (en) Decimal arithmetic unit
JPH01116826A (en) Decimal multiplier