JPS60142435A - Debugging device of program - Google Patents

Debugging device of program

Info

Publication number
JPS60142435A
JPS60142435A JP58250368A JP25036883A JPS60142435A JP S60142435 A JPS60142435 A JP S60142435A JP 58250368 A JP58250368 A JP 58250368A JP 25036883 A JP25036883 A JP 25036883A JP S60142435 A JPS60142435 A JP S60142435A
Authority
JP
Japan
Prior art keywords
address
monitoring
register
contents
instruction
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
JP58250368A
Other languages
Japanese (ja)
Inventor
Keiichi Yu
恵一 勇
Shigemi Adachi
茂美 足立
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58250368A priority Critical patent/JPS60142435A/en
Publication of JPS60142435A publication Critical patent/JPS60142435A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To execute flexible program debugging by adding a monitoring data register, a flip-flop (FF) and a selector. CONSTITUTION:The monitoring address register 5 in which an address to be monitored is set by an address monitoring instruction, a monitoring data register 6 to be held at the contents of a main storage device 2 corresponding to said monitoring address and the FF9 for setting any one out of three modes, stop/ interruption/neglect, are formed. Every completion of each instruction execution, the contents of the monitoring address are compared with the monitoring data, and if both contents coincide with each other, the program is branched to the succeeding instruction execution routine. In case of dissidence, the executed operation mode out of said three modes is detected and the program is branched to the corresponding processing.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、プログラム・デバッグ装置に関し、特に少量
のハードウェアを付加するのみで、プログラムのデバッ
グが可能なデバッグ装置C関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a program debugging device, and particularly to a debugging device C that is capable of debugging a program by adding only a small amount of hardware.

〔発明の背景〕[Background of the invention]

従来、ソフトウェアの開発時のデバッグでは、ソフトウ
ェア・バグのために主記憶装置内のデータが破壊され、
暴走または異常停止することがよくある。このような場
合、メモリ破壊の原因を探索する方法としては、次の方
法があった。
Traditionally, during debugging during software development, data in main memory is destroyed due to software bugs.
It often runs out of control or stops abnormally. In such cases, the following methods were available to search for the cause of memory corruption.

(()異常停止時のメモリ・ダンブリストを取得して、
メモリ破壊エリアを検出し、声だプログラム・トレース
等によりどのプログラムが実行されたかを見て、メモリ
破壊要因を想定することができる。
(() Obtain the memory dump list at the time of abnormal stop,
By detecting a memory corruption area and observing which program was executed using a voice program trace, etc., it is possible to assume the cause of the memory corruption.

しかし、どの時点で破壊されるかを判別するには、長時
間を要するという欠点がある。
However, it has the disadvantage that it takes a long time to determine at what point it will be destroyed.

01)アドレス停止機能を持つ場合Cは、メモリ破壊エ
リアのアドレスを指定し、そのアドレスに対するメモリ
書き込みが行われたとき停止するようにして、メモリ破
壊要因を判定する。しかし、同じエリアの書き込みでも
、正常な書き込みがあり、しかも何回か正常な書き込み
があった後、−異常な書き込みが起る等、異常な書き込
みが希にしか発生しない場合には、毎回停止させながら
データの内容を確認することが煩わしくなり、異常が検
出できるまでかなり時間を要するという欠点がある。
01) Case with address stop function C specifies the address of the memory destruction area, stops when memory writing to that address is performed, and determines the cause of memory destruction. However, even when writing to the same area, if there is a normal write, and after several normal writes, an abnormal write occurs only rarely, the system stops every time. This has the drawback that it is cumbersome to check the contents of the data while changing the data, and it takes a considerable amount of time to detect an abnormality.

〔発明の目的) 本発明の目的は、これらの従来の欠点を除去し、比較的
少量のハードウェアを付加するのみで、融通性のあるプ
ログラム・デバッグを行うことができ、メモリ破壊要因
やプログラム異常箇所を短時間で検出できるプログラム
・デバッグ装置を提供することにある。
[Object of the Invention] An object of the present invention is to eliminate these conventional drawbacks, to perform flexible program debugging with only the addition of a relatively small amount of hardware, and to eliminate memory corruption causes and program debugging. It is an object of the present invention to provide a program debugging device that can detect abnormalities in a short time.

〔発明の概要〕[Summary of the invention]

上記目的を達成するため、本発明のプログラム・デバッ
グ装置は、アドレス監視命令により監視すべきアドレス
が設定される監視アドレス記憶手段と、該監視アドレス
に対応する主記憶装置の内容を保持する監視データ記憶
手段と、停止、割込み、無視のうちの1つのモードを指
示する手段を有し、各命令実行完了時点ごとにアドレス
監視ルーチン「分岐して一上記監視アドレス記憶手段の
アドレスい対応する主配憶装置の内容を読み出し、該内
容と1−記監視データ記憶手段の内容とを比較し、一致
していれは次の命令実行ルーチンに分岐し、不一致であ
わば指示されたモードにしたがって、アドレス停止処理
、アドレス監視割込み処理および無視の1つに分岐する
ことに特徴がある。
In order to achieve the above object, the program debugging device of the present invention includes a monitoring address storage means in which an address to be monitored is set by an address monitoring instruction, and monitoring data that holds the contents of a main memory corresponding to the monitoring address. It has storage means and means for instructing one mode among stop, interrupt, and ignore, and each time the execution of each instruction is completed, the address monitoring routine ``branches'' and stores the address of the monitoring address storage means corresponding to the main address. The contents of the storage device are read out, and the contents are compared with the contents of the 1-memory monitoring data storage means. If they match, the process branches to the next instruction execution routine, and if they do not match, the address is read according to the instructed mode. It is characterized by branching to one of stop processing, address monitoring interrupt processing, and ignore.

〔発明の実施例) 以下、本発明の実1布例を、図面「より説明する。[Embodiments of the invention] Hereinafter, a practical example of the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すプログラム・デバッグ
装置のブロック図である。
FIG. 1 is a block diagram of a program debugging device showing one embodiment of the present invention.

■は演W、器、2は主記憶装置であり、3は主記憶アク
セスアドレスを保持するアドレスレジスタ、生は主記憶
装置への書き込みデータ、又は読み出しデータを保持す
るメモリバッファレジスタ、5はアドレス監視命令によ
り設定される監視アドレスな保持する監視アドレスレジ
スタ、6は監視アドレスに対応する主記憶装M2の内容
を保持する監視データレジスタである。
2 is the main memory, 3 is the address register that holds the main memory access address, raw is the memory buffer register that holds the write data or read data to the main memory, 5 is the address A monitoring address register 6 holds the monitoring address set by the monitoring command, and a monitoring data register 6 holds the contents of the main memory M2 corresponding to the monitoring address.

第2図は、本発明のマイクロプログラムシーケンサブロ
ック図であり、7はマイクロ命令レジスタ、8は次のマ
イクロ命令を読み出す制御記憶装置アドレスを選択する
デコーダ、9はマイクル命令分岐を発生させるアドレス
監視分岐発生回路及び、アドレス監視割込み発生回路及
び、他の割込み発生回路を集めた割込み発生回路、10
はマイクロプログラム・カウンタ、11は+lliW、
12はマイクロプログラム・カウンタ10の内容と、オ
ペコード・ブランチアドレスと、マイクロ命令が指定す
るブランチアドレスのうちのいずれか]、つを、デコー
ダ8の指定・により選択するセレクタである。
FIG. 2 is a block diagram of the microprogram sequencer of the present invention, in which 7 is a microinstruction register, 8 is a decoder that selects the control storage address from which to read the next microinstruction, and 9 is an address monitoring branch that generates a microinstruction branch. Interrupt generation circuit 10 that collects a generation circuit, an address monitoring interrupt generation circuit, and other interrupt generation circuits
is the microprogram counter, 11 is +lliW,
Reference numeral 12 denotes a selector that selects one of the contents of the microprogram counter 10, the opcode branch address, and the branch address designated by the microinstruction, according to the designation of the decoder 8.

第3図は、マイク四プ四グラム制御部のブロック図であ
る。
FIG. 3 is a block diagram of the microphone quadrature control section.

第3図は、第1図のプログラム・デバッグ装置(li[
l)と第2図のマイクロプログラム・シーケンサとの関
係を示すものである。主記憶装置2に記憶されている各
機械命令に対して、それぞれマイクロプログラムが対応
して制御記憶装置14に格納されており、主記憶装置2
からプログラムの命令が読み出されてメモリ・バッファ
・レジスタ牛にセットされると、レジスタ4の操作部か
ら制御記憶アドレス・レジスタ13に先頭アドレスが送
出されることにより、対応するマイクロプログラムが制
御記憶装置14から制剖記憶データ・レジスタ7に読み
出される。データ・レジスタ7のアドレス部の内容は、
第2図のマイクロプログラム・シーケンサ20を経由し
て、次のアドレスが制御記憶アドレス・レジスタ13に
送られる。
FIG. 3 shows the program debugging device (li[
1) and the microprogram sequencer of FIG. 2. A corresponding microprogram is stored in the control storage device 14 for each machine instruction stored in the main storage device 2.
When a program instruction is read from and set in the memory buffer register, the start address is sent from the operation section of register 4 to control memory address register 13, so that the corresponding microprogram is stored in control memory. The data is read from the device 14 into the anatomical storage data register 7. The contents of the address part of data register 7 are:
Via the microprogram sequencer 20 of FIG. 2, the next address is sent to the control storage address register 13.

第3図の命令カウンタ15は、第1図では省略されてお
り、この命令カウンタ15の指定する番地がアドレス・
レジスタ3に順次セットされると、主記憶装置2のその
アドレスから命令が読み出され、メモリ・バッファ・レ
ジスタ牛に移される。
The instruction counter 15 in FIG. 3 is omitted in FIG. 1, and the address specified by this instruction counter 15 is the address.
Once set in register 3, the instruction is read from that address in main memory 2 and moved to the memory buffer register.

命令レジスタ養の操作部は制御記憶アドレス・レジスタ
13に出力されるが、アドレス部はアドレス・レジスタ
3に移される。
The operational part of the instruction register is output to the control storage address register 13, while the address part is moved to the address register 3.

第1図の監視アドレス・レジスタδは従来より設けられ
ていたものであり、したがって、本発明は、爪1図の監
視データ・レジスタ6と第2図の7リツプ・フロップ9
とセレクタ12とを新たに設けるのみで実現される。
The supervisory address register δ of FIG. 1 is conventional, and therefore the present invention combines the supervisory data register 6 of FIG. 1 and the seven lip-flop 9 of FIG.
This can be realized by simply providing a new selector 12.

すなわち、本発明においては、従来より設けらレテイる
監視アドレス・レジスタ5と比較器(演算器1)の他に
、監視データ・レジスタ6を設けるとともに、アドレス
監視命令によって停止/割込み/無視の3つのモードの
いずれか]一つを設定できる2ビツトの7リツプ・フロ
ップ9を設け、同じアドレス監視命令により値が設定さ
れる監視アドレスを監視アドレス・レジスタ5に保持し
、同時にそのときのアドレスに対応する主記憶装置2の
内容を監視データ・レジスタ6に保持しながら、それ以
後の命令で命令完了後、毎回、監視アl゛レスの内容と
監視データとを比較し、不一致であれば、先に設定され
たδつのモードのうちのいずれであるかを検出して、処
理を分けるようにしている。
That is, in the present invention, in addition to the conventional monitoring address register 5 and comparator (calculating unit 1), a monitoring data register 6 is provided, and three types of stop/interrupt/ignoring are provided by the address monitoring command. A 2-bit 7-lip-flop 9 is provided that can set one of the two modes], and the monitor address whose value is set by the same address monitor instruction is held in the monitor address register 5, and at the same time the address at that time is While retaining the contents of the corresponding main memory device 2 in the monitoring data register 6, the contents of the monitoring address and the monitoring data are compared each time after the completion of a subsequent instruction, and if there is a mismatch, The process is divided by detecting which of the previously set δ modes it is in.

第牛図は、第1図、第2図、第3図の動作フローチャー
トである。
Fig. 3 is an operational flowchart of Figs. 1, 2, and 3.

第4図において、]00は一般の命令実行であり、マイ
クロ命令動作11.0がこれに対応して走行する。10
1けアドレス監視命令実行であり、マイクロ命令動作1
11がこねに対応する。また、102はアドレス監視命
令が出さtまた後の一般命令実行であり、マイクロ命令
動作]、12がこれに対応して走行する。
In FIG. 4, ]00 is a general instruction execution, and microinstruction operation 11.0 runs correspondingly. 10
Execution of 1-digit address monitoring instruction, microinstruction operation 1
11 corresponds to kneading. Further, 102 is the execution of a general instruction after the address monitoring instruction is issued, and 12 is executed corresponding to the microinstruction operation.

先ず、一般の命令実行100では、マイクロ命令が従来
のデータ処理装置と同じようにして、主記憶装置t 2
より命令フェッチを行い、メモリ・バッファ・レジスタ
生に移した後、レジスタ4の操作部をデコードしてこの
命令を実行するマイクロ命令群の先頭番地に分岐し、分
岐アドレスを制御記憶アドレス・レジスタ13に移す(
1) (2)。
First, in a general instruction execution 100, a microinstruction is stored in the main memory t2 in the same manner as in a conventional data processing device.
After fetching the instruction and moving it to the memory buffer register raw, the operation section of register 4 is decoded and branched to the first address of the microinstruction group to execute this instruction, and the branch address is transferred to the control memory address register 13. Move to (
1) (2).

制御配憶装置14の上記分岐アドレスから読み出された
マイクロ命令は、アドレス部のシーケンス・コントルー
ル・フィールド(S C)でオペコード・ブランチ・ア
ドレス指定を設定しておくと、デコーダ8がこのフィー
ルド(S C)をデコードしてオベコー ド・ブランチ
・アドレスを選択するので、セレクタ12はオペコード
・ブランチ・アドレスを選択して、制御記憶アドレス・
レジスタ13にこれを移し、制御記憶装置14の上記ブ
ランチ・アドレスからマイクロ命令を読み出して制御記
憶アドレス13に移す(3)。
The microinstruction read from the branch address of the control storage unit 14 is processed by the decoder 8 if the opcode branch address specification is set in the sequence control field (SC) of the address section. (S C) to select the opcode branch address, selector 12 selects the opcode branch address and selects the control storage address.
This is moved to the register 13, and the microinstruction is read from the branch address of the control storage device 14 and transferred to the control storage address 13 (3).

次に各命令を実行するマイクロ命令が各々実行されるご
とに、このマイクロ命令はSCフィールドでマイクロプ
ログラム・カウンタ〕、0を選択し、カウンタ10が指
示するアドレスを制御記憶アドレス・レジスタ]3に移
して、次の読み出しアドレスにすると同時に、制御記憶
データ・レジスタ70マイクロ操作部をデコードして制
御信号群を発生することにより演算器1、主記憶装置2
等の各所を制御し、逐次、マイクロ命令を実行する。
Then, as each microinstruction is executed, this microinstruction selects 0 in the microprogram counter 10 in the SC field, and stores the address pointed to by counter 10 in the control storage address register 3. At the same time, by decoding the control storage data register 70 micro-operation unit and generating a group of control signals, the arithmetic unit 1 and the main memory 2
etc., and execute micro-instructions sequentially.

なお、命令の処理によっては、マイクロ命令は分岐する
鳩舎もある。命令がアドレス監視命令のときには、マイ
クロ命令動作111が走行する。すなわち、マイクロ命
令は、オペランドて記述されたアドレス引算を行い、そ
の結果を監視アドレス・レジスタ5とアドレス・レジス
タ5にセットする(]1.)’(2)。アドレス・レジ
スタ5のアドレスにしたがって、主記憶装置2から内容
を読み出し、メモリ・バッファ・レジスタ4と演n’a
 1 ヲfn由して、監視データ・レジスタ6にセット
する(3)(4)。また、命令で設定されたモードのイ
↑IL、割込み、無視にしたがい、2ビツト・フリップ
・プロップ9の値をそれぞれ(0,0)、(1,0)。
Note that depending on the processing of the instruction, there are cases where the microinstruction branches. When the instruction is an address monitoring instruction, microinstruction operation 111 is executed. That is, the microinstruction performs address subtraction described as an operand, and sets the result in the monitoring address register 5 and the address register 5 (]1.)'(2). According to the address of the address register 5, the contents are read from the main memory 2 and stored in the memory buffer register 4 and
1 Set in the monitoring data register 6 via fn (3) (4). In addition, the values of the 2-bit flip-prop 9 are set to (0, 0) and (1, 0), respectively, according to the modes set by the instruction: I↑IL, interrupt, and ignore.

(0,1)とする(5)。この設定は、パネル操作によ
っても可能である。
(0,1) (5). This setting can also be done by panel operation.

さらに、アドレス監視分岐回路の動作指示、すなわちマ
イクロ命令のアドレス部のBAフィールドに゛rドレス
監視ルーチンの先頭アドレスを設定する (6)。そし
て、次の命令フェッチと次の命令実行に移る(7)。一
度、アドレス監視命令が実行されると、一般命令実行1
02に移り、停止、割込み、次のアドレス監視命令が実
行されるまで、マイクロ命令動作112が走行する(8
)。すなわち、一般の命令をマイクロ命令が実行した後
α)、アドレス監視ルーチンに分岐しく2)、監視アド
レス・レジスタ5より監視アドレスを読み出し、演算器
1を経由してアドレス・レジスタ3にセリトン、このア
ドレスで主記憶装置2の内容を読み出す(3)(4)。
Furthermore, the start address of the address monitoring routine is set in the BA field of the address portion of the address monitoring branch circuit operation instruction, that is, the microinstruction (6). Then, the next instruction is fetched and the next instruction is executed (7). Once the address monitoring instruction is executed, general instruction execution 1
02, microinstruction operations 112 run until the stop, interrupt, and next address watch instructions are executed (8
). That is, after the microinstruction executes a general instruction α), it branches to the address monitoring routine 2), reads the monitoring address from the monitoring address register 5, and stores Seriton in the address register 3 via the arithmetic unit 1. Read the contents of the main memory 2 at the address (3) (4).

読み出されたメモリ・バッファ・レジスタ4の内容と監
視データ・レジスタ6の内容を、そねぞね演算器lに入
力して両者を比較し、一致していわば、次の命令のフェ
ッチと次の命令実行に移る(5)(6)。不一致であれ
ば、次に読み出されたマイクロ命令のアドレス部OFF
フィールド(判定指示を設定しておくことにより、フリ
ップ・フロップ9の値がデコーダ8に読み出さね、デコ
ーダ8において判定される(7)。
The contents of the read memory buffer register 4 and the contents of the monitoring data register 6 are input to the arithmetic unit 1 and compared, and if they match, the next instruction is fetched and the next instruction is executed. The program then moves on to executing the instructions (5) and (6). If there is a mismatch, the address part of the next read microinstruction is turned off.
By setting the field (judgment instruction), the value of the flip-flop 9 is read out to the decoder 8, and is determined in the decoder 8 (7).

フリップ・フロップ9の値が(0,0)のときは「停止
」であるから、デコーダ8よりプログラム実行中割込み
要因のうちの停止指示が発行さね、停止処理が行われる
(8)。また、(Ol)のときは「無視」であるから、
一致していたときと同じ処理、つまり命令フェッチとオ
ペコード・ブランチを行う(9)。
When the value of the flip-flop 9 is (0, 0), it means "stop", so the decoder 8 does not issue a stop instruction among the interrupt factors during program execution, and the stop processing is performed (8). Also, when it is (Ol), it is "ignored", so
The same processing as when there is a match, that is, instruction fetch and opcode branch, is performed (9).

また、(1,0)のときけ、「割込み」であるから、ア
ドレス監視割込み!因をセットして、デコーダ8から割
込みを発生させることにより割込み処理が実行される(
10) (11)。
Also, when it is (1, 0), it is an "interrupt", so it is an address monitoring interrupt! Interrupt processing is executed by setting the cause and generating an interrupt from the decoder 8 (
10) (11).

割込み処理は、実行中のプログラムを中断して、他のプ
ログラムに制御を移す機能であり、ハードウェアの異常
によるものや入出力装置その他、外部要因によるものは
、他のρ1込みとしてフリップ・フロップ9に非同期で
優先的に入力され、内容が(0,O)、(0,1)、(
1,0)以外の例えば(1,1)k−変更される。これ
らの割り込み要因がフリップ・フロップ9にセットされ
ているとき虹は、セレクタ12は次の命令の読み出しに
移らずば、分岐して割込み制御のマイクロプログラムに
移るようにする。そして、フリップ・フロップ9の値が
(1,0)のとき(は、デバッグ機能の処理を割込み先
のソフトウェアCまがせることができる。
Interrupt processing is a function that interrupts the program being executed and transfers control to another program. Interrupt processing is a function that interrupts the program being executed and transfers control to another program. Interrupt processing due to hardware abnormalities, input/output devices, and other external factors is 9 is asynchronously and preferentially input, and the contents are (0, O), (0, 1), (
For example, (1,1)k-other than 1,0) is changed. When these interrupt factors are set in the flip-flop 9, the selector 12 does not proceed to reading the next instruction, but instead branches to the interrupt control microprogram. Then, when the value of the flip-flop 9 is (1, 0), the processing of the debug function can be made to bypass the interrupt destination software C.

また、(0,0)のときには、プログラムを停止させて
、ログアウトさせることもできる。割込み処理プログラ
ムによる処理が終了すると、中断したプログラムを再開
するために、処理装置の各柿状態やレジスタ内容等を復
元し、中断した点から実行を再開する。
Furthermore, when the value is (0, 0), the program can be stopped and logout can be performed. When the processing by the interrupt processing program is completed, in order to resume the interrupted program, each persimmon status and register contents of the processing device are restored, and execution is resumed from the interrupted point.

なお、本実隋例では、監視アドレス・レジスタ5と監視
データ・レジスタ6は、特別なハードウェアとして説明
されているが、主記憶装置2中のソフトウェアからアク
セスできないハードウェア1i’fl ’il 領b4
i (プレフィクス・エリア)でもよいし、また読み出
し、書き込みが可能な制御記憶装置14である場合には
、この制御記憶装置14内の所定の領域を割当てること
もできる。
In this example, the monitoring address register 5 and the monitoring data register 6 are explained as special hardware; b4
i (prefix area), or if the control storage device 14 is readable and writable, a predetermined area within the control storage device 14 can be allocated.

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

以上説明したように、本発明によれは、通常のy+′m
mに少量のハードウェアを付加するのみで、アドレス比
較および監視データネ一致時の停止、あるいは割込みに
よるソフトウェアへの連絡、または無視させる等の融通
性のあるプログラム・デバッグを行うことができ、メモ
リ破壊要因や異常箇所を短時間で検出することができる
As explained above, according to the present invention, the normal y+'m
By simply adding a small amount of hardware to m, you can perform flexible program debugging such as stopping when an address comparison and monitoring data match match, or communicating or ignoring software using an interrupt, thereby preventing memory corruption. Causes and abnormal locations can be detected in a short time.

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

第1図は本発明の一実施例を示すプログラム・デバッグ
装置のブロック図、第2図は本発明の一実施例を示すマ
イクロプログラム・シーケンサのブロック図、第3図は
第1図と第2図の関係を示すマイクロプログラム制御部
のブロック図、第4図は第1図、第2図、第3図の動作
フローチャートである。 l:演算器、2:主記憶装置、3=アドレス・レジスタ
、4:メモリ・バッファ・レジスタ、5:監視アドレス
・レジスタ、6:監視データ・レジスタ、7:マイクロ
命令レジスタ、8:デコーダ、9:割込み発生回路(ス
リップ・フロップ)、10!マイク四プログラム・カウ
ンタ、11:+1加算器、12:セレクタ、13=制御
記憶アドレス・レジスタ、14:制御記憶装置、15:
命令カウンタ。 特許出願人 株式会社 日立製作所 代 理 人 弁理士 磯 村 雅 俊 第1図 第2図 第3図
FIG. 1 is a block diagram of a program debugging device showing an embodiment of the present invention, FIG. 2 is a block diagram of a microprogram sequencer showing an embodiment of the present invention, and FIG. 3 is a block diagram of a program debugging device showing an embodiment of the present invention. FIG. 4 is a block diagram of the microprogram control section showing the relationship between the figures, and FIG. 4 is an operation flowchart of FIGS. 1, 2, and 3. l: Arithmetic unit, 2: Main memory, 3 = Address register, 4: Memory buffer register, 5: Monitoring address register, 6: Monitoring data register, 7: Microinstruction register, 8: Decoder, 9 : Interrupt generation circuit (slip flop), 10! Microphone 4 program counter, 11: +1 adder, 12: selector, 13 = control storage address register, 14: control storage, 15:
instruction counter. Patent applicant: Hitachi, Ltd. Attorney: Masatoshi Isomura Figure 1 Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] (1)アドレス監視命令により監視すべきアドレスが設
定される監視アドレス記憶手段と、該監視アドレスに対
応する主記憶装置の内容を保持する監視データ記憶手段
と、停止、割込み、無視のうちの1つのモードを指示す
る手段を有し、各命令実行完了時点ごとにアドレス監視
ルーチン1分Mして上記監視アドレス記憶手段のアドレ
スに対応する主記憶装置の内容を読み出し、該内容と上
記監視データ記憶手段の内容とを比較し、一致していれ
ば次の命令実行ルーチンに分岐し、不一致であれば指示
されたモードにしたがって、アドレス停止処理、アドレ
ス監視割込み処理および無視の1つに分岐することを特
徴とするプログラム・デバッグ装置。
(1) A monitoring address storage means in which an address to be monitored is set by an address monitoring command, a monitoring data storage means for holding the contents of the main memory corresponding to the monitoring address, and one of stop, interrupt, and ignore. The address monitoring routine reads the contents of the main memory corresponding to the address of the monitoring address storage means for 1 minute each time the execution of each instruction is completed, and stores the contents and the monitoring data. Compare the contents of the means, and if they match, branch to the next instruction execution routine, and if they do not match, branch to one of address stop processing, address monitoring interrupt processing, or ignore according to the specified mode. A program debugging device featuring:
JP58250368A 1983-12-28 1983-12-28 Debugging device of program Pending JPS60142435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58250368A JPS60142435A (en) 1983-12-28 1983-12-28 Debugging device of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58250368A JPS60142435A (en) 1983-12-28 1983-12-28 Debugging device of program

Publications (1)

Publication Number Publication Date
JPS60142435A true JPS60142435A (en) 1985-07-27

Family

ID=17206880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58250368A Pending JPS60142435A (en) 1983-12-28 1983-12-28 Debugging device of program

Country Status (1)

Country Link
JP (1) JPS60142435A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5145948A (en) * 1974-10-17 1976-04-19 Tokyo Shibaura Electric Co
JPS51147144A (en) * 1975-06-13 1976-12-17 Hitachi Ltd Information processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5145948A (en) * 1974-10-17 1976-04-19 Tokyo Shibaura Electric Co
JPS51147144A (en) * 1975-06-13 1976-12-17 Hitachi Ltd Information processor

Similar Documents

Publication Publication Date Title
JPH04223532A (en) Improved processor
JPS6019028B2 (en) information processing equipment
JPS60142435A (en) Debugging device of program
KR970011209B1 (en) Microprocessor including circuit for generating signal used for tracing executed instruction stream
KR920003909B1 (en) Debugging supporting circuit
JPS62145426A (en) Microprograms processing unit
JPS60124746A (en) Data processing unit
JP2761324B2 (en) High-speed processing method
JPH0311430A (en) Abnormality processing method at time of fetch access
JPH03105529A (en) Psw type error control circuit
KR100384875B1 (en) Micro sequencer processing unsafe on microprocessor having pipeline structure
JPS61240341A (en) Microprogram controller
JPS62197834A (en) Microprogram controller
JPH0279122A (en) Floating point arithmetic mechanism
JPS6116338A (en) Interrupt processing system of virtual computer system
JPS62284435A (en) Arithmetic processor
JPS6278630A (en) Information processor
JPS6049442A (en) Microdiagnosis system
JPH03154929A (en) Central processing unit
JPS6240550A (en) Program debug device
JPS60247743A (en) Pipeline arithmetic controller
JPH06324911A (en) Interrupting method for program execution
JPS60247742A (en) Pipeline arithmetic controller
JPS613251A (en) Program debugging mechanism of processor
JPH01293447A (en) Control system for address coincidence interruption