JPH0425945A - Incircuit emulator - Google Patents
Incircuit emulatorInfo
- Publication number
- JPH0425945A JPH0425945A JP2131811A JP13181190A JPH0425945A JP H0425945 A JPH0425945 A JP H0425945A JP 2131811 A JP2131811 A JP 2131811A JP 13181190 A JP13181190 A JP 13181190A JP H0425945 A JPH0425945 A JP H0425945A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- dma transfer
- supervisor
- state
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims description 3
- 238000001943 fluorescence-activated cell sorting Methods 0.000 abstract description 2
- 238000013507 mapping Methods 0.000 description 8
- 238000011156 evaluation Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000003292 glue Substances 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はインサーキットエミュレータに関し、特にDM
A機能を内蔵するマイクロコンピュータに対応するイン
サーキットエミュレータに関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an in-circuit emulator, and in particular to a DM
This invention relates to an in-circuit emulator that is compatible with microcomputers that have built-in A functions.
従来この種のインサーキットエミュレータ (以下IE
と称す)はプログラムの任意のアドレスまたは任意の条
件にブレークポイントを設定し、このアIパレス部の実
行または条件の成立によりユザプログラムの実行を中止
(以下この動作をフレークト称す)し、スーパバイザ割
り込み処理に入る。そしてこのスーパバイザ割り込み処
理中、IE内部のエミュレーションCPU(IFFエバ
チップと称す)はF/Wメモリ上のプロクラムによりレ
ジスタやメモリのグンブや変更を行う様な構造になって
いた。Conventionally, this type of in-circuit emulator (hereinafter referred to as IE
) sets a breakpoint at any address in the program or under any condition, and when this AI pulse section is executed or the condition is met, execution of the user program is stopped (hereinafter this operation is referred to as a "break"), and a supervisor interrupt is generated. Start processing. During this supervisor interrupt processing, the emulation CPU (referred to as the IFF Eva chip) inside the IE was structured so that the registers and memory could be read and changed by the program on the F/W memory.
またスーパバイザ割り込み処理中にDMA転送が発生し
た場合にエバチップがアクセスするメモリをF/Wメモ
リからユーザブロクラム領域のメモリに切り替えるよう
な構造にはなっていなかった。Further, when a DMA transfer occurs during supervisor interrupt processing, the memory accessed by the evaluation chip is not switched from the F/W memory to the memory in the user block area.
上述した従来のIEは、スーパバイザ割り込み処理中に
DMA転送が発生した場合にエバチッフがアクセスする
メモリをF/Wメモリからニーサブログラム領域のメモ
リに切り替えるような構造にはなっていなかった。The above-mentioned conventional IE does not have a structure in which when a DMA transfer occurs during supervisor interrupt processing, the memory to be accessed by the evaluation switch is switched from the F/W memory to the memory in the knee program area.
このため従来のIEでスーパバイザ割り込み処理中にD
MAが発生した場合、例えば本来ユーザプログラム領域
のメモリと工10の間でDMA転送を行わなければなら
ない場合にF/WメモリとIloの間でDMA転送を行
ってしまい、F/Wメモリを破壊してしまい、インザー
キットエミュレータが正常に動作しなくなるという欠点
があった。For this reason, in conventional IE, D
When MA occurs, for example, when DMA transfer should be performed between the user program area memory and Ilo, the DMA transfer is performed between the F/W memory and Ilo, and the F/W memory is destroyed. This had the disadvantage that the Inserkit emulator would not work properly.
また、スーパバイザ割り込み処理中はDMAを禁止する
ことができれば上記の問題は避けることは可能だが、そ
の場合でも下記のような欠点がある。Further, if DMA can be prohibited during supervisor interrupt processing, the above problem can be avoided, but even in that case, there are the following drawbacks.
まず、DMA転送でDRAMのリフレッシュを行ってい
るユーザシステムを従来のIEを使用してデパックする
場合、スーパバイザ割り込み処理中はDRAMのリフレ
ッシュが行われなくなるため、DRAMの内容を破壊し
てしまうという問題があった。First, when depacking a user system that refreshes DRAM using DMA transfer using conventional IE, there is a problem that the contents of DRAM will be destroyed because DRAM will not be refreshed during supervisor interrupt processing. was there.
またDMA転送を使用してCRTモニターの表示を行っ
ているようなユーザシステムをデパックする場合には、
スーパバイザ割り込み処理中は、CRTモニターの表示
が止まってしまうという問題があった。Also, when depacking a user system that displays on a CRT monitor using DMA transfer,
There was a problem in that the display on the CRT monitor stopped during supervisor interrupt processing.
本発明のIEはDMA機能を内蔵するマイクロコンピュ
ータと、スーパバイザ割り込み処理中であることを示す
信号と、前記スーパバイザ割り込み処理中にDMA転送
が発生したことを検出する回路と、前記検出信号により
スーパバイザ割り込み処理を中断する手段と、DMA転
送の終了を検出する回路を有し再びスーパバイザ割り込
み処理を行う手段を有する。The IE of the present invention includes a microcomputer with a built-in DMA function, a signal indicating that a supervisor interrupt is being processed, a circuit that detects that a DMA transfer has occurred during the supervisor interrupt processing, and a supervisor interrupt that is generated by the detection signal. It has means for interrupting processing, a circuit for detecting the end of DMA transfer, and means for performing supervisor interrupt processing again.
すなわち、上述した従来のIEに対して本発明のIEは
、スーパバイザ割み処理中にDMA転送が発生した場合
、エバチップがアクセスするメモリをF/Wメモリから
ユーザプログラム領域のメモリに切り替えてDMA転送
を行い、DMA転送が終了するとまたF/Wメモリに切
り替えてスーパバイザ割り込み処理を続行している。That is, in contrast to the conventional IE described above, when a DMA transfer occurs during supervisor interrupt processing, the IE of the present invention switches the memory accessed by the evaluation chip from the F/W memory to the memory in the user program area and performs the DMA transfer. When the DMA transfer is completed, the controller switches to the F/W memory again and continues the supervisor interrupt processing.
次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例のIEのフロック図である。FIG. 1 is a block diagram of an IE according to an embodiment of the present invention.
第1図の101はIE内部に搭載されているエバチップ
、102はバスステータスをデコードしてDMA転送が
発生したことを検出しDMACY信号を生成するデコー
ダ■、103はデータバスバッファの方向を制御するD
B R/W信号を生成するデコーダ■、104はDM
ACY信号のDEGPRC8信号からF/Wメモリとバ
ッファ■をイネーブルにするかディセーブルにするかを
決定するためのFAC8信号を生成するNAND、10
5はスーパバイザ割り込み処理中にエバチップがアクセ
スするF/Wメモリ、106はユーザフログラム領域の
マツピング状態を記録してエミュレーションメモリとユ
ーザメモリを切り替よるマツピングメモリ、107はI
E内部のエミュレーションメモリ、108はアドレスバ
スバッファ、109はニーサシステムのユーザメモリ、
110はユーザシステムのユーザI10.111はデー
タバスバッファ(以下バッファ■と称す)である。In Fig. 1, 101 is an evaluation chip mounted inside the IE, 102 is a decoder that decodes the bus status, detects the occurrence of DMA transfer, and generates a DMACY signal, and 103 controls the direction of the data bus buffer. D
A decoder ■ that generates a B R/W signal, 104 is a DM
NAND, 10 that generates the FAC8 signal for determining whether to enable or disable the F/W memory and buffer ■ from the DEGPRC8 signal of the ACY signal.
5 is an F/W memory accessed by the evaluation chip during supervisor interrupt processing; 106 is a mapping memory that records the mapping state of the user program area and switches between emulation memory and user memory; 107 is an I/W memory;
E internal emulation memory, 108 address bus buffer, 109 user memory of the Nisa system,
110 is a user I10 of the user system. 111 is a data bus buffer (hereinafter referred to as buffer 2).
ここで本特許のIEの動作を説明すると以下のようにな
る。まず、スーパバイザ割り込みが発生していないとき
はDECPRC8信号はインアクティブ゛L′″となっ
ておりFAC8信号は′H゛′となるため、F/Wメモ
リ105はディセーブル状態になっている。Here, the operation of the IE of this patent will be explained as follows. First, when no supervisor interrupt occurs, the DECPRC8 signal is inactive "L" and the FAC8 signal is "H", so the F/W memory 105 is in a disabled state.
ここでスーパバイザ割り込みが発生すると、DEGPR
C8信号はアクティブ゛HパになりF A CS信号は
°゛L′”となるため、F/Wメモ!J105はイネー
ブル状態となる。またこの時バッファ■111はティセ
ーブル状態となる。If a supervisor interrupt occurs here, DEGPR
Since the C8 signal becomes active HIGH and the FACS signal becomes ``L''', the F/W memo! J105 becomes enabled. At this time, the buffer 111 becomes disabled.
・・・・・(タイミングチャート第3図■の状態)ここ
でDMAが発生するとまずエバチップ101の出力B5
2−〇、R/W、M/丁0信号がDMA転送を示す状態
になる。これによりデコーダ■102の出力DMA、C
Yがアクティブ“L″′になる。これによりNANDl
04の入力の内の一方が“L ++となるためFAC
8AC8信号″となる。...(Status shown in timing chart Figure 3 ■) When DMA occurs here, the output B5 of the Eva chip 101 is first output.
2-0, R/W, M/D0 signals are in a state indicating DMA transfer. As a result, the output DMA of decoder ■102, C
Y becomes active "L"'. This allows NANDl
Since one of the inputs of 04 becomes “L++”, FAC
8AC8 signal''.
これによってF/Wメモリ105はディセーブル状態に
なり、またバッファ■111はイネーブル状態になる。As a result, the F/W memory 105 becomes disabled, and the buffer 111 becomes enabled.
これによりDMA転送が可能な状態になる。This enables DMA transfer.
・・・・・・(タイミングチャート第3図■の状態)な
おこの時のバッファ■11】のディレクションは、DM
A転送の種類(メモリ→I10、■10→メモリ等)及
びマツピングの状態によって決定される。・・・・・・(Status shown in Timing Chart Figure 3 ■) At this time, the direction of the buffer ■11 is DM
It is determined by the type of A transfer (memory→I10, ■10→memory, etc.) and the mapping state.
逆にDMA転送が終了したときはBS 2−0、R/W
、M/IO信号がDMA転送以外の出力状態になるため
デコーダ■102の出力信号DMACYはインアクティ
ブ“H”となり、これによってFAC8AC8信号 +
+となる。よってF/Wメモリ105は再びイネーブル
状態になり、またバッファ■111はディセーブル状態
となりスーパバイザ割り込み処理状態にもどる。Conversely, when DMA transfer is completed, BS 2-0, R/W
Since the M/IO signal is in an output state other than DMA transfer, the output signal DMACY of the decoder 102 becomes inactive "H", thereby causing the FAC8AC8 signal +
It becomes +. Therefore, the F/W memory 105 becomes enabled again, and the buffer 111 becomes disabled, returning to the supervisor interrupt processing state.
・・・・・(タイミングチャート第3図■の状態)次に
本発明の$2の実施例について図面を用いて説明する。(Status shown in timing chart 3) Next, a $2 embodiment of the present invention will be described with reference to the drawings.
第2図は本発明の第2の実施例のIEのブロック図であ
る。FIG. 2 is a block diagram of an IE according to a second embodiment of the present invention.
第2図の201はIE内部に搭載されているエバチップ
、202はDMA転送が発生していることを示すDMA
AK信号とDBGPRC3信号からF/Wメモリとバッ
ファ■をイネーブルにするかディセーブルにするかを決
定するためのF’ACS信号を生成するNAND、20
3はデータバスバッファの方向を制御するD B R/
W信号を生成するデコーダ、204はスーパバイザ割り
込み処理中にエバチップがアクセスするF/Wメモリ、
205はユーザプログラム領域のマツピング状態’を記
8し−cエミュレーションメモリとユーザメモリを切り
替えるマツピングメモリ、206はIE内部のエミュレ
ーションメモリ、207はアドレスバスバッファ、20
8はユーザシステムのユーザメモリ、209はユーザシ
ステムのユーザI10.210はデータバスバッファ(
以下バッファ■と称す)である。In Figure 2, 201 is an evaluation chip installed inside IE, and 202 is a DMA indicating that DMA transfer is occurring.
NAND, 20, which generates the F'ACS signal for determining whether to enable or disable the F/W memory and buffer ■ from the AK signal and the DBGPRC3 signal.
3 is DBR/ which controls the direction of the data bus buffer.
A decoder that generates the W signal; 204 is a F/W memory that the Eva chip accesses during supervisor interrupt processing;
205 indicates the mapping state of the user program area; -c mapping memory for switching between emulation memory and user memory; 206 emulation memory inside IE; 207 address bus buffer;
8 is the user memory of the user system, 209 is the user I of the user system, and 210 is the data bus buffer (
(hereinafter referred to as buffer ■).
ここで本特許のIEの動作を説明すると以下のようにな
る。Here, the operation of the IE of this patent will be explained as follows.
まず、スーパバイザ割り込みが発生していないときはD
BGPRC8信号はインアクティブ“’L’M:なって
おりF’AC8信号はH′となるため、F/Wメモリ2
04はディセーブル状態になっている。First, when no supervisor interrupt occurs, D
The BGPRC8 signal is inactive "'L'M:" and the F'AC8 signal is H', so the F/W memory 2
04 is in a disabled state.
ここでスーパバイザ割り込みが発生すると、DBGPR
C8信号はアクティブ°゛H°“になりF”AC8信号
はL”となるため、F/Wメモリ204はイネーブル状
態となる。またことときバッファ■2】0はディセーブ
ル状態となる。If a supervisor interrupt occurs here, the DBGPR
Since the C8 signal becomes active H° and the FAC8 signal becomes L, the F/W memory 204 is enabled.Furthermore, the buffer 2)0 is disabled.
・・・・・ (タイミングチャート第4図■の状態)こ
こでDMAが発生するとまずエバチップ201の出力D
MAAK信号がアクティブ“′LパとなってDMA転送
を示す状態になる。これによりNAND 202の入力
の内の一方がL″となるためFAC3信号は“H”とな
る。これによってF/Wメモリ204はディセーブル状
態になり、またバッファ■210はイネーブル状態にな
る。これによりDMA転送が可能な状態になる。... (Status shown in timing chart Figure 4 ■) When DMA occurs here, first the output D of the Eva chip 201 is
The MAAK signal becomes active "'L" and enters a state indicating DMA transfer. As a result, one of the inputs of the NAND 202 becomes "L", so the FAC3 signal becomes "H". As a result, the F/W memory 204 becomes disabled and the buffer 210 becomes enabled. This enables DMA transfer.
・・・・・・(タイミングチャー1−第4図■の状態)
なおこの時のバッファ■210のディレクションは、D
MA転送の種類(メモリ→I10、■/○→メモリ等)
及びマツピングの状態によって決定される。・・・・・・(Timing Chart 1 - Condition shown in Figure 4 ■)
At this time, the direction of the buffer ■210 is D.
Type of MA transfer (memory → I10, ■/○ → memory, etc.)
and mapping status.
逆にDMA転送が終了したとぎDMAAK信号がインア
クティブ゛H″となり、これによってTAC8AC8L
“となる。よってF/Wメモリ204は再びイネーブル
状態になり、またバッファ■210はディセーブル状態
となりスーパバイザ割り込み処理状態にもどる。Conversely, once the DMA transfer is completed, the DMAAK signal becomes inactive ``H'', which causes the TAC8AC8L
Therefore, the F/W memory 204 becomes enabled again, and the buffer 210 becomes disabled, returning to the supervisor interrupt processing state.
・・・・・ (タイミングチャート第4図■の状態)〔
発明の効果〕
上述したように本発明のIEはDMA機能を内蔵するマ
イクロコンピュータと、スーパバイザ割り込み処理中で
あることを示す信号と、前記スーババイザ割り込み処理
中にDMA転送が発生したことを検出する回路と、前記
検出信号によりスーパバイザ割り込み処理を中断する手
段と、DMA転送の終了を検出する回路を有し再びスー
パバイザ割り込み処理を行う手段を有するこそによりス
ーパバイザ割り込み処理中のDMA転送を実現できると
言う効果を有する。... (Status shown in Figure 4 ■ of the timing chart) [
[Effects of the Invention] As described above, the IE of the present invention includes a microcomputer with a built-in DMA function, a signal indicating that a supervisor interrupt is being processed, and a circuit that detects that a DMA transfer has occurred during the supervisor interrupt processing. And, by having a means for interrupting supervisor interrupt processing by the detection signal, a circuit for detecting the end of DMA transfer, and a means for performing supervisor interrupt processing again, it is possible to realize DMA transfer during supervisor interrupt processing. has.
第1図は本発明のIEの第1の実施例である。
101・・・・・・エバチップ、102・・・・・・デ
コーダ■、103・・・・・・テコ−3f■、104・
・・・・・NAND。
105・・・・・・F/Wメモリ、106・・・・・・
マツピングメモリ、107・・・・・・エミュレーショ
ンメモリ、108・・・・・・アドレスバッファ、10
9・・・・・・ユーザメモリ、110・・・・・・ユー
ザI10.111・・・・データバスバッファ。
また第2図は本発明のIEの第2の実施例である。
201・・・・・・エバチッ7’、202・・・・・N
AND、203・・・・・・デコーダ、204・・・・
・・F/Wメモリ、205・・・・・・マツピングメモ
リ、206・・・・・エミュレーションメモリ、207
・・・・・・アドレスバッファ、208・・・・・・ユ
ーザメモリ、209・・・・・・ユーザI10.210
・・・・・・データバスバッファ。
なお第3図及び第4図はそれぞれ第1および第2の実施
例のタイミングチャートである。
代理人 弁理士 内 原 晋
1ノ
消し3 膠4 タ、hシブチャートJL譜乙伊す 1ア
7
1/
、牟4FIG. 1 shows a first embodiment of the IE of the present invention. 101... Eva chip, 102... Decoder ■, 103... Lever-3f ■, 104...
...NAND. 105...F/W memory, 106...
Mapping memory, 107...Emulation memory, 108...Address buffer, 10
9...User memory, 110...User I10.111...Data bus buffer. Further, FIG. 2 shows a second embodiment of the IE of the present invention. 201...Ebachit7', 202...N
AND, 203... Decoder, 204...
... F/W memory, 205 ... Mapping memory, 206 ... Emulation memory, 207
... Address buffer, 208 ... User memory, 209 ... User I10.210
...Data bus buffer. Note that FIGS. 3 and 4 are timing charts of the first and second embodiments, respectively. Agent Patent Attorney Susumu Hara 1 No. 3 Glue 4 T, h Shibu Chart JL Fu Otsu Isu 1 A 7 1/ , Mu 4
Claims (1)
バイザ割り込み処理中であることを示す信号と、前記ス
ーパバイザ割り込み処理中にDMA転送が発生したこと
を検出する回路と、前記検出信号によりスーパバイザ割
り込み処理を中断する手段と、DMA転送の終了を検出
する回路を有し再びスーパバイザ割込み処理を行う手段
2を有することを特徴とするインサーキットエミュレー
タ。A microcomputer with a built-in DMA function, a signal indicating that a supervisor interrupt is being processed, a circuit for detecting that a DMA transfer has occurred during the supervisor interrupt processing, and means for interrupting the supervisor interrupt processing based on the detection signal. An in-circuit emulator characterized in that it has a circuit for detecting the end of DMA transfer and means 2 for performing supervisor interrupt processing again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2131811A JPH0425945A (en) | 1990-05-22 | 1990-05-22 | Incircuit emulator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2131811A JPH0425945A (en) | 1990-05-22 | 1990-05-22 | Incircuit emulator |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0425945A true JPH0425945A (en) | 1992-01-29 |
Family
ID=15066663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2131811A Pending JPH0425945A (en) | 1990-05-22 | 1990-05-22 | Incircuit emulator |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0425945A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9746201B2 (en) | 2015-08-13 | 2017-08-29 | Rinnai Corporation | Combustion apparatus |
-
1990
- 1990-05-22 JP JP2131811A patent/JPH0425945A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9746201B2 (en) | 2015-08-13 | 2017-08-29 | Rinnai Corporation | Combustion apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5325512A (en) | Circuit emulator | |
JPH06103472B2 (en) | Microprocessor for debugging | |
JPH02224140A (en) | Interruption testing device | |
US8370556B2 (en) | Multi-core data processor | |
US6877113B2 (en) | Break determining circuit for a debugging support unit in a semiconductor integrated circuit | |
EP0638864B1 (en) | Development support system for microcomputer with internal cache | |
JPH0425945A (en) | Incircuit emulator | |
JPH10320349A (en) | Processor and data transfer system using the processor | |
JP2628311B2 (en) | Microcomputer | |
JPH05289987A (en) | Bus right arbitrating circuit | |
JP2876909B2 (en) | Interrupt emulator | |
US7206926B2 (en) | Programmable unit including program operation unit and associated stopping device | |
JPH03134783A (en) | Single chip microcomputer | |
JPH02144653A (en) | Data processor | |
JPH03282667A (en) | Computer device | |
JPH02178848A (en) | Microprocessor development backup device | |
JPH04148339A (en) | Microprocessor | |
JPS63217430A (en) | In-circuit emulator | |
KR19980078303A (en) | Interrupt controller | |
JPH02278342A (en) | Microcomputer | |
JPH04316149A (en) | Dma processor and information processor | |
KR20010064594A (en) | Method for contorlling duplication of processor | |
JPH10143462A (en) | Microcomputer | |
JPH0782447B2 (en) | DMA data transfer control device | |
JPH0543142B2 (en) |