JP2962247B2 - In-circuit emulator - Google Patents
In-circuit emulatorInfo
- Publication number
- JP2962247B2 JP2962247B2 JP8286610A JP28661096A JP2962247B2 JP 2962247 B2 JP2962247 B2 JP 2962247B2 JP 8286610 A JP8286610 A JP 8286610A JP 28661096 A JP28661096 A JP 28661096A JP 2962247 B2 JP2962247 B2 JP 2962247B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- data
- output
- becomes
- address
- 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 - Fee Related
Links
- 230000015654 memory Effects 0.000 claims description 81
- 238000013507 mapping Methods 0.000 claims description 42
- 230000006870 function Effects 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 18
- 238000011156 evaluation Methods 0.000 description 10
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 6
- 239000000872 buffer Substances 0.000 description 5
- 101000880310 Homo sapiens SH3 and cysteine-rich domain-containing protein Proteins 0.000 description 4
- 102100037646 SH3 and cysteine-rich domain-containing protein Human genes 0.000 description 4
- BSFODEXXVBBYOC-UHFFFAOYSA-N 8-[4-(dimethylamino)butan-2-ylamino]quinolin-6-ol Chemical compound C1=CN=C2C(NC(CCN(C)C)C)=CC(O)=CC2=C1 BSFODEXXVBBYOC-UHFFFAOYSA-N 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000001012 protector Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明はインサーキットエミ
ュレータに関し、特にプログラムメモリ領域,データメ
モリ領域のそれぞれに対応したアドレスバスを有するマ
イクロコンピュータをエミュレーションするインサーキ
ットエミュレータに関する。The present invention relates to an in-circuit emulator, and more particularly to an in-circuit emulator for emulating a microcomputer having an address bus corresponding to each of a program memory area and a data memory area.
【0002】[0002]
【従来の技術】インサーキットエミュレータとは、特定
のマイクロコンピュータの動作を実現する装置である。
このインサーキットエミュレータの機能について、ま
ず、説明する。2. Description of the Related Art An in-circuit emulator is a device for realizing the operation of a specific microcomputer.
First, the function of this in-circuit emulator will be described.
【0003】エミュレーション対象であるマイクロコン
ピュータのメモリ空間及びそのマイクロコンピュータを
使用するターゲットシステム全体のメモリ空間は、主に
プログラムの格納に使用するプログラムメモリ領域と、
主にデータの格納に使用するデータメモリ領域とに分け
られていることが多い。このプログラムメモリ領域内に
マッピングされた各マッピング領域があり、使用される
領域をマッピングエリア、使用されない領域をノンマッ
プエリアと呼ぶ。更に、マッピングエリアは、使用して
いるメモリの属性によって区別される。ROMが割り当
てられている領域はROMエリア、RAMが割り当てら
れている領域はRAMエリアと呼ぶ。このノンマップエ
リアに対するアクセスや、ROMエリアに対するライト
アクセスを検出し、エミュレーションを停止させる機能
がマッピング機能である。この機能によりエミュレーシ
ョンが停止することをノンマップブレーク及びライトプ
ロテクトブレークと呼ぶ。The memory space of the microcomputer to be emulated and the memory space of the entire target system using the microcomputer mainly include a program memory area used for storing programs,
It is often divided into a data memory area mainly used for storing data. Each of the mapping areas mapped in the program memory area is called a mapping area, and an unused area is called a non-map area. Further, the mapping areas are distinguished by the attributes of the memory used. The area to which the ROM is assigned is called a ROM area, and the area to which the RAM is assigned is called a RAM area. The function of detecting access to the non-map area and write access to the ROM area and stopping emulation is a mapping function. Stopping emulation by this function is called a non-map break and a write protect break.
【0004】また、データメモリ領域内には特殊機能レ
ジスタ(以下、SFRと呼ぶ)とメインRAMと呼ばれ
る領域が割り当てられている。このSFRへの不正アク
セスを検出し、エミュレーションを停止させる機能がS
FRプロテクト機能である。この機能によりエミュレー
ションが停止することをSFRプロテクトブレークと呼
ぶ。SFRへの不正なアクセスには、5個の種類があ
る。その一つ目は、SFR領域に割り当てられている領
域内でSFRが存在しないアドレスに対してのアクセス
である。二つ目は、リードオンリーのSFRに対しての
ライトアクセスである。三つ目は、ライトオンリーのS
FRに対してのリードアクセスである。四つ目は、バイ
トアクセス禁止のSFRに対してのバイトアクセスであ
る。五つ目は、ワードアクセス禁止のSFRに対しての
ワードアクセスである。In the data memory area, a special function register (hereinafter, referred to as SFR) and an area called a main RAM are allocated. The function to detect unauthorized access to this SFR and stop emulation
This is an FR protection function. Stopping the emulation by this function is called an SFR protect break. There are five types of unauthorized access to the SFR. The first is an access to an address where no SFR exists in an area allocated to the SFR area. The second is a write access to a read-only SFR. Third, light-only S
Read access to FR. The fourth is byte access to the SFR for which byte access is prohibited. The fifth is word access to the SFR for which word access is prohibited.
【0005】図7は、従来のインサーキットエミュレー
タの構成例を示すブロック図である。この従来のインサ
ーキットエミュレータ内には、エミュレーション対象で
あるマイクロコンピュータと同等の動きをし、更に、イ
ンサーキットエミュレータが有する機能の一部を実現し
ているエバチップ101がある。このエバチップ101
から、マッピング機能実現のために必要な信号が、マッ
ピング部701に対して出力されている。FIG. 7 is a block diagram showing a configuration example of a conventional in-circuit emulator. In this conventional in-circuit emulator, there is an evaluation chip 101 which operates in the same manner as the microcomputer to be emulated and further realizes a part of the functions of the in-circuit emulator. This Eva chip 101
Thus, signals necessary for realizing the mapping function are output to the mapping unit 701.
【0006】マッピング機能実現に必要な信号は、プロ
グラムメモリ系アドレスバスのEMAバス106上のア
ドレス信号、プログラムメモリ系バス有効信号のBEN
D信号、プログラムメモリ系リード/ライト信号のBC
URWB信号である。EMAバス106上のアドレス信
号は、プログラムメモリに対するアクセスが発生した
時、出力される。BEND信号は、EMAバス106上
のアドレス信号が有効な時に“1”となり、無効な時に
“0”となる信号である。BCURWB信号は、プログ
ラムメモリに対するアクセスがリードアクセスの時に
“0”となり、ライトアクセスの時に“1”となる信号
である。The signals necessary for realizing the mapping function include an address signal on the EMA bus 106 of the program memory address bus and a signal BEN of the program memory bus enable signal.
D signal, BC of program memory read / write signal
URWB signal. The address signal on the EMA bus 106 is output when an access to the program memory occurs. The BEND signal is a signal that becomes “1” when the address signal on the EMA bus 106 is valid and becomes “0” when the address signal is invalid. The BCURWB signal is a signal that becomes “0” when the access to the program memory is a read access and becomes “1” when the write memory is accessed.
【0007】上記の信号を入力信号とし、マッピング部
701は、NMPBK信号とWPBK信号を生成する。
NMPBK信号は、ノンマップブレーク発生時に“1”
となり、ノンマップブレーク未発生時は“0”となる信
号である。WPBK信号は、ライトプロテクトブレーク
発生時に“1”となり、ライトプロテクトブレーク未発
生時に“0”となる信号である。Using the above signals as input signals, mapping section 701 generates an NMPBK signal and a WPBK signal.
The NMPBK signal is "1" when a non-map break occurs.
The signal becomes "0" when no non-map break occurs. The WPBK signal is a signal that becomes “1” when a write-protect break occurs and “0” when a write-protect break does not occur.
【0008】また、SFRプロテクト部702に対して
も、エバチップ101からSFRプロテクト機能実現の
ために必要な信号が出力されている。[0008] Also, a signal necessary for realizing the SFR protection function is output from the evaluation chip 101 to the SFR protection section 702.
【0009】SFRプロテクト機能実現に必要な信号
は、データメモリ系アドレスバスのEAバス107上の
アドレス信号、データメモリ系バス有効信号のSTB信
号、データメモリ系アクセス幅信号のEXUBW信号、
データメモリ系リード/ライト信号のEXURWB信
号、データメモリ系領域判別信号のSTAC信号であ
る。EAバス107上のアドレス信号は、データメモリ
に対するアクセスが発生した時、出力される。STB信
号は、EAバス107上のアドレス信号が有効な時に
“1”となり、無効な時に“0”となる信号である。E
XUBW信号は、データメモリに対するアクセスがバイ
トアクセスの時に“0”となり、ワードアクセスの時に
“1”となる信号である。EXURWB信号は、データ
メモリに対するアクセスがリードアクセスの時に“0”
となり、ライトアクセスの時に“1”となる信号であ
る。STAC信号は、SFRに対するアクセスの時に
“0”となり、メインRAMに対するアクセスの時に
“1”となる信号である。The signals required to realize the SFR protection function include an address signal on the EA bus 107 of a data memory system address bus, an STB signal of a data memory system bus enable signal, an EXUBW signal of a data memory system access width signal,
An EXURWB signal of a data memory system read / write signal and a STAC signal of a data memory system area discrimination signal. The address signal on the EA bus 107 is output when an access to the data memory occurs. The STB signal is a signal that becomes “1” when the address signal on the EA bus 107 is valid and becomes “0” when the address signal is invalid. E
The XUBW signal is a signal that becomes "0" when the data memory is accessed by byte access and becomes "1" by word access. The EXURWB signal is "0" when the access to the data memory is a read access.
The signal becomes “1” at the time of write access. The STAC signal is a signal that becomes “0” when accessing the SFR and becomes “1” when accessing the main RAM.
【0010】上記の信号を入力信号として、SFRプロ
テクト部702は、SFRPBK信号を生成する。SF
RPBK信号は、SFRプロテクトブレーク発生時に
“1”となり、SFRプロテクトブレーク未発生時に
“0”となる信号である。また、NMPBK信号、WP
BK信号、SFRPBK信号は、ORゲート703の入
力となり、3信号の内一つでも“1”の時に、SVIR
Q信号が“1”となる。これらの3信号全てが“0”の
時は、SVIRQ信号は“0”である。このSVIRQ
信号は、エバチップ101に対するエミュレーション停
止要求信号である。[0010] Using the above signal as an input signal, the SFR protector 702 generates an SFRPBK signal. SF
The RPBK signal is a signal that becomes “1” when an SFR protection break occurs and becomes “0” when an SFR protection break does not occur. Also, NMPBK signal, WP
The BK signal and the SFRPBK signal are input to the OR gate 703, and when at least one of the three signals is "1", the SVIR
The Q signal becomes "1". When all three signals are "0", the SVIRQ signal is "0". This SVIRQ
The signal is an emulation stop request signal to the evaluation chip 101.
【0011】図8は、マッピング部701の詳細構成例
を示す回路図である。マッピング部701は、マッピン
グメモリ801、ANDゲート802、プルダウン抵抗
804,805から構成される。マッピングメモリ80
1には、マッピングデータが格納されている。図9は、
このマッピングデーダのフォーマットを説明する説明図
である。このマッピングデータは2ビットで構成されて
おり、RAM領域のアドレスには“ビット1,ビット
0”=“0,0”が格納され、ROM領域のアドレスに
は“1,0”が格納され、ノンマップ領域のアドレスに
は“0,1”が格納されている。マッピングメモリ80
1のアドレス入力には、EMAバス106上のアドレス
信号が入力され、アウトプットイネーブル入力にはBE
ND信号が入力される。マッピングメモリ801の出力
は2ビットあり、共にプルダウン抵抗804,805が
接続されている。このプルダウン抵抗804,805
は、アウトプットイネーブル入力に“0”が入力されて
いる時、Hi−zとなるマッピングメモリ801の出力
を“0”に固定するためのものである。マッピングメモ
リ801のビット0出力がNMPBK信号となり、ビッ
ト1出力803は、BCURWB信号と共にANDゲー
ト802に入力される。そして、ANDゲート802の
出力がWPBK信号となる。FIG. 8 is a circuit diagram showing a detailed configuration example of the mapping unit 701. The mapping unit 701 includes a mapping memory 801, an AND gate 802, and pull-down resistors 804 and 805. Mapping memory 80
1 stores mapping data. FIG.
FIG. 4 is an explanatory diagram illustrating a format of the mapping data. This mapping data is composed of 2 bits, and “bit 1, bit 0” = “0, 0” is stored in the address of the RAM area, “1, 0” is stored in the address of the ROM area, “0, 1” is stored in the address of the non-map area. Mapping memory 80
1, an address signal on the EMA bus 106 is input to the address input, and a BE signal is input to the output enable input.
The ND signal is input. The output of the mapping memory 801 has 2 bits, and both are connected to pull-down resistors 804 and 805. These pull-down resistors 804, 805
Is for fixing the output of the mapping memory 801 which becomes Hi-z to "0" when "0" is input to the output enable input. The bit 0 output of the mapping memory 801 becomes the NMPBK signal, and the bit 1 output 803 is input to the AND gate 802 together with the BCURWB signal. Then, the output of the AND gate 802 becomes a WPBK signal.
【0012】図10は、ノンマップブレーク,ライトプ
ロテクトブレーク発生時の動作を示すタイミングチャー
トである。図8,図10を参照し、マッピング部701
の動作を説明する。ノンマップ領域に対するアクセス発
生時は、EMAバス106にアドレスが出力され、BE
ND信号に“1”が出力される。その時、マッピングメ
モリ801からマッピングデータが出力される。ノンマ
ップ領域のマッピングデータは“0,1”なので、NM
PBK信号が“1”となり、WPBK信号はマッピング
データのビット1出力803が“0”なので、必ず
“0”となる。NMPBK信号が“1”となるので、エ
バチップ101に対するエミュレーション停止要求信号
であるSVIRQ信号も“1”となる。FIG. 10 is a timing chart showing the operation when a non-map break or a write protect break occurs. Referring to FIG. 8 and FIG.
Will be described. When an access to the non-map area occurs, an address is output to the EMA bus 106 and the BE
“1” is output as the ND signal. At that time, mapping data is output from the mapping memory 801. Since the mapping data in the non-map area is “0, 1”, the NM
The PBK signal becomes “1” and the WPBK signal always becomes “0” because the bit 1 output 803 of the mapping data is “0”. Since the NMPBK signal becomes “1”, the SVIRQ signal which is an emulation stop request signal for the evaluation chip 101 also becomes “1”.
【0013】ROM領域に対するライトアクセス発生時
は、EMAバス106にアドレスが出力され、BEND
信号に“1”が出力され、BCURWB信号に“1”が
出力される。ROM領域のマッピングデータは“1,
0”なので、NMPBK信号が“0”となり、WPBK
信号は“1”となる。WPBK信号が“1”となるの
で、エバチップ101に対するエミュレーション停止要
求信号であるSVIRQ信号も“1”となる。When a write access to the ROM area occurs, an address is output to the EMA bus 106 and BEND is output.
“1” is output as the signal, and “1” is output as the BCURBB signal. The mapping data of the ROM area is “1,
0 ”, the NMPBK signal becomes“ 0 ”and WPBK
The signal becomes "1". Since the WPBK signal becomes “1”, the SVIRQ signal which is an emulation stop request signal to the evaluation chip 101 also becomes “1”.
【0014】図11は、SFRプロテクト部702の詳
細構成例を示す回路図である。このSFRプロテクト部
702は、SFRプロテクトメモリ1103、NOTゲ
ート1101、ANDゲート1102、プルダウン抵抗
1104から構成される。SFRプロテクトメモリ11
03は、アドレス入力として、EAバス107上のアド
レス信号,EXURWB信号,EXUBW信号を入力
し、アウトプットイネーブル入力として、ANDゲート
1102の出力を入力する。ANDゲート1102は、
NOTゲート1101の出力およびSTB信号を入力す
る。NOTゲート1101は、STAC信号を入力す
る。SFRプロテクトメモリ1103の出力は1ビット
あり、プルダウン抵抗1104がつながっている。この
プルダウン抵抗1104は、アウトプットイネーブルに
“0”が入力されている時、Hi−zとなるSFRプロ
テクトメモリ1103の出力を“0”固定するためのも
のである。SFRプロテクトメモリ1103の出力がS
FRPBK信号となる。FIG. 11 is a circuit diagram showing a detailed configuration example of the SFR protection section 702. The SFR protection section 702 includes an SFR protection memory 1103, a NOT gate 1101, an AND gate 1102, and a pull-down resistor 1104. SFR protection memory 11
03 inputs an address signal, an EXURWB signal, and an EXUBW signal on the EA bus 107 as an address input, and inputs an output of the AND gate 1102 as an output enable input. AND gate 1102
The output of the NOT gate 1101 and the STB signal are input. NOT gate 1101 inputs a STAC signal. The output of the SFR protection memory 1103 has 1 bit, and a pull-down resistor 1104 is connected. This pull-down resistor 1104 is for fixing the output of the SFR protect memory 1103 that becomes Hi-z to “0” when “0” is input to the output enable. When the output of the SFR protect memory 1103 is S
This becomes the FRPBK signal.
【0015】SFRプロテクトメモリ1103には、S
FRプロテクトデータが格納されている。図12は、こ
のSFRプロテクトデータのフォーマットを説明する説
明図である。SFRプロテクトデータは、マッピングデ
ータとは異なり、先ずSFR領域の最初のアドレスから
最後のアドレスまでの1アドレス毎に対してバイトリー
ドアクセスを許可するかどうかのデータを格納し、その
上位側にバイトライトアクセスを許可するかどうかのデ
ータを格納し、その上位側にワードリードアクセスを許
可するかどうかのデータを格納し、その上位側にワード
ライトアクセスを許可するかどうかのデータを格納す
る。許可するアドレスには“0”を格納し、禁止するア
ドレスには“1”を格納する。The SFR protection memory 1103 has S
FR protection data is stored. FIG. 12 is an explanatory diagram illustrating the format of this SFR protected data. The SFR protect data is different from the mapping data in that first, data is stored as to whether byte read access is permitted for each address from the first address to the last address in the SFR area, and the byte write is stored in the upper side thereof. Data on whether access is permitted is stored, data on whether word read access is permitted is stored on the upper side, and data on whether word write access is permitted is stored on the upper side. “0” is stored in the permitted address, and “1” is stored in the prohibited address.
【0016】図13は、SFRプロテクトブレーク発生
時の動作を示すタイミングチャートで有る。図11,図
13を参照し、SFRプロテクト部702の動作を説明
する。FIG. 13 is a timing chart showing an operation when an SFR protection break occurs. The operation of the SFR protection unit 702 will be described with reference to FIGS.
【0017】SFR領域に対するバイトリードアクセス
発生時は、EAバス107上にアドレス信号が出力さ
れ、STAC信号に“0”、STB信号に“1”、EX
UBW信号に“0”、EXURWB信号に“0”が出力
される。その時、“00EA番地”のSFRプロテクト
データが出力される。SFRプロテクトデータが“0”
ならば、SFRPBK信号もSVIRQ信号も“0”だ
が、SFRプロテクトデータが“1”ならば、SFRP
BK信号が“1”であり、エバチップ101に対するエ
ミュレーション停止要求信号であるSVIRQ信号も
“1”となる。When a byte read access to the SFR area occurs, an address signal is output on the EA bus 107, and the STAC signal is "0", the STB signal is "1", and the EX signal is EX.
“0” is output as the UBW signal and “0” is output as the EXURWB signal. At this time, the SFR protection data of "00EA" is output. SFR protection data is "0"
Then, both the SFRPBK signal and the SVIRQ signal are “0”, but if the SFR protect data is “1”, the SFRP
The BK signal is “1”, and the SVIRQ signal, which is an emulation stop request signal for the evaluation chip 101, is also “1”.
【0018】同様に、バイトライトアクセス発生時は
“01EA番地”のSFRプロテクトデータが、ワード
リードアクセス発生時は“10EA番地”のSFRプロ
テクトデータが、ワードライトアクセス発生時は“11
EA番地”のSFRプロテクトデータが出力されて、S
FRPBK信号とSVIRQ信号が決定する。Similarly, when a byte write access occurs, the SFR protected data at address "01EA" is generated. When a word read access occurs, the SFR protected data at "10EA" is generated. When a word write access occurs, "11EA" is read.
EA address "SFR protection data is output,
The FRPBK signal and the SVIRQ signal are determined.
【0019】この従来のインサーキットエミュレータで
は、64Kバイトのメモリ空間と256バイトのSFR
空間を持つマイクロコンピュータを対象とした場合、6
4Kワード×2ビット以上のメモリ1個と、1Kワード
×1ビット以上のメモリ1個が必要となる。In this conventional in-circuit emulator, a memory space of 64 Kbytes and an SFR of 256 bytes are used.
For a microcomputer with space, 6
One memory of 4K words × 2 bits or more and one memory of 1K words × 1 bit or more are required.
【0020】[0020]
【発明が解決しようとする課題】近年、メモリが大容量
化していく中で、従来のインサーキットエミュレータ
は、マッピングメモリとSFRプロテクトメモリの小容
量メモリを2個使用する構成となっており、メモリ使用
効率が著しく悪く、小容量メモリの入手も困難となって
いると共に、小基板化への妨げにもなっている。In recent years, as memories have been increasing in capacity, conventional in-circuit emulators have a configuration in which two small-capacity memories, a mapping memory and an SFR protect memory, are used. The use efficiency is extremely poor, making it difficult to obtain a small-capacity memory, and hindering the miniaturization of substrates.
【0021】また、マッピング部とSFRプロテクト部
とで、実現手段が異なっているために、実現可能な仕様
に差があり、仕様の統一性がない。Further, since the means of realization is different between the mapping unit and the SFR protection unit, there is a difference in achievable specifications, and there is no uniformity of specifications.
【0022】さらに、マッピングデータとSFRプロテ
クトデータのフォーマットが異なっているために、別々
の2個のデータを作成しなければいけない等の問題があ
る。Furthermore, since the formats of the mapping data and the SFR protect data are different, there is a problem that two separate data must be created.
【0023】したがって、本発明の目的は、インサーキ
ットエミュレータにおける汎用部品化,小基板化,仕様
統一性向上,利便性向上にある。Accordingly, it is an object of the present invention to provide a general-purpose part, a small-sized board, a uniform specification and an improved convenience in an in-circuit emulator.
【0024】[0024]
【課題を解決するための手段】そのため、本発明は、メ
モリ空間がプログラム,データを格納するプログラムメ
モリ領域,データメモリ領域に分けられ且つそれぞれに
対応したアドレスバスを有するマイクロコンピュータを
エミュレーションするとき、前記プログラムメモリ領域
内にマッピングされた各マッピング領域の属性などを示
すマッピングデータと、前記データメモリ領域内に割り
当てられた各特殊機能レジスタに対するアクセス許可/
不許可を示すプロテクトデータと、を予め設定し、前記
各マッピング領域,前記各特殊機能レジスタに対する不
正アクセスを検出し、エミュレーション停止するインサ
ーキットエミュレータにおいて、前記各アドレスバスの
バス信号を入力しそれらの1つのバス信号を制御信号に
より選択出力する選択手段と、この選択手段のバス信号
出力をアドレス入力し前記マッピングデータおよび前記
プロテクトデータを予め設定および格納する記憶手段
と、を備えている。SUMMARY OF THE INVENTION Accordingly, the present invention provides a method for emulating a microcomputer in which a memory space is divided into a program memory area for storing programs and data, and a data memory area, and has a corresponding address bus. Mapping data indicating an attribute of each mapping area mapped in the program memory area; and access permission / access to each special function register allocated in the data memory area.
Protected data indicating non-permission is set in advance, and in an in-circuit emulator that detects unauthorized access to each of the mapping areas and each of the special function registers and stops emulation, a bus signal of each of the address buses is input and A selection means for selecting and outputting one bus signal by a control signal, and a storage means for inputting a bus signal output of the selection means as an address and presetting and storing the mapping data and the protection data.
【0025】また、前記制御信号が、前記各アドレスバ
ス上のアドレス信号の有効期間を示す信号の1つに対応
した信号である。Further, the control signal is a signal corresponding to one of signals indicating a valid period of the address signal on each address bus.
【0026】[0026]
【発明の実施の形態】次に、本発明について図面を参照
して説明する。図1は、本発明のインサーキットエミュ
レータの実施形態を示すブロック図である。図1を参照
すると、本実施形態のインサーキットエミュレータは、
エバチップ101,制御回路103,セレクタ102,
ブレーク信号生成回路105とを備えている。Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an in-circuit emulator according to the present invention. Referring to FIG. 1, the in-circuit emulator according to the present embodiment includes:
Evaluation chip 101, control circuit 103, selector 102,
And a break signal generation circuit 105.
【0027】制御回路103は、エバチップ101から
出力されてくるBEND信号とSTB信号を使用して、
2本の制御信号を生成して出力する。1本はセレクタ1
02に対して出力され、セレクタ102に入力される信
号の内、どちらの信号を選択するかを決定するSELE
CT信号である。もう1本はプロテクトメモリ104に
対して出力され、プロテクトメモリ104のアウトプッ
トイネーブル信号となるPROMOE信号である。PR
OMOE信号は、有効なとき“1”になり、無効なとき
“0”になる。The control circuit 103 uses the BEND signal and the STB signal output from the evaluation chip 101 to
It generates and outputs two control signals. One is selector 1
SELE which determines which signal is to be selected from the signals output to the selector 102 and input to the selector 102.
It is a CT signal. The other is a PROMOE signal output to the protect memory 104 and serving as an output enable signal of the protect memory 104. PR
The OMOE signal is "1" when valid and "0" when invalid.
【0028】セレクタ102は、エバチップ101から
出力されてくるEMAバス106およびEAバス107
上のアドレス信号と、制御回路103から出力されてく
るSELECT信号とを使用して、EMAバス106お
よびEAバス107上のアドレス信号の選択を行いPR
OMAD信号として出力する。SELECT信号が
“1”の時は、EAバス107上のアドレス信号がPR
OMAD信号となり、“0”の時は、EMAバス106
上のアドレス信号がPROMAD信号となる。The selector 102 includes an EMA bus 106 and an EA bus 107 output from the evaluation chip 101.
Using the above address signal and the SELECT signal output from the control circuit 103, the address signals on the EMA bus 106 and the EA bus 107 are selected and PR
Output as OMAD signal. When the SELECT signal is "1", the address signal on the EA bus 107 is PR
When the signal is "0", the EMA bus 106
The upper address signal becomes the PROMAD signal.
【0029】プロテクトメモリ104は、セレクタ10
2から出力されてくるPROMAD信号と制御回路10
3から出力されてくるPROMOE信号とを使用して、
PROMOE信号が“1”となった時にPROMAD信
号が示すアドレスに格納されているプロテクトデータ信
号を出力する。プロテクトメモリ104の出力には、プ
ルダウン抵抗122が接続されている。このプルダウン
抵抗122は、アウトプットイネーブルに“0”が入力
されている時、Hi−zとなるプロテクトメモリ104
の出力を“0”固定するためのものである。The protect memory 104 includes the selector 10
2 and the control circuit 10
3 using the PROMOE signal output from
When the PROMOE signal becomes "1", a protect data signal stored at the address indicated by the PROMAD signal is output. A pull-down resistor 122 is connected to the output of the protection memory 104. This pull-down resistor 122 is a protection memory 104 that becomes Hi-z when “0” is input to the output enable.
Is fixed at "0".
【0030】ブレーク信号生成回路105は、プロテク
トメモリ104から出力されてくるプロテクトデータ1
17とエバチップ101から出力されてくるBEND信
号、STB信号、BCUBW信号、EXUBW信号、B
CURWB信号、EXURWB信号を使用して、SVI
RQ信号、NMPBK信号、WPBK信号とSFRPB
K信号を生成して出力する。BCUBW信号は、プログ
ラムメモリに対するアクセスがバイトアクセスの時に
“0”となり、ワードアクセスの時に“1”となる信号
である。The break signal generation circuit 105 controls the protection data 1 output from the protection memory 104.
17 and the BEND signal, STB signal, BCUBW signal, EXUBW signal, B
Using CURWB signal and EXURWB signal, SVI
RQ signal, NMPBK signal, WPBK signal and SFRPB
Generate and output a K signal. The BCUBW signal is a signal that becomes “0” when the access to the program memory is a byte access and becomes “1” when the word memory is accessed.
【0031】図2は、制御回路103の詳細構成例を示
す回路図である。この制御回路103は、1個のORゲ
ート201から構成される。BEND信号とSTB信号
がORゲート201の入力となり、ORゲート201の
出力がPROMOE信号となる。つまり、BEND信号
かSTB信号のどちらか一方でも“1”となれば、PR
OMOE信号が“1”となる。SELECT信号は、S
TB信号をそのまま使用する。つまり、EAバス107
上のアドレス信号が有効な時だけSELECT信号を
“1”とし、EMAバス106上のアドレス信号が有効
な時も含めてEAバス107が無効な時はSELECT
信号を“0”とする。FIG. 2 is a circuit diagram showing a detailed configuration example of the control circuit 103. The control circuit 103 includes one OR gate 201. The BEND signal and the STB signal are input to the OR gate 201, and the output of the OR gate 201 is a PROMOE signal. In other words, if either the BEND signal or the STB signal becomes “1”, PR
The OMOE signal becomes “1”. The SELECT signal is S
The TB signal is used as it is. That is, the EA bus 107
The SELECT signal is set to "1" only when the upper address signal is valid, and when the EA bus 107 is invalid, including when the address signal on the EMA bus 106 is valid.
The signal is set to “0”.
【0032】図3は、プロテクトメモリ104から出力
されてくるプロテクトデータ信号のフォーマットを説明
する説明図である。プロテクトデータは、任意のアドレ
スに対して許可されているアクセス形態を示すデータ
で、プロテクトメモリ104に格納されている。プロテ
クトデータ信号は7ビット構成とする。FIG. 3 is an explanatory diagram for explaining the format of a protect data signal output from the protect memory 104. The protect data is data indicating an access mode permitted for an arbitrary address, and is stored in the protect memory 104. The protect data signal has a 7-bit configuration.
【0033】ビット0は、リードアクセスの可否を示す
ビットで、“0”だと許可、“1”だと禁止となる。ビ
ット1は、ライトアクセスの可否を示すビットで、
“0”だと許可、“1”だと禁止となる。ビット2は、
バイトアクセスの可否を示すビットで、“0”だと許
可、“1”だと禁止となる。ビット3は、ワードアクセ
スの可否を示すビットで、“0”だと許可、“1”だと
禁止となる。SFRが存在しないアドレスやノンマップ
領域は、ビット0,1,2,3の全てが“1”となる。
ビット4,5,6は、領域属性を示すビットで、“ビッ
ト4,ビット5,ビット6,”=“1,0,0”だとR
OM領域、“0,1,0”だとRAM領域、“0,0,
1”だとSFR領域を表す。ノンマップ領域は、“0,
0,0”で表す。ビット4,5,6は、2つ以上“1”
になることはない。Bit 0 is a bit indicating whether or not read access is possible. If "0", permission is given, and if "1", permission is prohibited. Bit 1 is a bit indicating whether write access is possible or not.
“0” indicates permission, and “1” indicates prohibition. Bit 2 is
This bit indicates whether byte access is possible or not. If "0", it is permitted, and if "1", it is prohibited. Bit 3 is a bit indicating whether or not word access is possible. If "0", permission is given; if "1", permission is prohibited. In an address or a non-map area where no SFR exists, all of the bits 0, 1, 2, and 3 are "1".
Bits 4, 5, and 6 are bits indicating an area attribute. If “bit 4, bit 5, bit 6,” = “1, 0, 0”, R
OM area, if it is “0,1,0”, RAM area, “0,0,
1 ”indicates the SFR area. The non-map area is“ 0,
0, 0 ”. Bits 4, 5, and 6 are two or more“ 1 ”.
Never be.
【0034】図4は、ブレーク信号生成回路105の詳
細構成を示す回路図である。このブレーク信号生成回路
105は、2個の3ステートバッファ、2個のNOTゲ
ート、7個のANDゲート、1個のORゲート、1個の
NORゲートから構成される。ここで、プロテクトデー
タ信号の各ビットは、それぞれビット0をPROMDA
[0]信号、ビット1をPROMDA[1]信号、ビッ
ト2をPROMDA[2]信号、ビット3をPROMD
A[3]信号、ビット4をPROMDA[4]信号、ビ
ット5をPROMDA[5]信号、ビット6をPROM
DA[6]信号で示している。FIG. 4 is a circuit diagram showing a detailed configuration of the break signal generation circuit 105. The break signal generation circuit 105 includes two three-state buffers, two NOT gates, seven AND gates, one OR gate, and one NOR gate. Here, each bit of the protect data signal is represented by PROMDA
[0] signal, bit 1 is PROMDA [1] signal, bit 2 is PROMDA [2] signal, bit 3 is PROMD
A [3] signal, bit 4 is PROMDA [4] signal, bit 5 is PROMDA [5] signal, bit 6 is PROMDA
This is indicated by the DA [6] signal.
【0035】BEND信号が有効な時、3ステートバッ
ファ402はBCUBW信号とBCURWB信号をその
まま出力するが、無効な時はHi−zを出力する。一
方、STB信号が有効な時、3ステートバッファ403
はEXUBW信号とEXURWB信号をそのまま出力す
るが、無効な時はHi−zを出力する。2つの3ステー
トバッファの出力は、BCUBW信号とEXUBW信
号、BCURWB信号とEXURWB信号がそれぞれ直
結されている。BCUBW信号とEXUBW信号の直結
した信号がBW信号で、BCURWB信号とEXURW
B信号の直結した信号がRWB信号である。When the BEND signal is valid, the three-state buffer 402 outputs the BCUBW signal and the BCURBB signal as they are, but outputs Hi-z when the BEND signal is invalid. On the other hand, when the STB signal is valid, the three-state buffer 403
Outputs the EXUBW signal and the EXURWB signal as they are, but outputs Hi-z when they are invalid. The outputs of the two three-state buffers are directly connected to the BCUBW signal and the EXUBW signal, and the BCURB signal and the EXURWB signal, respectively. The signal directly connected between the BCUBW signal and the EXUBW signal is the BW signal, and the BCURBB signal and the EXURW signal.
The signal directly connected to the B signal is the RWB signal.
【0036】図5は、ノンマップブレーク、ライトプロ
テクトブレーク発生時の動作を示すタイミングチャート
である。また、図6は、SFRプロテクトブレーク発生
時の動作を示すタイミングチャートである。図4,図
5,図6を参照して、ノンマップブレーク、ライトプロ
テクトブレーク、SFRプロテクトブレーク発生時の動
作を以下で説明する。ここで、図5,図6に示すプロテ
クトデータは、ビット6,5,4,3,2,1,0の順
に記してある。FIG. 5 is a timing chart showing the operation when a non-map break or a write protect break occurs. FIG. 6 is a timing chart showing an operation when an SFR protection break occurs. The operation when a non-map break, a write protect break, and an SFR protect break occur will be described below with reference to FIGS. Here, the protected data shown in FIGS. 5 and 6 are described in the order of bits 6, 5, 4, 3, 2, 1, and 0.
【0037】バイトアクセスが発生すると、BEND信
号かSTB信号のどちらかが“1”となり、アドレスに
対応したプロテクトデータ117がプロテクトメモリ1
04から出力される。また、BW信号が“0”となる。
BW信号が“0”の時、NOTゲート406の出力は
“1”となり、PROMDA[2]信号によりANDゲ
ート405の出力が決定する。バイトアクセス禁止の時
は、PROMDA[2]信号が“1”なので、ANDゲ
ート405の出力は“1”となり、ORゲート412の
出力、つまりSVIRQ信号が“1”となる。一方、バ
イトアクセス許可の時は、PROMDA[2]信号が
“0”なので、ANDゲート405の出力は“0”とな
り、SVIRQ信号は他の要因により決定する。一方、
BW信号が“0”の時、PROMDA[3]信号に関係
なくANDゲート404の出力は常に“0”なので、S
VIRQ信号は他の要因により決定する。When a byte access occurs, either the BEND signal or the STB signal becomes "1", and the protected data 117 corresponding to the address is stored in the protected memory 1.
04. Also, the BW signal becomes “0”.
When the BW signal is “0”, the output of the NOT gate 406 becomes “1”, and the output of the AND gate 405 is determined by the PROMDA [2] signal. When byte access is prohibited, since the PROMDA [2] signal is "1", the output of the AND gate 405 becomes "1", and the output of the OR gate 412, that is, the SVIRQ signal becomes "1". On the other hand, when the byte access is permitted, since the PROMDA [2] signal is "0", the output of the AND gate 405 becomes "0", and the SVIRQ signal is determined by other factors. on the other hand,
When the BW signal is “0”, the output of the AND gate 404 is always “0” regardless of the PROMDA [3] signal.
The VIRQ signal is determined by other factors.
【0038】ワードアクセスが発生すると、バイトアク
セスが発生した時とは逆に、BW信号が“1”となる。
BW信号が“1”の時、NOTゲート406の出力は
“0”となり、PROMDA[2]信号に関係なくAN
Dゲート405の出力は常に“0”なので、SVIRQ
信号は他の要因により決定する。また、BW信号が
“1”の時、ANDゲート404の出力はPROMDA
[3]信号により決定する。ワードアクセス禁止の時
は、PROMDA[3]信号が“1”なので、ANDゲ
ート404の出力は“1”となり、SVIRQ信号が
“1”となる。一方、ワードアクセス許可の時は、PR
OMDA[3]信号が“0”なので、ANDゲート40
4の出力は“0”となり、SVIRQ信号は他の要因に
より決定する。When a word access occurs, the BW signal becomes "1", contrary to when a byte access occurs.
When the BW signal is "1", the output of the NOT gate 406 becomes "0", and the output of the NOT gate 406 becomes AN regardless of the PROMDA [2] signal.
Since the output of D gate 405 is always "0", SVIRQ
The signal is determined by other factors. When the BW signal is "1", the output of the AND gate 404 is PROMDA
[3] Determined by signal. When word access is prohibited, since the PROMDA [3] signal is "1", the output of the AND gate 404 becomes "1", and the SVIRQ signal becomes "1". On the other hand, when word access is permitted, PR
Since the OMDA [3] signal is "0", the AND gate 40
4 becomes "0", and the SVIRQ signal is determined by other factors.
【0039】リードアクセスが発生すると、BEND信
号かSTB信号のどちらかが有効となりRWB信号が
“0”となる。RWB信号が“0”の時、NOTゲート
409の出力は“1”となり、ANDゲート408の出
力はPROMDA[0]信号により決定する。リードア
クセス禁止の時は、PROMDA[0]信号が“1”な
ので、ANDゲート408の出力は“1”となり、SV
IRQ信号が“1”となる。一方、リードアクセス許可
の時はPROMDA[0]信号が“0”なので、AND
ゲート408の出力は常に“0”となり、SVIRQ信
号は他の要因により決定する。また、RWB信号が
“0”の時、PROMDA[1]信号に関係なくAND
ゲート407の出力は常に“0”なので、SVIRQ信
号は他の要因により決定する。When a read access occurs, either the BEND signal or the STB signal becomes valid, and the RWB signal becomes "0". When the RWB signal is "0", the output of the NOT gate 409 becomes "1", and the output of the AND gate 408 is determined by the PROMDA [0] signal. When the read access is prohibited, the output of the AND gate 408 becomes "1" because the PROMDA [0] signal is "1",
The IRQ signal becomes "1". On the other hand, when the read access is permitted, the PROMDA [0] signal is "0", and
The output of gate 408 is always "0" and the SVIRQ signal is determined by other factors. Also, when the RWB signal is “0”, the AND is independent of the PROMDA [1] signal.
Since the output of gate 407 is always "0", the SVIRQ signal is determined by other factors.
【0040】ライトアクセスが発生すると、リードアク
セスが発生した時とは逆に、BEND信号かSTB信号
のどちらかが有効となりRWB信号が“1”となる。R
WB信号が“1”の時、NOTゲート409の出力は
“0”となり、PROMDA[0]信号に関係なくAN
Dゲート408の出力が“0”となり、SVIRQ信号
は他の要因により決定する。また、RWB信号が“1”
の時、ANDゲート407の出力はPROMDA[1]
信号により決定する。ライトアクセス禁止の時は、PR
OMDA[1]信号が“1”なので、ANDゲート40
7の出力は“1”となり、SVIRQ信号が“1”とな
る。一方、ライトアクセス許可の時はPROMDA
[1]信号が“0”なので、ANDゲート407の出力
は常に“0”となり、SVIRQ信号は他の要因により
決定する。When a write access occurs, contrary to when a read access occurs, either the BEND signal or the STB signal becomes valid, and the RWB signal becomes "1". R
When the WB signal is “1”, the output of the NOT gate 409 becomes “0”, and the output of the NOT gate 409 becomes AN regardless of the PROMDA [0] signal.
The output of the D gate 408 becomes "0", and the SVIRQ signal is determined by other factors. Also, the RWB signal is "1".
, The output of the AND gate 407 is PROMDA [1]
Determined by signal. PR when write access is prohibited
Since the OMDA [1] signal is "1", the AND gate 40
7 becomes "1", and the SVIRQ signal becomes "1". On the other hand, when write access is permitted, PROMDA
[1] Since the signal is "0", the output of the AND gate 407 is always "0", and the SVIRQ signal is determined by other factors.
【0041】NMPBK信号は、ANDゲート411の
出力である。SVIRQ信号が“1”で、且つプロテク
トデータ信号がノンマップ領域を示している時に、NM
PBK信号は“1”となる。このとき、ノンマップ領域
を示すプロテクトデータ信号は、PROMDA[4]信
号、PROMDA[5]信号、PROMDA[6]信号
の全てが“0”となり、NORゲート401の出力が
“1”となるためである。The NMPBK signal is an output of the AND gate 411. When the SVIRQ signal is "1" and the protected data signal indicates a non-map area, NM
The PBK signal becomes "1". At this time, as for the protected data signal indicating the non-map area, the PROMDA [4] signal, the PROMDA [5] signal, and the PROMDA [6] signal all become "0", and the output of the NOR gate 401 becomes "1". It is.
【0042】WPBK信号は、ANDゲート413の出
力である。ANDゲート407の出力が“1”で、且つ
プロテクトデータ信号がROM領域を示しているとき
に、WPBK信号は“1”となる。このとき、ROM領
域を示すプロテクトデータ信号は、PROMDA[4]
信号が“1”となるためである。The WPBK signal is the output of the AND gate 413. When the output of the AND gate 407 is “1” and the protect data signal indicates the ROM area, the WPBK signal becomes “1”. At this time, the protect data signal indicating the ROM area is PROMDA [4]
This is because the signal becomes “1”.
【0043】SFRPBK信号は、ANDゲート410
の出力である。SVIRQ信号が“1”で、且つプロテ
クトデータ信号がSFR領域を示しているときに、SF
RPBK信号は“1”となる。このとき、SFR領域を
示すプロテクトデータ信号は、PROMDA[6]信号
が“1”となるためである。The SFRPBK signal is supplied to the AND gate 410
Is the output of When the SVIRQ signal is “1” and the protect data signal indicates the SFR area, the SF
The RPBK signal becomes “1”. At this time, the PROMDA [6] signal of the protected data signal indicating the SFR area is "1".
【0044】以上、本実施形態のインサーキットエミュ
レータは、図7に示す従来のインサーキットエミュレー
タと同じ動作をすることを示した。しかし、従来のイン
サーキットエミュレータはメモリ2個を必要としたが、
本実施形態のインサーキットエミュレータでは、64K
バイトのメモリ空間と256バイトのSFR空間を持つ
マイクロコンピュータを対象とした場合、64Kバイト
のメモリ空間は256バイトのSFR空間を含むので、
64Kワード×7ビット以上のメモリ1個を必要とする
のみである。As described above, the in-circuit emulator according to the present embodiment has the same operation as the conventional in-circuit emulator shown in FIG. However, the conventional in-circuit emulator required two memories,
In the in-circuit emulator of this embodiment, 64K
When a microcomputer having a memory space of 256 bytes and an SFR space of 256 bytes is targeted, a memory space of 64 Kbytes includes an SFR space of 256 bytes.
Only one memory of 64K words × 7 bits or more is required.
【0045】[0045]
【発明の効果】以上説明したように、本発明によるイン
サーキットエミュレータは、マッピングメモリとSFR
プロテクトメモリを1個のプロテクトメモリにまとめる
ことにより、汎用性の高い大容量メモリを使用できる。As described above, the in-circuit emulator according to the present invention comprises a mapping memory and an SFR.
By combining the protected memories into one protected memory, a versatile large-capacity memory can be used.
【0046】また、マッピング機能とSFRプロテクト
機能の仕様の違いを無くしたので、実現可能な仕様が統
一され、全メモリ空間で同じ不正アクセスを検出するこ
とが出来る。Further, since the difference between the specifications of the mapping function and the SFR protection function is eliminated, the specifications that can be realized are unified, and the same illegal access can be detected in the entire memory space.
【0047】さらに、予め作成するプロテクトデータが
1個だけになり、利便性が向上するなどの効果がある。Furthermore, there is an effect that only one piece of protect data is created in advance, and convenience is improved.
【図1】本発明のインサーキットエミュレータの実施形
態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of an in-circuit emulator according to the present invention.
【図2】図1における制御回路を示す回路図である。FIG. 2 is a circuit diagram showing a control circuit in FIG.
【図3】図1におけるプロテクトデータのフォーマット
を説明する説明図である。FIG. 3 is an explanatory diagram illustrating a format of protected data in FIG. 1;
【図4】図1におけるブレーク信号生成回路を示す回路
図である。FIG. 4 is a circuit diagram showing a break signal generation circuit in FIG. 1;
【図5】図1のインサーキットエミュレータにおけるノ
ンマップブレーク、ライトプロテクトブレーク発生時の
動作を示すタイミングチャートである。FIG. 5 is a timing chart showing an operation when a non-map break and a write protect break occur in the in-circuit emulator of FIG. 1;
【図6】図1のインサーキットエミュレータにおけるS
FRプロテクトブレーク発生時の動作を示すタイミング
チャートである。FIG. 6 shows an S in the in-circuit emulator of FIG.
5 is a timing chart showing an operation when an FR protection break occurs.
【図7】従来のインサーキットエミュレータの構成例を
示すブロック図である。FIG. 7 is a block diagram illustrating a configuration example of a conventional in-circuit emulator.
【図8】図7におけるマッピング部の詳細構成例を示す
回路図である。8 is a circuit diagram illustrating a detailed configuration example of a mapping unit in FIG. 7;
【図9】図8におけるマッピングデータのフォーマット
を説明する説明図である。。FIG. 9 is an explanatory diagram illustrating a format of mapping data in FIG. 8; .
【図10】図8におけるノンマップブレーク、ライトプ
ロテクトブレーク発生時の動作を示すタイミングチャー
トである。FIG. 10 is a timing chart showing an operation when a non-map break and a write protect break in FIG. 8 occur.
【図11】図7におけるSFRプロテクト部の詳細構成
例を示す回路図である。11 is a circuit diagram showing a detailed configuration example of an SFR protection section in FIG. 7;
【図12】図11におけるSFRプロテクトデータのフ
ォマットを説明する説明図である。FIG. 12 is an explanatory diagram for explaining the format of SFR protected data in FIG. 11;
【図13】図11におけるSFRプロテクトデータ発生
時の動作を示すタイミングチャートである。13 is a timing chart showing an operation when SFR protection data is generated in FIG.
101 エバチップ 102 セレクタ 103 制御回路 104 プロテクトメモリ 105 ブレーク信号生成回路 106 プログラムメモリ系アドレスバス(EMAバ
ス) 107 データメモリ系アドレスバス(EAバス) 122 プルダウン抵抗 201 ORゲート 401 NORゲート 402,403 3ステートバッファ 404,405,407,408,410,411,4
13 ANDゲート 406,409 NOTゲート 412 ORゲート 701 マッピング部 702 SFRプロテクト部 703 ORゲート 801 マッピングメモリ 802 ANDゲート 804,805 プルダウン抵抗 1101 NOTゲート 1102 ANDゲート 1103 SFRプロテクトメモリ 1104 プルダウン抵抗Reference Signs List 101 evaluation chip 102 selector 103 control circuit 104 protect memory 105 break signal generation circuit 106 program memory system address bus (EMA bus) 107 data memory system address bus (EA bus) 122 pull-down resistor 201 OR gate 401 NOR gate 402, 403 three-state buffer 404, 405, 407, 408, 410, 411, 4
13 AND gates 406, 409 NOT gate 412 OR gate 701 Mapping unit 702 SFR protect unit 703 OR gate 801 Mapping memory 802 AND gate 804, 805 Pull down resistor 1101 NOT gate 1102 AND gate 1103 SFR protect memory 1104 Pull down resistor
Claims (2)
するプログラムメモリ領域,データメモリ領域に分けら
れ且つそれぞれに対応したアドレスバスを有するマイク
ロコンピュータをエミュレーションするとき、前記プロ
グラムメモリ領域内にマッピングされた各マッピング領
域の属性などを示すマッピングデータと、前記データメ
モリ領域内に割り当てられた各特殊機能レジスタに対す
るアクセス許可/不許可を示すプロテクトデータと、を
予め設定し、前記各マッピング領域,前記各特殊機能レ
ジスタに対する不正アクセスを検出し、エミュレーショ
ン停止するインサーキットエミュレータにおいて、前記
各アドレスバスのバス信号を入力しそれらの1つのバス
信号を制御信号により選択出力する選択手段と、この選
択手段のバス信号出力をアドレス入力し前記マッピング
データおよび前記プロテクトデータを予め設定および格
納する記憶手段と、を備えることを特徴としたインサー
キットエミュレータ。When emulating a microcomputer having a memory space divided into a program memory area for storing programs and data and a data memory area and having an address bus corresponding to each memory area, each memory area mapped in the program memory area is emulated. Mapping data indicating the attributes of the mapping area, etc., and protect data indicating access permission / non-permission to each special function register allocated in the data memory area are set in advance, and the mapping areas and the special functions are set. In an in-circuit emulator which detects an illegal access to a register and stops emulation, a selection means for inputting a bus signal of each address bus and selecting and outputting one of the bus signals by a control signal, and a bus signal output of the selection means. Storage means for inputting a force and setting and storing the mapping data and the protection data in advance.
のアドレス信号の有効期間を示す信号の1つに対応した
信号である、請求項1記載のインサーキットエミュレー
タ。2. The in-circuit emulator according to claim 1, wherein said control signal is a signal corresponding to one of signals indicating a valid period of an address signal on each of said address buses.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8286610A JP2962247B2 (en) | 1996-10-29 | 1996-10-29 | In-circuit emulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8286610A JP2962247B2 (en) | 1996-10-29 | 1996-10-29 | In-circuit emulator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10133906A JPH10133906A (en) | 1998-05-22 |
| JP2962247B2 true JP2962247B2 (en) | 1999-10-12 |
Family
ID=17706647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8286610A Expired - Fee Related JP2962247B2 (en) | 1996-10-29 | 1996-10-29 | In-circuit emulator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2962247B2 (en) |
-
1996
- 1996-10-29 JP JP8286610A patent/JP2962247B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH10133906A (en) | 1998-05-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101828175B (en) | System and method for setting access and modification for synchronous serial interface NAND | |
| KR960705274A (en) | Virtual Addressing Buffer Circuit and Address Translation Method, System BIOS Shadowing Method, Real Memory Optimization Method, Real Memory Usage Method, Emulation Method in CPU Control System and Redirecting CPU Request (Virtual Addressing Buffer Circuit) | |
| US7302545B2 (en) | Method and system for fast data access using a memory array | |
| JPH0752388B2 (en) | IC memory card | |
| US5987581A (en) | Configurable address line inverter for remapping memory | |
| JP3202700B2 (en) | Signal processing device | |
| JPS6010333B2 (en) | addressing control device | |
| JP3995883B2 (en) | Memory protection system for multitasking systems | |
| JP2962247B2 (en) | In-circuit emulator | |
| JPS6055857B2 (en) | How to identify memory | |
| US5692161A (en) | Method and apparatus for operating a microcomputer in an emulation mode to access an external peripheral | |
| EP0157342A2 (en) | Memory address expansion system | |
| JPH07334420A (en) | Extended memory control circuit | |
| KR960001096B1 (en) | Boot drive system | |
| JPS60258654A (en) | Semiconductor memory | |
| JPS6346549A (en) | Debug device | |
| JPS6120160A (en) | Addressing exception detection method | |
| JPS5953588B2 (en) | Memory interleave control method | |
| JPH077353B2 (en) | Address selection method | |
| JPH04337851A (en) | Memory access system | |
| EP0567237A1 (en) | Method and apparatus for increasing usable memory space | |
| JPS6136669B2 (en) | ||
| JP2001147850A (en) | Computer system | |
| JPS61139858A (en) | Access control system for dual port memory | |
| JPH04167160A (en) | Information processor |
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: 19990706 |
|
| LAPS | Cancellation because of no payment of annual fees |