JPS61145652A - Program debug device - Google Patents

Program debug device

Info

Publication number
JPS61145652A
JPS61145652A JP59266184A JP26618484A JPS61145652A JP S61145652 A JPS61145652 A JP S61145652A JP 59266184 A JP59266184 A JP 59266184A JP 26618484 A JP26618484 A JP 26618484A JP S61145652 A JPS61145652 A JP S61145652A
Authority
JP
Japan
Prior art keywords
address
signal
program
stop
processor
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
JP59266184A
Other languages
Japanese (ja)
Inventor
Koji Tachibana
立花 幸治
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 JP59266184A priority Critical patent/JPS61145652A/en
Publication of JPS61145652A publication Critical patent/JPS61145652A/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 intermit the execution of a program at plural stop addresses by writing in advance an interruption signal to a desired address corresponding to a stop address location of the program among an address of a RAM. CONSTITUTION:In order to set a stop address of a program by a CPU1, an address signal 17 is outputted to set ROM selection signal 18a, b and a data signal 16, and an interruption signal is written to an address corresponding to any stop address of address brake RAMs 11, 12. Further, the signal 17 is used to set a gate selection signal 18c and the signal 16 and a gate signal 19c. Then the state is in the stop address signal detection wait state. A debug program is executed by the CPU1 and when the signal 17 is coincident with the stop address, an interruption signal is read from the RAM11 or 12. Then the signal is latched by a circuit 14a, and becomes an interruption signal 19a for the CPU1. The CPU1 sets a selection signal 18d to recognize the interruption signal and reports the occurrence of an event.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、プロセッサに実行させるべきプログラムが設
計通シに動くかどうかを確認するためのプログラムデバ
ッグ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a program debugging device for checking whether a program to be executed by a processor runs as designed.

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

従来、この種の装置ではラッチ回路にプログラムの停止
アドレスを記憶させ、プロセッサによるプログラムの実
行アドレスがこのラッチ回路に記憶された停止アドレス
に一致したか否かを比較回路で比較し、一致したならば
プロセッサに対して割込み信号を入力し、プロセッサの
実行を中断させ、停止アドレスに致るまでのデータ処理
結果をオペレータに知らせるように構成されている。
Conventionally, in this type of device, a latch circuit stores a program stop address, and a comparison circuit compares whether or not the execution address of the program by the processor matches the stop address stored in the latch circuit. For example, it is configured to input an interrupt signal to the processor, interrupt the execution of the processor, and notify the operator of the results of data processing up to the stop address.

ところが、このように停止アドレスをラッチ回路に予め
記憶させるようKした場合、アドレス信号のビット数と
同一のラッチ回路が必要になり、複数の停止アドレスで
プログラムの実行を停止させるようにする場合にはラッ
チ回路の構成がさらに複雑になるという欠点があった。
However, if the stop address is stored in a latch circuit in advance in this way, a latch circuit with the same number of bits as the address signal is required, and if the execution of the program is to be stopped at multiple stop addresses, had the disadvantage that the structure of the latch circuit became more complicated.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、簡単な構成で複数の停止アドレスでプ
ログラムの実行を中断し得るプログラムデバッグ装置を
停供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a program debugging device that can suspend program execution at a plurality of stop addresses with a simple configuration.

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

本発明は、グログラムメモリのアドレスと1対lに対応
し、かつプログラムメモリのアドレス信号と同一信号で
アクセスされるランダムアクセスメモリを設け、このラ
ンダムアクセスメモリのアドレスのうちプログラムの停
止アドレス位置に対応し九所望のアドレスに割込み信号
を予め書込み、プロセッサの実行アドレスがこの停止ア
ドレス位置を示したとき割込み信号を続出してプロセッ
サの割込み入力に供給するようにしたものである。
The present invention provides a random access memory that corresponds one-to-one with the address of the program memory and is accessed by the same signal as the address signal of the program memory, and a program stop address position among the addresses of the random access memory is provided. An interrupt signal is written in advance at a corresponding nine desired address, and when the execution address of the processor indicates this stop address position, the interrupt signal is successively output and supplied to the interrupt input of the processor.

〔発明の実施例〕[Embodiments of the invention]

第1図は本発明の一実施例を示すプ目ツク図であり、(
イ)プログラムで指示された演算処理、(ロ)停止アド
レス検出時の割込み信号を受信して停止アドレス検出を
報告するアドレスブレーク検出処理、(ハ)通信手段を
介してデバッグ用コマンドを受信するコマンド受信処理
等の各処理を実行するCPU1と、演算処理データの記
憶部となるメモリ2と、上記の(イ)〜Piの各処理を
行うプログラムとデバッグ装置を用いて模擬的に実行す
るデバッグプログラムを記憶したROM3および4と、
コンソールCRT9からのデバッグコマンドを受信する
通信ユニット5と、プログラムの停止アドレスに対応し
たアドレスに割込み信号を記憶し、CPUIのアドレス
信号17が割込み信号の記憶アドレスを示したとき、そ
の割込み信号を出力するアドレスブレーク几AMIIお
よび12と、アドレス信号17を受けてシステム内のメ
モリブロックの1つを選択するデコーダ部1Gと、アド
レスブレークRAMIIおよび12の出力信号を受けて
CPUIに割込み信号111として出力するステータス
回路14と、割込み信号19aの送出をON、OFFす
るゲート回路13とから構成されている。なお、CPU
Iと個々の回路ブロックはアドレス信号17とデータ信
号16で接続されている。一方、通信ユニット5はドラ
イバ6とレシーバ7を介しコネクタ8に接続され、さら
に通信線2oを介してCRT9のコネクタ9bと接続さ
れている。また、デコード部10のROM選択信号18
mおよび1s bi’!、ROM3および番のアドレス
と重複する様、アドレスブレークAMII、12の選択
信号に接続されている。アドレスブレークRAMII 
FIG. 1 is a schematic diagram showing an embodiment of the present invention.
(b) Arithmetic processing instructed by the program, (b) Address break detection processing that receives an interrupt signal when a stop address is detected and reports the detection of a stop address, (c) Command that receives debugging commands via communication means. A CPU 1 that executes each process such as reception processing, a memory 2 that serves as a storage section for arithmetic processing data, a program that executes each process of (A) to Pi above, and a debug program that is executed in a simulated manner using a debug device. ROMs 3 and 4 that store
A communication unit 5 receives debug commands from the console CRT 9, stores an interrupt signal at an address corresponding to the program stop address, and outputs the interrupt signal when the address signal 17 of the CPUI indicates the storage address of the interrupt signal. address break RAM II and 12, a decoder unit 1G that receives the address signal 17 and selects one of the memory blocks in the system, and receives the output signal of the address break RAM II and 12 and outputs it as an interrupt signal 111 to the CPUI. It consists of a status circuit 14 and a gate circuit 13 that turns on and off the transmission of the interrupt signal 19a. In addition, the CPU
I and each circuit block are connected by an address signal 17 and a data signal 16. On the other hand, the communication unit 5 is connected to a connector 8 via a driver 6 and a receiver 7, and further connected to a connector 9b of a CRT 9 via a communication line 2o. Further, the ROM selection signal 18 of the decoding section 10
m and 1s bi'! , ROM3, and address break AMII, are connected to the selection signal of 12 so as to overlap with the address of ROM3 and number. Address break RAMII
.

12の出力端子Doはプルダウン抵抗r l 5 F 
+r15Gに接続され、ここから出力される信号はOR
ゲート14bを介してラッチ14aのデータ入力に入力
されている。ラッチ14aは、ラップ13aの出力であ
るゲート信号19CがONのときアドレスブレーク凡人
Mll、12の出力信号19dを受けてバッファ14D
を介して割込み信号150をONにする。割込み信号1
9aにはグ〃アップ抵抗15Hが接続されている。ゲー
ト信4)x9cのONは、ゲート信号18CをONにし
°ソランチ回路13aを選択し、さらにデータ信号16
をONにすることによって行なわれる。割込み信号19
aは、ステータス選択信号180をONにしてバッファ
14Eを開状態とすることにより、データ信号16を介
してCPUIに読込まれるう割込み信号192のリセッ
トは、リセット選択信号18EをONすることによシ行
なわれる。
12 output terminal Do is a pull-down resistor r l 5 F
Connected to +r15G, the signal output from here is OR
It is input to the data input of latch 14a via gate 14b. When the gate signal 19C, which is the output of the wrap 13a, is ON, the latch 14a receives the output signal 19d of the address break ordinary person Mll, 12, and the buffer 14D
The interrupt signal 150 is turned ON via the . Interrupt signal 1
A pull-up resistor 15H is connected to the pin 9a. Gate signal 4) To turn on x9c, turn on the gate signal 18C, select the solanchi circuit 13a, and then turn on the data signal 16.
This is done by turning on. Interrupt signal 19
a is read into the CPUI via the data signal 16 by turning on the status selection signal 180 and opening the buffer 14E.The interrupt signal 192 is reset by turning on the reset selection signal 18E. It is done.

第2図に信号の遷移図を示す。以上の構成において、C
PUIはプログラムの停止アドレスを設定するための、
この停止アドレスに対応するアドレス信号17を出力し
、几OM選択信号18a。
Figure 2 shows a signal transition diagram. In the above configuration, C
PUI is for setting the program stop address.
An address signal 17 corresponding to this stop address is output, and an OM selection signal 18a is output.

18bをON (LOW)とする。これと同時に、デー
タ信号16をONとし、アドレスブレークRAMII、
12のいずれかの停止アドレスに対応したアドレスに割
込み信号を書込む。次にCPU1はアドレス信号17で
ゲート選択信号18cをONさせる同時にデータ信号1
6をONにしてゲート信号19cをONにする。これに
よって、停止アドレス信号の検出待ち状態となる。そこ
で、デバッグプログラムがCPUIKよって実行され、
アドレス信号17が停止アドレスと一致すると、アドレ
スプV−り几λMlltたは12から割込み信号が読出
される。この割込み信号はラッチ回路14aでラッチさ
れ、CPU1の割込み信号19aとなる。CPU1はス
テータス選択信号18DtONすることにより、ラッチ
回路14aからの割込み信号であるのをg處し、事象発
生を報告する。
18b is turned ON (LOW). At the same time, the data signal 16 is turned on, and the address break RAM II
An interrupt signal is written to an address corresponding to one of the 12 stop addresses. Next, the CPU 1 uses the address signal 17 to turn on the gate selection signal 18c, and at the same time turns on the data signal 1.
6 is turned on to turn on the gate signal 19c. This results in a state of waiting for detection of a stop address signal. Therefore, the debug program is executed by CPUIK,
When the address signal 17 coincides with the stop address, an interrupt signal is read from the address amplifier λMllt or 12. This interrupt signal is latched by the latch circuit 14a and becomes an interrupt signal 19a for the CPU1. By turning on the status selection signal 18Dt, the CPU 1 detects that it is an interrupt signal from the latch circuit 14a and reports the occurrence of an event.

第3図にデバッグ処理を実行するプログラムのフロー図
を示すラブバッグ処理のコマンドは、通信ユニット5を
介してCBr4におけるキー人力により入力される。そ
して、実行結果も通信ユニット5を介してCRT 9’
の表示部へ表示される。
FIG. 3 shows a flowchart of a program for executing debug processing. Commands for love bag processing are inputted via the communication unit 5 by keystrokes in the CBr 4. As shown in FIG. The execution results are also sent to the CRT 9' via the communication unit 5.
displayed on the display section.

Mlユニット5からのコマンドデータの人力が終了する
と、次にコマンドの種別の判定が行なわれる。最初にコ
マンドがプログラム実行コマンドかどうかの判別を行い
、実行コマンドならば通信ユニット5を介してC几Tへ
許可の符号〔来〕を出力し、CBr4で指定された番地
から順にプログラム実行する。次に停止アドレス検出動
作の解除コマンドかどうかの判別を行い、解除コマンド
ならばアドレスブレーク8人Mll、12に記憶された
割込み信号のクリアならびにステータス回路14のリセ
ットを実行する。次に停止アドレスの設定コマンドか否
かの判別を行い設定コマンドならばアドレスブレーク凡
人Mll、12の該当アドレスに′″1°をセットしく
すなわち割込み信号を記憶させ)、さらにゲート回路1
3をON状態にセットする。次にメモリ内容のリードコ
マンドか否かの判別を行い、リードコマンドならばメモ
リ2から処理データを絖出し、通信ユニット5を介して
CR’r9へ出力する。次にメモリ内容のライトコマン
ドか否かの判別を行い、ライトコマンドならばメモリ2
へCBr4より入力されたデータを書込む。以上の処理
のいずれかが終了したならば、許可の「来」記号をCB
r4へ出力する。
When the input of command data from the Ml unit 5 is completed, the type of command is next determined. First, it is determined whether the command is a program execution command, and if it is an execution command, a permission code [come] is output to the CT via the communication unit 5, and the program is executed in order from the address specified by CBr4. Next, it is determined whether it is a cancellation command for the stop address detection operation, and if it is a cancellation command, the interrupt signal stored in the address break 8 Mll, 12 is cleared and the status circuit 14 is reset. Next, it is determined whether it is a stop address setting command or not, and if it is a setting command, the address break is set to ``1°'' in the corresponding address of 12 (in other words, an interrupt signal is stored), and then the gate circuit 1
Set 3 to ON state. Next, it is determined whether or not it is a read command for the memory contents, and if it is a read command, processing data is retrieved from the memory 2 and output to the CR'r9 via the communication unit 5. Next, it is determined whether or not it is a write command for the memory contents, and if it is a write command, memory 2
Write the data input from CBr4 to. Once any of the above processes are completed, change the permission “Ki” symbol to CB.
Output to r4.

一方、割込み信号19aが入力されると、割込み処理(
10Q処理)が実行され、通信ユニット5を介してCB
r4へ事象の発生が報告される。
On the other hand, when the interrupt signal 19a is input, the interrupt processing (
10Q processing) is executed, and the CB
The occurrence of the event is reported to r4.

第4図に本実施例のデパック装置で匣用するコマンドを
示し、第5図KCRT9への入出力結果光示の一例を示
している。コマンドはプログラムの実行コマンドG1停
止アドレス(アドレスブレーク)の設定コマンドv1ア
トVスプレークの解除コマンドU1メモリ2のデータリ
ードコマンド几、メモリ2のデータライトコマンドWが
用意されている。例えば、コマンドVでアドレスブV 
−りを5400400番地する。そして、コマンド −
Gで5000番地−よりプログラムを実行する。すると
、表示部の(3)にはプログラム実行時、540040
0番地したことが表示されるう次に、表示部の(4)で
その時のメモリ20100番地のデータをリードし、そ
の結果が2人でおることが(5)の位置に表示される。
FIG. 4 shows commands used in the depacking device of this embodiment, and FIG. 5 shows an example of displaying input/output results to the KCRT 9. The following commands are prepared: program execution command G1 stop address (address break) setting command v1 atto V splake release command U1 memory 2 data read command 几 and memory 2 data write command W. For example, with command V, address
- address 5400400. And the command −
Execute the program from address 5000 on G. Then, the display (3) shows 540040 when the program is executed.
It is displayed that the address 0 has been reached.Next, the data at the memory address 20100 at that time is read at the display section (4), and the result is displayed at the position (5) that there are two people.

さらに表示位置(6)でメモリの100番地に「01」
のデータをライトし、表示位置(7)で検出し九アドレ
スよりプログラムを続行することが表示される。また(
8)で再度アドレスが発生したことを検出し、(9)で
停止アドレスの検出が解除されたことが表示される。
Furthermore, at display position (6), "01" is placed in memory address 100.
It is displayed that the data is written, detected at display position (7), and the program continues from the 9th address. Also(
At step 8), it is detected that an address has been generated again, and at step (9), it is displayed that the detection of the stop address has been canceled.

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

以上説明したように本発明によれば、極めて簡易な構成
で停止アドレスの検出を行うことができ、プログラムの
デバッグが容易となる優れた効果がある。
As explained above, according to the present invention, a stop address can be detected with an extremely simple configuration, and there is an excellent effect that debugging of a program is facilitated.

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

第1図は本発明の一実施例を示す全体ブロック図、第2
図は実施例における信号遷移図、第3図はデバッグ用プ
ログラムのフロー図、第4図はコマンドの種別を示す図
、第り図はコマンド入出力例を示す図である。 1・・・CPU、3.4・・・ROM、11.12・・
・アドレスブレークRAM、13・・・ゲート回路、1
4・・・鞘口
FIG. 1 is an overall block diagram showing one embodiment of the present invention, and FIG.
3 is a flow diagram of a debugging program, FIG. 4 is a diagram showing types of commands, and FIG. 4 is a diagram showing an example of command input/output. 1...CPU, 3.4...ROM, 11.12...
・Address break RAM, 13...gate circuit, 1
4...Sheath mouth

Claims (1)

【特許請求の範囲】 1、プログラムメモリに記憶されたプログラムに従つて
所定の処理を実行するプロセッサの実行アドレスが予め
設定された停止アドレス位置に達したときに割込み信号
を発生し、上記プロセッサの処理を中断させるプログラ
ムデバッグ装置において、上記プログラムメモリのアド
レスと1対1に対応し、かつプログラムメモリのアドレ
ス信号と同一信号でアクセスされるランダムアクセスメ
モリを設け、このランダムアクセスメモリのアドレスの
うちプログラムの停止アドレス位置に対応した所望のア
ドレスに割込み信号を予め書込み、上記プロセッサの実
行アドレスがこの停止アドレス位置を示したとき割込み
信号を発生させて上記プロセッサの処理を中断させるよ
うに構成して成るプログラムデバッグ装置。 2、プログラムメモリに記憶されたプログラムに従つて
所定の処理を実行するプロセッサの実行アドレスが予め
設定された停止アドレス位置に達したときに割込み信号
を発生し、上記プロセッサの処理を中断させるプログラ
ムデバッグ装置において、上記プログラムメモリのアド
レスと1対1に対応し、かつプログラムメモリのアドレ
ス信号と同一信号でアクセスされるランダムアクセスメ
モリを設け、このランダムアクセスメモリのアドレスの
うちプログラムの停止アドレス位置に対応した所望のア
ドレスに割込み信号を予め書込み、上記プロセッサの実
行アドレスがこの停止アドレス位置を示したとき割込み
信号を発生させて上記プロセッサの処理を中断させるよ
うに構成し、かつ発生させた割込み信号を選択的にプロ
セッサに入力するゲート回路を設けて成るプログラムデ
バッグ装置。
[Claims] 1. Generates an interrupt signal when the execution address of a processor that executes a predetermined process according to a program stored in a program memory reaches a preset stop address position; In a program debugging device that interrupts processing, a random access memory is provided which has a one-to-one correspondence with the address of the program memory and is accessed by the same signal as the address signal of the program memory, An interrupt signal is written in advance to a desired address corresponding to the stop address position of the processor, and when the execution address of the processor indicates the stop address position, the interrupt signal is generated to interrupt the processing of the processor. Program debugging equipment. 2. Program debugging that generates an interrupt signal to interrupt the processing of the processor when the execution address of a processor that executes predetermined processing according to a program stored in the program memory reaches a preset stop address position. In the apparatus, a random access memory is provided which corresponds one-to-one with the address of the program memory and is accessed by the same signal as the address signal of the program memory, and corresponds to the stop address position of the program among the addresses of the random access memory. The interrupt signal is written in advance at a desired address of the processor, and when the execution address of the processor indicates the stop address position, the interrupt signal is generated to interrupt the processing of the processor, and the generated interrupt signal is A program debugging device comprising a gate circuit for selectively inputting data to a processor.
JP59266184A 1984-12-19 1984-12-19 Program debug device Pending JPS61145652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59266184A JPS61145652A (en) 1984-12-19 1984-12-19 Program debug device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59266184A JPS61145652A (en) 1984-12-19 1984-12-19 Program debug device

Publications (1)

Publication Number Publication Date
JPS61145652A true JPS61145652A (en) 1986-07-03

Family

ID=17427423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59266184A Pending JPS61145652A (en) 1984-12-19 1984-12-19 Program debug device

Country Status (1)

Country Link
JP (1) JPS61145652A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63197243A (en) * 1987-02-12 1988-08-16 Yokogawa Electric Corp In-circuit emulator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63197243A (en) * 1987-02-12 1988-08-16 Yokogawa Electric Corp In-circuit emulator

Similar Documents

Publication Publication Date Title
JPS61145652A (en) Program debug device
JPH05204582A (en) Display device
JPH01123342A (en) Writing protecting circuit for memory
JPS59229651A (en) Device for developing system
JPS6126686B2 (en)
JPH02128266A (en) Register with protective function
JPH0196743A (en) Monitor device
JPS60243752A (en) Data tracing device
US20030160773A1 (en) Microcomputer having OSD circuit, and bus control device and method
JPH03266154A (en) Information processor
JPS6020779B2 (en) Composite computer system
JPS6042496B2 (en) Parity error processing method
JPS60195650A (en) Debugging device
JPS62111329A (en) Method and circuit for preventing abnormal output of control circuit
JPH0226252B2 (en)
JPS59163653A (en) Debug device
JPS6129953A (en) Trace controlling method
JPS61138344A (en) Debugging system
JPH04304532A (en) Computer provided with debugging function for rom program
JPH04367955A (en) Memory protecting system
JPS6235947A (en) Controller
JPH08297592A (en) Controller
JPS61216053A (en) System and device for local memory
JPS63201737A (en) Method and device for supporting development of computer program
JPH0520131A (en) Address monitoring system