JPS61112250A - Data processing system - Google Patents

Data processing system

Info

Publication number
JPS61112250A
JPS61112250A JP59233210A JP23321084A JPS61112250A JP S61112250 A JPS61112250 A JP S61112250A JP 59233210 A JP59233210 A JP 59233210A JP 23321084 A JP23321084 A JP 23321084A JP S61112250 A JPS61112250 A JP S61112250A
Authority
JP
Japan
Prior art keywords
mpu
break
signal
circuit
counter
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.)
Granted
Application number
JP59233210A
Other languages
Japanese (ja)
Other versions
JPH0426138B2 (en
Inventor
Masatoshi Imai
雅敏 今井
Kenichi Nagase
長瀬 賢一
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.)
Hitachi Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Hitachi Ltd, Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP59233210A priority Critical patent/JPS61112250A/en
Publication of JPS61112250A publication Critical patent/JPS61112250A/en
Publication of JPH0426138B2 publication Critical patent/JPH0426138B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • 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)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To monitor the operation of a data processing system after the break conditions are satisfied by delivering a stop signal to a microprocessor when a prescribed period of time passed after the break conditions are satisfied. CONSTITUTION:A detection signal phiC is deliveres for start of the counting action of a counter 22 when a break conditions deciding circuit 21 detects the break point of a program. Then a time-out signal phit is sent to a break generating circuit 23 when the count value of the counter 22 reaches a prescribed level. The circuit 23 sends an MPU interruption stop signal IRQ to an MPU 10 to discontinue the actuation of the MPU 10. Then the circuit 23 delivers a trace stop signal phist to a trace circuit 12 to stop the fetching of signals on a bus.

Description

【発明の詳細な説明】 [技術分野] この発明は、データ処理技術に関し、例えばマイクロプ
ロセッサのエミュレーションを行なうエミュレータのよ
うな装置に利用して有効な技術に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to data processing technology, and relates to a technology that is effective when used in a device such as an emulator that emulates a microprocessor.

[背景技術] ユーザーが開発したマイクロコンピュータ・システムの
ソフトウェアを開発したり、デバソギングを行なう場合
、第2図に示すような装置を使用して行なわれることが
ある。すなわち、マイクロコンピュータ・システム(ユ
ーザー・システム)1を構成するボードla上に設けら
れたマイクロプロセッサ(以下MPUと称する)用のI
Cソケット2に、コネクタ3を介してシステムlのMP
Uと同一のMPUを内蔵したアダプティブ・システム・
エミュレ−タ(以下ASEと称する)4を接続する。こ
のASE4は、ケーブルを介してCRTディスプレイ5
やフロッピーディスク装置6a、6b等を備えたサポー
トツールと呼ばれるシステム開発装置7に接続されてい
る。
[Background Art] When developing software for a microcomputer system developed by a user or performing devasogging, an apparatus as shown in FIG. 2 is sometimes used. That is, an I for a microprocessor (hereinafter referred to as MPU) provided on board la constituting a microcomputer system (user system) 1.
MP of system l is connected to C socket 2 via connector 3.
Adaptive system with built-in MPU same as U
An emulator (hereinafter referred to as ASE) 4 is connected. This ASE4 connects to the CRT display 5 via a cable.
It is connected to a system development device 7 called a support tool, which is equipped with a floppy disk device 6a, 6b, and the like.

上記システムにおいては、CRTディスプレイ5のキー
ボードより入力されるアセンブラやコンパイラ等の言語
で書かれたソースプログラムは、先ずフロッピーディス
ク6aに書き込まれ、システム開発装置7内のMPUに
よって機械語に翻訳されてオブジェクトプログラムの形
でフロッピーディスク6bに書き込まれる。フロッピー
ディスク6bに書き込まれたプログラムは、ASEA内
のMPUによってユーザー・システム1内のRAM(ラ
ンダム・アクセス・メモリ)8等に転送され、書き込ま
れる。
In the above system, a source program written in a language such as an assembler or compiler that is input from the keyboard of the CRT display 5 is first written to a floppy disk 6a, and then translated into machine language by the MPU in the system development device 7. It is written to the floppy disk 6b in the form of an object program. The program written on the floppy disk 6b is transferred to a RAM (random access memory) 8 or the like in the user system 1 by the MPU in ASEA and written therein.

RAM8等に書き込まれたユーザー・プログラムは、I
Cソケット2からコネクタ3を引き抜いて、システムの
MPU9を差し込んでやると1通常はこのMPU9によ
って実行されるわけであるが、第2図のシステムでは、
ASEJ内のMPU(MPU9と同一タイプ)によって
エミュレーションを行ないながら、ユーザー・プログラ
ムのデバッギングを行なえるようになっている。
The user program written to RAM8 etc. is
When the connector 3 is pulled out from the C socket 2 and the system's MPU 9 is inserted, 1 Normally, this MPU 9 executes the operation, but in the system shown in Fig. 2,
The user program can be debugged while being emulated by the MPU (same type as MPU9) in ASEJ.

この場合、CRTディスプレイ5やフロッピーディスク
装置i6a、6b等をコントロールしたり。
In this case, it controls the CRT display 5, floppy disk devices i6a, 6b, etc.

アセンブラやコンパイラ言語を機械語へ翻訳したり、さ
らにASE4内のMPUによってユーザー・プログラム
を実行して得られたデータを編集してCRTディスプレ
イ5に表示させたりするホストMPUがシステム開発装
置7内に設けられているが、エミュ・レータには、エミ
ュレーションの結果得られたデータを上記システム開発
装置7内のMPUが編集し易い形に処理できるような機
能を持たせることができる。上記システムでは、ASE
4内のMPUがエミュレーションとデータ処理機能を兼
用するようにされている。そのため、ASE4内のMP
Uをシステム開発装置7内のコントローラから出力され
る制御信号に基づいてエミュレーションモード時とシス
テムモード時とで空間分割して実行するようにしている
There is a host MPU in the system development device 7 that translates assembler and compiler languages into machine language, and also edits data obtained by executing user programs using the MPU in the ASE4 and displays it on the CRT display 5. However, the emulator can be provided with a function that allows the MPU in the system development device 7 to process data obtained as a result of emulation in a form that is easy to edit. In the above system, ASE
The MPU in 4 has both emulation and data processing functions. Therefore, MP in ASE4
Based on the control signal output from the controller in the system development device 7, U is spatially divided into emulation mode and system mode for execution.

上記構成のエミュレータ・システムについては、既に特
願昭58−34565号等において示されている。
An emulator system having the above configuration has already been disclosed in Japanese Patent Application No. 58-34565.

ところで、上記エミュレータ・システムを用いてユーザ
ー・プログラムのデバッギングを行なう場合、一般には
プログラムを細切れにしてエミュレーションを行なって
行くが、その際ブレークポイントと呼ばれる指定ポイン
ト(プログラム中のある位置)を通過したことを検出し
て、そこでプログラムの実行を中断することが行なわれ
る。
By the way, when debugging a user program using the emulator system mentioned above, the program is generally cut into pieces and emulated. This is detected and the execution of the program is interrupted at that point.

上記ブレーク方式では、アドレスバス上の信号等を監視
してアドレスが所定の条件に一致したときにプログラム
を中断(ブレーク)させるようにすると、アドレス等の
ブレーク条件成立と同時にプログラムの実行が停止され
る。従って、ブレーク直前までのシステム内の状態は、
バス上のデータをトレースメモリと呼ばれる記憶装置内
にリアルタイムで取り込んで、ブレーク後にそのトレー
ス・メモリの内容を解析することで、プログラムの暴走
要因等を解明し、ユーザープログラムやシステムのデバ
ッギングを行なうことができる。
In the break method described above, if the signal etc. on the address bus is monitored and the program is interrupted (break) when the address matches a predetermined condition, the execution of the program is stopped as soon as the break condition such as the address is met. Ru. Therefore, the state in the system just before the break is
Data on the bus is captured in real time into a storage device called trace memory, and the contents of the trace memory are analyzed after a break to determine the cause of program runaway and debug user programs and systems. I can do it.

しかしながら、ブレーク条件成立と同時にプログラムを
中断させるよりも、ブレーク条件成立後、数サイクルタ
イム経過したところで停止させ、そこまでのシステムの
動作状態が知った方が、暴走要因等を解明し易くなると
いうことが本発明者らによって明かにされた。
However, rather than interrupting the program as soon as the break condition is met, it is easier to determine the cause of the runaway if the program is stopped several cycles after the break condition is met and the operating state of the system up to that point is known. This was revealed by the present inventors.

しかるに、従来のシステムでは、ブレーク条件が成立し
てから所定時間経過したところでプログラムを停止させ
るには、新たにブレークポイントを設定し直してプログ
ラムを続行させてやらなければならず、その作業が面倒
である。また、新たに設定したブレークポイントに行く
までの途中にジャンプ命令等があると、速やかにプログ
ラムを中断させることができないという不都合もある。
However, in conventional systems, in order to stop a program after a predetermined amount of time has passed after a break condition is satisfied, it is necessary to set a new breakpoint and continue the program, which is a tedious task. It is. Furthermore, if there is a jump instruction or the like on the way to a newly set breakpoint, there is also the inconvenience that the program cannot be interrupted immediately.

[発明の目的] この発明の目的は、エミュレータのようなデータ処理シ
ステムにおいて、プログラムの暴走要因等の解明を容易
に行なえるようにし、これによって、デバッギングの効
率を向上させることにある。
[Object of the Invention] An object of the present invention is to make it easier to determine the cause of program runaway in a data processing system such as an emulator, thereby improving debugging efficiency.

この発明の前記ならびにそのほかの目的と新規な特徴に
ついては、本明細書の記述および添附図面から明かにな
るであろう。
The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.

[発明の概要] 本願において開示される発明のうち代表的なものの概要
を説明すれば、下記のとおりである。
[Summary of the Invention] Representative inventions disclosed in this application will be summarized as follows.

すなわち、エミュレータのようなデータ処理システムに
おいて、ブレーク条件の成立を検出する手段の他に、ブ
レーク条件成立後所定時間経過したときにマイクロプロ
セッサに対し停止信号を出力するようなブレーク発生手
段を設けることにより、ブレーク条件が成立した後のシ
ステムの動作状態を見ることができるようにし、これに
よって、暴走要因等の解明を容易にし、デバッギングの
効率を向上させるという上記目的を達成するものであ・
る。
That is, in a data processing system such as an emulator, in addition to means for detecting the establishment of a break condition, a break generating means is provided that outputs a stop signal to the microprocessor when a predetermined period of time has elapsed after the establishment of the break condition. With this, it is possible to see the operating state of the system after a break condition is established, thereby making it easier to identify the cause of runaway, etc., and achieving the above purpose of improving debugging efficiency.
Ru.

[実施例コ 第1図は、本発明に係るエミュレータ・システムの一実
施例を示す。
[Embodiment] FIG. 1 shows an embodiment of an emulator system according to the present invention.

同図において、符号10で示されているのは、第2図に
示されているASE (アダプティブ・システム・エミ
ュレ−タ)4内に設けられているエミユレーション用の
MPU (マイクロプロセッサ)で、このMPUl0は
、ユーザー・システムを構成するMPU9と同一タイプ
のMPUにより構成されている。そして、このエミユレ
ーション用MPU1 Oとシステム開発装置7内に設け
られたコントローラ11と、レトース回路12と、ブレ
ーク回路20とによってインサーキット・エミュレータ
が構成されている。
In the figure, the reference numeral 10 indicates an emulation MPU (microprocessor) provided in the ASE (adaptive system emulator) 4 shown in FIG. , this MPU10 is constituted by an MPU of the same type as MPU9 constituting the user system. The emulation MPU 1 O, a controller 11 provided in the system development device 7, a retouch circuit 12, and a break circuit 20 constitute an in-circuit emulator.

上記トレース回路12は、上記MPUl0がユーザー・
プログラムを実行している間に、バス上に表われる入出
力信号を時系列的に取り込むメモリとカウンタを有して
いる。ブレーク回路20ば、デバッギングの際に分割し
て実行させる一連のプログラムの終端(ブレークポイン
ト)の条件を設定しておくレジスタおよびこのレジスタ
の内容と7、いよ。ア、い信6等、や7、−6□。4較
、ア      ・°!両者が一致したか否か検出する
ブレーク条件判定回路21と、この判定回路21から出
力される一致検出信号φCによって計数動作を開始する
カウンタ22と、このカウンタ22の計数値が所定値に
達したときに出力されるタイムアウト信号φtに基づい
て上記M P tJ 1.0に割込みをかけてMPUの
動作を停止させるMPU割込停止信号IRQと上記トレ
ース回路12によるバス上の信号の取り込みを停止させ
るトレース停止信号φstを形成するブレーク発生回路
23とによって構成されている。
In the trace circuit 12, the MPU10 is
It has a memory and a counter that chronologically captures input/output signals appearing on the bus while the program is running. The break circuit 20 includes a register for setting conditions for the end (breakpoint) of a series of programs to be divided and executed during debugging, and the contents of this register.7. A, I believe 6th grade, 7, -6□. 4 comparison, a ・°! A break condition judgment circuit 21 detects whether the two match, a counter 22 starts counting operation in response to a coincidence detection signal φC output from this judgment circuit 21, and a count value of this counter 22 reaches a predetermined value. The MPU interrupt stop signal IRQ interrupts the M P tJ 1.0 to stop the operation of the MPU based on the timeout signal φt that is output at the time, and the trace circuit 12 stops receiving signals on the bus. A break generation circuit 23 generates a trace stop signal φst.

特に制限されないが、上記MPU割込停止信号IRQは
、MPUl0に対してソフトウェア的に割込みをかけら
れるような信号に形成されるようにされている。これに
よって、MPUl0に設けられた割込制御端子をすべて
ユーザーに開放することができるようにされる。
Although not particularly limited, the MPU interrupt stop signal IRQ is configured to be a signal that can interrupt the MPU10 using software. This makes it possible to open all the interrupt control terminals provided in MPU10 to the user.

また、コントローラ11は、バス14を介して、システ
ム開発装置7をコントロールするホストMPU15と接
続され、CRTディスプレイのキーボードからユーザー
・プログラムの実行等のコマンドが入って来ると、AS
Eに対するコマンドであるか否かを判断してMPUl0
にそのコマンドヲ供給する。MPUl0は、このコマン
ドを受は取ると、適当なアドレス信号を出力して空間の
切換え、すなわちシステムモードからユーザー・プログ
ラムを実行するエミュレーションモードへの切換えを行
なう。
The controller 11 is also connected to the host MPU 15 that controls the system development device 7 via the bus 14, and when a command such as execution of a user program is received from the keyboard of the CRT display, the AS
Determine whether it is a command for E and send MPU10
supply that command to When MPU10 receives this command, it outputs an appropriate address signal to switch the space, that is, to switch from the system mode to the emulation mode in which a user program is executed.

上記カウンタ22は、予めコントローラ11によって計
数値を任意に設定できるようにされ、例えばMPUl0
から出力される。メモリサイクルを規定するシステム・
クロックEを計数することにより、適当な遅延時間を得
るようにされている。
The counter 22 is configured such that the count value can be arbitrarily set by the controller 11 in advance, and for example, MPU10
is output from. A system that regulates memory cycles.
By counting the clock E, an appropriate delay time is obtained.

次に、上記エミュレータ・システムを用いてユーザー・
プログラムのデバッギングを行なう場合の動作について
説明する。
Next, use the above emulator system to
The operation when debugging a program will be explained.

デバッギングをしようとするユーザー・プログラムのあ
るループがバグを含んでいると、そのループを通ってい
るうちにそのループから抜は出して他のところへ跳んで
しまうことがある。そこで、デバッギングの際には、プ
ログラムを分断してエミュレーションを行なって行くよ
うにされる。そのため、プログラムを中断させる条件(
ブレークポイント)を設定してやる必要がある。
If a loop in the user program you are trying to debug contains a bug, the program may be pulled out of the loop and jump to another location while the program is being debugged. Therefore, when debugging, the program is divided and emulation is performed. Therefore, there are conditions (
You need to set breakpoints.

上記ブレークポイントは、MPUl0からアドレスバス
上に出力される信号を対象とするものであってもよいし
、あるいはデータバス上に出力される信号を対象とする
ものであってもよい。
The above breakpoint may target a signal output from MPU10 onto the address bus, or may target a signal output onto the data bus.

この実施例では、エミュレーションによりユーザー・プ
ログラムを実行する前にホストMPUl5からの指令に
よってコントローラ11が、そのときキーボード等から
与えられたブレークポイントを、ブレーク条件判定回路
21内のレジスタに設定してやるようになっている。ま
た、同様にして、エミュレーション開始前にカウンタ2
2の計数値もコントローラ11によって設定する。
In this embodiment, before a user program is executed by emulation, the controller 11 receives a command from the host MPU 15 to set a breakpoint given from the keyboard or the like in a register in the break condition determination circuit 21. It has become. Also, in the same way, counter 2 is set before starting emulation.
The count value of 2 is also set by the controller 11.

それから、ホストMPU15からのコマンドによってM
PUl0がエミュレーションを開始する。
Then, by a command from the host MPU 15, M
PU10 starts emulation.

このとき同時に、コントローラ11からの制御信号によ
って、トレース回路12が内部のカウンタを動作させな
がら、そのときバス上に表われる信号を内部のメモリ内
に順次取り込んで行く。
At the same time, the trace circuit 12 operates an internal counter in response to a control signal from the controller 11, and sequentially captures the signals appearing on the bus at that time into the internal memory.

また、ブレーク条件判定回路21もMPUl0から供給
されるバス上の所定の信号を監視し、内部のレジスタに
設定されたブレークポイントとの比較を逐次行なって行
く。
Further, the break condition determination circuit 21 also monitors a predetermined signal on the bus supplied from the MPU10, and successively compares it with a breakpoint set in an internal register.

このようにして、トレース回路12とブレーク条件判定
回路21を働かせなかせらエミュレーションを行なって
行く途中で、バス上の信号とブレーク条件が一致してブ
レークポイントを通過したと判定されると、ブレーク条
件判定回路21から一致信号φCが出力される。この信
号によってカウンタ22が計数動作を開始し、所定の時
間後に計数値が設定値に達すると、タイムアウト信号φ
tが出力される。
In this way, while performing emulation without activating the trace circuit 12 and the break condition determination circuit 21, if it is determined that the signal on the bus matches the break condition and the break point has been passed, the break condition A match signal φC is output from the determination circuit 21. This signal causes the counter 22 to start counting, and when the counted value reaches the set value after a predetermined time, a timeout signal φ
t is output.

すると、このタイムアウト信号φtを受けて。Then, upon receiving this timeout signal φt.

ブレーク、発生回路23がソフトウェアによる割込みを
かけてMPUl0の動作を停止させるとともに、トレー
ス停止信号φstをトレース回路12へ送って、バス上
のデータの取込みを停止させ。
The break generation circuit 23 issues a software interrupt to stop the operation of the MPU10, and also sends a trace stop signal φst to the trace circuit 12 to stop taking in data on the bus.

かつ内部のカウンタを停止させる。and stops the internal counter.

その結果、トレース回路12内のメモリのデータをカウ
ンタを参照しながら読み出して、適当な処理を行なって
からホストMPU15側へ送り、ホストMPU15がこ
れを編集した後、CRTディスプレイ(第2図参照)に
表示させることにより、MPUl0の停止前のバスの状
態を知ることができる。これによって、ブレークポイン
トを通過した直後にMPUl0が暴走したような場合に
もその状態を知ることができ、暴走要因の解明が容易に
なる。
As a result, the data in the memory in the trace circuit 12 is read out while referring to the counter, and after being subjected to appropriate processing, it is sent to the host MPU 15. After the host MPU 15 edits the data, it is displayed on the CRT display (see Figure 2). By displaying this information, it is possible to know the state of the bus before MPU10 is stopped. As a result, even if MPU10 goes out of control immediately after passing a breakpoint, the state can be known, and the cause of the runaway can be easily clarified.

しかも、上記カウンタ22の設定値を変えることでブレ
ークポイント通過後、MPUを停止させるまでの遅延時
間を任意に変更できるので、効率のよいデバッギングが
可能となる。
Furthermore, by changing the setting value of the counter 22, the delay time from passing the breakpoint until stopping the MPU can be arbitrarily changed, thereby enabling efficient debugging.

また、カウンタ22の設定値をゼロにしてやれば、従来
のエミュレータ・システムと同様にブレークポイント通
過時点でMPUを停止させることができるのはいうまで
もない。
Furthermore, it goes without saying that if the set value of the counter 22 is set to zero, the MPU can be stopped when a breakpoint is passed, as in conventional emulator systems.

ただし、カウンタ22の計数値を上記実施例のごとく可
変とする代わりにこれを固定し、ブレークポイントを通
過してから必ず一定時間後にMPUを停止させるように
してもよい6 なお、上記トレース回路12内のメモリの容量の大きさ
には限界があるので、上記実施例では。
However, instead of making the count value of the counter 22 variable as in the above embodiment, it may be fixed and the MPU always stops after a certain period of time after passing a breakpoint. In the above embodiment, there is a limit to the size of the memory capacity within the memory.

メモリがオーバーフローの状態にあると、初めのアドレ
スに戻って既に取り込んだデータの上から新たなデータ
を書き込んで行くようにされている。
When the memory overflows, it returns to the starting address and writes new data over the data that has already been taken in.

これによって、ブレークポイントに到達するまでの時間
が長くなったとしても、常にMPU停止直前のバスの状
態を知ることができる。
As a result, even if it takes a long time to reach a breakpoint, it is possible to always know the state of the bus immediately before the MPU stops.

また、プログラムのデバッギングには、あるループを何
十回あるいは何百回と繰り返えしているうちにそのルー
プから抜は出して他のところへ跳んでしまうようなもの
もある。そこで、そのようなデバッキングを見つけるた
めブレーク条件判定回路21内に、上記ブレークポイン
トの通過回数を計数するカウンタと通過回数を設定する
レジスタを設け、ブレークポイントをある所定回数だけ
通過したときにカウンタ22を動作させて一定遅延時間
後にMPUの動作を停止させるようにしてもよい。
Also, when debugging a program, there are times when you repeat a certain loop dozens or hundreds of times, then pull out of the loop and jump to another location. Therefore, in order to find such debugging, a counter for counting the number of times the breakpoint has been passed and a register for setting the number of times the breakpoint has been passed are provided in the break condition determination circuit 21. When the breakpoint has been passed a certain number of times, the counter is set. 22 may be operated and the operation of the MPU may be stopped after a certain delay time.

また、トレース回路12内のメモリは、上述したように
そこに取り込むことができるデータ量に制約があるので
、プログラムのあるループを繰り返し実行するような場
合、一連のプログラムを走らせて途中からバス上の信号
をトレース回路内のメモリに取り込むようにしたいこと
もある。そこで、あるポイントを通過したことを検出し
て、そこからトレースを開始できるようにするため、そ
の指定ポイント(トリガポイント)を設定するレジスタ
と、そのトリガポイントを通過したか否かを検出してト
レース開始信号を形成する回路を設けるようにしてもよ
い。
In addition, as mentioned above, the memory in the trace circuit 12 has a limit on the amount of data that can be loaded into it, so when a certain loop of a program is repeatedly executed, it is necessary to run a series of programs and then You may want to capture the signal into the memory in the trace circuit. Therefore, in order to be able to detect when a certain point has been passed and start tracing from there, we need to create a register to set the specified point (trigger point) and detect whether or not the trigger point has been passed. A circuit for forming a trace start signal may also be provided.

[効果コ エミュレータのようなデータ処理システムにおいて、ブ
レーク条件の成立を検出する手段の他に。
[In addition to means of detecting the establishment of a break condition in a data processing system such as an effect co-emulator.

ブレーク条件成立後所定時間経過したときにマイクロプ
ロセッサに対し、停止信号を出力するようなブレーク発
生手段を設けたので、ブレーク条件が成立した後のシス
テムの動作状態を見ることができるようになるという作
用により、暴走要因等の解明が容易になり、またカバレ
ージパス等の通過状態を知ることができ、これによって
デバノギングの効率が向上されるという効果がある。
By providing a break generating means that outputs a stop signal to the microprocessor when a predetermined amount of time has elapsed after the break condition has been met, it is now possible to see the operating state of the system after the break condition has been met. As a result, it becomes easy to clarify the causes of runaway, etc., and it is also possible to know the passing state of coverage paths, etc., which has the effect of improving the efficiency of devanogging.

以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。例えば、上記実施例では
、ブレーク発生回路23においてMPUl0に対しソフ
トウェアによる割込みをかけて動作を停止させることが
できるような信号を発生させるように構成されているが
Although the invention made by the present inventor has been specifically explained above based on Examples, it goes without saying that the present invention is not limited to the above Examples and can be modified in various ways without departing from the gist thereof. Nor. For example, in the embodiment described above, the break generation circuit 23 is configured to generate a signal that can interrupt the MPU10 by software to stop the operation.

MPUに設けられた割込み制御端子に対して、適当な信
号を印加して停止させるような構成にすることも可能で
ある。
It is also possible to adopt a configuration in which an appropriate signal is applied to an interrupt control terminal provided in the MPU to cause the MPU to stop.

[利用分野] 以上の説明では主として本発明者によってなされた発明
を、その背景となった利用分野であるエミュレータ・シ
ステムに適用したものについて説      、+!明
したが、それに限定されるものでなく、ロジックアナラ
イザなどのシステムにおいて、特定の事象の発生を検出
して何らかの動作を開始もしくは停止させたいような場
合に利用することができる。
[Field of Application] The above explanation mainly concerns the application of the invention made by the present inventor to the emulator system, which is the field of application behind the invention. However, the present invention is not limited thereto, and can be used in a system such as a logic analyzer where it is desired to detect the occurrence of a specific event and start or stop some operation.

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

第1図は、本発明を適用したエミュレータ・システムの
要部の一実施例を示すブロック構成図第2図は、本発明
が適用されるエミュレータ・システムの全体の構成の一
例を示す概略構成図である。 1・・・・ユーザー・システム、2・・・・ICソケッ
ト、3・・・・コネクタ、4・・・・ASE (アダプ
ティブ・システム・エミュレ−タ)、5・・・・CRT
ディスプレイ、6a、6b・・・・フロッピーディスク
装置、7・・・・システム開発装置、8・・・・RAM
、9・・・・MPU(マイクロプロセッサ)。
FIG. 1 is a block configuration diagram showing an example of the main part of an emulator system to which the present invention is applied. FIG. 2 is a schematic configuration diagram showing an example of the overall configuration of an emulator system to which the present invention is applied. It is. 1... User system, 2... IC socket, 3... Connector, 4... ASE (Adaptive System Emulator), 5... CRT
Display, 6a, 6b...Floppy disk device, 7...System development device, 8...RAM
, 9...MPU (microprocessor).

Claims (1)

【特許請求の範囲】 1、対象となるシステムのマイクロプロセッサと同一タ
イプのマイクロプロセッサを備え、そのシステムのエミ
ュレーションを行なえるようにされたデータ処理システ
ムにおいて、ある事象の発生を検知するためのデータが
格納されるレジスタを有し、このレジスタの内容とバス
上の信号等を比較して上記事象の発生を検出する手段と
、該検出手段からの検知信号に基づいて所定時間後に上
記マイクロプロセッサに対し停止信号を出力するブレー
ク発生手段と、該停止信号により上記マイクロプロセッ
サが停止されるまでのバスの状態を逐次取り込んで保持
する記憶手段とを備えてなることを特徴とするデータ処
理システム。 2、上記ブレーク発生手段は、設定値を任意に変えるこ
とのできるカウンタを有し、上記検出手段からの検知信
号に基づいてカウンタが動作され、所定時間後に停止信
号を出力するようにされてなることを特徴とする特許請
求の範囲第1項記載のデータ処理システム。
[Claims] 1. Data for detecting the occurrence of a certain event in a data processing system equipped with the same type of microprocessor as the microprocessor of the target system and capable of emulating that system. has a register in which is stored, means for detecting the occurrence of the above event by comparing the contents of this register with a signal on the bus, and a means for detecting the occurrence of the above event after a predetermined period of time based on the detection signal from the detecting means. A data processing system comprising break generating means for outputting a stop signal to the microprocessor, and storage means for sequentially capturing and holding the state of the bus until the microprocessor is stopped by the stop signal. 2. The break generation means has a counter whose set value can be arbitrarily changed, and the counter is operated based on the detection signal from the detection means, and outputs a stop signal after a predetermined time. A data processing system according to claim 1, characterized in that:
JP59233210A 1984-11-07 1984-11-07 Data processing system Granted JPS61112250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59233210A JPS61112250A (en) 1984-11-07 1984-11-07 Data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59233210A JPS61112250A (en) 1984-11-07 1984-11-07 Data processing system

Publications (2)

Publication Number Publication Date
JPS61112250A true JPS61112250A (en) 1986-05-30
JPH0426138B2 JPH0426138B2 (en) 1992-05-06

Family

ID=16951479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59233210A Granted JPS61112250A (en) 1984-11-07 1984-11-07 Data processing system

Country Status (1)

Country Link
JP (1) JPS61112250A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01162945A (en) * 1987-12-18 1989-06-27 Fujitsu Ltd Information processor
JPH02207348A (en) * 1989-02-07 1990-08-17 Fujitsu Ltd History memory control system
JP2013149090A (en) * 2012-01-19 2013-08-01 Renesas Electronics Corp Emulation system, method of controlling emulation system, emulation device, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01162945A (en) * 1987-12-18 1989-06-27 Fujitsu Ltd Information processor
JPH02207348A (en) * 1989-02-07 1990-08-17 Fujitsu Ltd History memory control system
JP2013149090A (en) * 2012-01-19 2013-08-01 Renesas Electronics Corp Emulation system, method of controlling emulation system, emulation device, and program

Also Published As

Publication number Publication date
JPH0426138B2 (en) 1992-05-06

Similar Documents

Publication Publication Date Title
US6026503A (en) Device and method for debugging systems controlled by microprocessors
US5280626A (en) Multi-process emulator suitable for testing software under multi-process environments
JPS61112250A (en) Data processing system
US8701089B2 (en) Program execution device and method for controlling the same
JP2001209556A (en) Verification supporting system
JP2023150108A (en) In-circuit emulator apparatus
CN114510429A (en) Debugging method, system and medium based on dynamic symbol execution
JPS6310456B2 (en)
JP2800577B2 (en) Debug device
JPS6123253A (en) Data processing system
JPS62221746A (en) Data processing system
JPS59202548A (en) Debugging device
JPS63313242A (en) Emulator
JP2005235047A (en) Power source intermittent disconnection debugging device and recording medium with program for realizing the method recorded thereon
JPH11102306A (en) Emulator
JPH0465729A (en) Symbolic debugger
JPS60245052A (en) Data processing system
JPH0199136A (en) Program debugging device
JPS5968034A (en) Input and output port simulator for microcomputer developing device
JPS61127043A (en) Data processor
JPH04314139A (en) Debugging device
JPS6177933A (en) Data processing system
JP2002055849A (en) Debugging method
JPH03175539A (en) Debugging microprocessor
JPH0619736A (en) Emulator

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term