JP3164445B2 - Decimal operation instruction processor - Google Patents

Decimal operation instruction processor

Info

Publication number
JP3164445B2
JP3164445B2 JP32654292A JP32654292A JP3164445B2 JP 3164445 B2 JP3164445 B2 JP 3164445B2 JP 32654292 A JP32654292 A JP 32654292A JP 32654292 A JP32654292 A JP 32654292A JP 3164445 B2 JP3164445 B2 JP 3164445B2
Authority
JP
Japan
Prior art keywords
data
decimal
operation instruction
supplied
constant
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 - Lifetime
Application number
JP32654292A
Other languages
Japanese (ja)
Other versions
JPH06175822A (en
Inventor
圭一 吉岡
慎一 山浦
和彦 原
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP32654292A priority Critical patent/JP3164445B2/en
Publication of JPH06175822A publication Critical patent/JPH06175822A/en
Application granted granted Critical
Publication of JP3164445B2 publication Critical patent/JP3164445B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、中央演算処理装置を構
成する算術論理演算回路において10進演算命令処理を
行う10進演算命令処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decimal operation instruction processor for performing a decimal operation instruction process in an arithmetic and logic operation circuit constituting a central processing unit.

【0002】[0002]

【従来の技術】10進加減算命令を備えた中央演算処理
装置(以下、CPUと記す)において、例えば32ビット
データを演算する場合、CPUは表1に示すような処理
を行う。尚、表1を含め後述する各表においてそれぞれ
一つの数字は4ビットから構成されており、「hex」 の
表示は16進数表示を意味し、「Dec」 の表示は10進
数表示を意味する。
2. Description of the Related Art In a central processing unit (hereinafter referred to as CPU) having a decimal addition / subtraction instruction, for example, when calculating 32-bit data, the CPU performs the processing shown in Table 1. In each table, which will be described later, including Table 1, one numeral is composed of 4 bits. The display of "hex" means hexadecimal notation, and the display of "Dec" means decimal notation.

【0003】[0003]

【表1】 [Table 1]

【0004】表1に示される例の場合、CPUはCPU
内に備わる算術論理演算回路(以下、ALUと記す)に
て、まず2進数で演算を行い16進数表示すると「35
35468A」の答えを生成し、続いて上記答えを10
進データに補正することで「35354690」の答えを
得る。尚、以下の説明において上記2進数の演算による
答えを「答1」とし、10進データに補正された答えを
「答2」とする。
In the example shown in Table 1, the CPU is a CPU.
In the arithmetic and logic operation circuit (hereinafter referred to as ALU) provided in the table, first, the operation is performed in binary and displayed in hexadecimal.
35468A ”, and the above answer is
The answer of "35354690" is obtained by correcting to binary data. In the following description, the answer obtained by the above-described operation of the binary number is “answer 1”, and the answer corrected to the decimal data is “answer 2”.

【0005】10進データへの上記補正の手法は、「答
1」を得る演算が加算演算の場合、上記加算演算を行っ
たデータのニブルにおける値が16進数で「10」、即ち
2進数で「1010」を越えるとき、上記ニブル値に対し
て16進数で「6」(=0110)を加算することで解が得
られるという手法を原則とする。尚、ニブル値とは、1
バイトが8ビットからなる場合、その半分の4ビット分
のデータをいう。このような補正動作をCPUにて実現
する場合、以下に示す2種類の方法が考えられる。
The above-mentioned method of correcting decimal data is such that when the operation for obtaining "answer 1" is an addition operation, the value in the nibble of the data on which the addition operation has been performed is hexadecimal "10", that is, binary. When "1010" is exceeded, a method is obtained in which a solution can be obtained by adding "6" (= 0110) in hexadecimal to the nibble value. The nibble value is 1
When a byte is composed of 8 bits, it refers to half of the 4-bit data. When such a correction operation is realized by the CPU, the following two methods are conceivable.

【0006】第1の方法は、上記「答1」のデータに対
し、10進データに補正する補正値を加算する専用の定
数加算器を設ける方法である。第2の方法は、例えば表
2に示すように、上記「答1」のデータをそのままのデー
タ長にてCPU内のALUに再入力し、一方、上記「答
1」のデータに対応した値でありALUに供給される補
正値と上記再入力データとをALUにて加算をし、「答
2」を算出する方法である。
A first method is to provide a dedicated constant adder for adding a correction value to be corrected to decimal data to the data of "answer 1". In the second method, as shown in Table 2, for example, the data of "answer 1" is re-input to the ALU in the CPU with the same data length, while the value corresponding to the data of "answer 1" is stored. In this method, the correction value supplied to the ALU and the re-input data are added by the ALU to calculate "Answer 2".

【0007】[0007]

【表2】 [Table 2]

【0008】[0008]

【発明が解決しようとする課題】上記第1の方法におい
ては、2進演算と10進補正との加算演算を専用の加算
器で行うため、最高1CPU動作サイクル内で補正が完
了するため、ALUにて2回演算を要する上記第2の方
法に比べ高速に命令を実行することができる長所があ
る。しかし、専用の加算器を設けるため、ハードウエア
は増大するという問題点があるとともに、加算演算中に
発生する桁上げ等のデータの伝搬遅延時間を考慮する第
2の方法に比べ、回路上にて配慮しない限りCPUの動
作サイクルレートの高速化に対し追従できないという問
題点もある。
In the first method, since the addition operation of the binary operation and the decimal correction is performed by a dedicated adder, the correction is completed within a maximum of one CPU operation cycle. There is an advantage that the instruction can be executed at a higher speed as compared with the above-mentioned second method which requires two operations. However, since a dedicated adder is provided, there is a problem that the hardware increases, and the circuit is more complicated than the second method in which the propagation delay time of data such as a carry generated during the addition operation is considered. There is also a problem that it is impossible to follow the increase in the operation cycle rate of the CPU unless consideration is given to it.

【0009】又、上記第2の方法においても、2進演算
サイクルにより「答1」を得た後、補正サイクルで使用す
る定数を決定するが、以下の表2に示すような例の場
合、最上位ニブル値の補正値を決定するために最下位ニ
ブル値からの桁上りを考慮する必要があるので伝搬遅延
が発生し、上記第1の方法の場合と同様に、演算データ
サイズが増加したときにはCPUの動作サイクルレート
の高速化に対し追従できない、即ち動作サイクルレート
が高速化されCPUは高速動作可能となったが、CPU
に10進演算命令処理を行わせることで該10進演算命
令処理に時間を要し結局CPUの動作が停止しCPU全
体としての動作速度を向上させることはできないという
問題点がある。
Also, in the second method, after "Answer 1" is obtained in the binary operation cycle, the constant used in the correction cycle is determined. In the case of the example shown in Table 2 below, Since it is necessary to consider the carry from the lowest nibble value to determine the correction value of the highest nibble value, a propagation delay occurs, and the calculation data size increases as in the case of the first method. Sometimes, it is impossible to keep up with the increase in the operation cycle rate of the CPU, that is, the operation cycle rate is increased and the CPU can operate at a high speed.
However, there is a problem that the operation of the decimal operation command takes a long time, the operation of the CPU is eventually stopped, and the operation speed of the entire CPU cannot be improved.

【0010】本発明はこのような問題点を解決するため
になされたもので、回路構成を変更することなくCPU
のALU内に備わる加算器の演算動作速度に応じてCP
Uの動作サイクルレートに応じて10進演算命令処理が
可能な10進演算命令処理装置を提供することを目的と
する。
SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and has been developed without changing the circuit configuration.
CP according to the operation speed of the adder provided in the ALU
It is an object of the present invention to provide a decimal operation instruction processing device capable of processing a decimal operation instruction according to the operation cycle rate of U.

【0011】[0011]

【課題を解決するための手段とその作用】本発明は、算
術論理演算手段から送出された2進数表現の演算結果デ
ータを上記算術論理演算手段にて10進数表現に変換す
る10進演算命令処理を行う場合、上記算術論理演算手
段にフィードバック供給される上記演算結果データと、
定数データとに基づき上記10進演算命令処理を行う、
10進演算命令処理装置において、上記算術論理演算手
段は10進演算命令処理される上記演算結果データが4
ビット単位にてそれぞれに供給される複数のブロックを
備え、各ブロックは、上記フィードバック供給される上
記演算結果データにおける4ビット単位のデータと、4
ビットからなる定数データとを加算する加算手段と、上
記加算手段から供給される4ビット単位のデータに基づ
き上記4ビット単位のデータについての10進演算命令
処理の要否を判断する補正決定手段と、上記補正決定手
段から供給される10進演算命令処理の要否に関するデ
ータに基づき上記定数データを発生し上記加算手段へ送
出する定数発生手段と、を有し、4ビット単位に分割さ
れた上記10進演算命令処理される上記演算結果データ
について複数回に分割して10進演算命令処理が可能な
ように、当該10進演算命令処理装置が備わる中央演算
処理装置の1動作サイクルにて演算処理可能な範囲内に
ある上記ブロックを演算可能状態とし、その他の上記ブ
ロックを非演算処理状態とする制御信号を上記各ブロッ
クへ送出する制御手段を備えたことを特徴とする。
SUMMARY OF THE INVENTION The present invention relates to a decimal operation instruction processing for converting the operation result data of a binary representation sent from an arithmetic and logic operation means into a decimal representation by the arithmetic and logic operation means. When performing, the operation result data that is fed back to the arithmetic and logic operation means,
Perform the above decimal operation command processing based on the constant data;
In the decimal operation instruction processing device, the arithmetic and logic operation means outputs the operation result data to be processed by the decimal operation instruction as 4 decimal places.
A plurality of blocks are respectively supplied in bit units, and each block includes 4-bit data in the operation result data supplied as feedback,
Adding means for adding constant data consisting of bits; correction determining means for determining whether or not to perform decimal operation instruction processing on the 4-bit data based on the 4-bit data supplied from the adding means; A constant generating means for generating the constant data based on the data on the necessity of the decimal operation instruction processing supplied from the correction determining means and sending the constant data to the adding means. The arithmetic processing is performed in one operation cycle of the central processing unit provided with the decimal operation instruction processing device so that the operation result data processed by the decimal operation instruction processing can be divided into a plurality of times and the decimal operation instruction processing can be performed. A control to send a control signal to each of the blocks so that the blocks within a possible range are in a calculation enabled state and the other blocks are in a non-calculation processing state. Characterized by comprising a stage.

【0012】このように構成することで制御手段は、算
術論理演算手段に備わる複数のブロックの内、演算可能
とするブロックへ制御信号を送出することで、10進演
算命令処理される演算結果データを複数に分割して10
進演算命令処理が可能なように作用する。例えば、上記
演算結果データが32ビットからなり、4ビット毎に8
つのブロックに分けられている場合、1回目の10進演
算命令処理において制御手段は前半の4つのブロックを
演算可能とし、まず上記4つのブロックにおいて10進
演算命令処理を行わせ、2回目の10進演算命令処理に
て後半の4つのブロックにおいて10進演算命令処理を
行わせることができる。このように10進演算命令処理
させる演算結果データを複数回に分けて10進演算命令
処理が可能となることで、中央演算処理装置の動作サイ
クルレートが高速化されたとしても、高速化された1サ
イクルレートにて10進演算命令処理が実行可能なブロ
ックまでを制御手段は演算可能とするので、制御手段は
上記動作サイクルレートの高速化に追従して10進演算
命令処理を実行可能とするように作用する。
[0012] With this configuration, the control means sends a control signal to a block that can be operated out of a plurality of blocks provided in the arithmetic and logic operation means, so that the operation result data processed by the decimal operation instruction is processed. Is divided into a plurality of 10
It works so that binary arithmetic instruction processing can be performed. For example, the operation result data is composed of 32 bits, and every 4 bits is 8 bits.
In the case of being divided into three blocks, in the first decimal operation instruction processing, the control means makes it possible to operate the first four blocks, first performs the decimal operation instruction processing in the above four blocks, and causes the second In the decimal operation instruction processing, the decimal operation instruction processing can be performed in the last four blocks. As described above, the operation result data to be processed by the decimal operation instruction can be divided into a plurality of times and the decimal operation instruction can be processed, so that even if the operation cycle rate of the central processing unit is increased, the operation speed is increased. Since the control means can calculate up to the block in which the decimal operation instruction processing can be executed at one cycle rate, the control means can execute the decimal operation instruction processing following the increase in the operation cycle rate. Act like so.

【0013】又、本発明は、算術論理演算手段から送出
された2進数表現の演算結果データを上記算術論理演算
手段にて10進数表現に変換する10進演算命令処理を
行う場合、上記算術論理演算手段にフィードバック供給
される上記演算結果データと、定数データとに基づき上
記10進演算命令処理を行う、10進演算命令処理装置
において、上記算術論理演算手段は10進演算命令処理
される上記演算結果データが4ビット単位にてそれぞれ
に供給される複数のブロックを備え、各ブロックは、上
記フィードバック供給される上記演算結果データにおけ
る4ビット単位のデータと、4ビットからなる定数デー
タとを加算する加算手段と、上記加算手段から供給され
る4ビット単位のデータに基づき上記4ビット単位のデ
ータについての10進演算命令処理の要否を判断する補
正決定手段と、上記補正決定手段から供給される10進
演算命令処理の要否に関するデータに基づき上記定数デ
ータを発生し上記加算手段へ送出する定数発生手段と、
を有し、4ビット単位に分割された上記10進演算命令
処理される上記演算結果データについて複数回に分割し
て10進演算命令処理が可能なように、当該10進演算
命令処理装置が備わる中央演算処理装置の1動作サイク
ルにて演算処理可能な範囲内にある上記ブロックを演算
可能状態とし、その他の上記ブロックを非演算処理状態
とする制御信号を上記各ブロックへ送出する制御手段を
備え、上記補正決定手段は、加算にて上記演算結果デー
タを得た場合には、上記加算手段から供給される4ビッ
ト単位のデータが、10進数で10以上のとき、又は、
10進数で9でありかつ下位側の上記加算手段から桁上
り信号が供給されるときに当該ブロックの出力データに
ついて10進演算命令処理要と判断し、又、減算にて上
記演算結果データを得た場合には、4ビット単位にて桁
上り信号が発生しないときに上記ブロックの出力データ
について10進演算命令処理要と判断し、所定データを
送出する、所定値判断及び定数基礎データ発生手段と、
加算にて上記演算結果データを得た場合には複数回に分
割して行われる10進演算命令処理における前回の10
進演算命令処理における桁上り信号と下位側の加算手段
から供給される桁上り信号との論理和演算を行い、該論
理和演算にて得られたデータを保持し、一方、減算にて
上記演算結果データを得た場合には上記2進数表現の初
回演算結果データにおいて発生した桁上り信号を保持
し、保持した桁上り信号を外部並びに上記所定値判断及
び定数基礎データ発生手段へ送出する桁上り信号発生手
段と、を備えたことを特徴とする。
Further, the present invention provides the above-described arithmetic and logic operation when the arithmetic and logic operation means performs the decimal operation instruction processing for converting the arithmetic result data of the binary number expression into the decimal expression by the arithmetic and logic operation means. In the decimal operation instruction processing device for performing the decimal operation instruction processing based on the operation result data and the constant data fed back to the operation means, the arithmetic and logic operation means is configured to execute the decimal operation instruction processing. A plurality of blocks are provided to each of which result data is supplied in 4-bit units, and each block adds 4-bit data and 4-bit constant data in the operation result data supplied as feedback. An adder, and a 1-bit data for the 4-bit data based on the 4-bit data supplied from the adder. Correction determining means for determining the necessity of decimal operation command processing, and constant generating means for generating the constant data based on data on the necessity of decimal operation command processing supplied from the correction determining means and sending the data to the adding means When,
And the decimal operation instruction processing device is provided so that the operation result data divided into four bits and processed by the decimal operation instruction can be divided into a plurality of times to perform the decimal operation instruction processing. Control means for sending a control signal to each of the blocks so that the blocks within a range in which the arithmetic processing can be performed in one operation cycle of the central processing unit and the other blocks are in a non-operation processing state. The correction determining means, when the calculation result data is obtained by addition, when the 4-bit unit data supplied from the addition means is 10 or more in decimal, or
When the carry signal is supplied from the lower-side addition means, which is 9 in decimal, it is determined that the output data of the block is required to process a decimal operation instruction, and the operation result data is obtained by subtraction. When a carry signal is not generated in units of 4 bits, it is determined that decimal operation command processing is required for output data of the block, predetermined data is transmitted, and predetermined value determination and constant basic data generation means are provided. ,
When the above operation result data is obtained by the addition, the previous 10 in the decimal operation instruction processing performed by dividing into a plurality of times is performed.
Performs a logical sum operation of the carry signal in the hexadecimal operation command processing and the carry signal supplied from the lower-order addition means, and retains the data obtained by the logical sum operation. When the result data is obtained, the carry signal generated in the first calculation result data in the binary representation is held, and the held carry signal is sent to the outside and the predetermined value judgment and constant basic data generating means. Signal generating means.

【0014】このように構成することで、桁上り信号発
生手段は上記各ブロック毎に備えられているので、各ブ
ロック単位に桁上り信号を発生する。さらに、加算にて
演算結果データを得た場合では、前回の10進演算命令
処理にて発生した桁上り信号と下位側の加算手段から供
給される桁上り信号との論理和演算を行なうことで、桁
上り信号発生手段は10進演算命令処理において発生す
べき桁上り信号が消失することなく発生するように作用
する。
With this configuration, the carry signal generating means is provided for each of the blocks, and generates a carry signal for each block. Further, when the operation result data is obtained by the addition, the OR operation of the carry signal generated in the previous decimal operation instruction processing and the carry signal supplied from the lower-order addition means is performed. The carry signal generating means operates so that the carry signal to be generated in the decimal operation instruction processing is generated without disappearing.

【0015】[0015]

【実施例】本発明の10進演算命令処理装置の一実施例
について図1等を参照し以下に説明する。本実施例に示
す10進演算命令処理装置は、上述した第2の方法にお
ける動作と同様の動作を行うタイプ、即ちALUからの
送出データを再度ALUに供給し、上記送出データに基
づき発生させた定数と上記送出データとを加算して10
進演算結果を送出するタイプに同様のものではあるが、
本実施例の10進演算命令処理装置では、ALUの送出
データが32ビットの場合ALUの送出データと加算さ
れる上記定数について、例えばまず1回目は上記送出デ
ータの下位側の16ビットに対応する定数のみにて10
進演算命令処理を行い答えを求め、次の第2回目にて上
記送出データの上位側の16ビットに対応する定数のみ
にて10進演算命令処理を行い、最終的に10進演算さ
れた答えを求めようとするものである。尚、10進演算
命令処理は上記のように2回行うことに限られるもので
はなく、後述するように、本実施例における10進演算
命令処理装置では4ビット毎、即ちニブル単位で処理可
能としたのでニブル単位にて10進演算命令処理を行う
こともできる。又、本10進演算命令処理装置は、上記
「答1」が加算演算にて得られた場合に対する10進演
算命令処理のみならず上記「答1」が減算演算にて得ら
れる場合に対する10進演算命令処理も実行可能なもの
である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of a decimal operation instruction processing apparatus according to the present invention will be described below with reference to FIG. The decimal operation instruction processing device shown in the present embodiment is of a type that performs the same operation as the operation in the above-described second method, that is, supplies again the transmission data from the ALU to the ALU, and generates the transmission data based on the transmission data. The constant is added to the transmission data to obtain 10
It is similar to the type that sends the hexadecimal operation result,
In the decimal operation instruction processing device of this embodiment, when the transmitted data of the ALU is 32 bits, for the constant added to the transmitted data of the ALU, for example, the first time corresponds to the lower 16 bits of the transmitted data. 10 with constants only
Decimal operation instruction processing is performed to obtain an answer. At the next second time, decimal operation instruction processing is performed using only the constant corresponding to the upper 16 bits of the transmission data, and finally the decimal operated answer is obtained. Is to be obtained. Note that the decimal operation instruction processing is not limited to being performed twice as described above, and as described later, the decimal operation instruction processing device in the present embodiment is capable of processing every 4 bits, that is, in units of nibbles. Therefore, the decimal operation instruction processing can be performed in nibble units. Further, the present decimal operation instruction processing device is not limited to the decimal operation instruction processing for the case where the "answer 1" is obtained by the addition operation, and also the decimal operation for the case where the "answer 1" is obtained by the subtraction operation. The operation instruction processing can also be executed.

【0016】図1には、ニブル毎、即ち4ビット単位毎
の処理を行うブロックが合計8ブロック設けられ、合計
32ビットのデータについて10進演算命令処理を行う
ALUの一構成例が示されている。尚、上記32ビット
のデータの内、下位側である第1から第4ビットを処理
するブロックを第1ブロック、次の第5ビットから第8
ビットまでを処理するブロックを第2ブロック、以下同
様に第8ブロックまで存在するものであり、図1におい
て紙面の上側から下側方向へ第1から第8ブロックが存
在するものとする。そして本実施例では、第1ブロック
からいずれのブロックまでを1回にて10進演算命令処
理を行うかを、各ブロックに備わる、後述の定数基礎デ
ータ発生回路を制御回路から送出する制御信号(DAJ
信号)にていずれのブロックまでの定数基礎データ発生
回路を動作状態とするかによって制御するものである。
FIG. 1 shows an example of the configuration of an ALU in which a total of eight blocks are provided for performing processing for each nibble, that is, for each 4-bit unit, and for performing a decimal operation instruction process on data of a total of 32 bits. I have. In the 32-bit data, the block that processes the first to fourth bits on the lower side is the first block, and the next fifth to eighth bits.
The block for processing up to the bit is the second block, and similarly to the eighth block, and it is assumed that the first to eighth blocks exist from the upper side to the lower side in FIG. In the present embodiment, a control signal (a constant basic data generation circuit, which will be described later) provided from each control block and transmitted from the control circuit to which block from the first block to which decimal operation command processing is to be performed at one time is determined. DAJ
Signal) to control which of the blocks generates the basic data generation circuit.

【0017】本実施例に示す10進演算命令処理装置に
ついて図1を参照しその構成を以下に示す。上記それぞ
れのブロックには、Aバスに接続され該Aバスから伝送
される32ビットのデータの内、所定の4ビットのデー
タが供給され、又、後述する定数発生器1から信号線f
を介して定数が供給される4ビット加算器2と、加算器
2の出力側に接続され、信号線bを介して加算器2の出
力データを格納するラッチ回路3と、ラッチ回路3及び
加算器2の出力側に接続され、信号線gを介してラッチ
回路3から供給されるデータ及び加算器2から送出され
る桁上り信号dに基づき10進演算命令処理の実行が必
要か否かを決定するフラグラッチ及び補正決定器4と、
フラグラッチ及び補正決定器4の出力側に信号線cを介
して接続され、又、Bバスに接続され、所定の4ビット
の定数を発生する定数発生器1と、が設けられる。尚、
ラッチ回路3の出力側はAバスに接続され、各ブロック
毎における10進演算命令処理された4ビットのデータ
はラッチ回路3からAバスへ送出される。
The configuration of the decimal operation instruction processing device shown in this embodiment is shown below with reference to FIG. Each of the blocks is supplied with predetermined 4-bit data out of 32-bit data connected to the A bus and transmitted from the A bus, and is supplied from a constant generator 1 described later to a signal line f.
, A 4-bit adder 2 to which a constant is supplied via an input terminal, a latch circuit 3 connected to the output side of the adder 2 for storing output data of the adder 2 via a signal line b, a latch circuit 3 and an adder Is connected to the output side of the adder 2 and determines whether or not execution of the decimal operation command processing is necessary based on the data supplied from the latch circuit 3 via the signal line g and the carry signal d sent from the adder 2. A flag latch and correction determiner 4 to determine;
A constant generator 1 connected to the output side of the flag latch and correction determiner 4 via a signal line c and connected to the B bus to generate a predetermined 4-bit constant is provided. still,
The output side of the latch circuit 3 is connected to the A bus, and the 4-bit data subjected to the decimal operation instruction processing in each block is sent from the latch circuit 3 to the A bus.

【0018】尚、フラグラッチ及び補正決定器4は、詳
細後述するが、Aバス及びBバスから供給されるデータ
の加算演算及び減算演算にて発生するデータを異にす
る。又、図1に示すように、第1ブロックにはフラグラ
ッチ及び補正決定器4aが備わり、第2ブロックにはフ
ラグラッチ及び補正決定器4bが備わり、第3ブロック
にはフラグラッチ及び補正決定器4cが備わり、第4ブ
ロックにはフラグラッチ及び補正決定器4bが備わり、
第5ブロックにはフラグラッチ及び補正決定器4cが備
わり、第6ブロックにはフラグラッチ及び補正決定器4
bが備わり、第7ブロックにはフラグラッチ及び補正決
定器4cが備わり、第8ブロックにはフラグラッチ及び
補正決定器4bが備わり、これらのフラグラッチ及び補
正決定器を総括してフラグラッチ及び補正決定器4と記
す。
As will be described in detail later, the flag latch and the correction determiner 4 differ in data generated by addition and subtraction of data supplied from the A bus and the B bus. Also, as shown in FIG. 1, the first block is provided with a flag latch and correction determiner 4a, the second block is provided with a flag latch and correction determiner 4b, and the third block is provided with a flag latch and correction determiner 4c. , The fourth block includes a flag latch and a correction determiner 4b,
The fifth block includes a flag latch and correction determiner 4c, and the sixth block includes a flag latch and correction determiner 4c.
b, a seventh block is provided with a flag latch and correction determiner 4c, and an eighth block is provided with a flag latch and correction determiner 4b. These flag latches and correction determiners are collectively referred to as a flag latch and correction determiner 4. Write.

【0019】そして、第2、第3…の各ブロックにおい
て、加算器2には上位側のブロックに含まれる加算器か
ら信号線dを介して桁上り信号が供給され、又、フラグ
ラッチ及び補正決定器4にも上位側のブロックに含まれ
るフラグラッチ及び補正決定器4から信号線eを介して
桁上り信号が供給される。
In each of the second, third,... Blocks, the adder 2 is supplied with a carry signal from the adder included in the higher-order block via a signal line d. The carry signal is also supplied from the flag latch and correction determiner 4 included in the upper block via the signal line e to the unit 4.

【0020】本実施例の10進演算命令処理装置の全体
構成は上述したものであるが、以下にラッチ回路3等の
具体的な回路構成を説明する。本実施例において加算器
2の回路構成は特に限定するものではない。ラッチ回路
3は、1ビット分の構成が例えば図2に示すような回路
構成であり、加算器2の出力データの内の1ビットが信
号線bに供給され、出力データは信号線gに出力される。
又、定数発生器1は図3に示すような回路構成であり、
フラグラッチ及び補正決定器4から出力される、図3に
〜にて示す3種の制御信号即ち、第1ないし第3ビ
ット目のデータが供給され、定数発生器1の4ビットか
らなる出力データは加算器2に供給される。
The overall configuration of the decimal operation instruction processing device of the present embodiment is as described above. The specific circuit configuration of the latch circuit 3 and the like will be described below. In this embodiment, the circuit configuration of the adder 2 is not particularly limited. The latch circuit 3 has a configuration corresponding to one bit, for example, as shown in FIG. 2. One bit of the output data of the adder 2 is supplied to the signal line b, and the output data is output to the signal line g. Is done.
The constant generator 1 has a circuit configuration as shown in FIG.
Three kinds of control signals indicated by in FIG. 3, that is, data of the first to third bits, which are output from the flag latch and correction determiner 4, are supplied. It is supplied to the adder 2.

【0021】尚、定数発生器1が発生するデータとフラ
グラッチ及び補正決定器4の出力データとの関係を以下
に示す。即ち、フラグラッチ及び補正決定器4の出力デ
ータの上記第1ないし第3ビットのデータが「000」あ
るいは「001」であるときには定数発生器1は「000
0」のデータを加算器2へ送出し、上記第1ないし第3
ビットのデータが「011」であるときには定数発生器1
は「0110」のデータを加算器2へ送出し、上記第1な
いし第3ビットのデータが「110」であるときには定数
発生器1はBバスから供給される4ビットのデータを加
算器2へ送出する。
The relationship between the data generated by the constant generator 1 and the output data of the flag latch and the correction determiner 4 is shown below. That is, when the first to third bit data of the output data of the flag latch and correction determiner 4 is “000” or “001”, the constant generator 1 outputs “000”.
0 "to the adder 2, and the first to third data
When the bit data is "011", the constant generator 1
Sends the data "0110" to the adder 2, and when the first to third bit data is "110", the constant generator 1 sends the 4-bit data supplied from the B bus to the adder 2. Send out.

【0022】フラグラッチ及び補正決定器4は図4に示
す構成である。尚、図4に示す構成部分4a、4b、4c
は、図1に示す構成部分4a、4b、4cに一致する。そ
れぞれのフラグラッチ及び補正決定器4a等には、それ
ぞれのブロック等にて多少回路構成が異なるが、信号線
gを介してラッチ回路3から供給される4ビットのデー
タが所定値であるか否かを判断する所定値判断回路41
a、41b、41cと、所定値判断回路41a等の出力デー
タが供給され、定数発生器1から発生する定数のもとに
なるデータを送出する定数基礎データ発生回路42a、
42b、42cと、第1ブロック等の各ブロック毎、換言
するとニブル単位毎における桁上り信号を発生する桁上
り信号発生回路43a、43b、43cと、を設けてい
る。
The flag latch and correction determiner 4 has the configuration shown in FIG. The components 4a, 4b, 4c shown in FIG.
Corresponds to the components 4a, 4b, 4c shown in FIG. Although each of the flag latches and the correction determiner 4a have a slightly different circuit configuration in each block, etc.
a predetermined value determination circuit 41 for determining whether or not the 4-bit data supplied from the latch circuit 3 via the g is a predetermined value
a, 41b, 41c and output data from a predetermined value judgment circuit 41a and the like, and a constant basic data generation circuit 42a, which sends out data on which constants generated from the constant generator 1 are generated.
42b, 42c and carry signal generating circuits 43a, 43b, 43c for generating carry signals for each block such as the first block, in other words, for each nibble.

【0023】所定値判断回路41a等は、上記「答1」
が加算演算にて得られたときには、ニブル値において、
(i)ラッチ回路3から供給される演算結果データが16
進数で「A」、即ち2進数で「1010」以上か否か、(ii)
上記演算結果データが16進数で「9」、即ち2進数で
「1001」であって、かつ下位の上記ブロックから桁上
りがあるか否か、又、上記「答1」が減算演算にて得ら
れたときには上記演算結果データがニブル単位で桁上り
信号を発生したか否か、のいずれかの条件を満たしたと
きに信号を定数基礎データ発生回路42a等に送出す
る。
The predetermined value judging circuit 41a and the like perform the above-mentioned "answer 1"
Is obtained by the addition operation, the nibble value:
(i) When the operation result data supplied from the latch circuit 3 is 16
Whether it is "A" in binary, that is, "1010" or more in binary, (ii)
Whether the operation result data is "9" in hexadecimal, that is, "1001" in binary, and whether there is a carry from the lower block, and whether "Answer 1" is obtained by subtraction operation When the condition is satisfied, a signal is sent to the constant basic data generation circuit 42a or the like when one of the conditions of whether the calculation result data has generated a carry signal in nibble units is satisfied.

【0024】尚、所定値判断回路41aは、図示するよ
うにOR回路、NAND回路から構成され、第1ブロッ
クにおけるラッチ回路3が送出する4ビットのデータの
内、下位側の2ビット目及び3ビット目のデータ(図内
では、、にて示す)がOR回路に供給され、4ビッ
ト目のデータ(図内では、にて示す)がNAND回路に
供給される。
The predetermined value judging circuit 41a is composed of an OR circuit and a NAND circuit as shown in the figure. Of the 4-bit data sent out by the latch circuit 3 in the first block, the lower second and third bits are transmitted. The data of the bit (indicated by) in the figure is supplied to the OR circuit, and the data of the fourth bit (indicated by) in the figure is supplied to the NAND circuit.

【0025】所定値判断回路41bは、図示するように
3入力NOR回路、NAND回路、AND回路から構成
され、第2ブロックにおけるラッチ回路3が送出する4
ビットのデータの内、下位側の1ビット目及び4ビット
目の反転データ(図内では、バー、バーにて示す)が
NOR回路に供給され、2ビット目及び3ビット目の反
転データ(図内では、バー、バーにて示す)がNAN
D回路に供給される。又、第1ブロックにおけるフラグ
ラッチ及び補正決定器4aの定数基礎データ発生回路4
2aから信号線eを介して供給されるデータが3入力NO
R回路の一端子に供給される。
The predetermined value judging circuit 41b comprises a three-input NOR circuit, a NAND circuit, and an AND circuit as shown in FIG.
Of the bit data, inverted data of the first and fourth bits on the lower side (indicated by bars in the drawing) are supplied to the NOR circuit, and inverted data of the second and third bits (see FIG. (Indicated by bars and bars) is NAN
It is supplied to the D circuit. The constant basic data generation circuit 4 of the flag latch and correction decision unit 4a in the first block
Data supplied from 2a via signal line e is 3 input NO
It is supplied to one terminal of the R circuit.

【0026】所定値判断回路41cは、図示するように
3入力NAND回路、OR回路、2入力NAND回路回
路から構成され、第3ブロックにおけるラッチ回路3が
送出する4ビットのデータの内、下位側の1ビット目及
び4ビット目のデータ(図内では、、にて示す)がN
AND回路に供給され、2ビット目及び3ビット目のデ
ータ(図内では、、にて示す)がNAND回路に供給
される。又、第2ブロックにおけるフラグラッチ及び補
正決定器4bの定数基礎データ発生回路42bから信号線
eを介して供給されるデータが3入力NAND回路の一
端子に供給される。尚、所定値判断回路41a等は、図
示した回路構成に限るものではなく上述した機能を行う
構成であればよい。
The predetermined value judging circuit 41c comprises a three-input NAND circuit, an OR circuit, and a two-input NAND circuit, as shown in the figure, and the lower side of the 4-bit data transmitted by the latch circuit 3 in the third block. The first and fourth bits of data (indicated by, in the figure) are N
The data is supplied to the AND circuit, and the data of the second and third bits (indicated by, in the figure) is supplied to the NAND circuit. Also, the signal line from the constant basic data generation circuit 42b of the flag latch and correction decision unit 4b in the second block.
Data supplied via e is supplied to one terminal of a three-input NAND circuit. The predetermined value determination circuit 41a and the like are not limited to the illustrated circuit configuration, but may be any configuration that performs the above-described functions.

【0027】定数基礎データ発生回路42a等は、10
進演算命令処理が行なわれるデータが加算演算にて得ら
れた場合と減算演算にて得られた場合とにおいて発生す
る定数データを変更させるためのADD信号及び反転A
DD信号が伝送されるADD信号線、反転ADD信号線
にそれぞれ一入力端子が接続され、他の入力端子には所
定値判断回路41a等の出力端が接続される2入力AN
D回路等と、該2入力AND回路等の出力側が接続さ
れ、上記加算演算又は減算演算を区別するためのDAJ
信号及び反転DAJ信号が伝送されるDAJ信号線及び
反転DAJ信号線に接続されるNAND回路等にて構成
され、信号線cへ3ビットの定数基礎データを送出する
回路420と、を有する。尚、図4に示す補正決定器4
b,4cに含まれる回路420は、補正決定器4aに含まれ
る回路420と同一であるので、その記載を省略してい
る。
The constant basic data generation circuit 42a and the like
ADD signal and inverted A for changing constant data generated when data to be subjected to binary arithmetic instruction processing is obtained by an addition operation and when it is obtained by a subtraction operation
One input terminal is connected to each of the ADD signal line for transmitting the DD signal and the inverted ADD signal line, and the other input terminal is connected to the output terminal of the predetermined value determination circuit 41a or the like.
D circuit or the like and an output side of the two-input AND circuit or the like are connected, and DAJ for distinguishing the addition operation or the subtraction operation is used.
And a circuit 420 configured by a NAND circuit or the like connected to the DAJ signal line and the inverted DAJ signal line for transmitting the signal and the inverted DAJ signal, and transmitting 3-bit constant basic data to the signal line c. Note that the correction determiner 4 shown in FIG.
Since the circuit 420 included in b and 4c is the same as the circuit 420 included in the correction determiner 4a, the description is omitted.

【0028】尚、本実施例におけるフラグラッチ及び補
正決定器4では、加算時と減算時の補正の判断が基本的
に異なる。減算時には、最初の演算サイクルで桁上りが
(ニブル)発生しないことが補正の必要有を示し、加算
時とは逆の判断となる。従ってALUの制御上、定数基
礎データ発生回路において、加算時と減算時とを区別す
る必要があり、この区別を上記DAJ信号及び反転DA
J信号にて行っている。
In the present embodiment, the flag latch and the correction determiner 4 basically differ in the judgment of correction between addition and subtraction. At the time of subtraction, the fact that no carry (nibble) occurs in the first operation cycle indicates the necessity of correction, which is the reverse of the case of addition. Therefore, in the control of the ALU, it is necessary to distinguish between addition and subtraction in the constant basic data generation circuit, and the distinction is made between the DAJ signal and the inverted DA signal.
This is done with the J signal.

【0029】本実施例の10進演算命令処理装置におけ
る特徴的な回路である桁上り信号発生回路43a等は、
クロック端子に供給されるラッチ制御信号にて桁上り信
号を格納するフリップフロップ430と、フリップフロ
ップ430のデータ出力端子から上記格納データが供給
され、一方上記ADD信号が供給されるこれらの論理積
演算を行う2入力AND回路432と、該AND回路4
32の出力側が接続され、一方には上位側のブロックに
おける加算器2aから延在する信号線dが接続されるOR
回路431と、から構成される。
The carry signal generation circuit 43a, which is a characteristic circuit of the decimal operation command processing device of this embodiment, includes
A flip-flop 430 for storing a carry signal by a latch control signal supplied to a clock terminal, and an AND operation of the flip-flop 430 to which the stored data is supplied from the data output terminal and the ADD signal is supplied And a two-input AND circuit 432 for performing
The output side of the OR 32 is connected to one side, and the other side is connected to the signal line d extending from the adder 2a in the upper block.
And a circuit 431.

【0030】又、フラグラッチ及び補正決定器4a及び
4cにおいては、フリップフロップ430の反転出力端
子は、所定値判断回路41a、41c並びに定数基礎デー
タ発生回路42a、42cに接続され、フラグラッチ及び
補正決定器4bにおいては、フリップフロップ430の
出力端子が所定値判断回路41b及び定数基礎データ発
生回路42bに接続される。又、フリップフロップ43
0から送出される桁上り信号は、このフリップフロップ
430が備わるブロックにおける桁上り信号として送出
される。
In the flag latch and correction decision units 4a and 4c, the inverted output terminal of the flip-flop 430 is connected to predetermined value judgment circuits 41a and 41c and constant basic data generation circuits 42a and 42c. In 4b, the output terminal of the flip-flop 430 is connected to the predetermined value judgment circuit 41b and the constant basic data generation circuit 42b. Also, the flip-flop 43
The carry signal transmitted from 0 is transmitted as a carry signal in a block provided with the flip-flop 430.

【0031】このように構成される10進演算命令処理
装置における動作を以下に説明する。尚、16進数にて
表示すると「23234545」の加算データがAバスを
介して供給され、一方16進数にて表示すると「232
74445」の被加算データがBバスを介して供給さ
れ、これらの加算演算結果を10進演算命令処理する場
合を例にとる(以下、この例を例1と称する)。又、A
LU演算時に上記データは各数字は2進数で4ビットに
て表現されており、合計32ビットから構成される。
The operation of the decimal operation instruction processing device having such a configuration will be described below. In addition, when displayed in hexadecimal, the added data of “23234545” is supplied via the A bus, while when displayed in hexadecimal, “232” is displayed.
74445 "is supplied via the B bus, and the result of these addition operations is processed by a decimal operation instruction (hereinafter, this example is referred to as Example 1). Also, A
At the time of the LU operation, each digit of the data is represented by 4 bits in a binary number, and is composed of a total of 32 bits.

【0032】加算データにおける最下位の数字「5」を表
現する2進数で4ビットのデータが図1に示す第1ブロ
ックに備わる加算器2aに供給され、被加算データにお
ける最下位の数字「5」を表現する2進数で4ビットのデ
ータが第1ブロックに備わる定数発生器1を介して加算
器2aに供給される。この最下位データの場合と同様
に、加算データにおける下位側2位の数字「4」を表現す
る2進数で4ビットのデータが第2ブロックに備わる加
算器2bに供給され、被加算データにおける最下位の数
字「4」を表現する2進数で4ビットのデータが第2ブロ
ックに備わる定数発生器1を介して加算器2bに供給さ
れる。以下同様して加算、被加算の最上位のそれぞれの
数字に対応する2進数で4ビットのデータが第8ブロッ
クの加算器2bに供給される。
The 4-bit binary data representing the least significant digit "5" in the added data is supplied to the adder 2a provided in the first block shown in FIG. 1, and the least significant digit "5" in the data to be added. Is supplied to the adder 2a via the constant generator 1 provided in the first block. As in the case of the least significant data, binary 4-bit data representing the second digit “4” in the lowermost digit of the added data is supplied to the adder 2b provided in the second block, and Binary 4-bit data representing the lower digit "4" is supplied to the adder 2b via the constant generator 1 provided in the second block. In the same manner, 4-bit binary data corresponding to the highest digit of addition and addition is supplied to the adder 2b of the eighth block.

【0033】このようにして上記加算データと上記被加
算データとの加算演算が行なわれ、結果データ「464
A898A」が得られ、この結果データについて10進
演算命令処理を行う。10進演算命令処理を行う場合、
本実施例の10進演算命令処理装置を構成する加算器2
の演算能力が、桁上り信号の伝搬速度との関係より、上
記10進演算命令処理装置を含むCPUの1動作サイク
ルレートにおいては図1に示す例えば第4ブロックまで
演算するのが限界であるとすれば、DAJ信号を複数本
数備え、本実施例の10進演算命令処理装置では制御回
路5から送出する第1制御信号DAJ(以下、第1DA
J信号という)により第1から第4ブロックを一群と
し、第2制御信号DAJ(以下、第2DAJ信号とい
う)により第5から第8ブロックを他の一群として10
進演算命令処理動作を行わせるものとする。
In this way, the addition operation of the added data and the added data is performed, and the result data "464" is obtained.
A898A "is obtained, and a decimal operation instruction process is performed on the result data. When performing decimal operation instruction processing,
Adder 2 constituting decimal operation instruction processing device of this embodiment
Because of the relationship between the arithmetic capability of the CPU and the propagation speed of the carry signal, it is considered that the limit to the operation up to, for example, the fourth block shown in FIG. Then, a plurality of DAJ signals are provided, and in the decimal operation instruction processing device of the present embodiment, the first control signal DAJ (hereinafter referred to as the first DA signal) transmitted from the control circuit 5 is provided.
J signal), the first to fourth blocks are grouped as a group, and the fifth to eighth blocks are grouped as another group with a second control signal DAJ (hereinafter, referred to as a second DAJ signal).
It is assumed that a binary operation instruction processing operation is performed.

【0034】即ち、この例1では、10進演算命令処理
を2回行う。1回目の10進演算命令処理では、上記結
果データ「464A898A」の下位側の「898A」につ
いて、該「898A」に対応して発生させる定数と10
進演算命令処理を行い、このとき上位側の「464A」
については「0000」(16進数)のデータとの10
進演算命令処理を行い、換言すると上位側「464A」
については10進演算命令処理を行わない。このように
して得られるデータについて再度10進演算命令処理を
行なうが、次の2回目の10進演算命令処理では、上記
上位側の「464A」について、該「464A」に対応し
て発生させる定数との10進演算命令処理を行い、この
とき下位側の「898A」については「0000」(1
6進数)のデータとの10進演算命令処理を行い、換言
すると下位側「898A」については10進演算命令処
理を行わない。このように2回10進演算命令処理を行
い、最終的に10進演算命令処理されたデータを得る。
That is, in Example 1, the decimal operation instruction processing is performed twice. In the first decimal operation instruction processing, the constant “898A” generated in correspondence with “898A” and the lower constant “898A” of the result data “464A898A”
Hexadecimal operation instruction processing is performed, and at this time, "464A"
For "0000" (hexadecimal)
Hexadecimal operation instruction processing, in other words, the upper side "464A"
Does not perform decimal operation instruction processing. The decimal operation instruction processing is performed again on the data obtained in this manner. In the next second decimal operation instruction processing, a constant generated for the upper side “464A” corresponding to the “464A” At this time, the lower-order “898A” is “0000” (1
Decimal operation instruction processing is performed with the data of (hexadecimal number), in other words, the decimal operation instruction processing is not performed on the lower side “898A”. As described above, the decimal operation instruction processing is performed twice, and finally, the data processed by the decimal operation instruction is obtained.

【0035】このようにまず第1ないし第4ブロックに
ついて10進演算命令処理を行い、次に第5ないし第8
ブロックについて10進演算命令処理を行うための制御
は、図4に示す定数基礎データ発生回路42a等に備わ
る回路420へ制御回路5からそれぞれ供給されるDA
J信号によりいずれの回路420より有効なデータを送
出させるかを制御することにより行う。上記例1の場合
では、まず1回目の10進演算命令処理では、第1ない
し第4ブロックにおける定数基礎データ発生回路42a
等に備わる回路420から有効なデータが送出され第5
ないし第8ブロックにおける定数基礎データ発生回路4
2a等に備わる回路420からは「0」のデータが送出
されるように、第1ないし第4ブロックの回路420へ
は第1DAJ信号を供給し第5ないし第8ブロックの回
路420へは第2DAJ信号を供給する。次に2回目の
10進演算命令処理では、第1ないし第4ブロックにお
ける定数基礎データ発生回路42a等に備わる回路42
0から「0」のデータが送出され、第5ないし第8ブロ
ックにおける定数基礎データ発生回路42a等に備わる
回路420からは有効なデータが送出されるように、第
1ないし第4ブロックの回路420へは第2DAJ信号
を供給し第5ないし第8ブロックの回路420へは第1
DAJ信号を供給する。
As described above, first, the decimal operation instruction processing is performed for the first to fourth blocks, and then the fifth to eighth blocks are processed.
The control for performing the decimal operation command processing on the block is performed by the DA supplied from the control circuit 5 to the circuit 420 provided in the constant basic data generation circuit 42a and the like shown in FIG.
This is performed by controlling which circuit 420 sends valid data by the J signal. In the case of the first example, first, in the first decimal operation instruction processing, the constant basic data generation circuit 42a in the first to fourth blocks is used.
Valid data is transmitted from the circuit 420 provided in
To constant basic data generation circuit 4 in the eighth to eighth blocks
The first DAJ signal is supplied to the circuits 420 of the first to fourth blocks and the second DAJ signal is supplied to the circuits 420 of the fifth to eighth blocks so that data "0" is transmitted from the circuit 420 provided in 2a or the like. Supply signal. Next, in the second decimal operation instruction processing, the circuit 42 provided in the constant basic data generation circuit 42a and the like in the first to fourth blocks
Data of 0 to "0" is transmitted, and circuits 420 of the first to fourth blocks are provided so that valid data is transmitted from the circuit 420 provided in the constant basic data generation circuit 42a and the like in the fifth to eighth blocks. Supplies the second DAJ signal and supplies the first to the circuits 420 of the fifth to eighth blocks.
Provides DAJ signal.

【0036】尚、例1では上記第1及び第2DAJ信号
は、4ブロック単位にて供給したがこれに限るものでは
なく、それぞれのブロック毎に個別に供給するようにし
ても良いし、逆に8つのすべてのブロックを一単位とし
てするようにしても良い。
In the first embodiment, the first and second DAJ signals are supplied in units of four blocks. However, the present invention is not limited to this. The first and second DAJ signals may be supplied individually for each block. All eight blocks may be regarded as one unit.

【0037】まず、上記結果データ「464A898A」
の下位側の「898A」について10進演算命令処理を行
う場合について説明する。上記結果データ「464A8
98A」の最下位のデータ「A」が図1に示す第1ブロ
ックのAバスを介して加算器2aに供給され、下2位の
データ「8」が第2ブロックのAバスを介して加算器2
bに供給され、下3位のデータ「9」が第3ブロックの
Aバスを介して加算器2aに供給され、以下同様にし
て、最上位のデータ「4」が第8ブロックのAバスを介
して加算器2bに供給される。以下に各位のデータ毎に
10進演算命令処理動作を説明する。
First, the result data "464A898A"
A case will be described in which decimal operation instruction processing is performed for "898A" on the lower side. The above result data "464A8
98A "is supplied to the adder 2a via the first block A bus shown in FIG. 1, and the second lowest data" 8 "is added via the second block A bus. Vessel 2
b, the lower third data "9" is supplied to the adder 2a via the third block A bus, and so on. Similarly, the highest data "4" is supplied to the eighth block A bus. The signal is supplied to the adder 2b via the adder. The operation of the decimal operation command processing for each data will be described below.

【0038】図1に示す第1ブロックに備わるフラグラ
ッチ及び補正決定器4aには、ラッチ回路3から最下位
の数字である「A」、即ち2進数で「1010」が供給され
る。つまり、フラグラッチ及び補正決定器4aに含まれ
る所定値判定回路41aに上記データ「1010」の第2
から第4ビット目のデータ、即ち「101」が供給され
る。該データ「101」が供給されることで所定値判定
回路41aは、図4に示す論理回路構成による論理動作
を行い、その結果、10進演算命令処理を必要とする旨
の信号を次段の定数基礎データ発生回路42aに送出す
る。
The lowest digit "A", that is, "1010" in binary, is supplied from the latch circuit 3 to the flag latch and correction determiner 4a provided in the first block shown in FIG. That is, the predetermined value determination circuit 41a included in the flag latch and correction determiner 4a stores the second data
, The data of the fourth bit, that is, “101” is supplied. When the data "101" is supplied, the predetermined value determination circuit 41a performs a logical operation according to the logic circuit configuration shown in FIG. 4, and as a result, outputs a signal indicating that decimal operation instruction processing is required in the next stage. It is sent to the constant basic data generation circuit 42a.

【0039】今、加算演算結果による10進演算命令処
理を実行しているので、第1DAJ信号の信号レベルは
ハイレベル(=1)であり、定数基礎データ発生回路42
aは図示する論理回路構成による論理演算を行い、その
結果、3ビットの「011」のデータを信号線cを介して
定数発生器1へ送出する。定数発生器1は、供給される
上記3ビットのデータに基づき図3に示す論理回路構成
による論理動作を行い、その結果、16進数で「6」、2
進数で「0110」のデータを加算器2aへ送出する。
Since the decimal operation command processing based on the addition operation result is executed, the signal level of the first DAJ signal is high (= 1), and the constant basic data generation circuit 42
“a” performs a logical operation according to the illustrated logic circuit configuration, and as a result, sends 3-bit “011” data to the constant generator 1 via the signal line c. The constant generator 1 performs a logical operation by the logical circuit configuration shown in FIG. 3 based on the supplied 3-bit data, and as a result, “6” in hexadecimal, 2
The data of "0110" in base is transmitted to the adder 2a.

【0040】よって加算器2aは、上記データ「898
A」の最下位のデータ「A」と16進数で「6」のデー
タとの加算を、それぞれ2進数にて表現した4ビットの
データにて行う。そしてその結果得られた4ビットの結
果データはラッチ回路3へ送出されラッチ回路3からA
バスへ送出される。尚、このとき第1DAJ信号の信号
レベルをローレベルとすることでフラグラッチ及び補正
決定器4aから信号線Cへ送出されるないしの値は
固定値であるHレベルとなる。それによって図3に示す
定数発生器1には、B(0)ないしB(3)、つまりバ
スの値が供給される。又、加算器2aにおける4ビット
のデータの演算により発生した桁上り信号は、信号線d
を介してフラグラッチ及び補正決定器4aに含まれる桁
上り信号発生回路43aを構成するOR回路431に供
給されAND回路432の出力データと論理和演算さ
れ、その結果がフリップフロップ430へ供給される。
そして、第1ブロックにおける桁上り信号としてフリッ
プフロップ430から桁上り信号C3が送出されるとと
もに、上記AND回路432へ送出される。
Therefore, the adder 2a outputs the data "898
The addition of the least significant data "A" of "A" and the data of "6" in hexadecimal is performed using 4-bit data expressed in binary. The 4-bit result data obtained as a result is sent to the latch circuit 3 and sent from the latch circuit 3 to A
Sent to the bus. At this time, by setting the signal level of the first DAJ signal to a low level, the value sent from the flag latch and correction determiner 4a to the signal line C becomes a fixed H level. Thereby, the constant generator 1 shown in FIG. 3 is supplied with B (0) to B (3), that is, the value of the bus. The carry signal generated by the operation of the 4-bit data in the adder 2a is a signal line d.
Is supplied to the OR circuit 431 constituting the carry signal generation circuit 43a included in the flag latch and correction determinator 4a, and is OR-operated with the output data of the AND circuit 432, and the result is supplied to the flip-flop 430.
Then, the carry signal C3 is transmitted from the flip-flop 430 as a carry signal in the first block, and is also transmitted to the AND circuit 432.

【0041】次に、上記データ「898A」の下2位の
データ「8」について10進演算命令処理を行う場合を
説明する。尚、各動作説明は順に行うが各ブロックにお
ける10進演算命令処理自体は同時に進行するものであ
る。図1に示す第2ブロックに備わるフラグラッチ及び
補正決定器4bには、ラッチ回路3から下2位の数字で
ある「8」、即ち2進数で「1000」が供給される。そし
てフラグラッチ及び補正決定器4bに含まれる所定値判
定回路41bには、図4に示すように、上記データ「1
000」の反転データ「0111」が供給される。該デ
ータ「0111」が供給されることで所定値判定回路4
1bは、図4に示す論理回路構成による論理動作を行
い、その結果、10進演算命令処理は不要とする旨の信
号を次段の定数基礎データ発生回路42bに送出する。
Next, a case will be described in which decimal operation command processing is performed on the second-place data "8" of the data "898A". The operation will be described in order, but the decimal operation command processing itself in each block proceeds simultaneously. The lower second digit “8”, that is, “1000” in binary, is supplied from the latch circuit 3 to the flag latch and correction determiner 4b provided in the second block shown in FIG. The predetermined value determination circuit 41b included in the flag latch and correction determiner 4b stores the data "1" as shown in FIG.
000 "is supplied. When the data “0111” is supplied, the predetermined value determination circuit 4
1b performs a logical operation according to the logical circuit configuration shown in FIG. 4, and as a result, sends a signal to the effect that the decimal operation instruction processing is unnecessary to the constant basic data generation circuit 42b at the next stage.

【0042】上述のごとく第1DAJ信号の信号レベル
はハイレベル(=1)であり、定数基礎データ発生回路4
2bは図示する論理回路構成による論理演算を行い、そ
の結果、3ビットの「010」のデータを信号線cを介し
て定数発生器1へ送出する。定数発生器1は、供給され
る上記3ビットのデータに基づき図3に示す論理回路構
成による論理動作を行い、その結果、16進数で「0」、
2進数で「0000」のデータを加算器2bへ送出す
る。
As described above, the signal level of the first DAJ signal is high (= 1), and the constant basic data generation circuit 4
2b performs a logical operation according to the illustrated logic circuit configuration, and as a result, sends 3-bit "010" data to the constant generator 1 via the signal line c. The constant generator 1 performs a logical operation according to the logical circuit configuration shown in FIG. 3 based on the supplied 3-bit data, and as a result, “0” in hexadecimal,
The data of "0000" in binary is transmitted to the adder 2b.

【0043】よって加算器2bは、上記データ「898
A」の下2位のデータ「8」と16進数で「0」のデー
タと第1ブロックの加算器2aから供給される桁上りデ
ータとの加算を、それぞれ2進数にて表現した4ビット
のデータにて行う。その結果得られた4ビットの結果デ
ータはラッチ回路3へ送出されラッチ回路3からAバス
へ送出される。このとき第1DAJ信号の信号レベルが
ローレベルでありフラグラッチ及び補正決定器4bから
送出されるないしの値がHレベルとなるのは上述し
た第1ブロックの場合と同様である。
Therefore, the adder 2b outputs the data "898
A is a 4-bit binary number representing the addition of the lower second data “8”, the data “0” in hexadecimal and the carry data supplied from the adder 2a of the first block. Perform with data. The resulting 4-bit result data is sent to the latch circuit 3 and sent from the latch circuit 3 to the A bus. At this time, the signal level of the first DAJ signal is at the low level, and the value transmitted from the flag latch and correction determiner 4b is at the H level, as in the case of the first block described above.

【0044】又、第2ブロックにおける演算では、加算
器2bにおいて桁上り信号は発生しないので、桁上り信
号発生回路43aを構成するOR回路431には桁上り
信号は供給されない。よってフリップフロップ430に
「1」のデータが供給されることもないので第2ブロッ
クからは桁上り信号は送出されない。
In the operation in the second block, no carry signal is generated in the adder 2b, so that no carry signal is supplied to the OR circuit 431 constituting the carry signal generation circuit 43a. Therefore, no data of "1" is supplied to the flip-flop 430, and no carry signal is transmitted from the second block.

【0045】尚、第1ブロックの説明にて記載したよう
に、加算器2bから桁上り信号が供給されなくとも、桁
上り信号発生回路43a等では加算器2bからの桁上り
信号とAND回路432の出力データとの論理和演算が
行われるので、加算の場合、例えば前回演算サイクルで
桁上りが発生したときのようにAND回路432から
「1」のデータが送出されている場合には各ブロックか
ら桁上り信号が送出される場合はある。
As described in the description of the first block, even if a carry signal is not supplied from the adder 2b, the carry signal from the adder 2b and the AND circuit 432 in the carry signal generation circuit 43a and the like. In the case of addition, for example, when data of “1” is transmitted from the AND circuit 432 as in the case where a carry occurs in the previous operation cycle, each block is added. May carry a carry signal.

【0046】次に、上記データ「898A」の下3位の
データ「9」について10進演算命令処理を行う場合を
説明する。図1に示す第3ブロックに備わるフラグラッ
チ及び補正決定器4cには、ラッチ回路3から下3位の
数字である「9」、即ち2進数で「1001」が供給され
る。そしてフラグラッチ及び補正決定器4cに含まれる
所定値判定回路41cには、図4に示すように上記デー
タ「1001」が供給される。該データ「1001」が供
給され、又、第2ブロックに備わる定数基礎データ発生
回路42bから桁上り信号が供給されないことに基づ
き、所定値判定回路41cは、図4に示す論理回路構成
による論理動作を行い、その結果、10進演算命令処理
は不要とする旨の信号を次段の定数基礎データ発生回路
42cに送出する。以下の動作は上述した第2ブロック
における動作と同様であるので説明を省略する。尚、第
3ブロックにおける演算の結果、桁上り信号は送出され
ない。
Next, a case will be described in which decimal operation command processing is performed on the third-place data "9" of the data "898A". The lower third digit “9”, that is, “1001” in binary, is supplied from the latch circuit 3 to the flag latch and correction determiner 4c provided in the third block shown in FIG. The data "1001" is supplied to the predetermined value determination circuit 41c included in the flag latch and correction determiner 4c as shown in FIG. When the data “1001” is supplied and the carry signal is not supplied from the constant basic data generation circuit 42b provided in the second block, the predetermined value determination circuit 41c performs the logical operation according to the logic circuit configuration shown in FIG. As a result, a signal to the effect that the decimal operation command processing is unnecessary is sent to the constant basic data generation circuit 42c at the next stage. The following operation is the same as the operation in the above-described second block, and thus the description is omitted. As a result of the calculation in the third block, no carry signal is transmitted.

【0047】次に、上記データ「898A」の最上位の
データ「8」について10進演算命令処理を行う場合を
説明する。第4ブロックに備わるフラグラッチ及び補正
決定器は、図1に示すように、上述した第2ブロックに
備わるフラグラッチ及び補正決定器4bと同じものであ
るので、上記最上位データ「8」の10進演算命令処理
は上述した第2ブロックにおける動作説明と同様である
ので、その説明は省略する。尚、第4ブロックにおける
演算の結果、桁上り信号は送出されない。
Next, a case will be described in which the decimal operation command processing is performed on the most significant data "8" of the data "898A". Since the flag latch and correction determiner provided in the fourth block are the same as the flag latch and correction determiner 4b provided in the second block as shown in FIG. 1, the decimal operation of the most significant data "8" is performed. The instruction processing is the same as that in the description of the operation in the above-described second block, and a description thereof will not be repeated. As a result of the operation in the fourth block, no carry signal is transmitted.

【0048】以上の動作にて上記結果データ「464A
898A」の下位側の「898A」について10進演算命
令処理を行ったことになり、又、上記結果データの上位
側の「464A」を処理する第5ブロックないし第8ブ
ロックの回路420には上述したように第2DAJ信号
を供給しているので定数基礎データ発生回路42a等か
ら定数発生器1へは「00X」(Xは1又は0)のデー
タが送出され、定数発生器1から加算器2a等には2進
数で4ビットの「0000」のデータが供給されるの
で、上記上位側の「464A」については10進演算命
令処理は行われず、当該10進演算命令処理装置からは
上記「464A」のデータがそのまま送出される。した
がって1回目の10進演算命令処理にて得られるデータ
は「464A8990」となる。そしてこの「464A
8990」のデータに基づき2回目の10進演算命令処
理を行う。
In the above operation, the result data "464A
This means that the decimal operation command processing has been performed on "898A" on the lower side of "898A", and the circuit 420 of the fifth to eighth blocks for processing "464A" on the upper side of the result data has been described above. As described above, since the second DAJ signal is supplied, data of "00X" (X is 1 or 0) is sent from the constant basic data generation circuit 42a to the constant generator 1, and the constant generator 1 adds the adder 2a. Are supplied with 4-bit data of "0000" in binary, so that the decimal operation instruction processing is not performed on the upper-side "464A", and the decimal operation instruction processing device does not execute the "464A". Is transmitted as it is. Therefore, the data obtained in the first decimal operation command processing is "464A8990". And this "464A
The second decimal operation instruction processing is performed based on the data of “8990”.

【0049】上記データ「464A8990」の最下位
のデータ「0」が図1に示す第1ブロックのAバスを介
して加算器2aに供給され、下2位のデータ「9」が第
2ブロックのAバスを介して加算器2bに供給され、下
3位のデータ「9」が第3ブロックのAバスを介して加
算器2aに供給され、以下同様にして、最上位のデータ
「4」が第8ブロックのAバスを介して加算器2bに供
給される。以下に各位のデータ毎に10進演算命令処理
動作を説明する。
The least significant data "0" of the above data "464A8990" is supplied to the adder 2a via the A bus of the first block shown in FIG. 1, and the second most significant data "9" of the second block is shown in FIG. The data "9" of the third lowermost position is supplied to the adder 2a through the A bus of the third block via the A bus, and similarly, the uppermost data "4" is supplied. The signal is supplied to the adder 2b via the A bus in the eighth block. The operation of the decimal operation command processing for each data will be described below.

【0050】上述したように、上記データ「464A8
990」の下位側の「8990」を処理する第1ブロッ
クないし第4ブロックの回路420には上述したように
第2DAJ信号を供給しているので定数基礎データ発生
回路42a等から定数発生器1へは「00X」(Xは1
又は0)のデータが送出され、定数発生器1から加算器
2a等には2進数で4ビットの「0000」のデータが
供給されるので、上記下位側の「8990」については
10進演算命令処理は行われず、当該10進演算命令処
理装置からは上記「8990」のデータがそのまま送出
される。
As described above, the data "464A8
Since the second DAJ signal is supplied to the circuits 420 of the first to fourth blocks for processing "8990" on the lower side of "990", the constant basic data generation circuit 42a and the like to the constant generator 1 Is “00X” (X is 1
Or 0), and the constant generator 1 is supplied with 4-bit binary "0000" data from the constant generator 1 to the adder 2a and the like. No processing is performed, and the above-mentioned "8990" data is transmitted as it is from the decimal operation instruction processing device.

【0051】第5ブロックに備わるフラグラッチ及び補
正決定器は、図1に示すように、1回目の10進演算命
令処理にて説明した、第3ブロックに備わるフラグラッ
チ及び補正決定器4cと同じ構成である。第5ブロック
に備わるフラグラッチ及び補正決定器4cには、ラッチ
回路3から上記上位側の「464A」のデータにおける
最下位の数字である「A」、即ち2進数で「1010」のデ
ータが供給される。尚、第4ブロックにおける定数基礎
データ発生回路42bでは桁上り信号は発生していない
ので桁上り信号の供給はない。したがって、データ「1
010」が供給されることで所定値判定回路41cは、
図4に示す論理回路構成による論理動作を行い、その結
果、10進演算命令処理を必要とする旨の信号を次段の
定数基礎データ発生回路42aに送出する。
As shown in FIG. 1, the flag latch and correction determiner 4c provided in the fifth block have the same configuration as the flag latch and correction determiner 4c provided in the third block described in the first decimal operation command processing. is there. The flag latch and correction determiner 4c provided in the fifth block are supplied with the lowest digit "A" of the data of the upper "464A" from the latch circuit 3, that is, the data of binary "1010". You. Since no carry signal is generated in the constant basic data generation circuit 42b in the fourth block, no carry signal is supplied. Therefore, data "1"
010 "is supplied, the predetermined value determination circuit 41c
The logic operation according to the logic circuit configuration shown in FIG. 4 is performed, and as a result, a signal to the effect that decimal operation instruction processing is required is sent to the constant basic data generation circuit 42a at the next stage.

【0052】定数基礎データ発生回路42cは図示する
論理回路構成による論理演算を行い、その結果、3ビッ
トの「011」のデータを信号線cを介して定数発生器1
へ送出する。定数発生器1は、供給される上記3ビット
のデータに基づき図3に示す論理回路構成による論理動
作を行い、その結果、16進数で「6」、2進数で「01
10」のデータを加算器2aへ送出する。
The constant basic data generation circuit 42c performs a logical operation according to the logic circuit configuration shown in the figure. As a result, the 3-bit "011" data is transmitted to the constant generator 1 via the signal line c.
Send to The constant generator 1 performs a logical operation by the logical circuit configuration shown in FIG. 3 based on the supplied 3-bit data, and as a result, “6” in hexadecimal and “01” in binary.
10 "is sent to the adder 2a.

【0053】よって加算器2aは、上記データ「464
A」の最下位のデータ「A」と16進数で「6」のデー
タとの加算を、それぞれ2進数にて表現した4ビットの
データにて行う。そしてその結果得られた4ビットの結
果データはラッチ回路3へ送出されラッチ回路3からA
バスへ送出される。尚、このとき第1DAJ信号の信号
レベルをローレベルとすることでフラグラッチ及び補正
決定器4aから送出されるないしの値がHレベルと
なる。又、加算器2aにおける4ビットのデータの演算
により発生した桁上り信号は、信号線dを介してフラグ
ラッチ及び補正決定器4cに含まれる桁上り信号発生回
路43cを構成するOR回路431に供給されAND回
路432の出力データと論理和演算され、その結果がフ
リップフロップ430へ供給される。そして、第5ブロ
ックにおける桁上り信号としてフリップフロップ430
から桁上り信号C19が送出されるとともに、上記AN
D回路432へ送出される。
Therefore, the adder 2a outputs the data "464"
The addition of the least significant data "A" of "A" and the data of "6" in hexadecimal is performed using 4-bit data expressed in binary. The 4-bit result data obtained as a result is sent to the latch circuit 3 and sent from the latch circuit 3 to A
Sent to the bus. At this time, by setting the signal level of the first DAJ signal to the low level, the value transmitted from the flag latch and correction determiner 4a becomes the H level. The carry signal generated by the operation of the 4-bit data in the adder 2a is supplied via a signal line d to an OR circuit 431 constituting a carry signal generating circuit 43c included in the flag latch and correction determiner 4c. The output data of the AND circuit 432 is ORed with the output data, and the result is supplied to the flip-flop 430. Then, the flip-flop 430 is used as a carry signal in the fifth block.
Transmits a carry signal C19, and the above AN
It is sent to the D circuit 432.

【0054】次に、上記データ「464A」の下2位か
ら最上位のデータ「4」、「6」、「4」について10
進演算命令処理を行う場合については、1回目の10進
演算命令処理にて説明した第2ブロックないし第4ブロ
ックにおける動作説明と同様であるので、その説明は省
略する。このようにして上記結果データ「464A89
8A」の上位側の「464A」について10進演算命令処
理が終了する。したがって2回目の10進演算命令処理
にて得られる10進数のデータは「46508990」
となり、又、このデータが最終的に必要とするデータで
ある。
Next, for the data "4", "6", and "4", which are the second to highest data of the data "464A", 10
When the decimal operation instruction processing is performed, the operation is the same as that of the second to fourth blocks described in the first decimal operation instruction processing, and the description thereof is omitted. Thus, the result data “464A89
Decimal operation instruction processing ends for "464A", which is the upper side of "8A". Therefore, the decimal number data obtained in the second decimal operation instruction processing is “46508990”.
And this data is the data ultimately needed.

【0055】以上説明したように本実施例における10
進演算命令処理装置は、加算あるいは減算した結果デー
タを再びALUに入力し10進演算命令処理を行なうタ
イプであって、10進演算命令処理を複数回に分けて行
なうことができるようにしたので、演算に要するサイク
ル数はその分増えるが、専用の10進演算命令処理装置
をALUに付加し1サイクルにて10進演算命令処理を
行わせるタイプに比べてALUの内部伝搬遅延時間を減
少させることができる。即ち、CPUの1サイクルにて
10進演算命令処理を行わせる場合、CPUの動作サイ
クルレートを高速化しても10進演算命令処理における
桁上り信号等の伝搬遅延により10進演算命令処理を1
サイクル時間内に終了させることができなくなり、CP
Uの処理動作は停止する。10進演算命令処理は、他の
処理動作と平行して実行させることが困難な独立性の高
い動作であり、又、付加的な動作であるが、このような
動作処理のためにCPU全体の動作が停止するのはシス
テム全体として不利である。しかし本実施例の10進演
算命令処理装置のように10進演算命令処理を複数分割
してCPUの1サイクルにてALUが処理可能なところ
までを1回で処理するようにすることで、CPUの動作
サイクルレートは10進演算命令処理を考慮せずに高速
化を図ることが可能であり、そのような高速化されたサ
イクルレートにおいても本実施例の10進演算命令処理
装置はCPUの動作処理を停止させることなく実行する
ことができ、又、別個に10進演算命令処理装置を付加
するタイプではないのでハードウエアを付加する必要も
ない。
As described above, 10 in this embodiment is used.
The decimal operation instruction processing device is of a type in which the result data obtained by addition or subtraction is input to the ALU again to perform the decimal operation instruction processing, and the decimal operation instruction processing can be performed in a plurality of times. Although the number of cycles required for the operation increases accordingly, the internal propagation delay time of the ALU is reduced as compared with a type in which a dedicated decimal operation instruction processing device is added to the ALU and the decimal operation instruction processing is performed in one cycle. be able to. That is, in the case where the decimal operation instruction processing is performed in one cycle of the CPU, even if the operation cycle rate of the CPU is increased, the decimal operation instruction processing is not performed due to the propagation delay of the carry signal in the decimal operation instruction processing.
It can not be completed within the cycle time, CP
The processing operation of U stops. The decimal operation command processing is a highly independent operation that is difficult to execute in parallel with other processing operations, and is an additional operation. Stopping operation is disadvantageous for the whole system. However, as in the decimal operation instruction processing device of the present embodiment, the decimal operation instruction processing is divided into a plurality of parts, and the processing to the point where the ALU can be processed in one cycle of the CPU is performed once. The operation cycle rate can be increased without considering the decimal operation instruction processing, and even at such an increased cycle rate, the decimal operation instruction processing device of the present embodiment can operate the CPU at a higher speed. It can be executed without stopping the processing, and there is no need to add hardware since it is not of the type that separately adds a decimal operation instruction processor.

【0056】次に信号発生回路43a等を設けた理由及
び設けることで得られる効果を説明する。例えばデータ
「83232325」(16進数)とデータ「8007
1234」(16進数)との加算結果データ「032A
3559」を10進演算命令処理する場合を例に採る
(以下、この例を例2と称す)。尚、2進演算における
「83232325」と「80071234」と加算演
算では加算結果データ「032A3559」(16進
数)において桁上り信号「1」が発生する。上述したよ
うな10進演算命令処理装置にて桁上り信号発生回路4
3a等が除かれた装置において、上記加算結果データの
10進演算命令処理を上記実施例のように例えば2回に
分けて実行した場合、その演算過程は以下の表3に示す
ようになる。
Next, the reason for providing the signal generation circuit 43a and the like and the effect obtained by providing the signal generation circuit 43a will be described. For example, data "83232325" (hexadecimal) and data "8007"
1234 ”(hexadecimal) and the result data“ 032A ”
3559 "is processed as a decimal operation instruction (hereinafter, this example is referred to as Example 2). In addition, a carry signal “1” is generated in addition result data “032A3559” (hexadecimal number) in the addition operation with “83232325” and “80071234” in the binary operation. The carry signal generation circuit 4 in the decimal operation instruction processing device as described above
In the apparatus excluding 3a and the like, when the decimal operation command processing of the addition result data is executed, for example, in two steps as in the above embodiment, the operation process is as shown in Table 3 below.

【0057】[0057]

【表3】 [Table 3]

【0058】上記演算過程を略説すると、まず加算結果
データ「032A3559」の下位側の「3559」に
ついて10進演算命令処理を行うが、このとき定数発生
器から送出される定数データは、上記「3559」の場
合、上述した動作説明を参照すると、「0000」(1
6進数)となる。よって1回目の10進演算命令処理で
は上記加算結果データ「032A3559」と「000
00000」との加算演算となり、その結果データは
「032A3559」となる。即ち、1回目の10進演
算命令処理において桁上り信号は発生しない。
In brief, the above-mentioned operation process is performed by first performing a decimal operation instruction process on "3559" on the lower side of the addition result data "032A3559". At this time, the constant data sent from the constant generator is "3559". "," 0000 "(1
(Hexadecimal number). Therefore, in the first decimal operation instruction processing, the above addition result data “032A3559” and “000”
00000 "and the resulting data is" 032A3559 ". That is, no carry signal is generated in the first decimal operation command processing.

【0059】次に、加算結果データ「032A355
9」の上位側の「032A」について10進演算命令処
理を行うが、このとき定数発生器から送出される定数デ
ータは、上記「032A」の場合、上述した動作説明を
参照すると、「6006」(16進数)となる。尚、上
記「032A」の最上位の「0」のデータは実際には桁
上りが生じた結果における「0」であるから、該データ
「0」に対応する定数は「6」とある。よって2回目の
10進演算命令処理では上記加算結果データ「032A
3559」と「60060000」との加算演算とな
り、その結果データは「63303559」となる。即
ち、2回目の10進演算命令処理においても桁上り信号
は発生しない。又、上述したように「0」が桁上り後の
「0」であるのか否かを判断しなければならない。この
ように、10進演算命令処理を単に複数回に分割して行
った場合には、本来発生すべき桁上り信号が発生しない
という問題点が生じ、この問題点を解消するためには発
生した桁上り信号を保持し、又、上述したように適切な
定数発生時期に適切な定数を発生させるという制御を必
要とする。
Next, the addition result data "032A355
Decimal operation instruction processing is performed for “032A” on the upper side of “9”. In this case, the constant data sent from the constant generator is “6006” in the case of the above “032A” with reference to the above operation description. (Hexadecimal). Note that the data of the highest order “0” of the above “032A” is actually “0” in the result of the carry, so the constant corresponding to the data “0” is “6”. Therefore, in the second decimal operation instruction processing, the addition result data “032A
3559 "and" 600600000 ", and the resulting data is" 63303359 ". That is, no carry signal is generated in the second decimal operation instruction processing. As described above, it is necessary to determine whether "0" is "0" after carry. As described above, when the decimal operation instruction processing is simply divided into a plurality of times, a problem arises in that a carry signal that should be originally generated does not occur. In order to solve this problem, a problem occurs. Control is required to hold the carry signal and to generate an appropriate constant at an appropriate constant generation time as described above.

【0060】又、桁上り信号がどのサイクルにて発生す
るかを認識しておく必要があるという問題点もある。例
えばデータ「23232325」(16進数)とデータ
「76767675」(16進数)との加算結果データ
「9999999A」を10進演算命令処理する場合を
例に採る(以下、この例を例3と称す)。尚、2進演算
における「23232325」と「76767675」
と加算演算では加算結果データ「9999999A」
(16進数)においては桁上り信号は発生しない。上述
したような10進演算命令処理装置にて桁上り信号発生
回路43a等が除かれた装置において、上記加算結果デ
ータの10進演算命令処理を上記実施例のように例えば
2回に分けて実行した場合、その演算過程は以下の表4
に示すようになる。
There is another problem that it is necessary to recognize in which cycle the carry signal is generated. For example, a case will be described in which an addition result data "99999999A" of data "23232325" (hexadecimal) and data "76767675" (hexadecimal) is processed by a decimal operation instruction (hereinafter, this example is referred to as Example 3). Note that "23232325" and "76767675" in the binary operation
And addition result data "9999999A" in the addition operation
In (hexadecimal), no carry signal is generated. In a device in which the carry signal generation circuit 43a and the like are removed from the decimal operation instruction processing device as described above, the decimal operation instruction processing of the addition result data is executed, for example, in two steps as in the above embodiment. , The calculation process is shown in Table 4 below.
It becomes as shown in.

【0061】[0061]

【表4】 [Table 4]

【0062】上記演算過程を略説すると、まず加算結果
データ「9999999A」の下位側の「999A」に
ついて10進演算命令処理を行うが、このとき定数発生
器から送出される定数データは、上記「999A」の場
合、上述した動作説明を参照すると、「6666」(1
6進数)となる。よって1回目の10進演算命令処理で
は上記加算結果データ「9999999A」と「000
06666」との加算演算となり、その結果データは
「999A0000」となる。即ち、1回目の10進演
算命令処理において桁上り信号は発生しない。
In brief, the above calculation process is performed by first performing a decimal calculation instruction processing on the lower-order “999A” of the addition result data “9999999A”. At this time, the constant data sent from the constant generator is “999A”. "," 6666 "(1
(Hexadecimal number). Therefore, in the first decimal operation instruction processing, the addition result data “99999999A” and “000
06666 ", and the resulting data is" 999A0000 ". That is, no carry signal is generated in the first decimal operation command processing.

【0063】次に、加算結果データ「999A000
0」の上位側の「999A」について10進演算命令処
理を行うが、このとき定数発生器から送出される定数デ
ータは、上記「999A」の場合、上述した動作説明を
参照すると、「6666」(16進数)となる。よって
2回目の10進演算命令処理では上記加算結果データ
「999A0000」と「66660000」との加算
演算となり、その結果データは「00000000」と
なり、2回目の10進演算命令処理において桁上り信号
が発生する。この場合、上記例2のように2進演算にお
ける結果にて発生する桁上り信号を保持するとすると、
この例3においては桁上り信号がないことになり、例
2、例3から分かるように、一律に所定時点のサイクル
における桁上り信号を保持するという制御では対応でき
ず、演算するデータによって桁上り信号を保持するタイ
ミングを制御しなければならないという問題がある。
Next, the addition result data "999A000
Decimal operation instruction processing is performed for “999A” on the upper side of “0”, and the constant data sent from the constant generator at this time is “6666” in the case of the above “999A” by referring to the above-described operation description. (Hexadecimal). Therefore, in the second decimal operation instruction processing, the above addition result data “999A0000” and “666660000” are added, and the result data becomes “00000000”, and a carry signal is generated in the second decimal operation instruction processing. I do. In this case, assuming that a carry signal generated as a result of the binary operation is held as in Example 2 above,
In this example 3, there is no carry signal. As can be seen from examples 2 and 3, the control of holding the carry signal in the cycle at a predetermined time cannot be dealt with uniformly. There is a problem that the timing for holding the signal must be controlled.

【0064】桁上り信号発生回路43a等は、このよう
な問題点を解決するために設けたものである。上述した
動作説明においても説明したように、桁上り信号発生回
路43a等は、第1ないし第8ブロックのそれぞれに設
けられ、かつ前回の10進演算命令処理における桁上り
信号と、今回の10進演算命令処理における下位側のブ
ロックにおける加算器2a等からの桁上り信号との論理
和演算を行なうことから、一度桁上り信号が発生する
と、上記例2のように発生すべき桁上り信号が発生しな
いという問題点は生じない。
The carry signal generation circuit 43a and the like are provided to solve such a problem. As described in the above description of the operation, the carry signal generation circuit 43a and the like are provided in each of the first to eighth blocks, and carry the carry signal in the previous decimal operation instruction process and the current decimal Since the OR operation is performed with the carry signal from the adder 2a or the like in the lower block in the operation instruction processing, once the carry signal is generated, the carry signal to be generated as in the above-described example 2 is generated. The problem of not doing so does not arise.

【0065】又、各ブロック毎に桁上り信号発生回路4
3a等を設けているので、例えば32ビットのデータに
ついて10進演算命令処理を行なう場合であっても、例
えば所要のデータが8ビット目までのデータであるよう
な場合には、ブロックを選択することで上記8ビット目
までにおける桁上り信号を得ることができる。
The carry signal generating circuit 4 is provided for each block.
Since 3a and the like are provided, a block is selected even if, for example, decimal operation instruction processing is performed on 32-bit data, for example, when required data is data up to the eighth bit. Thus, carry signals up to the 8th bit can be obtained.

【0066】又、図4に示すように、桁上り信号発生回
路43a等の出力側を所定値判断回路41a等、及び定
数基礎データ発生回路42a等に接続しているので、桁
上りが生じたときに応じて、10進演算命令処理に必要
な正しい定数を定数発生器1から発生させることができ
る。
As shown in FIG. 4, since the output side of the carry signal generation circuit 43a and the like is connected to the predetermined value judgment circuit 41a and the like and the constant basic data generation circuit 42a and the like, a carry occurs. In some cases, a correct constant required for decimal operation instruction processing can be generated from the constant generator 1.

【0067】桁上り信号発生回路43a等の具体的な動
作を上記例2の場合について説明する。2進演算におけ
る加算結果データ「032A3559」の下位側のデー
タ「3559」については桁上りは発生しないので説明
を省略し、上位側のデータ「032A」について説明す
る。データ「032A」の最下位のデータ「A」につい
ての10進演算命令処理は図1に示す第5ブロックが行
なう。データ「A」を表す2進数の4ビットの各データ
が補正決定器4cの所定値判断回路41cに供給され、
又、第4ブロックにおける加算器2bからは桁上り信号
は供給されていないことから、桁上り信号発生回路43
cのフリップフロップ430からは「0」のデータが所
定値判断回路41c及び定数基礎データ発生回路42c
へ送出される。よって定数基礎データ発生回路42cか
ら送出される3ビットのデータは「010」となり、第
5ブロックの定数発生器1からは「6」(16進数)の
データが加算器2aへ送出される。
The specific operation of the carry signal generation circuit 43a and the like will be described for the case of Example 2 above. Since the carry is not generated for the lower data “3559” of the addition result data “032A3559” in the binary operation, the description is omitted, and the upper data “032A” will be described. The decimal operation instruction processing for the lowest data "A" of the data "032A" is performed by the fifth block shown in FIG. The 4-bit binary data representing the data “A” is supplied to a predetermined value determination circuit 41c of the correction determiner 4c,
Since the carry signal is not supplied from the adder 2b in the fourth block, the carry signal generation circuit 43
The data of "0" is output from the flip-flop 430 of the predetermined value determination circuit 41c and the constant basic data generation circuit 42c.
Sent to Therefore, the 3-bit data transmitted from the constant basic data generation circuit 42c is "010", and the constant generator 1 of the fifth block transmits "6" (hexadecimal) data to the adder 2a.

【0068】よって加算器2aは、「A」と「6」のデ
ータの加算を行う。よって第5ブロックの加算器2aか
らは桁上り信号が次段の第6ブロックにおける桁上り信
号発生回路43bにおけるOR回路431に送出され
る。次に、データ「032A」の下2位のデータ「2」
についての10進演算命令処理は図1に示す第6ブロッ
クが行なう。データ「2」を表す2進数の4ビットの各
データが補正決定器4bの所定値判断回路41bに供給
され、桁上り信号発生回路43bのフリップフロップ4
30からは「1」のデータが所定値判断回路41b及び
定数基礎データ発生回路42bへ送出されるとともに、
第6ブロックにおける桁上り信号として外部へ送出され
る。よって定数基礎データ発生回路42bから送出され
る3ビットのデータは「001」となり、第6ブロック
の定数発生器1からは「0」(16進数)のデータが加
算器2aへ送出される。よって加算器2bは、「2」と
「0」と第5ブロックの加算器2aから供給される桁上
り信号とを加算し、データ「3」を送出する。
Therefore, the adder 2a adds the data "A" and "6". Therefore, the carry signal is sent from the adder 2a in the fifth block to the OR circuit 431 in the carry signal generation circuit 43b in the next sixth block. Next, the data “2” in the second place of the data “032A”
Is performed by the sixth block shown in FIG. The 4-bit binary data representing the data "2" is supplied to the predetermined value determination circuit 41b of the correction determiner 4b, and the flip-flop 4 of the carry signal generation circuit 43b.
30 outputs data of "1" to the predetermined value determination circuit 41b and the constant basic data generation circuit 42b.
The signal is sent to the outside as a carry signal in the sixth block. Therefore, the 3-bit data sent from the constant basic data generation circuit 42b is "001", and the constant generator 1 of the sixth block sends "0" (hexadecimal) data to the adder 2a. Therefore, the adder 2b adds "2", "0", and the carry signal supplied from the adder 2a of the fifth block, and sends out the data "3".

【0069】以下同様に10進演算命令処理を実行す
る。結果的に上記データ「032A」と加算される定数
は「0006」となり、2回目の10進演算命令処理さ
れた答えは「0330」となり、かつ第6ブロックから
桁上り信号が送出されているので、2回目の10進演算
命令処理にて桁上り信号が発生し、1,2回の10進演
算命令処理された答えは「03303559」となり桁
上り信号が「1」となる。
Hereinafter, the decimal operation instruction processing is executed in the same manner. As a result, the constant added to the data “032A” is “0006”, the answer after the second decimal operation command processing is “0330”, and the carry signal is transmitted from the sixth block. A carry signal is generated in the second decimal operation command processing, and the answer after the first or second decimal operation command processing is "03303559" and the carry signal is "1".

【0070】このように桁上り信号発生回路43a等を
設けることで、発生すべき桁上り信号が発生しないと
か、演算結果データを複数回に分割して10進演算命令
処理を行なう場合、演算データに応じて桁上り信号発生
時期に注意を払う必要あるという問題点を解決すること
ができる。
By providing the carry signal generation circuit 43a and the like as described above, if a carry signal to be generated is not generated, or if the operation result data is divided into a plurality of times and the decimal operation instruction processing is performed, the operation data , It is possible to solve the problem that it is necessary to pay attention to the time when the carry signal is generated.

【0071】尚、上述した実施例では、加算演算結果デ
ータについて10進演算命令処理を実行する場合につい
て説明したが、図1ないし図4に示す装置にて、減算演
算結果データについて10進演算命令処理を行なうこと
もできる。減算演算に対して10進演算命令処理を実行
する場合、図4に示すDAJ信号の信号レベルを「0」
とする。又、図1に示す補正決定器4a等は、演算結果
データが桁上り信号を発生しないときに、定数発生器1
へ定数「6」の発生を指示する。又、補正決定器4a等
に備わる桁上り信号発生回路43a等は、2進演算され
た減算結果データにおいて桁上り信号が発生した場合に
はこれを保持し、以後に行なう10進演算命令処理にお
いて発生する桁上り信号は無視する。尚、減算演算の場
合、補正決定器4a等から定数発生器1へ供給されるデ
ータは、図3に示すデータを反転したものである。これ
らの制御は、この10進演算命令処理装置を備えるCP
Uに含まれるプログラムロジックアレイ(以下、PLA
と記す)からのADD制御信号にて制御される。
In the above-described embodiment, a case has been described in which the decimal operation instruction processing is performed on the addition operation result data. However, in the apparatus shown in FIGS. Processing can also be performed. When the decimal operation command processing is executed for the subtraction operation, the signal level of the DAJ signal shown in FIG.
And The correction determiner 4a and the like shown in FIG. 1 operate when the operation result data does not generate a carry signal.
To generate a constant "6". The carry signal generating circuit 43a provided in the correction determiner 4a holds the carry signal when the carry result is generated in the binary-calculated subtraction result data. The generated carry signal is ignored. In addition, in the case of the subtraction operation, the data supplied from the correction determiner 4a and the like to the constant generator 1 is obtained by inverting the data shown in FIG. These controls are performed by the CP including the decimal operation instruction processing device.
U included in the program logic array (hereinafter, PLA)
Described below).

【0072】[0072]

【発明の効果】以上詳述したように本発明によれば、算
術論理演算手段に複数のブロックを備え、制御手段にて
所定のブロックを演算可能とすることで、10進演算命
令処理される演算結果データを複数に分割して10進演
算命令処理を行なうことができる。このように10進演
算命令処理する演算結果データを複数回に分けて10進
演算命令処理が可能となることで、中央演算処理装置の
動作サイクルレートの高速化に追従して10進演算命令
処理を実行することができる。
As described in detail above, according to the present invention, the arithmetic and logic operation means is provided with a plurality of blocks, and the control means is capable of operating a predetermined block, thereby processing a decimal operation instruction. The operation result data can be divided into a plurality of parts to perform decimal operation instruction processing. In this way, the decimal operation instruction processing can be performed by dividing the operation result data processed by the decimal operation instruction into a plurality of times, so that the operation cycle rate of the central processing unit can be increased and the decimal operation instruction processing can be performed. Can be performed.

【0073】又、各ブロック毎に桁上り信号発生手段を
備え、例えば加算にて演算結果データを得た場合では、
前回の10進演算命令処理にて発生した桁上り信号と下
位側の加算手段から供給される桁上り信号との論理和演
算を行なうようにしたので、10進演算命令処理におい
て発生すべき桁上り信号が演算途中で消失するという問
題点を解消することができ、又、各ブロックから桁上り
信号が発生するので桁上り信号が発生した時点に注意を
払う必要がなくなる。
In addition, a carry signal generating means is provided for each block. For example, when the operation result data is obtained by addition,
Since the OR operation of the carry signal generated in the previous decimal operation instruction processing and the carry signal supplied from the lower-order addition means is performed, the carry to be generated in the decimal operation instruction processing is performed. It is possible to solve the problem that the signal is lost in the middle of the calculation, and since the carry signal is generated from each block, it is not necessary to pay attention when the carry signal is generated.

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

【図1】 本発明の10進演算命令処理装置の一実施例
における構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a decimal operation instruction processing device according to an embodiment of the present invention.

【図2】 図1に示すラッチ回路の一回路構成例を示す
回路図である。
FIG. 2 is a circuit diagram illustrating a circuit configuration example of a latch circuit illustrated in FIG. 1;

【図3】 図1に示す定数発生器の一回路構成例を示す
回路図である。
FIG. 3 is a circuit diagram showing an example of a circuit configuration of a constant generator shown in FIG. 1;

【図4】 図1に示す補正決定器の一回路構成例を示す
回路図である。
FIG. 4 is a circuit diagram illustrating an example of a circuit configuration of a correction determiner illustrated in FIG. 1;

【符号の説明】[Explanation of symbols]

1…定数発生器、2a,2b…加算器、3…ラッチ回
路、 4a,4b,4c…補正決定器、 41a,41b,41c…所定値判断回路、 42a,42b,42c…定数基礎データ発生回路、 43a,43b,43c…桁上り信号発生回路。
REFERENCE SIGNS LIST 1 constant generator, 2a, 2b adder, 3 latch circuit, 4a, 4b, 4c correction determiner, 41a, 41b, 41c predetermined value determination circuit, 42a, 42b, 42c constant basic data generation circuit 43a, 43b, 43c ... carry signal generation circuit.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−175628(JP,A) 特開 平1−280828(JP,A) 特開 平1−258129(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 7/50 G06F 7/00 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-1-175628 (JP, A) JP-A-1-280828 (JP, A) JP-A-1-258129 (JP, A) (58) Field (Int.Cl. 7 , DB name) G06F 7/50 G06F 7/00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 算術論理演算手段から送出された2進数
表現の演算結果データを上記算術論理演算手段にて10
進数表現に変換する10進演算命令処理を行う場合、上
記算術論理演算手段にフィードバック供給される上記演
算結果データと、定数データとに基づき上記10進演算
命令処理を行う、10進演算命令処理装置において、 上記算術論理演算手段は10進演算命令処理される上記
演算結果データが4ビット単位にてそれぞれに供給され
る複数のブロックを備え、各ブロックは、 上記フィードバック供給される上記演算結果データにお
ける4ビット単位のデータと、4ビットからなる定数デ
ータとを加算する加算手段と、 上記加算手段から供給される4ビット単位のデータに基
づき上記4ビット単位のデータについての10進演算命
令処理の要否を判断する補正決定手段と、 上記補正決定手段から供給される10進演算命令処理の
要否に関するデータに基づき上記定数データを発生し上
記加算手段へ送出する定数発生手段と、を有し、 4ビット単位に分割された上記10進演算命令処理され
る上記演算結果データについて複数回に分割して10進
演算命令処理が可能なように、当該10進演算命令処理
装置が備わる中央演算処理装置の1動作サイクルにて演
算処理可能な範囲内にある上記ブロックを演算可能状態
とし、その他の上記ブロックを非演算処理状態とする制
御信号を上記各ブロックへ送出する制御手段を備えたこ
とを特徴とする10進演算命令処理装置。
1. The arithmetic and logic operation means transmits the arithmetic result data in binary notation sent from the arithmetic and logic operation means to the arithmetic and logic means.
When performing a decimal operation instruction process for converting to a decimal representation, a decimal operation instruction processing device for performing the decimal operation instruction process based on the operation result data fed back to the arithmetic and logic operation means and the constant data In the above, the arithmetic and logic means comprises a plurality of blocks to which the operation result data to be processed by the decimal operation instruction are respectively supplied in units of 4 bits, and each block is provided in the operation result data to be fed back and supplied. Adding means for adding 4-bit data and 4-bit constant data; and performing decimal operation instruction processing on the 4-bit data based on the 4-bit data supplied from the adding means. Correction determination means for determining whether or not the decimal operation command processing supplied from the correction determination means is necessary And a constant generating means for generating the constant data based on the data and sending the constant data to the adding means. The arithmetic result data divided into four bits and processed by the decimal operation instruction is divided into a plurality of times. In order to be able to process decimal operation instructions, the above-mentioned blocks within a range in which operation can be performed in one operation cycle of the central processing unit provided with the decimal operation instruction processing device are set to be in an operable state, and the other blocks are 10. A decimal operation command processing device, comprising: a control unit for sending a control signal for setting a non-operation processing state to each of the blocks.
【請求項2】 算術論理演算手段から送出された2進数
表現の演算結果データを上記算術論理演算手段にて10
進数表現に変換する10進演算命令処理を行う場合、上
記算術論理演算手段にフィードバック供給される上記演
算結果データと、定数データとに基づき上記10進演算
命令処理を行う、10進演算命令処理装置において、 上記算術論理演算手段は10進演算命令処理される上記
演算結果データが4ビット単位にてそれぞれに供給され
る複数のブロックを備え、各ブロックは、 上記フィードバック供給される上記演算結果データにお
ける4ビット単位のデータと、4ビットからなる定数デ
ータとを加算する加算手段と、 上記加算手段から供給される4ビット単位のデータに基
づき上記4ビット単位のデータについての10進演算命
令処理の要否を判断する補正決定手段と、 上記補正決定手段から供給される10進演算命令処理の
要否に関するデータに基づき上記定数データを発生し上
記加算手段へ送出する定数発生手段と、を有し、 4ビット単位に分割された上記10進演算命令処理され
る上記演算結果データについて複数回に分割して10進
演算命令処理が可能なように、当該10進演算命令処理
装置が備わる中央演算処理装置の1動作サイクルにて演
算処理可能な範囲内にある上記ブロックを演算可能状態
とし、その他の上記ブロックを非演算処理状態とする制
御信号を上記各ブロックへ送出する制御手段を備え、 上記補正決定手段は、加算にて上記演算結果データを得
た場合には、上記加算手段から供給される4ビット単位
のデータが、10進数で10以上のとき、又は、10進
数で9でありかつ下位側の上記加算手段から桁上り信号
が供給されるときに当該ブロックの出力データについて
10進演算命令処理要と判断し、又、減算にて上記演算
結果データを得た場合には、4ビット単位にて桁上り信
号が発生しないときに上記ブロックの出力データについ
て10進演算命令処理要と判断し、所定データを送出す
る、所定値判断及び定数基礎データ発生手段と、 加算にて上記演算結果データを得た場合には複数回に分
割して行われる10進演算命令処理における前回の10
進演算命令処理における桁上り信号と下位側の加算手段
から供給される桁上り信号との論理和演算を行い、該論
理和演算にて得られたデータを保持し、一方、減算にて
上記演算結果データを得た場合には上記2進数表現の初
回演算結果データにおいて発生した桁上り信号を保持
し、保持した桁上り信号を外部並びに上記所定値判断及
び定数基礎データ発生手段へ送出する桁上り信号発生手
段と、を備えたことを特徴とする10進演算命令処理装
置。
2. The arithmetic and logic unit according to claim 1, wherein the arithmetic result data in binary notation sent from the arithmetic and logic unit is processed by the arithmetic and logic unit.
When performing a decimal operation instruction process for converting to a decimal representation, a decimal operation instruction processing device for performing the decimal operation instruction process based on the operation result data fed back to the arithmetic and logic operation means and the constant data In the above, the arithmetic and logic means comprises a plurality of blocks to which the operation result data to be processed by the decimal operation instruction are respectively supplied in units of 4 bits, and each block is provided in the operation result data to be fed back and supplied. Adding means for adding 4-bit data and 4-bit constant data; and performing decimal operation instruction processing on the 4-bit data based on the 4-bit data supplied from the adding means. Correction determination means for determining whether or not the decimal operation command processing supplied from the correction determination means is necessary And a constant generating means for generating the constant data based on the data and sending the constant data to the adding means. The arithmetic result data divided into four bits and processed by the decimal operation instruction is divided into a plurality of times. In order to be able to process decimal operation instructions, the above-mentioned blocks within a range in which operation can be performed in one operation cycle of the central processing unit provided with the decimal operation instruction processing device are set to be in an operable state, and the other blocks are A control signal for sending a control signal to the respective blocks to make the non-calculation processing state possible. When the calculation result data is obtained by addition, the correction determination means outputs 4 bits supplied from the addition means. When the unit data is 10 or more in decimal, or when the data is 9 in decimal and a carry signal is supplied from the lower-order addition means, the output of the corresponding block is performed. If it is determined that the decimal operation command processing is necessary for the data, and if the above operation result data is obtained by subtraction, the decimal operation is performed on the output data of the block when no carry signal is generated in 4-bit units. A predetermined value determining and constant basic data generating means for determining that instruction processing is necessary and transmitting predetermined data; and a decimal arithmetic instruction processing which is performed by dividing the arithmetic result data into a plurality of times when the arithmetic result data is obtained by addition. Last 10 in
Performs a logical sum operation of the carry signal in the hexadecimal operation command processing and the carry signal supplied from the lower-order addition means, and retains the data obtained by the logical sum operation. When the result data is obtained, the carry signal generated in the first operation result data in the binary representation is held, and the held carry signal is sent to the outside and the predetermined value determination and constant basic data generating means. And a signal generating means.
【請求項3】 上記定数発生手段は、上記補正決定手段
から供給される上記所定データに基づき2進数にて0又
は6の上記定数データを発生し上記加算手段へ送出す
る、請求項1又は2のいずれかに記載の10進演算命令
処理装置。
3. The constant generating means generates the constant data of 0 or 6 in a binary number based on the predetermined data supplied from the correction determining means and sends it to the adding means. A decimal operation instruction processing device according to any one of the above.
JP32654292A 1992-12-07 1992-12-07 Decimal operation instruction processor Expired - Lifetime JP3164445B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32654292A JP3164445B2 (en) 1992-12-07 1992-12-07 Decimal operation instruction processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32654292A JP3164445B2 (en) 1992-12-07 1992-12-07 Decimal operation instruction processor

Publications (2)

Publication Number Publication Date
JPH06175822A JPH06175822A (en) 1994-06-24
JP3164445B2 true JP3164445B2 (en) 2001-05-08

Family

ID=18188997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32654292A Expired - Lifetime JP3164445B2 (en) 1992-12-07 1992-12-07 Decimal operation instruction processor

Country Status (1)

Country Link
JP (1) JP3164445B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8283060B2 (en) 2009-06-04 2012-10-09 Ohara Inc. Crystallized glass substrate for information recording medium and method of producing the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8283060B2 (en) 2009-06-04 2012-10-09 Ohara Inc. Crystallized glass substrate for information recording medium and method of producing the same

Also Published As

Publication number Publication date
JPH06175822A (en) 1994-06-24

Similar Documents

Publication Publication Date Title
JP4935619B2 (en) Digital signal processor
US4796217A (en) Rounding unit for use in arithmetic processing of floating point data
JP3164445B2 (en) Decimal operation instruction processor
US5224063A (en) Address translation in fft numerical data processor
JP4147423B2 (en) Arbitrary precision computing unit, arbitrary precision computing method, and electronic device
JPH01220528A (en) Parity generator
JP5206063B2 (en) Description processing apparatus, description processing method, and program
JP3332606B2 (en) Microprocessor
JP2538388B2 (en) Pattern conversion device
JP2575856B2 (en) Arithmetic circuit
US5673216A (en) Process and system for adding or subtracting symbols in any base without converting to a common base
JPH0619700B2 (en) Arithmetic unit
US6438571B1 (en) Adder circuit
JPH02128251A (en) Drawing address operation system
JP3110072B2 (en) Pre-normalization circuit
JP2806459B2 (en) A logic simulation device that can evaluate flip-flops
JPH10105377A (en) Floating-point data processing means
JPH04340594A (en) Meshed pattern data generating circuit
JP2000003285A (en) Method for processing interruption and circuit therefor
JPH08272591A (en) Clipping method of integer
JPH0671942A (en) Printing device
JPH0623979B2 (en) Vector processor
JP2001125769A (en) Arithmetic unit
JPH01184530A (en) Data processor
JPH1021054A (en) Arithmetic processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20090302

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100302

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110302

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120302

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130302

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130302

Year of fee payment: 12