JPS60254334A - Simulator device for program of microcomputer - Google Patents

Simulator device for program of microcomputer

Info

Publication number
JPS60254334A
JPS60254334A JP59111314A JP11131484A JPS60254334A JP S60254334 A JPS60254334 A JP S60254334A JP 59111314 A JP59111314 A JP 59111314A JP 11131484 A JP11131484 A JP 11131484A JP S60254334 A JPS60254334 A JP S60254334A
Authority
JP
Japan
Prior art keywords
microcomputer
program
program part
instruction
control circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP59111314A
Other languages
Japanese (ja)
Inventor
Hiroshi Sugaya
菅谷 宏
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 JP59111314A priority Critical patent/JPS60254334A/en
Publication of JPS60254334A publication Critical patent/JPS60254334A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation

Abstract

PURPOSE:To reduce the correction of a program even if the kind of a microcomputer (MC) to be simulated by using an MC of hardware for a simulator device. CONSTITUTION:To simulate an MC6'-1, a control program in a control program part 3 sets various simulated conditions in an input port program part and a memory program part 4. The control program part 3 reads out an instruction from a memory program part 4 in accordance with an address signal outputted from the MC6'-1, applies it to the MC6'-1 through a control circuit 6'-2, executes one instruction through a control circuit 6'-3, and reads out the executed state of the output port of the MC6'-1 through the control circuit 6'-2 to execute simulation. If the instruction to be executed is an input instruction, the corresponding input data is read out from an input port program part 5 and applied to the MC6'-1.

Description

【発明の詳細な説明】 (1)産業上の利用分野 本発明はマイクロコンピュータのプログラムを検査する
ときに使用するプログラム開発支援装置の1つであるシ
ミーレータ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Field of Industrial Application The present invention relates to a simulator device, which is one of the program development support devices used when testing microcomputer programs.

(2)従来技術 従来のマイクロコンピュータのシミュレータは、第2図
に示されるように、プログラム開発支援装置1とコンソ
ール2との対話処理によりメモリ・プログラム部4への
プログラムの読み込み、入力ポードブログラム部5を用
いたシミュレーション特に入力ボートから読み込まれる
一連の入力データの編集、コントロールプログラム部3
を用いたシミュレーション結果の出力及びシミュレータ
全体の統轄、CPUプログラム部6を用いたCPUの制
御等を行なっている。シミュレーション’tする為に、
コントロール・プログラムの処理により、シミュレーシ
ョンする為の全ての条件を整えCから、メ・′モリ・プ
ログラム部4にあるプログラムを一命4ずつ読み出し、
CPU・プログラムで実行させます。CPU・プログラ
ム部4は必要に応じ、入力ボート・プログラム部5から
データの引き渡しをうけます。
(2) Prior Art As shown in FIG. 2, a conventional microcomputer simulator reads a program into a memory program unit 4 through interactive processing between a program development support device 1 and a console 2, and inputs an input port program. Simulation using part 5, especially editing a series of input data read from the input boat, control program part 3
It outputs simulation results using the simulator, supervises the entire simulator, and controls the CPU using the CPU program section 6. In order to simulate
Through the processing of the control program, all conditions for simulation are completed, and from C, the programs in the memory program section 4 are read out 4 at a time.
Execute it using the CPU/program. The CPU/program section 4 receives data from the input port/program section 5 as necessary.

全ての処理がプログラムで構成されている為、シミュレ
ーションの実行時間が遅くなります。更にシミュレーシ
ョンすべきマイクロコンピュータの機能がかわるたびに
、CPU−プログラム部の記述をかえる必要があります
Since all processing is done by programs, the simulation execution time will be slow. Furthermore, each time the function of the microcomputer to be simulated changes, the description of the CPU program section must be changed.

(3)発明が解決しようとする問題点 本発明の目的は、短時間でシミュレーションができ、シ
ミュレーションすべきマイクロコンピュータの機種が変
ってもプログラムの訂正が少なくてすむマイクロコンピ
ュータのプログラムのシュミレータ装置を得る。
(3) Problems to be Solved by the Invention An object of the present invention is to provide a microcomputer program simulator device that can perform simulations in a short time and that requires fewer program corrections even if the model of the microcomputer to be simulated changes. obtain.

(4)問題点を解決するための手段 本発明によれば、マイクロコンピュータの機能をプログ
ラム記述によるCPU・プログラム部のかわりに、ハー
ドウェアのマイクロコンピュータでおきかえることによ
り、プログラムによる記述を不要とし、かつシミーレー
シヨンの実行速度の向上をはかったマイクロコンピーー
タのプログラムのシミーレージ、ン装置を得ル。
(4) Means for Solving the Problems According to the present invention, the function of the microcomputer is replaced by a hardware microcomputer instead of the CPU/program section written by a program, thereby eliminating the need for writing a program. In addition, we obtained a shimmy system for microcomputer programs designed to improve shimmy execution speed.

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

第1図は本発明の一実施例であり、従来プログラムで記
述していたCPU・プログラム部6をハードウェアで構
成したシミュレータ用のマイクロコンビーータ・カード
6′でおきかえている。
FIG. 1 shows an embodiment of the present invention, in which the CPU/program unit 6, which was conventionally written as a program, is replaced with a microconverter card 6' for a simulator configured with hardware.

マイクロコンピュータ・カード6′は、シミュレーショ
ンスヘキマイクロコンピュータ6’−1、マイクロコン
ピュータ6′−1とプログラム開発支援装置間の信号の
受授をする為の制御回%6’−2、マイクロコンピー−
タロ′−1に命令を実行させる為の制御回路6′−3か
ら構成されている。
The microcomputer card 6' includes a simulation microcomputer 6'-1, a control circuit 6'-2 for receiving and receiving signals between the microcomputer 6'-1 and the program development support device, and a microcomputer 6'-2.
It consists of a control circuit 6'-3 for causing Taro'-1 to execute instructions.

マイクロコンピュータ6′−1をシミュレーションする
為に、コントロールプログラム部3のコントロールプロ
グラムはシミュレーションの諸*件を入カポードブログ
ラム部5.メモリプログラム部4に設定します。
In order to simulate the microcomputer 6'-1, the control program in the control program section 3 inputs various simulation items to the program section 5. Set in memory program section 4.

マイクロコンピー−タロ′−1から出力されているアド
レス信号に応じて、コントロールプログラム部3は、メ
モリプログラム部4から、命令を読み出し、制御回路6
′−2を介してマイクロコンピー−タロ′−1に与え、
かつ制御回路6′−3を介して、1命令を実行させ、実
行後のマイクロコンピュータ61−1の出力ポートの状
態を制御回路6乙2を介して読みとることによりシミュ
レーションを実行させていきます。実行する命令が入力
命令である場合には、入力ポードブログラム部5から該
当する入力データを読み出し、マイクロコンピュータ6
′−1に入力テークを与えます。更にマイクロコンピュ
ータ6′−1の内部レジスタを掃きだすルーチンを実行
させることにより、内部レジスタの流れを追いかけるこ
とが可能になります。
In response to the address signal output from the microcomputer 1, the control program section 3 reads out instructions from the memory program section 4, and reads out instructions from the control circuit 6.
'-2 to Microcomputer Taro'-1;
The simulation is executed by executing one instruction via the control circuit 6'-3 and reading the status of the output port of the microcomputer 61-1 after execution via the control circuit 6'-2. If the instruction to be executed is an input instruction, the corresponding input data is read from the input port program section 5 and is sent to the microcomputer 6.
Give the input take to '-1. Furthermore, by executing a routine that sweeps out the internal registers of the microcomputer 6'-1, it becomes possible to follow the flow of internal registers.

本シミュレータ装置において、マイクロコンピュータ−
カード6′だけが、マイクロコンピュータの固有なハー
ドウェアであり、マイクロコンピュータ・カード6′を
とりかえることによシ、別のマイクロコンピュータのシ
ミュレータが実現できます0 (6)発明の詳細 な説明したように、本発明によるシミュレータ装置に、
ハードウェアのマイクロコンビーータを使用することに
より、シミュレータ装置でマイクロコンピュータに固有
な部分と固有でない部分を明確に分離することが可能に
なります。
In this simulator device, the microcomputer
The card 6' is the only hardware specific to the microcomputer, and by replacing the microcomputer card 6', a different microcomputer simulator can be realized.0 (6) Detailed explanation of the invention As such, in the simulator device according to the present invention,
By using a hardware microcomputer, it is possible to clearly separate the parts that are specific to the microcomputer from those that are not specific to the microcomputer in the simulator equipment.

固有な部分はノ・−ドウエアのマイクロコンピ−タで構
成され、固有でない部分はシミーレータit上のプログ
ラムで構成されることになります。
The unique part will be made up of a hardware microcomputer, and the non-unique part will be made up of a program on the simulator IT.

従って新りなマイクロコンピュータのシミュレータ装置
を開発するときは、固有な部分であるマイクロコンビー
ータ・カードだけを開発することですむという利点と、
命令の解読、実行がノ・−ドウエアで構成されている為
、シミュレーションの速度向上という利点があります。
Therefore, when developing a new microcomputer simulator device, there is an advantage that only the unique part, the microcomputer card, needs to be developed.
Since the decoding and execution of instructions is made up of hardware, it has the advantage of speeding up simulation.

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

第1図は本発明の一実施例によるシミュレータ装置のブ
ロックダイヤグラム、第2図は従来のシミュレータ装置
のブロックダイヤグラムである。 1・・・・・・プログラム開発支援装置、2・・°°°
°コンン−ル、3・・・・・・シミュレータの入力デー
タ及び全体を統轄する為のコントロール・プログラム、
4・・・マイクロコンピュータのメモリを格納する為の
メモリ・プログラム、5°°°°°゛マイクロコンピユ
ータの入力ポートの一連のデータを格納する為の入力ポ
ート・プログラム、6・・・・・・マイクロコンピュー
タの機能をプログラムで記述したC P U・プログ7
 A s 5’・・・・・・ハードウェアで構成したシ
ミーレータ用のマイクロコンピータ・カード、6’−1
・・・ハードウェアのマイクロコンピュータ、6’−2
・・・・・・ハードウェアのマイクロコンピュータ6′
−1とプログラム開発支援装置がコミュニケートする為
の制御回路、6’−3・・・・・・ハードウェアのマイ
クC117ンヒーータ6′−1に命令を実行させる為の
制御回路。 筋2図
FIG. 1 is a block diagram of a simulator device according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional simulator device. 1...Program development support device, 2...°°°
°Control, 3...A control program for controlling input data and the entire simulator,
4...Memory program for storing the memory of the microcomputer, 5°°°°°゛Input port program for storing a series of data of the input port of the microcomputer, 6... CPU program 7 is a program that describes the functions of a microcomputer.
A s 5'...Microcomputer card for simulator configured with hardware, 6'-1
...Hardware microcomputer, 6'-2
...Hardware microcomputer 6'
-1 and a control circuit for communicating with the program development support device, 6'-3... Control circuit for causing the hardware microphone C117 and heater 6'-1 to execute instructions. muscle diagram 2

Claims (1)

【特許請求の範囲】[Claims] マイクロコンピュータのプログラムのシュミレータ装置
において、マイクロコンピュータに入力するための諸条
件記憶するプログラムを備え、シミュレーション特に、
前記マイクロコンピュータを付加することによって、該
マイクロコンピュータの出力信号に応じた入力信号及び
制御信号を該マイクロコンピュータに与えることにより
、命令を実行させることを特徴とするマイクロコンピュ
ータのプログラムのシミュレータ装置。
A microcomputer program simulator device is equipped with a program that stores various conditions to be input to the microcomputer, and is especially suitable for simulation.
A simulator device for a program of a microcomputer, characterized in that by adding the microcomputer, instructions are executed by giving the microcomputer an input signal and a control signal according to an output signal of the microcomputer.
JP59111314A 1984-05-31 1984-05-31 Simulator device for program of microcomputer Pending JPS60254334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59111314A JPS60254334A (en) 1984-05-31 1984-05-31 Simulator device for program of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59111314A JPS60254334A (en) 1984-05-31 1984-05-31 Simulator device for program of microcomputer

Publications (1)

Publication Number Publication Date
JPS60254334A true JPS60254334A (en) 1985-12-16

Family

ID=14558079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59111314A Pending JPS60254334A (en) 1984-05-31 1984-05-31 Simulator device for program of microcomputer

Country Status (1)

Country Link
JP (1) JPS60254334A (en)

Similar Documents

Publication Publication Date Title
JPS61202269A (en) Data processing system
JPH0533423B2 (en)
US5438673A (en) Automatic interface for CPU real machine and logic simulator diagnostics
KR920003044B1 (en) Control system for guest execution of virtual computer system
JPS60254334A (en) Simulator device for program of microcomputer
JPH07253909A (en) Microprogram verifying method
JP2575025B2 (en) In-circuit emulator
JP2674873B2 (en) Step execution operation method of program development support device
JPH0652013A (en) Tracing circuit
JPH02281341A (en) Write data confirming method for debugging
JPS61290546A (en) Tracing system for microprogram controller
JPH0353321A (en) Information processor
JPH04333171A (en) Device for simulation
JPH03129532A (en) Microsequence circuit
JPS61253503A (en) Sequence controller
JPH03260871A (en) Logic simulator
JPS63153637A (en) Data processor
JPS6352237A (en) Arithmetic system
JPH0444174A (en) Simulation method
JPH05100901A (en) Microcomputer
JPH0566961A (en) Software debug system for information processor
JPH02309428A (en) Logical simulator
JPH0373011B2 (en)
JPS59116856A (en) Processing system for microprogram control data
JPH02294864A (en) Multi-processor system simulation system