JPH03276235A - Microcomputer debugging device - Google Patents
Microcomputer debugging deviceInfo
- Publication number
- JPH03276235A JPH03276235A JP2073329A JP7332990A JPH03276235A JP H03276235 A JPH03276235 A JP H03276235A JP 2073329 A JP2073329 A JP 2073329A JP 7332990 A JP7332990 A JP 7332990A JP H03276235 A JPH03276235 A JP H03276235A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- ram
- microprocessor
- trigger 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
Links
- 230000015654 memory Effects 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000003936 working memory Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】 に関するものである。[Detailed description of the invention] It is related to.
〔発明の概要]
従来マイクロコンピュータのデバッグ装置として実時間
でRAMのデータをモニタする装置があり、複数ワード
のRAMの内容をチエツクすることができた。しかし、
マイクロコンピュータが動作している限り連続的にモニ
タ画面は更新されるのである瞬間のデータを確認するこ
とが困難な場合が多い。[Summary of the Invention] Conventionally, as a debugging device for a microcomputer, there is a device that monitors RAM data in real time, and it is possible to check the contents of a plurality of words of RAM. but,
Since the monitor screen is continuously updated as long as the microcomputer is operating, it is often difficult to check the data at a certain moment.
今回マイクロコンピュータを動作させた状態でRAMデ
ータをモニタでき、かつ、ある瞬間のRAMデータの内
容も保持できるようにしたものである。This time, the RAM data can be monitored while the microcomputer is operating, and the contents of the RAM data at a certain moment can also be held.
従来の技術としては2例えば特開昭55−43660「
マイクロコンピュータデバッグ装置」で出願されている
様なマイクロコンピュータデバッグ装置がある。これは
、デバッグ対象となるマイクロコンピュータの作業メモ
リの内容を実時間で、かつ。As a conventional technique, 2, for example, Japanese Patent Application Laid-open No. 55-43660 "
There is a microcomputer debugging device such as the one filed under "Microcomputer Debugging Device." It debugs the contents of the working memory of the microcomputer being debugged, and in real time.
プログラムの進行速度を全く犠牲にしないで常にモニタ
できる様にしたものである。This allows constant monitoring without sacrificing the progress speed of the program.
構成としては、デバッグ対象のマイクロコンピュータの
アドレスバス、データバス、コントロールバスによりそ
のマイクロコンピュータ゛のタイミングでデータを書き
込むメモリと書き込み時以外は、メモリのアドレスを続
出用に切り換えて、常時読出しアドレスを出力する回路
により該メモリを順次読み出し、データをモニタ(CR
T)に表示させる回路とから成る。The configuration consists of a memory in which data is written at the timing of the microcomputer using the address bus, data bus, and control bus of the microcomputer to be debugged, and a memory address that is switched to continuous readout except during writing, and a constant read address. The memory is sequentially read out by a circuit that outputs the data, and the data is monitored (CR
It consists of a circuit shown in T).
前述の従来技術には、実時間でのデータの監視という効
果があるが、ある瞬時のデータの状態がチエツクできな
いという欠点がある。本発明はこれらの欠点を解決する
ことを目的とする。Although the above-mentioned conventional technology has the effect of monitoring data in real time, it has the disadvantage that the state of data at a certain moment cannot be checked. The present invention aims to overcome these drawbacks.
本発明は上記の目的を達成するため、モニタ用のRAM
を複数用いて、ある任意の瞬時(トリガ時)のデータを
保持できるようにしたものである。In order to achieve the above object, the present invention provides a RAM for monitoring.
By using a plurality of , it is possible to hold data at any given moment (at the time of trigger).
第3図は一例として一つのRAMのアドレスを分割した
場合を示している。第3図のRAM8の0〜255部分
を最初に対象マイクロコンピュータのタイミングで書き
換えてデータのモニタを行う。FIG. 3 shows, as an example, a case where one RAM address is divided. Parts 0 to 255 of the RAM 8 in FIG. 3 are first rewritten at the timing of the target microcomputer and the data is monitored.
次にある瞬間(これをトリガ信号が来た時点とすると)
に自動的にRAM8の書き込みエリアを256〜511
にしてしまうとO〜255にはその瞬間のデータの状態
が残る。しかも、256〜511のエリアをモニタする
ことにより実時間でもデータの監視が可能となる。第2
図がこの様子を時間的に表わしたものである。第1番目
のトリガ信号の瞬間のデータはRAM8のO〜255に
残り、第2番目のトリガ信号の瞬間のデータは256〜
511に残ることになる。トリガ信号がなければ書き込
みが行なわれている単位エリアの内容は順次書き込み、
読み呂し、実時間でモニタすることができる。The next moment (assuming this is the point when the trigger signal arrives)
The write area of RAM8 is automatically set to 256 to 511.
If you do so, the state of the data at that moment remains in O~255. Moreover, by monitoring the areas 256 to 511, data can be monitored in real time. Second
The figure shows this situation over time. The instantaneous data of the first trigger signal remains in RAM8 O~255, and the instantaneous data of the second trigger signal remains in 256~255 of RAM8.
He will remain at 511. If there is no trigger signal, the contents of the unit area being written will be written sequentially.
You can read it and monitor it in real time.
その結果、RAM8のO〜255には、第1番目のトリ
ガ信号の瞬間のデータが保持され、256〜511には
第2番目のトリガ信号の瞬間のデータが保持される。以
下同様にして複数回のそのトリガ信号の瞬間毎のデータ
の状態が保持される。As a result, the instantaneous data of the first trigger signal is held in 0 to 255 of the RAM 8, and the instantaneous data of the second trigger signal is held in 256 to 511. Thereafter, in the same manner, the state of data at each instant of the trigger signal is held a plurality of times.
デバッグ者はそのRAMのどの部分をモニタするかによ
り、瞬時毎のデータの状態をチエツクできる様になる。A debugger can check the state of data at every instant by monitoring which part of the RAM.
以下この発明の一実施例を第1図により説明する。 An embodiment of the present invention will be described below with reference to FIG.
同図において、1は図示しない被測定マイクロプロセッ
サのデータバスからの信号Aを受けるバッファ回路、2
はアドレス設定回路、3は比較回路、6はCRTコント
ローラ、7は図示しない被測定マイクロプロセッサのア
ドレスバスの信号B又は表示用アドレスHを選択するセ
レクタ、8は第3図に示したRAM、9は表示用制御回
路、10はCRT、12はプリセットカウンタ、13は
マイクロプロセッサである。以下に動作を説明する。In the figure, 1 is a buffer circuit that receives a signal A from a data bus of a microprocessor under test (not shown);
3 is an address setting circuit, 3 is a comparison circuit, 6 is a CRT controller, 7 is a selector for selecting the signal B of the address bus of the microprocessor under test (not shown) or the display address H, 8 is the RAM shown in FIG. 3, 9 10 is a CRT, 12 is a preset counter, and 13 is a microprocessor. The operation will be explained below.
比較回路3は、アドレス設定回路2と被測定マイクロプ
ロセッサのアドレスバスBの上位アドレスとを比較し、
一致すると一致信号Gを出力する。The comparison circuit 3 compares the address setting circuit 2 and the upper address of the address bus B of the microprocessor under test,
When they match, a match signal G is output.
ここでアドレス設定回路2のアドレス情報はユーザが任
意に設定できるものである。一致信号Gが出力されると
セレクタ7がアドレスバスBを選択し、RAM8のアド
レスバス下位りには、アドレスバスBの信号が来る。又
、バッファ1も一致信号Gによりイネーブルとなり、被
測定マイクロプロセッサのデータバスAがRAM8のデ
ータラインRに乗る。被測定マイクロプロセッサ(図示
せず)のリード信号RDC又は、ライト信号WRDによ
りRAM8にデータが書き込まれる。このとき、プリセ
ットカウンタ12はある値を示していてRAM8の上位
アドレスMを指定している。Here, the address information of the address setting circuit 2 can be set arbitrarily by the user. When the match signal G is output, the selector 7 selects the address bus B, and the address bus B signal comes to the lower address bus of the RAM 8. The buffer 1 is also enabled by the coincidence signal G, and the data bus A of the microprocessor under test is placed on the data line R of the RAM 8. Data is written into the RAM 8 by a read signal RDC or a write signal WRD from a microprocessor under test (not shown). At this time, the preset counter 12 indicates a certain value and specifies the upper address M of the RAM 8.
以上の様にして、被測定マイクロプロセッサが設定アド
レスEをアクセスする毎にRAM8のそのアクセス番地
にデータが書き込まれることになる。この動作は第3図
のRAM8の0〜255部分をアクセスしていると考え
ればよい。被測定マイクロプロセッサが設定アドレスE
をアクセスしてない時は、セレクタ7は、CRTコント
ローラ6の表示用アドレスHを選択するので、RAM8
の下位アドレスLはCRTコントローラ6の制御で読み
出しが行なわれる。読み出しされたデータRは2表示用
制御回路9で変換されCRTIOに表示される6
次にトリガ信号Tが入力された瞬間にプリセットカウン
タ12はインクリメントし、RAM8の上位のアドレス
バスMが1加算される。これは。As described above, each time the microprocessor under test accesses the setting address E, data is written to the accessed address in the RAM 8. This operation can be thought of as accessing portions 0 to 255 of the RAM 8 in FIG. The microprocessor under test is set to address E.
When the RAM 8 is not being accessed, the selector 7 selects the display address H of the CRT controller 6.
The lower address L of is read out under the control of the CRT controller 6. The read data R is converted by the display control circuit 9 and displayed on the CRTIO.6 Next, the moment the trigger signal T is input, the preset counter 12 is incremented, and the upper address bus M of the RAM 8 is incremented by 1. Ru. this is.
第3図の256〜511の部分にアドレスが変化したこ
とである。これにより、トリガ信号Tが入力された瞬間
のデータは、第3図のO〜255に保持されることとな
る。説明を第1図に戻して。This is because the address has changed to the part 256 to 511 in FIG. As a result, the data at the moment when the trigger signal T is input is held in O to 255 in FIG. 3. Let's return the explanation to Figure 1.
RAM8は、被測定マイクロプロセッサが設定アドレス
Eをアクセスすると先に書き換えていた番地と異なる番
地にデータを書き換える。以上の様に、トリガ信号Tが
入力される度にRAM8の上位アドレスMがインクリメ
ントされ、データの書き込みエリアが更新される。内蔵
マイクロプロセッサBは、ユーザーの操作により、RA
M8の書込みを制御信号にで停止させたり、プリセット
カウンタ12をプリセットすることによりRAM8の任
意の番地のデータをCRTIOに表示させる制御を行う
、これにより、第何番目のトリガ信号の瞬間のデータ状
態もCRTに表示できる。When the microprocessor under test accesses the set address E, the RAM 8 rewrites data to an address different from the previously rewritten address. As described above, each time the trigger signal T is input, the upper address M of the RAM 8 is incremented, and the data write area is updated. The built-in microprocessor B uses the RA by user operation.
By stopping the writing of M8 with a control signal and by presetting the preset counter 12, control is performed to display data at an arbitrary address in RAM8 on CRTIO.This allows the data state at the moment of the trigger signal can also be displayed on a CRT.
本発明によれば、従来できなかったある瞬間のデータの
状態を、対象マイクロプロセッサにブレークをかけずに
監視することができる。According to the present invention, it is possible to monitor the state of data at a certain moment without causing a break in the target microprocessor, which was previously impossible.
第1図は本発明の実施例の全体構成を示すブロック図、
第2図は本発明における被デバツグ対象マイクロプロセ
ッサの動作とトリガ信号と表示に関しての概念図である
。第3図は、RAM8のアドレスを分割した本発明の1
例概念図である。
1:バッファ回路、2ニアドレス回路、3:比較回路、
4:AND回路、5:NAND回路、6:CRTコント
ローラ、7:セレクタ、8:RAM9:表示用制御回路
、lo:cRT、11:NAND回路、12ニブリセツ
トカウンタ、13:マイクロプロセッサ、14,15
:スイッチ回路、A:被測定マイクロプロセッサデータ
バス、B:被測定マイクロプロセッサアドレスバス、C
:被測定マイクロプロセッサリード信号、D=被測定マ
イクロプロセッサライト信号T:トリガ信号。FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention;
FIG. 2 is a conceptual diagram regarding the operation, trigger signal, and display of the microprocessor to be debugged according to the present invention. FIG. 3 shows a method of the present invention in which the address of RAM 8 is divided.
It is an example conceptual diagram. 1: buffer circuit, 2 near address circuit, 3: comparison circuit,
4: AND circuit, 5: NAND circuit, 6: CRT controller, 7: Selector, 8: RAM9: Display control circuit, lo: cRT, 11: NAND circuit, 12 nib reset counter, 13: Microprocessor, 14, 15
: Switch circuit, A: Microprocessor data bus under test, B: Microprocessor address bus under test, C
: Microprocessor under test read signal, D = Microprocessor under test write signal T: Trigger signal.
Claims (1)
任意に設定したアドレスを比較する回路と、該アドレス
が一致した時に前記被測定マイクロコンピュータのアド
レスでデータを書き込む複数のエリアを有するメモリ回
路と、書き込む際にメモリの任意エリアを指定する回路
と、外部信号により該メモリの任意エリアを指定する回
路の指定値を順次変更する手段を持ち、該メモリのデー
タを表示するマイクロコンピュータデバッグ装置。1. A circuit that compares the address signal of the microcomputer to be debugged with an arbitrarily set address, a memory circuit having multiple areas that writes data at the address of the microcomputer to be measured when the addresses match, and A microcomputer debugging device having a circuit for specifying an arbitrary area of a memory, and means for sequentially changing the specified value of the circuit for specifying an arbitrary area of the memory using an external signal, and displaying data of the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2073329A JPH03276235A (en) | 1990-03-26 | 1990-03-26 | Microcomputer debugging device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2073329A JPH03276235A (en) | 1990-03-26 | 1990-03-26 | Microcomputer debugging device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03276235A true JPH03276235A (en) | 1991-12-06 |
Family
ID=13515021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2073329A Pending JPH03276235A (en) | 1990-03-26 | 1990-03-26 | Microcomputer debugging device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03276235A (en) |
-
1990
- 1990-03-26 JP JP2073329A patent/JPH03276235A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5426730A (en) | Method and apparatus for displaying sequential function chart elements | |
JPH03118643A (en) | Data fetching method | |
JPS59216256A (en) | Operation analyzing device of microprocessor | |
JP3358759B2 (en) | Data trace method for programmable controller | |
JPH03276235A (en) | Microcomputer debugging device | |
JPS60159951A (en) | Tracing system in information processing device | |
JPS6253859B2 (en) | ||
JP2595082B2 (en) | Operation state monitoring device for programmable controller | |
JP3167245B2 (en) | Programmable controller operating state monitoring device | |
EP0852355A2 (en) | Programmable controller | |
JPS6232510A (en) | Abnormality diagnostic device for sequencer | |
JP2760228B2 (en) | Microprocessor with built-in cache memory and its trace analyzer | |
JPH0192803A (en) | Monitor display system for programmable controller | |
JPS62162105A (en) | Flow chart type programmable controller | |
JP2923788B2 (en) | Screen input method | |
JPH1091477A (en) | Control microcomputer device and maintenance tool for the same | |
JPS60243752A (en) | Data tracing device | |
JPH0447857B2 (en) | ||
JPH0418032Y2 (en) | ||
JPH08286734A (en) | Programmable display device | |
JPS6232491A (en) | Crt display unit | |
JPH01175646A (en) | Storage device with history function | |
JPS6049445A (en) | Debug device of microprocessor or the like | |
JPS6064262A (en) | Trace display method of logic analyser | |
JPS607551A (en) | Program block tracing system |