JPS59202547A - Debugging device - Google Patents

Debugging device

Info

Publication number
JPS59202547A
JPS59202547A JP58076301A JP7630183A JPS59202547A JP S59202547 A JPS59202547 A JP S59202547A JP 58076301 A JP58076301 A JP 58076301A JP 7630183 A JP7630183 A JP 7630183A JP S59202547 A JPS59202547 A JP S59202547A
Authority
JP
Japan
Prior art keywords
break
memory
processor
data
address
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
JP58076301A
Other languages
Japanese (ja)
Inventor
Yoshinori Takahashi
義則 高橋
Haruo Takagi
高木 治夫
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP58076301A priority Critical patent/JPS59202547A/en
Publication of JPS59202547A publication Critical patent/JPS59202547A/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 set the optional number of desired conditional breaks by preserving a brake conditional setting table. CONSTITUTION:A multiplexer 7 of a debugging device 1 connects an address bus 16 of a processor 2 and an address input of a selection map memory 8 to bring this memory into the write state. Then, 16 kinds of stop conditions where the numbers of 0-15 are assigned as addresses are set to a break generation condition setting table memory BTM9. Then, the processor 2 interrupts the write signal of a control circuit 12 to bring the selection map memory 8 into the reading state, and also transmits a run signal of a processor 21 of an active machine 20 to a break control circuit 11 to control the execution of the program of the active machine 20. Further, the break generation conditional data is read from the BTM9 by using an identical address to the address of the program memory 22 to transmit the data to a comparison circuit 10.

Description

【発明の詳細な説明】 (発明の分野) 本発明は、プロセッサを備えた1幾器づなわち実機に接
続されてこの実機のプログラムデバッグを行なうデバッ
グ装置に関し、特にブレークポイントの決定、すなわち
条件付ブレーク発生をハードウェアで行なわせる他、複
数の条件設定をパターン化して、プログラムメモリの各
アドレスにそのパターンをすべて開放して用いらせると
ともに条件の比較をひとつの比較機構で行なうようにし
たデバッグ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a debugging device that is connected to a device having a processor, that is, an actual device, and performs program debugging of the actual device, and in particular, the present invention relates to a debugging device that is connected to a device having a processor, that is, a real device, and performs program debugging of the real device, and particularly, In addition to generating a break using hardware, multiple condition settings are patterned, and all of the patterns are released and used at each address in the program memory, and the conditions are compared using a single comparison mechanism. Regarding debugging equipment.

(発明の背景) デバッグ装置において、実1幾の動作を停止させるため
に用いられる手段としては、アドレスの一致のみで行な
うものがほとんどである。しかし、操作側からは、アド
レスが一致した上にさらに例えばデータの一致やライト
モードの時などの条件材でブレークを行なわせる要求が
ある。この場合において、従来は一旦実機を停止させた
後、ソフトウエアでデータを調べたり、ハードウェアで
専用の装置を付けて行なっているが、不要な時にブレー
クが発生したり、またハードウェアの専用装置のためブ
レークポイントやブレーク条件などの数m的にも制限が
あった。
(Background of the Invention) In most debugging devices, the means used to stop certain operations is based solely on matching addresses. However, there is a request from the operating side to perform a break based on conditions such as data matching or write mode, in addition to address matching. In this case, conventionally, after stopping the actual machine, the data is examined using software or a dedicated hardware device is installed, but breaks occur at unnecessary times, or the dedicated hardware Because of the equipment, there was also a limit on the number of breakpoints and break conditions.

(発明の目的) 本発明は、上述の従来形における問題点に鑑み、所望の
条件付ブレークの任意側の設定が可能なデバッグ装置を
提供することを目的とする。
(Object of the Invention) In view of the above-mentioned problems with the conventional type, an object of the present invention is to provide a debugging device that can set a desired conditional break on any side.

(発明の構成および効果) 本発明は、ブレーク機能を有するデバッグ装置において
、実機のプログラムメモリのアドレス空間に対応しかつ
該プログラムメモリの各アドレスに対応してブレーク条
件設定データを記憶したセレクトマツプメモリと、この
セレクトマツプメモリ出力によりアドレスされてブレー
ク条件を出力するブレーク条件設定テーブルメモリとを
用いるという構想に基づくもので、本発明によると、条
件イ]きブレークでも、必要な時のみのブレークですみ
、ブレークの回数を極めて減少させることができるため
、実機の走行が実時間に近い形となる。
(Structure and Effects of the Invention) The present invention provides a debugging device having a break function, in which a select map memory is provided which stores break condition setting data corresponding to the address space of the program memory of an actual machine and corresponding to each address of the program memory. This is based on the concept of using a break condition setting table memory that is addressed by this select map memory output and outputs a break condition.According to the present invention, even a break with a condition is a break only when necessary. The number of breaks can be greatly reduced, allowing the actual vehicle to run in a manner close to real time.

また、条件付きブレークの設定個数に制限がなくなる。Additionally, there is no limit to the number of conditional breaks that can be set.

(実施例の説明) 以下、図面により本発明の詳細な説明する。(Explanation of Examples) Hereinafter, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の1実施例に係わるデバッグ装置の概
略を示す。同図のデバッグ装置1はプ[1セツザ(CP
tJ2)2、メモリ4、数字表示器またはCTR等で構
成される表示器5、キーボード6、エミュレーションイ
ンターフェース回路6、マルチプレクサ7、セレクトマ
ツプメモリ、(SMM)8、ブレーク発生条件設定テー
ブルメモリ(BTM)9、比較回路10、ブレークコン
トロール回路11、コン1〜ロール回路12、ゲート回
路13゜14等を具備する。デバッグの対象となるプロ
グラムを実行する実機20は、プロセッサ(CPU1)
21および該プロセッサ210制御プログラムが格納さ
れたプログラムメモリ22を具備する。
FIG. 1 schematically shows a debugging device according to an embodiment of the present invention. The debug device 1 in the same figure is a program
tJ2) 2, memory 4, display 5 consisting of a numeric display or CTR, etc., keyboard 6, emulation interface circuit 6, multiplexer 7, select map memory (SMM) 8, break generation condition setting table memory (BTM) 9, a comparison circuit 10, a break control circuit 11, a controller 1 to a roll circuit 12, gate circuits 13 and 14, and the like. The actual machine 20 that executes the program to be debugged is a processor (CPU 1)
21 and a program memory 22 in which a control program for the processor 210 is stored.

プロセッサ21とメモリ22とはコントロールバス23
、アドレスバス24およびデータバス25を含むシステ
ムバスによって接続されている。実機20のアドレスバ
ス24はデバッグ装置1のマルチプレクサ7に接続され
ている。また、実機20のコントロールバス23および
データバス25は比較回路10に接続されている。
Processor 21 and memory 22 are connected to control bus 23
, an address bus 24 and a data bus 25. The address bus 24 of the real device 20 is connected to the multiplexer 7 of the debug device 1. Further, the control bus 23 and data bus 25 of the actual device 20 are connected to the comparison circuit 10.

セレクトマツプメモリ8は、実120のプログラムメモ
リ22のアドレス空間に対応したバイト数とBTIVj
9のアドレス空間に対応したビット数を有するメモリで
あり、例えばプログラムメモリ22が64にバイト、8
7M9が4ビツトすなわち16ケのブレーク条件が設定
可能な容量を有する場合にはセレクトマツプメモリは6
4にバイトメ4ビツトの容量を有づ−る。なお、5MM
8および87M9はそれぞれランダムアクセスメモリ(
RAM)により構成されている。マルチプレクサ7は、
実120のアドレスバス24とデバッグ装置1のアドレ
スバス16の内いずれかをセレク1−マツプメモリ8の
アドレス入力に切換接続するためのものである。
The select map memory 8 has a number of bytes corresponding to the address space of the real program memory 22 and BTIVj.
For example, the program memory 22 has 64 bytes and 8 bytes.
If the 7M9 has a capacity that allows setting of 4 bits, that is, 16 break conditions, the select map memory will be 6.
4 has a capacity of 4 bits. In addition, 5MM
8 and 87M9 are random access memories (
RAM). Multiplexer 7 is
This is for switching and connecting either the address bus 24 of the real 120 or the address bus 16 of the debugging device 1 to the address input of the select 1-map memory 8.

次に第1図のデバッグ装置の動作を第2図のフローチャ
ートを参照して説明する。
Next, the operation of the debugging device shown in FIG. 1 will be explained with reference to the flowchart shown in FIG.

第1図の回路においては、先ず、コントロール回路12
を介してデバッグ装置1のマルチプレクサ7がプロセッ
サ2のアドレスバス16とセレクトマツプメモリ8のア
ドレス人力どを接続するように切り換え、ゲート回路1
3.14を導通状態にして5MM8および87M9それ
ぞれのA a占妙Do〜D3およびDO〜Q15をそれ
ぞれデバッグ装置1のデータバス17に接続するととも
にセレクトマツプメモリ8に書込信号Wを印加してセレ
クトマツプメモリ8を書込状態にするtそして、最大1
6種類の停止条件を87M9にセラ1〜する。
In the circuit of FIG. 1, first, the control circuit 12
The multiplexer 7 of the debugging device 1 connects the address bus 16 of the processor 2 and the address input of the select map memory 8 via the gate circuit 1.
3.14 is brought into conduction, and Aa-senmyo Do~D3 and DO~Q15 of 5MM8 and 87M9 are respectively connected to the data bus 17 of the debugging device 1, and a write signal W is applied to the select map memory 8. Set the select map memory 8 to the write state, and then
Set six types of stop conditions to 87M9.

これらの停止条件はO〜15の番号がアドレスとして割
り付けられており、この値を5MM8の4ビツト(O〜
15)に全アドレス対応で書込む。この操作は全てデバ
ッグオペレータの要求により行なう。この後、プロセッ
サ2はコントロール回路12の書込信号を遮断してセレ
クトマツプメモリ8を読出状態にし、マルチプレクサ7
を実機20のアドレスバス24とセレク1−マツプメモ
リ8のアドレス入力とを接続する状態に設定し、さらに
グー1〜回路13.14を非導通状態にした後、ブレー
クコントロール回路11に実1幾20のプロセッサ21
のラン信号を送出する。これにより、プ[]セセッサ1
はブレークコン1〜ロール回路11よリラン信号が与え
られ実態20のプログラムを実行する。
These stop conditions are assigned numbers 0 to 15 as addresses, and these values are assigned to 4 bits of 5MM8 (0 to 15).
15) for all addresses. All of these operations are performed at the request of the debug operator. Thereafter, the processor 2 interrupts the write signal of the control circuit 12 to put the select map memory 8 in the read state, and the multiplexer 7
After setting the address bus 24 of the actual machine 20 and the address input of the select 1-map memory 8 to be connected, and making the circuits 1 to 13 and 14 non-conductive, the break control circuit 11 is connected to the actual 1 processor 21
Sends a run signal. This causes the processor 1
is given a rerun signal from the break controller 1 to the roll circuit 11 and executes the program of actual state 20.

この時、実機20のプロセッサ21からプログラムメモ
リ22がアクセスされて命令の実行が行なわれるが、プ
ロセッサ21からアドレスバス  24を介してメモリ
22に入力されるアドレスデータはマルチプレクサ7を
介してセレクトマツプメモリ8のアドレス入力に印加さ
れる。このため、セレクトマツプメモリ8は、実機20
においてアクセスさ机たプログラムメモリ22のアドレ
スと同じアドレスによってアクセスされその読出出力に
〜M子DO〜D3を介してBTM9のアドレス入力に印
加される。これによりBTM9からは16ビツトのブレ
ーク発生条件データが読み出され、このデータは比較回
路10に印加される。比較回路10ではBTM9の出力
する16ビツ(−のデータとコントロールバス23およ
びデータバス25に表われる16ビツトのデータとを比
較し、一致すれば出力” 1 ”を発生ずる。これによ
りブレークコントロール回路11は実機20のブl」セ
ッサ21をブレークさせるとともにブレークの発生をデ
バッグ装置1のプロセッサ2に通知し−C1動作を終了
する。
At this time, the program memory 22 is accessed from the processor 21 of the actual machine 20 to execute instructions, but the address data input from the processor 21 to the memory 22 via the address bus 24 is transferred via the multiplexer 7 to the select map memory. 8 address inputs. Therefore, the select map memory 8 is stored in the actual machine 20.
The program memory 22 is accessed by the same address as the address accessed in the program memory 22, and its read output is applied to the address input of the BTM 9 via the M child DO-D3. As a result, 16-bit break generation condition data is read from the BTM 9, and this data is applied to the comparison circuit 10. The comparison circuit 10 compares the 16-bit (-) data output from the BTM 9 with the 16-bit data appearing on the control bus 23 and the data bus 25, and if they match, generates an output "1". 11 causes the processor 21 of the actual device 20 to break and notifies the processor 2 of the debugging device 1 of the occurrence of the break, thereby ending the -C1 operation.

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

第1図は本発明の1実施例に係るデバッグ装置の概略の
構成を示すブロック図、第2図は第1図のデバッグ装置
の動作説明のためのノローチ1−−トである。 1・・・デバッグ装置、2・・・プロセラ1)、8・・
・セレクトマツプメモリ、9・・・BTM、10・・・
比較回路、11・・・ブレークコントロール回路、23
・・・コントロールバス、24・・・アドレスバス、2
5・・・データバス、20・・・実機、21・・・プロ
セッサ、22・・・プログラムメモリ。
FIG. 1 is a block diagram showing a general configuration of a debugging device according to an embodiment of the present invention, and FIG. 2 is a schematic diagram for explaining the operation of the debugging device shown in FIG. 1...Debug device, 2...Procera 1), 8...
・Select map memory, 9...BTM, 10...
Comparison circuit, 11... Break control circuit, 23
...Control bus, 24...Address bus, 2
5...Data bus, 20...Actual machine, 21...Processor, 22...Program memory.

Claims (1)

【特許請求の範囲】[Claims] 1、プロセラ1すと該プロセッサの制御プログラムを記
憶したプログラムメモリとを具備する実機の、システム
ハスもしくは該プロセッサのリード端子から71ヘレス
信号、データ信号およびコント−コール信号を取出して
プログラムデバッグを行なうデバッグ装置であって、該
デバッグ装置は、複数のブレーク発生条件が設定されて
いるブレーク発生条件設定テーブルメモリと、該実機プ
ロセラ骨すのブレークづべきアドレスに対応して所定の
該ブレーク発生条件選択データを記憶したセレクトマツ
プメモリと、該ブレーク発生条件設定テーブルメモリか
ら該セレクトマツプメモリの出力データを71〜レスと
しC読出されたブレーク発生条件と実機のデータバスお
よびコンI−〇−ルバスに表われるデータとの一致を検
出する比較回路と、を具備し、該比較回路で一致が検出
されたときブレーり動作を行なうことを特徴とするデバ
ッグ装置。
1. Program debugging is performed by extracting the 71 heres signal, data signal, and control signal from the system bus or the lead terminal of the processor of an actual machine that is equipped with a processor 1 and a program memory that stores the control program of the processor. A debugging device, the debugging device includes a break generation condition setting table memory in which a plurality of break generation conditions are set, and a predetermined break generation condition selection corresponding to an address at which a break should occur in the actual processor frame. The select map memory that stores the data and the output data of the select map memory from the break occurrence condition setting table memory are displayed as 71~res and the break occurrence conditions read out and the data bus and control bus of the actual machine. 1. A debugging device comprising: a comparison circuit that detects a match with data that is displayed, and performs a break operation when the comparison circuit detects a match.
JP58076301A 1983-05-02 1983-05-02 Debugging device Pending JPS59202547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58076301A JPS59202547A (en) 1983-05-02 1983-05-02 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58076301A JPS59202547A (en) 1983-05-02 1983-05-02 Debugging device

Publications (1)

Publication Number Publication Date
JPS59202547A true JPS59202547A (en) 1984-11-16

Family

ID=13601542

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58076301A Pending JPS59202547A (en) 1983-05-02 1983-05-02 Debugging device

Country Status (1)

Country Link
JP (1) JPS59202547A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63124144A (en) * 1986-11-13 1988-05-27 Nec Corp Information processor
JPS63124145A (en) * 1986-11-13 1988-05-27 Nec Corp Information processor
JPH02163842A (en) * 1988-12-16 1990-06-25 Sanyo Electric Co Ltd Program evaluating device for microcomputer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63124144A (en) * 1986-11-13 1988-05-27 Nec Corp Information processor
JPS63124145A (en) * 1986-11-13 1988-05-27 Nec Corp Information processor
JPH02163842A (en) * 1988-12-16 1990-06-25 Sanyo Electric Co Ltd Program evaluating device for microcomputer

Similar Documents

Publication Publication Date Title
US5132971A (en) In-circuit emulator
US6557119B1 (en) Microcomputer debug architecture and method
US6487683B1 (en) Microcomputer debug architecture and method
US6463553B1 (en) Microcomputer debug architecture and method
JPS59202547A (en) Debugging device
JPH0477833A (en) Integrated circuit provided with debugging environment
JPS59202546A (en) Debugging device
JPH0581087A (en) Processor monitoring system
JPH0836504A (en) Emulator
JPS60245052A (en) Data processing system
JPH0285934A (en) Emulator
JPH05173830A (en) Abnormal operation detecting method and emulator
JPH01306933A (en) Debugging device
JPS6113343A (en) Console device
JPS59163653A (en) Debug device
JPH0587850B2 (en)
JPS6148044A (en) Diagnosis system of processor
JPH04192040A (en) Debugging device
JPH05173829A (en) Error generating method
JPS6091458A (en) Program debug device of microprocessor
JPS6222154A (en) Debugging device
JPS59202550A (en) Debugging device
JPS6376023A (en) Microprocessor
JPS62212739A (en) Large scale integrated circuit
JPH0373011B2 (en)