JPH04107745A - In-circuit emulator - Google Patents

In-circuit emulator

Info

Publication number
JPH04107745A
JPH04107745A JP2227730A JP22773090A JPH04107745A JP H04107745 A JPH04107745 A JP H04107745A JP 2227730 A JP2227730 A JP 2227730A JP 22773090 A JP22773090 A JP 22773090A JP H04107745 A JPH04107745 A JP H04107745A
Authority
JP
Japan
Prior art keywords
address
instruction code
signal
memory
cpu
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
JP2227730A
Other languages
Japanese (ja)
Inventor
Koutarou Aiboshi
相星 幸太郎
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.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP2227730A priority Critical patent/JPH04107745A/en
Publication of JPH04107745A publication Critical patent/JPH04107745A/en
Pending legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To prevent the runaway of a program occurring by generating a CPU stopping instruction code, inputting an instruction non-selection signal generated with an instruction code request signal when the value of an address signal and an address comparison value is not equal, and reading it in a CPU. CONSTITUTION:An address monitoring circuit 4 generates an instruction code address signal 5 and a memory selection signal 6 when memory is allocated to an address by the address signal 2 and the instruction code request signal 3, and generates a memory non-selection signal 9 when no memory is allocated to the address. A memory circuit 7 outputs the instruction code of a corresponding address to a data bus 8 when the instruction code signal 5 and the memory selection signal 6 are inputted, and reads it in the CPU 1. A buffer 10 for CPU stopping instruction code generation generates the instruction code to stop the CPU 1 from the memory non-selection signal 9, and outputs it to the data bus 8, and reads it in the CPU 1. In such a way, it is possible to prevent the runaway of the program occurring when an instruction is executed in an area where no memory is allocated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、インサーキット・エミュレータに関し、特に
プログラムのデイバグ時において、プログラムの誤りに
よる暴走を防ぐ機構を有するインサーキット・エミュレ
ータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an in-circuit emulator, and particularly to an in-circuit emulator having a mechanism to prevent runaway due to program errors during program debugging.

〔従来の技術〕[Conventional technology]

一般にインサーキット・エミュレータは、CPUを用い
た製品を開発する時に、CPUを接続するソケットにC
PUの代替として接続し、ハードウェアとプログラムの
デイバグを行うために使用され、特に、ハードウェアが
未完成の場合でもプログラムの開発が行えるよう、アド
レス監視回路により、メモリ空間上で自由に割り当てを
変えることができるメモリ回路を内蔵している。
In general, in-circuit emulators are used when developing products that use a CPU.
It is connected as a substitute for the PU and is used to debug hardware and programs.In particular, the address monitoring circuit allows free allocation in the memory space so that programs can be developed even when the hardware is not completed. It has a built-in memory circuit that can be changed.

従来のインサーキット エミュレータの構成例のブロッ
ク図を第2図に示す、。
A block diagram of a configuration example of a conventional in-circuit emulator is shown in FIG.

インサーキット・エミュレータはCPUIと、アドレス
監視回路4と、メモリ回路7によって構成され、それぞ
れは、アドレス信号2、命令コード要求信号3、命令コ
ートアドレス信号5、メモリ選択信号6、データバス8
て電気的に接続されている。
The in-circuit emulator is composed of a CPUI, an address monitoring circuit 4, and a memory circuit 7, each of which has an address signal 2, an instruction code request signal 3, an instruction code address signal 5, a memory selection signal 6, and a data bus 8.
electrically connected.

CPUIはプログラムを実行するために、アドレス信号
2と命令コード要求信号3を出力し、命令コードをデー
タバス8を介してメモリ回路7からデータを読み込む。
In order to execute a program, the CPU outputs an address signal 2 and an instruction code request signal 3, and reads the instruction code from the memory circuit 7 via the data bus 8.

この時、アドレス監視回路4はあらかじめ設定されてい
る変換手順に従って、CPUIから出力されるアドレス
信号2、命令コード要求信号3を命令コードアドレス信
号5、メモリ選択信号6に変換し、メモリ回路7に出力
する。
At this time, the address monitoring circuit 4 converts the address signal 2 and instruction code request signal 3 outputted from the CPUI into an instruction code address signal 5 and a memory selection signal 6 according to a preset conversion procedure, and sends them to the memory circuit 7. Output.

これにより、メモリ空間上で自由に割り当てを変えるこ
とのできるメモリ回路7を実現している。
This realizes the memory circuit 7 that can freely change the allocation in the memory space.

、発明か解決しようヒする課題 従来のインサーキ・ソト エミュし一夕では、プログラ
ムの誤りて前述のメモリ回路に割り当てられていないア
ドレスから命令コードを読み込むような場合、無意味な
命令コードを読み込み、それを実行してしまうため、最
悪の場合は、プロクラムが暴走してしまうという欠点が
あった、本発明の目的は、メモリの割り当てのないアド
レスから読み込んて得られた命令コートを実行しても暴
走することのないインサーキ・ソト・エミュレータを提
供することにある。
Problems to be Solved by Invention In the conventional in-search/emulation system, if a program error causes an instruction code to be read from an address that is not allocated to the aforementioned memory circuit, a meaningless instruction code is read, As a result, in the worst case, the program would run out of control.The purpose of the present invention is to The purpose is to provide an in-search software emulator that will not run out of control.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のインサーキット・エミュレータは、CPUと、
該CPUから出力されるアドレス信号及び命令コード要
求信号を入力して命令コードアドレス信号及びメモリ選
択信号を生成するアドレス監視回路と、前記命令コード
アドレス信号及び前記メモリ選択信号とを入力して命令
コードをデータムうを介して前記CPUに供給するメモ
リ回路とを有するインサーキット・エミュレータにおい
て、前記アドレス監視回路か所定力アドレス比較値を有
するアドレス比較回路を設け、前記アドレス信号の値か
前記アドス比較値と一致しない場合に前記命令コード要
求信号と共に生成するメモリ非選択信号を入力してCP
U停正停会命令コード成しCPUに読み込ませるC P
 U停士命令コード生成回路を付加して構成されている
The in-circuit emulator of the present invention includes a CPU;
an address monitoring circuit that inputs an address signal and an instruction code request signal output from the CPU and generates an instruction code address signal and a memory selection signal; and an address monitoring circuit that inputs the instruction code address signal and the memory selection signal and generates an instruction code. an in-circuit emulator having a memory circuit that supplies a signal to the CPU via a datum, wherein the address monitoring circuit or an address comparison circuit having a predetermined address comparison value is provided, and the value of the address signal or the address comparison value is If the instruction code request signal does not match, a memory non-selection signal is generated together with the instruction code request signal.
Create a U suspension command code and read it into the CPU.
It is configured by adding a U-stop command code generation circuit.

また、本発明のインサーキット・エミュレータは、前記
CPU停止命令コード生成回路かバッファ又はメモリ回
路を有している。
Further, the in-circuit emulator of the present invention includes the CPU stop instruction code generation circuit, buffer, or memory circuit.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロフク図である。FIG. 1 is a diagram of one embodiment of the present invention.

インサーキット・エミュレータはCPUIと、アドレス
監視回路4と、メモリ回路7と、CPLI停止命令コー
ド用バッファ10によって構成され、それぞれは、アド
レス信号2、命令コード要求信号3、命令コードアドレ
ス信号5、メモリ選択信号6、データバス8、メモリ非
選択信号9を入出力している、 CP(Jlは、アトしス信号2と命令コード要求信号3
を出力し、データバス8から命令コードを読み込んで実
行する。
The in-circuit emulator is composed of a CPUI, an address monitoring circuit 4, a memory circuit 7, and a CPLI stop instruction code buffer 10, each of which has an address signal 2, an instruction code request signal 3, an instruction code address signal 5, and a memory circuit. CP (Jl) inputs and outputs the selection signal 6, data bus 8, and memory non-selection signal 9.
is output, and the instruction code is read from the data bus 8 and executed.

アドレス監視回路4は、アドレス信号2と命令コード要
求信号3からメモリが割り当てられているアドレスの場
合、命令コードアドレス信号5とメモリ選択信号6を生
成し、メモリが割り当てられていないアドレスの場合、
メモリ非選択信号9を生成する。
The address monitoring circuit 4 generates an instruction code address signal 5 and a memory selection signal 6 from the address signal 2 and the instruction code request signal 3 in the case of an address to which memory is allocated, and in the case of an address to which no memory is allocated,
A memory non-selection signal 9 is generated.

メモリ回路7は、命令コード信号5とメモリ選択信号6
か入力されると、対応するアドレスの命令コードをデー
タバス8に出力し、CPUIに読み込才せる。
The memory circuit 7 receives an instruction code signal 5 and a memory selection signal 6.
When an instruction code of the corresponding address is input, the instruction code of the corresponding address is output to the data bus 8 and read by the CPU.

CPU停止命令コード生成用バッファ10は、メモリ非
選択信号9からCPU1が停止する命令コードを生成し
、データバス8に出力し、CPU1に読み込ませる。
The CPU stop instruction code generation buffer 10 generates an instruction code for stopping the CPU 1 from the memory non-selection signal 9, outputs it to the data bus 8, and causes the CPU 1 to read it.

CPU1はプログラムを実行するために、アドレス信号
2゛ヒ、命令コート要求信号3をアドレス監視回路4に
出力する。
The CPU 1 outputs an address signal 2 and an instruction code request signal 3 to the address monitoring circuit 4 in order to execute the program.

メモリが割り当てられているアドレスの場合、アドレス
監視回路4は命令コードアドレス信号5とメモリ選択信
号6をメモリ回路7に出力し、データバス8を通して命
令コードかCPUIに読み込まれる。
In the case of an address to which memory is allocated, the address monitoring circuit 4 outputs an instruction code address signal 5 and a memory selection signal 6 to the memory circuit 7, and the instruction code is read into the CPUI through the data bus 8.

CPU 1は読み込んだ命令コードを実行する。The CPU 1 executes the read instruction code.

メモリか割り当てられていないアドレスの場合、アドレ
ス監視回路4は、メモリ非選択信号9をCPLI停止命
令コード生成用バッファ10に出力する。
In the case of an address to which no memory has been allocated, the address monitoring circuit 4 outputs a memory non-selection signal 9 to the CPLI stop instruction code generation buffer 10.

CPU停止命令コード生成用バッファ10にメモリ非選
択信号9が入力されると、CPU停止命令コードがデー
タバスを通じてCPU停止命令コード生成用バッファか
らCPU 1に読み込まれる。
When the memory non-selection signal 9 is input to the CPU stop command code generation buffer 10, the CPU stop command code is read into the CPU 1 from the CPU stop command code generation buffer through the data bus.

読み込んだ命令コードを実行すると、CPU停止命令コ
ードなのて、CPUは直ちに動作を停止する。
When the read instruction code is executed, the CPU immediately stops operating because it is a CPU stop instruction code.

次に、更に具体的に説明する、 インサーキ・ソト・エミュレータは、アトしス監視部回
路4はアドレス変換回路1とアトしス比較回路2を有し
てあり、それぞれは、アドレス信号2、メモリリード要
求信号3を入力し命令コートアドレス信号ら、アドレス
一致信号13、アドトス不一致信号14を出力する。
Next, in the in-search soto emulator, which will be explained in more detail, the address monitoring circuit 4 has an address conversion circuit 1 and an address comparison circuit 2, each of which receives an address signal 2, a memory memory It inputs a read request signal 3 and outputs an instruction code address signal, an address match signal 13, and an address mismatch signal 14.

CPUIは、アドレス信号2とメモリリード要求信号3
を出力し、データバス8から命令コードを読み込み実行
する。
The CPUI sends an address signal 2 and a memory read request signal 3.
is output, and the instruction code is read from the data bus 8 and executed.

アドレス変換回路11は、アドレス信号2が入力される
と、あらかじめ設定しである変換値にしたがって、アド
レス信号2を命令コードアドレス信号5に変換する。
When the address signal 2 is input, the address conversion circuit 11 converts the address signal 2 into an instruction code address signal 5 according to a preset conversion value.

アドレス比較回路12は、アドレス信号2が入力される
とあらかじめ設定しである比較値にしたがって、アドレ
ス一致信号13、またはアドレス不一致信号14のどち
らかを出力する。
When address signal 2 is input, address comparison circuit 12 outputs either address match signal 13 or address mismatch signal 14 according to a preset comparison value.

CPU停止命令コード生成用バッファ10は、第1図の
CPU停止命令コード生成回路10に対応し この例の
場き、CP U lの停止命令コード゛OOH”を、デ
ータバス8を介してCPUIに読み込ませる。
The CPU stop command code generation buffer 10 corresponds to the CPU stop command code generation circuit 10 in FIG. Load it.

メモリ選択信号6は、アドレス一致信号13とメモリリ
ード要求信号3の論理積により得られる信号で、メモリ
回路7に入力される。
The memory selection signal 6 is a signal obtained by ANDing the address match signal 13 and the memory read request signal 3, and is input to the memory circuit 7.

メモリ非選択信号9は、アドレス不一致信号14とメモ
・リリード要求信号3の論理積により得られる信号で、
CPU停止命令コード生成用バッファ10に入力される
The memory non-selection signal 9 is a signal obtained by ANDing the address mismatch signal 14 and the memory reread request signal 3.
The CPU stop instruction code is input to the buffer 10 for generating the instruction code.

CPUIはプログラムを実行するために、アドレス信号
2をアドレス変換回路11とアドレス比較回路12に出
力し、それと同時に、メモリリード要求信号3も出力す
る。
In order to execute a program, the CPUI outputs an address signal 2 to an address conversion circuit 11 and an address comparison circuit 12, and simultaneously outputs a memory read request signal 3.

CPU1が出力するアドレス信号2の値が、メモリが割
り当てられたアドレスに一致する場合、アドレス変換回
路11は、アドレス信号2を変換して命令コードアドレ
ス信号5を出力し、アドレス比較回路12は、アドレス
一致信号13を出力する。
When the value of the address signal 2 output by the CPU 1 matches the address allocated to the memory, the address conversion circuit 11 converts the address signal 2 and outputs the instruction code address signal 5, and the address comparison circuit 12 An address match signal 13 is output.

このアドレス一致信号13は、メモリリート要求信号3
との論理積をとりメモリ選択信号6となったのちに、命
令コードアドレス信号5と共にメモリ回路7に入力され
る。
This address match signal 13 is the memory REET request signal 3.
After performing an AND operation with the instruction code address signal 5 to obtain the memory selection signal 6, the signal is input to the memory circuit 7 together with the instruction code address signal 5.

これにより、メモリ回路7から対応する命令コードが出
力され、データバス8を介してCPU 1に読み込まれ
る。CPUIは、読み込んだ命令を実行する。
As a result, the corresponding instruction code is output from the memory circuit 7 and read into the CPU 1 via the data bus 8. The CPUI executes the read instructions.

また、CPUIが出力するアドレス信号2の値か、メモ
リが割り当てられたアドレスと一致しない場合、アドレ
ス比較回路12は、アドレス不一致信号14を出力する
Further, if the value of the address signal 2 outputted by the CPUI does not match the address allocated to the memory, the address comparison circuit 12 outputs an address mismatch signal 14.

このアドレス不一致信号14は、メモリリード要求信号
3との論理積をとりメモリ非選択信号つとなったのちに
、CPU停止命令コード生成用バッファ10に入力され
る。
This address mismatch signal 14 is logically ANDed with the memory read request signal 3 to become a memory non-selection signal, and then inputted to the CPU stop instruction code generation buffer 10.

これにより、CPU停止命令コード生成用バッファ10
からCPU停止命令コードが出力され、データバス8を
介してCPU1に読み込まれる。
As a result, the CPU stop instruction code generation buffer 10
A CPU stop instruction code is output from the CPU 1 and read into the CPU 1 via the data bus 8.

読み込んだ命令コードを実行するとCPUIは直ちに停
止する この実施例では、CPU停正停会命令コート生成用バッ
ファ10いたか、これに限られることはなく、CPU停
正停会命令コード部に害き込んだメモリ回路を用いてち
、同様な結果か得ちれる。
In this embodiment, the CPU stops immediately when the read instruction code is executed. Similar results can be obtained using a more sophisticated memory circuit.

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

以上説明したように本発明のインサーキット・エミュレ
ータにおいては、メモリの割り当てのない領域で命令を
実行してしまった場合にプログラムの暴走を防止する効
果かある。
As explained above, the in-circuit emulator of the present invention has the effect of preventing a program from running out of control when an instruction is executed in an unallocated area of memory.

号、10・−・CPし停止命令コード生成用ハ・・lフ
ァ、11・・アドレス変換回路、12・・アトしス比較
回路、13・・・アドレス一致信号、14・アl−レス
不一致信号。
No., 10... CP and stop instruction code generation ha... lfa, 11... address conversion circuit, 12... address comparison circuit, 13... address match signal, 14. address mismatch. signal.

Claims (1)

【特許請求の範囲】 1、CPUと、該CPUから出力されるアドレス信号及
び・命令コード要求信号を入力して命令コードアドレス
信号及びメモリ選択信号を生成するアドレス監視回路と
、前記命令コードアドレス信号及び前記メモリ選択信号
とを入力して命令コードをデータバスを介して前記CP
Uに供給するメモリ回路とを有するインサーキット・エ
ミュレータにおいて、前記アドレス監視回路が所定のア
ドレス比較値を有するアドレス比較回路を設け、前記ア
ドレス信号の値が前記アドス比較値と一致しない場合に
前記命令コード要求信号と共に生成するメモリ非選択信
号を入力してCPU停止命令コードを生成しCPUに読
み込ませるCPU停止命令コード生成回路を付加してい
ることを特徴とするインサーキット・エミュレータ。 2、前記CPU停止命令コード生成回路がバッファ又は
メモリ回路を有することを特徴とする請求項1記載のイ
ンサーキット・エミュレータ。
[Claims] 1. A CPU, an address monitoring circuit that receives an address signal and an instruction code request signal output from the CPU and generates an instruction code address signal and a memory selection signal, and the instruction code address signal. and the memory selection signal, and the instruction code is sent to the CP via the data bus.
In the in-circuit emulator, the address monitoring circuit includes an address comparison circuit having a predetermined address comparison value, and when the value of the address signal does not match the address comparison value, the address monitoring circuit An in-circuit emulator further comprising a CPU stop instruction code generating circuit which inputs a memory non-selection signal generated together with a code request signal, generates a CPU stop instruction code, and causes the CPU to read the generated CPU stop instruction code. 2. The in-circuit emulator according to claim 1, wherein the CPU stop instruction code generation circuit has a buffer or a memory circuit.
JP2227730A 1990-08-29 1990-08-29 In-circuit emulator Pending JPH04107745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2227730A JPH04107745A (en) 1990-08-29 1990-08-29 In-circuit emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2227730A JPH04107745A (en) 1990-08-29 1990-08-29 In-circuit emulator

Publications (1)

Publication Number Publication Date
JPH04107745A true JPH04107745A (en) 1992-04-09

Family

ID=16865461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2227730A Pending JPH04107745A (en) 1990-08-29 1990-08-29 In-circuit emulator

Country Status (1)

Country Link
JP (1) JPH04107745A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS553011A (en) * 1978-06-21 1980-01-10 Hitachi Ltd Error processing system for sequence control unit
JPS6133551A (en) * 1984-07-25 1986-02-17 Mitsubishi Electric Corp Monitoring device of microprocessor
JPS644840A (en) * 1987-06-29 1989-01-10 Yokogawa Electric Corp In-circuit emulator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS553011A (en) * 1978-06-21 1980-01-10 Hitachi Ltd Error processing system for sequence control unit
JPS6133551A (en) * 1984-07-25 1986-02-17 Mitsubishi Electric Corp Monitoring device of microprocessor
JPS644840A (en) * 1987-06-29 1989-01-10 Yokogawa Electric Corp In-circuit emulator

Similar Documents

Publication Publication Date Title
US4347565A (en) Address control system for software simulation
JPH0430053B2 (en)
US5003468A (en) Guest machine execution control system for virutal machine system
US5129079A (en) Computer system having subinstruction surveillance capability
JPH04107745A (en) In-circuit emulator
JPH0550016B2 (en)
KR920003909B1 (en) Debugging supporting circuit
JPS5835648A (en) Program execution controlling system
JPH0219937A (en) Electronic computer system
JPS644211B2 (en)
JPH096641A (en) Information processing device
JPH04367902A (en) Programmable controller
JPS59157753A (en) Subprocessor control system
JPH02103643A (en) Interruption generation circuit for debug
JPS63155330A (en) Microprogram controller
JPS6248865B2 (en)
JPH0675821A (en) Logical unit testing system
JPH01293447A (en) Control system for address coincidence interruption
JPH0635760A (en) Buffer device with trace function
Gossányi et al. Error diagnostics and recovery procedure in a dual-processor computer system
JPH0194451A (en) Program developer
JPS60195650A (en) Debugging device
JPS6118224B2 (en)
JPH0373011B2 (en)
JPS6273340A (en) Central processing unit