JPS6339035A - Information processor - Google Patents

Information processor

Info

Publication number
JPS6339035A
JPS6339035A JP18241586A JP18241586A JPS6339035A JP S6339035 A JPS6339035 A JP S6339035A JP 18241586 A JP18241586 A JP 18241586A JP 18241586 A JP18241586 A JP 18241586A JP S6339035 A JPS6339035 A JP S6339035A
Authority
JP
Japan
Prior art keywords
register
flag
machine language
language instruction
processing unit
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
JP18241586A
Other languages
Japanese (ja)
Inventor
Toshikatsu Nagasawa
長澤 敏勝
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 JP18241586A priority Critical patent/JPS6339035A/en
Publication of JPS6339035A publication Critical patent/JPS6339035A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)

Abstract

PURPOSE:To improve the performance of a central processing unit CPU by disabling the reading of a register which stores the arithmetic result requested to an internal arithmetic processor and a flag which displays the state of the arithmetic result. CONSTITUTION:A CPU1 writes 1 to a general-purpose register 10 where the arithmetic result is written and a register 11 which displays a read unable state of an address line 100 when the instruction of an elementary function is executed. At the same time, 1 is set to a register 13 which displays a read unable state to a flag register 12 storing the state of the arithmetic result. An internal arithmetic processor 2 receives a control command and the operand data and starts the arithmetic processing. Then the CPU1 finishes the execution to the elementary function instruction with end of the arithmetic instruction and carries out a machine word instruction to update the register 10 and a machine word instruction to read out the register 10 as long as an exceptional interruption is inhibited. Then the arithmetic result is written to the register 10; while the state of the arithmetic result is written to the register 12 respectively.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理装置に関し、特に内部演算処理装置
を制御する中央処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and particularly to a central processing unit that controls an internal arithmetic processing unit.

〔従来の技術〕[Conventional technology]

従来、この種の中央処理装置は、内部演算処理装置の演
算終了を待って次の機械語命令の実行を行なっていた。
Conventionally, this type of central processing unit waits for the internal arithmetic processing unit to complete an operation before executing the next machine language instruction.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の中央処理装置は、内部演算処理装置に初
等関数の演算処理を指示した場合演算終了まで待ってい
るので中央処理装置の性能が低下するという欠点がある
The above-mentioned conventional central processing unit has the disadvantage that when the internal arithmetic processing unit is instructed to perform arithmetic processing on an elementary function, the performance of the central processing unit decreases because the instructing unit waits until the calculation is completed.

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

本発明の情報処理装置は、一つ以上の内部演算処理装置
に指示することが可能な中央処理装置において、第1の
機械語命令の実行を前記内部演算処理装置に指示する手
段と、前記第1の機械語命令で演算結果を格納する手段
と、該格納手段に対して読出し不可を表示する第1の表
示手段と、前記演算結果の状態を格納するフラグに対し
て読出し不可を表示する第2の表示手段と、前記第1の
#R械話語命令実行結果による更新が前記レジスタと前
記フラグに限定され、かつ演算結果に対する例外割込み
が禁止されている状態で、前記第1の機械語命令の次に
実行する予定の第2の機械語命令の実行を開始する手段
と、前記第2の機械語命令以後の実行において、前記レ
ジスタまたは前記フラグを更新する第3の機械語命令に
より前記レジスタまたは前記フラグを更新した後、それ
ぞれ第1.第2の表示手段の読出し不可表示をキャンセ
ルする手段と、前記レジスタまたは前記フラグを読出す
第4の機械語命令により該第4の機械語命令の実行を停
止する手段と、前記内部演算処理装置の演算終了によっ
て中央処理装置に割込む手段と、該割込により第1の表
示手段により表示されている場合に前記レジスタに書込
む手段と、および第2の表示手段により表示されている
場合に前記フラグレジスタに書込む手段とを有している
The information processing device of the present invention is a central processing unit capable of instructing one or more internal arithmetic processing units, and includes means for instructing the internal arithmetic processing unit to execute a first machine language instruction; means for storing an operation result using one machine language instruction; a first display means for displaying that reading is not possible for the storage means; and a first display means for displaying that reading is not possible for the flag storing the state of the operation result. 2, and in a state where updating by the execution result of the first #R machine language instruction is limited to the register and the flag, and exception interrupts for operation results are prohibited, the first machine language instruction is displayed. means for starting execution of a second machine language instruction scheduled to be executed next; and a third machine language instruction that updates the register or the flag in execution after the second machine language instruction; Or, after updating the flag, the first . means for canceling the read-unable display on the second display means; means for stopping execution of the fourth machine language instruction by a fourth machine language instruction for reading the register or the flag; and the internal arithmetic processing unit. means for interrupting the central processing unit upon completion of the computation; means for writing into the register when the first display means is displaying the display by the interrupt; and and means for writing into the flag register.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示す。第1図において、本
発明の一実施例は中央処理装置1と内部演算処理装置2
とから構成され、中央処理装置1により一つ以上の内部
演算処理装置2に指示することを可能にした情報処理装
置で、第1の機械語命令により内部演算処理装置に指示
し、その演算結果を格納する汎用レジスタ10と、この
レジスタ10に対して読出し不可を表示する第1のレジ
スタ11と、演算結果の状態を格納するフラグレジスタ
12と、このフラグ12に対して読出し不可を表示する
第2のレジスタ13と、主記憶装置(図示せず)からの
オペランドデータをセットするフェッチデータレジスタ
14と、オペランドデータを内部演算処理装置2に送り
、かつ内部演算処理装置2からの演算結果のデータをセ
ットする通信データレジスタ15と、制御コマンドを内
部演算処理装置2に送るための通信制御レジスタ16と
、演算終了をセットする演算終了割込み保留レジスタ2
0と、レジスタ11および13にそれぞれ接続される論
理積ゲート17.19と、この論理積ゲート17.19
に接続されマイクロプログラムの実行を抑止する論理和
ゲート112とを古む。
FIG. 1 shows an embodiment of the invention. In FIG. 1, one embodiment of the present invention includes a central processing unit 1 and an internal arithmetic processing unit 2.
An information processing device that enables a central processing unit 1 to instruct one or more internal arithmetic processing units 2, which instructs the internal arithmetic processing units by a first machine language instruction, and outputs the arithmetic results. a general-purpose register 10 that stores the register 10, a first register 11 that indicates that this register 10 is not readable, a flag register 12 that stores the state of the operation result, and a first register 11 that indicates that the flag 12 is not readable. 2 register 13, a fetch data register 14 that sets operand data from the main storage device (not shown), and a fetch data register 14 that sends operand data to the internal arithmetic processing device 2 and receives data of the arithmetic result from the internal arithmetic processing device 2. a communication data register 15 for setting, a communication control register 16 for sending control commands to the internal arithmetic processing unit 2, and an operation end interrupt pending register 2 for setting the end of an operation.
0, an AND gate 17.19 connected to registers 11 and 13, respectively, and this AND gate 17.19.
The OR gate 112, which is connected to the microprogram and inhibits execution of the microprogram, is used.

中央処理装置1は初等関数の命令を実行する場合、マイ
クロプログラム制御により演算結果を害込む汎用レジス
タ10と、このレジスタ10と同じアドレス線100の
読出し不可を表示するレジスタ11に°“1” (読出
し不可状態)を制御線101を介して書込む。また、演
算結果の状態(結果が零、結果が正、結果が負)を格納
するフラグレジスタ12に対して読出し不可を表示する
レジスタ13に“1” (読出し不可状態)を制御線1
02を介してセットする。その後主記憶装置(図示せず
)からデータ線103を介してオペランドデータをフェ
ッチデータレジスタ14にセットする。通信データレジ
スタ15には内部演算処理装置2にオペランドデータを
送るために、フェッチデータレジスタ14のオペランド
データをデータ線104を介してセットされる。マイク
ロプログラム制御により制御線105からの制御コマン
ド(SIN演算、COS演算等)を通信制御レジスタ1
6にセラI・する。その後、内部演算処理装置2は、通
信制御レジスタ16より制御線106を通って制御コマ
ンドと、通信データレジスタ15よりデータ線107と
バス線108を通ってオベランl−データを受は取り、
そして演算処理を開始する。
When the central processing unit 1 executes an instruction of an elementary function, it sets °“1” ( read-disabled state) is written via the control line 101. In addition, the control line 1 sets "1" (readout disabled state) to the register 13 that indicates that reading is disabled for the flag register 12 that stores the state of the operation result (result is zero, result is positive, result is negative).
Set via 02. Thereafter, operand data is set in the fetch data register 14 from the main memory (not shown) via the data line 103. The operand data of the fetch data register 14 is set in the communication data register 15 via the data line 104 in order to send the operand data to the internal arithmetic processing unit 2 . Control commands (SIN calculation, COS calculation, etc.) from the control line 105 are sent to the communication control register 1 under microprogram control.
Sera I on 6th. Thereafter, the internal arithmetic processing unit 2 receives control commands from the communication control register 16 through the control line 106, and Oberan l-data from the communication data register 15 through the data line 107 and bus line 108.
Then, arithmetic processing is started.

中央処理装置1は、内部演算処理装置2の演算指示終了
によって初等関数命令に対する実行を終了する。この中
央処理装置1は初等関数命令の演算結果に対する例外割
込みが禁止されているかどうかをマイクロプログラム制
御により判断し5例外割込みが禁止されていない場合内
部演算処理装置の演算結果を待つ。また、例外割込みが
禁止されている場合は次の機械語命令を実行するために
オペコード分岐を行ない、そして次の機械語命令を実行
する。
The central processing unit 1 terminates execution of the elementary function instruction when the internal arithmetic processing unit 2 completes the operation instruction. This central processing unit 1 determines by microprogram control whether or not exception interrupts are prohibited for the operation results of elementary function instructions, and if 5 exception interrupts are not prohibited, it waits for the operation results of the internal arithmetic processing unit. If exception interrupts are disabled, an opcode branch is performed to execute the next machine language instruction, and then the next machine language instruction is executed.

汎用レジスタ10を更新する機械語命令の場合は汎用レ
ジスタ10はデータ線109を介してオペランドデータ
をセットし、かつ制御線101を止して’Q”(読出し
可状態)をセットする。演算結果の状態を格納するフラ
グレジスタ12を更新する場合は制御線102を介して
“Qoo (読出し可状態)をセットする。
In the case of a machine language instruction that updates the general-purpose register 10, the general-purpose register 10 sets operand data via the data line 109, and also stops the control line 101 and sets 'Q' (readable state).Arithmetic result When updating the flag register 12 that stores the state of the flag, "Qoo (readable state)" is set via the control line 102.

また、汎用レジスタ10を読出す機械語命令の場合は汎
用レジスタ10と同じアドレス線100の読出し不可を
表示するレジスタ11の出力制御線109の値と汎用レ
ジスタ10を読出すことを示す制御線110の値とによ
り得られる論理積ゲ−I−17の出力制御線111の値
となる。出力制御線111の値は論理和ゲート18を通
ってマ、イクロ命令実行抑止制御線112となって、マ
イクロプログラムの実行を抑止する。同様に、分岐命令
等で演算結果の状態を格納するフラグレジスタ12を参
照する場合は、フラグレジスタ12の読出し不可を表示
するレジスタ13の出力制御縁113の値とフラグレジ
スタ12を参照する制御線114の値とにより得られる
論理積ゲート19の出力制御線115の値となる。出力
制御線115の値は論理績ゲート18を通ってマイクロ
命令実−行抑止制御線112の値となってマイクロプロ
グラムの実行を抑止する。
In the case of a machine language instruction that reads the general-purpose register 10, the value of the output control line 109 of the register 11 indicating that reading is not possible is the same as the address line 100 of the general-purpose register 10, and the control line 110 indicates that the general-purpose register 10 is to be read. The value of the output control line 111 of the AND game I-17 is obtained by the value of . The value of the output control line 111 passes through the OR gate 18 and becomes the microinstruction execution inhibition control line 112, thereby inhibiting the execution of the microprogram. Similarly, when referencing the flag register 12 that stores the state of the operation result with a branch instruction, etc., the value of the output control edge 113 of the register 13 indicating that reading of the flag register 12 is disabled and the control line that refers to the flag register 12 This is the value of the output control line 115 of the AND gate 19 obtained by the value of 114. The value of the output control line 115 passes through the logic gate 18 and becomes the value of the microinstruction execution inhibit control line 112, thereby inhibiting the execution of the microprogram.

内部演算処理装置2は、指示された演算終了によって演
算終了制御線116を通って演算終了割込み保留レジス
タ20にセラ1〜する。同時に演算結果はバス線108
とデータ線117を通って通信データレジスタ15にセ
ットされる。
When the internal arithmetic processing unit 2 completes the instructed computation, the internal arithmetic processing unit 2 sends the data to the computation end interrupt pending register 20 through the computation end control line 116. At the same time, the calculation result is bus line 108
and is set in the communication data register 15 through the data line 117.

マイクロプログラムは演算終了割込み保留レジスタ20
に発生した割込みを刈取って汎用レジスタ10の読出し
不可を表示するレジスタ11の値が°゛1″のときデー
タ線107を通して汎用レジスタ10に演算結果を書込
む。同様に、フラグレジスタ12の読出し不可を表示す
るレジスタ13の値が“1′のとき演算結果の状態を書
込む。
The microprogram is the operation end interrupt pending register 20.
When the value of the register 11 that indicates that the general-purpose register 10 cannot be read by reaping the interrupt that occurred in When the value of the register 13 indicating impossibility is "1", the state of the operation result is written.

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

以上説明したように本発明は、内部演算処理装置に依頼
した演算結果を格納するレジスタと演算結果の状態を表
示するフラグを読出し不可にすることにより、次に実行
する予定の機械語命令が内部演算処理装置の演算結果を
使わない場合において実行ができ、中央処理装置の性能
が向上できる効果がある。
As explained above, the present invention makes it impossible to read the registers that store the results of operations requested to the internal arithmetic processing unit and the flags that display the status of the results of operations, so that machine language instructions to be executed next can be read internally. It can be executed without using the calculation results of the processing unit, and has the effect of improving the performance of the central processing unit.

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

第1図は本発明の一実施例を示す図である。 1・・・中央処理装置、2・・・内部演算処理装置、1
0・・・汎用レジスタ、11・・・汎用レジスタの読出
し不可表示レジスタ、12・・・演算結果を格納するフ
ラグレジスタ、13・・・フラグの読出し不可表示レジ
スタ、14・・・フェッチデータレジスタ、15・・・
通信データレジスタ、16・・・通信制御レジスタ、1
7.19・・・論理積ゲート、18・・・論理和ゲート
。 ゝ(−/
FIG. 1 is a diagram showing an embodiment of the present invention. 1...Central processing unit, 2...Internal arithmetic processing unit, 1
0... General-purpose register, 11... General-purpose register read-disabled display register, 12... Flag register for storing calculation results, 13... Flag read-disabled display register, 14... Fetch data register, 15...
Communication data register, 16...Communication control register, 1
7.19...AND gate, 18...OR gate.ゝ(-/

Claims (1)

【特許請求の範囲】[Claims] 一つ以上の内部演算処理装置に指示することが可能な中
央処理装置において、第1の機械語命令の実行を前記内
部演算処理装置に指示する手段と、前記第1の機械語命
令で演算結果を格納する手段と、該格納手段に対して読
出し不可を表示する第1の表示手段と、前記演算結果の
状態を格納するフラグに対して読出し不可を表示する第
2の表示手段と、前記第1の機械語命令の実行結果によ
る更新が前記レジスタと前記フラグに限定され、かつ演
算結果に対する例外割込みが禁止されている状態で、前
記第1の機械語命令の次に実行する予定の第2の機械語
命令の実行を開始する手段と、前記第2の機械語命令以
後の実行において、前記レジスタまたは前記フラグを更
新する第3の機械語命令により前記レジスタまたは前記
フラグを更新した後、それぞれ第1、第2の表示手段の
読出し不可表示をキャンセルする手段と、前記レジスタ
または前記フラグを読出す第4の機械語命令により該第
4の機械語命令の実行を停止する手段と、前記内部演算
処理装置の演算終了によって中央処理装置に割込む手段
と、該割込により第1の表示手段により表示されている
場合に前記レジスタに書込む手段と、および第2の表示
手段により表示されている場合に前記フラグレジスタに
書込む手段とを含むことを特徴とする情報処理装置。
In a central processing unit capable of instructing one or more internal arithmetic processing units, means for instructing the internal arithmetic processing units to execute a first machine language instruction; a first display means for displaying that reading is not possible for the storage means; a second display means for displaying that reading is not allowed for the flag storing the state of the operation result; A second machine language instruction scheduled to be executed next to the first machine language instruction is updated with the execution result of the first machine language instruction being limited to the register and the flag, and exception interrupts for operation results are prohibited. means for starting execution of the machine language instruction; and after updating the register or the flag by a third machine language instruction that updates the register or the flag in execution after the second machine language instruction, respectively. means for canceling the read-unable display on the first and second display means; means for stopping execution of the fourth machine language instruction by a fourth machine language instruction for reading the register or the flag; means for interrupting the central processing unit upon completion of an operation by the arithmetic processing unit; means for writing in the register when the first display means is displaying the information due to the interrupt; and means for writing into the flag register when the flag register is present.
JP18241586A 1986-08-01 1986-08-01 Information processor Pending JPS6339035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18241586A JPS6339035A (en) 1986-08-01 1986-08-01 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18241586A JPS6339035A (en) 1986-08-01 1986-08-01 Information processor

Publications (1)

Publication Number Publication Date
JPS6339035A true JPS6339035A (en) 1988-02-19

Family

ID=16117888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18241586A Pending JPS6339035A (en) 1986-08-01 1986-08-01 Information processor

Country Status (1)

Country Link
JP (1) JPS6339035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5293586A (en) * 1988-09-30 1994-03-08 Hitachi, Ltd. Data processing system for development of outline fonts

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5293586A (en) * 1988-09-30 1994-03-08 Hitachi, Ltd. Data processing system for development of outline fonts

Similar Documents

Publication Publication Date Title
US4970641A (en) Exception handling in a pipelined microprocessor
JPH04306735A (en) Asynchronous interruption inhiobition mechanism
JPH0760388B2 (en) Pipeline control circuit
JPS63279328A (en) Control system for guest execution of virtual computer system
JPS6339035A (en) Information processor
JPS6290728A (en) Interruption processing method
JP2552738B2 (en) Data processing device
JP2000029690A (en) Method and device for data processing
JP7137058B2 (en) Arithmetic processing device, information processing device, and control method for information processing device
JP2674873B2 (en) Step execution operation method of program development support device
JPS58182766A (en) Program tracing device
JPH02135545A (en) Execution control processing system for debugger
JPS60193046A (en) Detecting system for instruction exception
JPH0259933A (en) Microprocessor
JPS59173876A (en) Vector data processor
JPS59189452A (en) Queue structure for data processor
JPH01175052A (en) Microaddress register mechanism
JPS61123937A (en) Data drive type control system
JPS59165143A (en) Data processor
JPH05241828A (en) Command processor
JPH0481939A (en) Control system for microcomputer
JPS6349941A (en) Arithmetic processing unit
JPS61112240A (en) Data processor
JPH01201730A (en) Information processor
JPS62256136A (en) Microprocessor control type information processor