JP2731618B2 - emulator - Google Patents

emulator

Info

Publication number
JP2731618B2
JP2731618B2 JP2048473A JP4847390A JP2731618B2 JP 2731618 B2 JP2731618 B2 JP 2731618B2 JP 2048473 A JP2048473 A JP 2048473A JP 4847390 A JP4847390 A JP 4847390A JP 2731618 B2 JP2731618 B2 JP 2731618B2
Authority
JP
Japan
Prior art keywords
microprogram
instruction
dedicated instruction
dedicated
chip
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
JP2048473A
Other languages
Japanese (ja)
Other versions
JPH03250337A (en
Inventor
貞宏 安田
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.)
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Original Assignee
NIPPON DENKI AISHII MAIKON SHISUTEMU KK
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 DENKI AISHII MAIKON SHISUTEMU KK filed Critical NIPPON DENKI AISHII MAIKON SHISUTEMU KK
Priority to JP2048473A priority Critical patent/JP2731618B2/en
Publication of JPH03250337A publication Critical patent/JPH03250337A/en
Application granted granted Critical
Publication of JP2731618B2 publication Critical patent/JP2731618B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、シングルチップ・マイクロコンピュータで
実行されるプログラムを開発する際にその機能をエミュ
レートするエミュレータに関し、特に1チップ化された
評価用チップ(evaluation chip;以下、エバチップと称
す)からなるエミュレータに関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an emulator that emulates the function of a program executed by a single-chip microcomputer when the program is developed, and more particularly, to an evaluation device that is integrated into a single chip. The present invention relates to an emulator including a chip (evaluation chip; hereinafter, referred to as an evaluation chip).

[従来の技術] エバチップは、シングルチップ・マイクロコンピュー
タに内蔵される中央処理装置(以下、CPUと称す)をエ
ミュレートする機能、シングルチップ・マイクロコンピ
ュータに内蔵される周辺制御装置(以下、I/Oと称す)
をエミュレートする機能、CPUの実行ステータスの出力
機能及びCPUの実行を一時中断させるブレーク機能等を
有している。
[Prior Art] An EVA chip has a function of emulating a central processing unit (hereinafter referred to as a CPU) built in a single-chip microcomputer, and a peripheral control device (hereinafter referred to as an I / O) built in a single-chip microcomputer. O)
, A function to output the execution status of the CPU, a break function to temporarily suspend the execution of the CPU, and the like.

ところで、シングルチップ・マイクロコンピュータで
は、CPUをコアにし、I/Oを応用分野別に構成することに
より、品種展開を行っている。このため、最近、この種
のエバチップは、CPUをエミュレートするCPUエバチップ
と、I/OをエミュレートするI/Oエバチップの2チップに
て構成するようにしている。
By the way, in a single-chip microcomputer, a CPU is used as a core, and I / Os are configured according to application fields, thereby expanding product types. For this reason, recently, this kind of evaluation chip is configured by a CPU evaluation chip that emulates a CPU and an I / O evaluation chip that emulates an I / O.

第8図は、従来のCPUエバチップの構成を示すブロッ
ク図である。
FIG. 8 is a block diagram showing a configuration of a conventional CPU evaluation chip.

マイクロROM1には、CPU機能をエミュレートするた
め、命令の実行を制御するマイクロプログラムが格納さ
れている。入力端子2を介して外部から取り込まれた命
令コードは、入力バッファ3を介してインストラクショ
ンレジスタ4に格納される。インストラクションレジス
タ4に格納された命令コードは、マイクロシーケンスユ
ニット5に供給される。このマイクロシーケンスユニッ
ト5は、与えられた命令コードに従って、マイクロROM1
のマイクロプログラムを起動させるエントリアドレスを
発生させる。マイクロシーケンスユニット5からのアド
レスは、アドレスデコーダ6に与えられている。アドレ
スデコーダ6は、マイクロシーケンスユニット5からの
アドレスをデコードして、マイクロROM1に格納されてい
るマイクロコードを選択する。選択されたマイクロコー
ドは、制御信号発生回路7に入力される。制御信号発生
回路7は、入力されたマイクロコードをデコードして各
種制御信号を生成し、これらの制御信号をエバチップに
内蔵された命令フェッチ制御回路11、バス制御回路12、
演算制御回路13及びI/O・メモリ制御回路14等に供給す
る。これにより、命令コードの機能を実行させる。
The micro ROM 1 stores a micro program for controlling execution of instructions in order to emulate a CPU function. The instruction code fetched from outside via the input terminal 2 is stored in the instruction register 4 via the input buffer 3. The instruction code stored in the instruction register 4 is supplied to the micro sequence unit 5. The micro-sequence unit 5 stores the micro ROM 1 in accordance with the given instruction code.
Generates an entry address that activates the microprogram of. The address from the micro sequence unit 5 is given to the address decoder 6. The address decoder 6 decodes an address from the micro sequence unit 5 and selects a micro code stored in the micro ROM 1. The selected microcode is input to the control signal generation circuit 7. The control signal generation circuit 7 decodes the input microcode to generate various control signals, and converts these control signals into an instruction fetch control circuit 11, a bus control circuit 12,
It is supplied to the arithmetic control circuit 13, the I / O / memory control circuit 14, and the like. Thereby, the function of the instruction code is executed.

マイクロROM1には、第9図に示すように、エバチップ
が内蔵するCPUの処理データの演算、転送、格納及び命
令処理の分岐等の汎用命令の実行を制御する汎用命令用
マイクロプログラムAと、I/Oのデータ処理を扱う専用
命令の実行を制御する専用命令用マイクロプログラムB
とが、夫々アドレス0000H〜03FFH及び0400H〜05FFHに格
納されている。
As shown in FIG. 9, the micro ROM 1 includes a general-purpose instruction microprogram A for controlling the execution of general-purpose instructions such as calculation, transfer, storage, and branching of instruction processing of processing data of a CPU incorporated in the evaluation chip, and I Microprogram B for dedicated instructions that controls the execution of dedicated instructions that handle / O data processing
Bets is stored in each address 0000 H ~03FF H and 0400 H ~05FF H.

[発明が解決しようとする課題] しかしながら、上述した従来のエミュレータは、汎用
命令用マイクロプログラムと専用命令用マイクロプログ
ラムとがひとつのマイクロROMに格納されているので、
上記格納された専用命令用マイクロプログラムに対応し
たI/Oを有するシングルチップ・マイクロコンピュータ
の機能しかエミュレーションすることができない。この
ため、シングルチップ・マイクロコンピュータの品種展
開に際し、前記I/Oと異なるI/Oを有するシングルチップ
・マイクロコンピュータの機能をエミュレーションする
場合、CPUエバチップを共通にし、I/Oエバチップのみを
I/Oの種類に応じて代えるという対応をとることができ
ず、各品種毎にCPUエバチップも新たに開発しなければ
ならないという問題点があった。
[Problems to be Solved by the Invention] However, in the above-described conventional emulator, since the general-purpose instruction microprogram and the dedicated instruction microprogram are stored in one microROM,
Only the functions of a single-chip microcomputer having an I / O corresponding to the stored dedicated instruction microprogram can be emulated. For this reason, when emulating the functions of a single-chip microcomputer having an I / O different from the above-mentioned I / O when developing a variety of single-chip microcomputers, share the CPU evaluation chip and use only the I / O evaluation chip.
There was a problem in that it was not possible to take measures to change according to the type of I / O, and a CPU evaluation chip had to be newly developed for each type.

本発明はかかる問題点に鑑みてなされたものであっ
て、CPUが共通でI/Oのみが異なる複数種類のシングルチ
ップ・マイクロコンピュータに対応可能なエミュレータ
を提供することを目的とする。
The present invention has been made in view of such a problem, and has as its object to provide an emulator that can support a plurality of types of single-chip microcomputers having a common CPU and different I / Os.

[課題を解決するための手段] 本願の第1の発明に係るエミュレータは、エミュレー
ションすべきシングルチップ・マイクロコンピュータの
中央処理装置の制御に関する汎用命令用マイクロプログ
ラム及び周辺制御装置の制御に関する専用命令用マイク
ロプログラムを記憶してなる第1の記憶手段と、前記周
辺制御装置とは異なる周辺制御装置の制御に関する専用
命令用マイクロプログラム情報を記憶してなる少なくと
も1つの第2の記憶手段と、外部から与えられる選択信
号に基づき前記第1の記憶手段から出力される専用命令
用マイクロプログラムと前記第2の記憶手段から出力さ
れる情報に基づく専用命令用マイクロプログラムとのい
ずれか一方を選択して実行する手段とを具備したことを
特徴とする。
[MEANS FOR SOLVING THE PROBLEMS] An emulator according to the first invention of the present application is a microprogram for general-purpose instructions relating to control of a central processing unit of a single-chip microcomputer to be emulated and a dedicated instruction relating to control of a peripheral controller. First storage means for storing a microprogram, at least one second storage means for storing dedicated instruction microprogram information related to control of a peripheral control device different from the peripheral control device, One of a dedicated instruction microprogram output from the first storage unit and a dedicated instruction microprogram based on information output from the second storage unit is selected and executed based on a given selection signal. And means for performing the following.

また、本願の第2の発明に係るエミュレータは、エミ
ュレーションすべきシングルチップ・マイクロコンピュ
ータの中央処理装置の制御に関する汎用命令用マイクロ
プログラム及び周辺制御装置の制御に関する専用命令用
マイクロプログラムを記憶してなる記憶手段と、前記周
辺制御装置とは異なる周辺制御装置の制御に関する専用
命令用マイクロプログラム情報を外部から入力する入力
手段と、外部から与えられる選択信号に基づき前記入力
手段を介して入力される情報に基づく専用命令用マイク
ロプログラムと前記記憶手段から出力される専用命令用
マイクロプログラムとのいずれか一方を選択して実行す
る手段とを具備したことを特徴とする。
The emulator according to the second invention of the present application stores a general-purpose instruction microprogram related to control of a central processing unit of a single-chip microcomputer to be emulated and a dedicated instruction microprogram related to control of a peripheral control device. Storage means, input means for externally inputting microprogram information for a dedicated command relating to control of a peripheral control device different from the peripheral control device, and information input via the input means based on a selection signal given from the outside And a means for selecting and executing one of a dedicated instruction microprogram based on the above and a dedicated instruction microprogram output from the storage means.

なお、ここで前記第2の記憶手段又は外部から供給さ
れる専用命令用マイクロプログラム情報とは、専用命令
用マイクロプログラムそれ自体のみならず、他の専用命
令用マイクロプログラムとの間の論理演算によって前記
専用命令用マイクロプログラムを合成することができる
情報も含む。
Here, the dedicated instruction microprogram information supplied from the second storage means or from the outside means not only the dedicated instruction microprogram itself but also a logical operation with another dedicated instruction microprogram. It also includes information for synthesizing the dedicated instruction microprogram.

[作用] 本願の第1の発明によれば、第1の記憶手段に、特定
の種類のシングルチップ・マイクロコンピュータのI/O
を制御する専用命令用マイクロプログラムが記憶され、
第2の記憶手段に、上記シングルチップ・マイクロコン
ピュータとは異なるI/Oを有する別種類のシングルチッ
プ・マイクロコンピュータに対応した専用命令用マイク
ロプログラム又はそれを規定する情報が記憶されてい
る。そして、外部からの選択信号によって、前記第1の
記憶手段からの専用命令用マイクロプログラムと、前記
第2の記憶手段から出力される専用命令用マイクロプロ
グラム又は第2の記憶手段から出力される情報によって
合成された専用命令用マイクロプログラムとが切換えら
れて実行される。
[Operation] According to the first invention of the present application, the I / O of a specific type of single-chip microcomputer is stored in the first storage means.
A micro-program for exclusive instructions for controlling the
The second storage means stores a dedicated instruction microprogram corresponding to another type of single-chip microcomputer having an I / O different from that of the single-chip microcomputer or information defining the same. Then, in response to an external selection signal, the dedicated instruction microprogram from the first storage means and the dedicated instruction microprogram output from the second storage means or information output from the second storage means And the dedicated instruction microprogram synthesized is switched and executed.

また、本願の第2の発明によれば、第2の記憶手段の
代わりに外部メモリ等から専用命令用マイクロプログラ
ム又はそれを生成する情報が供給され、記憶手段に格納
された専用命令用マイクロプログラムと切換えられて実
行される。
According to the second aspect of the present invention, a dedicated instruction microprogram or information for generating the dedicated instruction microprogram is supplied from an external memory or the like instead of the second storage means, and the dedicated instruction microprogram stored in the storage means is provided. And executed.

従って、本発明によれば、選択信号による選択で、前
記特定のシングルチップ・マイクロコンピュータのみな
らず、これとはI/Oが異なっているシングルチップ・マ
イクロコンピュータの機能をもエミュレーションするこ
とができる。このため、シングルチップ・マイクロコン
ピュータの品種展開に際しても、提供されるCPUエバチ
ップは1種類で足りることになり、エバチップ開発のた
めのコストを低減することができる。
Therefore, according to the present invention, it is possible to emulate not only the function of the specific single-chip microcomputer but also the function of the single-chip microcomputer having a different I / O from the specific single-chip microcomputer by selecting the selection signal. . Therefore, even when developing a single-chip microcomputer, only one kind of CPU evaluation chip is required, and the cost for developing the evaluation chip can be reduced.

[実施例] 以下、添付の図面を参照しながら本発明の実施例につ
いて説明する。
Embodiment An embodiment of the present invention will be described below with reference to the accompanying drawings.

第1図は、本発明の第1の実施例に係るCPUエバチッ
プの構成を示すブロック図である。なお、第1図におい
て、第8図に示した従来の回路と同一物には同一符号を
付し、重複する部分の説明は省略する。
FIG. 1 is a block diagram showing a configuration of a CPU evaluation chip according to a first embodiment of the present invention. In FIG. 1, the same components as those of the conventional circuit shown in FIG. 8 are denoted by the same reference numerals, and the description of the overlapping portions will be omitted.

このCPUエバチップには、2つのマイクロROM1,21が設
けられている。マイクロROM1は、第2図(a)に示すよ
うに、アドレス0000H〜03FFHに、内蔵CPUの処理データ
の演算、転送、格納及び命令処理の分岐等の汎用命令の
実行を制御する1024ステップの汎用命令用マイクロプロ
グラムAを格納すると共に、アドレス0400H〜05FFHに、
特定のシングルチップ・マイクロコンピュータのI/Oの
データ処理を扱う専用命令の実行を制御する512ステッ
プの専用命令用マイクロプログラムB1を格納してなる
ものである。また、マイクロROM21は、第2図(b)に
示すように、他のシングルチップ・マイクロコンピュー
タのI/Oのデータ処理を扱う専用命令の実行を制御する5
12ステップの専用命令用マイクロプログラムB2を、ア
ドレス0400H〜05FFHに格納してなるものである。
This CPU evaluation chip is provided with two micro ROMs 1 and 21. Micro ROM1, as shown in FIG. 2 (a), 1024 controlling the address 0000 H ~03FF H, arithmetic processing data of the internal CPU, transfer, running generic instruction at the branch, such as storage and instruction processing stores the microprogram a for a general-purpose instruction, the address 0400 H ~05FF H,
Those obtained by storing only instructions for the microprogram B 1 of 512 controlling the execution of the dedicated instruction handling data I / O processing for a particular single-chip microcomputers. As shown in FIG. 2 (b), the micro ROM 21 controls execution of a dedicated instruction for handling I / O data processing of another single-chip microcomputer.
The dedicated instructions for the microprogram B 2 of 12 steps, is made and stored in the address 0400 H ~05FF H.

これらのマイクロROM1,21に夫々対応させて、アドレ
スデコーダ6,22が設けられている。アドレスデコーダ6,
22は、マイクロシーケンスユニット5から供給されるア
ドレスを夫々デコードして、マイクロROM1,21に格納さ
れているマイクロコードを選択する。
Address decoders 6 and 22 are provided corresponding to these micro ROMs 1 and 21, respectively. Address decoder 6,
A decoder 22 decodes the address supplied from the micro sequence unit 5 and selects a micro code stored in the micro ROMs 1 and 21.

一方、このエバチップには、専用命令用マイクロプロ
グラムを切換えるための選択端子23が設けられている。
選択端子23から入力された選択信号SSは、入力バッフ
ァ24を介してアドレスデコーダ22に供給され、更にイン
バータ25を介してアドレスデコーダ6に供給されてい
る。
On the other hand, the evaluation chip is provided with a selection terminal 23 for switching the dedicated instruction microprogram.
The selection signal S S input from the selection terminal 23 is supplied to the address decoder 22 via the input buffer 24, and further supplied to the address decoder 6 via the inverter 25.

マイクロROM1,21から夫々供給されるマイクロコードM
C1,MC2は、制御信号発生回路26に入力されている。ま
た、制御信号発生回路26には、入力バッファ24を介して
入力された選択信号SSも入力されている。
Microcode M supplied from microROM1,21 respectively
C 1 and MC 2 are input to the control signal generation circuit 26. Further, the selection signal S S input via the input buffer 24 is also input to the control signal generation circuit 26.

この制御信号発生回路26は、例えば第3図に示すよう
に構成されている。即ち、マイクロROM1,21から夫々出
力されるマイクロコードMC1,MC2は、夫々ANDゲート31,3
2に入力されている。ANDゲート31の出力は、選択信号S
Sをインバータ33で反転させた信号によって選択され、A
NDゲート32の出力は、選択信号SSによって選択され
る。選択されたマイクロコードは、ORゲート34を介して
デコーダ35に供給される。デコーダ35は、入力されたマ
イクロコードをデコードして各種制御信号SC1,SC2
…,SCnを生成し、これらの制御信号をエバチップに内蔵
された命令フェッチ制御回路11、バス制御回路12、演算
制御回路13及びI/O・メモリ制御回路14等に供給する。
The control signal generating circuit 26 is configured, for example, as shown in FIG. That is, the microcodes MC 1 and MC 2 output from the micro ROMs 1 and 21, respectively, are AND gates 31 and 3 respectively.
Entered in 2. The output of the AND gate 31 is the selection signal S
A is selected by a signal obtained by inverting S by the inverter 33, and A
The output of the ND gate 32 is selected by selection signal S S. The selected microcode is supplied to the decoder 35 via the OR gate 34. The decoder 35 decodes the input microcode to control various control signals S C1 , S C2 ,
, SCn are generated, and these control signals are supplied to an instruction fetch control circuit 11, a bus control circuit 12, an arithmetic control circuit 13, an I / O / memory control circuit 14 and the like built in the evaluation chip.

次に、このように構成された本実施例に係るCPUエバ
チップの動作について説明する。
Next, the operation of the thus configured CPU evaluation chip according to the present embodiment will be described.

入力端子2から入力される命令コードが汎用命令であ
る場合には、マイクロシーケンスユニット5から、アド
レス0000H〜03FFHの何れかが出力されるので、アドレス
デコーダ6によって汎用命令用マイクロプログラムAの
マイクロコードが選択され、これらのコードが制御信号
発生回路26に与えられる。これにより、制御信号発生回
路26からは、汎用命令の実行に基づく各種制御信号SC1
〜SCnが出力される。
If the instruction code inputted from the input terminal 2 is the universal instruction from microsequence unit 5, the address 0000 because either H ~03FF H is outputted, by the address decoder 6 generic instruction of the microprogram A for Microcodes are selected, and these codes are supplied to the control signal generation circuit 26. Thus, the control signal generation circuit 26 outputs various control signals S C1 based on the execution of the general-purpose instruction.
To S Cn are output.

次に、入力端子2から入力される命令コードが専用命
令である場合について説明する。
Next, a case where the instruction code input from the input terminal 2 is a dedicated instruction will be described.

選択端子23から入力される選択信号SSをLレベルに
すると、アドレスデコーダ6から選択され、マイクロRO
M1のアドレス0400H〜05FFHから専用命令用マイクロプロ
グラムB1のマイクロコードMC1が選択され、これらのコ
ードが制御信号発生回路26に与えられる。制御信号発生
回路26では、選択信号SSがLレベルであることから、A
NDゲート31からのマイクロコードMC1が選択されてデコ
ーダ35に入力される。これにより、制御信号発生回路26
からは、特定のI/Oに関する専用命令の実行に基づく各
種制御信号S1〜Snが出力される。
When the selection signal S S input from the selection terminal 23 is set to L level, the selection signal S S is selected from the address decoder 6 and the micro RO is selected.
Microcode MC 1 of M1 address 0400 H ~05FF microprogram dedicated instructions from H B 1 is selected, the codes are applied to the control signal generating circuit 26. In the control signal generation circuit 26, since the selection signal S S is at the L level,
Microcode MC 1 from ND gate 31 is selected and inputted to the decoder 35. Thereby, the control signal generation circuit 26
From the various control signals S 1 to S n based on the execution of the dedicated instruction for a particular I / O is output.

一方、選択端子23から入力される選択信号SSをHレ
ベルにすると、アドレスデコーダ22が選択され、マイク
ロROM21のアドレス0400H〜05FFHから専用命令用マイク
ロプログラムB2のマイクロコードMC2が選択され、これ
らのコードが制御信号発生回路26に与えられる。制御信
号発生回路26では、選択信号SSがHレベルであること
から、ANDゲート32からのマイクロコードMC2が選択され
てデコーダ35に入力される。これにより、制御信号発生
回路26からは、上記特定のI/Oとは異なるI/Oに関する専
用命令の実行に基づく各種制御信号S1〜Snが出力され
る。
On the other hand, when the selection signal S S is input from the selection terminal 23 to H level, the address decoder 22 is selected, microcode MC 2 dedicated instruction for microprogram B 2 from the address 0400 H ~05FF H micro ROM21 is selected These codes are supplied to the control signal generation circuit 26. The control signal generating circuit 26, is input from the fact selection signal S S is H level, the microcode MC 2 is selected and the decoder 35 from the AND gate 32. Thus, from the control signal generating circuit 26, various control signals S 1 to S n based on the execution of the dedicated instruction for different I / O from the above specific I / O is output.

このように、本実施例のCPUエバチップによれば、選
択端子23のレベルを制御することにより、専用命令に関
し、同じ命令コードを入力しても、2つのマイクロROM
1,21に夫々格納された別々のマイクロプログラムを実行
させることができる。
As described above, according to the CPU evaluation chip of the present embodiment, by controlling the level of the selection terminal 23, even if the same instruction code is input for the dedicated instruction, the two micro ROMs
It is possible to execute different microprograms stored respectively in the first and the second.

第4図は、本発明の第2の実施例に係るCPUエバチッ
プの構成を示すブロック図である。なお、第4図におい
て、第1図及び第8図に示した回路と同一物には同一符
号を付し、重複する部分の説明は省略する。
FIG. 4 is a block diagram showing a configuration of a CPU evaluation chip according to a second embodiment of the present invention. In FIG. 4, the same components as those in the circuits shown in FIGS. 1 and 8 are denoted by the same reference numerals, and the description of the overlapping portions will be omitted.

この実施例では、別の専用命令用マイクロプログラム
を格納する第2の記憶手段としてPROM(プログラマブル
・ROM)41を使用している。このため、このエバチップ
には、PROM41にプログラムを書き込むための書込制御回
路42が設けられている。この書込制御回路42には、書込
制御端子43とデータ入力端子44とが接続されている。更
に、この回路にはアドレス入力端子45が設けられてお
り、このアドレス入力端子45を介して入力されるアドレ
スがアドレスデコーダ22に与えられる。
In this embodiment, a PROM (programmable ROM) 41 is used as second storage means for storing another dedicated instruction microprogram. Therefore, the evaluation chip is provided with a write control circuit 42 for writing a program in the PROM 41. The write control circuit 43 is connected to a write control terminal 43 and a data input terminal 44. Further, this circuit is provided with an address input terminal 45, and an address input through the address input terminal 45 is given to the address decoder 22.

この実施例では、選択端子23をHレベル、書込制御端
子43を書込状態にし、アドレス入力端子45から専用命令
用マイクロプログラムの格納領域のアドレス0400H〜05F
FHを順次供給しながら、データ入力端子44からマイクロ
プログラムを書き込んでいくことにより、マイクロROM1
とPROM41とに夫々別々の専用命令用マイクロプログラム
が格納され、同一の命令コードの入力で、異なるI/O用
の専用命令を実行させることができる。
In this embodiment, the selection terminal 23 is set to the H level, the write control terminal 43 is set to the write state, and the address 0400 H to 05F
While sequentially supplying F H, by the data input terminal 44 and writes the microprogram, micro ROM1
And the PROM 41 store different dedicated instruction microprograms, respectively, and can execute different I / O dedicated instructions by inputting the same instruction code.

第5図は、本発明の第3の実施例に係るCPUエバチッ
プの構成を示すブロック図である。この実施例は、第4
図のPROM41の代わりに、RAM(ランダム・アクセス・メ
モリ)51を使用した例で、先の実施例と同様に、予めRA
M51にマイクロROM1の内容と異なる専用命令用マイクロ
プログラムを書き込むことにより、同一の命令コードの
入力で、異なるI/O用の専用命令を実行させることがで
きる。
FIG. 5 is a block diagram showing a configuration of a CPU evaluation chip according to a third embodiment of the present invention. This embodiment is similar to the fourth embodiment.
In this example, a RAM (random access memory) 51 is used in place of the PROM 41 shown in FIG.
By writing a special instruction microprogram different from the contents of the micro ROM 1 in the M51, it is possible to execute different I / O dedicated instructions by inputting the same instruction code.

これらの第2及び第3の実施例によれば、第2の専用
命令用マイクロプログラムの書込が容易であることか
ら、シングルチップ・マイクロコンピュータの品種展開
に更に柔軟に対処することができる。
According to the second and third embodiments, since the writing of the second dedicated instruction microprogram is easy, it is possible to more flexibly cope with the variety of single-chip microcomputers.

第6図は、本発明の第4の実施例に係るCPUエバチッ
プの構成を示すブロック図である。この実施例は、チッ
プの内部に第2の記憶手段を設ける代わりに、外部メモ
リ61から別の専用命令用マイクロプログラムを入力する
ようにした例である。
FIG. 6 is a block diagram showing a configuration of a CPU evaluation chip according to a fourth embodiment of the present invention. This embodiment is an example in which another dedicated instruction microprogram is input from the external memory 61 instead of providing the second storage means inside the chip.

マイクロシーケンスユニット5から出力されるアドレ
スは、出力バッファ62を介してアドレス出力端子63から
外部メモリ61に与えられる。外部メモリ61には、そのア
ドレス0400H〜05FFHに、マイクロROM1に格納されたもの
とは異なる専用命令用マイクロプログラムが格納されて
いる。そして、この外部メモリ61から読み出されたマイ
クロコードがデータ入力端子64を介して制御信号発生回
路26に与えられるようになっている。
The address output from the micro sequence unit 5 is provided to the external memory 61 from the address output terminal 63 via the output buffer 62. The external memory 61, to the address 0400 H ~05FF H, are stored different dedicated instructions for the microprogram as stored in the micro ROM 1. Then, the microcode read from the external memory 61 is given to the control signal generating circuit 26 via the data input terminal 64.

この実施例によれば、マイクロシーケンスユニット5
によって指定されたアドレスに従って、外部メモリ61か
ら読み出された専用命令用マイクロプログラムと、マイ
クロROM1から読み出された専用命令用マイクロプログラ
ムとを、選択信号SSで選択して使用することにより、
同一の命令コードの入力で、異なるI/O用の専用命令を
実行させることができる。
According to this embodiment, the micro sequence unit 5
The dedicated instruction microprogram read from the external memory 61 and the dedicated instruction microprogram read from the micro ROM 1 are selected according to the address designated by the selection signal SS , and used.
Dedicated instructions for different I / Os can be executed by inputting the same instruction code.

なお、以上の各実施例では、マイクロROM1とは別個の
他の専用命令用マイクロプログラムをROM,PROM、RAM及
び外部メモリ等に格納しておいたが、上記専用命令用マ
イクロプログラムを規定する他の情報を記憶しておくよ
うにしても良い。
In each of the above-described embodiments, another dedicated instruction microprogram different from the microROM 1 is stored in the ROM, PROM, RAM, external memory, or the like. May be stored.

第7図は、マイクロROM1とは別のメモリに格納された
情報DIと、マイクロROM1からの専用命令用のマイクロ
コードMC1とを論理合成することにより、異なる専用命
令用のマイクロコードMC2を発生させるようにしたもの
であり、制御信号発生回路の構成を示している。この回
路が第3図の回路と異なる点は、ANDゲート32の前段
に、排他的論理和ゲート71を設け、マイクロコードMC1
と情報DIとの排他的論理和結果をマイクロコードM2
してANDゲート32に供給するようにした点である。
Figure 7 includes information D I stored in another memory and micro ROM 1, by logically combining the microcode MC 1 for the dedicated instruction from the micro ROM 1, microcode MC 2 for different dedicated instruction , And shows the configuration of a control signal generation circuit. This circuit is different from the circuit of FIG. 3 in that an exclusive OR gate 71 is provided before the AND gate 32 so that the microcode MC 1
And an exclusive OR result between the information D I as microcode M 2 lies in that then supplied to the AND gate 32.

この実施例によれば、2種類の専用命令用マイクロプ
ログラムの一部しか異ならない場合、その部分に対応す
るアドレスにのみデータを書き込んでおけば良いという
利点がある。
According to this embodiment, when only a part of the two types of dedicated instruction microprograms is different, there is an advantage that data only needs to be written to an address corresponding to the part.

[発明の効果] 以上述べたように、本発明によれば、同一の命令コー
ドに対して実行される複数種類の専用命令用マイクロプ
ログラムを、選択信号によって選択的に実行させること
ができるので、CPUが共通でI/Oが異なっている複数種類
ののシングルチップ・マイクロコンピュータのエミュレ
ーションを共通のCPUエバチップを使用して実行するこ
とができる。このため、シングルチップ・マイクロコン
ピュータの品種展開に際しても、提供されるCPUエバチ
ップは1種類で足り、エバチップ開発のためのコストを
低減することができる。
[Effects of the Invention] As described above, according to the present invention, a plurality of types of dedicated instruction microprograms executed for the same instruction code can be selectively executed by the selection signal. Emulation of multiple types of single-chip microcomputers with a common CPU and different I / Os can be executed using a common CPU evaluation chip. Therefore, even when developing a single-chip microcomputer, only one kind of CPU evaluation chip is required, and the cost for developing the evaluation chip can be reduced.

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

第1図は本発明の第1の実施例に係るCPUエバチップの
ブロック図、第2図は同チップにおけるマイクロROMの
メモリマップ図、第3図は同チップにおける制御信号発
生回路のブロック図、第4図は本発明の第2の実施例に
係るCPUエバチップのブロック図、第5図は本発明の第
3の実施例に係るCPUエバチップのブロック図、第6図
は本発明の第4の実施例に係るCPUエバチップのブロッ
ク図、第7図は本発明の第5の実施例に係る制御信号発
生回路のブロック図、第8図は従来のCPUエバチップの
ブロック図、第9図は同チップにおけるマイクロROMの
メモリマップ図である。 1,21;マイクロROM、2;入力端子、3,24;入力バッファ、
4;インストラクションレジスタ、5;マイクロシーケンス
ユニット、6,22;アドレスデコーダ、7,26;制御信号発生
回路、11;命令フェッチ制御回路、12;バス制御回路、1
3;演算制御回路、14;I/O・メモリ制御回路、23;選択端
子、25,33;インバータ、31,32;ANDゲート、34;ORゲー
ト、35;デコーダ、41;PROM、42;書込制御回路、43;書込
制御端子、44,64;データ入力端子、45;アドレス入力端
子、51;RAM、61;外部メモリ、62;出力バッファ、63;ア
ドレス出力端子、71;排他的論理和ゲート
FIG. 1 is a block diagram of a CPU evaluation chip according to a first embodiment of the present invention, FIG. 2 is a memory map diagram of a micro ROM in the chip, FIG. 3 is a block diagram of a control signal generation circuit in the chip, FIG. FIG. 4 is a block diagram of a CPU evaluation chip according to a second embodiment of the present invention, FIG. 5 is a block diagram of a CPU evaluation chip according to a third embodiment of the present invention, and FIG. 6 is a fourth embodiment of the present invention. FIG. 7 is a block diagram of a control signal generation circuit according to a fifth embodiment of the present invention, FIG. 8 is a block diagram of a conventional CPU evaluation chip, and FIG. FIG. 3 is a memory map diagram of a micro ROM. 1,21; Micro ROM, 2; Input terminal, 3,24; Input buffer,
4; instruction register, 5; micro sequence unit, 6, 22; address decoder, 7, 26; control signal generation circuit, 11; instruction fetch control circuit, 12; bus control circuit, 1
3; operation control circuit, 14; I / O / memory control circuit, 23; selection terminal, 25, 33; inverter, 31, 32; AND gate, 34; OR gate, 35; decoder, 41; PROM, 42; Write control terminal, 43; write control terminal, 44, 64; data input terminal, 45; address input terminal, 51; RAM, 61; external memory, 62; output buffer, 63; address output terminal, 71; exclusive logic Sum gate

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】エミュレーションすべきシングルチップ・
マイクロコンピュータの中央処理装置の制御に関する汎
用命令用マイクロプログラム及び周辺制御装置の制御に
関する専用命令用マイクロプログラムを記憶してなる第
1の記憶手段と、前記周辺制御装置とは異なる周辺制御
装置の制御に関する専用命令用マイクロプログラム情報
を記憶してなる少なくとも1つの第2の記憶手段と、外
部から与えられる選択信号に基づき前記第1の記憶手段
から出力される専用命令用マイクロプログラムと前記第
2の記憶手段から出力される情報に基づく専用命令用マ
イクロプログラムとのいずれか一方を選択して実行する
手段とを具備したことを特徴とするエミュレータ。
A single chip to be emulated.
A first storage unit storing a general-purpose instruction microprogram related to control of the central processing unit of the microcomputer and a dedicated instruction microprogram related to control of the peripheral control device; and control of a peripheral control device different from the peripheral control device. At least one second storage means for storing dedicated instruction microprogram information, a dedicated instruction microprogram output from the first storage means based on a selection signal given from the outside, and the second instruction means. Means for selecting and executing one of a dedicated instruction microprogram based on information output from the storage means.
【請求項2】エミュレーションすべきシングルチップ・
マイクロコンピュータの中央処理装置の制御に関する汎
用命令用マイクロプログラム及び周辺制御装置の制御に
関する専用命令用マイクロプログラムを記憶してなる記
憶手段と、前記周辺制御装置とは異なる周辺制御装置の
制御に関する専用命令用マイクロプログラム情報を外部
から入力する入力手段と、外部から与えられる選択信号
に基づき前記記憶手段から出力される専用命令用マイク
ロプログラムと前記入力手段を介して入力される情報に
基づく専用命令用マイクロプログラムとのいずれか一方
を選択して実行する手段とを具備したことを特徴とする
エミュレータ。
2. A single chip to be emulated.
Storage means for storing a general-purpose instruction microprogram related to control of the central processing unit of the microcomputer and a dedicated instruction microprogram related to control of the peripheral control device; and a dedicated instruction related to control of a peripheral control device different from the peripheral control device. Input means for externally inputting microprogram information for use, a dedicated instruction microprogram output from the storage means based on a selection signal given from the outside, and a dedicated instruction microprogram based on information input via the input means. Means for selecting and executing one of the programs.
JP2048473A 1990-02-28 1990-02-28 emulator Expired - Lifetime JP2731618B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2048473A JP2731618B2 (en) 1990-02-28 1990-02-28 emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2048473A JP2731618B2 (en) 1990-02-28 1990-02-28 emulator

Publications (2)

Publication Number Publication Date
JPH03250337A JPH03250337A (en) 1991-11-08
JP2731618B2 true JP2731618B2 (en) 1998-03-25

Family

ID=12804354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2048473A Expired - Lifetime JP2731618B2 (en) 1990-02-28 1990-02-28 emulator

Country Status (1)

Country Link
JP (1) JP2731618B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8938605B2 (en) * 2010-03-05 2015-01-20 International Business Machines Corporation Instruction cracking based on machine state

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60134350A (en) * 1983-12-22 1985-07-17 Nec Corp Single chip microcomputer
JPH0727471B2 (en) * 1985-08-01 1995-03-29 日本電気株式会社 Microcomputer development equipment
JPH0256025A (en) * 1988-12-22 1990-02-26 Seiko Epson Corp One chip microcomputer

Also Published As

Publication number Publication date
JPH03250337A (en) 1991-11-08

Similar Documents

Publication Publication Date Title
TWI407366B (en) Microprocessor with private microcode ram,method for efficiently storing data within a microprocessor ,and computer program product for use with a computing device
JPS6311697B2 (en)
KR100272937B1 (en) Microprocessor and multiprocessor system
JPS6313223B2 (en)
KR20000076310A (en) Eight-bit microcontroller having a risc architecture
JPS62197830A (en) Data processing system
US3958221A (en) Method and apparatus for locating effective operand of an instruction
JP2731618B2 (en) emulator
JP2000284964A (en) Efficient sub-instruction emulation in vliw processor
US20020004877A1 (en) Method and system for updating user memory in emulator systems
JPH03271829A (en) Information processor
JPH0218729B2 (en)
JPS6155130B2 (en)
JP3006487B2 (en) Emulation device
JPH10254725A (en) Processor, and its bug adoiding method
JPS6129022B2 (en)
JPS6218934B2 (en)
JPH03257572A (en) Multiprocessor system
JP2002132499A (en) Data processing apparatus and recording medium
JPH07191844A (en) Microprocessor with programmable logic
JPS6028014B2 (en) microprocessor
JPS6113612B2 (en)
JPS6361333A (en) Instruction control device
JPS631624B2 (en)
JPS638830A (en) Central controller