JPS5835647A - Appreciating device for microcomputer - Google Patents

Appreciating device for microcomputer

Info

Publication number
JPS5835647A
JPS5835647A JP56135278A JP13527881A JPS5835647A JP S5835647 A JPS5835647 A JP S5835647A JP 56135278 A JP56135278 A JP 56135278A JP 13527881 A JP13527881 A JP 13527881A JP S5835647 A JPS5835647 A JP S5835647A
Authority
JP
Japan
Prior art keywords
instruction
working area
contents
program
model
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.)
Granted
Application number
JP56135278A
Other languages
Japanese (ja)
Other versions
JPH0147811B2 (en
Inventor
Kazuhide Kawada
河田 和秀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP56135278A priority Critical patent/JPS5835647A/en
Publication of JPS5835647A publication Critical patent/JPS5835647A/en
Publication of JPH0147811B2 publication Critical patent/JPH0147811B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0763Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Executing Machine-Instructions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent an erroneous appreciation, by providing a device type selecting means in an appreciating device and informing it to the external, when an instruction which is not permitted, is read. CONSTITUTION:A host processor 1 reads contents of a device selecting switch 16 and stores them in a working area on a host memory 2. The start address of an invalid instruction set table corresponding to contents of the working area is set to a table pointer in the working area. The processor 1 reads one-instruction components of code from a paper tape reader 3 and extracts the operation code part from contents of them and stores it in the working area. The processor 1 refers to the invalid instruction set table designated by the table pointer; and if the instruction coincident with contents of the working area is detected, the output indicating that the invalid instruction is inputted is outputted to a console 4.

Description

【発明の詳細な説明】 本発明はマイクロコ/ピエータ評価装置、特に1つの命
令体系及びアーキテクチャ−の下に、それぞれのサブセ
ットで構成される複数の機種を有するマイクロコンピュ
ータファミリーの夫々の機種をすべて評価できるマイク
ロコンピュータ評価装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microcomputer evaluation device, and more particularly, to a microcomputer evaluation device that can evaluate all models of a microcomputer family having a plurality of models each consisting of a subset under one instruction system and architecture. This invention relates to a microcomputer evaluation device that can be evaluated.

近年、半導体技術の進歩により、安価なマイクロコンピ
ータを大量に入手できる様になシ、その種類も促米通り
のメモリ外付のいわゆるマルチ・チップ・マイクロコン
ピュータから、メモリをも内蔵した1チツプ・マイクロ
コンピータへト多様化している。通常1チツプ・マイク
ロコンピュータはグログラ、Aを内部のROM(読み出
し専用メモリ)K格納して−るため、そのプログラムを
作成する段階で祉プログラム・メモリの内容を書き変え
られる様にした評価装置が使用される。
In recent years, advances in semiconductor technology have made it possible to obtain large quantities of inexpensive microcomputers.The types of microcomputers range from so-called multi-chip microcomputers with external memory, to single-chip microcomputers with built-in memory. Microcomputers are diversifying. Normally, a single-chip microcomputer stores the program code A in an internal ROM (read-only memory), so an evaluation device that allows the contents of the program memory to be rewritten at the stage of creating the program is required. used.

また、lチップ・マイクロコ/ピ2−ターt”tlil
−のアーキテクチャ−及び命令体系を有していながら、
その応用分野に最も適した構成とした機種を複数有する
のが普通となりている。これら同一のアーキラクチャー
及び命令体系下にあるマイクロコンピュータは1つのフ
ァミリーを構成していると言われる。ファミリー内の各
機種はたとえば、データ・メモリやプログラム・メモリ
の容量が異なっていたり、または人出力ポートの本数な
どが異なりていたジするが、これにともない使用できる
命令の総数も異なるのが普通である。また、たとえ命令
のオペレージ、7・コードの総数が異ならない場合でも
ある命令のオペランド部に記述できるデータの大きさ等
は一般的VC異なる。
In addition, l-chip microco/pinter t”tlil
- architecture - and instruction system,
It is common to have multiple models with configurations most suitable for the field of application. These microcomputers having the same architecture and instruction system are said to constitute one family. Each model within a family may have, for example, a different amount of data memory, program memory, or a different number of human output ports, but the total number of instructions available for use also usually differs accordingly. It is. Further, even if the instruction operations and the total number of codes are not different, the size of data that can be written in the operand part of an instruction is different from the general VC.

このため、本来なればたとえ同一ファミリーの機種であ
っても、その評価装置は各機種ごとに準備されるべきで
ある。なぜならAという機種の命令数が50で%Bとい
う機種では47の場合、この両方を評価するための評価
装置は最低50の命令@:実行できなければならないが
、この評価装置でBという機種の評11[1i金行った
時に誤まってBに杵されておらずAKは許されている命
令を使用しても何ら異状なく動作してしまい、七の評価
結果は誤9たものとなるからである。
Therefore, an evaluation device should be prepared for each model even if the models are in the same family. This is because if the number of instructions for model A is 50 and the number of instructions for model B is 47, then an evaluation device to evaluate both of these must be able to execute at least 50 instructions. Comment 11 [1i] When I went to gold, B made a mistake and AK was not punched, and even if I used the allowed command, AK would still work without any problems, so the evaluation result of 7 would be incorrect. It is.

プログラム・メモリKROMt−使用する1チツプ・マ
イクロコンビエータでは特にこの種の評価ミスはそれを
使用するユーザーにとりで大きな損害をもたらす。なぜ
なら、1チツプ・マイクロコンピュータではROMti
半導体メーカーで書き込まれ、その上書き込んでからサ
ンプルが手元に届くまでに早くて1力月通常は2〜3力
月安するのが普通であるが、この種のミスは評価装置上
では。
Especially in a one-chip microcomviator using a program memory KROMt, this type of evaluation error can cause great damage to the user. This is because in a 1-chip microcomputer, ROMti
It is normal for the data to be written at the semiconductor manufacturer, and after it has been overwritten, to the time the sample is delivered to you, it will drop within one month or two or three months at the most, but this type of error occurs on the evaluation equipment.

正常に動作していても実際のチップでは動作しないので
、サンプル入手後更に再書き込みをしなければならない
ため、開発時期が最大3ケ月は遅れてしまうからである
Even if the chip is working normally, it will not work on the actual chip, so it will have to be rewritten after obtaining the sample, which will delay the development period by up to three months.

以上の様な欠点があるにもかかわらず、現状では主とし
て経済的理由により同一ファミリーのマイクロコンピュ
ータは1つの評価装置で評価される様になっているため
、上記の様な誤評価を完全になくす事は不可能であった
Despite the drawbacks mentioned above, currently microcomputers of the same family are evaluated by one evaluation device mainly for economic reasons, so it is possible to completely eliminate the above-mentioned erroneous evaluations. Things were impossible.

本発明は、評価装置にファミリー内の機種を選択する機
種選択手段を設け、評価装置にプログラムが読み込まれ
る際にそのプログラム内で使用されている命令が選択さ
れた機種に対して許されるか否かを判断し、もし、許さ
れない命令が読み込まれる様な場合には、その為を外部
に知らしめる手段を具備する事により、上記の様な誤評
価を未然に防ぐ事を目的とするものである。
The present invention provides an evaluation device with a model selection means for selecting a model within a family, and when a program is loaded into the evaluation device, it is determined whether instructions used in the program are allowed for the selected model. The purpose of this is to prevent the above-mentioned erroneous evaluations by providing a means to notify external parties if an unacceptable command is read. be.

本発明によるとマイクロコンピュータ・ファミリーの夫
々の機種の動作?エミュレートするエミユレータと、該
エミーV−夕が実行すべき命令を記憶するプログラム記
憶手段と、該プログラム記憶手段にプログラムをロード
するプログラム・ロード手段と、前記マイクロコンピュ
ータ・ファミリーの複数の@棟のうちの1つを選択する
機種選択手段と、前記プログラム・ロード手段によりロ
ードされるプログラムの中より前記機種選択手段により
選択された機種で使用できない命令を検出しその旨を出
力する手段とを有する事を特徴とするマイクロコンビエ
ータ評価装置が得られる。
How does each model of the microcomputer family operate according to the invention? An emulator for emulating, a program storage means for storing instructions to be executed by the Emmy V-Y, a program loading means for loading a program into the program storage means, and a plurality of @ buildings of the microcomputer family. and means for detecting an instruction that cannot be used on the model selected by the model selection means from among the programs loaded by the program loading means and outputting a message to that effect. A micro combinatorial evaluation device is obtained.

以下図面を参照して本発明の詳細な説明する。The present invention will be described in detail below with reference to the drawings.

@1図は本発明の一実施飼のブロック図で、図に於いて
1扛ホスト・プロセッサ、2はホスト・メモリ、3は紙
テープ・リーダ、4はコンソール、5〜8Viバツフア
、9はプログラム・メモリ、10けエミュレート、11
はRUN信号、12はAバス% 13はDバス、14は
A′パス、15はIバス、16け機種選択スイッチであ
るホストプロセッサ1は祇テープ・リーダ3やコンソー
ル4からのデータを入力する事ができ、また、コンソー
ル3Vこはデータを出力する事もできる。ホスト・メモ
リ2にはホスト・プロセッサ1が実行する命令(ホスト
・プログラム)21及びホスト・プロセッサlがそのf
ll’Fに置くエミユレータlOの各機種ごとの不法命
令テーブル22を格納して釣る。
Figure 1 is a block diagram of one implementation of the present invention, in which 1 is a host processor, 2 is a host memory, 3 is a paper tape reader, 4 is a console, 5 to 8 Vi buffers, and 9 is a program. Memory, 10 emulate, 11
is the RUN signal, 12 is the A bus%, 13 is the D bus, 14 is the A' path, 15 is the I bus, and the host processor 1, which is a 16-digit model selection switch, inputs data from the Gio tape reader 3 and the console 4. It is also possible to output data using the 3V console. The host memory 2 contains instructions (host program) 21 to be executed by the host processor 1 and the host processor l.
The illegal command table 22 for each model of emulator IO placed in ll'F is stored and retrieved.

また、ホスト・メモリ21j:、ホスト・プロセッサ1
のワーキング・エリアも確保されている。
Also, host memory 21j:, host processor 1
A working area is also secured.

ホスト・プロセッサlFi機種選択スイッチ16の内5
tl−a<み取る事により、エミユレータ10がマイク
ロコンピュータファミリーのどの機種をエミュレートす
べきかを判断する。エミユレータlOはホスト・プロセ
ッサlの出力するRUN信号11が高レベルの時A’バ
バス4に実行すべきプログラムのアドレス情報をバッフ
ァー7を介してプログラム・メモリ9に出力し、そのア
ドレスに対応する命令をバッファ8を介して命令バス1
5から読み@シその命令を実行する。バッファ7及び8
はRUN信号11が高レベルの時のみ導通状態とな、9
.RUN信号が低レベルの場合はそれらの出力は高イン
ピーダンス状態となる。
5 of 16 host processor IFi model selection switches
By determining tl-a<, the emulator 10 determines which model of the microcomputer family it should emulate. When the RUN signal 11 output from the host processor I is at a high level, the emulator lO outputs the address information of the program to be executed to the A' bus 4 to the program memory 9 via the buffer 7, and commands corresponding to the address. instruction bus 1 via buffer 8
Read from 5 and execute the command. Buffers 7 and 8
9 is conductive only when the RUN signal 11 is at a high level.
.. When the RUN signal is low, their outputs are in a high impedance state.

ホスト・プロセッサlはRUN信号11を低しベ〃にシ
る事によりエミュレ−(10の命令実行を停止し、かつ
、バッファー5及び6を介してプログラム・メモリ9の
内容を変更する事ができる。
By lowering the RUN signal 11 to the base, the host processor 1 can stop execution of the emulator 10 instructions and change the contents of the program memory 9 via buffers 5 and 6. .

バッファー5及び6はバッファー7及び8とは逆vcR
UN信号が低レベルの時に導週状蛭となり、尚レベルの
時に高インピーダンスとなる。
Buffers 5 and 6 are opposite vcR to buffers 7 and 8.
When the UN signal is at a low level, it becomes a conductive leech, and when it is still at a high level, it becomes a high impedance.

次に、本発明の目的であるところの指定された機種に許
されていない命令を検出する具体的な方法を第1図及び
@2図を参照しながら説明する。
Next, a specific method of detecting an instruction that is not allowed for a specified model, which is the object of the present invention, will be explained with reference to FIGS. 1 and 2.

第2図は、第1図のホスト・プロセッサlが実行すべき
プログラムのフローチャートである。
FIG. 2 is a flowchart of a program to be executed by the host processor l of FIG.

まず、ホスト・プロセッサlは横1選択スイッチ16の
内容を読み込み、その内容をホスト・メモリ2上にある
ワーキング・エリアの8WK格納する。そしてSWの内
容に対応する不法命令セット・テーブルの先頭番地をワ
ーキング・エリア内にあるテーブル・ボイ/り(TP)
K設定する。
First, the host processor l reads the contents of the horizontal 1 selection switch 16 and stores the contents in 8WK of the working area on the host memory 2. Then, the start address of the illegal instruction set table corresponding to the contents of SW is stored in the table port (TP) in the working area.
Set K.

次に、ホスト・プロセッサlは紙テープ・リーダ3から
1命令分のコード1kiIll!ミ込み、その内容をワ
ーキング・エリア上のlN5Tに格納し、そ(7)甲カ
ラオペレージ冒ン・コー)’(OPCODE)部を抽出
し、ワーキング・エリア上のMOPに格納する。続いて
、ホスト・プロセッサIUTPで指定された不法命令セ
ット・テーブルを索引し、MOPの内容と一致するもの
があるか調べるが、もし、一致するものがある場合は、
不法命令が入力された旨の出力をコンソール4に出力す
る。もし、一致するものがない場合は%lN5Tの内容
をプログラム・メモリ9へ格納し、再度紙テープリーダ
3からの命令の読み込みをくシ返す。
Next, the host processor l receives the code 1kiIll! for one instruction from the paper tape reader 3! The contents are stored in IN5T on the working area, and the (7) OPCODE part is extracted and stored in MOP on the working area. Next, the illegal instruction set table specified by the host processor IUTP is indexed to see if there is a match with the contents of the MOP, and if there is a match,
An output indicating that an illegal command has been input is output to the console 4. If there is no match, the contents of %lN5T are stored in the program memory 9, and reading of the command from the paper tape reader 3 is resumed.

以上説明した様に本発明によれば、使用が許さ5 れない命令がプログラム・メモリにロードされ伊とした
場合ロードする直前で検出する事ができるため、誤った
命令を使用しているマイクロコンビ具−夕を誤って正し
く評価する事はなくなり、そのため前述した様な開発時
期が遅れるという様な問題はなくなり、期待した通りの
時期に開発が完了する。また、同一の評価vIcltで
機種選択スイッチを切り換えるだけですべての機種の評
価ができるため経済的でもある。
As explained above, according to the present invention, if an instruction that is not allowed to be used is loaded into the program memory, it can be detected immediately before it is loaded. It is no longer possible to incorrectly evaluate the equipment correctly, and therefore the problem of delays in development time as described above is eliminated, and development is completed at the expected time. It is also economical because all models can be evaluated by simply switching the model selection switch using the same evaluation vIclt.

なお、上記の実施例では、ホスト・メモリ2には不法命
令セット・テーブルを採用しているが、これは不法命令
の数の方が合致命令の数より一般的には少な−ために採
用したまでで、不法命令セット・テーブルの代りに合法
命令セット・テーブルを設けて、読み込んだ命令のオペ
レージW/・コードと一致するものが合法命令セット・
テーブル内にな一場合に不法命令が入力された旨を外部
に知らしめてもよい。
In the above embodiment, an illegal instruction set table is used in the host memory 2, but this is because the number of illegal instructions is generally smaller than the number of matching instructions. In the above, a legal instruction set table is provided instead of an illegal instruction set table, and the one that matches the operating W/ code of the read instruction is considered a legal instruction set.
It may be possible to inform the outside that an illegal command has been input in the table.

また、機種選択手段として、上記の実m列では機種選択
スイッチを採用しているが、これ祉命令がパンチされて
いる紙テープの最初の部分に機種識別コードをパンチし
ておきホスト・プロセッサが紙テープを最初に読み込む
時に機種を認識する方法をとっても何らさしつかえない
In addition, as a model selection means, a model selection switch is used in the actual m column above, but for this purpose, a model identification code is punched at the beginning of the paper tape where the instructions are punched, and the host processor There is nothing wrong with a method that recognizes the model when you first load it.

また、オペレージ11ノ・コードだけでは合法か不法か
の判断がつかない命令がある場合は、不法(または合法
)命令テーブルにオペランドの取るべき範囲等の情報を
も記憶させる事により検出できる事は1善果者であれば
容易に理解で色るところである。
Additionally, if there is an instruction that cannot be determined to be legal or illegal based on the Operation 11 code alone, it can be detected by storing information such as the range of operands in the illegal (or legal) instruction table. If you are a good person, you will easily understand this.

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

第1図は本発明の一実施例を示すブロック図。 第2図は第1図のホスト・プロセッサ2が実行すべきプ
ログラムを表わしたフロー図である。 l・・・・・・ホスト・プロセッサ、2・・・・・・ホ
スト・メモリ、3・・−・−・紙テープ・リーダ% 4
・・・・・・′3/ソール、5〜8−*−/<ソファ、
9・・・・・・プログラム・メモリ、10・・・・・・
エミユレータ、11・・・・・・RUN信号、12・・
・・・・Aバス%13・・・・−、Dバス、14・・・
・・・AIババス15・−・・・・Iバス、16・・・
・・・機種選択スイッチ。
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a flow diagram showing a program to be executed by the host processor 2 of FIG. l...Host processor, 2...Host memory, 3...--Paper tape reader% 4
...'3/sole, 5~8-*-/<sofa,
9...Program memory, 10...
Emulator, 11...RUN signal, 12...
...A bus%13...-, D bus, 14...
...AI Babasu 15...I Bus, 16...
...Model selection switch.

Claims (1)

【特許請求の範囲】[Claims] マイクロコンピュータ・ファミリーの夫々の機種の動作
をエミュレートするエミュレータと、該エミユレータが
実行すべき命令を記憶するプログラム記憶手段と、該プ
ログラム記憶手段にプログラム全ロードするプログラム
・ロード手段と、前記マイクロコンピュータ・ファミリ
ーの複数の機種のうちの1)を選択する機種選択手段と
、前記プログラム・ロード手段によりロードされるプロ
グラムの中より前記機種選択手段により]!!I択され
た機種で使用できない命令を検出しその旨を出力する手
段とを有する事を特徴とするマイクロコンビエータ評価
装置。
an emulator that emulates the operation of each model of the microcomputer family; a program storage means that stores instructions to be executed by the emulator; a program load means that loads the entire program into the program storage means; and the microcomputer. - a model selection means for selecting one of the plurality of models in the family; and a model selection means from among the programs loaded by the program loading means]! ! A micro combinatorial evaluation device characterized by having means for detecting an instruction that cannot be used in a selected model and outputting a message to that effect.
JP56135278A 1981-08-27 1981-08-27 Appreciating device for microcomputer Granted JPS5835647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56135278A JPS5835647A (en) 1981-08-27 1981-08-27 Appreciating device for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56135278A JPS5835647A (en) 1981-08-27 1981-08-27 Appreciating device for microcomputer

Publications (2)

Publication Number Publication Date
JPS5835647A true JPS5835647A (en) 1983-03-02
JPH0147811B2 JPH0147811B2 (en) 1989-10-17

Family

ID=15147965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56135278A Granted JPS5835647A (en) 1981-08-27 1981-08-27 Appreciating device for microcomputer

Country Status (1)

Country Link
JP (1) JPS5835647A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60187963U (en) * 1984-05-22 1985-12-12 日本電気株式会社 Emulation device
JPS6318027U (en) * 1986-07-19 1988-02-05
JPH01307837A (en) * 1988-06-06 1989-12-12 Fuji Xerox Co Ltd Mpu simulation method and mpu simulator

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS553093A (en) * 1978-06-23 1980-01-10 Nec Corp Integrated circuit for development of computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS553093A (en) * 1978-06-23 1980-01-10 Nec Corp Integrated circuit for development of computer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60187963U (en) * 1984-05-22 1985-12-12 日本電気株式会社 Emulation device
JPS6318027U (en) * 1986-07-19 1988-02-05
JPH0547563Y2 (en) * 1986-07-19 1993-12-15
JPH01307837A (en) * 1988-06-06 1989-12-12 Fuji Xerox Co Ltd Mpu simulation method and mpu simulator

Also Published As

Publication number Publication date
JPH0147811B2 (en) 1989-10-17

Similar Documents

Publication Publication Date Title
US4633417A (en) Emulator for non-fixed instruction set VLSI devices
JPH0447856B2 (en)
JPH1078889A (en) Microcomputer
JPS5835647A (en) Appreciating device for microcomputer
JP2918019B2 (en) Test circuit for single-chip microprocessor
AU714669B2 (en) Peripheral device control
US20020004877A1 (en) Method and system for updating user memory in emulator systems
JPH0550016B2 (en)
JP3214413B2 (en) emulator
JPS5835287B2 (en) computing device
AU540728B2 (en) Stack for a data processor
KR0162763B1 (en) Apparatus and method for implementing the configuration space of a pci device using mux
JPS63291135A (en) Microcomputer developing device
JPH09245132A (en) Memory card
JPS60112148A (en) Memory device
JPS6336327A (en) Sequence display device
JPS6239450B2 (en)
JPS6329852A (en) Developing device for microcomputer applied apparatus
JPH03282632A (en) Static data recording mechanism
JPS62256138A (en) Data processor
JPH06175875A (en) In-circuit emulator
JPS645342B2 (en)
JPS59163654A (en) Debug device
JPS6091454A (en) Integrated circuit
JPS5960657A (en) Device for analyzing execution bus