JPH0383136A - Electronic computer - Google Patents
Electronic computerInfo
- Publication number
- JPH0383136A JPH0383136A JP21979689A JP21979689A JPH0383136A JP H0383136 A JPH0383136 A JP H0383136A JP 21979689 A JP21979689 A JP 21979689A JP 21979689 A JP21979689 A JP 21979689A JP H0383136 A JPH0383136 A JP H0383136A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- numerical
- numerical operation
- arithmetic
- numerical calculation
- 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
Links
- 238000000034 method Methods 0.000 description 32
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 238000009125 cardiac resynchronization therapy Methods 0.000 description 1
Landscapes
- Advance Control (AREA)
- Multi Processors (AREA)
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野コ
本発明は、数値演算プロセッサを使用する電子計算機に
関し、特に、数値演算プロセッサの塔載がオブシ璽ンと
なっている電子計算機に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to an electronic computer using a numerical processor, and more particularly to an electronic computer in which the numerical processor is mounted on an obscene computer.
[従来の技術]
従来、数値演算プロセッサを使用するか否かを判断する
ために、2M類の方式が使われてきた。[Prior Art] Conventionally, a 2M type method has been used to determine whether or not to use a numerical processor.
第1の方式は、数値演算プロセッサ自身の機能を利用す
る方式であり、数値演算実行時に数値演算プロセッサが
接続されているか否かの判断を行い、数値演算プロセッ
サを使用して演算するか、数値演算プロセッサを使用せ
ずに演算するかを判断する方式であった。The first method is a method that uses the functions of the numeric processor itself. When executing numeric calculations, it is determined whether or not the numeric processor is connected, and whether or not the numeric processor is used to perform the calculation is determined. This method determined whether to perform calculations without using an arithmetic processor.
第2の方式は、ユーザーが予め設定することができるフ
ラグあるいはスイッチを用意し、数値演算プロセッサを
使用するか否かを予め設定しておき、数値演算実行時に
、そのフラグある〜1はスイッチの状態により、数値演
算プロセッサを使用するか否かを判断する方式であった
。The second method is to prepare a flag or switch that can be set in advance by the user, and to set whether or not to use the numerical calculation processor in advance. This method determined whether or not to use a numerical processor depending on the state.
[発明が解決しようとする課111
しかし、かかる従来の方式のうち、第1の方式は、数値
演算プロセッサが接続されていれば必ず数値演算プロセ
ッサを使用するため、数値演算プロセッサを使用せずに
実行した結果が得られないという欠点があった。また、
第2の方式では、数値演算プロセッサが接続されていな
いときに、ユーザーが数値演算プロセッサを使用するよ
うにフラグをセットした場合、数値演算を行ったときの
動作に関して保証されないという致命的な欠陥をもって
いた。[Issue to be Solved by the Invention 111 However, among these conventional methods, the first method always uses a numerical arithmetic processor if it is connected; The drawback was that the results could not be obtained. Also,
The second method has a fatal flaw in that if the user sets a flag to use the numeric processor when the numeric processor is not connected, there is no guarantee regarding the operation when performing numeric operations. there was.
本発明の目的は、これらの2つの方式を組み合わせて用
いることにより、数値演算プロセッサを使用するか否か
をより柔軟に指定できる方式を備えた電子計算機を提供
することにある。An object of the present invention is to provide an electronic computer that uses a combination of these two methods to more flexibly specify whether or not to use a numerical processor.
[課題を解決するための手段]
本発明の電子計算機は、少なくとも1個の中央制御処理
装置! (CPU)と、数値演算プロセッサ用のソケッ
トと、前記数値演算プロセッサ用のソケットに数値演算
プロセッサが接続されているか盃かを調べる手段と、数
値演算プロセッサを使用するか否かを指定する手段と、
数値演算プロセッサを使用して実行するか否かを振り分
ける手段とを有する装置であって、前記数値演算プロセ
ッサ用のソケットに接続された数値演算プロセッサを使
用して数値演算を実行する手段と、数値演算プロセッサ
を使用せずに数値演算を実行する手段と、これら2種類
の数値演算のいずれか一方を選択し実行する手段とを有
することを特徴とする。[Means for Solving the Problems] The electronic computer of the present invention includes at least one central control processing unit! (CPU), a socket for a numerical arithmetic processor, means for checking whether a numerical arithmetic processor is connected to the socket for the numerical arithmetic processor, and means for specifying whether or not to use the numerical arithmetic processor. ,
means for discriminating whether or not to perform numerical calculation using a numerical calculation processor; means for performing numerical calculation using the numerical calculation processor connected to the socket for the numerical calculation processor; The present invention is characterized by having means for performing numerical operations without using an arithmetic processor, and means for selecting and executing one of these two types of numerical operations.
[作用]
本発明の上記の構成によれば、数値演算プロセッサを使
用するか否かの指定を、数値演算プロセッサが接続され
ているか否かを事前に確定することなくできるようにな
った。[Operation] According to the above configuration of the present invention, it is now possible to specify whether or not to use a numerical arithmetic processor without determining in advance whether or not a numerical arithmetic processor is connected.
[実施例コ 以下に本発明の実施例を図面に基づいて説明する。[Example code] Embodiments of the present invention will be described below based on the drawings.
第1図は、本発明による電子計算機の概略を示すブロッ
ク図である。 工IはキーボードやCRT。FIG. 1 is a block diagram schematically showing an electronic computer according to the present invention. Engineering I uses keyboards and CRTs.
プリンタなどの入出力装置である。12は中央制御処理
袋!t (CPU)である。13は数値演算プロセッサ
用のソケットであり、このソケットに数値演算プロセッ
サが接続されている時にCPUI2と連動して動作する
ことにより、高速な数値演算を行うことができる。工4
は主記憶装置であり、以下の手段を保持している。15
は数値演算プロセッサ使用フラグであり、数値演算プロ
セッサを使用するか否かを設定するために用いる。16
は数値演算プロセッサの接続の有無を調べる手段である
。17は数値演算プロセッサを使用するか否かを指定す
る手段である。18は数値演算プロセッサ用のソケット
エ3に接続されている数値演算プロセッサを使用して実
行するか否かを振り分ける手段である。手段169手段
171手段18の3つの手段は、いずれも主記憶装置の
一部にプログラムとして記憶され、CPU12により実
行される。電子計算機システムが、数値演算プロセッサ
用のソケット13に数値演算プロセッサを接続しである
場合、数値演算プロセッサを使用するか否かを判定する
ことは、システムの動作速度を高めるために重要なこと
であり、数値演算プロセッサ用のソケット13に数値演
算プロセッサが接続されている場合には、数値演算プロ
セッサを使用した方が、より高速な数値演算、例えば、
浮動小数点演算を行うことができる。逆に、数値演算プ
ロセッサ用のソケット13に数値演算プロセッサが接続
されていない場合に、数値演算プロセッサを使用したプ
ログラムを実行したならば、その結果は保証外のものと
なってしまうので、CPUI2により演算機能、例えば
、前記浮動小数点演算をエミュレートする必要がある。It is an input/output device such as a printer. 12 is the central control processing bag! t (CPU). Reference numeral 13 denotes a socket for a numerical arithmetic processor, and when the numerical arithmetic processor is connected to this socket, it can perform high-speed numerical arithmetic by operating in conjunction with the CPUI 2. Engineering 4
is the main memory and holds the following means. 15
is a numerical calculation processor use flag, which is used to set whether or not to use the numerical calculation processor. 16
is a means of checking whether a numerical calculation processor is connected or not. 17 is means for specifying whether or not to use a numerical calculation processor. Reference numeral 18 denotes means for discriminating whether or not to execute using the numerical arithmetic processor connected to the socket 3 for the numerical arithmetic processor. The three means 169, 171, and 18 are all stored as programs in a part of the main storage device and executed by the CPU 12. When an electronic computer system has a numerical processor connected to the socket 13 for the numerical processor, it is important to determine whether or not to use the numerical processor to increase the operating speed of the system. If there is a numerical calculation processor connected to the socket 13 for the numerical calculation processor, it is better to use the numerical calculation processor for faster numerical calculations, for example.
Can perform floating point operations. On the other hand, if a numerical processor is not connected to the socket 13 for the numerical processor and a program using the numerical processor is executed, the result will not be guaranteed. There is a need to emulate arithmetic functions, for example the floating point operations mentioned above.
第2図は、CPUとしてインテル社の80286、数値
演算プロセッサにインテル社の80287NPXを使用
した例を説明した図であり、本発明による数値演算実行
時において、数値演算プロセッサを使用して演算するか
否かを振り分ける方式をフローチャートで示した図であ
る。21は第1図の数値演算プロセッサを使用するか否
かを指定する手段17に対応し、22,23.24は第
1図の数値演算プロセッサの接続の有無を調べる手段1
6に対応し、21.24は第1図の数値演算プロセッサ
用のソケットエ3に接続されている数値演算プロセッサ
を使用して実行するか否かを振り分ける手段18に対応
する。21は数値演算プロセッサを使用するか否かの判
定である。本実施例では、数値演算プロセッサ使用フラ
グを主記憶装置14上に設け、その値により数値演算プ
ロセッサを使用するか否かを判定している。数値演算プ
ロセッサ使用フラグには、数値演算プロセッサを使用す
るか否かを、予めプログラムなりフラグなりで設定して
おく。もちろん他の方式で設定してもかまわない。22
は80287NPXでの数値演算プロセッサの初期化命
令(FNINIT)であり、数値演算プロセッサが接続
されていないと無視される。23はFNINIT22の
状態を示すステータスを調べるための命令(F S T
S W)である。24はステータスの下位バイトの状
態の判定であり、結果として数値演算プロセッサの接続
の有無を判定することができる。25は数値演算プロセ
ッサを使用して演算する処理である。26は数値演算プ
ロセッサを使用しないで演算する処理である。FIG. 2 is a diagram illustrating an example in which Intel's 80286 is used as the CPU and Intel's 80287NPX is used as the numerical calculation processor. FIG. 3 is a diagram showing a flowchart of a method for distributing whether or not the data is rejected. Reference numeral 21 corresponds to the means 17 for specifying whether or not to use the numerical arithmetic processor shown in FIG.
6, and 21.24 corresponds to the means 18 for discriminating whether or not to execute using the numerical arithmetic processor connected to the numerical arithmetic processor socket 3 in FIG. 21 is a determination as to whether or not to use a numerical calculation processor. In this embodiment, a numerical calculation processor use flag is provided on the main storage device 14, and it is determined whether or not to use the numerical calculation processor based on the value. In the numerical calculation processor usage flag, whether or not to use the numerical calculation processor is set in advance by a program or a flag. Of course, the settings may be made using other methods. 22
is an initialization instruction (FNINIT) for the numerical arithmetic processor in the 80287NPX, and is ignored if no numerical arithmetic processor is connected. 23 is an instruction (FST
SW). 24 is a determination of the state of the lower byte of the status, and as a result, it is possible to determine whether or not a numerical arithmetic processor is connected. 25 is a calculation process using a numerical calculation processor. 26 is a process of calculating without using a numerical calculation processor.
数値演算プロセッサ使用フラグの状態の判定21により
、数値演算プロセッサを使用するように判断した場合、
さらに数値演算プロセッサが接続されているか否かを判
断する。通常、数値演算プロセッサには、それが接続し
であるか否かの判定を行う仕組みが用意されている。8
0287NPXでは、FNINIT命令を実行した後F
STSW命令を実行し、ステータスの下位バイトの状態
を調べることにより判定できる。すなわち、ステータス
の下位バイトが0の場合、数値演算プロセッサが接続さ
れていると判断され、ステータスの下位バイトが1の場
合、数値演算プロセッサが接続されていないと判断され
る。数値演算プロセッサが接続されていると判断された
場合は、数値演算プロセッサを使用して演算する処理2
5を実行する。数値演算プロセッサが接続されていない
と判断された場合と、数値演算プロセッサ使用フラグの
状態の判定21により、数値演算プロセッサを使用しな
いよう設定しである場合は、数値演算プロセッサを使用
しないで演算する処理26を実行する。数値演算プロセ
ッサを使用しないで演算する処理26に振り分けられた
場合、CPU12で演算が実行される。When it is determined to use the numerical arithmetic processor based on the determination 21 of the state of the numerical arithmetic processor usage flag,
Furthermore, it is determined whether a numerical calculation processor is connected. Usually, a numerical arithmetic processor is provided with a mechanism for determining whether or not it is connected. 8
In 0287NPX, after executing the FNINIT instruction, F
This can be determined by executing the STSW instruction and checking the state of the lower byte of the status. That is, if the lower byte of the status is 0, it is determined that the numerical calculation processor is connected, and if the lower byte of the status is 1, it is determined that the numerical calculation processor is not connected. If it is determined that a numerical calculation processor is connected, process 2 to perform calculations using the numerical calculation processor.
Execute step 5. If it is determined that the numerical arithmetic processor is not connected, or if the numerical arithmetic processor use flag is set to not be used as determined in step 21, the arithmetic processor is not used. Process 26 is executed. When assigned to processing 26 that performs calculations without using a numerical calculation processor, the calculations are executed by the CPU 12.
第3図(a)、 (b)は、共に従来使われてきた、
数値演算プロセッサを使用するか否かを判定する方式を
示す。Figures 3(a) and 3(b) are both conventionally used.
A method for determining whether to use a numerical processor is shown.
第3図(a)は、従来の211類の方式のうちの第1の
方式の例であり、数値演算プロセッサの接続の有無によ
り、どちらの演算処理を行うかを振り分ける方式である
。31は数値演算プロセッサ自身の機能を利用する方式
により数値演算プロセッサの接続の有無の判定を行う処
理である。実際には、本発明の第2図に示した22.
23. 24の処理が実行される。数値演算プロセッサ
の接続の有無の判断31で数値演算プロセッサが接続さ
れていると判断された場合は、数値演算プロセッサを使
用して演算する処理32が実行される。逆に、数値演算
プロセッサの接続の有無の判断3Iにより数値演算プロ
セッサが接続されていないと判断された場合は、数値演
算プロセッサを使用しないで演算する処理33が実行さ
れる。FIG. 3(a) is an example of the first method of the conventional type 211 methods, which is a method in which which arithmetic processing is to be performed is determined depending on whether or not a numerical arithmetic processor is connected. 31 is a process of determining whether or not a numerical arithmetic processor is connected by a method that utilizes the functions of the numerical arithmetic processor itself. Actually, 22. shown in FIG. 2 of the present invention.
23. 24 processes are executed. When it is determined in the determination 31 whether or not a numerical arithmetic processor is connected that a numerical arithmetic processor is connected, a process 32 of calculating using the numerical arithmetic processor is executed. Conversely, if it is determined by the determination 3I whether or not a numerical arithmetic processor is connected that a numerical arithmetic processor is not connected, a process 33 for calculating without using a numerical arithmetic processor is executed.
第3図(b)は、従来の方式のうちの第2の方式の例で
あり、数値演算プロセッサを使用するか否かを、予めフ
ラグに設定しておく方式である。FIG. 3(b) is an example of the second method among the conventional methods, in which a flag is set in advance to indicate whether or not a numerical arithmetic processor is to be used.
34は数値演算プロセッサを使用するか否かの判定を数
値演算プロセッサ使用フラグの状態により行う処理であ
り、本発明の実施例の判定21に対応している。数値演
算プロセッサ使用フラグには、数値演算プロセッサを使
用するか否かを、予め設定しておく。数値演算プロセッ
サ使用フラグの状態を判定する処理34で数値演算プロ
セッサを使用すると判断した場合は、数値演算プロセッ
サを使用して演算する処理35が実行される。逆に、数
値演算プロセッサ使用フラグの状態を判定する処理34
で数値演算プロセッサを使用しないと判断した場合は、
数値演算プロセッサを使用しないで演算する処理36が
実行される。34 is a process for determining whether or not to use a numerical arithmetic processor based on the state of the numerical arithmetic processor usage flag, and corresponds to determination 21 in the embodiment of the present invention. The numerical calculation processor use flag is set in advance to determine whether or not to use the numerical calculation processor. When it is determined in the process 34 for determining the state of the numerical arithmetic processor use flag that the numerical arithmetic processor is to be used, a process 35 for performing calculations using the numerical arithmetic processor is executed. Conversely, processing 34 for determining the state of the numerical calculation processor use flag
If you decide not to use the math processor,
A process 36 for calculating without using a numerical calculation processor is executed.
[発明の効果コ
以上、説明したように本発明によれば、数値演算プロセ
ッサを使用するか否かをユーザーが予め指定することが
できる。また、ユーザーが数値演算プロセッサを使用す
るように設定した場合でも、実際に数値演算プロセッサ
が接続されているか否かを判断することにより、数値演
算プロセッサが未接続の場合には数値演算プロセッサを
使用せず、例えば、CPUで演算をエミュレートするよ
うになり、演算結果を得ることができるという効果を有
する。[Effects of the Invention] As described above, according to the present invention, the user can specify in advance whether or not to use the numerical calculation processor. Additionally, even if the user has set the numeric processor to use, the numeric processor will be used if the numeric processor is not connected by determining whether or not the numeric processor is actually connected. Instead, for example, the CPU emulates the computation and has the effect that the computation result can be obtained.
第1図は、本発明による電子計算機の概略を示すブロッ
ク図。
第2図は、本発明による数値演算実行時において、数値
演算プロセッサを使用して演算するか否かを振り分ける
方式を示す流れ図。
第3図(a)、 (b)は、従来においての数値演算
プロセッサを使用して演算するか否かを振り分ける方式
を示す流れ図。
11・・・入出力装置
12・・・CPU
13・・・数値演算プロセッサ用のソケット14・・・
主記憶装置
工5・・・数値演算プロセッサ使用フラグ16・・・数
値演算プロセッサの接続の有無を調べる手段
エフ・・・数値演算プロセッサを使用するか否かを指定
する手段
18・・・数値演算プロセッサ用のソケットに接続され
ている数値演算プロセッサ
を使用して実行するか否かを振り分
ける手段
21・・・数値演算プロセッサ使用フラグの状態の判定
22・・・数値演算プロセッサの初期化命令23・・・
22の状態を示すステータスを調べるための命令
24・・・ステータスの下位バイトの状態の判定
25・・・数値演算プロセッサを使用して演算する処理
26・・・数値演算プロセッサを使用しないで演算する
処理
31・・・数値演算プロセッサの接続の有無の判定
以上FIG. 1 is a block diagram schematically showing an electronic computer according to the present invention. FIG. 2 is a flowchart showing a method for determining whether or not to use a numerical calculation processor when performing numerical calculations according to the present invention. FIGS. 3(a) and 3(b) are flowcharts showing a method for determining whether or not to perform calculations using a conventional numerical calculation processor. 11... Input/output device 12... CPU 13... Socket 14 for numerical calculation processor...
Main storage unit 5... Numerical calculation processor usage flag 16... Means for checking whether or not a numerical calculation processor is connected F... Means for specifying whether or not to use a numerical calculation processor 18... Numerical calculation Means for distributing whether or not to execute using the numerical arithmetic processor connected to the processor socket 21... Judgment of the state of the numerical arithmetic processor usage flag 22... Initialization instruction for the numerical arithmetic processor 23.・・・
Instruction 24 for checking the status indicating the state of 22... Determination of the state of the lower byte of the status 25... Processing to perform calculations using a numerical calculation processor 26... Calculation without using a numerical calculation processor Process 31...Determination of whether or not a numerical calculation processor is connected
Claims (1)
演算プロセッサ用のソケットと、前記数値演算プロセッ
サ用のソケットに数値演算プロセッサが接続されている
か否かを調べる手段と、数値演算プロセッサを使用する
か否かを指定する手段と、数値演算プロセッサを使用し
て実行するか否かを振り分ける手段とを有する装置であ
って、前記数値演算プロセッサ用のソケットに接続され
た数値演算プロセッサを使用して数値演算を実行する手
段と、数値演算プロセッサを使用せずに数値演算を実行
する手段と、これら2種類の数値演算のいずれか一方を
選択し実行する手段とを有することを特徴とする電子計
算機。At least one central control processing unit (CPU), a socket for a numerical processor, means for checking whether a numerical processor is connected to the socket for a numerical processor, and a numerical processor. A device having means for specifying whether or not to perform the execution, and means for discriminating whether or not to execute using the numerical arithmetic processor, the apparatus comprising: An electronic computer characterized by having means for performing numerical operations, means for performing numerical operations without using a numerical operation processor, and means for selecting and executing one of these two types of numerical operations. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21979689A JPH0383136A (en) | 1989-08-25 | 1989-08-25 | Electronic computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21979689A JPH0383136A (en) | 1989-08-25 | 1989-08-25 | Electronic computer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0383136A true JPH0383136A (en) | 1991-04-09 |
Family
ID=16741167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP21979689A Pending JPH0383136A (en) | 1989-08-25 | 1989-08-25 | Electronic computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0383136A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
USRE37367E1 (en) | 1995-06-06 | 2001-09-18 | Yamaha Corporation | Computerized music system having software and hardware sound sources |
US6901502B2 (en) | 2000-12-06 | 2005-05-31 | Matsushita Electric Industrial Co., Ltd. | Integrated circuit with CPU and FPGA for reserved instructions execution with configuration diagnosis |
-
1989
- 1989-08-25 JP JP21979689A patent/JPH0383136A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
USRE37367E1 (en) | 1995-06-06 | 2001-09-18 | Yamaha Corporation | Computerized music system having software and hardware sound sources |
US6901502B2 (en) | 2000-12-06 | 2005-05-31 | Matsushita Electric Industrial Co., Ltd. | Integrated circuit with CPU and FPGA for reserved instructions execution with configuration diagnosis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS54114687A (en) | Sequence controller | |
JPH0383136A (en) | Electronic computer | |
JPH08249018A (en) | Multiprocessor arithmetic unit and programmable controller having the arithmetic unit | |
JP2510691B2 (en) | Arithmetic processing method | |
JP2525492B2 (en) | Programmable controller | |
JP2899009B2 (en) | Information processing device | |
JP2513142B2 (en) | Program simulator device | |
JPS623345A (en) | Interruption system | |
JPH02178864A (en) | Ipl processing system | |
JP3481301B2 (en) | Processor control unit | |
JPS6031659A (en) | Microprogram control type data processor | |
JPH0772908A (en) | Programmable controller | |
JPS5829051A (en) | Operation processing device | |
JPH06250985A (en) | Information processor | |
JPH0695910A (en) | Interactive debugging control system for abnormality processing | |
JPS58189747A (en) | Execution history display device | |
JPH0772874B2 (en) | Interrupt receiving device | |
JPS6220033A (en) | Interrupt control method | |
JPH0347536B2 (en) | ||
JPH0362131A (en) | Multiprocessor system | |
JPH03282617A (en) | Printer device | |
JPH0384639A (en) | Self-diagnostic device for information processor | |
JPH07334389A (en) | Daughter board for s/w debugging | |
JPH03253926A (en) | Computer system | |
JPH056279A (en) | Processor controller |