JPH03218517A - Arithmetic control unit - Google Patents

Arithmetic control unit

Info

Publication number
JPH03218517A
JPH03218517A JP2164557A JP16455790A JPH03218517A JP H03218517 A JPH03218517 A JP H03218517A JP 2164557 A JP2164557 A JP 2164557A JP 16455790 A JP16455790 A JP 16455790A JP H03218517 A JPH03218517 A JP H03218517A
Authority
JP
Japan
Prior art keywords
digits
counter
calculation
arithmetic
digit
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
JP2164557A
Other languages
Japanese (ja)
Inventor
Noboru Imauji
今氏 昇
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2164557A priority Critical patent/JPH03218517A/en
Publication of JPH03218517A publication Critical patent/JPH03218517A/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To shorten an arithmetic operation time by providing a counter which counts the number of arithmetic digits and which can be preset, setting the number of arithmetic digits in the counter so as to execute counting for respective digits, stopping the arithmetic operation in a prescribed digit corresponding to the number of the arithmetic digits, and shifting a system to a subsequent instruction. CONSTITUTION:The number of digits is set in the counter in an arithmetic digit number control circuit 25 by an arithmetic signal supplied to main ROM 15. The counter counts down or counts up for respective arithmetic operations of respective digits and an address counter 13 and an address auxiliary counter 16 are controlled after the arithmetic operation till the having set digit terminates. Then, the main ROM 15 and an instruction decoder 17 are controlled and the system shifts to the subsequent instruction. Consequently, processing is attained by one instruction even if the number of arithmetic digits increases, and the number of steps of the program in the main ROM 15 can be reduced. Thus, the arithmetic operation time can be shortened even if the number of arithmetic digits is large.

Description

【発明の詳細な説明】 この発明は、電子式卓上計算機に係り、特にその演算制
御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an electronic desktop calculator, and particularly to an arithmetic control device thereof.

従来、電子式卓上計算機は第1図に示すように構成され
ている。すなわち、キーボード11から入力された演算
信号は、加減算回路12,アドレスカウンタ13.アド
レスデコーダ14をそれぞれ介してメインROM15に
供給される。そして、このメインROMl5に予め記憶
されている制御プログラムと、上記加減算回路l2から
出力されるキャリー信号Caによってカウントアップさ
れるアドレス補助カウンタlBのカウント値とによって
、インストラクションデコーダ17から各命令信号およ
び各ゲート制御信号が出力される。上記各命令信号およ
び各ゲート制御信号により、アドレスレジスタ(X)1
8,アドレスレジスタ(Y)19が制御されてRAM2
0の記憶位置が決定され、上記演算信号が所定の位置に
記憶される。さらに、メインROMl5のプログラムに
より上記演算信号の処理判定が行なわれ、演算数は表示
回路21を介して表示器22に表示される。次に、メイ
ンROMl5のプログラムにより、RAM20から演算
数を1桁ずつ加減算回路12を介してアキュームレータ
23に一時記憶し、被演算数を1桁ずつ加減算回路12
を介して転送レジスタ24に一時記憶して、加減算回路
l2により演算を行なって、この演算値を各桁ごとにR
AM20に記憶して行く。そして、演算の途中で加減算
回路l2からキャリー信号Caが出ると、アドレス補助
カウンタl6のカウント値がカウントアップし、インス
トラクションデコーダl7が制御されて各命令信号およ
び各ゲート信号が切換えられて桁上げが行なわれるよう
にして成る。
Conventionally, electronic desktop calculators have been constructed as shown in FIG. That is, the calculation signal input from the keyboard 11 is sent to the addition/subtraction circuit 12, address counter 13 . The signals are supplied to the main ROM 15 via the address decoders 14, respectively. The instruction decoder 17 sends each instruction signal and each A gate control signal is output. Address register (X) 1
8, Address register (Y) 19 is controlled and RAM2
The storage location of 0 is determined, and the arithmetic signal is stored at a predetermined location. Furthermore, the program in the main ROM 15 processes and determines the arithmetic signal, and the arithmetic operation number is displayed on the display 22 via the display circuit 21. Next, according to the program in the main ROM 15, the operand is temporarily stored in the accumulator 23 from the RAM 20 one digit at a time via the addition/subtraction circuit 12, and the operand is transferred one digit at a time through the addition/subtraction circuit 12.
is temporarily stored in the transfer register 24 via the adder/subtracter circuit 12, and the calculated value is stored in the R for each digit.
I'll save it to AM20. When the carry signal Ca is output from the adder/subtractor circuit l2 during the operation, the count value of the address auxiliary counter l6 is counted up, and the instruction decoder l7 is controlled to switch each command signal and each gate signal to perform a carry. It is done as it is done.

このような構成において、RAM2Gの全てのビットに
ついて演算を行なうことは無駄であるので、演算数の桁
数を転送レジスタ24に一時記憶しておき、記憶された
桁数までで演算を停止するようにしている。この場合、
所定の桁まで演算が行なわれたか否かを判定するために
、例えば、1インストラクション終了後演算値をRAM
20に記憶してから、転送レジスタ24に記憶した桁数
を加減算回路12により「1」ずつ減算して行き、「0
」になった桁で演算を停止する。
In such a configuration, it is wasteful to perform calculations on all bits of the RAM 2G, so the number of digits of the calculation number is temporarily stored in the transfer register 24, and the calculation is stopped when the number of digits is stored. I have to. in this case,
In order to determine whether the calculation has been performed up to a predetermined digit, for example, after completing one instruction, the calculated value is stored in the RAM.
20, the number of digits stored in the transfer register 24 is subtracted by "1" by the adding/subtracting circuit 12, and "0" is stored.
” The calculation stops at the digit that is reached.

したがって、入力された演算桁数に対応した桁までの演
算しか行なわないので、演算時間が短縮できる。しかし
、演算した桁数の判定に加減算回路l2を使用するため
、この桁数カウント時は演算が行なえず、特に桁数が多
い場合は大きな効果が得られない。
Therefore, since only calculations are performed up to digits corresponding to the input number of calculation digits, calculation time can be shortened. However, since the addition/subtraction circuit 12 is used to determine the number of digits calculated, no calculation can be performed while counting the number of digits, and particularly when the number of digits is large, no great effect can be obtained.

この発明は上記のような事情に鑑みてなされたもので、
その目的とするところは、演算桁数が多くても十分に演
算時間を短縮できる演算制御装置を提供することである
This invention was made in view of the above circumstances,
The purpose is to provide an arithmetic control device that can sufficiently shorten the computation time even when the number of digits in the computation is large.

以下、この発明の一実施例について図面を参照して説明
する。
An embodiment of the present invention will be described below with reference to the drawings.

第2図は、この発明が適用された電子式卓上計算機の概
略構成を示すもので、上記第1図に示した従来の回路に
加えて、演算桁数をカウントするプリセット可能なカウ
ンタを設け、このカウンタに演算桁数を設定して各桁の
演算毎にカウントし、所定の桁で演算を停止するように
したものである。
FIG. 2 shows a schematic configuration of an electronic desktop calculator to which the present invention is applied. In addition to the conventional circuit shown in FIG. The number of digits to be calculated is set in this counter, and each digit is counted each time the calculation is performed, and the calculation is stopped at a predetermined digit.

図において、第1図と同一部には同じ符号を付してその
説明は省略する。すなわち、メインROM15に供給さ
れた演算信号により演算桁数制御回路25内のカウンタ
に桁数が設定され、各桁の演算毎にカウントダウンある
いはカウントアップして行き、設定された桁までの演算
終了後、アドレスカウンタl3およびアドレス補助カウ
ンタl6が制御され、メインR O M 15.インス
トラクションデコ−ダl7が制御されて次のインストラ
クションに移るようにして成る。
In the figure, the same parts as in FIG. 1 are given the same reference numerals, and their explanation will be omitted. That is, the number of digits is set in the counter in the calculation digit number control circuit 25 by the calculation signal supplied to the main ROM 15, and the number of digits is counted down or counted up for each calculation of each digit, and after the calculation up to the set digit is completed. , address counter l3 and address auxiliary counter l6 are controlled, and the main ROM 15. The instruction decoder 17 is controlled to move to the next instruction.

上記のような構成において、メインROMl5のデータ
をAy(,−Ay,番地へ収納するインストラクション
について説明する。アドレス補助カウンタl6のカウン
ト値が「0」の時、メインROMl5のデータをRAM
20のAY番地へ収納する。次に補助カウンタlBが「
1」になると、RAM20のセルアドレスを1桁カウン
トアップ(Y+1)する。
In the above configuration, the instruction to store the data in the main ROM 15 at the address Ay(, -Ay,
Store it at AY address 20. Next, the auxiliary counter IB is
1, the cell address of the RAM 20 is counted up by one digit (Y+1).

アドレス補助カウンタl6が「2」になると、演算桁数
制御回路25を1桁カウントアップ(m+1)する。こ
こで初期値mは演算桁数の補数のデータである。アドレ
ス補助カウンタ16が「3」になると、演算桁数制御回
路25の桁上げ信号が出なければ、アドレス補助カウン
タl6がリセットされて上述した動作を各桁毎に順次繰
り返す。そして、桁上げ信号が発生すると次のインスト
ラクションの実行に移る。
When the address auxiliary counter l6 reaches "2", the operation digit number control circuit 25 is counted up by one digit (m+1). Here, the initial value m is data of the complement of the number of digits to be calculated. When the address auxiliary counter 16 reaches "3", the address auxiliary counter 16 is reset and the above-described operation is repeated for each digit in sequence unless a carry signal from the operation digit number control circuit 25 is output. Then, when a carry signal is generated, execution of the next instruction starts.

このような構成によれば、各桁毎の演算値をRAM20
に記憶しながら演算桁数をカウントアッブできるため、
演算桁数が増えても1インストラクションで処理できる
。したがって、メインROM15のプログラムのステッ
プ数が減少できる。
According to such a configuration, the calculated value for each digit is stored in the RAM 20.
It is possible to count up the number of calculation digits while memorizing the
Even if the number of calculation digits increases, it can be processed with one instruction. Therefore, the number of program steps in the main ROM 15 can be reduced.

また、演算桁数制御回路25は1インストラクションで
制御されるため、メインROMl5の次のアドレスを決
定するためのブリチャージ時間が十分に取れるので、1
インストラクションの構成されているアドレス補助カウ
ンタ1Bのビット数を少なくすることもでき、メインR
OM15の処理速度が比較的遅いものでも、演算速度を
速くすることができる。
In addition, since the calculation digit number control circuit 25 is controlled by one instruction, sufficient precharging time can be taken to determine the next address of the main ROM 15.
It is also possible to reduce the number of bits of the address auxiliary counter 1B in which the instruction is configured.
Even if the processing speed of the OM 15 is relatively slow, the calculation speed can be increased.

第3図は、この発明の一実施例に係.る演算制御装置に
ついて詳細に説明するためのもので、上記第2図の回路
における演算桁数制御回路25の具体的な構成例を示し
ている。インストラクションデコーダl7から出力され
るプリセット信号mを、インバータ回路2B. 27,
 28. 29およびアンド回路30から成り、最初の
桁を演算させる前にメインROMl5のデータを1回だ
けプリセットさせるプリセットタイミング回路3lを介
してROMデータセレクト回路32に供給する。このR
OMデータセレクト回路32は、上記プリセットタイミ
ング回路31の出力と、メインROM15の出力との論
理積を出力するアンド回路33a〜33dから成り、こ
の各出力は演算桁数制御カウンタ回路34を構成するカ
ウンタ35のプリセット信号としている。この演算桁数
制御カウンタ回路34は、カウントアップ信号m + 
1が1ビットのシフトレジスタ36およびインバータ回
路37を介して供給されており、カウンタ35からキャ
リー信号Caが出力されると、インバータ回路38を介
してアドレス補助カウンタlBをクリアするためのアン
ド回路39の一方の入力端に供給されるとともに、イン
バータ回路40を介してキャリー判定用のオア回路41
の一方の入力端に供給される。上記アドレス補助カウン
タ1Bのクリア用のアンド回路89の他方の入力端には
、カウントアップ信号m + 1がシフトレジスタ36
,インバータ回路42を介して供給されている。また、
上記キャリー判定用のオア回路4lの他方の入力端には
、前記インバータ回路42の出力がインバータ回路43
を介して供給されるようにして演算桁数制御回路25が
構成される。
FIG. 3 shows one embodiment of the present invention. This figure is for explaining in detail the arithmetic control device, and shows a specific example of the structure of the arithmetic digit number control circuit 25 in the circuit shown in FIG. The preset signal m output from the instruction decoder l7 is input to the inverter circuit 2B. 27,
28. 29 and an AND circuit 30, and supplies the data to the ROM data select circuit 32 via a preset timing circuit 3l that presets the data in the main ROM 15 only once before calculating the first digit. This R
The OM data selection circuit 32 consists of AND circuits 33a to 33d that output the logical product of the output of the preset timing circuit 31 and the output of the main ROM 15, and each output is connected to a counter constituting the calculation digit number control counter circuit 34. There are 35 preset signals. This calculation digit number control counter circuit 34 receives a count up signal m +
1 is supplied via a 1-bit shift register 36 and an inverter circuit 37, and when the carry signal Ca is output from the counter 35, an AND circuit 39 for clearing the address auxiliary counter IB via the inverter circuit 38. is supplied to one input terminal of the carry determination OR circuit 41 via an inverter circuit 40.
is supplied to one input end of the . The count up signal m + 1 is sent to the other input terminal of the AND circuit 89 for clearing the address auxiliary counter 1B.
, and are supplied via an inverter circuit 42. Also,
The output of the inverter circuit 42 is connected to the other input terminal of the OR circuit 4l for carry determination.
The calculation digit number control circuit 25 is configured in such a manner that the calculation digit number control circuit 25 is supplied through the .

さらに、上記キャリー判定用のオア回路4lの出力とイ
ンストラクションデコーダl7からインバータ回路44
. 45を介して供給されるリターン信号Return
,およびアドレス補助カウンタ16のプリセット信号と
の論理積演算を行なうアンド回路4Bの出力がインバー
タ回路47を介してアドレスカウンタ13に供給される
。上記アドレス補助カウンタl6のプリセット信号は、
加減算回路l2から出力されるキャリー信号Caをイン
バータ回路48. 49を介してアンド回路50の一端
に、インストラクションデコーダ17のキャリーチェッ
ク信号C B checkをインバータ回路5lを介し
てアンド回路50の他端に供給してその論理積を取った
ものである。また、上記アドレス補助カウンタ16は、
演算桁数制御回路25のカウンタ35のプリセット信号
、アンド回路39. 46の出力論理和を出力するオア
回路52によってクリアされ、そのカウント値はインス
トラクションデコーダ17へ供給されるように構成され
ている。
Furthermore, an inverter circuit 44 is connected to the output of the carry judgment OR circuit 4l and the instruction decoder l7.
.. Return signal Return supplied via 45
, and the output of the AND circuit 4B which performs an AND operation with the preset signal of the address auxiliary counter 16 is supplied to the address counter 13 via an inverter circuit 47. The preset signal of the address auxiliary counter l6 is
The carry signal Ca output from the addition/subtraction circuit l2 is input to an inverter circuit 48. The carry check signal C B check of the instruction decoder 17 is supplied to one end of the AND circuit 50 via the inverter circuit 5l, and the logical product is obtained. Further, the address auxiliary counter 16 is
A preset signal for the counter 35 of the calculation digit number control circuit 25, an AND circuit 39. The count value is cleared by an OR circuit 52 which outputs the logical sum of 46 outputs, and the count value is supplied to the instruction decoder 17.

第4図に上記第3図の回路における各インバータ回路を
制御する信号φ1,φ2のタイミングチャートを示す。
FIG. 4 shows a timing chart of signals φ1 and φ2 for controlling each inverter circuit in the circuit shown in FIG.

以上説明したようにこの発明によれば、演算桁数をカウ
ントするためのプリセット可能なカウンタを設け、この
カウンタに演算桁数を設定して各桁毎にカウントし、演
算桁数に対応した所定の桁で演算を停止し、次のインス
トラクションに移るように構成したので、演算時間が短
縮できる演算制御装置が得られる。
As explained above, according to the present invention, a presettable counter for counting the number of digits to be calculated is provided, the number of digits to be calculated is set to this counter, the count is performed for each digit, and a predetermined value corresponding to the number of digits to be calculated is provided. Since the computation is configured to stop the computation at the digit and move on to the next instruction, an arithmetic control device that can shorten the computation time can be obtained.

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

第1図は従来の電子式卓上計算機の構成を示すブロック
図、第2図はこの発明が適用された電子式卓上計算機の
概略構成を示すブロック図、第3図はこの発明の一実施
例に係る演算制御装置について説明するためのもので上
記第2図の回路における演算桁数制御回路の具体的な構
成例を示す回路図、第4図は上記第3図の回路の制御信
号のタイミングチャートである。 l3・・・アドレスカウンタ、15・・・メインROM
,16・・・アドレス補助カウンタ、17・・・インス
トラクションデコーダ、25・・・演算桁数制御回路、
31・・・プリセットタイミング回路、32・・・RO
Mデータセレクト回路、34・・・演算桁数制御カウン
タ回路、35・・・カウンタ、39・・・アンド回路(
第1の論理手段)、4l・・・オア回路(第2の論理手
段)、m・・・プリセット信号、m + 1・・・カウ
ントアップ信号(計数制御信号)。
FIG. 1 is a block diagram showing the configuration of a conventional electronic desk calculator, FIG. 2 is a block diagram showing a schematic configuration of an electronic desk calculator to which the present invention is applied, and FIG. 3 is a block diagram showing an embodiment of the invention. This circuit diagram is used to explain such an arithmetic control device, and shows a specific configuration example of the calculation digit number control circuit in the circuit shown in FIG. 2 above, and FIG. 4 is a timing chart of control signals for the circuit shown in FIG. 3 above. It is. l3...Address counter, 15...Main ROM
, 16... Address auxiliary counter, 17... Instruction decoder, 25... Arithmetic digit number control circuit,
31...Preset timing circuit, 32...RO
M data selection circuit, 34... Calculation digit number control counter circuit, 35... Counter, 39... AND circuit (
4l...OR circuit (second logic means), m...preset signal, m+1...count up signal (counting control signal).

Claims (1)

【特許請求の範囲】[Claims] アドレスカウンタとアドレス補助カウンタを有するマイ
クロプログラム方式の演算装置において、インストラク
ションデコーダから出力されるプリセット信号が供給さ
れ、最初の桁を演算させる前にメインROMにおける演
算数の桁数に対応するデータをプリセットさせるための
プリセットタイミング手段と、このプリセットタイミン
グ手段の出力が有意レベルの時に前記メインROMから
読み出された演算数の桁数に対応するデータを選択して
出力するROMデータセレクト手段と、前記インストラ
クションデコーダから出力される計数制御信号が供給さ
れ、前記メインROMから前記ROMデータセレクト手
段を介して供給される演算数の桁数をカウントするため
のプリセット可能なカウンタを有する演算桁数制御カウ
ンタ手段と、この演算桁数制御カウンタ手段のカウンタ
から出力される設定された桁数とカウント値とが一致し
たことを示す一致信号と前記カウントアップ信号とに基
づいて前記アドレス補助カウンタをクリアするための信
号を出力する第1の論理手段と、前記一致信号と前記計
数制御信号の反転信号とに基づいて一致判定用の信号を
出力する第2の論理手段とを具備し、演算に先立って前
記メインROMから前記演算桁数制御カウンタ手段に演
算数の桁数を設定し、各桁の演算毎にカウントを行なっ
て演算桁数が前記カウンタの設定値に達した時に演算を
停止せしめるように構成したことを特徴とする演算制御
装置。
In a microprogram type arithmetic device having an address counter and an address auxiliary counter, a preset signal output from an instruction decoder is supplied, and before calculating the first digit, data corresponding to the number of digits of the operation number in the main ROM is preset. ROM data selection means for selecting and outputting data corresponding to the number of digits of the operation number read from the main ROM when the output of the preset timing means is at a significant level; calculation digit number control counter means having a presettable counter for counting the number of digits of the calculation number supplied from the main ROM via the ROM data selection means; , a signal for clearing the address auxiliary counter based on the count up signal and a match signal indicating that the set number of digits output from the counter of the calculation digit number control counter means matches the count value; and a second logic means that outputs a signal for coincidence determination based on the coincidence signal and an inverted signal of the counting control signal, The number of digits of the calculation number is set in the calculation digit number control counter means, the calculation is performed for each calculation of each digit, and the calculation is stopped when the number of calculation digits reaches the set value of the counter. An arithmetic and control device characterized by:
JP2164557A 1990-06-22 1990-06-22 Arithmetic control unit Pending JPH03218517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2164557A JPH03218517A (en) 1990-06-22 1990-06-22 Arithmetic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2164557A JPH03218517A (en) 1990-06-22 1990-06-22 Arithmetic control unit

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP56140768A Division JPS5843047A (en) 1981-09-07 1981-09-07 Arithmetic controller

Publications (1)

Publication Number Publication Date
JPH03218517A true JPH03218517A (en) 1991-09-26

Family

ID=15795430

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2164557A Pending JPH03218517A (en) 1990-06-22 1990-06-22 Arithmetic control unit

Country Status (1)

Country Link
JP (1) JPH03218517A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5843047A (en) * 1981-09-07 1983-03-12 Toshiba Corp Arithmetic controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5843047A (en) * 1981-09-07 1983-03-12 Toshiba Corp Arithmetic controller

Similar Documents

Publication Publication Date Title
JP2501711B2 (en) One-chip digital signal processor
US5136536A (en) Floating-point ALU with parallel paths
EP0686910B1 (en) Data processing system having a saturation arithmetic operation function
US3535498A (en) Matrix of binary add-subtract arithmetic units with bypass control
US3202805A (en) Simultaneous digital multiply-add, multiply-subtract circuit
US3234367A (en) Quotient guess divider
EP0295788A2 (en) Apparatus and method for an extended arithmetic logic unit for expediting selected operations
US3058658A (en) Control unit for digital computing systems
JPH05250146A (en) Arithmetic operation circuit executing integer involution processing
US4212060A (en) Method and apparatus for controlling the sequence of instructions in stored-program computers
JPH11327875A (en) Arithmetic circuit
US3668646A (en) Method of controlling jumps to different programs in a computer working in real time
US3260840A (en) Variable mode arithmetic circuits with carry select
JPH03218517A (en) Arithmetic control unit
US3846626A (en) Electronic desk calculator with verification function
US4010359A (en) Circuit arrangement for adding and subtracting
EP1785863A2 (en) A divider comprising a carry save adder and a full adder
JPS5843047A (en) Arithmetic controller
US3521043A (en) Ripple-free binary coded decimal accumulator forming correct result during single memory accessing cycle
JPH0452488B2 (en)
JP2604667B2 (en) Arithmetic unit with prediction function
SU1013947A1 (en) Accumulating adder
JP3551291B2 (en) Serial numerical operation device
JP2552087B2 (en) Decimal multiplication processor
JPH0434191B2 (en)