JPH0464097B2 - - Google Patents

Info

Publication number
JPH0464097B2
JPH0464097B2 JP60009441A JP944185A JPH0464097B2 JP H0464097 B2 JPH0464097 B2 JP H0464097B2 JP 60009441 A JP60009441 A JP 60009441A JP 944185 A JP944185 A JP 944185A JP H0464097 B2 JPH0464097 B2 JP H0464097B2
Authority
JP
Japan
Prior art keywords
emulation
ready signal
memory
signal
target system
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
JP60009441A
Other languages
Japanese (ja)
Other versions
JPS61168052A (en
Inventor
Etsuro Yamauchi
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 Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP60009441A priority Critical patent/JPS61168052A/en
Publication of JPS61168052A publication Critical patent/JPS61168052A/en
Publication of JPH0464097B2 publication Critical patent/JPH0464097B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はマイクロプロセツサを応用した電子機
器に好適なデバツグ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a debugging device suitable for electronic equipment to which a microprocessor is applied.

(従来の技術) 一般に、マイクロプロセツサを応用した製品の
設計及び開発時のデバツグにはエミユレーシヨン
機能を有するデバツグ装置が使用される。これら
のデバツグ装置は、通常デバツグ対象システムの
代替メモリとなるエミユレーシヨンメモリが内蔵
されており、特に製品開発段階に於いてデバツク
対象システム(以下ターゲツト・システムとい
う)のメモリが使用できない様な場合、デバツグ
装置のエミユレーシヨンメモリが代替に使用され
る。このエミユレーシヨンメモリには、通常高速
のメモリが使用されているが、高価であり又実装
スペースの問題もあるため、あまり多く実装され
ていない。又、厳密な意味ではエミユレーシヨン
メモリとは言えないが、DRAM等を使用して低
速ではあるが安価なメモリを大容量実装したもの
もあるが、この場合ターゲツト・システムのハー
ドウエア構成によつては使用できない場合も生ず
る。
(Prior Art) Generally, a debugging device having an emulation function is used for debugging during the design and development of products using microprocessors. These debugging devices usually have a built-in emulation memory that serves as a substitute memory for the system to be debugged, especially when the memory of the system to be debugged (hereinafter referred to as the target system) cannot be used during the product development stage. In this case, the emulation memory of the debugging device is used instead. A high-speed memory is usually used as this emulation memory, but it is expensive and has problems with mounting space, so it is not often implemented. Also, although it cannot be called emulation memory in the strict sense, there are some low-speed but inexpensive memories that use DRAM, etc. to implement large-capacity memory, but in this case, depending on the hardware configuration of the target system. In some cases, it may become unusable.

(従来例) 第3図は従来のデバツグ装置のブロツク図であ
る。図に於いて、1はエミユレーシヨン用マイク
ロプロセツサ、2はデバツグ装置上に実装された
エミユレーシヨン・メモリブロツク、3はAND
ゲート、4はターゲツト・システム、5はターゲ
ツト・システム4から送られてくるアクテイブ
「ハイ」のREADY(レデイ)信号、6はエミユレ
ーシヨン・メモリブロツク2から送られてくるア
クテイブ「ハイ」のREADY信号、7はANDゲ
ート3の出力信号である。
(Conventional Example) FIG. 3 is a block diagram of a conventional debugging device. In the figure, 1 is the emulation microprocessor, 2 is the emulation memory block mounted on the debugging device, and 3 is the AND
4 is the target system; 5 is an active "high" READY signal sent from the target system 4; 6 is an active "high" READY signal sent from the emulation memory block 2; 7 is the output signal of AND gate 3.

エミユレーシヨン機能を有するデバツグ装置
は、ターゲツト・システム4に実装されるマイク
ロプロセツサと同等の機能を有しており、通常デ
バツグ装置上には、ターゲツト・システム4に実
装されたマイクロプロセツサと同じマイクロプロ
セツサが実装されエミユレーシヨンを行なつてい
る。このデバツグ装置上のエミユレーシヨン・メ
モリ2を使用してターゲツト・システム4のエミ
ユレーシヨンを行う場合も、デバツグ装置からは
アドレス、制御信号等がターゲツト・システム4
に送出され、このターゲツト・システム4からは
READY信号5が戻されてくる。デバツグ装置上
では、エミユレーシヨン・メモリブロツク2から
送られて来たREADY信号6とターゲツト・シス
テム4から送られて来たREADY信号5とを
ANDゲート3によりANDを取り、その出力7を
エミユレーシヨン用マイクロプロセツサ1の
READY端子に入力している。
A debugging device with an emulation function has the same functionality as the microprocessor installed in the target system 4, and usually the debugging device has the same microprocessor as the microprocessor installed in the target system 4. A processor has been implemented and is performing emulation. Even when emulating the target system 4 using the emulation memory 2 on the debug device, addresses, control signals, etc. are transferred from the debug device to the target system 4.
from this target system 4.
READY signal 5 is returned. On the debugging device, the READY signal 6 sent from the emulation memory block 2 and the READY signal 5 sent from the target system 4 are processed.
AND gate 3 performs AND, and the output 7 is sent to emulation microprocessor 1.
Input to READY terminal.

このエミユレーシヨン・メモリ2には、通常高
速メモリが使用されており、第4図のタイミング
チヤートに示す様に、エミユレーシヨン・メモリ
ブロツク2から送られて来るREADY信号6が、
ターゲツト・システム4から送られて来る
READY信号5より速い場合には、デバツグ装置
の動作はまつたく問題なく行われる。
This emulation memory 2 usually uses a high-speed memory, and as shown in the timing chart of FIG. 4, the READY signal 6 sent from the emulation memory block 2 is
Sent from target system 4
If the READY signal is faster than 5, the debugging device will operate without any problem.

しかし、エミユレーシヨン・メモリに低速のメ
モリが使用された場合、第5図のタイミングチヤ
ートに示す様に、ターゲツト・システム4から送
られて来るREADY信号5よりエミユレーシヨ
ン・メモリブロツク2から送られて来るREADY
信号6が遅く、かつターゲツト・システム4の
READY信号が一旦アクテイブになり、マイクロ
プロセツサ1がREADY信号を受信した事を確認
する前にREADY信号をインアクテイブ「ロウ」
とする様なハードウエア構成となつていた場合、
ANDゲート3の出力7はインアクテイブの状態
のままであり、その出力が加えられているエミユ
レーシヨン用マイクロプロセツサ1の待期状態を
抜け出す事ができず、システムがデツドロツク状
態となつてしまう問題があつた。
However, if a low-speed memory is used as the emulation memory, as shown in the timing chart of FIG.
Signal 6 is slow and target system 4
Once the READY signal becomes active, the READY signal is made inactive "low" before confirming that the microprocessor 1 has received the READY signal.
If the hardware configuration is such that
The output 7 of the AND gate 3 remains inactive, and the emulation microprocessor 1 to which it is applied cannot escape from the standby state, causing the system to become deadlocked. It was hot.

(発明の目的) 本発明の目的は、このような問題を解決し、タ
ーゲツトシステムのハードウエア構成に影響され
ずに確実にエミユレーシヨンのできるデバツグ装
置を提供することにある。
(Object of the Invention) An object of the present invention is to provide a debugging device that solves the above-mentioned problems and can perform emulation reliably without being affected by the hardware configuration of the target system.

(発明の構成) 本発明の構成は、マイクロプロセツサを対象と
したエミユレーシヨン機能およびデバツグ対象シ
ステムの代替メモリとなるエミユレーシヨン・メ
モリを有するデバツグ装置に於いて、前記デバツ
グ対象システムから送られて来たレデイ信号を記
憶する記憶手段と、この記憶手段に記憶したレデ
イ信号と前記デバツグ対象システムからのレデイ
信号とを前記エミユレーシヨン・メモリの低速、
高速に対応して選択する選択手段と、前記エミユ
レーシヨン・メモリからのレデイ信号と前記選択
手段からの出力信号との論理積を出力する論理手
段とを有する事を特徴とする。
(Configuration of the Invention) The configuration of the present invention provides a debugging device having an emulation function for a microprocessor and an emulation memory serving as an alternative memory for the system to be debugged. a storage means for storing a ready signal; and a storage means for storing the ready signal stored in the storage means and the ready signal from the system to be debugged at a low speed in the emulation memory.
The present invention is characterized by comprising a selection means for selecting in response to high speed, and a logic means for outputting an AND of a ready signal from the emulation memory and an output signal from the selection means.

(実施例) 次に本発明を図面により詳細に説明する。(Example) Next, the present invention will be explained in detail with reference to the drawings.

第1図は本発明の一実施例のブロツク図であ
る。図中、8はターゲツト・システム4から送ら
れて来るREADY信号5の記憶回路、9はORゲ
ート、10はD−FF(D型フリツプフロツプ)、
11は記憶回路8(D−FF10)の出力信号、
12は記憶回路8の出力信号とターゲツト・シス
テム4から送られて来るREADY信号5とを選択
する回路、13は選択回路の出力信号である。
FIG. 1 is a block diagram of one embodiment of the present invention. In the figure, 8 is a storage circuit for the READY signal 5 sent from the target system 4, 9 is an OR gate, 10 is a D-FF (D flip-flop),
11 is the output signal of the memory circuit 8 (D-FF10);
12 is a circuit for selecting the output signal of the storage circuit 8 and the READY signal 5 sent from the target system 4; 13 is an output signal of the selection circuit.

ターゲツト・システム4から送られて来た
READY信号5はORゲート9を通しD−FF10
に入力される。このD−FF10はクロツクの立
上りエツジでORゲート9の出力をサンプリング
している。このORゲート9の出力が「ハイ」と
なると、D−FF10の出力11も「ハイ」とな
り、ORゲート9の片側の入力にフイードバツク
が掛かり、D−FF10のクリア信号がアク
テイブとなるまでD−FF10の出力11は「ハ
イ」が保持され、選択回路12、ANDゲート3
を通し、エミユレーシヨン用マイクロプロセツサ
1のREADY端子に入力される。
Sent from target system 4
READY signal 5 passes through OR gate 9 to D-FF10
is input. This D-FF 10 samples the output of the OR gate 9 at the rising edge of the clock. When the output of this OR gate 9 becomes "high", the output 11 of D-FF10 also becomes "high", feedback is applied to one input of OR gate 9, and D-FF10 becomes active until the clear signal of D-FF10 becomes active. The output 11 of the FF10 is held "high", and the selection circuit 12 and the AND gate 3
The signal is input to the READY terminal of the emulation microprocessor 1 through the .

第2図は第1図の動作を示すタイミングチヤー
トである。この図の様に、ターゲツト・システム
4より送られてくるREADY信号5よりエミユレ
ーシヨン・メモリブロツク2から送られてくる
READY信号6が遅く、かつターゲツト・システ
ム4のREADY信号がインアクテイブとなつて
も、D−FF10によりREADY信号のアクテイ
ブ「H」状態が記憶されているため、エミユレー
シヨン用マイクロプロセツサ1は待期状態から抜
け出す事ができデツドロツクに陥いる事はない。
FIG. 2 is a timing chart showing the operation of FIG. 1. As shown in this figure, the READY signal 5 sent from the target system 4 is sent from the emulation memory block 2.
Even if the READY signal 6 is slow and the READY signal of the target system 4 is inactive, the D-FF 10 stores the active "H" state of the READY signal, so the emulation microprocessor 1 is in the standby state. You can get out of the situation and never fall into a deadlock.

また、選択回路12には、記憶回路8の出力信
号11とターゲツト・システム4から送られて来
るREADY信号5が入力され選択信号SELの状態
により、これらどちらかの信号が選択される。こ
れは、デバツグ装置は高速なエミユレーシヨン・
メモリと低速なエミユレーシヨン・メモリとの2
種類のメモリを持つ事が多く、高速なエミユレー
シヨン・メモリを使用し、第4図のタイミングチ
ヤートの様にエミユレーシヨン・メモリブロツク
2から送られて来るREADY信号6がターゲツ
ト・システム4から送られて来るREADY信号5
より速い場合はREADY信号の記憶回路8を通す
必要がなく、又記憶回路8を通すとリアルタイム
性が損われるため選択回路12によりターゲツ
ト・システムからのREADY信号5を選択してい
る。又、低速なエミユレーシヨン・メモリを使用
し、第5図のタイミングチヤートの様にターゲツ
ト・システム4から送られて来るREADY信号5
よりエミユレーシヨン・メモリブロツク2より送
られて来るREADY信号6が遅い場合は記憶回路
8の出力11を選択する事により、ターゲツト・
システム4のハード構成に影響を受けずに確実な
エミユレーシヨンを行う事ができる。
Further, the output signal 11 of the storage circuit 8 and the READY signal 5 sent from the target system 4 are input to the selection circuit 12, and one of these signals is selected depending on the state of the selection signal SEL. This means that the debugging equipment is a fast emulation
Memory and slow emulation memory
As shown in the timing chart in Figure 4, the READY signal 6 sent from the emulation memory block 2 is sent from the target system 4. READY signal 5
If the signal is faster, it is not necessary to pass the READY signal through the storage circuit 8, and since passing it through the storage circuit 8 would impair real-time performance, the selection circuit 12 selects the READY signal 5 from the target system. Also, by using a low-speed emulation memory, the READY signal 5 sent from the target system 4 as shown in the timing chart of FIG.
If the READY signal 6 sent from the emulation memory block 2 is slow, select the output 11 of the memory circuit 8 to
Reliable emulation can be performed without being affected by the hardware configuration of System 4.

(発明の効果) 以上の説明したように、本発明によれば、ター
ゲツト・システムのハードウエア構成の影響を受
ける事なく、確実で信頼性の高いデバツグ装置を
提供する事ができる。
(Effects of the Invention) As described above, according to the present invention, a reliable and highly reliable debugging device can be provided without being affected by the hardware configuration of the target system.

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

第1図は本発明の一実施例のブロツク図、第2
図は第1図のタイミングチヤート、第3図は従来
のデバツグ装置のブロツク図、第4図及び第5図
は第3図のデバツグ装置のタイミングチヤートで
ある。図において 1……エミユレーシヨン用マイクロプロセツ
サ、2……エミユレーシヨン・メモリブロツク、
3……ANDゲート、4……ターゲツト・システ
ム、5……ターゲツト・システムからのREADY
信号、6……エミユレーシヨン・メモリブロツク
からのREADY信号、7……ANDゲート3の出
力信号、8……READY信号5の記憶回路、9…
…ORゲート、10……D−FF、11……記憶回
路8の出力信号、12……選択回路、13……選
択回路の出力信号、CLK……クロツク信号、
SEL……選択入力信号、……D−FF10の
クリア入力信号である。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG.
The figures are a timing chart of FIG. 1, FIG. 3 is a block diagram of a conventional debugging device, and FIGS. 4 and 5 are timing charts of the debugging device of FIG. 3. In the figure: 1... Emulation microprocessor, 2... Emulation memory block,
3...AND gate, 4...Target system, 5...READY from target system
Signal, 6... READY signal from emulation memory block, 7... Output signal of AND gate 3, 8... Storage circuit for READY signal 5, 9...
...OR gate, 10...D-FF, 11...output signal of memory circuit 8, 12...selection circuit, 13...output signal of selection circuit, CLK...clock signal,
SEL...Select input signal...D-FF10 clear input signal.

Claims (1)

【特許請求の範囲】[Claims] 1 マイクロプロセツサを対象としたエミユレー
シヨン機能およびデバツグ対象システムの代替メ
モリとなるエミユレーシヨン・メモリを有するデ
バツグ装置において、前記デバツグ対象システム
から送られて来たレデイ信号を記憶する記憶手段
と、この記憶手段に記憶したレデイ信号と前記デ
バツグ対象システムからのレデイ信号とを前記エ
ミユレーシヨン・メモリの低速、高速に対応して
選択する選択手段と、前記エミユレーシヨン・メ
モリからのレデイ信号と前記選択手段からの出力
信号との論理積を出力する論理手段とを有するこ
とを特徴とするデバツグ装置。
1. In a debugging device having an emulation function for a microprocessor and an emulation memory serving as a substitute memory for the system to be debugged, a storage means for storing a ready signal sent from the system to be debugged, and this storage means selection means for selecting the ready signal stored in the emulation memory and the ready signal from the system to be debugged corresponding to the low speed or high speed of the emulation memory; the ready signal from the emulation memory and the output signal from the selection means; 1. A debugging device comprising: logical means for outputting a logical product of the logical product and the logical product.
JP60009441A 1985-01-22 1985-01-22 Debugging device Granted JPS61168052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60009441A JPS61168052A (en) 1985-01-22 1985-01-22 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60009441A JPS61168052A (en) 1985-01-22 1985-01-22 Debugging device

Publications (2)

Publication Number Publication Date
JPS61168052A JPS61168052A (en) 1986-07-29
JPH0464097B2 true JPH0464097B2 (en) 1992-10-13

Family

ID=11720389

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60009441A Granted JPS61168052A (en) 1985-01-22 1985-01-22 Debugging device

Country Status (1)

Country Link
JP (1) JPS61168052A (en)

Also Published As

Publication number Publication date
JPS61168052A (en) 1986-07-29

Similar Documents

Publication Publication Date Title
US4694426A (en) Asynchronous FIFO status circuit
KR940012146A (en) Semiconductor integrated circuit with CPU and multiplier
US5168559A (en) Emulation system capable of complying with microcomputers having different on-chip memory capacities
JPS62179033A (en) Ic microprocessor
JPH0464097B2 (en)
KR900018791A (en) Minimum Reset Time Hold Circuit
JPH06236291A (en) Peripheral apparatuses at inside and at outside and microcomputer capable of being operated in emulation mode
JP2572736B2 (en) Data bus conflict avoidance circuit for in-circuit emulator
JPH029401Y2 (en)
SU1552189A1 (en) Device for monitoring programs
SU1288704A1 (en) Interface for linking central processor with group of arithmetic processors
JP2786033B2 (en) Time measuring device
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JP2716284B2 (en) Semiconductor integrated circuit
JP2919357B2 (en) CPU interface circuit
JPH0370055A (en) Semiconductor integrated circuit device
JPS6398052A (en) Memory device
JPS61196337A (en) Detecting system for unused area access of memory
JPS61133465A (en) Switching method of cpu
JPS62241041A (en) Information processor
JPH04160487A (en) Semiconductor integrated circuit
JPS6227423B2 (en)
JPS5566042A (en) Memory control circuit
JPH0543142B2 (en)
JPS6127785B2 (en)