JP3062124B2 - Microprocessor development support equipment - Google Patents

Microprocessor development support equipment

Info

Publication number
JP3062124B2
JP3062124B2 JP9195770A JP19577097A JP3062124B2 JP 3062124 B2 JP3062124 B2 JP 3062124B2 JP 9195770 A JP9195770 A JP 9195770A JP 19577097 A JP19577097 A JP 19577097A JP 3062124 B2 JP3062124 B2 JP 3062124B2
Authority
JP
Japan
Prior art keywords
interrupt
cpu
signal
access
response
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.)
Expired - Lifetime
Application number
JP9195770A
Other languages
Japanese (ja)
Other versions
JPH1139188A (en
Inventor
衛 神谷
Original Assignee
日本電気アイシーマイコンシステム株式会社
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 日本電気アイシーマイコンシステム株式会社 filed Critical 日本電気アイシーマイコンシステム株式会社
Priority to JP9195770A priority Critical patent/JP3062124B2/en
Publication of JPH1139188A publication Critical patent/JPH1139188A/en
Application granted granted Critical
Publication of JP3062124B2 publication Critical patent/JP3062124B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はマイクロプロセッサ
開発支援装置に関し、特に割り込み処理プログラムをリ
アルタイムにエミュレーションするためのマイクロプロ
セッサ開発支援装置に関する。
The present invention relates to a microprocessor development support device, and more particularly to a microprocessor development support device for emulating an interrupt processing program in real time.

【0002】[0002]

【従来の技術】マイクロコンピュータ応用機器(ターゲ
ットシステム)の開発においては、そのシステムデバッ
グやシステム評価を行うための開発支援装置は、ターゲ
ットシステムに含まれるマイクロプロセッサすなわちタ
ーゲットマイクロプロセッサの機能を代行(エミュレー
ション)しながらシステムデバッグを行う。
2. Description of the Related Art In the development of microcomputer-applied equipment (target system), a development support system for system debugging and system evaluation substitutes a function of a microprocessor included in the target system, that is, emulation of a target microprocessor. ) While debugging the system.

【0003】マイクロプロセッサ開発支援装置はエミュ
レータとも呼び、ターゲットマイクロプロセッサと同等
のマイクロプロセッサを備え、このマイクロプロセッサ
にデバッグ対象のユーザプログラムを実行させてターゲ
ットシステムを代行制御する。このときホストシステム
を介した上記ユーザプログラムの任意の内容変更による
制御状態をトレースし、予め設定したブレークポイント
でそのトレース結果を確認可能化しながらターゲットシ
ステムのソフトウェアデバッグを支援する。
[0003] The microprocessor development support device is also called an emulator, and includes a microprocessor equivalent to the target microprocessor. The microprocessor executes a user program to be debugged and controls the target system on behalf of the target microprocessor. At this time, the control state by arbitrarily changing the contents of the user program through the host system is traced, and the trace result can be confirmed at a preset breakpoint, thereby supporting software debugging of the target system.

【0004】この種のデバッグ対象ソフトウェアとして
割り込み処理プログラムがある。一般に、割り込み処理
は割り込まれる側のマイクロプロセッサのプログラムす
なわち被割り込みプログラムの動作とは無関係に発生す
る。したがって、何らの対策もない場合には、割り込み
処理と被割り込みプログラムの動作とが相互に干渉し、
被割り込みプログラム動作が乱れたり、割り込み処理が
正常動作しない等の不具合が発生する。
[0004] As this kind of debug target software, there is an interrupt processing program. Generally, interrupt processing occurs independently of the operation of the interrupted microprocessor program, that is, the operation of the interrupted program. Therefore, if there is no countermeasure, the interrupt processing and the operation of the interrupted program interfere with each other,
Problems such as the interrupted program operation being disturbed and the interrupt processing not operating properly occur.

【0005】従来、この割り込み処理プログラムと被割
り込み処理プログラムとの相互干渉関連の不具合の解析
は、上記のように、割り込み処理プログラムが被割り込
みプログラムの動作とは無関係に発生するため、通常の
マイクロプロセッサ開発支援装置上で解析することは困
難であった。特に外部回路と接続した状態でなければ正
常動作を期待できない割り込み処理プログラムをリアル
タイムにエミュレーションする場合は、非常に困難であ
った。
Conventionally, analysis of a problem relating to mutual interference between an interrupt processing program and an interrupted program has been performed because the interrupt processing program is generated independently of the operation of the interrupted program as described above. It was difficult to analyze on a processor development support device. In particular, it is very difficult to emulate an interrupt processing program in which normal operation cannot be expected unless it is connected to an external circuit in real time.

【0006】上記問題の解決を図った特開平2−207
340号公報記載の従来の第1のマイクロプロセッサ開
発支援装置をブロックで示す図4を参照すると、この従
来の第1のマイクロプロセッサ開発支援装置は、ターゲ
ットCPUと同等の制御機能を有するCPU1と、CP
U1の動作を監視するイベント検出器2と、データ伝送
用の内部バス7と、各々外部回路15に接続したシリア
ル入力/出力回路(I/O)81,アナログディジタル
変換回路(A/D)82,端子83を含む周辺回路群8
と、周辺回路群8へのアクセデータを格納する共有メモ
リ101と、共有メモリ101によって接続される外部
のホストシステム102とを備える。
Japanese Unexamined Patent Application Publication No. 2-207 has solved the above problem.
Reference is made to FIG. 4, which shows a block diagram of a conventional first microprocessor development support device described in Japanese Patent Publication No. 340, and includes a CPU 1 having a control function equivalent to that of a target CPU, CP
An event detector 2 for monitoring the operation of U1, an internal bus 7 for data transmission, a serial input / output circuit (I / O) 81 connected to an external circuit 15, and an analog / digital conversion circuit (A / D) 82 Peripheral circuit group 8 including terminal 83
And a shared memory 101 for storing access data to the peripheral circuit group 8, and an external host system 102 connected by the shared memory 101.

【0007】次に、図4を参照して、従来の第1のマイ
クロプロセッサ開発支援装置の動作について説明する
と、まず、被割り込みプログラム上で周辺回路群8のア
クセス用の割り込みを意図的に発生させたい場所すなわ
ち疑似割り込み状態をイベント検出器2に予め設定して
おく。イベント検出器2は上記疑似割り込み状態を検出
した場合、イベント信号EVをCPU1に動作中断信号
として供給する。その後にあたかも周辺回路群8にアク
セスがあったようなメモリイメージをホストシステム1
02より共有メモリ101へ格納する。その後、CPU
1に動作再開の信号を与えることにしている。
Next, the operation of the first conventional microprocessor development support device will be described with reference to FIG. 4. First, an interrupt for accessing the peripheral circuit group 8 is intentionally generated on the interrupted program. A place to be caused, that is, a pseudo interrupt state is set in the event detector 2 in advance. When detecting the pseudo interrupt state, the event detector 2 supplies the event signal EV to the CPU 1 as an operation interruption signal. Thereafter, the host system 1 stores the memory image as if the peripheral circuit group 8 was accessed.
02 to the shared memory 101. Then the CPU
1 is given a signal for resuming operation.

【0008】この一連の動作によって、周辺回路群8を
動作させずにかつ実際の割り込みも発生しない状態で、
あたかも割り込みが発生し、割り込み処理を実行したよ
うに見せかける技術である。
With this series of operations, the peripheral circuit group 8 is not operated and no actual interrupt is generated.
This is a technology that makes it appear as if an interrupt occurs and interrupt processing has been executed.

【0009】同様に、上記問題の解決を図った特開平7
−73045号公報記載の従来の第2のマイクロプロセ
ッサ開発支援装置を図3と共通の構成要素には共通の参
照文字/数字を付して同様にブロックで示す図5を参照
すると、この従来の第2のマイクロプロセッサ開発支援
装置は、従来の第1のマイクロプロセッサ開発支援装置
と共通のCPU1と、イベント検出器2と、内部バス7
とに加えて、イベント検出器2の出力するイベント信号
EVの供給に応答して割り込み信号IRを発生させる割
り込み制御回路4を備える。
[0009] Similarly, Japanese Patent Laid-Open No.
FIG. 5 is a block diagram of a second conventional microprocessor development support device disclosed in Japanese Patent Application Laid-Open No. 7-73045, in which constituent elements common to FIG. The second microprocessor development support device includes a CPU 1, an event detector 2, and an internal bus 7 which are common to the first microprocessor development support device of the related art.
And an interrupt control circuit 4 for generating an interrupt signal IR in response to the supply of the event signal EV output from the event detector 2.

【0010】次に、図5を参照して、従来の第2のマイ
クロプロセッサ開発支援装置の動作について説明する
と、イベント検出器2は、従来の第1の技術と同様の疑
似割り込み状態の検出に応答してイベント信号EVを出
力し、割り込み制御回路4は、イベント信号EVの供給
に応答して割り込み信号IRを発生し、CPU1に供給
する。
Next, the operation of the second conventional microprocessor development support apparatus will be described with reference to FIG. 5. The event detector 2 detects the pseudo interrupt state similar to the first conventional technique. In response to the event signal EV, the interrupt control circuit 4 generates an interrupt signal IR in response to the supply of the event signal EV, and supplies the interrupt signal IR to the CPU 1.

【0011】上述した従来の第1,第2のマイクロプロ
セッサ開発支援装置の目的は、被割り込みプログラムの
任意の場所に疑似割り込み状態として割り込みを疑似的
に発生させることを実現することにより、設計者が、割
り込み処理の発生時に問題となりそうなプログラムの部
分や、高頻度の割り込み処理の発生箇所の動作に対し
て、被割り込みプログラムが正常に動作可能かどうかの
解析を可能としている。
The purpose of the first and second conventional microprocessor development support devices described above is to realize that a pseudo interrupt state is generated at an arbitrary position of an interrupted program in a pseudo interrupt state, thereby enabling a designer However, it is possible to analyze whether or not the interrupted program can normally operate with respect to the portion of the program that is likely to cause a problem when the interrupt processing occurs or the operation of the location where the high-frequency interrupt processing occurs.

【0012】[0012]

【発明が解決しようとする課題】上述した従来の第1の
マイクロプロセッサ開発支援装置は、割り込み処理の直
前にCPUを停止させ、その間にホストシステムが割り
込み処理後の疑似メモリイメージを共有メモリへ生成す
ることにより実際の割り込みがCPUに入力されないた
め、実際に割り込みが発生した場合のCPU内のハード
ウェア的な動作との一致がとれないため、必ずしも現実
の動作と同一結果になるとはいえないという欠点があっ
た。
In the above-mentioned first conventional microprocessor development support apparatus, the CPU is stopped immediately before interrupt processing, and during that time, the host system generates a pseudo memory image after the interrupt processing in the shared memory. By doing so, the actual interrupt is not input to the CPU, so that the operation does not match the hardware operation in the CPU when the interrupt actually occurs, so that the result is not always the same as the actual operation. There were drawbacks.

【0013】また、割り込みが発生しないため、CPU
は割り込みプログラムを実行しないという欠点があっ
た。
Also, since no interrupt is generated, the CPU
Had the disadvantage that it did not execute the interrupt program.

【0014】さらに、CPUを中断するためリアルタイ
ム実行ができないという欠点があった。
Further, there is a disadvantage that real-time execution cannot be performed because the CPU is interrupted.

【0015】また、従来の第2のマイクロプロセッサ開
発支援装置は、割り込み発生を周辺回路とは関係無く発
生するが周辺回路へのアクセスについては全く考慮して
いないため、割り込み処理プログラムが正常に動作しな
いという欠点があった。
In the second conventional microprocessor development support device, an interrupt is generated independently of peripheral circuits, but access to the peripheral circuits is not considered at all. Therefore, the interrupt processing program operates normally. There was a disadvantage that it did not.

【0016】上述のように、従来の第1,第2のマイク
ロプロセッサ開発支援装置は、被割り込みプログラム側
の解析は可能だが、割り込み処理プログラム側の解析は
出来ないという共通の問題点があった。
As described above, the first and second conventional microprocessor development support devices have a common problem that the interrupted program side can be analyzed, but the interrupt processing program side cannot. .

【0017】本発明の目的は、上述の欠点を解消し、外
部回路と接続することなくCPUへの割り込みを入力で
き、その割り込みにて割り込み処理プログラムを実際に
リアルタイム実行し、かつ割り込み処理プログラムの実
行中に周辺回路へのアクセスを全く矛盾なく行なえるマ
イクロプロセッサ開発支援装置を提供することにある。
An object of the present invention is to solve the above-mentioned drawbacks, to input an interrupt to the CPU without connecting to an external circuit, to execute an interrupt processing program in real time by the interrupt, and to execute the interrupt processing program. An object of the present invention is to provide a microprocessor development support device capable of accessing peripheral circuits without any contradiction during execution.

【0018】[0018]

【課題を解決するための手段】本発明のマイクロプロセ
ッサ開発支援装置は、ターゲットCPUと同等の制御機
能を有するCPUと、割り込み要求信号の供給に応答し
て前記CPUへの割り込み信号を発生する割り込み制御
手段と、前記割り込み状態対応の前記割り込み要求信号
を発生する少なくとも1つの周辺回路とを備え、前記C
PUに対する前記周辺回路からの前記割り込み要求信号
を受け付けることにより前記CPUが実行中のソフトウ
エアの処理を一時中断しこのソフトウエアの前記割り込
み要求信号対応部分の処理を実行するマイクロプロセッ
サをエミュレーションするマイクロプロセッサ開発支援
装置において、前記CPUの動作を監視し前記CPUに
対する予め定めた割り込み状態対応のイベントの検出に
応答してイベント信号を出力するイベント検出手段と、
前記周辺回路の各々からの前記割り込み要求信号のうち
のいずれを前記イベント信号が疑似するかを設定し対応
する統合割り込み要求信号を出力し前記制御手段に供給
する割り込み統合手段と、前記CPUから前記周辺回路
への周辺アクセスと予め記憶したアクセスとの一致に応
答して所定アクセスを検出しアクセス検出信号を出力す
るアクセス検出手段と、代替対象の前記周辺回路の各々
のアクセスデータを代替データとして所定順序で格納す
る代替メモリと、前記アクセス検出信号の供給に応答し
て前記周辺回路と前記代替メモリとを排他的に前記CP
U及びイベント検出手段への伝送用バスに接続するスイ
ッチ手段と、前記アクセス検出信号の供給に応答して前
記代替メモリの読み出しアドレス値を更新するアドレス
カウンタとを備えて構成されている。
According to the present invention, there is provided a microprocessor development support apparatus comprising: a CPU having a control function equivalent to that of a target CPU; and an interrupt for generating an interrupt signal to the CPU in response to supply of an interrupt request signal. Control means; and at least one peripheral circuit for generating the interrupt request signal corresponding to the interrupt state.
A micro processor for emulating a microprocessor which executes the processing of the software corresponding to the interrupt request signal by temporarily suspending the processing of the software being executed by the CPU by receiving the interrupt request signal from the peripheral circuit to the PU. In the processor development support device, an event detecting means for monitoring the operation of the CPU and outputting an event signal in response to detection of an event corresponding to a predetermined interrupt state for the CPU;
Interrupt integrating means for setting which of the interrupt request signals from each of the peripheral circuits is simulated by the event signal, outputting a corresponding integrated interrupt request signal and supplying the integrated integrated request signal to the control means; and Access detecting means for detecting a predetermined access in response to a match between a peripheral access to a peripheral circuit and a previously stored access and outputting an access detection signal; and determining predetermined access data of each of the peripheral circuits to be replaced as replacement data An alternative memory for storing the peripheral circuit and the alternative memory exclusively in response to the supply of the access detection signal;
A switch means for connecting to a transmission bus to the U and event detection means, and an address counter for updating a read address value of the alternative memory in response to the supply of the access detection signal.

【0019】[0019]

【発明の実施の形態】次に、本発明の実施の形態を図4
と共通の構成要素には共通の参照文字/数字を付して同
様にブロックで示す図1を参照すると、この図に示す本
実施の形態のマイクロプロセッサ開発支援装置は、従来
の第1のマイクロプロセッサ開発支援装置と共通のター
ゲットCPUと同等の制御機能を有するCPU1と、C
PU1の動作を監視するイベント検出器2と、データ伝
送用の内部バス7と、各々外部回路15に接続したシリ
アル入力/出力回路(I/O)81,アナログディジタ
ル変換回路(A/D)82,端子83を含む周辺回路群
8とに加えて、イベント検出器2からのイベント信号E
Vが周辺回路群8のシリアルI/O81,A/D82,
端子83の各々からの割り込み要求信号群RIGのいず
れを疑似するかを設定し割り込み統合信号SIを出力す
る割り込み統合器3と、割り込み統合信号SIの供給に
応答して割り込み信号IRを発生しCPU1に供給する
割り込み制御回路4Aと、アクセス検出器10からの一
致信号CAの供給に応答して内部バス7とシリアルI/
O81,A/D82,端子83の各々とを直接接続する
よう接断するスイッチ91,92,93を含むスイッチ
群9と、代替する周辺回路群8のシリアルI/O81,
A/D82,端子83の各々のアクセスデータDAをプ
ログラムの要求順序で格納した代替メモリ10と、一致
信号CAの反転信号の供給に応答して代替メモリ10の
アクセスデータDAの内部バス7への接続を断続するス
イッチ11と、一致信号CAを反転するインバータ12
と、アクセスを検出し一致信号CAを出力するアクセス
検出器13と、クリア信号CRの供給に応答してクリア
され一致信号CAの供給に応答して代替メモリ10にア
ドレス信号Aを出力するアドレスカウンタ14とを備え
る。
FIG. 4 shows an embodiment of the present invention.
Referring to FIG. 1, in which the same components are denoted by the same reference characters / numbers and similarly indicated by blocks, the microprocessor development support apparatus of this embodiment shown in FIG. A CPU 1 having a control function equivalent to a common target CPU with the processor development support device;
An event detector 2 for monitoring the operation of the PU 1, an internal bus 7 for data transmission, a serial input / output circuit (I / O) 81 connected to an external circuit 15, and an analog / digital conversion circuit (A / D) 82 , A peripheral circuit group 8 including a terminal 83, and an event signal E from the event detector 2.
V is the serial I / O 81, A / D 82,
An interrupt integrator 3 that sets which of the interrupt request signal groups RIG from each of the terminals 83 is to be simulated and outputs an interrupt integrated signal SI, and generates an interrupt signal IR in response to the supply of the interrupt integrated signal SI and generates a CPU 1 And the internal bus 7 and the serial I / O in response to the supply of the coincidence signal CA from the access detector 10.
A switch group 9 including switches 91, 92, and 93 for connecting and disconnecting O81, A / D, and terminal 83 so as to directly connect each of them, and a serial I / O 81,
The alternative memory 10 storing the access data DA of each of the A / D 82 and the terminal 83 in the order requested by the program and the access data DA of the alternative memory 10 to the internal bus 7 in response to the supply of the inverted signal of the coincidence signal CA. A switch 11 for interrupting connection and an inverter 12 for inverting the coincidence signal CA
An access detector 13 that detects an access and outputs a match signal CA; and an address counter that is cleared in response to the supply of a clear signal CR and outputs an address signal A to the alternative memory 10 in response to the supply of the match signal CA 14.

【0020】次に、図1及び本実施の形態の処理プログ
ラムの一例をフローチャートで示す図2を参照して本実
施の形態の動作について説明すると、まず、CPU1を
一時停止状態にしておき、代替メモリ10へこれから代
替する周辺回路群8に対するアクセスデータをプログラ
ムの要求する順序で格納しておく。ここで、説明の便宜
上、代替メモリ10に格納する周辺回路群8のデータ例
として、シリアルI/O81を想定して具体的に説明す
る。図2はこのシリアルI/O81のシリアルデータ受
信処理プログラムを示すフローチャートである。
Next, the operation of the present embodiment will be described with reference to FIG. 1 and FIG. 2 which is a flowchart showing an example of a processing program according to the present embodiment. Access data to the peripheral circuit group 8 to be replaced in the future is stored in the memory 10 in the order required by the program. Here, for convenience of explanation, a specific description will be given assuming a serial I / O 81 as an example of data of the peripheral circuit group 8 stored in the alternative memory 10. FIG. 2 is a flowchart showing a serial data reception processing program of the serial I / O 81.

【0021】図2を併せて参照すると、この処理フロー
は、シリアルI/O81からの割り込み要求信号RIG
に基づきCPU1が自動的に割り込み処理プログラムを
開始したところから表す。
Referring also to FIG. 2, this processing flow is based on the interrupt request signal RIG from the serial I / O 81.
From the point at which the CPU 1 automatically starts the interrupt processing program based on.

【0022】まず、ステップS1で、受信状態アドレス
より受信状況値を読み込む。
First, in step S1, a reception status value is read from the reception status address.

【0023】次に、ステップS2では、上記受信状況値
を判定し、この判定結果が正常受信を表す場合、ステッ
プS3に進む。上記判定結果が不良受信を表す場合はス
テップS4へ進む。
Next, in step S2, the reception status value is determined, and if this determination result indicates normal reception, the process proceeds to step S3. If the result of the determination indicates a bad reception, the process proceeds to step S4.

【0024】ステップS3で、受信データ格納アドレス
からの受信データを取り込む動作を行ないステップS4
へ進む。
At step S3, an operation for taking in the reception data from the reception data storage address is performed, and at step S4
Proceed to.

【0025】ステップS4で、シリアルデータ受信プロ
グラムを終了しメインプログラムへ戻る。
In step S4, the serial data receiving program ends and the program returns to the main program.

【0026】この図2のフローチャートに合わせた代替
メモリ10への設定値としては、代替メモリ10のアド
レス0番地に受信状況値として正常受信値を格納する。
次のアドレス1番地に受信データを格納する。この設定
はいわば、正常系のデータ設定に相当する。
As a set value for the alternative memory 10 according to the flowchart of FIG. 2, a normal reception value is stored as a reception status value at the address 0 of the alternative memory 10.
The received data is stored at the next address 1. This setting is equivalent to the normal data setting.

【0027】また、異常系でのデータ設定の場合につい
て説明すると、図2において、例えば、6回続けて不良
受信の後に正常受信となった場合を想定する場合は、代
替メモリ10のアドレス0番地からアドレス5番地まで
不良受信値を格納し、アドレス6番地に正常受信値を格
納する。さらに、アドレス7番地に受信データを格納す
ることによって実現できる。
The case of data setting in an abnormal system will be described. In FIG. 2, for example, when it is assumed that normal reception is performed after six consecutive bad receptions, address 0 of the substitute memory 10 is assumed. , The defective received value is stored from address 5 to address 5, and the normal received value is stored at address 6. Further, it can be realized by storing the received data at address 7.

【0028】すなわち、代替メモリ10の動作として
は、アドレスカウンタ14からのアドレスAに従ってデ
ータ出力をする単純な構成で実現することができる。
That is, the operation of the alternative memory 10 can be realized with a simple configuration for outputting data in accordance with the address A from the address counter 14.

【0029】次に、アクセス検出器13には周辺回路群
8の持つアドレス一覧を格納しておく。
Next, the access detector 13 stores a list of addresses of the peripheral circuit group 8.

【0030】次に、割り込みの発生をさせるCPU1の
動作状態をイベント検出器2に設定し、割り込み統合器
3にイベント検出器2から供給を受けるイベント信号E
Vを周辺回路群8のどの周辺回路からの要求に対応する
統合割り込み信号SIとするかを設定する。例えば、シ
リアルI/O81の割り込み要求信号RIGに対応して
統合割り込み信号SIを出力するよう設定する。
Next, the operation state of the CPU 1 for generating an interrupt is set in the event detector 2, and the event signal E supplied from the event detector 2 to the interrupt integrator 3 is set.
V is set to which of the peripheral circuits in the peripheral circuit group 8 is to be used as the integrated interrupt signal SI corresponding to the request. For example, a setting is made so as to output the integrated interrupt signal SI in response to the interrupt request signal RIG of the serial I / O 81.

【0031】最後に、アドレスカウンタ14にクリア信
号CRを入力し、代替メモリ10へのアドレス信号Aを
初期設定値0とする。
Finally, the clear signal CR is input to the address counter 14, and the address signal A to the substitute memory 10 is set to an initial set value 0.

【0032】これらの設定を全て行なった後に、CPU
1を動作状態とする。CPU1がイベント検出器2によ
る設定状態になると、イベント検出器2はイベント信号
EVを出力し、割り込み統合器3に供給する。割り込み
統合器3は、先に設定した割り込み要求信号RIG対応
の統合割り込み信号SIを出力し、割り込み制御回路4
Aに供給する。この例では、シリアルI/O81の割り
込み要求信号RIGに対応して統合割り込み信号SIを
出力する。割り込み制御回路4Aは、統合割り込み信号
SIの供給に応答して割り込み信号IRを出力し、CP
U1に供給する。この割り込み信号IRの供給に応答し
てCPU1で実行中のソフトウェア(プログラム)は、
割り込み処理部分の実行を開始する。
After making all of these settings, the CPU
1 is set to the operating state. When the CPU 1 is set by the event detector 2, the event detector 2 outputs an event signal EV and supplies it to the interrupt integrator 3. The interrupt integrator 3 outputs an integrated interrupt signal SI corresponding to the previously set interrupt request signal RIG,
A. In this example, an integrated interrupt signal SI is output in response to the interrupt request signal RIG of the serial I / O 81. The interrupt control circuit 4A outputs an interrupt signal IR in response to the supply of the integrated interrupt signal SI,
Supply to U1. The software (program) being executed by the CPU 1 in response to the supply of the interrupt signal IR is:
Start execution of the interrupt processing part.

【0033】一方、CPU1は、プログラムに従って周
辺回路群8へのアクセスを行なうと、アクセス検出器1
3が一致信号CAを出力する。この一致信号CAの反転
信号の供給に応答して代替メモリ対応のスイッチ11の
みが有効となり、一致信号CAの供給に応答して他の周
辺回路群8対応のスイッチ群9は無効となる。同時に、
アドレスカウンタ14は一致信号CAの供給に応答して
カウントアップし、アドレス信号Aを出力し代替メモリ
10に供給する。このアドレス信号Aの値に従って、代
替メモリ10は前述した設定データをスイッチ11と内
部バス7を経由してCPU1に供給する。
On the other hand, when the CPU 1 accesses the peripheral circuit group 8 according to the program, the access detector 1
3 outputs the coincidence signal CA. Only the switch 11 corresponding to the alternative memory becomes valid in response to the supply of the inverted signal of the coincidence signal CA, and the switch group 9 corresponding to the other peripheral circuit group 8 becomes invalid in response to the supply of the coincidence signal CA. at the same time,
The address counter 14 counts up in response to the supply of the coincidence signal CA, outputs the address signal A, and supplies it to the alternative memory 10. According to the value of the address signal A, the alternative memory 10 supplies the above-described setting data to the CPU 1 via the switch 11 and the internal bus 7.

【0034】以上の一連の動作により、CPU1は割り
込み信号IRの供給を受け、かつCPU1から見た周辺
回路群8へのアクセスについても正常に動作しているよ
うなデータが得られる。
By the above-described series of operations, the CPU 1 receives the interrupt signal IR, and obtains data from the CPU 1 as if the access to the peripheral circuit group 8 was operating normally.

【0035】さらに、以上の一連の動作においては、C
PU1を中断させる必要は無い。次に、本発明の第2の
実施の形態を図1と共通の構成要素には共通の参照文字
/数字を付して同様にブロックで示す図3を参照する
と、この図に示す本実施の形態の前述の第1の実施の形
態との相違点は、アドレス信号Aを監視しその最大値を
検出したときクリア信号CRを発生する最大値検出器1
6を備えることである。
Further, in the above series of operations, C
There is no need to suspend PU1. Next, a second embodiment of the present invention will be described with reference to FIG. 3, which is similar to FIG. This embodiment differs from the first embodiment in that the maximum value detector 1 monitors the address signal A and generates a clear signal CR when the maximum value is detected.
6 is provided.

【0036】ある特定パターンでのプログラム動作を実
行させたい時には、代替メモリ10にその特定パターン
の反復データをメモリ一杯に埋め込む方法があるが、本
実施の形態では、アドレス信号Aを監視し最大アドレス
となったらクリア信号CRを発生させることにより実現
する。
When it is desired to execute a program operation in a specific pattern, there is a method of embedding repetitive data of the specific pattern in the alternative memory 10 to fill the memory. In this embodiment, however, the address signal A is monitored and the maximum address is monitored. Is realized by generating a clear signal CR.

【0037】図3を参照して本実施の形態の動作につい
て第1の実施の形態との相違点について説明すると、最
大値検出器16は、アドレスカウンタ14からのアドレ
ス信号Aを監視し、最大アドレスと判定したらクリア信
号CRを発生する。
The difference between the operation of the present embodiment and the first embodiment will be described with reference to FIG. 3. The maximum value detector 16 monitors the address signal A from the address counter 14 and If the address is determined, a clear signal CR is generated.

【0038】これにより、例えば10バイトのデータパ
ターンを扱いたい場合、代替メモリ10には10バイト
のデータのみを設定し、最大値検出器16には10とい
う値を設定しておけば、容易に無限に反復させることが
可能となる。
Thus, for example, when it is desired to handle a 10-byte data pattern, it is easy to set only 10-byte data in the substitute memory 10 and set a value of 10 in the maximum value detector 16. Infinite repetition is possible.

【0039】通常のマイクロプロセッサ開発支援装置に
は複数のイベント検出器を搭載しており、そのうちの1
つをアドレス検出器の代りに使用することによってでも
同等の機能を実現できる。
A typical microprocessor development support device is equipped with a plurality of event detectors.
An equivalent function can be realized by using one in place of the address detector.

【0040】また、代替メモリと周辺回路とを排他的に
制御するためにスイッチを用いずに、周辺回路自身に動
作有効もしくは無効とするための端子を用意しアドレス
検出器からの一致信号を接続することによって、同等の
機能を実現できる。
Also, a terminal for enabling or disabling the operation is prepared for the peripheral circuit itself without using a switch for exclusively controlling the alternative memory and the peripheral circuit, and a coincidence signal from the address detector is connected. By doing so, equivalent functions can be realized.

【0041】[0041]

【発明の効果】以上説明したように、本発明のマイクロ
プロセッサ開発支援装置は、周辺回路からの割り込み要
求信号のうちのいずれをイベント信号が疑似するかを設
定する割り込み統合手段と、アクセス検出手段と、代替
対象の周辺回路のアクセスデータを代替データとして所
定順序で格納する代替メモリと、アクセス検出信号の供
給に応答して上記周辺回路と上記代替メモリとを排他的
に内部バスに接続するスイッチ手段と、アドレス値を更
新するアドレスカウンタとを備えるので、外部回路と接
続することなくCPUへの割り込み信号を入力でき、そ
の割り込み信号にて割り込み処理プログラムを実際にリ
アルタイムで実行し、割り込み処理プログラムの実行中
に周辺回路へ行なうCPUからのアクセスは全く矛盾な
く行なえるという効果がある。
As described above, the microprocessor development support apparatus of the present invention comprises an interrupt integrating means for setting which of the interrupt request signals from the peripheral circuits is simulated by the event signal, and an access detecting means. A replacement memory for storing access data of a peripheral circuit to be replaced as replacement data in a predetermined order, and a switch for exclusively connecting the peripheral circuit and the replacement memory to an internal bus in response to supply of an access detection signal Means and an address counter for updating an address value, so that an interrupt signal to the CPU can be input without connecting to an external circuit, and the interrupt signal is used to execute the interrupt processing program in real time. Access from the CPU to peripheral circuits during the execution of There is a result.

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

【図1】本発明のマイクロプロセッサ開発支援装置の第
1の実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a microprocessor development support device of the present invention.

【図2】本実施の形態のマイクロプロセッサ開発支援装
置における動作の一例を示すフローチャートである。
FIG. 2 is a flowchart illustrating an example of an operation in the microprocessor development support device of the present embodiment.

【図3】本発明のマイクロプロセッサ開発支援装置の第
2の実施の形態を示すブロック図である。
FIG. 3 is a block diagram showing a second embodiment of the microprocessor development support device of the present invention.

【図4】従来の第1のマイクロプロセッサ開発支援装置
の一例を示すブロック図である。
FIG. 4 is a block diagram showing an example of a first conventional microprocessor development support device.

【図5】従来の第2のマイクロプロセッサ開発支援装置
の一例を示すブロック図である。
FIG. 5 is a block diagram showing an example of a second conventional microprocessor development support device.

【符号の説明】[Explanation of symbols]

1 CPU 2 イベント検出器 3 割り込み統合器 4,4A 割り込み制御回路 7 内部バス 8 周辺回路群 9 スイッチ群 10 代替メモリ 11,91〜93 スイッチ 12 インバータ 13 アクセス検出器 14 アドレスカウンタ 15 外部回路 16 最大値検出器 81 シリアルI/O 82 A/D変換回路 83 端子 101 共有メモリ 102 ホストシステム Reference Signs List 1 CPU 2 event detector 3 interrupt integrator 4, 4A interrupt control circuit 7 internal bus 8 peripheral circuit group 9 switch group 10 alternative memory 11, 91 to 93 switch 12 inverter 13 access detector 14 address counter 15 external circuit 16 maximum value Detector 81 Serial I / O 82 A / D conversion circuit 83 Terminal 101 Shared memory 102 Host system

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/22 - 11/26 G06F 9/46 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/22-11/26 G06F 9/46

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ターゲットCPUと同等の制御機能を有
するCPUと、割り込み要求信号の供給に応答して前記
CPUへの割り込み信号を発生する割り込み制御手段
と、前記割り込み状態対応の前記割り込み要求信号を発
生する少なくとも1つの周辺回路とを備え、前記CPU
に対する前記周辺回路からの前記割り込み要求信号を受
け付けることにより前記CPUが実行中のソフトウエア
の処理を一時中断しこのソフトウエアの前記割り込み要
求信号対応部分の処理を実行するマイクロプロセッサを
エミュレーションするマイクロプロセッサ開発支援装置
において、 前記CPUの動作を監視し前記CPUに対する予め定め
た割り込み状態対応のイベントの検出に応答してイベン
ト信号を出力するイベント検出手段と、 前記周辺回路の各々からの前記割り込み要求信号のうち
のいずれを前記イベント信号が疑似するかを設定し対応
する統合割り込み要求信号を出力し前記制御手段に供給
する割り込み統合手段と、 前記CPUから前記周辺回路への周辺アクセスと予め記
憶したアクセスとの一致に応答して所定アクセスを検出
しアクセス検出信号を出力するアクセス検出手段と、 代替対象の前記周辺回路の各々のアクセスデータを代替
データとして所定順序で格納する代替メモリと、 前記アクセス検出信号の供給に応答して前記周辺回路と
前記代替メモリとを排他的に前記CPU及びイベント検
出手段への伝送用バスに接続するスイッチ手段と、 前記アクセス検出信号の供給に応答して前記代替メモリ
の読み出しアドレス値を更新するアドレスカウンタとを
備えることを特徴とするマイクロプロセッサ開発支援装
置。
A CPU having a control function equivalent to that of a target CPU; interrupt control means for generating an interrupt signal to the CPU in response to supply of an interrupt request signal; And at least one peripheral circuit that generates
A microprocessor for emulating a microprocessor that temporarily suspends processing of software being executed by the CPU by receiving the interrupt request signal from the peripheral circuit and executes processing of the interrupt request signal corresponding portion of the software. In the development support device, an event detection unit that monitors an operation of the CPU and outputs an event signal in response to detection of an event corresponding to a predetermined interrupt state for the CPU; and the interrupt request signal from each of the peripheral circuits. Interrupt integration means for setting which of the event signals is simulated, outputting a corresponding integrated interrupt request signal and supplying the integrated interrupt request signal to the control means, and peripheral access and pre-stored access from the CPU to the peripheral circuit. Predetermined access in response to a match Access detection means for detecting and outputting an access detection signal; an alternative memory for storing access data of each of the peripheral circuits to be replaced as alternative data in a predetermined order; and the peripheral circuit in response to the supply of the access detection signal Switch means for exclusively connecting the alternative memory to a transmission bus to the CPU and event detecting means; and an address counter for updating a read address value of the alternative memory in response to the supply of the access detection signal. A microprocessor development support device comprising:
【請求項2】 前記読み出しアドレス値を監視しこの読
み出しアドレス値の最大値の検出に応答して前記アドレ
スカウンタをクリアする読み出しアドレス最大値検出手
段を備えることを特徴とする請求項1記載のマイクロプ
ロセッサ開発支援装置。
2. The microcontroller according to claim 1, further comprising: a read address maximum value detecting means for monitoring the read address value and clearing the address counter in response to detection of the maximum read address value. Processor development support device.
JP9195770A 1997-07-22 1997-07-22 Microprocessor development support equipment Expired - Lifetime JP3062124B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9195770A JP3062124B2 (en) 1997-07-22 1997-07-22 Microprocessor development support equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9195770A JP3062124B2 (en) 1997-07-22 1997-07-22 Microprocessor development support equipment

Publications (2)

Publication Number Publication Date
JPH1139188A JPH1139188A (en) 1999-02-12
JP3062124B2 true JP3062124B2 (en) 2000-07-10

Family

ID=16346680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9195770A Expired - Lifetime JP3062124B2 (en) 1997-07-22 1997-07-22 Microprocessor development support equipment

Country Status (1)

Country Link
JP (1) JP3062124B2 (en)

Also Published As

Publication number Publication date
JPH1139188A (en) 1999-02-12

Similar Documents

Publication Publication Date Title
WO1998008165A1 (en) Method and system for testing computer system software
JP3062124B2 (en) Microprocessor development support equipment
US20100332905A1 (en) Program execution device and method for controlling the same
JP2003316603A (en) Program verification system
JP2793540B2 (en) Emulation device
JPH08171504A (en) Emulation device
JP2729121B2 (en) Arithmetic processing unit
JPH05241619A (en) Programming device for programmable controller
JP3184344B2 (en) Simulated fault setting device
JP3576978B2 (en) Memory port, storage device, information processing system
JP3231505B2 (en) MPU emulator device
KR100200712B1 (en) Apparatus for program debugging of no-target system
JP3320570B2 (en) How to recover from a system error
JPH0520104A (en) Inter-virtual cluster communication processor
KR930004425B1 (en) Computer system with debugging function and method therefor
JPH10228395A (en) Abnormality diagnostic device for controller
JP2998439B2 (en) Line controller
KR100477138B1 (en) Personal computer systems
KR19980014207A (en) Apparatus and method for processing data protocol of a multiprocessor system
JP2648029B2 (en) In-circuit emulator
JP2000330798A (en) Interrupt controller and method for verifying interrupt control
JPS60195662A (en) System developing device
JPH07182203A (en) Microcomputer development supporting device
JPH07225700A (en) In-circuit emulator
JP2000259453A (en) Debugging method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000404