JPH0358241A - Debug tool - Google Patents

Debug tool

Info

Publication number
JPH0358241A
JPH0358241A JP1195341A JP19534189A JPH0358241A JP H0358241 A JPH0358241 A JP H0358241A JP 1195341 A JP1195341 A JP 1195341A JP 19534189 A JP19534189 A JP 19534189A JP H0358241 A JPH0358241 A JP H0358241A
Authority
JP
Japan
Prior art keywords
latch
address
microcomputer
specific
selection data
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
JP1195341A
Other languages
Japanese (ja)
Inventor
Norio Yamada
典生 山田
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP1195341A priority Critical patent/JPH0358241A/en
Publication of JPH0358241A publication Critical patent/JPH0358241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To operate an address coincidence detecting function by a small number of logical iC by allowing an external RAM for outputting the corresponding latch selection data at the time when it is brought to access by one of plural specific addresses to have a coincidence detecting function. CONSTITUTION:In an external RAM 5, prescribed latch selection data is written in advance in an area brought to access by a specific address, and when it is brought to access by a specific address in the course of executing an actual program, the corresponding latch selection data is read out, therefore, it is decided to be a coincidence. In the case of coincidence, a microcomputer inside RAM is also brought to access simultaneously by its specific address, and display data 6 is read out therefrom, therefore, it is inputted to a selected latch 4. The same thing is executed with regard to each specific address, and when the contents of all the latches are displayed, when a program is normal, the display data corresponding to all the specific addresses are displayed. In such a way, debug of a microcomputer software can be executed by a small number of logical iC.

Description

【発明の詳細な説明】 〔}既  要〕 マイコンソフトのデバッグクールに関し、アドレス一致
検出機能を少数の論理iCで実現可能とすることを目的
とし、 マイクロコンピュータのプログラムで使用される複数の
特定アドレスによって内部メモリから読出される複数の
表示データをそれぞれ保持する複数のラッチと、該複数
の特定アドレスの1つでアクセスされたとき対応するラ
ッチ選択データを出力する外部メモリと、該ラッチ選択
データをデコードして前記複数のラッチの中から前記表
示データを取込むラッチを選択するデコーダと、前記マ
イクロコンピュータに対し該特定アドレスを指示するア
ドレス指定スイッチとを備えるよう構戒する。
[Detailed Description of the Invention] [Already Required] The purpose of this invention is to enable the address matching detection function to be realized with a small number of logical ICs in relation to the debugging program of microcomputer software, and to detect multiple specific addresses used in microcomputer programs. a plurality of latches each holding a plurality of display data read from an internal memory by a plurality of latches; an external memory that outputs corresponding latch selection data when accessed at one of the plurality of specific addresses; A decoder for decoding and selecting a latch from among the plurality of latches to take in the display data, and an address designation switch for instructing the microcomputer to the specific address are provided.

(産業上の利用分野] 本発明はマイコンソフトのデバ・ングツールに関する。(Industrial application field) The present invention relates to a microcomputer software debugging tool.

マイクロコンピュータのプログラム(簡略的にマイコン
ソフトと呼ぶ)が正常に作動するか否かは、該プログラ
ムを実行した時、いくつかの特定アドレスを実際に通過
するか否かで判定できる。
Whether or not a microcomputer program (simply referred to as microcomputer software) operates normally can be determined by whether or not it actually passes through some specific addresses when the program is executed.

デバッグッールはこの判定を可視的に可能にするもので
ある。
The debug tool allows this determination to be made visually.

〔従来の技術] 第3図は従来のデバッグッールの一例を示している。図
中、lはマイクロコンピュータ(以下、マイコンと略称
する)、2はアドレスの一致検出回路、3は特定アドレ
スの指定スイッチ、4は表示データのラッチ回路である
[Prior Art] FIG. 3 shows an example of a conventional debug tool. In the figure, 1 is a microcomputer (hereinafter abbreviated as microcomputer), 2 is an address coincidence detection circuit, 3 is a specific address designation switch, and 4 is a display data latch circuit.

このデバッグツールでは、マイコンlが命令を実行中に
スイッチ3で指定されている特定アドレスをセレクトす
ると、該アドレスが一致検出回路2へも人力しているの
で一致信号が生ずる。この一致信号はラッチ回路4のラ
ッチ信号として用いられ、このときマイコンlが出力し
ている該特定アドレスの表示データをラッチする。従っ
て、このラッチ4の内容を表示すれば、スイッチ3で指
定した特定アドレスを正しく通過したか否かを可視的に
判別できる。
In this debug tool, when the microcomputer 1 selects a specific address specified by the switch 3 while executing an instruction, a match signal is generated since the address is also input to the match detection circuit 2. This coincidence signal is used as a latch signal of the latch circuit 4, and at this time, the display data of the specific address outputted by the microcomputer 1 is latched. Therefore, by displaying the contents of the latch 4, it is possible to visually determine whether or not the specific address designated by the switch 3 has been correctly passed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、第3図の構戊ではlアドレス当り数個の
論理iCを必要とするので、チェックする特定アドレス
を複数ポイント設定する場合には数10個の論理iCが
必要となる。
However, the configuration shown in FIG. 3 requires several logical iCs per address, so if a plurality of points are set as specific addresses to be checked, several tens of logical iCs are required.

本発明は外付けのRAM (ランダムアクセスメモリ)
に一致検出機能を持たせることで、必要なiCの数を減
少させようとするものである。
The present invention uses external RAM (random access memory)
The aim is to reduce the number of required iCs by providing a match detection function to the iC.

(課題を解決するための手段) 本発明は、マイクロコンピュータのプログラムで使用さ
れる複数の特定アドレスによって内部メモリから読出さ
れる複数の表示データをそれぞれ保持する複数のラッチ
と、該複数の特定ア]・レスの1つでアクセスされたと
き対応するラッチ選択データを出力する外部メモリと、
該ラッチ選択データをデコードして前記複数のラッチの
中から前記表示データを取込むラッチを選択するデコー
ダと、前記マイクロコンピュータに対し該特定アトレス
を指示するアドレス指定スイッチとを備えることを特徴
とする。
(Means for Solving the Problems) The present invention provides a plurality of latches each holding a plurality of display data read from an internal memory according to a plurality of specific addresses used in a microcomputer program, and ]・An external memory that outputs the corresponding latch selection data when accessed by one of the responses;
The present invention is characterized by comprising a decoder that decodes the latch selection data and selects a latch from among the plurality of latches to take in the display data, and an address designation switch that instructs the microcomputer to the specific address. .

〔作用] 外部メモリ、つまり外付けのRAMには予め特定アドレ
スでアクセスされる領域に所定のラッチ選択データを書
込んでおき、ここを実際のプログラム実行中に該特定ア
ドレスでアクセスすれば対応するラッチ選択データが読
出されるので一致(正常)とする。そうでない場合、つ
まり特定アドレス以外のアドレスで如何にアクセスして
も有効なラッチ選択データは読出されないので、この場
合は不一敗(異常)となる。
[Operation] Predetermined latch selection data is written in advance in an area of external memory, that is, an external RAM, which can be accessed with a specific address, and this can be handled by accessing this with the specific address during actual program execution. Since the latch selection data is read out, it is assumed that they match (normal). If this is not the case, valid latch selection data will not be read out no matter how much access is made at an address other than the specific address, and in this case, the result will be invincible (abnormal).

一致した場合にはその特定アドレスで同時にマイコン内
部RAMもアクセスされ、そこから表示データが読出さ
れるので、これを選択したラッチに取込む。
If there is a match, the internal RAM of the microcomputer is also accessed at the same time using that specific address, and display data is read therefrom, so that it is taken into the selected latch.

同様のことを各特定アドレスについて行ない、全てのラ
ッチの内容を表示すれば、プログラムが正常であれば全
ての特定アドレスに対応した表示データが表示される。
If the same thing is done for each specific address and the contents of all the latches are displayed, if the program is normal, display data corresponding to all the specific addresses will be displayed.

これに対し、異常のときは一部の特定アドレスを通過し
ないのでその表示データが欠けた表示となり、このこと
からプログラムの正異常を可視的に判別できる。
On the other hand, when there is an abnormality, some specific addresses are not passed through, so the display data is missing, and from this it is possible to visually determine whether the program is normal or abnormal.

このようなデバッグツールで使用する外付けのRAMは
例えば8ビットでも256通りの一致・検出ができるの
で、使用iC数は従来よりはるかに少なくて済む。
Since the external RAM used in such a debugging tool can perform 256 matches and detections even with 8 bits, the number of ICs used can be far smaller than in the past.

〔実施例] 第1図は本発明の一実施例を示す構戊図で、1はマイコ
ン、l1はその内部RAM、3はアドレス指定スイッチ
、4 1+ 4 Z+・・・・・・は複数のラッチ回路
、5は外付けのデュアルボー} (DP)RAM、6は
デコーダである。
[Embodiment] Fig. 1 is a block diagram showing an embodiment of the present invention, in which 1 is a microcomputer, l1 is its internal RAM, 3 is an address designation switch, and 4 1+ 4 Z+... are a plurality of A latch circuit, 5 an external dual baud (DP) RAM, and 6 a decoder.

DPRAM 5は物理的に分離されたライト用のボート
■とリ一ド用のボート■を有し、ポート■でアクセスす
ると外部データ(この場合はラッチ選択データ)を書込
むことができ、ボート■でアクセスすると内部データを
読出すことができる。
DPRAM 5 has a physically separated write port ■ and read port ■. When accessed through port ■, external data (latch selection data in this case) can be written, and port ■ The internal data can be read by accessing with .

マイコン1はDPRAM 5にラッチ選択データを書込
む特別の書込みプログラムを有し、アドレス指定スイッ
チ3で指示される特定アドレスに固有のラッチ選択デー
タを書込む。このラッチ選択データは、例えばアドレス
指定スイッチ3が複数あり、それぞれで指定される特定
アドレスをA 1 , A 2 , A 2 ,?・・
・・・とじたとき、ラッチ4 1+ 4 21・・・・
・・を順番に使用するものとしてそのラッチ番号#1,
#2,・・・・・・を表わすデータである。デコーダ6
はDPRAM 5から読出されたラッチ選択データをデ
コードしてラッチ番号#1,#2,・・・・・・に変換
し、ラッチ44■,・・・・・・の1つを選択する。
The microcomputer 1 has a special write program for writing latch selection data into the DPRAM 5, and writes unique latch selection data to a specific address indicated by the address designation switch 3. This latch selection data includes, for example, a plurality of address designation switches 3, and the specific addresses designated by each are A 1 , A 2 , A 2 , ?・・・
...When closed, latch 4 1+ 4 21...
... is used in order, and its latch number #1,
This is data representing #2, . . . . Decoder 6
decodes the latch selection data read out from the DPRAM 5, converts it into latch numbers #1, #2, . . . and selects one of the latches 442, .

マイコン1は上述した書込みプログラムを実行した後、
デバ・ングの対象となるプログラムを実行する。このプ
ログラムを実行しながらマイコン1から出力される全て
のアドレスは、DPRAM 5のリードアドレスとして
ボート■に入力する(ボート■は使用されない)。この
結果DPRAM 5からは順次リードデータが出力され
るが、デコーダ6でデコードされたときラッチ4 l+
 4 21・・・・・・の1つを選択できるのは上述し
た書込みプログラムでラッチ選択データを書込んだ特定
アドレスだけである。
After the microcomputer 1 executes the above-mentioned writing program,
Execute the program to be debugged. All addresses output from the microcomputer 1 while executing this program are input to the port 2 as read addresses of the DPRAM 5 (the port 2 is not used). As a result, read data is sequentially output from the DPRAM 5, but when decoded by the decoder 6, the latch 4 l+
4, 21, . . . can be selected only at the specific address to which the latch selection data is written by the above-mentioned write program.

このことを確実にするために、DPRAM 5の全アド
レスには予めどのラッチも選択できない不一致データを
書込んでおき、その後特定アドレスについてのみラッチ
を選択できる一致データを書込むよ?にすると良い。
To ensure this, unmatched data that does not allow any latch to be selected is written in advance to all addresses in the DPRAM 5, and then matched data that allows only a specific address to be selected is written. It's good to do this.

デバッグ対象のプログラムを実行する場合、マイコン1
は他のプログラムと同様に内部RAMI1をアクセスす
る。そのアドレスはDPRAM 5をアクセスするリー
ドアトレスと同じものであるから、例えば#エラッチ4
,を選択する特定アドレスA.で内部RAMIlから読
出された表示データD,は#1ラッチ41に取込まれ、
また#2ラッチ4■を選択する特定アドレスA2で内部
RAMIIから読出された表示データD2は#2ラソチ
4。に取込まれる。
When running the program to be debugged, microcontroller 1
accesses internal RAMI1 like other programs. Since that address is the same as the read address for accessing DPRAM 5, for example, #erratch4
, to select a specific address A. The display data D, read from the internal RAMIl is taken into the #1 latch 41,
Further, the display data D2 read from the internal RAM II at the specific address A2 that selects the #2 latch 4 is the #2 latch 4. be taken into account.

第2図はこの説明図で、DPRAM中の#lデータ、#
2データはそれぞれ#lラソチ4. 、#2ラッチ4.
を選択するためのラッチ選択データである。
Figure 2 is an explanatory diagram of this, showing #l data in DPRAM, #
2 data are #lrasochi4. , #2 latch 4.
This is latch selection data for selecting.

内部RAMの同しアドレスA,,A,には#1ラッチ4
、#2ラッチ4■で表示される表示データDD2が格納
されている。尚、この表示デークDD2は表示用に特に
設定されたものではなく、動作中に書替えられる一般的
なデータである。
The same address A,,A, of internal RAM has #1 latch 4.
, #2 latch 4■ display data DD2 is stored. Note that this display data DD2 is not specially set for display, but is general data that is rewritten during operation.

第1図の構成において内部RAMIIはマイコ?lに内
蔵のものであるから外付けの論理iCはラッチ4、4■
,・・・・・・、デコーダ6、DPRAM 5だけであ
る。ここでデコーダ6を8ビットとすると、DPRAM
 5は8ビット256アドレス分のラッチ選択データを
格納できる。このアドレス一致検出機能は、第3図で一
致検出回路2を構成する数10個の論理iCに相当する
In the configuration shown in Figure 1, is the internal RAMII microcontroller? Since the external logic IC is built in latch 4, 4■
, . . ., only the decoder 6 and the DPRAM 5. Here, if the decoder 6 is 8 bits, the DPRAM
5 can store latch selection data for 256 8-bit addresses. This address match detection function corresponds to several dozen logic ICs forming the match detection circuit 2 in FIG.

DPRAM 5はアドレスバスをマイコン内部RAM1
lと共用しても、リードデータが物理的に分離されたデ
ータパスに出力される点に着目して使用したが、通常の
RAMを使用してもデータハスを分離すれば同様のこと
が可能である。また、ラッチ選択データは別のマイコン
を用いて書込むこともできる。
DPRAM 5 connects the address bus to microcomputer internal RAM 1.
I focused on the point that the read data is output to a physically separated data path even if it is shared with l, but it is possible to do the same thing even if you use normal RAM by separating the data path. be. Furthermore, the latch selection data can also be written using another microcomputer.

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

以上述べたように本発明によれば、マイコンソフトのデ
バッグを少ない数の論理iCで実現できる利点がある。
As described above, according to the present invention, there is an advantage that debugging of microcomputer software can be realized with a small number of logical iCs.

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

第l図は本発明の一実施例を示す構戒図、第2図は本発
明で使用するメモリの説明図、第3図は従来のデバッグ
クールの構戒図である。 図中、1はマイクロコンピュータ、l’lは内部RAM
,3はアドレス指定スイッチ、4はラッチ、5は外部R
AM,6はデコーダである。 出 願 人 富士通テン株式会社
FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of a memory used in the present invention, and FIG. 3 is a diagram of a conventional debugging unit. In the figure, 1 is a microcomputer, l'l is an internal RAM
, 3 is the addressing switch, 4 is the latch, 5 is the external R
AM,6 is a decoder. Applicant Fujitsu Ten Ltd.

Claims (1)

【特許請求の範囲】 1、マイクロコンピュータのプログラムで使用される複
数の特定アドレスによって内部メモリから読出される複
数の表示データをそれぞれ保持する複数のラッチ(4)
と、 該複数の特定アドレスの1つでアクセスされたとき対応
するラッチ選択データを出力する外部メモリ(5)と、 該ラッチ選択データをデコードして前記複数のラッチの
中から前記表示データを取込むラッチを選択するデコー
ダ(6)と、 前記マイクロコンピュータに対し該特定アドレスを指示
するアドレス指定スイッチ(3)とを備えることを特徴
とするデバッグツール。
[Claims] 1. A plurality of latches (4) each holding a plurality of display data read from an internal memory according to a plurality of specific addresses used in a microcomputer program.
an external memory (5) that outputs corresponding latch selection data when accessed by one of the plurality of specific addresses; and an external memory (5) that decodes the latch selection data and extracts the display data from among the plurality of latches. A debugging tool comprising: a decoder (6) for selecting a latch to be loaded; and an address designation switch (3) for instructing the microcomputer to the specific address.
JP1195341A 1989-07-27 1989-07-27 Debug tool Pending JPH0358241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1195341A JPH0358241A (en) 1989-07-27 1989-07-27 Debug tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1195341A JPH0358241A (en) 1989-07-27 1989-07-27 Debug tool

Publications (1)

Publication Number Publication Date
JPH0358241A true JPH0358241A (en) 1991-03-13

Family

ID=16339558

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1195341A Pending JPH0358241A (en) 1989-07-27 1989-07-27 Debug tool

Country Status (1)

Country Link
JP (1) JPH0358241A (en)

Similar Documents

Publication Publication Date Title
US5206948A (en) Bus monitor with means for selectively capturing trigger conditions
JPH06100976B2 (en) Break point recognition device
US5142673A (en) Bus monitor with dual port memory for storing selectable trigger patterns
US4839852A (en) Programmable controller with self testing I/O structure
JPH0358241A (en) Debug tool
JPS6114524B2 (en)
JPS60207935A (en) Detecting system of illegal instruction
EP0434081B1 (en) Monitor apparatus for selectively detecting signal conditions at points in an operating system
JPS60211554A (en) Data processing unit
JPS6184749A (en) Processor maintenance device
JPH04338847A (en) Address conversion buffer diagnostic device
JPS626341A (en) Information processor
JPS6237748A (en) Triagger signal generating system by firmware
JPH08328902A (en) Software development supporting device
JP2000222243A (en) Device and method for debugging
JP2000181900A (en) Single chip microcomputer
JPS61267141A (en) Address detecting device for microprogram
JPH0486932A (en) Memory fault detecting system
JPS62129766A (en) Memory tester
JPH10161940A (en) Checking method for memory
JPS619733A (en) Test device
JPH07253908A (en) Memory access device
JPS6024654A (en) Program debugging device
JPS6320547A (en) Data processor
JPH0628039B2 (en) Microcomputer failure analysis device