JPH021624Y2 - - Google Patents

Info

Publication number
JPH021624Y2
JPH021624Y2 JP1983029635U JP2963583U JPH021624Y2 JP H021624 Y2 JPH021624 Y2 JP H021624Y2 JP 1983029635 U JP1983029635 U JP 1983029635U JP 2963583 U JP2963583 U JP 2963583U JP H021624 Y2 JPH021624 Y2 JP H021624Y2
Authority
JP
Japan
Prior art keywords
digit
value
dividend
memory element
accumulator
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
Application number
JP1983029635U
Other languages
Japanese (ja)
Other versions
JPS59134835U (en
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 filed Critical
Priority to JP2963583U priority Critical patent/JPS59134835U/en
Publication of JPS59134835U publication Critical patent/JPS59134835U/en
Application granted granted Critical
Publication of JPH021624Y2 publication Critical patent/JPH021624Y2/ja
Granted legal-status Critical Current

Links

Description

【考案の詳細な説明】[Detailed explanation of the idea]

本考案は、10進数の値を2進数に変換すること
なく10進数のままで、一定の値の除数によつて除
算するように改良を施した演算装置に関する。 従来の除算演算は、加減算回路と計数回路を組
合せた演算回路を用い、2進法によつて行なわれ
ている。 そのため、演算時間に多くの時間を要するとと
もに、被除数が10進数で与えられ、または演算結
果の商を10進数で出力する場合には、2進数と10
進数の膨大な変換回路を要するという欠点があつ
た。 本考案の目的は、10進数で与えられた被除数を
2進数に変換することなく、等価的に10進数で直
接除算演算を行ない、2進数と10進数の変換回路
を不要とし、除算演算のための加減算の回数を減
少させることにより、従来の除算演算装置よりそ
の演算時間の短縮を計つた除算演算装置を提供す
ることにある。 前記目的を達成するために本考案による記憶素
子を用いた除算演算装置は2進化10進数で与えら
れた被除数の各桁の値を複数のアドレス指定端子
に割り振りする桁切替回路と、前記アドレス指定
端子対応毎に設けられ、アドレス番号で示される
値に対応した値すべてについて一定の値で除した
値を記憶している記憶素子群と、BCD加算器と、
累算器と、桁選択番号を供給することにより前記
桁切替回路にその桁選択番号に対応する被除数の
桁の値を前記記憶素子群に供給させ、この桁の値
と桁選択番号とにより生成される前記記憶素子群
のアドレスに格納されている値を読出させ、この
読出した値と前記累算器の値とを前記加算器によ
つて加算させ、以上の動作を前記桁切替回路に順
次供給する桁選択番号毎に繰り返えさせ、前記加
算器の2進化10進数出力を前記累算器に累算させ
るように制御する制御回路とから構成してある。 前記構成によれば、2進−10進変換回路が不要
となり、被除数の各桁毎に除すべき値で除した値
を格納している記憶素子群出力の加算で所定の除
算を行なうので演算時間は著しく短縮され、本考
案の目的は完全に達成される。 以下、図面を参照して本考案をさらに詳しく説
明する。 第1図は本考案による除算演算装置のブロツク
図であり、被除数が6桁の場合の例である。 図において、Aは演算装置に入力される任意の
値の10進法で表わされた被除数である。 5は被除数Aの希望する桁の値を記憶素子1〜
4のアドレス指定端子に切替えて供給する桁切替
回路であり、桁の選択は制御回路8の司令により
行なわれる。 本実施例における桁の選択は1度に2つの桁が
選択される。 すなわち、桁選択番号が0の場合には被除数A
の100桁と101桁の数が選択され、桁選択番号が1
の場合には102桁と103桁の数が選択され、桁選択
番号が2の場合には104桁と105桁の数が選択され
記憶素子1〜4に供給される。 記憶素子1〜4のアドレス入力端子には、制御
回路8からの桁選択番号と桁切替回路8によつて
選択された2桁の被除数の数が供給され、これら
によつてアドレスが生成される。 この記憶素子1〜4の各々に入力されるアドレ
ス番号は並列に、同一の値が同時に供給される。
記憶素子1〜4のアドレス番号は10ビツトで示さ
れ、この10ビツトの中の上位2ビツトは制御回路
8からの桁選択番号0,1,2のいづれか1つ、
残り8ビツトは切替回路8によつて選択出力され
る2桁の10進数の数である00,01,02,……99の
いづれか1つの数によつて構成されている。切替
回路5は供給される被除数の各桁はこれらいづれ
かのアドレスを示すことになる。 各記憶素子1〜4にはこのアドレスすべてにつ
いて、表1−1−1/2〜1−3−2/2(考案の詳細
な説明の末尾に掲載)に示すような値が予じめ格
納されている。各アドレスには下位8ビツトのア
ドレス番号すなわち被除数2桁を一定の値の除数
Bで除算した商の値が記憶されている。 いま被除数Aとして10進数の117888なる6桁の
数が入力され、これを除数Bとして32で除数する
場合の例をあげて演算動作を説明する。演算の最
初に制御回路8はリセツト信号によつてBCD加
算器6、およびアキユムレータ7をリセツトす
る。次に制御回路8は桁選択番号2を出力し、こ
れにより切替回路5は被除数の105桁および104
の数である11を各記憶素子1〜4にそれぞれ出力
する。 したがつて、各記憶素子1〜4に対するアドレ
ス番号は211となり、記憶素子1からは11×104/32 の104桁、103桁の数である03が、記憶素子2から
は11×104/32の102桁、101桁の数である43が、記憶 素子3からは11×104/32の100桁、10-1桁の数であ る75が、記憶素子4からは11×104/32の10-2桁、 10-3桁である00がBCD加算器6にそれぞれ出力
される。 BCD加算器6は、アキユムレータ7の数
00000.000と、この記憶素子の出力03437.500を加
算する。 加算結果である03437.500は制御回路8からの
クロツクパルスによりアキユムレータ7にストア
される。 次のステツプとして、制御回路8は桁選択番号
1を出力し、これにより切替回路5は、被除数の
103桁、102桁の数である78を各記憶素子1〜4に
それぞれ出力する。 したがつて、各記憶素子1〜4に対するアドレ
ス番号は178となり、記憶素子1からは78×102/32 の104桁、103桁である00が、記憶素子2からは
78×102/32の102桁、101桁である24が、記憶素子3 からは78×102/32の100桁、10-1桁である37が、記 憶素子4からは78×102/32の10-2桁、10-3桁である 50がBCD加算器6にそれぞれ出力される。 BCD加算器6は、アキユムレータ7の数
03437.500と、この記憶素子の出力00243.750を加
算する。 加算結果である03681.250は制御回路8からの
クロツクパルスによりアキユムレータ7にストア
される。 最後に、制御回路8は桁選択番号0を出力し、
これにより切替回路5は被除数の101桁、100桁数
である88を各記憶素子1〜4に出力する。したが
つて、各記憶素子1〜4に対するアドレス番号は
088となり、前記と同様に記憶素子1からは00が、
記憶素子2からは00が、記憶素子3からは27が、
記憶素子4からは50がそれぞれ出力され、BCD
加算器6に入力される。 BCD加算器6はアキユムレータの数03681.250
とこの記憶素子の出力00002.750を加算する。加
算結果は03684.000となり、これは117888÷32な
る除数の商の値に等しく、除算演算が2進法によ
らないで遂行されたことになる。 以上の実施例では、被除数が10進数最大6桁で
あり、記憶素子を4個用いて被除数を2桁づつ記
憶素子に供給する場合を示したが、これは記憶素
子の容量によつて任意の桁数を選択することがで
きる。 また記憶素子の個数、BCD加算器の桁数、ア
キユムレータの桁数は、除算演算結果の値の必要
桁数に応じて増減させればよい。 以上詳しく述べたように、本考案によれば少な
いステツプ数で除算を行なうことができる。例え
ば、2Kワード×8ビツト程度の記憶容量を有す
る記憶素子を用い、10進6桁の被除数の一定の値
の除数による除算を行なうには、わずか3ステツ
プの演算処理によつて遂行することができる。 したがつて、本考案は高速演算に適しており、
また2進数10進数の変換も必要としないため、桁
数の増加により飛躍的に増加する2進と10進の変
換回路素子を不用にする利点を有する。
The present invention relates to an arithmetic device that has been improved so that decimal values can be divided by a constant divisor without converting them into binary numbers. Conventional division operations are performed using a binary system using an arithmetic circuit that combines an addition/subtraction circuit and a counting circuit. Therefore, it takes a lot of time to calculate, and when the dividend is given in decimal or the quotient of the calculation result is output in decimal, binary numbers and 10
The drawback was that it required a huge amount of conversion circuitry for base numbers. The purpose of this invention is to equivalently perform a direct division operation on a decimal number without converting the dividend given in decimal to a binary number, thereby eliminating the need for a conversion circuit between binary and decimal numbers, and eliminating the need for a conversion circuit between binary and decimal numbers. An object of the present invention is to provide a division arithmetic device whose operation time is shorter than that of conventional division arithmetic devices by reducing the number of additions and subtractions. In order to achieve the above object, a division arithmetic device using a memory element according to the present invention includes a digit switching circuit that allocates the value of each digit of a dividend given in a binary coded decimal number to a plurality of addressing terminals; A group of memory elements provided for each terminal and storing a value obtained by dividing all values corresponding to the value indicated by the address number by a constant value, and a BCD adder;
By supplying an accumulator and a digit selection number, the digit switching circuit supplies the value of the digit of the dividend corresponding to the digit selection number to the storage element group, and generates a value based on the value of this digit and the digit selection number. the value stored in the address of the memory element group to be read out, the read value and the value of the accumulator are added by the adder, and the above operations are sequentially performed in the digit switching circuit. and a control circuit that controls the accumulator to repeat it for each supplied digit selection number and to accumulate the binary coded decimal output of the adder in the accumulator. According to the above configuration, there is no need for a binary-decimal conversion circuit, and the predetermined division is performed by adding the outputs of the memory element groups that store the values divided by the value to be divided for each digit of the dividend. The time is significantly reduced and the purpose of the invention is fully achieved. Hereinafter, the present invention will be explained in more detail with reference to the drawings. FIG. 1 is a block diagram of a division arithmetic device according to the present invention, and is an example in which the dividend is 6 digits. In the figure, A is a dividend expressed in decimal notation of an arbitrary value input to the arithmetic unit. 5 stores the value of the desired digit of the dividend A in memory elements 1 to 5.
This is a digit switching circuit that switches and supplies data to the address designation terminal of No. 4, and the selection of the digit is performed by commands from the control circuit 8. In this embodiment, two digits are selected at a time. In other words, if the digit selection number is 0, the dividend A
The 10 0 digit and 10 1 digit number are selected, and the digit selection number is 1.
In the case of , 10 2 digits and 10 3 digits are selected, and when the digit selection number is 2, 10 4 digits and 10 5 digits are selected and supplied to storage elements 1 to 4. The digit selection number from the control circuit 8 and the two-digit dividend number selected by the digit switching circuit 8 are supplied to the address input terminals of the memory elements 1 to 4, and an address is generated based on these. . Address numbers input to each of the memory elements 1 to 4 are supplied in parallel with the same value at the same time.
The address number of memory elements 1 to 4 is represented by 10 bits, and the upper two bits of these 10 bits are one of the digit selection numbers 0, 1, and 2 from the control circuit 8.
The remaining 8 bits are constituted by any one of the two-digit decimal numbers 00, 01, 02, . . . 99 selectively output by the switching circuit 8. In the switching circuit 5, each digit of the supplied dividend indicates one of these addresses. In each memory element 1 to 4, values shown in Tables 1-1-1/2 to 1-3-2/2 (listed at the end of the detailed explanation of the invention) are stored in advance for all these addresses. has been done. Each address stores the address number of the lower 8 bits, that is, the value of the quotient obtained by dividing the two-digit dividend by a constant divisor B. The calculation operation will now be explained using an example in which a 6-digit decimal number 117888 is input as the dividend A, and this is to be divided by 32 as the divisor B. At the beginning of the calculation, the control circuit 8 resets the BCD adder 6 and the accumulator 7 using a reset signal. Next, the control circuit 8 outputs the digit selection number 2, which causes the switching circuit 5 to output 11, which is the 10 5 -digit and 10 4 -digit number of the dividend, to each of the storage elements 1 to 4, respectively. Therefore, the address number for each memory element 1 to 4 is 211, and from memory element 1 there is 104 digits of 11×10 4 /32 and 03, which is a 103 digit number, and from memory element 2 it is 11× 43, which is 10 2 digits and 10 1 digit number of 10 4 /32, is obtained from memory element 3, and 75, which is 10 0 digit and 10 -1 digit number of 11×10 4 /32, is obtained from memory element 4. The 10 -2 digit and 10 -3 digit 00 of 11×10 4 /32 are output to the BCD adder 6, respectively. BCD adder 6 is the number of accumulator 7
Add 00000.000 and the output of this storage element, 03437.500. The addition result, 03437.500, is stored in the accumulator 7 by a clock pulse from the control circuit 8. As the next step, the control circuit 8 outputs the digit selection number 1, which causes the switching circuit 5 to select the digit selection number 1.
The 10 3 -digit and 10 2 -digit numbers 78 are output to each of the memory elements 1 to 4, respectively. Therefore, the address number for each memory element 1 to 4 is 178, and from memory element 1 there are 104 digits of 78×10 2 /32 and 00, which is 103 digits, and from memory element 2,
24 which is 10 2 digits and 10 1 digit of 78×10 2 /32 is 37 which is 10 0 digit and 10 -1 digit of 78×10 2 /32 from memory element 3, but 78 is from memory element 4 . 50, which is the 10 -2 digit and 10 -3 digit of ×10 2 /32, is output to the BCD adder 6, respectively. BCD adder 6 is the number of accumulator 7
Add 03437.500 and the output of this storage element, 00243.750. The addition result, 03681.250, is stored in the accumulator 7 by a clock pulse from the control circuit 8. Finally, the control circuit 8 outputs digit selection number 0,
As a result, the switching circuit 5 outputs 88, which is the 10 1 digit and 10 0 digit of the dividend, to each of the storage elements 1 to 4. Therefore, the address number for each memory element 1 to 4 is
088, and as before, 00 from memory element 1 is
00 from memory element 2, 27 from memory element 3,
50 is output from each memory element 4, and BCD
It is input to an adder 6. BCD adder 6 is the number of accumulators 03681.250
and the output 00002.750 of this memory element are added. The addition result is 03684.000, which is equal to the divisor quotient value of 117888÷32, which means that the division operation was performed without using the binary system. In the above embodiment, the dividend is a maximum of six decimal digits, and four storage elements are used to supply the dividend two digits at a time to each storage element. You can select the number of digits. Further, the number of storage elements, the number of digits of the BCD adder, and the number of digits of the accumulator may be increased or decreased depending on the required number of digits of the value of the division operation result. As described in detail above, according to the present invention, division can be performed with a small number of steps. For example, using a memory element with a storage capacity of approximately 2K words x 8 bits, dividing a fixed value of a 6-digit decimal dividend by a divisor can be accomplished using only 3 steps of arithmetic processing. can. Therefore, the present invention is suitable for high-speed calculation,
In addition, since there is no need to convert binary numbers to decimal numbers, there is an advantage that the number of binary and decimal conversion circuit elements, which increases dramatically as the number of digits increases, becomes unnecessary.

【表】【table】

【表】 ただしBは除数
[Table] However, B is the divisor

【表】【table】

ただしBは除数
However, B is the divisor

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

第1図は本考案による除算演算装置の実施例を
示すブロツク図である。 A……除算演算の被除数、1,2,3,4……
記憶素子、5……BCD加算器、7……アキユム
レータ、8……制御回路、9……桁選択番号、1
0……被除数の2つの桁の値。
FIG. 1 is a block diagram showing an embodiment of a division arithmetic device according to the present invention. A... Dividend of division operation, 1, 2, 3, 4...
Memory element, 5... BCD adder, 7... Accumulator, 8... Control circuit, 9... Digit selection number, 1
0...Value of the two digits of the dividend.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 2進化10進数で与えられた被除数の各桁の値を
複数のアドレス指定端子に割り振りする桁切替回
路と、前記アドレス指定端子対応毎に設けられ、
アドレス番号で示される値に対応した値すべてに
ついて一定の値で除した値を記憶している記憶素
子群と、BCD加算器と、累算器と、桁選択番号
を供給することにより前記桁切替回路にその桁選
択番号に対応する被除数の桁の値を前記記憶素子
群に供給させ、この桁の値と桁選択番号とにより
生成される前記記憶素子群のアドレスに格納され
ている値を読出させ、この読出した値と前記累算
器の値とを前記加算器によつて加算させ、以上の
動作を前記桁切替回路に順次供給する桁選択番号
毎に繰り返えさせ、前記加算器の2進化10進数出
力を前記累算器に累算させるように制御する制御
回路とから構成した記憶素子を用いた除算演算装
置。
a digit switching circuit that allocates the value of each digit of a dividend given in binary coded decimal to a plurality of addressing terminals; and a digit switching circuit provided for each corresponding addressing terminal,
The digit switching is performed by supplying a memory element group, a BCD adder, an accumulator, and a digit selection number that stores values obtained by dividing all values corresponding to the address number by a constant value. A circuit supplies the value of the digit of the dividend corresponding to the digit selection number to the storage element group, and reads the value stored at the address of the storage element group generated by the value of this digit and the digit selection number. The read value and the value of the accumulator are added by the adder, and the above operation is repeated for each digit selection number sequentially supplied to the digit switching circuit. A division arithmetic device using a memory element and a control circuit that controls the accumulator to accumulate binary coded decimal output.
JP2963583U 1983-03-01 1983-03-01 Division arithmetic device using memory elements Granted JPS59134835U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2963583U JPS59134835U (en) 1983-03-01 1983-03-01 Division arithmetic device using memory elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2963583U JPS59134835U (en) 1983-03-01 1983-03-01 Division arithmetic device using memory elements

Publications (2)

Publication Number Publication Date
JPS59134835U JPS59134835U (en) 1984-09-08
JPH021624Y2 true JPH021624Y2 (en) 1990-01-16

Family

ID=30160496

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2963583U Granted JPS59134835U (en) 1983-03-01 1983-03-01 Division arithmetic device using memory elements

Country Status (1)

Country Link
JP (1) JPS59134835U (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4942182A (en) * 1972-04-27 1974-04-20
JPS5270727A (en) * 1975-12-10 1977-06-13 Fujitsu Ltd Computation system
JPS5299030A (en) * 1976-02-17 1977-08-19 Yokogawa Hokushin Electric Corp Dividing operation circuit with constant divisor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4942182A (en) * 1972-04-27 1974-04-20
JPS5270727A (en) * 1975-12-10 1977-06-13 Fujitsu Ltd Computation system
JPS5299030A (en) * 1976-02-17 1977-08-19 Yokogawa Hokushin Electric Corp Dividing operation circuit with constant divisor

Also Published As

Publication number Publication date
JPS59134835U (en) 1984-09-08

Similar Documents

Publication Publication Date Title
US3226694A (en) Interrupt system
US5276827A (en) Data buffer for the duration of cyclically recurrent buffer periods
US3325785A (en) Efficient utilization of control storage and access controls therefor
US3328767A (en) Compact data lookup tables
JP3133087B2 (en) Image processing memory storage method and apparatus for implementing the method
US4414545A (en) Memory circuit for generating liquid crystal display characters
JPH021624Y2 (en)
US4229802A (en) Digital adding device
US4241410A (en) Binary number generation
JPH0752420B2 (en) I / O device address method
US4128872A (en) High speed data shifter array
US3219982A (en) High order mark system
CN1987824A (en) Memory control circuit and memory control method
US3229078A (en) Code converter
US4323978A (en) Arithmetic element based on the DDA principle
US3240922A (en) Serial digital electronic computer
JP3042142B2 (en) Semiconductor integrated circuit
JPS6014322A (en) Digital data comparator
JPS60221848A (en) Data storage device
SU1474671A1 (en) Logic function representation form converter
JPS61109139A (en) Arithmetic unit
JPS6118780B2 (en)
JPH03142527A (en) Decimal multiplier
JPS63142434A (en) Interrupt control system
GB910414A (en) Improvements in or relating to data processing machines