JPS6244831A - Arithmetic processing unit - Google Patents

Arithmetic processing unit

Info

Publication number
JPS6244831A
JPS6244831A JP60185478A JP18547885A JPS6244831A JP S6244831 A JPS6244831 A JP S6244831A JP 60185478 A JP60185478 A JP 60185478A JP 18547885 A JP18547885 A JP 18547885A JP S6244831 A JPS6244831 A JP S6244831A
Authority
JP
Japan
Prior art keywords
address
output
circuit
arithmetic
operands
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60185478A
Other languages
Japanese (ja)
Inventor
Ritsuo Sugaya
菅谷 律雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP60185478A priority Critical patent/JPS6244831A/en
Publication of JPS6244831A publication Critical patent/JPS6244831A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To speed up processing by stopping the reading and operation of two operands when decimal subtraction is applied and the two operands are superposed. CONSTITUTION:The output of a decimal subtraction instruction detecting part 1 connected to an instruction decode is applied to an OR circuit 4, an address register 2 and an address comparator 3 are connected to an address forming part and the output of the register 2 is applied to the circuit 4 through the comparator 3. The output of the circuit 4 is applied to an FF5 and an OR circuit 6, the output of the FF5 is applied to the circuit 6, the output of the circuit 6 is an operation control part 7 connected to an instruction decode and an address formation control part, and the output of the control part 7 to an operation executing part 8. When the starting address of the 1st operand stored in the register 2 coincides with the starting address of the 2nd operand and a decimal subtraction instruction is applied, address formation and the execution of the operation are stopped by the output from the circuit 4.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理装置における演算処理装置に関する
。特に、10進減算を高速に実行する演算処理装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an arithmetic processing device in an information processing device. In particular, the present invention relates to an arithmetic processing device that performs decimal subtraction at high speed.

〔概要〕〔overview〕

本発明は、二つのオペランドを順次読み出して演算を行
う演算処理装置において、 完全に重複する二つのオペランドの間で10進減算を行
う場合には、演算を行うことなしにメモリに「0」を出
力することにより、 高速で減算を実行するものである。
The present invention provides an arithmetic processing device that sequentially reads two operands and performs an operation, and when performing decimal subtraction between two completely overlapping operands, a ``0'' is stored in the memory without performing the operation. It performs subtraction at high speed by outputting.

〔従来の技術〕[Conventional technology]

パイプライン方式の演算処理装置で10進減算を行う場
合には、従来は、二つのオペランドを順次メモリから読
み出して演算を実行し、その結果をメモリに書き込んで
いた。
Conventionally, when performing decimal subtraction in a pipelined arithmetic processing device, two operands are sequentially read out from memory, the operation is executed, and the result is written into memory.

(発明が解決しようとする問題点〕 上述した従来の命令実行方法は、演算すべき2つのオペ
ランドが同一(完全重複)で結果が実行せずとも既知の
場合も演算を実行し、さらにこの結果をメモリに格納す
るため、命令実行時間が長くなるという欠点があった。
(Problems to be Solved by the Invention) The conventional instruction execution method described above executes an operation even when the two operands to be operated on are the same (complete overlap) and the result is known even if it is not executed. Since the information is stored in memory, the instruction execution time becomes long.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の演算処理装置は、メモリからオペランドを読み
出す手段と、読み出した二つのオペランドの間で演算を
行う演算手段と、この演算手段の演算結果をメモリに出
力する出力手段とを備えた演算処理装置において、上記
演算手段の実行する演算が減算であることを検出する手
段と、演算が10進減算のときに二つのオペランドが完
全に重複していることを検出する手段と、二つのオペラ
ンドが完全に重複しているときには上記読み出す手段と
演算手段と出力手段との動作を禁止し、「0」をメモリ
に出力する手段とを備えたことを特徴とする。
The arithmetic processing device of the present invention includes a means for reading an operand from a memory, an arithmetic means for performing an arithmetic operation between the two read operands, and an output means for outputting the arithmetic result of the arithmetic means to the memory. The apparatus includes means for detecting that the operation executed by the arithmetic means is a subtraction, means for detecting that two operands completely overlap when the operation is a decimal subtraction, and means for detecting that two operands completely overlap when the operation is a decimal subtraction. The present invention is characterized by comprising means for inhibiting the operations of the reading means, arithmetic means, and output means and outputting "0" to the memory when there is a complete overlap.

〔作用〕[Effect]

本発明の演算処理装置は、減算しようとする二つのオペ
ランドが完全に一致するときには、そのオペランドの読
み出しおよび演算を停止する。したがって、この間の処
理時間を短縮できる。
When the two operands to be subtracted completely match, the arithmetic processing device of the present invention stops reading and calculating the operands. Therefore, the processing time during this period can be shortened.

〔実施例〕〔Example〕

次に、本発明の実施例を図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

図は本発明一実施例演算処理装置の要部ブロック構成図
である。
The figure is a block diagram of main parts of an arithmetic processing device according to an embodiment of the present invention.

10進減算命令検出部1は、入力が命令デコーダに接続
され、出力が論理和回路4の第一の入力に接続される。
The input of the decimal subtraction instruction detection unit 1 is connected to the instruction decoder, and the output is connected to the first input of the OR circuit 4.

アドレスレジスタ2の入力とアドレス比較器3の第一の
入力とは、信号線101を介してアドレス生成部に接続
される。アドレスレジスタ2の出力はアドレス比較器3
の第二の入力に接続される。アドレス比較器3の出力は
論理和回路4の第二の入力に接続される。論理和回路4
の出力は、フリップフロップ5と論理和回路6の第一の
入力とに接続される。フリップフロップ5の出力は論理
和回路6の第二の入力に接続される。論理和回路6の出
力は、アドレス生成制御部と演算制御部7とに接続され
る。演算制御部7は、命令デコーダ、アドレス生成制御
部、演算実行部8の制御入力および選択回路9を介して
メモリに接続される。演算実行部8は、入力は直接、出
力は選択回路9を介して、メモリに接続される。
The input of the address register 2 and the first input of the address comparator 3 are connected to the address generator via a signal line 101. The output of address register 2 is address comparator 3
is connected to the second input of The output of the address comparator 3 is connected to the second input of the OR circuit 4. OR circuit 4
The output of is connected to the flip-flop 5 and the first input of the OR circuit 6. The output of the flip-flop 5 is connected to the second input of the OR circuit 6. The output of the OR circuit 6 is connected to an address generation control section and an arithmetic control section 7. The arithmetic control section 7 is connected to the memory via an instruction decoder, an address generation control section, a control input of the arithmetic execution section 8 , and a selection circuit 9 . The arithmetic execution unit 8 has an input directly connected to the memory and an output connected to the memory via the selection circuit 9.

第一サイクルでは、アドレス生成部において生成された
第1オペランドの開始アドレスは、信号線101を介し
てアドレスレジスタ2に保持される。
In the first cycle, the start address of the first operand generated by the address generation section is held in the address register 2 via the signal line 101.

第二サイクルでは、アドレス生成部で生成された  ゛
第2オペランドの開始アドレスは、信号線101を介し
アドレス比較器3に入力し、第一サイクルでアドレスレ
ジスタ2に保持された第1オペランド開始アドレス3が
アドレス比較器3に同じく入力する。このとき、アドレ
ス比較器3で一致を検出するとその出力はオンとなり、
一致を検出しなければオフとなる。ここで、この比較動
作は10進減算命令時のみ有効であり、このため、10
進減算命令検出部1の出力とアドレス比較器3の出力と
を論理和回路4に入力する。論理和回路4の出力は制御
フリップフロップ5に保持される。
In the second cycle, the start address of the second operand generated by the address generation unit is input to the address comparator 3 via the signal line 101, and the start address of the first operand held in the address register 2 in the first cycle is input to the address comparator 3 via the signal line 101. 3 is similarly input to the address comparator 3. At this time, when address comparator 3 detects a match, its output turns on,
It turns off if no match is detected. Here, this comparison operation is valid only for decimal subtraction instructions, and therefore 10
The output of the base/subtraction instruction detection section 1 and the output of the address comparator 3 are input to the OR circuit 4. The output of the OR circuit 4 is held in a control flip-flop 5.

第三サイクルでは、アドレス生成部で生成された第1オ
ペランドの終端アドレスは、第一サイクル同様、アドレ
スレジスタ2に保持される。第四サイクルでは、アドレ
ス生成部で生成された第2オペランドの終端アドレスが
、第二サイクル同様にアドレス比較器3に入力し、第三
サイクルでアドレスレジスタ2に保持された第一オペラ
ンド終端アドレスもまたアドレス比較器3に入力する。
In the third cycle, the end address of the first operand generated by the address generation section is held in the address register 2 as in the first cycle. In the fourth cycle, the end address of the second operand generated by the address generator is input to the address comparator 3 in the same way as in the second cycle, and in the third cycle, the end address of the first operand held in the address register 2 is also input. It is also input to the address comparator 3.

アドレス比較器3の一致検出結果は、論理和回路6によ
り制御フリップフロップ5の出力との論理和がとられ、
10進減算命令におけるオペランド一致の有無が判定さ
れる。この判定結果は演算制御部7およびアドレス生成
制御部に報告される。
The match detection result of the address comparator 3 is ORed with the output of the control flip-flop 5 by the OR circuit 6.
It is determined whether or not the operands match in the decimal subtraction instruction. This determination result is reported to the arithmetic control section 7 and the address generation control section.

この判定結果がOFFのときには、アドレス生成制御部
はアドレス生成部に対して格納オペランドにアクセスす
るためにメモリアドレスの計算を指示し、連続的メモリ
アクセスを実施する。一方、判定結果が0N(10進減
算命令でかつオペランド一致)のとき、演算制御部7は
、演算実行部8にデータを取り込む必要も演算を行う必
要もないことを通知する。このため演算実行部8の出力
は無効になる。これと同時に、演算結果である「0」デ
ータをメモリに格納するため、演算制御部10は選択回
路9を制御し、アドレス生成部が指定した格納アドレス
に「0」データを送出する。
When this determination result is OFF, the address generation control section instructs the address generation section to calculate a memory address in order to access the storage operand, and performs continuous memory access. On the other hand, when the determination result is 0N (a decimal subtraction instruction and an operand match), the arithmetic control unit 7 notifies the arithmetic execution unit 8 that there is no need to import data or perform an arithmetic operation. Therefore, the output of the calculation execution unit 8 becomes invalid. At the same time, in order to store "0" data, which is the result of the calculation, in the memory, the calculation control section 10 controls the selection circuit 9, and sends the "0" data to the storage address specified by the address generation section.

なお、命令デコーダから演算制御部7に対して10進減
算命令以外の命令であると報告されたときは、演算制御
部7は、論理和回路6の出力を無視して演算制御を実施
し、10進減算命令と報告されたときは、論理和回路6
の出力を参照することが望ましい。
Note that when the instruction decoder reports to the arithmetic control unit 7 that the instruction is other than a decimal subtraction instruction, the arithmetic control unit 7 ignores the output of the OR circuit 6 and performs arithmetic control. When a decimal subtraction instruction is reported, OR circuit 6
It is recommended to refer to the output of

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、10進減算命令において
、演算対象になる二つのオペランドが一致している場合
、実際にオペランドを読み出すことなく既知である結果
の「0」データのみを格納し、本命令を終了する。これ
により、メモリの読み出しが少なく、命令実行時間を短
縮し、性能向上ができる効果がある。
As explained above, the present invention stores only the known result "0" data without actually reading the operands when the two operands to be operated on match in the decimal subtraction instruction. Finish this command. This has the effect of reducing memory reading, shortening instruction execution time, and improving performance.

本発明は、特にパイプライン方式の演算処理装置に用い
て効果がある。
The present invention is particularly effective when used in a pipeline type arithmetic processing device.

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

図は本発明−実施例演算処理装置の要部ブロック構成図
。 1・・・10進減算命令検出部、2・・・アドレスレジ
スタ、3・・・アドレス比較器、4・・・論理和回路、
5・・・制御フリップフロップ、6・・・論理和回路、
7・・・演算制御部、8・・・演算実行部、9・・・選
択回路。
The figure is a block diagram of main parts of an arithmetic processing device according to an embodiment of the present invention. 1... Decimal subtraction instruction detection unit, 2... Address register, 3... Address comparator, 4... OR circuit,
5... Control flip-flop, 6... OR circuit,
7... Arithmetic control section, 8... Arithmetic execution section, 9... Selection circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)メモリからオペランドを読み出す手段と、読み出
した二つのオペランドの間で演算を行う演算手段と、 この演算手段の演算結果をメモリに出力する出力手段と を備えた演算処理装置において、 上記演算手段の実行する演算が減算であることを検出す
る手段と、 演算が10進減算のときに二つのオペランドが完全に重
複していることを検出する手段と、 二つのオペランドが完全に重複しているときには上記読
み出す手段と演算手段と出力手段との動作を禁止し、「
0」をメモリに出力する手段とを備えたことを特徴とす
る演算処理装置。
(1) In an arithmetic processing device comprising means for reading an operand from memory, arithmetic means for performing an arithmetic operation between the two read operands, and an output means for outputting the arithmetic result of the arithmetic means to the memory, the above-mentioned operation is performed. means for detecting that the operation performed by the means is subtraction; means for detecting that two operands completely overlap when the operation is decimal subtraction; When the above-mentioned reading means, calculation means and output means are prohibited from operating,
1. An arithmetic processing device comprising: means for outputting "0" to a memory.
JP60185478A 1985-08-22 1985-08-22 Arithmetic processing unit Pending JPS6244831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60185478A JPS6244831A (en) 1985-08-22 1985-08-22 Arithmetic processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60185478A JPS6244831A (en) 1985-08-22 1985-08-22 Arithmetic processing unit

Publications (1)

Publication Number Publication Date
JPS6244831A true JPS6244831A (en) 1987-02-26

Family

ID=16171465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60185478A Pending JPS6244831A (en) 1985-08-22 1985-08-22 Arithmetic processing unit

Country Status (1)

Country Link
JP (1) JPS6244831A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04151880A (en) * 1990-02-23 1992-05-25 Toshiba Corp Manufacture of optical module
US7455252B2 (en) 2003-03-26 2008-11-25 Nara Machinery Co., Ltd. Powder particle disintegrating and sizing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04151880A (en) * 1990-02-23 1992-05-25 Toshiba Corp Manufacture of optical module
US7455252B2 (en) 2003-03-26 2008-11-25 Nara Machinery Co., Ltd. Powder particle disintegrating and sizing apparatus

Similar Documents

Publication Publication Date Title
JPS6028015B2 (en) information processing equipment
EP0240606B1 (en) Pipe-line processing system and microprocessor using the system
JPH02195429A (en) Information processor
JPS6244831A (en) Arithmetic processing unit
JP3490191B2 (en) calculator
JPH01134627A (en) Instruction extending system for microprocessor
JPH03161834A (en) Information processor
JP2819733B2 (en) Information processing device
JPS58142447A (en) Data processor
JP2761324B2 (en) High-speed processing method
JP3414579B2 (en) Programmable controller
JPS63197233A (en) Information processor
JPH0238966B2 (en)
JPS5971542A (en) Arithmetic processor
JPH0424731B2 (en)
JPS59178547A (en) Instruction retry system
JPS63221428A (en) Data processor
JPS63206834A (en) System for detecting and processing error in instruction control
JPS6255738A (en) Data processor having program counter tracing mechanism
JPS61267135A (en) Data processor
JPS61100836A (en) System for processing comparison and instruction of moving instruction logic
JPH048825B2 (en)
JPH03156605A (en) Programmable controller
JPH10289125A (en) Program debugging device for microprocessor
JPS63301331A (en) Processing system for program interruption