JPS62182942A - Program debugger - Google Patents

Program debugger

Info

Publication number
JPS62182942A
JPS62182942A JP61024191A JP2419186A JPS62182942A JP S62182942 A JPS62182942 A JP S62182942A JP 61024191 A JP61024191 A JP 61024191A JP 2419186 A JP2419186 A JP 2419186A JP S62182942 A JPS62182942 A JP S62182942A
Authority
JP
Japan
Prior art keywords
trace
address
memory
trace memory
signal
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
JP61024191A
Other languages
Japanese (ja)
Inventor
Kazuo Tsugawa
和夫 津川
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61024191A priority Critical patent/JPS62182942A/en
Publication of JPS62182942A publication Critical patent/JPS62182942A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To minimize intrusion of a trace memory into an actual operating memory area of a CPU by supplying the address of the trace memory from an up/down counter with the preset function. CONSTITUTION:When the trace address is read out, the CPU performs the read access to SL1 address, and SL1 and OC2 are set to the high level together. A signal RD goes to the low level, and the trace address written in a trace memory 1 is taken out onto a data bus. Each time the signal RD is inputted to an up/down counter 9 with the preset function, the counter 9 is decremented to designate the next address of the trace memory 1. When trace data is read out from the trace memory 1, the CPU performs the read access to SL2 address to set SL2 and OC4 to the high level together, and then, trace data written in the trace memory 1 is taken out.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラムデバッグ装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program debugging device.

〔従来の技術〕[Conventional technology]

従来のこの種装置として第5図に示すものがあった。図
において、1はトレース用メモリ(RAに)、2はアナ
ログスイッチで、DIRが“H”レベルのときY=A、
DIRが“L”レベルのときY=Bとなる。3,4はバ
ッファでOCI、OC2が“H”レベルのときA=Bと
なり、OCI、QC2が“L”レベルのときハイインピ
ーダンスになる。また5はカウンタである。
A conventional device of this type is shown in FIG. In the figure, 1 is a trace memory (in RA), 2 is an analog switch, and when DIR is “H” level, Y=A,
When DIR is at "L" level, Y=B. 3 and 4 are buffers, and when OCI and OC2 are at "H" level, A=B, and when OCI and QC2 are at "L" level, they become high impedance. Further, 5 is a counter.

次に動作について説明する。まず、トレース用メモリ1
の書込み時にはトレース・イネーブル信号、およびトレ
ース停止信号がパL′″レベルとなリ、cpu (図示
せず)からのRD (読み出し)信号、WR(書き込み
)信号ごとにトレース用メモリ1がチップセレクトされ
、アドレス、データおよびコマンドがバッファ3を介し
てトレース用メモリ1に書込まれる。トレース用メモリ
1のアドレスはトレース停止信号がit Huレベルに
なるまで、RD倍信号WR倍信号入るためにカウンタ5
によってインクリメントされる。つぎにトレース用メモ
リ1の読取り時には、トレースイネーブル信号およびト
レース停止信号はIt H#lレベルとなり、トレース
用メモリ1内のアドレスをアドレスバスによって指定し
、データを8ビツトずつバッファ4を介して読出す。
Next, the operation will be explained. First, trace memory 1
When writing, the trace enable signal and the trace stop signal are at the low level, and the trace memory 1 performs chip select for each RD (read) signal and WR (write) signal from the CPU (not shown). The address, data, and command are written to the trace memory 1 via the buffer 3.The address of the trace memory 1 is stored in the counter until the trace stop signal reaches the it Hu level in order to input the RD double signal and the WR double signal. 5
is incremented by Next, when reading the trace memory 1, the trace enable signal and the trace stop signal become It H#l level, the address in the trace memory 1 is specified by the address bus, and the data is read 8 bits at a time via the buffer 4. put out.

第6図(a)〜(k)はトレース用メモリ1の書込み時
のタイミングチャート、第7図(a)〜(k)は読取り
時のタイミングチャートである。
6(a) to 6(k) are timing charts for writing to the trace memory 1, and FIGS. 7(a) to 7(k) are timing charts for reading.

〔発明が解決しようとする問題点〕 従来のプログラムデバッグ装置は以上のように構成され
ているので、トレース信号がgl HItレベルになる
まで、cpuによって実行されたすべての動作過程がト
レース内メモリの容量分だけ、トレース用メモリにスト
アされることになる。従ってトレース用メモリの容量を
大きくするとその分cpuが使用するメモリ領域が減少
するという問題点があった。
[Problems to be Solved by the Invention] Since the conventional program debugging device is configured as described above, all operating processes executed by the CPU are stored in the trace memory until the trace signal reaches the glHIt level. The amount corresponding to the capacity will be stored in the trace memory. Therefore, there is a problem in that when the capacity of the trace memory is increased, the memory area used by the CPU is correspondingly reduced.

本発明は上記のような問題点を解消するためになされた
もので、トレースメモリ容量を無限大に出来るとともに
、cpuのメモリ領域への影響を最小限にしたプログラ
ムデバッグ装置を得ることを目的する。
The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a program debugging device that can increase the trace memory capacity to infinity and minimize the influence on the memory area of the CPU. .

〔問題点を解決するための手段〕[Means for solving problems]

この発明にかかるプログラムデバッグ装置は、RD倍信
号WR倍信号とにトレース用メモリをチップセレクトし
、アドレスおよびコマンドをトレース用メモリに書込み
、トレース用メモリのアドレスをトレース停止信号が入
るまで、RD倍信号WR倍信号よってカウンターをイン
クリメントするとともに、トレースメモリの内容を読み
出すときには停止したアドレス値よりあるいはcpuよ
り任意のアドレス値をセット後、読み出しイネーブル信
号とRD倍信号よりカウンタをデクリメントしシステム
プログラム上は同一アドレスでトレース内容を順次読み
出すようにしたものである。
The program debugging device according to the present invention chip-selects the trace memory according to the RD double signal and the WR double signal, writes an address and a command to the trace memory, and updates the address of the trace memory with the RD double signal until a trace stop signal is input. The counter is incremented by the WR multiplication signal, and when reading the contents of the trace memory, an arbitrary address value is set from the stopped address value or from the CPU, and then the counter is decremented by the read enable signal and the RD multiplication signal. The trace contents are read out sequentially at the same address.

〔作用〕[Effect]

この発明におけるトレース用メモリはアップダウンカウ
ンタにより書込み時カウンターがインクリメントされる
。また、読み出し時にはカウンターがデクリメントされ
いずれもトレース用メモリのアドレスが適宜カウンタに
よって指示されることにより、トレース用メモリへの書
込み、読出しが行われ、cpuのメモリ領域に無関係に
トレーる。
In the trace memory according to the present invention, a counter is incremented by an up/down counter at the time of writing. Further, at the time of reading, the counter is decremented and the address of the trace memory is appropriately indicated by the counter, thereby writing to and reading from the trace memory is performed, and tracing is performed regardless of the memory area of the CPU.

図中、第5図と同一の部分は同一の符号をもって図示し
た第1図において1はトレース用メモリであって、アド
レス1〜−ス用メモリ1a、データー1−レース用メモ
リ1b、コマンド、フラグトレース用のメモリ1cを有
する。
In FIG. 1, the same parts as in FIG. 5 are designated by the same reference numerals. In FIG. It has a memory 1c for tracing.

また、10はシステムのプログラムメモリである。Further, 10 is a program memory of the system.

第1図に示す本発明のトレース用メモリ1はシステムの
プログラムメモリ10とは別の空間に設けているため、
システムのプログラムメモリ10の領域を最小限しか侵
すことがなく、トレース用メモリ1の容量を無制限に大
きくすることが出来る。トレース用メモリ1をシステム
のプログラムメモリ領域から読出すときはシステムプロ
グラム上に予じめ設けられた任意のアドレス1つをアク
セスすればよい。
Since the tracing memory 1 of the present invention shown in FIG. 1 is provided in a space separate from the program memory 10 of the system,
The area of the program memory 10 of the system is minimally occupied, and the capacity of the trace memory 1 can be increased without limit. When reading the trace memory 1 from the program memory area of the system, it is sufficient to access one arbitrary address provided in advance on the system program.

第1図における5L=XXXX番地は任意のアドレスを
示す。又、このアドレスの容量はプログラムデバッグ装
置の大きさにより1つから任意の値までとすれば良い。
Address 5L=XXXX in FIG. 1 indicates an arbitrary address. Further, the capacity of this address may be set from one to an arbitrary value depending on the size of the program debugging device.

くにメモリマツプ上で容量が得られない場合にはIOボ
ート上に設けても良い。
In particular, if the capacity cannot be obtained on the memory map, it may be provided on the IO boat.

次にこの発明の動作について説明する。まず、第2図に
おいて、トレース用メモリ1への書込み時には、予じめ
プリセット機能付のアップダウンカウンタ9をリセット
イd号・で零にクリアしておく。
Next, the operation of this invention will be explained. First, in FIG. 2, when writing to the trace memory 1, the up/down counter 9 with a preset function is cleared to zero by a reset ID number d.

次にトレース停止信号はおよびトレースイネーブル信号
をIt L IIとしてcpu (図示せず)からのR
D倍信号WR倍信号とにトレース用メモリ1がチップセ
レクトされ、アドレスおよびデータがバッファ3および
6を介してトレース用メモリ1に書込まれる。又トレー
ス用メモリ1のアドレスは1−レース停止信号が“H1
1になるまでRD倍信号WR倍信号入るたびにアップダ
ウンカウンタ9によってインクリメントされる。
The trace stop signal is then set to R from the CPU (not shown) with the trace enable signal as It L II.
The trace memory 1 is chip-selected by the D times signal and the WR times signal, and the address and data are written into the trace memory 1 via buffers 3 and 6. Also, the address of trace memory 1 is 1-race stop signal is “H1”
It is incremented by the up/down counter 9 every time the RD multiplied signal and the WR multiplied signal are input until it becomes 1.

トレース用メモリ1の読取り時にはトレースイネーブル
信号は“H”となる。そして、まず最初にID3信号を
“H”としバッファ8を介してプリセット付アップダウ
ンカウンタ9の最終値をcpu(図示せず)が読出して
求めても良い。また、アップダウンカウンタ9の最終値
よりトレース用メモリ1の読取り時はIO3信号をL″
とする。
When reading the trace memory 1, the trace enable signal becomes "H". First, the ID3 signal may be set to "H" and the final value of the preset up/down counter 9 may be read out via the buffer 8 by a CPU (not shown). Also, when reading the trace memory 1 from the final value of the up/down counter 9, the IO3 signal is set to L''.
shall be.

次に、トレースアドレスを読出すときにはcpuはSL
1番地に読出しアクセスを行いSLIをttH”として
OC2を“H”とする。
Next, when reading the trace address, the CPU
A read access is made to address 1, SLI is set to "ttH", and OC2 is set to "H".

つづいてRD倍信号11 L 11になりトレース用メ
モリ1に書込まれていたトレースアドレスをデータバス
上に取り出す。そしてプリセット機能付のアップダウン
カウンタ9にRD倍信号入るたびにデクリメントされ1
次のトレース用メモリ1のアドレスを指定する。同様に
トレースデータを]・レース用メモリ1より読出すとき
にはcpuはSL2番地に読出しアクセスを行うことに
よりSb2を“H+tとしてOC4をtl HIIとす
るそしてトレース用メモリ1に書込まれていたトレース
データを取り出すことが出来る。
Subsequently, the RD double signal 11L becomes 11, and the trace address written in the trace memory 1 is taken out onto the data bus. Then, each time the RD times signal enters the up/down counter 9 with a preset function, it is decremented by 1.
Specify the address of the next trace memory 1. Similarly, when reading the trace data from the trace memory 1, the CPU makes read access to the SL2 address, sets Sb2 to "H+t", sets OC4 to tl HII, and trace data written in the trace memory 1. can be taken out.

又、任意のアドレスよりトレース用メモリ1の内容を読
み出すときはデータバスに任意のアドレス値をセットし
てIO3信号を11 L j+とし、プリセット機能付
のアップダウンカウンタ9にアドレス値をセットする。
Further, when reading the contents of the trace memory 1 from an arbitrary address, an arbitrary address value is set on the data bus, the IO3 signal is set to 11 L j+, and the address value is set in the up/down counter 9 with a preset function.

以下は上記トレースアドレス読出し、あるいはトレース
データ読出しと同様の操作によって任意のアドレスより
トレース用メモリ1内のトレースアドレス、トレースデ
ータをバッファ4あるいはバッファ7を介して読出す。
In the following, the trace address and trace data in the trace memory 1 are read from an arbitrary address via the buffer 4 or the buffer 7 by operations similar to the above trace address reading or trace data reading.

第3図(a)〜(p)はトレース用メモリ1の書込み時
のタイミングチャート、第4図(a)〜(p)はトレー
ス用メモリ1よりトレースアドレスを読出すタイミング
チャートである。
3(a) to 3(p) are timing charts for writing to the trace memory 1, and FIGS. 4(a) to 4(p) are timing charts for reading trace addresses from the trace memory 1.

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

以上のように、この発明によればトレース用メモリのア
ドレスをプリセット機能付アップダウンカウンタで供給
するように回路構成したので、トレース用メモリがcp
u (図示せず)の実稼動メモリ領域を侵すことを最小
限に抑えることができる効果がある。
As described above, according to the present invention, since the circuit is configured so that the address of the trace memory is supplied by the up/down counter with the preset function, the trace memory is
This has the effect of minimizing the invasion of the actual working memory area of u (not shown).

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

第1図はこの発明の原理を示すメモリ図、第2図はこの
発明の一実施例によるプログラムデバッグ装置のトレー
スメモリ回路のブロック回路図、第3図はトレース時の
タイミングチャート、第4図はトレース内容読取り時の
タイミングチャート、第5図は従来のプログラムデバッ
グ装置のトレースメモリ回路のブロック回路図、第6図
トレース用メモリ書込み時のタイミングチャート、第7
図はトレース用メモリ読出し時のタイミングチャートで
ある。 図において、1はトレース用メモリ、3,4゜6.7.
8はバッファ、9はアップダウンカウンタ、10はシス
テムプログラムである。 特許出願人  三菱電機株式会社 第1図 1ニドレース用メt゛ノ 第2図 第3図 第4図 第5図
FIG. 1 is a memory diagram showing the principle of the present invention, FIG. 2 is a block circuit diagram of a trace memory circuit of a program debugging device according to an embodiment of the present invention, FIG. 3 is a timing chart during tracing, and FIG. 5 is a block circuit diagram of a trace memory circuit of a conventional program debugging device; FIG. 6 is a timing chart when writing trace contents; FIG. 7 is a timing chart when reading trace contents.
The figure is a timing chart when reading the trace memory. In the figure, 1 is a trace memory, 3, 4° 6.7.
8 is a buffer, 9 is an up/down counter, and 10 is a system program. Patent Applicant: Mitsubishi Electric Co., Ltd. Figure 1 Figure 1 Method for Nidrace Figure 2 Figure 3 Figure 4 Figure 5

Claims (3)

【特許請求の範囲】[Claims] (1)読み出し信号、書込み信号ごとにトレース用メモ
リをチップセレクトし、アドレスデータおよびコマンド
をトレース用メモリに書込み、該トレース用メモリのア
ドレスをトレース停止信号が入るまで読み出し信号、書
き込み信号が入るたびにカウンタによってインクリメン
トして成るプログラムデバッグ装置において、前記トレ
ース内容を読み出す時、前記トレース用メモリのアドレ
スをデクリメントカウンタで選択するようにしたことを
特徴とするプログラムデバッグ装置。
(1) Chip select the trace memory for each read signal and write signal, write address data and commands to the trace memory, and write the address of the trace memory every time the read signal and write signal are input until the trace stop signal is input. What is claimed is: 1. A program debugging device comprising a counter that increments the trace contents by a decrement counter, wherein an address of the trace memory is selected by a decrement counter when reading the trace contents.
(2)前記トレース用メモリのアドレスを選択するカウ
ンタをプリセット機能付のアップダウンカウンタによっ
て行うこととし、該トレース用メモリの内容を該アップ
ダウンカウンタによって読み出すようにしたことを特徴
とする特許請求の範囲第1項記載のプログラムデバッグ
装置。
(2) The counter for selecting the address of the trace memory is an up-down counter with a preset function, and the content of the trace memory is read by the up-down counter. A program debugging device according to scope 1.
(3)前記トレース用メモリのアドレス指示用カウンタ
のカウント値を読み出すことができるようにしたことを
特徴とする特許請求の範囲第1項記載のプログラムデバ
ッグ装置。
(3) The program debugging device according to claim 1, wherein the count value of the address instruction counter of the trace memory can be read.
JP61024191A 1986-02-07 1986-02-07 Program debugger Pending JPS62182942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61024191A JPS62182942A (en) 1986-02-07 1986-02-07 Program debugger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61024191A JPS62182942A (en) 1986-02-07 1986-02-07 Program debugger

Publications (1)

Publication Number Publication Date
JPS62182942A true JPS62182942A (en) 1987-08-11

Family

ID=12131434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61024191A Pending JPS62182942A (en) 1986-02-07 1986-02-07 Program debugger

Country Status (1)

Country Link
JP (1) JPS62182942A (en)

Similar Documents

Publication Publication Date Title
JPS5995660A (en) Data processor
JPS58115673A (en) System and device for stored information control
JPS62182942A (en) Program debugger
JPS59111533A (en) Digital data arithmetic circuit
SU1339653A1 (en) Memory
JPS61120260A (en) Access device for sequential data memory circuit
JPS62151948A (en) Tracer
JPH0731608B2 (en) Information processing equipment
JPS6371740A (en) Method for tracing memory data
JPS62151955A (en) Memory addressing system
KR910006792B1 (en) Access memory expansion circuit of direcrt memory access controller
JP2906449B2 (en) Bitmap display control device
JP2758745B2 (en) Memory circuit
JP2752732B2 (en) Trace device
JPS62251848A (en) Memory control system
JPS60196858A (en) Input processor of data with label
JPS62260242A (en) Large capacity memory device for continuous data
JPS62121556A (en) Information processor contained in trace memory
JPS6175444A (en) Register file integrated circuit
JPH0221618B2 (en)
JPS6341950A (en) Branch instruction execution measurement controlling system
JPS58123145A (en) State history storage device
JPH0447431A (en) Image memory device
JPS6121541A (en) Storage circuit
JPS62143125A (en) Data read/write circuit for memory