JP2001216178A - Simulation apparatus, simulation method, and storage medium storing simulation program - Google Patents
Simulation apparatus, simulation method, and storage medium storing simulation programInfo
- Publication number
- JP2001216178A JP2001216178A JP2000028377A JP2000028377A JP2001216178A JP 2001216178 A JP2001216178 A JP 2001216178A JP 2000028377 A JP2000028377 A JP 2000028377A JP 2000028377 A JP2000028377 A JP 2000028377A JP 2001216178 A JP2001216178 A JP 2001216178A
- Authority
- JP
- Japan
- Prior art keywords
- simulation
- file
- peripheral device
- component
- target system
- 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.)
- Withdrawn
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 74
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000002093 peripheral effect Effects 0.000 claims abstract description 152
- 230000004044 response Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 239000013256 coordination polymer Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
(57)【要約】
【課題】 ターゲットシステムを構成するコンポーネン
トの変更または/およびターゲットシステムの周辺装置
の変更に対応可能であるシミュレータ装置およびシミュ
レーション方法ならびにシミュレーションプログラムを
記憶した記憶媒体を提供することを課題とする。
【解決手段】 電子計算機内でシミュレーションプログ
ラムを実行し、ターゲットシステム上で動作するアプリ
ケーションプログラムをシミュレーションするシミュレ
ーション装置1において、ターゲットシステムを構成す
るコンポーネント11,12,13,14,15または
/およびターゲットシステムに接続される周辺装置20
を変更する変更手段10aを備えることを特徴とする。
[PROBLEMS] To provide a simulator device, a simulation method, and a storage medium storing a simulation program which are capable of responding to a change of a component constituting a target system and / or a change of a peripheral device of the target system. Make it an issue. SOLUTION: In a simulation apparatus 1 for executing a simulation program in an electronic computer and simulating an application program operating on a target system, components 11, 12, 13, 14, 15, and / or a target system constituting the target system are provided. Peripheral device 20 connected to
And a changing means 10a for changing
Description
【0001】[0001]
【発明の属する技術分野】本発明は、電子計算機内でシ
ミュレーションプログラムを実行し、マイクロコンピュ
ータ(以下、マイコンと記載する)等のターゲットシス
テム上で動作するアプリケーションプログラムをシミュ
レーションするシミュレーション装置およびシミュレー
ション方法ならびにシミュレーションプログラムを記憶
した記憶媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a simulation apparatus and a simulation method for executing a simulation program in an electronic computer to simulate an application program operating on a target system such as a microcomputer. The present invention relates to a storage medium storing a simulation program.
【0002】[0002]
【従来の技術】近年、マイコンは、家電製品等の様々な
装置に組み込まれ、広く利用されている。マイコンは、
組み込み先の装置の仕様や周辺装置等に対応して動作す
るために、アプリケーションプログラムが内蔵ROM
[Read Only Memory]に書き込まれて
いる。そのため、マイコンの開発では、ハードウエアの
開発とともに、アプリケーションプログラムの開発も重
要となる。アプリケーションプログラムの開発には、イ
ンサーキットエミュレータやシミュレータ等が利用され
ている。インサーキットエミュレータの場合、ターゲッ
トボードが完成するまで使用できない、さらにターゲッ
トとなるマイコンの動作と機能的に差があるため、動作
確認において実際のマイコンでの動作と差を生じる。そ
こで、ハードウエアの開発に関係なく、さらにマイコン
の仕様に対応して動作するシミュレータが有効な手段と
して利用されている。シミュレータは、パーソナルコン
ピュータ(以下、パソコンと記載する)等の電子計算機
内で、ターゲットとなるマイコンにおけるCPU[Ce
ntral Processing Unit]やRO
M等のコンポーネントおよび周辺装置の各機能ならびに
マイコンに対する入出力をシミュレーションする。そし
て、シミュレータは、電子計算機のディスク装置等を介
してアプリケーションプログラムが入力されると、ター
ゲットとなるマイコン上で動作しているのと等価な環境
でアプリケーションプログラムによる動作をシミュレー
ションする。2. Description of the Related Art In recent years, microcomputers have been incorporated into various devices such as home electric appliances and are widely used. The microcomputer is
In order to operate according to the specifications of the target device and peripheral devices, etc.
It is written in [Read Only Memory]. Therefore, in the development of microcomputers, the development of application programs is also important, along with the development of hardware. An in-circuit emulator, a simulator, and the like are used to develop an application program. In the case of an in-circuit emulator, it cannot be used until the target board is completed, and there is a functional difference from the operation of the target microcomputer. Therefore, a simulator that operates according to the specifications of the microcomputer regardless of the development of the hardware is used as an effective means. The simulator is a CPU [CeC] of a target microcomputer in an electronic computer such as a personal computer (hereinafter referred to as a personal computer).
ntral Processing Unit] and RO
Simulate the functions of components such as M and peripheral devices and input / output to / from the microcomputer. Then, when the application program is input through a disk device or the like of the electronic computer, the simulator simulates the operation of the application program in an environment equivalent to operating on the target microcomputer.
【0003】図6に、従来のシミュレータの構成につい
て説明する。シミュレータ50は、ディスク装置DUか
らパソコンPC内にシミュレーションプログラムが読み
込まれ、さらに図示しないRAM[Random Ac
cess Memory]にシミュレーションプログラ
ムがロードされ、そして実行されてシミュレーションを
行う。シミュレータ50は、開発するマイコンの仕様に
対応して、マイコンを構成するコンポーネントであるC
PU50a、ROM50b、RAM50c、LCD[L
iquid Crystal Display]50d
やI/Oポート50e等およびマイコンの外部に接続さ
れる周辺装置である外付けLCD50f等の全ての動作
をシミュレーションする。そのため、シミュレーション
プログラムは、マイコンの全コンポーネントおよび全周
辺装置の動作をシミュレーションするために、全コンポ
ーネントおよび全周辺装置のシミュレーションプログラ
ムを一体で構成した実行プログラムとして作成される。
なお、シミュレーションプログラムは、1つのファイル
として記憶媒体に記憶され、パソコンPCに接続される
ディスク装置DUから読み込まれる。FIG. 6 shows a configuration of a conventional simulator. In the simulator 50, a simulation program is read from the disk device DU into the personal computer PC, and a RAM [Random Ac] (not shown) is read.
[Session Memory] is loaded and executed to perform a simulation. The simulator 50 is a component that constitutes the microcomputer, corresponding to the specification of the microcomputer to be developed.
PU 50a, ROM 50b, RAM 50c, LCD [L
liquid Crystal Display] 50d
All the operations of the external LCD 50f, which is a peripheral device connected to the microcomputer and the I / O port 50e and the outside of the microcomputer, are simulated. Therefore, the simulation program is created as an execution program integrally configured with the simulation program for all components and all peripheral devices in order to simulate the operation of all components and all peripheral devices of the microcomputer.
The simulation program is stored in the storage medium as one file, and is read from the disk device DU connected to the personal computer PC.
【0004】[0004]
【発明が解決しようとする課題】マイコンの開発では、
アプリケーションプログラムの開発と並行してハードウ
エアの開発も行なわれる。ハードウエアを開発していく
過程で、マイコンのコンポーネントの仕様や設定等の変
更または周辺装置の変更等の様々なハードウエアの変更
が発生する。そのため、シミュレータ50でマイコン上
で動作しているのと等価な環境でアプリケーションプロ
グラムによる動作をシミュレーションするためには、マ
イコンのハードウエアの変更に対応してシミュレータ5
0も変更しなければならない。しかし、シミュレータ5
0は、マイコンの全てのコンポーネントと全ての周辺装
置のシミュレーションプログラムが一体となったシミュ
レーションプログラムによって動作する。そのため、1
つのコンポーネントの変更、追加や削除または1つの周
辺装置の変更、追加や削除でも、シミュレーションプロ
グラムを新たに作成しなければならない。その結果、シ
ミュレータ50を再構築するまで長期間要するため、ア
プリケーションプログラムの開発工数が増加する。ま
た、マイコンの仕様が一部異なるシミュレータを構築す
る場合、新たにシミュレーションプログラムを作成しな
ければならないので、汎用性に乏しい。In the development of a microcomputer,
Hardware development is also performed in parallel with application program development. In the course of developing hardware, various hardware changes occur, such as changes in the specifications and settings of the components of the microcomputer or changes in peripheral devices. Therefore, in order to simulate the operation of the application program in an environment equivalent to that operating on the microcomputer with the simulator 50, the simulator 5 needs to respond to changes in the hardware of the microcomputer.
0 must also be changed. However, simulator 5
0 is operated by a simulation program in which simulation programs for all components of the microcomputer and all peripheral devices are integrated. Therefore, 1
Even if one component is changed, added or deleted, or one peripheral device is changed, added or deleted, a new simulation program must be created. As a result, since it takes a long time to reconstruct the simulator 50, the number of steps for developing the application program increases. In addition, when a simulator having a partly different microcomputer specification is constructed, a new simulation program must be created, which is poor in versatility.
【0005】そこで、本発明の課題は、ターゲットシス
テムを構成するコンポーネントの変更または/およびタ
ーゲットシステムの周辺装置の変更に対応可能であるシ
ミュレータ装置およびシミュレーション方法ならびにシ
ミュレーションプログラムを記憶した記憶媒体を提供す
ることである。Accordingly, an object of the present invention is to provide a simulator device, a simulation method, and a storage medium storing a simulation program, which are capable of responding to a change in components constituting the target system and / or a change in peripheral devices of the target system. That is.
【0006】[0006]
【課題を解決するための手段】前記課題を解決した本発
明に係るシミュレーション装置は、電子計算機内でシミ
ュレーションプログラムを実行し、ターゲットシステム
上で動作するアプリケーションプログラムをシミュレー
ションするシミュレーション装置において、前記ターゲ
ットシステムを構成するコンポーネントまたは/および
前記ターゲットシステムに接続される周辺装置を変更す
る変更手段を備えることを特徴とする。According to the present invention, there is provided a simulation apparatus for executing a simulation program in an electronic computer to simulate an application program operating on a target system. And / or changing means for changing peripheral components connected to the target system.
【0007】このシミュレーション装置によれば、ター
ゲットシステムのコンポーネントまたは/および周辺装
置に変更がある場合には、変更手段によってそのコンポ
ーネントまたは/および周辺装置のみ変更することがで
きる。そのため、ターゲットシステムの一部を変更した
シミュレーション装置を再構築する場合、シミュレーシ
ョンプログラム全体を作り直す必要がない。According to this simulation apparatus, when there is a change in a component or / and peripheral device of the target system, only the component or / and peripheral device can be changed by the change unit. Therefore, when rebuilding a simulation device in which a part of the target system is changed, it is not necessary to recreate the entire simulation program.
【0008】さらに、前記シミュレーション装置におい
て、前記シミュレーションプログラムは、シミュレーシ
ョン装置本体ファイルと、前記ターゲットシステムを構
成する各コンポーネントに分割された各コンポーネント
ファイルと、前記ターゲットシステムに周辺装置が接続
される場合には各周辺装置に分割された各周辺装置ファ
イルと、前記各コンポーネントファイルまたは/および
前記各周辺装置ファイルの構成を定義した定義ファイル
とに分割され、前記変更手段は、前記定義ファイルに基
づいて前記コンポーネントまたは/および前記周辺装置
を変更することを特徴とする。Further, in the simulation device, the simulation program may include a simulation device main body file, component files divided into components constituting the target system, and a peripheral device connected to the target system. Is divided into each peripheral device file divided into each peripheral device, and a definition file defining the configuration of each of the component files and / or each of the peripheral device files. It is characterized by changing components or / and the peripheral devices.
【0009】このシミュレーション装置によれば、変更
するコンポーネントのコンポーネントファイルまたは/
および変更する周辺装置の周辺装置ファイルの変更と定
義ファイルの変更のみで、簡単に、ターゲットシステム
の変更に対応して、シミュレーション装置を再構築する
ことができる。According to this simulation device, the component file of the component to be changed or /
By simply changing the peripheral device file and the definition file of the peripheral device to be changed, the simulation device can be easily rebuilt in response to the change of the target system.
【0010】前記課題を解決した本発明に係るシミュレ
ーション方法によれば、電子計算機内でシミュレーショ
ンプログラムを実行し、ターゲットシステム上で動作す
るアプリケーションプログラムをシミュレーションする
シミュレーション方法において、前記ターゲットシステ
ムを構成するコンポーネントまたは/および前記ターゲ
ットシステムに接続される周辺装置を変更する変更工程
を含むことを特徴とする。According to the simulation method of the present invention which solves the above problems, in a simulation method of executing a simulation program in an electronic computer and simulating an application program operating on a target system, a component constituting the target system is provided. And / or a changing step of changing a peripheral device connected to the target system.
【0011】このシミュレーション方法によれば、ター
ゲットシステムのコンポーネントまたは/および周辺装
置に変更がある場合には、変更工程においてそのコンポ
ーネントまたは/および周辺装置のみ変更することがで
きる。そのため、ターゲットシステムの一部を変更した
シミュレーションを行うために、シミュレーションプロ
グラム全体を作り直す必要がない。According to this simulation method, when a component or / and peripheral device of the target system is changed, only the component or / and peripheral device can be changed in the changing step. Therefore, there is no need to recreate the entire simulation program in order to perform a simulation in which a part of the target system is changed.
【0012】さらに、前記シミュレーション方法におい
て、前記シミュレーションプログラムは、シミュレーシ
ョン装置本体ファイルと、前記ターゲットシステムを構
成する各コンポーネントに分割された各コンポーネント
ファイルと、前記ターゲットシステムに周辺装置が接続
される場合には各周辺装置に分割された各周辺装置ファ
イルと、前記各コンポーネントファイルまたは/および
前記各周辺装置ファイルの構成を定義した定義ファイル
とに分割され、前記変更工程において、前記定義ファイ
ルに基づいて前記コンポーネントまたは/および前記周
辺装置を変更することを特徴とする。Further, in the simulation method, the simulation program may include a simulation device main body file, component files divided into components constituting the target system, and a peripheral device connected to the target system. Is divided into each peripheral device file divided into each peripheral device and a definition file defining the configuration of each of the component files and / or each of the peripheral device files, and in the changing step, based on the definition file, It is characterized by changing components or / and the peripheral devices.
【0013】このシミュレーション方法によれば、変更
するコンポーネントのコンポーネントファイルまたは/
および変更する周辺装置の周辺装置ファイルの変更と定
義ファイルの変更のみで、簡単に、ターゲットシステム
の変更に対応して、シミュレーションを行うことができ
る。According to this simulation method, the component file of the component to be changed or /
By simply changing the peripheral device file and the definition file of the peripheral device to be changed, the simulation can be easily performed in response to the change of the target system.
【0014】前記課題を解決した本発明に係るシミュレ
ーションプログラムを記憶した記憶媒体によれば、電子
計算機内でシミュレーションプログラムを実行し、ター
ゲットシステム上で動作するアプリケーションプログラ
ムをシミュレーションするための前記シミュレーション
プログラムを記憶した記憶媒体において、前記シミュレ
ーションプログラムは、前記ターゲットシステムを構成
するコンポーネントまたは/および前記ターゲットシス
テムに接続される周辺装置を変更可能なことを特徴とす
る。According to the storage medium storing the simulation program according to the present invention which solves the above problems, the simulation program for executing the simulation program in the electronic computer and simulating the application program operating on the target system is provided. In the stored storage medium, the simulation program can change components constituting the target system and / or peripheral devices connected to the target system.
【0015】このシミュレーションプログラムを記憶し
た記憶媒体によれば、電子計算機上でこのシミュレーシ
ョンプログラムを動作させることによって、ターゲット
システムのコンポーネントまたは/および周辺装置に変
更がある場合には、そのコンポーネントまたは/および
周辺装置のみ変更することができる。そのため、ターゲ
ットシステムの一部を変更したシミュレーション装置を
再構築するために、シミュレーションプログラム全体を
作り直す必要がない。According to the storage medium storing the simulation program, when the components or / and peripheral devices of the target system are changed by operating the simulation program on an electronic computer, the components or / and / or peripheral devices are changed. Only peripheral devices can be changed. Therefore, there is no need to recreate the entire simulation program in order to reconstruct a simulation device in which a part of the target system has been changed.
【0016】さらに、前記シミュレーションプログラム
を記憶した記憶媒体において、前記シミュレーションプ
ログラムは、シミュレーション装置本体ファイルと、前
記ターゲットシステムを構成する各コンポーネントに分
割された各コンポーネントファイルと、前記ターゲット
システムに周辺装置が接続される場合には各周辺装置に
分割された各周辺装置ファイルと、前記各コンポーネン
トファイルまたは/および前記各周辺装置ファイルの構
成を定義した定義ファイルとに分割され、前記定義ファ
イルに基づいて前記コンポーネントまたは/および前記
周辺装置を変更することを特徴とする。Further, in a storage medium storing the simulation program, the simulation program includes a simulation device main body file, component files divided into components constituting the target system, and peripheral devices in the target system. When connected, each peripheral device file is divided into each peripheral device file, and each component file or / and a definition file that defines the configuration of each peripheral device file, and based on the definition file, It is characterized by changing components or / and the peripheral devices.
【0017】このシミュレーションプログラムを記憶し
た記憶媒体によれば、電子計算機上でこのシミュレーシ
ョンプログラムを動作させることによって、変更するコ
ンポーネントのコンポーネントファイルまたは/および
変更する周辺装置の周辺装置ファイルの変更と定義ファ
イルの変更のみで、簡単に、ターゲットシステムの変更
に対応して、シミュレーション装置を再構築できる。According to the storage medium storing the simulation program, by running the simulation program on the computer, the component file of the component to be changed or / and the peripheral device file of the peripheral device to be changed and the definition file are changed. The simulation device can be easily reconfigured in accordance with the change of the target system only by changing the target system.
【0018】[0018]
【発明の実施の形態】以下に、図面を参照して、本発明
に係るシミュレーション装置およびシミュレーション方
法ならびにシミュレーションプログラムを記憶した記憶
媒体の実施の形態を説明する。図1はシミュレータが動
作するパーソナルコンピュータの構成図、図2はシミュ
レータの構成図、図3はシミュレーションプログラムの
構成図、図4は定義ファイルの一例、図5はシミュレー
ション方法のフローチャートである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a simulation apparatus, a simulation method, and a storage medium storing a simulation program according to the present invention will be described with reference to the drawings. 1 is a configuration diagram of a personal computer on which a simulator operates, FIG. 2 is a configuration diagram of a simulator, FIG. 3 is a configuration diagram of a simulation program, FIG. 4 is an example of a definition file, and FIG. 5 is a flowchart of a simulation method.
【0019】本発明に係るシミュレーション装置および
シミュレーション方法は、ターゲットシステムを構成す
るコンポーネントまたは/およびターゲットシステムに
接続される周辺装置を変更することができる。なお、コ
ンポーネントの変更には、コンポーネントの交換(すな
わち、仕様や設定等が異なるコンポーネントとの交
換)、コンポーネントの追加、コンポーネントの削除を
含む。周辺装置の変更には、周辺装置の交換(すなわ
ち、仕様や設定等が異なる周辺装置との交換)、周辺装
置の追加、周辺装置の削除を含む。また、本発明に係る
シミュレーションプログラムを記憶した記憶媒体は、電
子計算機内にこの記憶媒体を介してシミュレーションプ
ログラムがロードされて実行されることによって、本発
明に係るシミュレーション装置を構成することができ、
また本発明に係るシミュレーション方法によるシミュレ
ーションを実現することができる。The simulation apparatus and the simulation method according to the present invention can change components constituting the target system and / or peripheral devices connected to the target system. The change of the component includes replacement of the component (that is, replacement with a component having a different specification, setting, and the like), addition of the component, and deletion of the component. The change of the peripheral device includes replacement of the peripheral device (that is, replacement with a peripheral device having different specifications and settings), addition of the peripheral device, and deletion of the peripheral device. Further, the storage medium storing the simulation program according to the present invention can configure the simulation apparatus according to the present invention by loading and executing the simulation program via the storage medium in the electronic computer,
Further, a simulation by the simulation method according to the present invention can be realized.
【0020】なお、ターゲットシステムは、アプリケー
ションプログラムに基づいて動作し、例えば、マイコン
等である。また、記憶媒体は、シミュレーションプログ
ラムを記憶でき、電子計算機内にシミュレーションプロ
グラムをロードすることができる媒体であり、例えば、
フロッピディスク、光ディスク、ハードディスク等であ
る。The target system operates based on an application program and is, for example, a microcomputer. The storage medium is a medium that can store a simulation program and can load the simulation program in an electronic computer.
Examples include a floppy disk, an optical disk, and a hard disk.
【0021】本実施の形態では、シミュレーション装置
を、シミュレーションプログラムを記憶した記憶媒体を
介してパソコン内にシミュレーションプログラムをロー
ドし、このシミュレーションプログラムによる動作をパ
ソコンで実行させてシミュレーションを行うシミュレー
タとして構成した。また、本実施の形態では、ターゲッ
トシステムをマイコンとし、このマイコンはCPU、R
OM、RAM、LCDやI/Oポート等の各コンポーネ
ントで構成される。なお、マイコンを構成するコンポー
ネントは、マイコンの仕様に対応して変わる。また、こ
のマイコンには、外付けLCD等の周辺装置が接続され
る。なお、マイコンに接続される周辺装置は、マイコン
の仕様やマイコンの組み付け先の装置の仕様等に対応し
て変わる。In the present embodiment, the simulation apparatus is configured as a simulator for loading a simulation program into a personal computer via a storage medium storing the simulation program and executing the simulation program by executing the simulation program. . In the present embodiment, the target system is a microcomputer, and the microcomputer is a CPU, an R,
It is composed of components such as OM, RAM, LCD and I / O port. Note that components constituting the microcomputer change according to the specifications of the microcomputer. A peripheral device such as an external LCD is connected to the microcomputer. The peripheral device connected to the microcomputer changes according to the specifications of the microcomputer and the specifications of the device to which the microcomputer is assembled.
【0022】まず、図1を参照して、シミュレータ1の
全体構成について説明する。First, the overall configuration of the simulator 1 will be described with reference to FIG.
【0023】シミュレータ1は、パソコンPCのディス
ク装置DUによってシミュレーションプログラムSP
(図3参照)を記憶した記憶媒体からシミュレーション
プログラムSPが読み込まれ、さらに図示しないRAM
にシミュレーションプログラムSPがロードされ、そし
て中央処理装置CPで実行されてシミュレーションを行
う。なお、ディスク装置DUは、フロッピディスクや光
ディスク等の記憶媒体に対応して読み書きできる装置と
する。また、シミュレータ1は、ディスク装置DUから
マイコンのアプリケーションプログラムAPを読み込
み、このアプリケーションプログラムAPによる動作を
シミュレーションする。また、シミュレータ1は、組み
込み装置のボタン入力に対応してキーボードKBによっ
て外部からの操作が可能であり、組み込み装置のLCD
の画面出力に対応してディスプレイDPにLCD画面を
出力する。The simulator 1 executes a simulation program SP by a disk unit DU of a personal computer PC.
The simulation program SP is read from a storage medium storing (see FIG. 3), and furthermore, a RAM (not shown)
Is loaded with the simulation program SP, and executed by the central processing unit CP to perform a simulation. Note that the disk device DU is a device that can read and write in accordance with a storage medium such as a floppy disk or an optical disk. Further, the simulator 1 reads the application program AP of the microcomputer from the disk device DU and simulates the operation by the application program AP. Simulator 1 can be operated from the outside by keyboard KB in response to button input of the embedded device.
The LCD screen is output to the display DP in accordance with the screen output of (1).
【0024】なお、シミュレーションを行いながらアプ
リケーションプログラムAPのデバッグを行うために、
シミュレータ1はデバッガ2に接続される。デバッガ2
は、パソコンPCのディスク装置DUによってデバッグ
プログラムを記憶した記憶媒体からデバッグプログラム
が読み込まれ、図示しないRAMにロードされ、そして
中央処理装置CPで実行されてデバッグを行う。デバッ
ガ2は、シミュレータ1の起動/停止、シミュレータ1
上でのデータの参照やデータの書き換え等を行うことが
できる。さらに、デバッガ2は、アプリケーションプロ
グラムAPをステップ毎に実行させたり、ブレークした
りすることがきる。In order to debug the application program AP while performing a simulation,
Simulator 1 is connected to debugger 2. Debugger 2
The debugging program is read from the storage medium storing the debugging program by the disk unit DU of the personal computer PC, loaded into the RAM (not shown), and executed by the central processing unit CP to perform debugging. The debugger 2 starts / stops the simulator 1,
It is possible to refer to data, rewrite data, and the like. Further, the debugger 2 can execute or break the application program AP for each step.
【0025】次に、図2を参照して、シミュレータ1の
内部構成について説明する。Next, the internal configuration of the simulator 1 will be described with reference to FIG.
【0026】シミュレータ1は、シミュレータエンジン
10、マイコンの各コンポーネントの動作をシミュレー
ションするCPU11、ROM12、RAM13、LC
D14、I/Oポート15等および必要に応じて周辺装
置の動作をシミュレーションする外付けLCD20等で
構成される。つまり、シミュレータ1は、マイコンと等
価な動作を行うために、マイコンの各コンポーネントお
よび各周辺装置に分かれて各動作をシミュレーションす
るように構成される。そして、シミュレータエンジン1
0が、これらの各コンポーネントおよび各周辺装置を統
括し、シミュレーションのエンジン部となる。The simulator 1 comprises a simulator engine 10, a CPU 11 for simulating the operation of each component of the microcomputer, a ROM 12, a RAM 13,
D14, I / O port 15, etc., and an external LCD 20 for simulating the operation of peripheral devices as necessary. That is, the simulator 1 is configured to simulate each operation separately for each component of the microcomputer and each peripheral device in order to perform an operation equivalent to the microcomputer. And the simulator engine 1
Numeral 0 controls these components and peripheral devices and serves as a simulation engine unit.
【0027】なお、本実施の形態では、シミュレータエ
ンジン10が、特許請求の範囲に記載のシミュレーショ
ン装置本体に相当する。In the present embodiment, the simulator engine 10 corresponds to a simulation device body described in the claims.
【0028】シミュレータ1は、マイコンの仕様に対応
してマイコンの各コンポーネントを備え、マイコンの仕
様変更やマイコンのハードウエアの開発過程での設定変
更等に対応してコンポーネントを変更することができ
る。また、シミュレータ1は、マイコンや組み込み装置
の仕様に対応して各周辺装置を備え、マイコンや組み込
み装置の仕様変更等に対応して周辺装置を変更すること
ができる。そのために、シミュレータ1は、シミュレー
タエンジン10に変更手段10aを備える。The simulator 1 includes components of the microcomputer in accordance with the specifications of the microcomputer, and can change the components in response to a change in the specifications of the microcomputer or a setting change in the development process of the hardware of the microcomputer. Also, the simulator 1 includes peripheral devices corresponding to the specifications of the microcomputer and the embedded device, and can change the peripheral devices in response to a change in the specifications of the microcomputer and the embedded device. For this purpose, the simulator 1 includes a changer 10 a in the simulator engine 10.
【0029】なお、変更手段10aでのコンポーネント
や周辺装置の変更は、シミュレーションプログラムSP
の構成が重要となる。そこで、シミュレーションプログ
ラムSPの構成を説明しておく。シミュレーションプロ
グラムSPは、各コンポーネントおよび各周辺装置に分
かれて各動作をシミュレーションするために、シミュレ
ータエンジン10、マイコンの各コンポーネントおよび
各周辺装置の実行ファイルを備える。The change of components and peripheral devices by the change means 10a is performed by the simulation program SP.
Is important. Therefore, the configuration of the simulation program SP will be described. The simulation program SP includes an executable file of the simulator engine 10, each component of the microcomputer, and each peripheral device in order to simulate each operation separately for each component and each peripheral device.
【0030】図3に示すように、シミュレーションプロ
グラムSPは、シミュレータエンジンファイルSF、C
PUファイルCF、ROMファイルROF、RAMファ
イルRAF、LCDファイルLF、I/Oポートファイ
ルIF、外付けLCDファイルSLFおよび定義ファイ
ルDF等からなる。つまり、シミュレーションプログラ
ムSPは、シミュレータエンジン10の実行ファイル、
マイコンの各コンポーネントの実行ファイルである各コ
ンポーネントファイルCF,ROF,RAF,LF,I
F、マイコンの各周辺装置の実行ファイルである各周辺
装置ファイルSLFおよび各コンポーネントと各周辺装
置の構成を定義した定義ファイルDFに分割されてい
る。As shown in FIG. 3, the simulation program SP includes simulator engine files SF and C
It consists of a PU file CF, a ROM file ROF, a RAM file RAF, an LCD file LF, an I / O port file IF, an external LCD file SLF, a definition file DF, and the like. That is, the simulation program SP is an executable file of the simulator engine 10,
Each component file CF, ROF, RAF, LF, I which is an execution file of each component of the microcomputer
F, each peripheral device file SLF which is an execution file of each peripheral device of the microcomputer, and a definition file DF which defines the configuration of each component and each peripheral device.
【0031】なお、本実施の形態では、シミュレータエ
ンジンファイルSFが特許請求の範囲に記載のシミュレ
ーション装置本体ファイルに相当し、CPUファイルC
F、ROMファイルROF、RAMファイルRAF、L
CDファイルLFおよびI/OポートファイルIFが特
許請求の範囲に記載のコンポーネントファイルに相当
し、外付けLCDファイルSLFが特許請求の範囲に記
載の周辺装置ファイルに相当し、定義ファイルDFが特
許請求の範囲に記載の定義ファイルに相当する。In this embodiment, the simulator engine file SF corresponds to the simulation device main body file described in the claims, and the CPU file C
F, ROM file ROF, RAM file RAF, L
The CD file LF and the I / O port file IF correspond to the component file described in the claims, the external LCD file SLF corresponds to the peripheral device file described in the claims, and the definition file DF claims. Corresponds to the definition file described in the range.
【0032】シミュレータエンジンファイルSFは、シ
ミュレータエンジン10の実行ファイルであり、シミュ
レータエンジンプログラムを格納する。したがって、シ
ミュレータエンジン10は、シミュレータエンジンプロ
グラムがパソコンPCにロードされると、シミュレータ
1のエンジン部として動作する。シミュレータエンジン
10は、まず、定義ファイルDFをロードした後、定義
ファイルDFに基づいて、コンポーネントや周辺装置の
各実行ファイルをロードする。そして、シミュレータエ
ンジン10は、各コンポーネントや各周辺装置を制御
し、シミュレータ1を統括制御する。The simulator engine file SF is an execution file of the simulator engine 10 and stores a simulator engine program. Therefore, the simulator engine 10 operates as the engine unit of the simulator 1 when the simulator engine program is loaded on the personal computer PC. The simulator engine 10 first loads the definition file DF, and then loads each execution file of the component and the peripheral device based on the definition file DF. The simulator engine 10 controls each component and each peripheral device, and controls the simulator 1 overall.
【0033】通常、シミュレータエンジン10は、アプ
リケーションプログラムAPに従ってシミュレーション
を実行するために、CPU11を呼び出し、アプリケー
ションプログラムAPの命令を1ステップ毎に実行す
る。そして、シミュレータエンジン10は、命令に従っ
て各コンポーネントや各周辺装置に指示する。さらに、
1ステップの命令が実行されると、シミュレータエンジ
ン10は、再び、CPU11を呼び出し、アプリケーシ
ョンプログラムAPの次のステップの命令を実行する。
なお、シミュレータエンジン10には変更手段10aが
備わるが、この変更手段10aの処理については後で詳
細に説明する。Normally, the simulator engine 10 calls the CPU 11 to execute a simulation according to the application program AP, and executes the instructions of the application program AP for each step. Then, the simulator engine 10 instructs each component and each peripheral device according to the instruction. further,
When the instruction of one step is executed, the simulator engine 10 calls the CPU 11 again and executes the instruction of the next step of the application program AP.
Note that the simulator engine 10 includes a changing unit 10a, and the processing of the changing unit 10a will be described later in detail.
【0034】CPUファイルCFは、CPU11の実行
ファイルであり、CPUプログラムを格納する。したが
って、CPU11は、CPUプログラムがパソコンPC
にロードされると、マイコンのCPUの動作をシミュレ
ーションする。CPU11は、シミュレータエンジン1
0から呼び出され、アプリケーションプログラムAPの
1ステップ毎に命令を判別する。そして、CPU11
は、この命令をシミュレータエンジン10に返す。The CPU file CF is an execution file of the CPU 11 and stores a CPU program. Therefore, the CPU 11 executes the program for the personal computer PC
, The operation of the CPU of the microcomputer is simulated. The CPU 11 is a simulator engine 1
0, and determines an instruction for each step of the application program AP. And the CPU 11
Returns this instruction to the simulator engine 10.
【0035】ROMファイルROFは、ROM12の実
行ファイルであり、ROMプログラムを格納する。した
がって、ROM12は、ROMプログラムがパソコンP
Cにロードされると、マイコンのROMの動作をシミュ
レーションする。ROM12は、マイコンのROMと同
様に、アプリケーションプログラムAPを記憶する。そ
こで、シミュレータ1が起動されると、ROM12に
は、ディスク装置DUからデバッガ2を介して、アプリ
ケーションプログラムAPが書き込まれる。また、アプ
リケーションプログラムAPを変更する場合、デバッガ
2にユーザによってアプリケーションプログラムAPの
変更操作がなされると、デバッガ2を介してROM12
のアプリケーションプログラムAPが書き換わる。The ROM file ROF is an execution file of the ROM 12, and stores a ROM program. Therefore, the ROM 12 stores the ROM program in the personal computer P.
When loaded into C, the operation of the ROM of the microcomputer is simulated. The ROM 12 stores the application program AP, similarly to the ROM of the microcomputer. Then, when the simulator 1 is started, the application program AP is written in the ROM 12 from the disk device DU via the debugger 2. Further, when the application program AP is changed, when the user performs an operation of changing the application program AP on the debugger 2, the ROM 12 is read through the debugger 2.
Application program AP is rewritten.
【0036】RAMファイルRAFは、RAM13の実
行ファイルであり、RAMプログラムを格納する。した
がって、RAM13は、RAMプログラムがパソコンP
Cにロードされると、マイコンのRAMの動作をシミュ
レーションする。RAM13は、マイコンのRAMと同
様に、アプリケーションプログラムAPが動作される際
の一時記憶領域であり、作業領域となる。The RAM file RAF is an execution file of the RAM 13 and stores a RAM program. Therefore, the RAM 13 stores the RAM program in the personal computer P
When loaded into C, the operation of the RAM of the microcomputer is simulated. The RAM 13, like the RAM of the microcomputer, is a temporary storage area when the application program AP is operated, and is a work area.
【0037】LCDファイルLFは、LCD14の実行
ファイルであり、LCDプログラムを格納する。したが
って、LCD14は、LCDプログラムがパソコンPC
にロードされると、マイコンのLCDの動作をシミュレ
ーションする。LCD14は、マイコンのLCDをシミ
ュレーションするために、LCDの出力画面のデータを
発生し、LCDを駆動する。The LCD file LF is an execution file of the LCD 14, and stores an LCD program. Therefore, the LCD 14 has the LCD program of the personal computer PC.
, The operation of the LCD of the microcomputer is simulated. The LCD 14 generates data of an output screen of the LCD and drives the LCD to simulate the LCD of the microcomputer.
【0038】I/OポートファイルIFは、I/Oポー
ト15の実行ファイルであり、I/Oポートプログラム
を格納する。したがって、I/Oポート15は、I/O
ポートプログラムがパソコンPCにロードされると、マ
イコンのI/Oポートの動作をシミュレーションする。
I/Oポート15は、マイコンのI/Oポートをシミュ
レーションするために、周辺装置とのデータの入出力を
行うポートとなり、各周辺装置が接続される。ちなみ
に、周辺装置は、I/Oポート15に割り付けられるア
ドレスに対してデータをリード/ライトする。The I / O port file IF is an execution file of the I / O port 15 and stores an I / O port program. Therefore, the I / O port 15 is
When the port program is loaded into the personal computer PC, the operation of the I / O port of the microcomputer is simulated.
The I / O port 15 is a port for inputting / outputting data to / from a peripheral device in order to simulate the I / O port of the microcomputer, and each peripheral device is connected. Incidentally, the peripheral device reads / writes data from / to an address assigned to the I / O port 15.
【0039】外付けLCDファイルSLFは、外付けL
CD20の実行ファイルであり、外付けLCDプログラ
ムを格納する。したがって、外付けLCD20は、外付
けLCDプログラムがパソコンPCにロードされると、
周辺装置である外付けLCDの動作をシミュレーション
する。The external LCD file SLF is an external L
This is an execution file of the CD 20 and stores an external LCD program. Therefore, when the external LCD program is loaded on the personal computer PC, the external LCD 20
The operation of an external LCD as a peripheral device is simulated.
【0040】定義ファイルDFは、シミュレータ1(す
なわち、マイコン)の各コンポーネントと各周辺装置の
構成およびシミュレータ1(すなわち、マイコン)の設
定を定義するテキストファイルである。そこで、定義フ
ァイルDFは、CPUファイルCF等のコンポーネント
ファイルおよび外付けLCDファイルSLF等の周辺装
置ファイルの構成が記述される。さらに、定義ファイル
DFは、マイコンのCPUの型式、マイコンの発振器の
クロック周波数等のマイコンの各仕様が設定される。The definition file DF is a text file that defines the configuration of each component and each peripheral device of the simulator 1 (ie, the microcomputer) and the settings of the simulator 1 (ie, the microcomputer). Thus, the definition file DF describes the configuration of a component file such as a CPU file CF and a peripheral device file such as an external LCD file SLF. Further, in the definition file DF, each specification of the microcomputer such as the model of the CPU of the microcomputer and the clock frequency of the oscillator of the microcomputer is set.
【0041】定義ファイルDFは、シミュレータエンジ
ン10によってパソコンPCにロードされる。そして、
シミュレータエンジン10が、定義ファイルDFに記述
されたコンポーネントと周辺装置の構成に基づいて、各
コンポーネントファイルおよび各周辺装置ファイルをパ
ソコンPCにロードする。The definition file DF is loaded into the personal computer PC by the simulator engine 10. And
The simulator engine 10 loads each component file and each peripheral device file to the personal computer PC based on the configuration of the components and the peripheral devices described in the definition file DF.
【0042】ここで、定義ファイルDFの一例を図4に
示す。定義ファイルDFは、マイコン(すなわち、シミ
ュレータ1)のコンポーネントの構成を記述したマイコ
ンコンポーネント構成DFC、マイコン(すなわち、シ
ミュレータ1)の設定を記述したマイコン設定DFSお
よびマイコン(すなわち、シミュレータ1)の周辺装置
の構成を記述した周辺装置構成DFPからなる。Here, an example of the definition file DF is shown in FIG. The definition file DF includes a microcomputer component configuration DFC that describes the configuration of components of the microcomputer (that is, the simulator 1), a microcomputer setting DFS that describes settings of the microcomputer (that is, the simulator 1), and peripheral devices of the microcomputer (that is, the simulator 1). Consists of a peripheral device configuration DFP that describes the configuration of the peripheral device.
【0043】マイコンコンポーネント構成DFCは、C
PU、ROM、RAM、LCDおよびI/Oポートによ
ってコンポーネントを構成することを定義する。そし
て、マイコンコンポーネント構成DFCは、CPUファ
イルCFとしてCPU.bmcを指定し、ROMファイ
ルROFとしてROM.bmcを指定し、RAMファイ
ルRAFとしてRAM.bmcを指定し、LCDファイ
ルLFとしてLcdDrv.bmcを指定し、I/Oポ
ートファイルIFとしてI/Oport.bmcを指定
する。The microcomputer component configuration DFC is C
It defines that a component is constituted by PU, ROM, RAM, LCD and I / O port. The microcomputer component configuration DFC has a CPU file CF. bmc, and ROM.ROM. bmc and specify RAM. bmc, and LcdDrv.bcm as the LCD file LF. bmc, and I / Oport.bmp as the I / O port file IF. Specify bmc.
【0044】マイコン設定DFSは、CPUのタイプと
して88348を指定し、チップのモデルとしてMCU
を指定し、CPUのモデルとして3を指定し、発振器1
のクロック周波数として32kHzを指定し、発信器3
のクロック周波数として5MHzを指定する。The microcomputer setting DFS specifies 88348 as the CPU type, and MCU as the chip model.
Is specified, and 3 is specified as a CPU model.
32kHz is specified as the clock frequency of the
5 MHz is designated as the clock frequency of.
【0045】周辺装置構成DFPは、1つの周辺装置を
定義する。ちなみに、この周辺装置は、外付けLCDで
ある。そして、周辺装置構成DFPは、外付けLCDフ
ァイルSLFとしてSED152A.bmcを指定す
る。なお、SED152A.bmcに続いて記述されて
いる「080000,080002」がI/Oポートの
アドレスであり、このアドレスにデータがリード/ライ
トされる。The peripheral device configuration DFP defines one peripheral device. Incidentally, this peripheral device is an external LCD. Then, the peripheral device configuration DFP stores the SED 152A. Specify bmc. In addition, SED152A. “080000,080002” described after bmc is the address of the I / O port, and data is read / written at this address.
【0046】それでは、変更手段10aでの処理につい
て説明する。ここで説明する処理はコンポーネントまた
は/および周辺装置を変更してシミュレータ1を再構築
する場合についての処理であるが、シミュレータ1を構
築する場合の処理も同様の処理である。Now, the processing in the changing means 10a will be described. The process described here is a process for rebuilding the simulator 1 by changing components or / and peripheral devices, but the process for building the simulator 1 is the same.
【0047】なお、シミュレータ1におけるコンポーネ
ントまたは/および周辺装置を変更する場合、変更手段
10aでの処理を行う前に、ユーザが行なわなければな
らない作業がある。ユーザは、変更するコンポーネント
または/および周辺装置に対応して、定義ファイルDF
のマイコンコンポーネント構成DFC、マイコン設定D
FSおよび周辺装置構成DFPを編集する。すなわち、
ユーザは、マイコンの仕様等に対応して、シミュレータ
1の全コンポーネントおよび全周辺装置ならびにマイコ
ンの設定を定義ファイルDFに記述する。さらに、ユー
ザは、定義ファイルDFに記述した全てのコンポーネン
トファイルと全ての周辺装置ファイル、そして変更後の
定義ファイルDFとシミュレータエンジンファイルSF
を用意する。なお、ユーザは、変更するコンポーネント
のコンポーネントファイルまたは/および変更する周辺
装置の周辺装置ファイルを新たに用意し、変更しないコ
ンポーネントのコンポーネントファイルまたは/および
変更しない周辺装置の周辺装置ファイルは従来のファイ
ルを使用する。そして、ユーザは、これらの全てのファ
イルがディスク装置DUから読み込み可能な状態とす
る。なお、初めてシミュレータ1を構築する場合も、前
記のように、ユーザが、マイコンの仕様等に対応して、
シミュレータ1の全てのコンポーネントおよび全ての周
辺装置ならびにマイコンの設定を定義ファイルDFに記
述し、この全てのファイルをディスク装置DUから読み
込み可能な状態とする。When changing components or / and peripheral devices in the simulator 1, there is an operation which must be performed by the user before performing the processing by the changing means 10a. The user can change the definition file DF according to the component or / and peripheral device to be changed.
Microcomputer component configuration DFC, microcomputer setting D
Edit FS and peripheral device configuration DFP. That is,
The user describes all the components and all peripheral devices of the simulator 1 and the settings of the microcomputer in the definition file DF in accordance with the specifications of the microcomputer. Further, the user can input all the component files and all the peripheral device files described in the definition file DF, and the changed definition file DF and the simulator engine file SF.
Prepare The user newly prepares a component file of the component to be changed or / and a peripheral device file of the peripheral device to be changed, and the component file of the component not to be changed or / and the peripheral device file of the peripheral device not to be changed is a conventional file. use. Then, the user makes all these files readable from the disk device DU. When the simulator 1 is constructed for the first time, as described above, the user responds to the specifications of the microcomputer and the like.
The settings of all the components of the simulator 1, all the peripheral devices, and the microcomputer are described in the definition file DF, and all the files are made readable from the disk device DU.
【0048】以上の作業が終了すると、ユーザは、デバ
ッガ2を起動する。デバッガ2が起動されると、デバッ
ガ2は、シミュレータエンジンファイルSFに格納され
たシミュレータエンジンプログラムをパソコンPC上に
ロードし、シミュレータエンジン10を動作させる。す
ると、シミュレータエンジン10の変更手段10aが、
定義ファイルDFをロードする。さらに、変更手段10
aは、定義ファイルDFのマイコンコンポーネント構成
DFCに基づいて、CPUファイルCFに格納されたC
PUプログラム、ROMファイルROFに格納されたR
OMプログラム、RAMファイルRAFに格納されたR
AMプログラム、LCDファイルLFに格納されたLC
Dプログラム、I/OポートファイルIFに格納された
I/Oプログラム等をロードする。また、変更手段10
aは、定義ファイルDFの周辺装置構成DFPに基づい
て、外付けLCDファイルSLFに格納された外付けL
CDプログラム等をロードする。つまり、シミュレータ
1を構成する全てのコンポーネントおよび全ての周辺装
置がパソコンPCにロードされ、シミュレータ1が、変
更を必要としたコンポーネントまたは/および周辺装置
が変更されて再構築される。When the above operations are completed, the user starts the debugger 2. When the debugger 2 is started, the debugger 2 loads the simulator engine program stored in the simulator engine file SF onto the personal computer PC and operates the simulator engine 10. Then, the changing means 10a of the simulator engine 10
Load the definition file DF. Further, the changing means 10
a is the C stored in the CPU file CF based on the microcomputer component configuration DFC of the definition file DF.
PU program, R stored in ROM file ROF
OM program, R stored in RAM file RAF
AM program, LC stored in LCD file LF
A D program, an I / O program stored in the I / O port file IF, and the like are loaded. Also, the changing means 10
a is the external L stored in the external LCD file SLF based on the peripheral device configuration DFP of the definition file DF.
Load a CD program or the like. That is, all components and all peripheral devices constituting the simulator 1 are loaded into the personal computer PC, and the simulator 1 is reconfigured by changing components and / or peripheral devices that need to be changed.
【0049】続いて、シミュレータエンジン10が、全
コンポーネントおよび全周辺装置に初期化を指示する。
すると、全コンポーネントおよび全周辺装置が、自身を
初期化する。さらに、シミュレータエンジン10は、デ
ィスク装置DUからアプリケーションプログラムAPを
ROM12に記憶させて、アプリケーションプログラム
APによる動作のシミュレーションを開始する。なお、
シミュレータ1は、定義ファイルDFのマイコン設定D
FSに記述された設定に基づいて動作する。Subsequently, the simulator engine 10 instructs all components and all peripheral devices to perform initialization.
Then, all components and all peripheral devices initialize themselves. Further, the simulator engine 10 stores the application program AP from the disk device DU in the ROM 12, and starts the simulation of the operation by the application program AP. In addition,
Simulator 1 uses the microcomputer setting D in the definition file DF.
It operates based on the settings described in the FS.
【0050】このシミュレータ1によれば、マイコンの
仕様や設定等の変更に対応して、コンポーネントまたは
/および周辺装置を個別に変更することができる。この
変更では、シミュレータ1を動作させるためのシミュレ
ーションプログラムSPを全て変更するのでなく、変更
を必要とするコンポーネントのコンポーネントファイル
または/および変更を必要とする周辺装置の周辺装置フ
ァイルの変更と定義ファイルDFの変更をするだけでよ
い。According to the simulator 1, components or / and peripheral devices can be individually changed in response to changes in specifications and settings of the microcomputer. In this change, not all the simulation programs SP for operating the simulator 1 are changed, but a change of a component file of a component requiring a change or / and a peripheral device file of a peripheral device requiring a change and a definition file DF. You just need to change
【0051】次に、シミュレータ1によるシミュレーシ
ョン方法を図5のフローチャートに沿って説明する。こ
こでは、シミュレータ1を構成するマイコンのコンポー
ネントまたは/および周辺装置を変更する方法について
詳細に説明する。なお、説明に応じて、随時、図1乃至
図4を参照する。Next, a simulation method by the simulator 1 will be described with reference to the flowchart of FIG. Here, a method for changing the components of the microcomputer constituting the simulator 1 and / or the peripheral devices will be described in detail. In addition, FIGS. 1 to 4 will be referred to as needed according to the description.
【0052】シミュレータ1を構成するマイコンのコン
ポーネントまたは/および周辺装置を変更する場合、ま
ず、ユーザが、変更するコンポーネントまたは/および
周辺装置に対応して、定義ファイルDFを編集する(S
1)。この編集では、定義ファイルDFのマイコンコン
ポーネント構成DFCや周辺装置構成DFPに対して、
コンポーネントファイルまたは/および周辺装置ファイ
ルの交換(仕様や設定の異なるコンポーネント、周辺装
置への交換)、追加、削除等を行う。また、この編集で
は、定義ファイルDFのマイコン設定DFSを変更して
もよい。When changing the components and / or peripheral devices of the microcomputer constituting the simulator 1, the user first edits the definition file DF corresponding to the component or / and peripheral device to be changed (S
1). In this editing, for the microcomputer component configuration DFC and the peripheral device configuration DFP of the definition file DF,
It exchanges component files or / and peripheral device files (replace components with different specifications and settings, peripheral devices), adds, deletes, etc. In this editing, the microcomputer setting DFS of the definition file DF may be changed.
【0053】さらに、ユーザは、変更後の定義ファイル
DFおよび変更を必要とするコンポーネントのコンポー
ネントファイルまたは/および変更を必要とする周辺装
置の周辺装置ファイルを作成し、ディスク装置DUから
読み込み可能な状態にする(S2)。なお、変更しない
コンポーネントファイルまたは/および周辺装置ファイ
ルは、そのまま使用し、ディスク装置DUから読み込み
可能な状態にしておく。Further, the user creates the changed definition file DF and the component file of the component requiring the change or / and the peripheral device file of the peripheral device requiring the change, and is ready to read from the disk device DU. (S2). It should be noted that the component file and / or the peripheral device file which are not changed are used as they are, and are ready to be read from the disk device DU.
【0054】全ての準備が完了すると、ユーザは、ディ
スク装置DUからデバッグプログラムをパソコンPCに
ロードし、デバッガ2を起動する(S3)。When all the preparations are completed, the user loads the debug program from the disk unit DU to the personal computer PC and starts the debugger 2 (S3).
【0055】デバッガ2が起動されると、デバッガ2
は、ディスク装置DUからシミュレータエンジンファイ
ルSFに格納されたシミュレータエンジンプログラムを
パソコンPC内にロードし、シミュレータエンジン10
を起動する(S4)。When the debugger 2 is started, the debugger 2
Loads the simulator engine program stored in the simulator engine file SF from the disk device DU into the personal computer PC, and loads the simulator engine 10
Is activated (S4).
【0056】続いて、シミュレータエンジン10は、デ
ィスク装置DUから定義ファイルDFをパソコンPC内
にロードする(S5)。Subsequently, the simulator engine 10 loads the definition file DF from the disk device DU into the personal computer PC (S5).
【0057】すると、シミュレータエンジン10が、定
義ファイルDFのマイコンコンポーネント構成DFCに
基づいて、ディスク装置DUから各コンポーネントファ
イルに格納された各コンポーネントプログラムをロード
する(S6)。さらに、シミュレータエンジン10が、
定義ファイルDFの周辺装置構成DFPに基づいて、デ
ィスク装置DUから各周辺装置ファイルに格納された各
周辺装置プログラムをロードする(S7)。ここで、変
更するコンポーネントまたは/および周辺装置を含め
て、シミュレータ1を構成する全てのコンポーネントと
周辺装置がロードされる。Then, the simulator engine 10 loads each component program stored in each component file from the disk device DU based on the microcomputer component configuration DFC of the definition file DF (S6). Further, the simulator engine 10
Each peripheral device program stored in each peripheral device file is loaded from the disk device DU based on the peripheral device configuration DFP of the definition file DF (S7). Here, all components and peripheral devices that make up the simulator 1, including the components and / or peripheral devices to be changed, are loaded.
【0058】なお、本実施の形態では、特許請求の範囲
に記載の変更工程は、ステップS5からステップS7の
処理に相当する。In the present embodiment, the change step described in the claims corresponds to the processing from step S5 to step S7.
【0059】さらに、シミュレータエンジン10は、ロ
ードした全てのコンポーネントおよび周辺装置に初期化
を指示する(S8)。そして、各コンポーネントおよび
各周辺装置が、自身を初期化する(S9)。Further, the simulator engine 10 instructs all loaded components and peripheral devices to initialize (S8). Then, each component and each peripheral device initialize themselves (S9).
【0060】初期化が終了すると、シミュレータ1は、
ディスク装置DUからデバッガ2を介してアプリケーシ
ョンプログラムAPをROM12に記憶させて、シミュ
レーションを開始する(S10)。When the initialization is completed, the simulator 1
The application program AP is stored in the ROM 12 from the disk device DU via the debugger 2, and the simulation is started (S10).
【0061】このシミュレーション方法によれば、定義
ファイルの変更と変更するコンポーネントのコンポーネ
ントファイルまたは/および変更する周辺装置の周辺装
置ファイルの準備を行うだけで、シミュレータ1のコン
ポーネントまたは/および周辺装置を変更することがで
きる。この変更では、コンポーネントまたは/および周
辺装置の仕様や設定の変更に対応できるだけでなく、コ
ンポーネントまたは/および周辺装置の追加、コンポー
ネントまたは/および周辺装置の削除にも対応可能であ
る。さらに、マイコンの設定も変更にも対応可能であ
る。According to this simulation method, the component and / or the peripheral device of the simulator 1 can be changed only by preparing the component file of the component to be changed and / or the peripheral device file of the peripheral device to be changed. can do. This change not only can respond to changes in the specifications and settings of components or / and peripheral devices, but can also respond to addition of components // and / or peripheral devices and deletion of components // and / or peripheral devices. Further, the setting of the microcomputer can be changed.
【0062】以上、本発明は、前記の実施の形態に限定
されることなく、様々な形態で実施される。As described above, the present invention is not limited to the above-described embodiment, but can be embodied in various forms.
【0063】例えば、1つの定義ファイルにコンポーネ
ント構成、マイコンの設定および周辺装置構成を記述
し、その全ての変更に対応可能としたが、定義ファイル
にコンポーネント構成のみを記述し、コンポーネントの
変更にのみ対応可能とする等、定義ファイルにおける設
定内容について限定しない。For example, the component configuration, the setting of the microcomputer and the peripheral device configuration are described in one definition file, and all the changes can be dealt with. However, only the component configuration is described in the definition file, and only the component change is performed. There is no limitation on the setting contents in the definition file, such as being compatible.
【0064】また、シミュレータをデバッガによって起
動する構成としたが、シミュレータ単体で動作し、ユー
ザがシミュレータを起動する構成としてもよい。Further, the configuration in which the simulator is activated by the debugger has been described. However, the configuration may be such that the simulator operates alone and the user activates the simulator.
【0065】また、変更手段をシミュレータエンジンに
構成したが、シミュレーション装置内に構成すればよ
い。Further, the changing means is configured in the simulator engine, but may be configured in the simulation device.
【0066】[0066]
【発明の効果】本発明の請求項1に係るシミュレーショ
ン装置は、ターゲットシステムのコンポーネントまたは
/および周辺装置に変更がある場合、変更手段によって
変更するコンポーネントまたは/および周辺装置のみ変
更することができる。そのため、ターゲットシステムの
一部を変更するためにシミュレーションプログラム全体
を作り直す必要がないので、シミュレーション装置を短
期間で再構築でき、アプリケーションプログラムの開発
効率が向上する。さらに、一部の仕様が異なる他のマイ
コンのシミュレーション装置を再構築する場合、仕様が
異なる部分のコンポーネントまたは/および周辺装置の
み変更すればよいので、シミュレーション装置の汎用性
も向上する。According to the simulation apparatus of the first aspect of the present invention, when there is a change in the components and / or peripheral devices of the target system, only the components and / or peripheral devices to be changed by the changing means can be changed. Therefore, since it is not necessary to recreate the entire simulation program in order to change a part of the target system, the simulation device can be rebuilt in a short period of time, and the development efficiency of the application program is improved. Further, when reconstructing a simulation device of another microcomputer having a different specification, only the components and / or peripheral devices of the different specification need be changed, so that the versatility of the simulation device is improved.
【0067】本発明の請求項2に係るシミュレーション
装置は、コンポーネントファイルまたは/および周辺装
置ファイルの準備と定義ファイルの変更のみで、簡単
に、ターゲットシステムの変更に対応して、シミュレー
ション装置を再構築することができる。A simulation apparatus according to a second aspect of the present invention reconstructs a simulation apparatus simply by preparing a component file and / or a peripheral device file and changing a definition file in response to a change in a target system. can do.
【0068】本発明の請求項3に係るシミュレーション
方法は、ターゲットシステムのコンポーネントまたは/
および周辺装置に変更がある場合、変更工程において変
更するコンポーネントまたは/および周辺装置のみ変更
することができる。そのため、ターゲットシステムの一
部を変更するために、シミュレーションプログラム全体
を作り直す必要がない。According to a third aspect of the present invention, there is provided a simulation method comprising the steps of:
If there is a change in the peripheral device and the peripheral device, only the component or / and the peripheral device to be changed in the change process can be changed. Therefore, it is not necessary to recreate the entire simulation program in order to change a part of the target system.
【0069】本発明の請求項4に係るシミュレーション
方法は、コンポーネントファイルまたは/および周辺装
置ファイルの準備と定義ファイルの変更のみで、簡単
に、ターゲットシステムの変更に対応して、シミュレー
ションを行うことができる。According to the simulation method of the fourth aspect of the present invention, the simulation can be easily performed in response to the change of the target system only by preparing the component file and / or the peripheral device file and changing the definition file. it can.
【0070】本発明の請求項5に係るシミュレーション
プログラムを記憶した記憶媒体は、電子計算機上でこの
シミュレーションプログラムを動作させることによっ
て、ターゲットシステムのコンポーネントまたは/およ
び周辺装置に変更がある場合、変更するコンポーネント
または/および周辺装置のみ変更することができる。そ
のため、ターゲットシステムの一部を変更するためにシ
ミュレーションプログラム全体を作り直す必要がないの
で、シミュレーション装置を短期間で再構築できる。さ
らに、一部の仕様が異なる他のマイコンのシミュレーシ
ョン装置を再構築する場合、シミュレーションプログラ
ムにおいて仕様が異なる部分のコンポーネントまたは/
および周辺装置のみ変更すればよいので、シミュレーシ
ョン装置の汎用性も向上する。In the storage medium storing the simulation program according to the fifth aspect of the present invention, when the simulation program is operated on an electronic computer, if there is a change in a component of the target system and / or a peripheral device, the change is made. Only components or / and peripherals can be changed. Therefore, it is not necessary to recreate the entire simulation program in order to change a part of the target system, so that the simulation apparatus can be rebuilt in a short time. Further, when reconstructing a simulation device of another microcomputer having a different specification, the components or / and /
Since only the peripheral device needs to be changed, the versatility of the simulation device is also improved.
【0071】本発明の請求項6に係るシミュレーション
プログラムを記憶した記憶媒体は、電子計算機上でこの
シミュレーションプログラムを動作させることによっ
て、シミュレーションプログラムにおいてコンポーネン
トファイルまたは/および周辺装置ファイルの準備と定
義ファイルの変更のみで、簡単に、ターゲットシステム
の変更に対応して、シミュレーション装置を再構築でき
る。The storage medium storing the simulation program according to claim 6 of the present invention operates the simulation program on an electronic computer to prepare a component file or / and a peripheral device file in the simulation program and to store a definition file. The simulation device can be easily reconfigured in accordance with the change of the target system only by the change.
【図1】本実施の形態に係るシミュレータが動作するパ
ーソナルコンピュータの構成図である。FIG. 1 is a configuration diagram of a personal computer on which a simulator according to the present embodiment operates.
【図2】本実施の形態に係るシミュレータの構成図であ
る。FIG. 2 is a configuration diagram of a simulator according to the present embodiment.
【図3】本実施の形態に係るシミュレーションプログラ
ムの構成図である。FIG. 3 is a configuration diagram of a simulation program according to the present embodiment.
【図4】定義ファイルの一例である。FIG. 4 is an example of a definition file.
【図5】本実施の形態に係るシミュレーション方法のフ
ローチャートである。FIG. 5 is a flowchart of a simulation method according to the present embodiment.
【図6】従来のシミュレータの構成図である。FIG. 6 is a configuration diagram of a conventional simulator.
1・・・シミュレータ(シミュレーション装置) 10・・・シミュレータエンジン(シミュレーション装
置本体) 10a・・・変更手段 11・・・CPU(コンポーネント) 12・・・ROM(コンポーネント) 13・・・RAM(コンポーネント) 14・・・LCD(コンポーネント) 15・・・I/Oポート(コンポーネント) 20・・・外付けLCD(周辺装置) AP・・・アプリケーションプログラム CF・・・CPUファイル(コンポーネントファイル) DF・・・定義ファイル IF・・・I/Oポートファイル(コンポーネントファ
イル) LF・・・LCDファイル(コンポーネントファイル) PC・・・パーソナルコンピュータ(電子計算機) RAF・・・RAMファイル(コンポーネントファイ
ル) ROF・・・ROMファイル(コンポーネントファイ
ル) SF・・・シミュレータエンジンファイル(シミュレー
ション装置本体ファイル) SLF・・・外付けLCDファイル(周辺装置ファイ
ル) SP・・・シミュレーションプログラムDESCRIPTION OF SYMBOLS 1 ... Simulator (simulation device) 10 ... Simulator engine (simulation device main body) 10a ... Change means 11 ... CPU (component) 12 ... ROM (component) 13 ... RAM (component) 14 LCD (component) 15 ... I / O port (component) 20 ... external LCD (peripheral device) AP ... application program CF ... CPU file (component file) DF ... Definition file IF ・ ・ ・ I / O port file (component file) LF ・ ・ ・ LCD file (component file) PC ・ ・ ・ Personal computer (computer) RAF ・ ・ ・ RAM file (component file) ROF ・ ・ ・ROM file (component file) SF: Simulator engine file (simulation device main body file) SLF: external LCD file (peripheral device file) SP: simulation program
Claims (6)
ラムを実行し、ターゲットシステム上で動作するアプリ
ケーションプログラムをシミュレーションするシミュレ
ーション装置において、 前記ターゲットシステムを構成するコンポーネントまた
は/および前記ターゲットシステムに接続される周辺装
置を変更する変更手段を備えることを特徴とするシミュ
レーション装置。1. A simulation apparatus for executing a simulation program in an electronic computer and simulating an application program operating on a target system, comprising: a component constituting the target system and / or a peripheral device connected to the target system. A simulation device comprising a changing unit for changing.
ミュレーション装置本体ファイルと、前記ターゲットシ
ステムを構成する各コンポーネントに分割された各コン
ポーネントファイルと、前記ターゲットシステムに周辺
装置が接続される場合には各周辺装置に分割された各周
辺装置ファイルと、前記各コンポーネントファイルまた
は/および前記各周辺装置ファイルの構成を定義した定
義ファイルとに分割され、 前記変更手段は、前記定義ファイルに基づいて前記コン
ポーネントまたは/および前記周辺装置を変更すること
を特徴とする請求項1に記載のシミュレーション装置。2. The simulation program according to claim 1, further comprising: a simulation device main body file, component files divided into components constituting the target system, and a peripheral device connected to the target system. Each of the divided peripheral device files and a definition file defining the configuration of each of the component files and / or each of the peripheral device files, and the changing unit is configured to change the component and / or the file based on the definition file. The simulation device according to claim 1, wherein the peripheral device is changed.
ラムを実行し、ターゲットシステム上で動作するアプリ
ケーションプログラムをシミュレーションするシミュレ
ーション方法において、 前記ターゲットシステムを構成するコンポーネントまた
は/および前記ターゲットシステムに接続される周辺装
置を変更する変更工程を含むことを特徴とするシミュレ
ーション方法。3. A simulation method for executing a simulation program in an electronic computer and simulating an application program operating on a target system, comprising: a component configuring the target system and / or a peripheral device connected to the target system. A simulation method comprising a changing step of changing.
ミュレーション装置本体ファイルと、前記ターゲットシ
ステムを構成する各コンポーネントに分割された各コン
ポーネントファイルと、前記ターゲットシステムに周辺
装置が接続される場合には各周辺装置に分割された各周
辺装置ファイルと、前記各コンポーネントファイルまた
は/および前記各周辺装置ファイルの構成を定義した定
義ファイルとに分割され、 前記変更工程において、前記定義ファイルに基づいて前
記コンポーネントまたは/および前記周辺装置を変更す
ることを特徴とする請求項3に記載のシミュレーション
方法。4. The simulation program according to claim 1, further comprising: a simulation device main body file, component files divided into components constituting the target system, and a peripheral device connected to the target system. The divided peripheral device files are divided into a definition file defining the configuration of the component files and / or the configuration of the peripheral device files. In the changing step, the component and / or the component file are defined based on the definition file. The simulation method according to claim 3, wherein the peripheral device is changed.
ラムを実行し、ターゲットシステム上で動作するアプリ
ケーションプログラムをシミュレーションするための前
記シミュレーションプログラムを記憶した記憶媒体にお
いて、 前記シミュレーションプログラムは、 前記ターゲットシステムを構成するコンポーネントまた
は/および前記ターゲットシステムに接続される周辺装
置を変更可能なことを特徴とするシミュレーションプロ
グラムを記憶した記憶媒体。5. A storage medium storing a simulation program for executing a simulation program in an electronic computer and simulating an application program operating on a target system, wherein the simulation program is a component constituting the target system. And / or a storage medium storing a simulation program, wherein a peripheral device connected to the target system can be changed.
ミュレーション装置本体ファイルと、前記ターゲットシ
ステムを構成する各コンポーネントに分割された各コン
ポーネントファイルと、前記ターゲットシステムに周辺
装置が接続される場合には各周辺装置に分割された各周
辺装置ファイルと、前記各コンポーネントファイルまた
は/および前記各周辺装置ファイルの構成を定義した定
義ファイルとに分割され、 前記定義ファイルに基づいて前記コンポーネントまたは
/および前記周辺装置を変更することを特徴とする請求
項5に記載のシミュレーションプログラムを記憶した記
憶媒体。6. The simulation program according to claim 1, further comprising: a simulation device main body file, component files divided into components constituting the target system, and a peripheral device connected to the target system when the peripheral device is connected to the target system. Each divided peripheral device file is divided into a definition file defining the configuration of each of the component files and / or each of the peripheral device files, and the component and / or the peripheral device is changed based on the definition file. A storage medium storing the simulation program according to claim 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000028377A JP2001216178A (en) | 2000-02-04 | 2000-02-04 | Simulation apparatus, simulation method, and storage medium storing simulation program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000028377A JP2001216178A (en) | 2000-02-04 | 2000-02-04 | Simulation apparatus, simulation method, and storage medium storing simulation program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001216178A true JP2001216178A (en) | 2001-08-10 |
Family
ID=18553791
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000028377A Withdrawn JP2001216178A (en) | 2000-02-04 | 2000-02-04 | Simulation apparatus, simulation method, and storage medium storing simulation program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001216178A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010170188A (en) * | 2009-01-20 | 2010-08-05 | Fujitsu Ltd | Verification support program, information processor, and verification support method |
| JP2013210882A (en) * | 2012-03-30 | 2013-10-10 | Nec Soft Ltd | Emulation device, emulation method, program, and development support system of built-in apparatus |
-
2000
- 2000-02-04 JP JP2000028377A patent/JP2001216178A/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010170188A (en) * | 2009-01-20 | 2010-08-05 | Fujitsu Ltd | Verification support program, information processor, and verification support method |
| JP2013210882A (en) * | 2012-03-30 | 2013-10-10 | Nec Soft Ltd | Emulation device, emulation method, program, and development support system of built-in apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101382905B (en) | Systems and methods for development of emulated devices in a virtual machine environment | |
| US8180620B2 (en) | Apparatus and method for performing hardware and software co-verification testing | |
| CN112270149A (en) | Verification platform automation integration method and system, electronic equipment and storage medium | |
| US20080178143A1 (en) | System, Method and Computer Program Product for Developing, Configuring, Installing and Testing Software | |
| CN112199162B (en) | Disk snapshot method, device and medium based on virtualized disk double-active disaster tolerance | |
| US20050120335A1 (en) | Cross-platform software development with a software development peripheral | |
| US20110179260A1 (en) | Method for integrating operating system into bios chip and method for booting operating system from server | |
| CN101794235A (en) | Diskless computer starting method based on operating system network drive | |
| CN105446775A (en) | Configurative generation method and device for game installation package | |
| CN113032246A (en) | SSD (solid State disk) firmware operation method and device, readable storage medium and electronic equipment | |
| CN118606114A (en) | Programmable logic device upgrade method, device, medium and product | |
| JP6984565B2 (en) | Information processing equipment and programs | |
| CN111813702B (en) | Debugging system, debugging method, apparatus, and computer-readable storage medium | |
| CN112306844A (en) | Interface testing method, device, equipment and storage medium of software development system | |
| JP2001216178A (en) | Simulation apparatus, simulation method, and storage medium storing simulation program | |
| CN100361075C (en) | Method and device for rapidly developing embedded system by applying automatic compiling framework | |
| CN115589379A (en) | Network card PXE function test method, system, electronic equipment and storage medium | |
| KR20020029918A (en) | Automatic evaluation method and automatic evaluation system and storage medium storing automatic evaluation program | |
| JP2005353020A (en) | Simulation system for computer program | |
| JP3270729B2 (en) | Extended instruction set simulator | |
| CN114860570B (en) | Development board evaluation method and device for SaaS model | |
| CN112130868B (en) | Filling method, system, equipment and medium of system | |
| US20020007254A1 (en) | Automated evaluation system and program | |
| CN117130931A (en) | Embedded software debugging method and device | |
| CN118796351A (en) | Mirror image making method, system, electronic device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20070501 |