[go: up one dir, main page]

JPH0528854B2 - - Google Patents

Info

Publication number
JPH0528854B2
JPH0528854B2 JP63071479A JP7147988A JPH0528854B2 JP H0528854 B2 JPH0528854 B2 JP H0528854B2 JP 63071479 A JP63071479 A JP 63071479A JP 7147988 A JP7147988 A JP 7147988A JP H0528854 B2 JPH0528854 B2 JP H0528854B2
Authority
JP
Japan
Prior art keywords
address
engineer
panel
computer system
stop condition
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 - Fee Related
Application number
JP63071479A
Other languages
Japanese (ja)
Other versions
JPH01244550A (en
Inventor
Yasumasa Nishijima
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP63071479A priority Critical patent/JPH01244550A/en
Publication of JPH01244550A publication Critical patent/JPH01244550A/en
Publication of JPH0528854B2 publication Critical patent/JPH0528854B2/ja
Granted legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/30Hydrogen technology
    • Y02E60/50Fuel cells

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔概要〕 プログラムのデバツグに用いられるエンジニア
パネルを備える計算機システムに関し、 各種のストツプ条件の実現と、命令プリフエツ
チに対処できるようにすることを目的とし、 エンジニアパネルは、アドレスバス上のデータ
が所定の値と一致したときにその一致信号を検出
するアドレス一致検出回路を備えるとともに、計
算機システムは、このアドレス一致検出回路の検
出する一致信号を有効とするか保留とするかのい
ずれかにと制御するアドレス一致制御手段と、ソ
フトウエア手段により構成されて、上記アドレス
一致検出回路の一致信号が入力されたときにスト
ツプ条件が成立するか否かを判断し、ストツプ条
件が成立するときには上記エンジニアパネルにと
制御を移すとともに、ストツプ条件が成立しない
ときにはプログラム命令の実行をシングルステツ
プモードにと設定し、かつ上記アドレス一致制御
手段の制御を保留モードに設定するストツプ条件
判断手段と、プログラム命令の実行終了後にシン
グルステツプモードを解除するとともに、上記ア
ドレス一致制御手段の制御を有効モードに設定す
る内部割込処理制御手段とを備えてなるように構
成する。
[Detailed Description of the Invention] [Summary] Regarding a computer system equipped with an engineer panel used for program debugging, the purpose of the engineer panel is to realize various stop conditions and deal with instruction prefetch. The computer system includes an address match detection circuit that detects a match signal when data on the bus matches a predetermined value, and determines whether to validate or suspend the match signal detected by the address match detection circuit. and software means, which determine whether or not a stop condition is satisfied when the match signal of the address match detection circuit is input, and determine whether or not the stop condition is satisfied. A stop condition determining means transfers control to the engineer panel when the stop condition is satisfied, and sets the execution of the program instruction to a single step mode when the stop condition is not satisfied, and sets control of the address coincidence control means to a hold mode. and internal interrupt processing control means for canceling the single step mode and setting the control of the address coincidence control means to a valid mode after the execution of the program instruction is completed.

〔産業上の利用分野〕[Industrial application field]

本発明は、プログラムのデバツグに用いられる
エンジニアパネルを備える計算機システムに関
し、特に、各種のストツプ条件を実現できるよう
にするとともに、命令プリフエツチに対処できる
ようにするエンジニアパネルを備える計算機シス
テムに関する。
The present invention relates to a computer system equipped with an engineer panel used for program debugging, and more particularly to a computer system equipped with an engineer panel that can realize various stop conditions and deal with instruction prefetch.

計算機システムのプログラムのデバツグをする
ときには、エンジニアパネルを用いて計算機シス
テムを稼働中の任意のところで停止させて、その
停止時におけるメモリデータの内容、レジスタデ
ータの内容、CPUの状態といつたものを調べる
ことになる。このようなために用いられるエンジ
ニアパネルは、プログラムのデバツグがより効率
的に実行できるように構成させていく必要があ
る。
When debugging a computer system program, you can use the engineer panel to stop the computer system at any point during operation and check the contents of memory data, register data, and CPU status at the time of the stop. I'll look into it. The engineer panel used for this purpose needs to be configured so that program debugging can be executed more efficiently.

〔従来の技術〕[Conventional technology]

第5図及び第6図に従つて、計算機システムか
らエンジニアパネルに制御を移すためのエンジニ
アパネル制御方式の従来技術について説明する。
A conventional technique of an engineer panel control method for transferring control from a computer system to an engineer panel will be described with reference to FIGS. 5 and 6.

第5図に示すように、CPU1、メモリ2、バ
ス3、デイスプレイ装置4、キーボード5及びプ
リンタ6からなる計算機システム20に接続され
る従来のエンジニアパネル10では、計算機シス
テム20から制御を移すために、ハードウエアか
らなるアドレス一致検出回路11と、条件一致検
出回路13と、このアドレス一致検出回路11の
出力と条件一致検出回路13の出力の論理積をと
るアンド回路14とを備えるよう構成されてい
る。そして、このアドレス一致検出回路11は、
第6図に示すように、計算機システム20の稼働
を停止させたいアドレスデータを設定するところ
の設定アドレスレジスタ11aと、アドレスバス
3a上に流れるアドレスデータがこの設定アドレ
スレジスタ11aの設定アドレスデータと一致し
たときに一致信号を送出するよう動作するアドレ
ス一致アンドゲート11bとから構成されてい
る。一方、条件一致検出回路13は、同じく第6
図に示すように、計算機システム20の稼働の停
止条件を課すメモリ番地を設定するところのデー
タアドレスレジスタ13aと、そのときの停止条
件となるメモリデータを設定するところのメモリ
データレジスタ13bと、データバス3b上に流
れるメモリデータがこのメモリデータレジスタ1
3bの設定メモリデータと一致したときに一致信
号を送出するよう動作するデータ一致アンドゲー
ト13cとから構成されている。
As shown in FIG. 5, in a conventional engineer panel 10 connected to a computer system 20 consisting of a CPU 1, memory 2, bus 3, display device 4, keyboard 5, and printer 6, in order to transfer control from the computer system 20, , an address match detection circuit 11 consisting of hardware, a condition match detection circuit 13, and an AND circuit 14 that takes the logical product of the output of the address match detection circuit 11 and the output of the condition match detection circuit 13. There is. This address match detection circuit 11 is
As shown in FIG. 6, the setting address register 11a where the address data for stopping the operation of the computer system 20 is set and the address data flowing on the address bus 3a match the setting address data of the setting address register 11a. and an address match AND gate 11b that operates to send out a match signal when the match occurs. On the other hand, the condition match detection circuit 13 also has the sixth
As shown in the figure, a data address register 13a is used to set a memory address that imposes a condition for stopping the operation of the computer system 20, a memory data register 13b is used to set memory data that becomes a stop condition at that time, and a data Memory data flowing on bus 3b is stored in this memory data register 1.
The data matching AND gate 13c operates to send out a matching signal when matching with the setting memory data of 3b.

このように構成される従来のエンジニアパネル
10においては、アドレス一致検出回路11がア
ドレスデータの一致を検出し、かつ条件一致検出
回路13がメモリデータの一致を検出したとき
に、アンド回路14に出力が送出され、このアン
ド回路14の出力がCPU1の最優先割込み信号
(NMI信号)となつてCPU1のプログラム処理の
実行が停止されることで、エンジニアパネルに制
御が移るように構成されていたのである。そし
て、プログラムは、この制御の移されたエンジニ
アパネル10を用いて計算機システム20の各種
状態を参照し、プログラムのデバツグを実行した
のである。
In the conventional engineer panel 10 configured as described above, when the address match detection circuit 11 detects a match of address data and the condition match detection circuit 13 detects a match of memory data, an output is sent to the AND circuit 14. is sent out, and the output of this AND circuit 14 becomes the highest priority interrupt signal (NMI signal) for CPU 1, stopping the execution of the program processing of CPU 1, so that control is transferred to the engineer panel. be. Then, the program used the engineer panel 10 to which control was transferred to refer to various states of the computer system 20 and execute debugging of the program.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、このような従来技術によるなら
ば、CPU1が指定したメモリアドレスをアクセ
スし、そのときのメモリデータが設定された値に
なつていたときには計算機システム20を停止さ
せるといういわゆるメモリデータに関しての条件
付アドレスストツプ機能は実現できるものの、
CPU1内部に専用回路を備えない限りは、CPU
1内部のレジスタのラツチデータが設定値と一致
するか否かを判断して、一致するときにはエンジ
ニアパネル10に制御を移していくというような
ことができなかつた。これから、プログラムのデ
バツグの効率が十分上がらないという問題点があ
つたのである。
However, according to such conventional technology, when the CPU 1 accesses a specified memory address and the memory data at that time has reached a set value, the computer system 20 is stopped, which is a so-called condition regarding memory data. Although the address stop function can be realized,
Unless a dedicated circuit is provided inside CPU1, the CPU
It was not possible to judge whether the latch data of the register inside the 10000 matched the set value, and to transfer control to the engineer panel 10 if they matched. From this point on, a problem arose in that the efficiency of program debugging was not sufficiently improved.

これを解決する1つの方法として、ハード的な
条件一致検出回路13を省略して、アドレス一致
検出回路11がアドレスデータの一致を検出した
ときにCPU1に最優先割込み(以下、NMI割込
みという)をかけ、後はソフトウエアの実行によ
りCPU1の内部レジスタ等に対して条件を設定
し判断していくという方式をとることが考えられ
る。しかしながら、計算機システム20では、命
令を実行する前に予めフエツチしてしまうという
いわゆるプリフエツチ機能を採用するものが多
く、このようなプリフエツチ機能をもつ計算機シ
ステム20にあつては単純にアドレス一致検出回
路11だけでNMI割込みをかけるようにすると、
本来の設定アドレスデータの命令の前の命令で
NMI割込みがかかることになる。これから、条
件が成立しないとして割込みを解除して処理を再
開しても、再度その命令でNMI割込みがかかつ
て無限のループに入つてしまうことから、エンジ
ニアパネル10を構成できないのである。
One way to solve this problem is to omit the hardware condition match detection circuit 13 and issue a top priority interrupt (hereinafter referred to as NMI interrupt) to the CPU 1 when the address match detection circuit 11 detects a match between address data. It is conceivable to take a method in which conditions are set in the internal registers of the CPU 1 and the like is made by executing the software. However, many computer systems 20 employ a so-called prefetch function that fetches an instruction in advance before executing it, and in a computer system 20 that has such a prefetch function, the address match detection circuit 11 simply If you apply an NMI interrupt only by
In the instruction before the original setting address data instruction
An NMI interrupt will be generated. From now on, even if the interrupt is canceled and the process is restarted because the condition is not met, the NMI interrupt will be triggered again by that instruction and the engineer panel 10 will not be able to be configured.

本発明はかかる事情に鑑みてなされたものであ
つて、各種のストツプ条件を実現できるようにす
るとともに、命令プリフエツチに対処できるよう
にする新たなエンジニアパネルを備える計算機シ
ステムの提供を目的とするものである。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a computer system equipped with a new engineer panel that can realize various stop conditions and deal with instruction prefetch. It is.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理構成図である。 FIG. 1 is a diagram showing the principle configuration of the present invention.

図中、10はエンジニアパネル、20は計算機
システムである。エンジニアパネル10は、第5
図及び第6図で説明したアドレス一致検出回路1
1を備えるとともに、レジスタデータやメモリデ
ータの内容を表示するための複数の点灯手段から
なる表示手段12を備えるものである。21は命
令実行手段であつて、計算機システム20のプロ
グラムの命令を実行するためのもの、22はシン
グルステツプ設定手段であつて、命令実行手段2
1の命令実行をシングルステツプモードにと設定
するためのもの、23はアドレス一致制御手段で
あつて、アドレス一致検出回路11の検出する一
致信号を有効とするか保留とするかのいずれかに
と制御するためのもの、24はストツプ条件判断
手段であつて、ソフトウエア手段により構成され
て、アドレス一致制御手段23を介してアドレス
一致検出回路11の一致信号を入力し、この一致
信号の入力があるときに予め設定されているデー
タのストツプ条件が成立するか否かを判断するた
めのもの、25は内部割込処理制御手段であつ
て、命令実行手段21のシングルステツプモード
での命令実行終了後に内部割込み処理を実行する
ためのものである。
In the figure, 10 is an engineer panel and 20 is a computer system. Engineer panel 10 is the fifth
Address match detection circuit 1 explained in FIG.
1 and a display means 12 consisting of a plurality of lighting means for displaying the contents of register data and memory data. 21 is an instruction execution means for executing the instructions of the program of the computer system 20; 22 is a single step setting means; the instruction execution means 2
1 is for setting the execution of the instruction to single step mode, and 23 is an address coincidence control means, which is used to enable or suspend the coincidence signal detected by the address coincidence detection circuit 11. The control device 24 is a stop condition determining means, which is constituted by software means, which inputs the coincidence signal of the address coincidence detection circuit 11 via the address coincidence control means 23, and when the input of this coincidence signal is input. 25 is an internal interrupt processing control means for determining whether or not a preset data stop condition is satisfied at a certain time, and 25 is an internal interrupt processing control means for terminating instruction execution in the single step mode of the instruction execution means 21. This is for later executing internal interrupt processing.

〔作用〕[Effect]

本発明では、ストツプ条件判断手段24は、ス
トツプ条件が成立すると判断するときにはエンジ
ニアパネル10に制御を移すとともに、ストツプ
条件が成立しないと判断するときにはシングルス
テツプ設定手段22をセツトして命令実行手段2
1の命令実行をシングルステツプモードにと設定
し、かつアドレス一致制御手段23の制御を保留
モードにと設定するよう処理する。そして、内部
割込処理制御手段25は、内部割込み処理とし
て、シングルステツプ設定手段22をリセツトし
てシングルステツプモードを解除するとともに、
アドレス一致制御手段23の制御を有効モードに
と設定するよう処理する。
In the present invention, the stop condition judgment means 24 transfers control to the engineer panel 10 when it judges that the stop condition is satisfied, and sets the single step setting means 22 when it judges that the stop condition does not hold, and sets the command execution means 22.
The execution of the instruction No. 1 is set to the single step mode, and the control of the address coincidence control means 23 is set to the pending mode. Then, as internal interrupt processing, the internal interrupt processing control means 25 resets the single step setting means 22 to cancel the single step mode, and
Processing is performed to set the control of the address matching control means 23 to the valid mode.

そして本発明では、ストツプ条件判断手段24
がストツプ条件が成立しないと判断するときに
は、命令の実行を続けながら不一致情報の内容を
表示手段12に瞬時的に表示するよう処理する。
In the present invention, the stop condition determining means 24
When it is determined that the stop condition is not satisfied, processing is performed to instantaneously display the contents of the mismatch information on the display means 12 while continuing execution of the command.

このように、本発明では、ソフトウエア手段か
らなるストツプ条件判断手段24がストツプ条件
を判断することから、メモリデータ以外のものに
対してもストツプ条件を設定できるようになる。
As described above, in the present invention, since the stop condition determining means 24 consisting of software means determines the stop condition, it becomes possible to set the stop condition for things other than memory data.

また、計算機システム20が命令のプリフエツ
チ機能を持つ場合、ストツプアドレスを持つ命令
の実行前にプリフエツチによりアドレス一致検出
回路11がアドレス一致を検出することになる。
このときにはストツプアドレスを持つ命令の例え
ば1つの前の命令(以下、説明を簡単にするため
に1つ前の命令であるとする)の実行開始時点で
あるので、ストツプ条件判断手段24は、実際の
実行アドレスとアドレス一致検出回路11の検出
アドレスとの不一致を判断して、エンジニアパネ
ル10に制御を移すことなく、アドレス一致制御
手段23を保留モードに設定してから命令実行モ
ードをシングルステツプモードに設定して、その
1つ前の命令の実行を指示していく。
Further, if the computer system 20 has an instruction prefetch function, the address match detection circuit 11 will detect address match by prefetch before executing an instruction having a stop address.
At this time, for example, the instruction immediately preceding the instruction having the stop address (hereinafter, to simplify the explanation, it is assumed to be the instruction immediately before the instruction) has started execution, so the stop condition determining means 24 performs the following steps. After determining the mismatch between the actual execution address and the address detected by the address match detection circuit 11, the address match control means 23 is set to the hold mode without transferring control to the engineer panel 10, and then the instruction execution mode is changed in a single step. mode and instructs execution of the previous command.

この指示に応答して、ストツプアドレスを持つ
命令の1つ前の命令が実行され、その実行終了時
点で、内部割込処理制御手段25は、命令実行モ
ードのシングルステツプモードを解除するととも
に、アドレス一致制御手段23を有効モードに設
定してから、ストツプアドレスを持つ命令からの
再スタートを指示する。このようにして再スター
トすると、アドレスバスにストツプアドレスが流
れ、アドレス一致検出回路11がアドレス一致を
検出することになるが、このときの検出アドレス
は実際の実行アドレスと一致するので、今度は、
ストツプ条件判断手段24は、この両方のアドレ
スの一致を確認すると、その他の設定されている
ストツプ条件が成立するか否かを判断して、成立
しているときにはエンジニアパネル10に制御を
移していく。
In response to this instruction, the instruction immediately before the instruction having the stop address is executed, and at the end of its execution, the internal interrupt processing control means 25 cancels the single step mode of the instruction execution mode, and After setting the address coincidence control means 23 to the valid mode, restarting from the instruction having the stop address is instructed. When restarted in this way, the stop address flows on the address bus and the address match detection circuit 11 detects an address match, but since the detected address at this time matches the actual execution address, ,
When the stop condition determining means 24 confirms that both addresses match, it determines whether or not other set stop conditions are satisfied, and if so, transfers control to the engineer panel 10. .

このようにして、本発明では、計算機システム
20が命令のプリフエツチ機能を持つ場合にあつ
ても、ストツプ条件の成立を正確に判断できるよ
うになるのである。
In this way, in the present invention, even if the computer system 20 has an instruction prefetch function, it is possible to accurately determine whether the stop condition is met.

そして、本発明では、不一致情報の内容が表示
されるので、デバツグの処理が極めて効率よく行
えることになる。
Further, in the present invention, since the content of the mismatch information is displayed, debugging processing can be performed extremely efficiently.

〔実施例〕〔Example〕

以下、実施例に従つて本発明を詳細に説明す
る。
Hereinafter, the present invention will be explained in detail according to Examples.

第2図に、本発明を実現するためのシステム構
成図を示す。この図に示すように、CPU1、メ
モリ2、バス3、デイスプレイ装置4、キーボー
ド5及びプリンタ6からなる計算機システム20
に接続される本発明のエンジニアパネル10は、
従来技術と変わることなくアドレス一致検出回路
11を実装するものの、従来技術と異なつて条件
一致検出回路13を省略するよう構成されるもの
である。本発明の実装するこのアドレス一致検出
回路11は、第5図でも説明したように、バス3
を構成するアドレスバス上に流れるアドレスデー
タが、プログラマにより予め設定されるところの
設定アドレスデータと一致したときに、CPU1
へのNMI信号となる一致信号を発生するよう動
作することになる。
FIG. 2 shows a system configuration diagram for realizing the present invention. As shown in this figure, a computer system 20 includes a CPU 1, memory 2, bus 3, display device 4, keyboard 5, and printer 6.
The engineer panel 10 of the present invention connected to
Although the address match detection circuit 11 is implemented as in the prior art, the condition match detection circuit 13 is omitted, unlike the prior art. As explained in FIG.
When the address data flowing on the address bus constituting the CPU 1 matches the set address data set in advance by the programmer, the CPU 1
It will operate to generate a match signal that will be the NMI signal to.

そして、図中の12は、例えば8個のLED列
からなる表示手段であつて、エンジニアパネル1
0に制御が移つてから、プログラマの指示に従つ
てCPU1のレジスタデータやメモリ2のメモリ
データの内容を表示すべく点灯するよう動作する
ものである。この表示手段12は、従来のエンジ
ニアパネル10でも装備するものであるが、第5
図においては説明の便宜上省略していたものであ
る。
12 in the figure is a display means consisting of, for example, eight LED rows, and the engineer panel 1
After control is transferred to 0, the light is turned on to display the contents of the register data of the CPU 1 and the memory data of the memory 2 according to instructions from the programmer. This display means 12 is also equipped with the conventional engineer panel 10, but the fifth
This is omitted in the figure for convenience of explanation.

本発明では、条件一致検出回路13を省略する
代わりに、CPU1がエンジニアパネル10に制
御を移すための所定のトラツプ割込み処理を実行
するよう構成するものである。次に、第3図に従
つて、CPU1の実行するこのトラツプ割込み処
理の内容と、NMI信号が入力されるときにCPU
1が実行することになるNMI割込み処理の内容
について説明する。
In the present invention, instead of omitting the condition match detection circuit 13, the CPU 1 is configured to execute a predetermined trap interrupt process for transferring control to the engineer panel 10. Next, according to Figure 3, the contents of this trap interrupt processing executed by CPU1 and the CPU
The contents of the NMI interrupt processing that will be executed by No. 1 will be explained.

第3図AにNMI割込み処理のフローチヤート、
第3図Bにトラツプ割込み処理のフローチヤート
を示す。この第3図Aのフローチヤートに示すよ
うに、エンジニアパネル10からNMI信号が入
力されると、CPU1は、最初にステツプ10で、
ストツプ条件が成立しているか否かを判断する。
予めプログラマにより設定されることになるこの
ストツプ条件は、本発明の判断がソフトウエア手
段によりなされることから、従来と異なりメモリ
データに関するものに限られることなく、CPU
1のレジスタデータ等についても設定することが
できるのである。ステツプ10の判断でストツプ
条件が成立していると判断するときには、ステツ
プ11に進んで、エンジニアパネル10に制御を
移す処理を行う。このようにして制御の移された
エンジニアパネル10は、停止ランプを点灯さ
せ、鍵盤操作監視ルーチンを実行してプログラマ
からの鍵盤操作を受付け、CPU1とのデータの
やり取りを実行するエンジニアパネル操作処理に
入ることになる。
Figure 3A is a flowchart of NMI interrupt processing.
FIG. 3B shows a flowchart of trap interrupt processing. As shown in the flowchart of FIG. 3A, when the NMI signal is input from the engineer panel 10, the CPU 1 first performs the following steps in step 10.
Determine whether the stop condition is met.
This stop condition, which is set in advance by the programmer, is different from the conventional method and is not limited to those related to memory data, since the judgment of the present invention is made by software means.
1 register data etc. can also be set. If it is determined in step 10 that the stop condition is met, the process advances to step 11 to transfer control to the engineer panel 10. The engineer panel 10 to which control has been transferred in this way turns on the stop lamp, executes a keyboard operation monitoring routine, accepts keyboard operations from the programmer, and performs an engineer panel operation process for exchanging data with the CPU 1. I will be entering.

一方、ステツプ10の判断でストツプ条件が成
立していないと判断するときには、ステツプ12
にと進んで、NMI信号としてアドレス一致検出
回路11から入力された一致信号を解除するとと
もに、以降の一致信号を受付けないようにするた
めの保留処理を行うことになる。この解除保留処
理が終了すると、次のステツプ13で、プログラ
ム命令の実行をシングルステツプモードで実行す
るようにと設定し、続くステツプ14で、割込み
を生じたプログラムにと戻るよう処理するのであ
る。
On the other hand, if it is determined in step 10 that the stop condition is not satisfied, step 12 is performed.
Then, the match signal input as the NMI signal from the address match detection circuit 11 is released, and a hold process is performed to prevent the reception of subsequent match signals. When this release pending processing is completed, in the next step 13, the program instruction is set to be executed in single step mode, and in the following step 14, processing is performed to return to the program that caused the interrupt.

第3図Bに示すトラツプ割込みの処理は、プロ
グラム命令の実行終了時点で、プログラム命令の
実行がシングルステツプモードに設定されている
ときに、内部割込み動作により実行されることに
なる。この第3図Bに示すように、シングルステ
ツプモードに設定されているときには、CPU1
は、最初にステツプ20で、アドレス一致検出回
路11からの一致信号が保留状態となつているか
否かを判断する。ステツプ20の判断で保留状態
となつていないと判断するときには、ステツプ2
1にと進んで、ステツプ11の処理と同じくエン
ジニアパネル操作処理に入ることになる。一方、
ステツプ20の判断で保留中と判断するときに
は、ステツプ22にと進んで、アドレス一致検出
回路11からの一致信号を受け付けるようにと再
設定し、次のステツプ23でプログラム命令の実
行をシングルステツプモードか解除する。そし
て、続くステツプ24で、割込みの生じたプログ
ラムに戻るよう処理するのである。
The trap interrupt process shown in FIG. 3B is executed by an internal interrupt operation when the execution of the program instruction is set to the single step mode at the end of the execution of the program instruction. As shown in Figure 3B, when the single step mode is set, the CPU 1
First, in step 20, it is determined whether the match signal from the address match detection circuit 11 is in a pending state. If it is determined in step 20 that the status is not on hold, step 2
1, and the engineer panel operation process is entered in the same way as the process in step 11. on the other hand,
If it is determined in step 20 that the program instruction is pending, the process proceeds to step 22, where the settings are reset to accept the match signal from the address match detection circuit 11, and in the next step 23, the execution of the program instruction is changed to single-step mode. or cancel it. Then, in the following step 24, processing is performed to return to the program where the interrupt occurred.

次に、このような本発明の割込み処理の実行に
より、命令のプリフエツチ機能があつても何ら支
障なくエンジニアパネル10に制御を移せること
になるということを、具体的な処理の動作例をと
りながら説明する。第4図は、この説明のための
命令ステツプであり、このn番地命令にアドレス
一致が設定されていることを想定している。
Next, we will explain by taking a concrete processing example that by executing the interrupt processing of the present invention, control can be transferred to the engineer panel 10 without any problem even if there is an instruction prefetch function. explain. FIG. 4 shows the instruction steps for this explanation, and it is assumed that address matching is set for this n address instruction.

プログラムが(n−1)番地の命令実行時にお
いてn番地命令をプリフエツチしていることか
ら、アドレス一致が生じ、(n−1)番地命令の
終了時点でエンジニアパネル10のアドレス一致
検出回路11から一致信号が送出されてNMI割
込みが発生することになる。この一致信号はアド
レス一致が設定されているn番地命令の未実行の
段階で生じたものであることから、ステツプ10
の判断でストツプ条件が成立していないことが判
断される。これから、ステツプ12でアドレス一
致検出回路11からの一致信号が解除されて保留
状態となるとともに、ステツプ13でシングルス
テツプモードに設定されて(n−1)番地命令の
終了時点に戻ることになる。
Since the program prefetches the instruction at address (n-1) when executing the instruction at address (n-1), an address match occurs, and at the end of the instruction at address (n-1), the address match detection circuit 11 of the engineer panel 10 detects A match signal will be sent and an NMI interrupt will occur. Since this match signal is generated when the instruction at address n, for which address match is set, has not yet been executed, step 10
It is determined that the stop condition is not satisfied. Thereafter, in step 12, the match signal from the address match detection circuit 11 is released and the process is placed in a pending state, and in step 13, the single step mode is set, and the process returns to the end of the (n-1) address instruction.

従来であれば、(n−1)番地命令に戻ること
で発生するアドレス一致検出回路11からの一致
信号で無限ループに入つてしまうのであるが、本
発明ではステツプ12での処理でこの一致信号を
受け付けないようにしてあることから、そのまま
n番地命令をシングルステツプモードで実行する
ことになる。そして、このn番地命令の終了時点
で、今度はトラツプ割込みがかかることになる。
このトラツプ割込みにおいて、(n−1)番地命
令のステツプ12の処理によりアドレス一致検出
回路11からの一致信号は保留状態となつている
ことから、ステツプ22でこの一致信号が受け付
けられることになるようにと再設定されるととも
に、ステツプ23でシングルステツプモードが解
除されてn番地命令の終了時点に戻ることにな
る。そして、(n+1)番地命令、(n+2)番地
命令が連続して実行され、“LOOP”命令に従つ
て再び(n−1)番地命令にと戻るのである。続
く(n−1)番地命令の実行で、前述と同様にア
ドレス一致検出回路11から一致信号が送出され
てNMI割込みにと入るのであるが、今度はn番
地命令が既に実行されているので、ステツプ10
の判断でストツプ条件が成立していることが判断
されて、ステツプ11に入つてエンジニアパネル
10に制御が移るのである。
In the conventional case, an infinite loop would be entered by the match signal from the address match detection circuit 11 generated by returning to the (n-1) address instruction, but in the present invention, this match signal is detected by the processing in step 12. Since the instruction is not accepted, the instruction at address n will be executed in single step mode. Then, at the end of this n-address instruction, a trap interrupt is generated.
In this trap interrupt, since the match signal from the address match detection circuit 11 is in a pending state due to the processing at step 12 of the (n-1) address instruction, this match signal will be accepted at step 22. At the same time, in step 23, the single step mode is canceled and the process returns to the point at which the n address instruction ends. Then, the (n+1) address instruction and the (n+2) address instruction are executed successively, and the program returns to the (n-1) address instruction again in accordance with the "LOOP" instruction. Upon execution of the subsequent (n-1) address instruction, a match signal is sent from the address match detection circuit 11 as described above and an NMI interrupt is entered, but this time, since the n address instruction has already been executed, Step 10
When it is determined that the stop condition is met, step 11 is entered and control is transferred to the engineer panel 10.

このように、本発明では、命令のプリフエツチ
機能に対して、一旦アドレス一致検出回路11か
らの一致信号を受け付けないようにし、シングル
ステツプモードで命令を実行してから元に戻すよ
う構成するので、命令の実行が停止してしまうと
いつた不都合は生じないのである。
As described above, in the present invention, the instruction prefetch function is configured to temporarily not accept the match signal from the address match detection circuit 11, execute the instruction in single step mode, and then return to the original state. The inconvenience that would occur if the execution of the command stopped does not occur.

そして、本発明では、NMI割込み処理のステ
ツプ10での判断で、ストツプ条件が成立しない
と判断するときには、表示手段12にその不一致
情報を瞬時的に表示するようにするのである。こ
のように表示することで、プログラマのデバツグ
処理が一段と効率的に実行できるようになるので
ある。ここで、瞬時に表示させるようにしたの
は、プログラムを不用意に停止させてしまうと実
行の条件が狂つてしまう恐れがあるからである。
In the present invention, when it is determined in step 10 of the NMI interrupt processing that the stop condition is not met, the display means 12 instantly displays the mismatch information. By displaying the information in this way, the programmer can perform debugging processing more efficiently. The reason for instantaneous display is that if the program is stopped carelessly, the execution conditions may be disrupted.

なお、第4図の具体例にあつては、“LOOP”
命令を用いることで、n番地命令を未実行から実
行に転化させてストツプ条件が成立するようにと
するものを示したが、これはあくまで説明の便宜
のためであつて、本発明の動作を限定するもので
はないのである。
In addition, in the specific example of Figure 4, “LOOP”
Although the explanation has been shown in which the instruction at address n is changed from unexecuted to executed and the stop condition is satisfied by using the instruction, this is only for the convenience of explanation and is not intended to explain the operation of the present invention. It is not limited.

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

以上説明したように、本発明によれば、条件一
致の判断をCPUのソフトウエア手段により行う
ので、メモリデータ以外にも、例えば内部デー
タ、IOポートデータ、現在のメモリの空間番号、
各種データの演算値といつた多くの項目に任意の
ストツプ条件を設定できるようになるとともに、
命令のプリフエツチ機能があつても、この条件一
致の判断を実装できるようになるのである。従つ
て、プログラムのデバツグがより容易となるので
ある。
As explained above, according to the present invention, since the judgment of condition matching is made by software means of the CPU, in addition to memory data, for example, internal data, IO port data, current memory space number, etc.
In addition to being able to set arbitrary stop conditions for many items such as calculated values of various data,
Even if there is an instruction prefetch function, it becomes possible to implement this condition matching judgment. Therefore, debugging the program becomes easier.

更に本発明によれば、プログラムを稼動状態に
したままで内部の処理状態が容易に外部のオペレ
ータに認識できるようになることから、停止状態
での掌握が困難なプログラムに対して、より効率
の高いプログラム開発環境を提供できることにな
るのである。
Furthermore, according to the present invention, the internal processing status of the program can be easily recognized by an external operator while the program is running, making it possible to improve the efficiency of programs that are difficult to control when the program is stopped. This makes it possible to provide a high quality program development environment.

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

第1図は本発明の原理構成図、第2図は本発明
のシステム構成図、第3図は本発明の実行する割
込み処理のフローチヤート、第4図は本発明の動
作を説明するための命令ステツプ図、第5図は従
来技術のシステム構成図、第6図は従来技術の
NMI信号発生のためのハードウエア構成図であ
る。 図中、1はCPU1、2はメモリ、3はバス、
10はエンジニアパネル、11はアドレス一致検
出回路、12は表示手段、13は条件一致検出回
路、20は計算機システムである。
FIG. 1 is a diagram showing the principle configuration of the present invention, FIG. 2 is a system configuration diagram of the present invention, FIG. 3 is a flowchart of interrupt processing executed by the present invention, and FIG. 4 is a diagram for explaining the operation of the present invention. Instruction step diagram, Figure 5 is a system configuration diagram of the conventional technology, and Figure 6 is a diagram of the conventional technology.
FIG. 3 is a hardware configuration diagram for generating an NMI signal. In the figure, 1 is the CPU 1, 2 is the memory, 3 is the bus,
10 is an engineer panel, 11 is an address match detection circuit, 12 is a display means, 13 is a condition match detection circuit, and 20 is a computer system.

Claims (1)

【特許請求の範囲】 1 プログラムのデバツグを行うためのエンジニ
アパネル10を備える計算機システム20におい
て、 上記エンジニアパネル10は、アドレスバス上
のデータが予め設定される所定の値と一致したと
きにその一致信号を検出するアドレス一致検出回
路11を備えるとともに、 上記計算機システム20は、上記アドレス一致
検出回路11の検出する一致信号を有効とするか
保留とするかのいずれかにと制御するアドレス一
致制御手段23と、ソフトウエア手段により構成
されて、このアドレス一致制御手段23を介して
上記アドレス一致検出回路11の一致信号が入力
されたときに、予め設定されているデータのスト
ツプ条件が成立するか否かを判断し、ストツプ条
件が成立するときには上記エンジニアパネル10
に制御を移すとともに、ストツプ条件が成立しな
いときにはプログラム命令の実行をシングルステ
ツプモードに設定し、かつ上記アドレス一致制御
手段23の制御を保留モードにと設定するストツ
プ条件判断手段24と、プログラム命令の実行終
了後に、プログラム命令の実行がシングルステツ
プモードに設定されているときにはこのシングル
ステツプモードを解除するとともに、上記アドレ
ス一致制御手段23の制御を有効モードに設定す
る内部割込処理制御手段25とを備えてなること
を 特徴とするエンジニアパネルを備える計算機シ
ステム。 2 請求項1記載のエンジニアパネルを備える計
算機システムにおいて、ストツプ条件判断手段2
4がストツプ条件が成立しないと判断するときに
は、不一致情報の内容をエンジニアパネル10上
に設けられる表示手段12に瞬時的に表示させて
なることを 特徴とするエンジニアパネルを備える計算機シ
ステム。
[Scope of Claims] 1. In a computer system 20 including an engineer panel 10 for debugging a program, the engineer panel 10 detects a match when data on an address bus matches a predetermined value set in advance. The computer system 20 includes an address coincidence detection circuit 11 that detects a signal, and the computer system 20 includes an address coincidence control means that controls whether the coincidence signal detected by the address coincidence detection circuit 11 is enabled or suspended. 23, which is configured by software means and determines whether or not a preset data stop condition is satisfied when the match signal of the address match detection circuit 11 is inputted via the address match control means 23. If the stop condition is satisfied, the engineer panel 10
a stop condition determining means 24 which transfers control to the stop condition, sets the execution of the program instruction to single step mode when the stop condition is not satisfied, and sets the control of the address coincidence control means 23 to a hold mode; After the execution is completed, when the execution of the program instruction is set to the single step mode, the internal interrupt processing control means 25 cancels the single step mode and sets the control of the address coincidence control means 23 to the valid mode. A computer system equipped with an engineer panel characterized by: 2. In the computer system comprising the engineer panel according to claim 1, the stop condition determining means 2
4. A computer system equipped with an engineer panel, characterized in that when the computer system 4 determines that a stop condition is not met, content of discrepancy information is instantaneously displayed on a display means 12 provided on the engineer panel 10.
JP63071479A 1988-03-25 1988-03-25 Engineer panel control system Granted JPH01244550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63071479A JPH01244550A (en) 1988-03-25 1988-03-25 Engineer panel control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63071479A JPH01244550A (en) 1988-03-25 1988-03-25 Engineer panel control system

Publications (2)

Publication Number Publication Date
JPH01244550A JPH01244550A (en) 1989-09-28
JPH0528854B2 true JPH0528854B2 (en) 1993-04-27

Family

ID=13461811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63071479A Granted JPH01244550A (en) 1988-03-25 1988-03-25 Engineer panel control system

Country Status (1)

Country Link
JP (1) JPH01244550A (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5437649A (en) * 1977-08-31 1979-03-20 Hitachi Ltd Computer
JPS56155453A (en) * 1980-05-02 1981-12-01 Mitsubishi Electric Corp Program execution controlling system
JPS62197834A (en) * 1986-02-25 1987-09-01 Nec Corp Microprogram controller

Also Published As

Publication number Publication date
JPH01244550A (en) 1989-09-28

Similar Documents

Publication Publication Date Title
US7178062B1 (en) Methods and apparatus for executing code while avoiding interference
CN1040158C (en) Microprocessor with run/stop port for accessing idle mode
JP2000040076A (en) Control of multicomputer process
US5659760A (en) Microprocessor having interrupt vector generation unit and vector fetching command unit to initiate interrupt processing prior to returning interrupt acknowledge information
JPH07120338B2 (en) Method for a data processor to coordinate the execution of instructions by a coprocessor and the data processor
JP2583525B2 (en) Data processing device
JPH0528854B2 (en)
JP2823230B2 (en) How to continue processing
JPH08171504A (en) Emulation device
JP2808757B2 (en) Microprocessor for debugging
JPH07152598A (en) Incircuit emulator
JP2550708B2 (en) Debug method
JP2638078B2 (en) Information processing device
JPH07248939A (en) Processor and processor system
JPH07120343B2 (en) Multiprocessor system
JPH0214332A (en) Executable break factor detecting device
JPH0635760A (en) Buffer device with tracing function
JPS6148181B2 (en)
JPH01116753A (en) Access to peripheral equipment of one chip microcomputer
JPH07271608A (en) Interruption generating circuit
JPS6349941A (en) Arithmetic processing unit
JPH01293447A (en) Control system for address coincidence interruption
JPH0530950U (en) Information processing equipment
JPH06223046A (en) Bus tracing execution method
JPH04352260A (en) Device and method fork information processing

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees