JPS59158449A - Debugging device - Google Patents

Debugging device

Info

Publication number
JPS59158449A
JPS59158449A JP58032184A JP3218483A JPS59158449A JP S59158449 A JPS59158449 A JP S59158449A JP 58032184 A JP58032184 A JP 58032184A JP 3218483 A JP3218483 A JP 3218483A JP S59158449 A JPS59158449 A JP S59158449A
Authority
JP
Japan
Prior art keywords
memory
actual
cpu
debugging
debug
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
JP58032184A
Other languages
Japanese (ja)
Inventor
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 JP58032184A priority Critical patent/JPS59158449A/en
Publication of JPS59158449A publication Critical patent/JPS59158449A/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

Abstract

PURPOSE:To execute a debug processing program by a CPU of real machine without giving any limitation to an address space of the CPU of real machine by providing a memory for debugging, a jump control circuit or the like. CONSTITUTION:A debug processing program is stored in the memory 3 or debugging of a debug device B and the memory 2 of real machine and a memory 3 are accessed alternatively by the CPU1 of real machine. When a debug processing command is given by a keyboard 5 while the CPU accesses the memory 2 and executes the program of real machine, the command is received and a jump control circuit 7 is activated. That is, the circuit 7 inhibits the memory 2, outputs a head address of the debug processing program of the memory 3 and the program is executed. The debug processing program is executed without giving effect on the address space of the memory 2 in this way by giving forcibly a jump instruction by the circuit 7 and executing the program of the memory 3.

Description

【発明の詳細な説明】 (発明の分野) この発明はコンビコータ・プログラムのデバッグ装置に
関し、特に、チェック対象システムの実機CPUてデバ
ッグ処理プログラムを実行させるものに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a debugging device for a combicoater program, and particularly to one that causes a real CPU of a system to be checked to execute a debugging processing program.

(発明の費用) デバッグ装置の構成は、デバッグのための各種の信号処
理を行なうデバッガプログラムと称されるデバッグ処理
プログラムを、どの部分で実行させるかによって2つの
形式に分かれる。1つは、デバッグ装置に設けた専用の
CPU (マイクロプロセッサ)によってデバッグ処理
プログラムを実行する構成である。他の1つは、チェッ
ク対象システムのCPU (これを実機CP(Jという
)で実行させる構成である。
(Cost of the Invention) The configuration of a debug device can be divided into two types depending on in which part a debug processing program called a debugger program that performs various signal processing for debugging is executed. One is a configuration in which a debug processing program is executed by a dedicated CPU (microprocessor) provided in a debug device. The other one is a configuration in which the CPU of the system to be checked (this is executed by the actual CP (referred to as J)).

前者の装置は、後者の装置に比べ、専用のCPUが必要
であることから、高価なものとなる。
The former device requires a dedicated CPU and is therefore more expensive than the latter device.

後者のデバッグ装置で、従来のものは、実fil CP
Uの77ドレス空間の一部にフP−ムウJア化されたデ
バッグ処理プログラムを設定している。つまり、実11
1 CP Uのアドレス空間の、チェック対象プログラ
ムでは使用しない部分にデバッグ処理プログラムを割り
当てている。
The latter debugging device, the conventional one, is a real file CP
A debug processing program converted into a programmable computer is set in a part of the 77 address space of the U. In other words, fruit 11
The debug processing program is allocated to a portion of the address space of 1 CPU that is not used by the program to be checked.

チェック対象プログラムの規模が小さくて、実機cpu
のアドレス空間に充分な余裕がある場合、上述した従来
の方式でも大きな問題はない。しかし、チェック対象プ
ログラムの規模が大きくなると、デバッグ処理プログラ
ムを搭載できなくなったり、それほどでなくても、チェ
ック対象プログラムとデバッグ処理プログラムが競合し
ないように慎重な配慮が必要となる。つまり、この従来
の方式はリーベての場合に適用できる訳ではなく、様々
な制約が伴う。
The scale of the program to be checked is small and the actual CPU
If there is sufficient room in the address space, there is no major problem with the conventional method described above. However, if the scale of the program to be checked becomes large, it may become impossible to mount a debug processing program, or even to a lesser extent, careful consideration must be taken to prevent conflicts between the program to be checked and the debug processing program. In other words, this conventional method cannot be applied to the case of Liebe, and is accompanied by various limitations.

(発明の目的) この発明の目的は、実機CP Uのアドレス空間に制約
を与えず、デバッグ処理プログラムを実(幾CPUで実
行させるようにした、自由度が高くかつ414成簡単で
安価なデバッグ装置を提供することにある。
(Objective of the Invention) The object of the present invention is to provide a debugging program that has a high degree of freedom, is easy to implement in 414, and is inexpensive, by allowing the debug processing program to be executed by several real CPUs without imposing restrictions on the address space of the real CPU. The goal is to provide equipment.

(発明の構成ど効果) 上記の目的を達成覆るために、この発明は、デバッグ処
理プログラムを格納したデバッグ用メモリと、実111
 CP Uが実機メモリをアクセスしてチェック対象プ
ログラムを実行している状態にて、所定の指令が与えら
れたとき、実11 CP Uの命令コードフ丁ツチリー
イクルに同期して実機メモリを禁止し、これに代わって
実Di CP LJに上記デバッグ処理プログラムへの
ジャンプ命令を与え、かつ−V記デバッグ用メモリを解
禁して上記デバッグ処理プログラムを実機CPUで実行
させる回路手段ど、上記デバッグ処理プログラム中の所
定の命令を実行Jることによる実+幾c p uからの
指令を受(プて、特定の1サイクルのみ上記デバッグ用
メモリを禁止するとともに実機メモリを解禁する回路手
段とを備えたことを特徴とする。
(Structure and Effects of the Invention) In order to achieve the above objects, the present invention provides a debug memory storing a debug processing program and an actual 111
When a predetermined command is given while the CPU is accessing the real machine memory and executing the program to be checked, the real machine memory is inhibited in synchronization with the instruction code cycle of the real CPU, and this In place of the above debug processing program, a circuit means that gives a jump instruction to the above debug processing program to the actual Di CP LJ, releases the memory for debugging described in -V, and executes the above debug processing program on the actual machine CPU, etc. The present invention includes circuit means for inhibiting the debugging memory for only one specific cycle and unlocking the actual memory in response to a command from the actual CPU by executing a predetermined command. Features.

このデバッグ装置によれば、デバッグ処理プログラムを
実機CP Uのアドレス空間の一部に搭載するのではな
くて、実機CPUのアドレス空間の影の空間に搭載させ
ることができ、チェック対象プログラムが搭載されるア
ドレス空間にはなんら影響を与えないで済む。
According to this debugging device, the debug processing program can be installed in a shadow space of the actual CPU's address space instead of being installed in a part of the address space of the actual CPU, and the program to be checked can be installed. It does not have any effect on the address space.

(実施例の説明) 第1図はこの発明の一実施例を示づ。この図は、デバッ
グ対象である実機Aとこの発明によるデバッグ装置Bを
結合した状態で示している。ただし、実機CPU1のリ
ード端子あるいはシステムパスからアドレス信号、デー
タバス信号、コントロール信号を取り出してプログラム
デバッグを行なうデバッグ装置としての基本構成につい
ては、これが良く知られていることから、詳細な図示を
省略している。図ではこの発明の特徴とする部分のみを
抽出して示している。
(Description of an Embodiment) FIG. 1 shows an embodiment of the present invention. This figure shows an actual device A to be debugged and a debugging device B according to the present invention combined. However, since the basic configuration of a debugging device that debugs programs by extracting address signals, data bus signals, and control signals from the read terminals or system paths of the actual CPU 1 is well known, detailed illustrations are omitted. are doing. In the figure, only the features of this invention are extracted and shown.

実機cpuiは実機メモリ2に格納されているチェック
対象プログラム(これを実機プログラムという)を実行
するが、実機メモリ2のチップセレクト端子C8に印加
される信号は実機CPU 1から直接与えられるのでは
なくて、デバッグ装置5− Bから与えられる。
The real machine CPU executes the check target program (this is called the real machine program) stored in the real machine memory 2, but the signal applied to the chip select terminal C8 of the real machine memory 2 is not directly given from the real machine CPU 1. and is given from the debug device 5-B.

デバッグ装置Bはインターフェイス回路4を介して実i
cI〕U1のシステムバスに結合される。
The debug device B is connected to the real i via the interface circuit 4.
cI] is coupled to the system bus of U1.

デバッグ処理プログラムはデバッグ装置Bのメモリ3に
格納され、実機CPU1によって実行される。
The debug processing program is stored in the memory 3 of the debug device B and executed by the actual CPU 1.

デバッグ装置Bは、デバッグ用メモリ3の他に、オペレ
ータによって操作されてデバッグに必要な各種の入力を
75えるキーボード5と、デバッグ操作に伴−う各種の
情報を表示する表示器6などを基本的な構成として有し
、更に、この発明の要旨に係わるジャンプコントロール
回路7.実機メモリ参照コントロール回路8とゲート9
.インバータ10.11などを備える。
In addition to the debugging memory 3, the debugging device B basically includes a keyboard 5 that is operated by the operator to input 75 types of input necessary for debugging, and a display 6 that displays various information associated with debugging operations. The jump control circuit 7 has a typical configuration and further relates to the gist of the present invention. Actual memory reference control circuit 8 and gate 9
.. It is equipped with inverters 10, 11, etc.

実機メモリ2とデバッグ用メモリ3は、実機CPUIに
よって択一的にアクセスされる。このメモリ2と3を切
替制御するのが、ゲート9から出力される切替信号aで
ある。信号aは実機メモリ2のチップセレクト端子O8
に直接印加され、信号aをインバータ10で反転してな
る信号がデバ6− ラグ用メモリ3のチップセレク1一端子O8に印加され
る。信号aが1ルベルのとき実機メモリ2が有効で、デ
バッグ用メモリ3が禁止される。信号aが反対にLレベ
ルになると、実機メモリ2が禁止され、デバッグ用メモ
リ3が有効となる。
The real machine memory 2 and the debug memory 3 are alternatively accessed by the real machine CPU. A switching signal a output from the gate 9 controls switching between the memories 2 and 3. Signal a is chip select terminal O8 of actual memory 2
A signal obtained by inverting the signal a by an inverter 10 is applied to the chip select 1 terminal O8 of the device 6-lag memory 3. When the signal a is 1 level, the actual memory 2 is enabled and the debug memory 3 is disabled. Conversely, when the signal a goes to L level, the actual memory 2 is disabled and the debug memory 3 is enabled.

実機CPU 1が実機メモリ2をアクセスして実機プロ
グラムを実行している状態において、キーボード5でデ
バッグ処理指令を与えると、これを受けてジャンプコン
トロール回路7が働く。このどきジャンプコン1〜[]
−ル回路7は、第2図の〈1)に示すように、実機cp
uiの命令フエツヂサイクル1に同期して、命令]−ド
フエツヂザイクルS1と第1オペランドおよび第2オペ
ランドのフェッチサイクルS3.S/Iの期間にゲート
9に入力を与えて切替信号aをLレベルにする。
When the actual CPU 1 accesses the actual memory 2 and executes the actual program, when a debug processing command is given from the keyboard 5, the jump control circuit 7 operates in response. Kondoki Jump Con 1~[]
As shown in <1) of FIG.
In synchronization with the instruction fetch cycle 1 of ui, the instruction fetch cycle S1 and the first and second operand fetch cycles S3. During the S/I period, an input is given to the gate 9 to set the switching signal a to L level.

つJ、りこの期間に実機メモリ2を禁止する。これと同
時に、ジャンプコン1−〇−ル回路7は、命令コードフ
ェッチサイクルS1に実IN CP U 1のシステム
バスにジャンプ命令の命令コードを送出し、また第1オ
ペランド、第2オペランドのフエツチリイクル33.8
4の期間にジャンプ先アドレスとしてデバッグ用メモリ
3のデバッグ処理プログラムの先頭アドレスを出力J−
る。これで、実機CPU1はジャンプコントロール回路
7から与えられたジA・ンブ命令を実行し、これ以降は
デバッグ用メモリ3のデバッグ処理プログラムを実行す
ることになる。
During this period, actual memory 2 is prohibited. At the same time, the jump control circuit 7 sends the instruction code of the jump instruction to the system bus of the real IN CPU 1 in the instruction code fetch cycle S1, and also sends the instruction code of the jump instruction to the system bus of the real IN CPU 1 in the instruction code fetch cycle S1, and also sends the instruction code of the jump instruction to the system bus of the real IN CPU 1 in the instruction code fetch cycle S1. .8
During period 4, the start address of the debug processing program in debug memory 3 is output as the jump destination address J-
Ru. Now, the actual CPU 1 executes the jump instruction given from the jump control circuit 7, and thereafter executes the debug processing program in the debug memory 3.

ここでH−意すヘきことは、実機メモリ2のアドレス空
間とデバッグ用メモリ3のアドレス空間が完全に重複し
ていても良いことである。このことは、実機メモリ2と
デバッグ用メモリ3を択一的に生かして実11NcPL
J1でアクセスされるようにしている点と、実機メモリ
2の実機プログラムを実行していた実151 CP U
 1に対し、ジャンプコン1〜ロール回路7で強制的に
ジャンプ命令を与え、デバッグ用メモリ3のプログラム
を実行させることによって可能となっている。従って、
デバッグ処理プログラムは実機メモリ2のアドレス空間
に全く影響を与えることがない。
What is meant here is that the address space of the real device memory 2 and the address space of the debug memory 3 may completely overlap. This means that the real machine memory 2 and the debug memory 3 can be used alternatively to create a real 11NcPL.
The point is that it is accessed by J1, and the real 151 CPU that was executing the real machine program in real machine memory 2
1, this is made possible by forcibly giving a jump command through the jump controller 1 to the roll circuit 7 and causing the program in the debug memory 3 to be executed. Therefore,
The debug processing program has no effect on the address space of the real device memory 2 at all.

デバッグ用メモリ3のデバッグ処理プログラムを実行す
るとき、当然ながら、実機メモリ2のデータや命令を参
照したり、データや命令を書替える必要がある。この機
能は実機メモリ参照コントロール回路8によって実現さ
れる。このコントロール回路8は、実11cPU1がデ
バッグ処理プログラム中の実機メモリ2の参照/更新命
令を実行したとき、実11cPU1からの指令信号を受
けて動作する。
When executing a debug processing program in the debug memory 3, it is naturally necessary to refer to the data and instructions in the actual memory 2, and to rewrite the data and instructions. This function is realized by the actual memory reference control circuit 8. This control circuit 8 operates in response to a command signal from the real 11cPU1 when the real 11cPU1 executes a reference/update command for the real machine memory 2 in the debug processing program.

コントロール回路8は指令信号を受1プで、第2図の(
2)に示すように、実機CPU 1のロード/ストア命
令の実行サイクルと同期して、その参照/更新サイクル
$5の期間にインバータ1に入力信号を与え、ゲート9
の出力である切替信号aを1」レベルにする。これでデ
バッグ用メモリ3が禁止されるとともに実機メモリ2が
有効となり、そのときアドレスバス上にあるアドレス信
号で実機メモリ2がアクセスされ、そのデータが読み出
されたり、あるいは書替えられたりする。このようにし
て実機プログラムのデバッグ操作がなされる。
The control circuit 8 receives the command signal and operates as shown in FIG.
2), in synchronization with the execution cycle of the load/store instruction of the actual CPU 1, an input signal is applied to the inverter 1 during the reference/update cycle $5, and the input signal is applied to the gate 9.
The switching signal a, which is the output of the switch, is set to the 1'' level. This disables the debug memory 3 and enables the actual memory 2. At this time, the actual memory 2 is accessed by the address signal on the address bus, and its data is read or rewritten. In this way, the debugging operation of the actual machine program is performed.

9−9-

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

第1図はこの発明の一実施例を示ザブロック図、第2図
は第1図のデバッグ装置の動作を示すタイミングチャー
トである。 1・・・実機CPU 2・・・実機メモリ 3・・・デバッグ用メモリ 7・・・ジャンプコントロール回路 8・・・実機メモリ参照コントロール回路a・・・切替
信号 特許出願人 立石電機株式会社 一1〇−
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a timing chart showing the operation of the debugging device shown in FIG. 1... Actual machine CPU 2... Actual machine memory 3... Memory for debugging 7... Jump control circuit 8... Actual machine memory reference control circuit a... Switching signal Patent applicant Tateishi Electric Co., Ltd. 1 〇-

Claims (1)

【特許請求の範囲】[Claims] (1)実機CPUのリード端子あるいはシステムバスか
らアドレス信号、データバス信号、コントロール信号を
取り出してプログラムのデバッグを行なう装置で、デバ
ッグ処理プログラムを格納したデバッグ用メモリと、実
IICPIJが*機メモリをアクセスしてチェック対象
プログラムを実行している状態にて、所定の指令が与え
られたとき、実機CPtJの命令フードフェッチサイク
ルに同期して実機メモリを禁止し、これに代わって実機
CPUに上記デバッグ処理プログラムへのジャンプ命令
を与え、かつ上記デバッグ用メモリを解禁して上記デバ
ッグ処理プログラムを実機CPUで実、行させる回路手
段と、上記デバッグ処理プログラム中の所定の命令を実
行することによる実11[CPUからの指令を受けて、
特定の1サイクルのみ上記デバッグ用メモリを禁止する
とともに実機メモリを解禁する回路手段とを備えたこと
を特徴とするデバッグ装置。
(1) A device that debugs programs by extracting address signals, data bus signals, and control signals from the read terminals of the actual CPU or the system bus.The debug memory that stores the debug processing program and the actual IICPIJ *machine memory are When a predetermined command is given while the program being accessed and checked is executed, the actual machine memory is inhibited in synchronization with the instruction food fetch cycle of the actual machine CPtJ, and the above debugging is performed on the real machine CPU instead. circuit means for giving a jump command to the processing program and unlocking the debugging memory to execute the debugging processing program on the actual CPU; [Receiving instructions from the CPU,
A debugging device characterized by comprising circuit means for inhibiting the debugging memory and unlocking the actual memory for only one specific cycle.
JP58032184A 1983-02-28 1983-02-28 Debugging device Pending JPS59158449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58032184A JPS59158449A (en) 1983-02-28 1983-02-28 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58032184A JPS59158449A (en) 1983-02-28 1983-02-28 Debugging device

Publications (1)

Publication Number Publication Date
JPS59158449A true JPS59158449A (en) 1984-09-07

Family

ID=12351827

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58032184A Pending JPS59158449A (en) 1983-02-28 1983-02-28 Debugging device

Country Status (1)

Country Link
JP (1) JPS59158449A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006516221A (en) * 2003-01-21 2006-06-29 イギリス国 Particle collector

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006516221A (en) * 2003-01-21 2006-06-29 イギリス国 Particle collector
JP4927525B2 (en) * 2003-01-21 2012-05-09 イギリス国 Particle collector

Similar Documents

Publication Publication Date Title
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
JP3260083B2 (en) Debug system and debugging method
JPS59158449A (en) Debugging device
KR100705872B1 (en) Processor and method of executing instructions from several instruction sources
JP2504191B2 (en) Microprocessor
JP2679591B2 (en) Emulation chip and in-circuit emulator
JPH06103109A (en) Data processor and debugging device using the same
JP2520158B2 (en) Debugging method of digital signal processor
JPS6152747A (en) Microprocessor
JPH02135545A (en) Execution control processing system for debugger
JP2859048B2 (en) Microcomputer
JPH07281924A (en) Trace device and emulator using the trace device
JPS59202546A (en) Debugging device
JPS63289653A (en) In-circuit emitter
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPS63639A (en) Program debugging system
JPS63204327A (en) Control system for detection of undefined instruction
JPH01258045A (en) In-circuit emulator
JPS59202548A (en) Debugging device
JPS60105048A (en) Microprogram control system
JPH0795288B2 (en) Microcomputer
JPS62197834A (en) Microprogram controller
JPS619733A (en) Test device
JPS6144343B2 (en)
JPH01232446A (en) Program development assisting device for computer