JP2003186936A - Method and device for executing operation verification simulation and its program - Google Patents

Method and device for executing operation verification simulation and its program

Info

Publication number
JP2003186936A
JP2003186936A JP2001382645A JP2001382645A JP2003186936A JP 2003186936 A JP2003186936 A JP 2003186936A JP 2001382645 A JP2001382645 A JP 2001382645A JP 2001382645 A JP2001382645 A JP 2001382645A JP 2003186936 A JP2003186936 A JP 2003186936A
Authority
JP
Japan
Prior art keywords
simulation
model
control
control system
unit
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
JP2001382645A
Other languages
Japanese (ja)
Inventor
Osamu Sagata
修 佐潟
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data Corp
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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2001382645A priority Critical patent/JP2003186936A/en
Publication of JP2003186936A publication Critical patent/JP2003186936A/en
Pending legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize certain operation verification simulation by accelerating overall (integral) operation verification simulation and preventing the simulation information from being lost. <P>SOLUTION: A CPU model part 203 is set in a stand-by state by a model operation setting part 205 in a prescribed timing (address value) after an I/O model part 204 is started to operate so that simulation can be omitted under the control of a simulation control part 201. Then, the CPU model part 203 is returned to the operating state by the model operation setting part 205 after event notice including an interrupt from the I/O model part 204 is recognized by the mode operation setting part 205 so that the simulation is resumed. Thus, when any loop which is meaningless in terms of processing is being processed by the CPU model part 203 in the interrupt stand-by state from the I/O model part 204, the simulation of the CPU model part 203 is omitted. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、制御系(CPUや
マイクロコンピュータなど)のプログラム実行による制
御動作をコンピュータ上で検証し、より詳細には、全体
(総合的)のシミュレーションが高速化され、かつ、シ
ミュレーション情報の消失を阻止するための、動作検証
シミュレーションの実行方法及びシミュレーション実行
装置並びにプログラムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention verifies a control operation by a program execution of a control system (CPU, microcomputer, etc.) on a computer, and more specifically, speeds up an entire (comprehensive) simulation, In addition, the present invention relates to an operation verification simulation execution method, a simulation execution device, and a program for preventing the loss of simulation information.

【0002】[0002]

【従来の技術】従来、プリンタやファクシミリ機(以
下、電子装置と記載)等は、制御系(CPUやマイクロ
コンピュータなど、適宜CPUのみで記載)の制御で、
その動作を行っている。このCPUはROMなどに記憶
されているファームウェアプログラムを実行して各種の
制御を実行する。このようなファームウェアプログラム
の開発段階では、このプログラムによる実際の制御動作
が正常に行われるか否かの検証を事前に行う必要があ
る。
2. Description of the Related Art Conventionally, printers, facsimile machines (hereinafter referred to as electronic devices), etc., are controlled by a control system (only CPU, such as CPU or microcomputer).
It's doing that. This CPU executes a firmware program stored in a ROM or the like to execute various controls. At the development stage of such a firmware program, it is necessary to verify in advance whether the actual control operation by this program is normally performed.

【0003】この検証としては、コンピュータや専用装
置(以下、コンピュータのみで示す)上で実際の制御動
作をモデル化、すなわち、模擬的に作り出して制御動作
を最適化するためのシミュレーションを繰り返して検証
するシミュレーションを実行(シミュレート)してい
る。このシミュレートは、コンピュータ上に実際の電子
装置の制御動作を行う各種モデル部をモジュール化した
部分的なシミュレーションを繰り返して、その全体(総
合的)の動作検証シミュレーションを実行している。
As this verification, the actual control operation is modeled on a computer or a dedicated device (hereinafter, only the computer is shown), that is, a simulation for creating a simulated operation to optimize the control operation is repeated and verified. A simulation is performed (simulated). In this simulation, a partial simulation in which various model units that perform actual control operations of electronic devices are modularized on a computer is repeated, and the entire (comprehensive) operation verification simulation is executed.

【0004】図9は従来のシミュレータの構成を示すブ
ロック図である。図9は電子装置のシミュレータ構成例
であり、この例のシミュレータは、シミュレーション制
御を実行するためのシミュレーション制御部101とと
もに、ユーザ装置(動作検証シミュレーションを行うコ
ンピュータや専用装置)とのインタフェース接続を行う
ユーザインタフェース(I/F)部102がバスライン
に接続して構成されている。また、このシミュレータ
は、CPUモデル部103及びシミュレーションを実行
する電子装置の周辺I/O回路の配置数に対応して設け
られるI/Oモデル部104がバスラインに接続して構
成されている。
FIG. 9 is a block diagram showing the structure of a conventional simulator. FIG. 9 is a simulator configuration example of an electronic device. The simulator of this example performs interface connection with a simulation control unit 101 for executing simulation control and a user device (computer or dedicated device for performing operation verification simulation). A user interface (I / F) unit 102 is connected to the bus line. In addition, this simulator is configured by connecting a CPU model unit 103 and I / O model units 104 provided corresponding to the number of peripheral I / O circuits of an electronic device that executes a simulation to a bus line.

【0005】次に、この構成における動作検証シミュレ
ーションについて説明する。シミュレーションが開始さ
れると、シミュレーション制御部101は、一定間隔
(一般的にはシステムクロック周波数ごと)で、CPU
モデル部103を呼び出す。CPUモデル部103は、
呼び出されるごとに、その呼び出し間隔のクロック周波
数分でシミュレーションを実行する。具体例として、C
PUクロック周波数400MHz、システムクロック周
波数80MHzにおいて、システムクロック周波数ごと
にCPUモデル部103が呼び出される。この呼び出さ
れる度にCPUクロック周波数で5クロック信号分(4
00MHz/80MHz=5MHz)のシミュレーショ
ンを実行する。
Next, an operation verification simulation in this configuration will be described. When the simulation is started, the simulation control unit 101 causes the CPU to operate at regular intervals (generally, at each system clock frequency).
The model unit 103 is called. The CPU model unit 103
Each time it is called, the simulation is executed at the clock frequency of the calling interval. As a specific example, C
At a PU clock frequency of 400 MHz and a system clock frequency of 80 MHz, the CPU model unit 103 is called for each system clock frequency. Each time this is called, the CPU clock frequency is equivalent to 5 clock signals (4
(00 MHz / 80 MHz = 5 MHz) is executed.

【0006】I/Oモデル部104は、CPUモデル部
103がI/O制御命令を実行することによって呼び出
されて、所定動作のシミュレーションを実行する。この
際、所定の動作が同一クロック信号で終了しない場合
は、シミュレーション制御部101にI/Oモデル部1
04が動作中であることを通知し、このイベント通知以
降はCPUモデル部103と同様に、一定間隔でシミュ
レーション制御部101から呼び出される。I/Oモデ
ル部104は、所定動作が終了すると、この終了をシミ
ュレーション制御部101に通知する。この終了後はI
/Oモデル部104が、シミュレーション制御部101
から呼び出されなくなる。また、I/Oモデル部104
からシミュレーション制御部101に割り込みが行われ
た場合は、シミュレーション制御部101がCPUモデ
ル部103に、その割り込みのイベントを通知する。
The I / O model unit 104 is called by the CPU model unit 103 executing an I / O control command, and executes a simulation of a predetermined operation. At this time, if the predetermined operation does not end with the same clock signal, the simulation control unit 101 is set to the I / O model unit 1
04 notifies that it is in operation, and after this event notification, it is called from the simulation control unit 101 at regular intervals, as in the CPU model unit 103. When the predetermined operation ends, the I / O model unit 104 notifies the simulation control unit 101 of this end. After this I
The / O model unit 104 is the simulation control unit 101.
Will not be called from. In addition, the I / O model unit 104
When the simulation control unit 101 is interrupted by, the simulation control unit 101 notifies the CPU model unit 103 of the event of the interrupt.

【0007】このように、CPUモデル部103及びI
/Oモデル部104が見かけ上で並列動作しながらシミ
ュレーションを実行する。なお、上記した図9のシミュ
レータに対し、複数のCPUが配置されたホストコンピ
ュータでは、CPUモデル部103とI/Oモデル部1
04とを複数のプロセス(又はスレッド)でシミュレー
ションを行うことによって、見かけ上ではなく、実際に
並列動作させて、高速シミュレーションを行うこともで
きる。
Thus, the CPU model unit 103 and I
The / O model unit 104 apparently operates in parallel while executing the simulation. In the host computer in which a plurality of CPUs are arranged, in contrast to the simulator of FIG. 9 described above, the CPU model unit 103 and the I / O model unit 1
By performing simulation with 04 and a plurality of processes (or threads), high-speed simulation can be performed by actually operating in parallel instead of appearance.

【0008】[0008]

【発明が解決しようとする課題】このような上記従来例
では、次の(1)、(2)、(3)の不都合がある。 (1)CPUモデル部103が常時動作している。従っ
て、無駄なループのシミュレーションを実行しており、
結果的にシミュレーション速度が低下する。これは、実
際の電子装置において、CPUと周辺I/O回路が、同
期を確立しながら動作するためである。すなわち、CP
Uは周辺I/O回路を起動した後に、いくつかの処理が
終了した時点で周辺I/O回路の処理が終了するまで待
機していることがある。この場合、ソースコード(ソー
スプログラム)のループ処理を行っている。
The above-mentioned conventional example has the following disadvantages (1), (2), and (3). (1) The CPU model unit 103 is always operating. Therefore, we are performing a wasteful loop simulation,
As a result, the simulation speed decreases. This is because in the actual electronic device, the CPU and the peripheral I / O circuit operate while establishing synchronization. That is, CP
After activating the peripheral I / O circuit, U may be waiting until the processing of the peripheral I / O circuit is completed when some processing is completed. In this case, the source code (source program) is looped.

【0009】図10は従来のソースコードを説明するた
めの図である。例えば、電子装置のCPUは、図10に
示すソースコードのループ処理を行う。この例では、周
辺I/O回路からの割り込みが発生した際に割り込みル
ーチンで変数「Interrupt」が「true」に
設定された後にループから外れることになる。
FIG. 10 is a diagram for explaining a conventional source code. For example, the CPU of the electronic device performs the loop processing of the source code shown in FIG. In this example, when the interrupt from the peripheral I / O circuit occurs, the variable "Interrupt" is set to "true" in the interrupt routine, and then the loop is exited.

【0010】(2)複数のCPUが設けられたホストコ
ンピュータ上でシミュレーションを行っている場合は、
生成されるプロセス(又はスレッド)よりもCPU数が
多ければ、シミュレーション速度は低下しない。しかし
ながら、シミュレーションを実行する電子装置が複数の
周辺I/O回路を備えた構成では、そのシミュレーショ
ン実行時に生成されるプロセス(又はスレッド)が、C
PU数よりも多くなればシミュレーション速度が低下し
てしまう。
(2) If the simulation is performed on a host computer provided with a plurality of CPUs,
If the number of CPUs is larger than the number of generated processes (or threads), the simulation speed does not decrease. However, in the configuration in which the electronic device that executes the simulation includes a plurality of peripheral I / O circuits, the process (or thread) generated during the execution of the simulation is C
If the number is larger than the number of PUs, the simulation speed will decrease.

【0011】(3)例えば、CPUモデル部が、シミュ
レーションを実行していない場合、シミュレーション結
果を更新しないため、CPUモデル部の待機中にシミュ
レーション情報が消失する場合があり、結果的に確実な
シミュレーションができなくなることがある。
(3) For example, when the CPU model section is not executing the simulation, the simulation result is not updated, so that the simulation information may be lost during the standby of the CPU model section, resulting in a reliable simulation. May not be possible.

【0012】本発明は、以上の点に着目してなされたも
ので、全体(総合的)のシミュレーションを高速化でき
る、動作検証シミュレーションの実行方法及びシミュレ
ーション実行装置並びにプログラムの提供を目的とす
る。
The present invention has been made in view of the above points, and an object thereof is to provide an operation verification simulation execution method, a simulation execution apparatus, and a program capable of accelerating the overall (comprehensive) simulation.

【0013】また、本発明は、シミュレーション情報が
消失しなくなって、その確実なシミュレーションが可能
になる、動作検証シミュレーションの実行方法及びシミ
ュレーション実行装置並びにプログラムの提供を他の目
的とする。
Another object of the present invention is to provide an execution method, a simulation execution device, and a program of an operation verification simulation, in which simulation information is not lost and a reliable simulation can be performed.

【0014】[0014]

【課題を解決するための手段】上記課題を達成するため
に、本発明の動作検証シミュレーションの実行方法は、
制御系の処理をモデル化した制御系モデル部と、制御系
モデル部への動作を設定するモデル動作設定部と、シミ
ュレーション対象装置の周辺入出力をモデル化した少な
くとも一つの入出力モデル部とを有して動作検証シミュ
レーションを実行するものであり、入出力モデル部が動
作した後の所定タイミングで、制御系モデル部をモデル
動作設定部が待機状態に設定してシミュレーションを省
略する段階と、入出力モデル部からの割り込みを含むイ
ベント通知をモデル動作設定部が認識する段階と、モデ
ル動作設定部の認識後に、制御系モデル部をモデル動作
設定部によって動作状態に戻してシミュレーションを再
開する段階とを有することを特徴とし、また、入出力モ
デル部が動作した後の所定タイミングが、アドレス記憶
部に設定されているアドレス値に基づくものであること
を特徴としている。
In order to achieve the above object, the execution method of the operation verification simulation of the present invention is
A control system model part that models the processing of the control system, a model operation setting part that sets the operation to the control system model part, and at least one input / output model part that models the peripheral input / output of the simulation target device. In order to execute the operation verification simulation, the model operation setting unit sets the control system model unit to the standby state at a predetermined timing after the input / output model unit operates, and the simulation is skipped. A step in which the model operation setting section recognizes an event notification including an interrupt from the output model section; and a step in which after the model operation setting section is recognized, the control system model section is returned to the operating state by the model operation setting section and the simulation is restarted. In addition, a predetermined timing after the input / output model section is operated is set in the address storage section. It is characterized in that is based on the address value.

【0015】上記した本発明の方法では、制御系モデル
部が入出力モデル部からの割り込みの待機状態におい
て、処理上で意味がないループを実行している場合に、
制御系モデル部のシミュレーションを省略することがで
きる。この結果、全体の動作検証シミュレーションが高
速化される。
In the above-described method of the present invention, when the control system model section is executing a loop meaningless in processing in a waiting state for an interrupt from the input / output model section,
The simulation of the control system model part can be omitted. As a result, the whole operation verification simulation is speeded up.

【0016】また、本発明の動作検証シミュレーション
の実行方法は、シミュレーションの制御を行うシミュレ
ーション制御部と、制御系の処理をモデル化した制御系
モデル部と、シミュレーション実行における統計情報を
記憶する統計情報記憶部と、シミュレーション対象装置
の周辺入出力をモデル化した少なくとも一つの入出力モ
デル部とを有して動作検証シミュレーションを実行する
ものであり、入出力モデル部が動作した後の所定タイミ
ングで、シミュレーション制御部の制御によって、制御
系モデル部のシミュレーション結果を統計情報記憶部に
記憶する段階と、この記憶後に、制御系モデル部のシミ
ュレーションの実行に代えた統計情報記憶部における記
憶情報に基づくシミュレーション結果を、シミュレーシ
ョン制御部の制御で更新する段階と、シミュレーション
制御部が、入出力モデル部からの割り込みを含むイベン
ト通知を認識する段階と、この認識の後に、制御系モデ
ル部がシミュレーションを実行していない場合に当該シ
ミュレーションを再開する段階とを有することを特徴と
し、かつ、入出力モデル部が動作した後の所定タイミン
グが、アドレス記憶部に設定されているアドレス値に基
づくものであることを特徴としている。
Further, the execution method of the operation verification simulation of the present invention includes a simulation control section for controlling the simulation, a control system model section for modeling the processing of the control system, and statistical information for storing statistical information in the simulation execution. A memory unit and at least one input / output model unit that models the peripheral input / output of the simulation target device are used to execute the operation verification simulation. At a predetermined timing after the input / output model unit operates, A step of storing the simulation result of the control system model section in the statistical information storage section under the control of the simulation control section, and a simulation based on the stored information in the statistical information storage section after the storage, instead of executing the simulation of the control system model section. The result is controlled by the simulation controller. The step of updating, the step of the simulation control unit recognizing the event notification including the interrupt from the input / output model unit, and the recognition system is restarted after the recognition when the control system model unit is not executing the simulation. And a predetermined timing after the operation of the input / output model section is based on the address value set in the address storage section.

【0017】上記した本発明の方法では、制御系モデル
部が、シミュレーションを実行していない場合にも、統
計情報記憶部の記憶情報を用いたシミュレーション結果
を更新しているため、制御系モデル部が待機中に、前記
した発明(請求項1)では、消失していたシミュレーシ
ョン情報が、本発明(請求項3)では消失しなくなっ
て、その確実な動作検証シミュレーションが実行され
る。
In the above-described method of the present invention, the control system model unit updates the simulation result using the stored information in the statistical information storage unit even when the simulation is not executed. While waiting, the simulation information that has been lost in the invention (claim 1) described above is not lost in the invention (claim 3), and the reliable operation verification simulation is executed.

【0018】本発明のシミュレーション実行装置は、制
御系の処理をモデル化した制御系モデル手段と、シミュ
レーション制御を実行するためのシミュレーション制御
手段と、シミュレーション対象装置の周辺入出力をモデ
ル化した少なくとも一つの入出力モデル手段と、シミュ
レーション制御手段と連動して制御系モデル手段の動作
を設定する動作設定手段とを有し、シミュレーション制
御手段及び動作設定手段によって、入出力モデル手段の
動作後の所定タイミングで、制御系モデル手段を待機状
態に動作設定してシミュレーションを省略し、入出力モ
デル手段からの割り込みを含むイベント通知の認識後に
制御系モデル手段を動作状態に戻す設定を行うことを特
徴としている。
The simulation execution apparatus of the present invention is a control system model means for modeling the processing of the control system, a simulation control means for executing the simulation control, and at least one modeled peripheral input / output of the simulation target apparatus. One input / output model means and an operation setting means for setting the operation of the control system model means in cooperation with the simulation control means. The simulation control means and the operation setting means provide predetermined timing after the operation of the input / output model means. Then, the control system model means is set to the standby state, the simulation is omitted, and the control system model means is set back to the operating state after the recognition of the event notification including the interrupt from the input / output model means. .

【0019】さらに、本発明のシミュレーション実行装
置は、制御系の処理をモデル化した制御系モデル手段
と、シミュレーション制御を実行するためのシミュレー
ション制御手段と、シミュレーション実行における結果
の統計情報を記憶する統計情報記憶手段と、シミュレー
ション対象装置の周辺入出力をモデル化した少なくとも
一つの入出力モデル手段とを有し、シミュレーション制
御手段の制御によって、入出力モデル部の動作後の所定
タイミングで、制御系モデル手段のシミュレーション結
果を統計情報記憶手段に記憶し、この記憶後に統計情報
に基づいたシミュレーション結果を更新し、かつ、入出
力モデル手段からの割り込みを含むイベント通知の認識
後に、制御系モデル手段がシミュレーションを実行して
いない場合に、当該制御系モデル手段を動作状態に戻す
設定を行うことを特徴としている。
Further, the simulation executing apparatus of the present invention is a control system model means for modeling the processing of the control system, a simulation control means for executing the simulation control, and a statistic for storing statistical information of the result of the simulation execution. The control system model has an information storage unit and at least one input / output model unit that models the peripheral input / output of the simulation target device, and is controlled by the simulation control unit at a predetermined timing after the operation of the input / output model unit. The control system model means performs simulation after storing the simulation result of the means in the statistical information storage means, updating the simulation result based on the statistical information after the storage, and recognizing the event notification including the interrupt from the input / output model means. Is not running It is characterized by performing the setting for returning the control system model unit into operation.

【0020】上記した本発明の装置では、前記した方法
の発明と同様に、全体のシミュレーションが高速化され
るとともに、確実な動作検証シミュレーションが実行さ
れる。
In the above-described apparatus of the present invention, as in the case of the above-described method invention, the speed of the whole simulation is increased and a reliable operation verification simulation is executed.

【0021】また、本発明のプログラムは、動作検証シ
ミュレーションにおける次の制御を実質的なコンピュー
タが実行するものである。入出力モデル部が動作した後
の所定タイミングで、制御系モデル部をモデル動作設定
部が待機状態に動作設定してシミュレーションを省略す
る制御、入出力モデル部からの割り込みを含むイベント
通知をモデル動作設定部が認識する制御、モデル動作設
定部の認識後に制御系モデル部を、モデル動作設定部に
よって動作状態に戻してシミュレーションを再開する制
御。
Further, the program of the present invention causes a computer to execute the following control in the operation verification simulation. At a predetermined timing after the I / O model unit operates, the model operation setting unit sets the control system model unit to the standby state to omit the simulation, and the event notification including the interrupt from the I / O model unit is modeled Control recognized by the setting unit, control for returning the control system model unit to the operating state by the model operation setting unit and restarting simulation after the model operation setting unit is recognized.

【0022】さらに、本発明のプログラムは、動作検証
シミュレーションにおける次の制御を実質的なコンピュ
ータが実行するものである。入出力モデル部が動作した
後の所定タイミングで、シミュレーション制御部の制御
によって制御系モデル部のシミュレーション結果を統計
情報記憶部に記憶する制御、この後に前記制御系モデル
部のシミュレーションの実行に代えた前記統計情報記憶
部における記憶情報に基づくシミュレーション結果を、
前記シミュレーション制御部の制御で更新する制御、前
記シミュレーション制御部が、前記入出力モデル部から
の割り込みを含むイベント通知を認識する制御、この認
識後に、前記制御系モデル部がシミュレーションを実行
していない場合に、当該制御系モデル部を動作状態に戻
す制御。
Further, the program of the present invention causes a computer to substantially execute the following control in the operation verification simulation. At a predetermined timing after the operation of the input / output model unit, the simulation control unit controls the simulation result of the control system model unit to be stored in the statistical information storage unit. The simulation result based on the stored information in the statistical information storage unit,
Update control under the control of the simulation control unit, control in which the simulation control unit recognizes an event notification including an interrupt from the input / output model unit, and after this recognition, the control system model unit does not execute simulation In this case, control for returning the control system model section to the operating state.

【0023】上記した本発明のプログラムでは、本発明
を、情報記録媒体、例えば、パッケージソフトウェアと
して提供可能になり、本発明の動作検証シミュレーショ
ンがコンピュータや専用装置で実行できるようになっ
て、その汎用性が向上する。
With the above-described program of the present invention, the present invention can be provided as an information recording medium, for example, package software, and the operation verification simulation of the present invention can be executed by a computer or a dedicated device. The property is improved.

【0024】[0024]

【発明の実施の形態】次に、本発明の動作検証シミュレ
ーションの実行方法及びシミュレーション実行装置並び
にプログラムの実施形態を図面参照の上で詳細に説明す
る。 〈第1実施形態〉この第1実施形態は、前記した目的
(全体(総合的)の動作検証シミュレーションの高速化
を図る)に対応したものである。図1は本発明の第1実
施形態におけるシミュレータの構成を示すブロック図で
ある。図1において、この例は、電子装置(プリンタや
ファクシミリ機)における動作検証シミュレーションの
制御を実行するためのシミュレーション制御部201
(請求項におけるシミュレーション制御部/手段)とと
もに、ユーザ装置(動作検証シミュレーションを行うコ
ンピュータや専用装置)とのインタフェース接続を行う
ユーザI/F部202、及びCPUモデル部203(請
求項における制御系モデル部/手段)がバスラインに接
続して構成されている。
BEST MODE FOR CARRYING OUT THE INVENTION Next, an embodiment of an operation verification simulation executing method, a simulation executing apparatus, and a program of the present invention will be described in detail with reference to the drawings. <First Embodiment> This first embodiment corresponds to the above-described object (to speed up the overall (comprehensive) operation verification simulation). FIG. 1 is a block diagram showing the configuration of the simulator according to the first embodiment of the present invention. In FIG. 1, this example shows a simulation control unit 201 for executing control of operation verification simulation in an electronic device (printer or facsimile machine).
(Simulation control unit / means in claims), a user I / F unit 202 for interface connection with a user device (computer or dedicated device for performing operation verification simulation), and CPU model unit 203 (control system model in claims) Part / means) is connected to the bus line.

【0025】さらに、このシミュレータは、シミュレー
ションを実行するCPU(請求項における制御系に対応
/マイクロコンピュータや専用制御装置を含む)を備え
た電子装置の周辺I/O回路数に対応して設けられるI
/Oモデル部204(請求項における入出力モデル部/
手段)とともに、モデル動作を設定するためのモデル動
作設定部205、及び動作が省略されるアドレス値を予
め記憶しているアドレス記憶部206がそれぞれバスラ
インに接続して構成されている。
Further, this simulator is provided in correspondence with the number of peripheral I / O circuits of an electronic device having a CPU (corresponding to the control system in the claims / including a microcomputer and a dedicated control device) for executing a simulation. I
/ O model unit 204 (the input / output model unit in the claims /
Unit), a model operation setting unit 205 for setting a model operation, and an address storage unit 206 that stores in advance an address value at which an operation is omitted are connected to a bus line.

【0026】次に、第1実施形態の動作(処理)につい
て説明する。モデル動作設定部205は、CPUモデル
部203の実行アドレスが、アドレス記憶部206に記
憶しているアドレス値になった場合に(請求項における
「アドレスの値に基づくもの」に対応)、CPUモデル
部203を待機状態に設定してシミュレーションを実行
しないようにする。
Next, the operation (processing) of the first embodiment will be described. The model operation setting unit 205, when the execution address of the CPU model unit 203 reaches the address value stored in the address storage unit 206 (corresponding to “the one based on the address value” in the claims), the CPU model The unit 203 is set to the standby state so that the simulation is not executed.

【0027】また、モデル動作設定部205は、CPU
モデル部203が待機状態の間に、I/Oモデル部20
4のシミュレーションのみを実行し、そして、I/Oモ
デル部204から割り込みイベントがCPUモデル部2
03に通知されると、CPUモデル部203を動作状態
に設定して、CPUモデル部203のシミュレーション
を再開する。
The model operation setting unit 205 is a CPU
While the model unit 203 is in the standby state, the I / O model unit 20
4 simulation is executed, and the interrupt event is sent from the I / O model unit 204 to the CPU model unit 2
When 03 is notified, the CPU model unit 203 is set to the operating state and the simulation of the CPU model unit 203 is restarted.

【0028】アドレス記憶部206は、前記した動作が
省略されるアドレス値として、予めCPUが実行するフ
ァームウェアプログラムのI/Oモデル部204の動作
終了を待機する部分のアドレス値を予め調べて記憶して
いる。
The address storage unit 206 preliminarily examines and stores the address value of the portion of the firmware program executed by the CPU that waits for the end of the operation of the I / O model unit 204, as the address value at which the above-described operation is omitted. ing.

【0029】次に、この第1実施形態の全体(総合的)
の動作検証シミュレーションについて詳細に説明する。
図2は第1実施形態における動作検証シミュレーション
の処理手順を示すフローチャートである。図1及び図2
において、シミュレーション制御部201は、設定され
た間隔でクロック信号の進みに基づいてループ処理を実
行する。まず、このループ内で、シミュレーション制御
部201が、設定された間隔分のクロック信号が進み
(ステップS301)、CPUモデル部203が動作中
か待機中かを判定する(ステップS302)。ここで動
作中の判定の場合(S302:Yes)、シミュレーシ
ョン制御部201が、CPUモデル部203を呼び出
し、この後で説明する図3に示すAサブルーチンを実行
する(ステップS303)。
Next, the whole (comprehensive) of the first embodiment
The operation verification simulation will be described in detail.
FIG. 2 is a flowchart showing the processing procedure of the operation verification simulation in the first embodiment. 1 and 2
In, the simulation control unit 201 executes the loop processing based on the advance of the clock signal at the set interval. First, in this loop, the simulation control unit 201 determines whether the clock signal for the set interval advances (step S301) and the CPU model unit 203 is operating or waiting (step S302). If it is determined that the operation is in progress (S302: Yes), the simulation control unit 201 calls the CPU model unit 203 and executes the A subroutine shown in FIG. 3 described later (step S303).

【0030】次に、シミュレーション制御部201は、
I/Oモデル部204が動作中か待機中かを判定する
(ステップS304)。ここで動作中の判定の場合(S
304:Yes)、シミュレーション制御部201が、
I/Oモデル部204を呼び出し、この後で説明する図
4に示すBサブルーチンを実行する(ステップS30
5)。さらに、ユーザ装置(動作検証シミュレーション
を実行するコンピュータや専用装置)に対するユーザ
(動作検証シミュレーション実行者)からのシミュレー
ション終了指定の有無を判断し、終了指定があった場合
(S306:Yes)、そのシミュレーションが終了と
なる(ステップS306)。
Next, the simulation controller 201
It is determined whether the I / O model unit 204 is in operation or in standby (step S304). Here, in the case of determination during operation (S
304: Yes), the simulation control unit 201
The I / O model unit 204 is called, and the B subroutine shown in FIG. 4 described later is executed (step S30).
5). Furthermore, it is determined whether or not the user (operation verification simulation executor) has designated the end of the simulation for the user device (the computer or the dedicated device that executes the operation verification simulation). Ends (step S306).

【0031】また、ステップS306で、終了指定がな
かった場合(S306:No)、ステップS301にリ
ターンして、以降の処理を再実行する。また、ステップ
S302,S303で、それぞれ動作中でない場合(S
302:No,S303:No)、ステップS306の
処理(シミュレーション終了指定の有無を判断)を実行
する。
If the end is not designated in step S306 (S306: No), the process returns to step S301 to re-execute the subsequent processing. In addition, in steps S302 and S303, if each is not in operation (S
302: No, S303: No), and the process of step S306 (whether or not the simulation end is designated is determined) is executed.

【0032】次に、図2中のAサブルーチン(呼び出し
処理)を詳細に説明する。図3は図2中のAサブルーチ
ンの詳細なフローチャートである。図1から図3におい
て、図2中のステップS303では、まず、シミュレー
ション制御部201によって呼び出されたCPUモデル
部203が、設定されたクロック間隔でCPUが動作で
きる回数(例えば、CPUクロック周波数400MHz
/システムクロック周波数80MHz=5MHz)を図
示しないカウンタに設定し(ステップS303a)、I
/Oモデル部204から割り込みイベントが通知されて
いるか否かを判定し(ステップS303b)、ここでイ
ベントが通知されている場合(Yes)、実行アドレス
値を割り込み処理アドレス値に変更する(ステップS3
03c)。
Next, the A subroutine (call processing) in FIG. 2 will be described in detail. FIG. 3 is a detailed flowchart of the A subroutine in FIG. 1 to 3, in step S303 in FIG. 2, first, the CPU model unit 203 called by the simulation control unit 201 determines how many times the CPU can operate at a set clock interval (for example, a CPU clock frequency of 400 MHz).
/ System clock frequency 80 MHz = 5 MHz) is set in a counter not shown (step S303a), and I
It is determined whether or not the interrupt event is notified from the / O model unit 204 (step S303b), and if the event is notified here (Yes), the execution address value is changed to the interrupt processing address value (step S3).
03c).

【0033】次に、シミュレーション制御部201は、
前記のカウンタ値を調べて(ステップS303d)、そ
の値が「ゼロ」でない場合(No)、CPUの命令実行
をシミュレーションする(ステップS303e)。この
場合、実行された命令がI/O制御命令によってI/O
モデル部204が待機状態の場合は、シミュレーション
制御部201が、I/Oモデル部204を動作中に設定
する。なお、前記のカウンタ値が「ゼロ」の場合(S3
03d:Yes)、CPUモデル部203の処理を終了
する。
Next, the simulation controller 201
The counter value is checked (step S303d), and if the value is not "zero" (No), CPU instruction execution is simulated (step S303e). In this case, the executed instruction is I / O controlled by the I / O control instruction.
When the model unit 204 is in the standby state, the simulation control unit 201 sets the I / O model unit 204 in operation. When the counter value is "zero" (S3
03d: Yes), and the processing of the CPU model unit 203 ends.

【0034】さらに、シミュレーション制御部201
は、次の実行アドレス値がアドレス記憶部206に記憶
されているアドレス値か否かを判定する(ステップS3
03f)。ここで実行アドレス値がアドレス記憶部20
6に記憶されているアドレス値でない場合(S303
f:No)、ステップS303dにリターンし、また、
記憶されているアドレス値の場合(S303f:Ye
s)、CPUモデル部203を待機状態に設定して終了
となる(ステップS303g)。なお、ステップS30
3f,S303gでは、アドレス記憶部206と現時点
での実行アドレス値とを比較し、CPUモデル部203
の動作を省略したいアドレス値に達していれば、CPU
モデル部203を待機状態に設定するものである。
Further, the simulation controller 201
Determines whether the next execution address value is the address value stored in the address storage unit 206 (step S3).
03f). Here, the execution address value is the address storage unit 20.
If the address value is not stored in 6 (S303
f: No), the process returns to step S303d, and
In case of stored address value (S303f: Ye
s), the CPU model unit 203 is set to the standby state and the process ends (step S303g). Note that step S30
In 3f and S303g, the address storage unit 206 is compared with the current execution address value, and the CPU model unit 203
If the address value you want to skip is reached, the CPU
The model unit 203 is set to a standby state.

【0035】次に、図2中のBサブルーチン(呼び出し
処理)を詳細に説明する。図4は図2中のBサブルーチ
ンの詳細なフローチャートである。図1、図2及び図4
において、図2中のステップS305では、まず、シミ
ュレーション制御部201によって呼び出されたI/O
モデル部204が、クロック信号間隔でI/O動作可能
回数を図示しないカウンタに設定する(ステップS30
5a)。次に、カウンタ値を調べ(ステップS305
b)、カウンタ値が「ゼロ」でなければ(S305b:
No)、I/Oモデル部204のシミュレーションを実
行する(ステップS305c)。このシミュレーション
結果でI/Oモデル部204から割り込みイベントが発
生したか否かをシミュレーション制御部201が判定す
る(ステップS305d)。
Next, the B subroutine (call processing) in FIG. 2 will be described in detail. FIG. 4 is a detailed flowchart of the B subroutine in FIG. 1, 2 and 4
2, in step S305 in FIG. 2, first, the I / O called by the simulation control unit 201 is called.
The model unit 204 sets the number of I / O operations possible in a counter (not shown) at clock signal intervals (step S30).
5a). Next, the counter value is checked (step S305
b), if the counter value is not "zero" (S305b:
No), the simulation of the I / O model unit 204 is executed (step S305c). Based on the simulation result, the simulation control unit 201 determines whether or not an interrupt event has occurred from the I / O model unit 204 (step S305d).

【0036】割り込みイベントが発生した場合(S30
5d:Yes)、シミュレーション制御部201が、C
PUモデル部203に割り込みイベントを通知し、CP
Uモデル部203を動作に変更設定してステップS30
5bにリターンする(ステップS305e)。この場
合、CPUモデル部203が待機中の場合は動作状態に
戻す設定を行う。ステップS305cでカウンタ値が
「ゼロ」の場合(Yes)、シミュレーション制御部2
01がI/Oモデル部204の所定動作が終了している
か否かを判定し(ステップS305f)、終了している
場合(Yes)、I/Oモデル部204を待機状態に設
定した後に終了となる(ステップS305g)。なお、
ステップS305fでI/Oモデル部204の所定動作
が終了していない場合(No)も終了となる。
When an interrupt event occurs (S30
5d: Yes), the simulation control unit 201 displays C
The PU model unit 203 is notified of the interrupt event, and the CP
Step S30 after changing and setting the U model unit 203 to the operation
It returns to 5b (step S305e). In this case, when the CPU model unit 203 is on standby, the setting for returning to the operating state is made. If the counter value is “zero” in step S305c (Yes), the simulation control unit 2
01 determines whether or not the predetermined operation of the I / O model unit 204 is completed (step S305f), and if it is completed (Yes), the I / O model unit 204 is set to the standby state and then the operation is terminated. (Step S305g). In addition,
If the predetermined operation of the I / O model unit 204 is not completed in step S305f (No), the operation is also completed.

【0037】このように、この第1実施形態の動作検証
シミュレーションでは、CPUモデル部203が、I/
Oモデル部204からの割り込みの待機状態において、
処理上で意味のないループを処理している場合に、CP
Uモデル部203のシミュレーションを省略することが
できる。この結果、全体の動作検証シミュレーションを
高速化できることになる。
As described above, in the operation verification simulation of the first embodiment, the CPU model unit 203 makes the I / O
In the waiting state of the interrupt from the O model unit 204,
When processing a meaningless loop, CP
The simulation of the U model unit 203 can be omitted. As a result, the speed of the whole operation verification simulation can be increased.

【0038】〈第2実施形態〉この第2実施形態は、前
記した他の目的(シミュレーション情報の消失を阻止
し、その確実な動作検証シミュレーションを可能にす
る)に対応するものである。図5は本発明の第2実施形
態における構成を示すブロック図である。図5におい
て、この第2実施形態例は、シミュレーション制御を実
行するシミュレーション制御部401(請求項における
シミュレーション制御部/手段)とともに、ユーザ装置
とのインタフェース接続を行うためのユーザI/F部4
02と、CPUモデル部403(請求項における制御系
モデル部/手段)、及びシミュレーションを実行する、
例えば、CPU(請求項における制御系に対応/マイク
ロコンピュータや専用制御装置を含む)を備えた電子装
置の周辺I/O回路数に対応して設けられるI/Oモデ
ル部404(請求項における入出力モデル部/手段)が
バスラインに接続して設けられている。
<Second Embodiment> This second embodiment corresponds to the above-described other purpose (prevents loss of simulation information and enables reliable operation verification simulation). FIG. 5 is a block diagram showing the configuration of the second embodiment of the present invention. In FIG. 5, in the second embodiment, a user I / F unit 4 for performing interface connection with a user device is provided together with a simulation control unit 401 (simulation control unit / means in claims) for executing simulation control.
02, a CPU model unit 403 (control system model unit / means in claims), and a simulation,
For example, an I / O model unit 404 (input / output in the claims is provided corresponding to the number of peripheral I / O circuits of an electronic device having a CPU (corresponding to the control system in the claims / including a microcomputer and a dedicated controller)) An output model unit / means) is connected to the bus line.

【0039】さらに、この第2実施形態例は、統計情報
を一時的に記憶する統計情報記憶部(2)405(請求
項における統計情報記憶部/手段)とともに、アドレス
記憶部406、及びシミュレーション全体の統計情報を
収集して記憶する統計情報記憶部(1)407がそれぞ
れバスラインに接続して構成されている。
Further, in the second embodiment, the statistical information storage unit (2) 405 (statistical information storage unit / means in claims) for temporarily storing statistical information, the address storage unit 406, and the entire simulation are used. The statistical information storage unit (1) 407 that collects and stores the statistical information of 1 is connected to each bus line.

【0040】なお、統計情報は、実行された命令数やキ
ャッシュヒット率など、シミュレーションを行うファー
ムウェアプログラムによって実行されるCPUの命令数
などである。アドレス記憶部406は、図示しない電子
装置のCPUが実行するファームウェアプログラムのI
/Oモデル部404の動作終了後の、その待機状態をア
ドレス値で記憶し、また、シミュレーションを省略した
いシミュレーションプログラムのアドレス値及び終了さ
せたいファームウェアプログラムのアドレス値を予め記
憶している。
The statistical information is the number of instructions executed by the firmware program for simulation, such as the number of executed instructions and the cache hit rate. The address storage unit 406 is a firmware program I executed by a CPU of an electronic device (not shown).
The standby state after the operation of the / O model unit 404 is stored as an address value, and the address value of the simulation program for which the simulation is to be omitted and the address value of the firmware program for which the simulation is to be ended are stored in advance.

【0041】次に、第2実施形態の動作(処理)につい
て説明する。図5において、この第2実施形態のシミュ
レータでは、CPUモデル部403の実行アドレス値が
記憶しているアドレス値に達した際には、同一の繰り返
し処理におけるループの1回目の処理時のみシミュレー
ションを実行する。このシミュレーション結果の統計情
報を統計情報記憶部405に記憶する。これ以降は、C
PUモデル部403が呼び出された際にシミュレーショ
ンを実行せずに、記憶しておいた統計情報によってシミ
ュレーション結果の更新のみを実行する。I/Oモデル
部404から割り込みイベントがCPUモデル部403
に通知されたら、このCPUモデル部403がシミュレ
ーションを再開する。
Next, the operation (processing) of the second embodiment will be described. In FIG. 5, in the simulator of the second embodiment, when the execution address value of the CPU model unit 403 reaches the stored address value, the simulation is performed only during the first loop processing in the same repetitive processing. Run. The statistical information of this simulation result is stored in the statistical information storage unit 405. After this, C
The simulation is not executed when the PU model unit 403 is called, and only the simulation result is updated by the stored statistical information. The interrupt event from the I / O model unit 404 is the CPU model unit 403.
Is notified, the CPU model unit 403 restarts the simulation.

【0042】次に、この第2実施形態の全体(総合的)
の動作検証シミュレーションを詳細に説明する。図6は
第2実施形態における動作検証シミュレーションの処理
手順を示すフローチャートである。図5及び図6におい
て、シミュレーション制御部401は、設定された間隔
でクロック信号が進み、ステップS501〜S505の
ループ処理を実行する。このループ処理では、まず、設
定された間隔分クロック信号を進めて(ステップS50
1)、次に、シミュレーション制御部401によってC
PUモデル部403が呼び出され、以降で詳細に説明す
る図7に示すCサブルーチンを実行する(ステップS5
02)。
Next, the whole (comprehensive) of the second embodiment
The operation verification simulation will be described in detail. FIG. 6 is a flowchart showing the processing procedure of the operation verification simulation in the second embodiment. In FIGS. 5 and 6, the simulation control unit 401 executes the loop processing of steps S501 to S505 when the clock signal advances at the set interval. In this loop processing, first, the clock signal is advanced by the set interval (step S50).
1) Next, the simulation control unit 401
The PU model unit 403 is called, and the C subroutine shown in FIG. 7 described in detail below is executed (step S5).
02).

【0043】このサブルーチンの後に、シミュレーショ
ン制御部401がI/Oモデル部404が動作中か否か
を判定し(ステップS503)、動作中の場合(Ye
s)、I/Oモデル部404を呼び出し、以降で詳細に
説明する図8に示すDサブルーチンを実行する(ステッ
プS504)。このDサブルーチンの後に、シミュレー
ション制御部401が、ユーザからのユーザ装置に対す
る終了指定があるか否かを判定し(ステップS50
5)、終了指定があった場合(Yes)は、その処理を
終了する。なお、ステップS503で動作中でない場合
(No)、ステップS505において、ユーザからのユ
ーザ装置に対する終了指定を判断して終了となる。
After this subroutine, the simulation control unit 401 determines whether the I / O model unit 404 is in operation (step S503). If it is in operation (Yes)
s), the I / O model unit 404 is called, and the D subroutine shown in FIG. 8 described in detail below is executed (step S504). After this D subroutine, the simulation control unit 401 determines whether or not the user has designated termination of the user device (step S50).
5) If the end is designated (Yes), the process ends. In addition, when it is not in operation in step S503 (No), in step S505, the end designation is judged from the user to the user device, and the process ends.

【0044】次に、図6中のCサブルーチン(呼び出し
処理)を詳細に説明する。図7は図6中のAサブルーチ
ンの詳細なフローチャートである。図5から図7におい
て、図6中のステップS502では、シミュレーション
制御部401によって呼び出されたCPUモデル部40
3は、まず、設定されたクロック間隔でCPUが動作で
きる回数を、図示しないユーザ装置のカウンタに設定し
(ステップS504a)、I/Oモデル部404から割
り込みイベントが通知されたか否かを判定し(ステップ
S504b)、イベント通知が行われている場合(Ye
s)、実行アドレス値を割り込み処理のアドレス値に変
更し(ステップS504c)、さらに、動作状態が統計
情報を使用しない通常のシミュレーションに設定され
る。
Next, the C subroutine (call processing) in FIG. 6 will be described in detail. FIG. 7 is a detailed flowchart of the A subroutine in FIG. 5 to 7, in step S502 in FIG. 6, the CPU model unit 40 called by the simulation control unit 401.
3 first sets the number of times the CPU can operate at the set clock interval in the counter of the user device (not shown) (step S504a), and determines whether or not an interrupt event is notified from the I / O model unit 404. (Step S504b), if the event notification is performed (Yes
s), the execution address value is changed to the interrupt processing address value (step S504c), and the operation state is set to a normal simulation that does not use statistical information.

【0045】次に、シミュレーション制御部401は、
前記したカウンタ値を調べ(ステップS504d)、こ
のカウンタ値が「ゼロ」でない場合(Yes)、現在の
動作状態を次の(1)、(2)、(3)に振り分ける
(ステップS504e)。 (1)動作状態 動作状態が統計情報を使用しない通常のシミュレーショ
ンの場合(ステップS504f,S504g,S504
h)。 (2)動作状態 アドレス記憶部406で設定されたアドレス値以降の処
理が、1回目に行う状態であった場合(ステップS50
4i,S504j,S504k,S504l)。 (3)動作状態 アドレス記憶部406で設定されたアドレス値以降の処
理を2回目に行う状態であった場合(ステップS504
m)。 (1)動作状態では、シミュレーション制御部401に
よって、まず、命令実行をシミュレーションし(ステッ
プS504f)、この命令実行がI/O制御命令であ
り、I/Oモデル部404が待機状態の場合に、そのI
/Oモデル部404が動作中に設定される。さらに、次
の実行アドレス値がアドレス記憶部406に記憶されて
いるアドレス値か否かを判定する(ステップS504
g)。実行アドレス値がアドレス記憶部406に記憶さ
れているアドレス値でない場合(S504g:No)、
ステップS504dにリターンする。実行アドレス値が
アドレス記憶部406に記憶されているアドレス値の場
合(S504g:Yes)、前記した動作状態(ステッ
プS504i〜S504l)に変更してステップS50
4dにリターンする(ステップS504h)。
Next, the simulation controller 401
The above-mentioned counter value is checked (step S504d), and if this counter value is not "zero" (Yes), the current operating state is sorted into the following (1), (2), and (3) (step S504e). (1) Operating state When the operating state is a normal simulation that does not use statistical information (steps S504f, S504g, S504)
h). (2) When the process after the address value set in the operating state address storage unit 406 is in the first state (step S50)
4i, S504j, S504k, S504l). (3) When it is in the state where the processing after the address value set in the operation state address storage unit 406 is performed for the second time (step S504)
m). (1) In the operating state, the simulation control unit 401 first simulates instruction execution (step S504f), and when this instruction execution is an I / O control instruction and the I / O model unit 404 is in a standby state, That I
The / O model unit 404 is set during operation. Further, it is determined whether or not the next execution address value is the address value stored in the address storage unit 406 (step S504).
g). When the execution address value is not the address value stored in the address storage unit 406 (S504g: No),
The process returns to step S504d. When the execution address value is the address value stored in the address storage unit 406 (S504g: Yes), the operation state is changed to the above-described operation state (steps S504i to S504l) and the step S50 is performed.
It returns to 4d (step S504h).

【0046】(2)動作状態では、前記命令実行をシミ
ュレーションし(ステップS504i)、統計情報記憶
部405にシミュレーション結果を記憶する(ステップ
S504j)。次に、実行アドレス値がアドレス記憶部
406に記憶されているアドレス値か否かを判断する
(ステップS504k)。実行アドレス値がアドレス記
憶部406に記憶されているアドレス値でない場合(S
504k:No)、ステップS504dにリターンす
る。実行アドレス値がアドレス記憶部406に記憶され
ているアドレス値の場合(S504k:Yes)、前記
した動作状態(ステップS504m)に変更してステッ
プS504dにリターンする(ステップS504l)。
(2) In the operating state, the instruction execution is simulated (step S504i), and the simulation result is stored in the statistical information storage unit 405 (step S504j). Next, it is determined whether the execution address value is the address value stored in the address storage unit 406 (step S504k). When the execution address value is not the address value stored in the address storage unit 406 (S
504k: No), and returns to step S504d. When the execution address value is the address value stored in the address storage unit 406 (S504k: Yes), the operation state is changed to the above-described operation state (step S504m) and the process returns to step S504d (step S504l).

【0047】(3)動作状態では、統計情報記憶部40
5に記憶されている統計情報に基づいてシミュレーショ
ン結果の更新を行い、ステップS504dにリターンす
る(ステップS504m)。これらの処理によってカウ
ンタ値「ゼロ」の場合(S504d:No)、その処理
を終了する。
(3) In the operating state, the statistical information storage unit 40
The simulation result is updated based on the statistical information stored in step S5, and the process returns to step S504d (step S504m). When the counter value is "zero" by these processes (S504d: No), the process ends.

【0048】次に、図6中のDサブルーチン(呼び出し
処理)を詳細に説明する。図8は図6中のDサブルーチ
ンの詳細なフローチャートである。図5、図6及び図8
において、図6中のステップS504では、呼び出され
たI/Oモデル部404は、設定されたクロック間隔
で、図示しない電子装置のI/O回路が動作できる回数
をカウンタに設定する(ステップS504a)。次に、
図示しないユーザ装置のカウンタ値を調べる(ステップ
S504b)。この調べでカウンタ値が「ゼロ」でなけ
れば(No)、I/Oモデル部404の動作をシミュレ
ーションする(ステップS504c)。
Next, the D subroutine (call processing) in FIG. 6 will be described in detail. FIG. 8 is a detailed flowchart of the D subroutine in FIG. 5, 6 and 8
In step S504 in FIG. 6, the called I / O model unit 404 sets the number of times the I / O circuit of the electronic device (not shown) can operate at the set clock interval in the counter (step S504a). . next,
The counter value of the user device (not shown) is checked (step S504b). If the counter value is not “zero” in this check (No), the operation of the I / O model unit 404 is simulated (step S504c).

【0049】次に、シミュレーション制御部401は、
シミュレーション結果でI/Oモデル部404からの割
り込みが発生したか否かを判定し(ステップS504
d)、割り込みが発生した場合(ステップS504d:
Yes)、CPUモデル部403に割り込みイベントを
通知し(ステップS504e)、ステップS504bに
リターンする。ステップS504bでカウンタ値が「ゼ
ロ」の場合(Yes)、シミュレーション制御部401
は、I/Oモデル部404が所定動作を終了しているか
否かを判定し(ステップS507f)、終了している場
合(Yes)、I/Oモデル部404を待機状態に設定
した後に、その処理を終了する(ステップS507
g)。なお、ステップS507fでI/Oモデル部40
4が所定動作を終了していない場合も処理を終了する。
Next, the simulation controller 401
It is determined from the simulation result whether or not an interrupt from the I / O model unit 404 has occurred (step S504).
d), if an interrupt occurs (step S504d:
Yes), the CPU model unit 403 is notified of the interrupt event (step S504e), and the process returns to step S504b. If the counter value is “zero” in step S504b (Yes), the simulation control unit 401
Determines whether or not the I / O model unit 404 has completed the predetermined operation (step S507f), and if it has completed (Yes), after setting the I / O model unit 404 to the standby state, The process ends (step S507).
g). In step S507f, the I / O model unit 40
Even when 4 has not finished the predetermined operation, the processing is finished.

【0050】このように、この第2実施形態では、CP
Uモデル部403がI/Oモデル部404から割り込み
信号が入力される待機状態で、意味のないループを実行
しているような場合に、CPUモデル部403のシミュ
レーションを省略できるため、全体(総合的)の動作検
証シミュレーションを高速化できる。
As described above, in the second embodiment, the CP
When the U model unit 403 is in a standby state in which an interrupt signal is input from the I / O model unit 404 and is executing a meaningless loop, the simulation of the CPU model unit 403 can be omitted. Speedup of dynamic verification simulation.

【0051】また、第2実施形態のシミュレータでは、
CPUモデル部403がシミュレーションを行っていな
い場合にも、統計情報記憶部407に記憶している統計
情報を用いてシミュレーション結果を更新している。従
って、第1実施形態のシミュレータよりも速度が低下す
るものの、第1実施形態のシミュレータではCPUモデ
ル部403が待機中に消失していたシミュレーション情
報が、この第2実施形態では消失しなくなる。
Further, in the simulator of the second embodiment,
Even when the CPU model unit 403 is not performing a simulation, the simulation result is updated using the statistical information stored in the statistical information storage unit 407. Therefore, although the speed is slower than that of the simulator of the first embodiment, the simulation information that was lost while the CPU model unit 403 was waiting in the simulator of the first embodiment is not lost in the second embodiment.

【0052】[0052]

【発明の効果】以上の説明から明らかなように、本発明
によれば、制御系モデル部(手段)が入出力モデル部
(手段)からの割り込み待機状態の処理上で無意味なル
ープを実行している場合に、制御系モデルのシミュレー
ションを省略できるようになる。この結果、全体(総合
的)の動作検証シミュレーションを高速化できるという
効果を奏する。
As is apparent from the above description, according to the present invention, the control system model unit (means) executes a meaningless loop in processing the interrupt waiting state from the input / output model unit (means). If so, the simulation of the control system model can be omitted. As a result, there is an effect that the whole (comprehensive) operation verification simulation can be speeded up.

【0053】また、本発明によれば、制御系モデル部
(手段)でシミュレーションを行っていない場合にも、
統計情報記憶部(手段)の記憶情報を用いてシミュレー
ション結果を更新している。従って、制御系モデルが待
機中に消失していたシミュレーション情報が、本発明で
は消失しないようにできる。この結果、確実な動作検証
シミュレーションが可能になるという効果を奏する。
Further, according to the present invention, even when the simulation is not performed by the control system model section (means),
The simulation result is updated using the storage information of the statistical information storage unit (means). Therefore, it is possible to prevent the simulation information, which has been lost while the control system model is waiting, from being lost in the present invention. As a result, there is an effect that a reliable operation verification simulation becomes possible.

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

【図1】本発明の第1実施形態における構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration in a first embodiment of the present invention.

【図2】第1実施形態における動作検証シミュレーショ
ンの処理手順を示すフローチャートである。
FIG. 2 is a flowchart showing a processing procedure of an operation verification simulation in the first embodiment.

【図3】図2中のサブルーチンの詳細なフローチャート
である。
FIG. 3 is a detailed flowchart of a subroutine shown in FIG.

【図4】図2における他のサブルーチンの詳細なフロー
チャートである。
FIG. 4 is a detailed flowchart of another subroutine in FIG.

【図5】本発明の第2実施形態における構成を示すブロ
ック図である。
FIG. 5 is a block diagram showing a configuration according to a second exemplary embodiment of the present invention.

【図6】第2実施形態における動作検証シミュレーショ
ンの処理手順を示すフローチャートである。
FIG. 6 is a flowchart showing a processing procedure of an operation verification simulation in the second embodiment.

【図7】図6中のサブルーチンの詳細なフローチャート
である。
7 is a detailed flowchart of a subroutine shown in FIG.

【図8】図6中における他のサブルーチンの詳細なフロ
ーチャートである。
FIG. 8 is a detailed flowchart of another subroutine in FIG.

【図9】従来のシミュレータの構成を示すブロック図で
ある。
FIG. 9 is a block diagram showing a configuration of a conventional simulator.

【図10】従来のソースコードを説明するための図であ
る。
FIG. 10 is a diagram for explaining a conventional source code.

【符号の説明】[Explanation of symbols]

201,401 シミュレーション制御部 202,402 ユーザI/F部 203,403 CPUモデル部 204,404 I/Oモデル部 205 モデル動作設定部 206,406 アドレス記憶部 405,407 統計情報記憶部 201,401 Simulation control unit 202,402 User I / F section 203,403 CPU model section 204,404 I / O model section 205 Model operation setting section 206, 406 Address storage unit 405, 407 Statistical information storage unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 制御系の処理をモデル化した制御系モデ
ル部と、制御系モデル部への動作を設定するモデル動作
設定部と、シミュレーション対象装置の周辺入出力をモ
デル化した少なくとも一つの入出力モデル部とを有して
動作検証シミュレーションを実行する方法において、 前記入出力モデル部が動作した後の所定タイミングで、
前記制御系モデル部を前記モデル動作設定部が待機状態
に設定してシミュレーションを省略する段階と、 前記入出力モデル部からの割り込みを含むイベント通知
を前記モデル動作設定部が認識する段階と、 前記モデル動作設定部の認識後に、前記制御系モデル部
を前記モデル動作設定部によって動作状態に戻してシミ
ュレーションを再開する段階と、 を有することを特徴とする動作検証シミュレーションの
実行方法。
1. A control system model part that models the processing of the control system, a model operation setting part that sets the operation to the control system model part, and at least one input that models the peripheral input / output of the simulation target device. In a method of performing an operation verification simulation with an output model unit, at a predetermined timing after the input / output model unit operates,
A step in which the model operation setting section sets the control system model section to a standby state and omits simulation; a step in which the model operation setting section recognizes an event notification including an interrupt from the input / output model section; And a step of returning the control system model section to the operating state by the model operation setting section and restarting the simulation after the model operation setting section is recognized.
【請求項2】 シミュレーションの制御を行うシミュレ
ーション制御部と、制御系の処理をモデル化した制御系
モデル部と、シミュレーション実行における統計情報を
記憶する統計情報記憶部と、シミュレーション対象装置
の周辺入出力をモデル化した少なくとも一つの入出力モ
デル部とを有して動作検証シミュレーションを実行する
方法において、 前記入出力モデル部が動作した後の所定タイミングで、
前記シミュレーション制御部の制御によって、前記制御
系モデル部のシミュレーション結果を前記統計情報記憶
部に記憶する段階と、 この記憶後に、前記制御系モデル部のシミュレーション
の実行に代えた前記統計情報記憶部における記憶情報に
基づくシミュレーション結果を、前記シミュレーション
制御部の制御で更新する段階と、 前記シミュレーション制御部が、前記入出力モデル部か
らの割り込みを含むイベント通知を認識する段階と、 この認識の後に、前記制御系モデル部がシミュレーショ
ンを実行していない場合に当該シミュレーションを再開
する段階と、 を有することを特徴とする動作検証シミュレーションの
実行方法。
2. A simulation control unit for controlling simulation, a control system model unit that models processing of a control system, a statistical information storage unit for storing statistical information in simulation execution, and peripheral input / output of a simulation target device. In a method of performing an operation verification simulation having at least one input / output model unit that models the above, at a predetermined timing after the input / output model unit operates,
A step of storing the simulation result of the control system model section in the statistical information storage section under the control of the simulation control section; and a step of storing the simulation result of the control system model section in the statistical information storage section after execution of simulation of the control system model section. Updating the simulation result based on the stored information under the control of the simulation control unit; the simulation control unit recognizing an event notification including an interrupt from the input / output model unit; And a step of restarting the simulation when the control system model section is not executing the simulation, and a method of executing the operation verification simulation, comprising:
【請求項3】 前記入出力モデル部が動作した後の所定
タイミングが、 アドレス記憶部に設定されているアドレス値に基づくも
のであることを特徴とする請求項1又は2記載の、動作
検証シミュレーションの実行方法。
3. The operation verification simulation according to claim 1, wherein the predetermined timing after the operation of the input / output model section is based on the address value set in the address storage section. How to run.
【請求項4】 シミュレーションを実行する装置におい
て、 制御系の処理をモデル化した制御系モデル手段と、 シミュレーション制御を実行するためのシミュレーショ
ン制御手段と、 シミュレーション対象装置の周辺入出力をモデル化した
少なくとも一つの入出力モデル手段と、 前記シミュレーション制御手段と連動して前記制御系モ
デル手段の動作を設定する動作設定手段と、を有し、 前記シミュレーション制御手段及び動作設定手段によっ
て、前記入出力モデル手段の動作後の所定タイミング
で、前記制御系モデル手段を待機状態に動作設定してシ
ミュレーションを省略し、前記入出力モデル手段からの
割り込みを含むイベント通知の認識後に前記制御系モデ
ル手段を動作状態に戻す設定を行うことを特徴とするシ
ミュレーション実行装置。
4. In a device for executing simulation, control system modeling means for modeling processing of a control system, simulation control means for executing simulation control, and at least peripheral input / output of a simulation target device are modeled. One input / output model means and operation setting means for setting the operation of the control system model means in cooperation with the simulation control means, and the input / output model means by the simulation control means and the operation setting means. At a predetermined timing after the operation of, the control system model means is set to the standby state to omit the simulation, and the control system model means is put into the operation state after the recognition of the event notification including the interrupt from the input / output model means. Simulation execution characterized by setting to return Location.
【請求項5】 シミュレーションを実行する装置におい
て、 制御系の処理をモデル化した制御系モデル手段と、 シミュレーション制御を実行するためのシミュレーショ
ン制御手段と、 シミュレーション実行における結果の統計情報を記憶す
る統計情報記憶手段と、 シミュレーション対象装置の周辺入出力をモデル化した
少なくとも一つの入出力モデル手段と、を有し、 前記シミュレーション制御手段の制御によって、 前記入出力モデル手段の動作後の所定タイミングで、前
記制御系モデル手段のシミュレーション結果を前記統計
情報記憶手段に記憶し、この記憶後に統計情報に基づい
たシミュレーション結果を更新し、かつ、前記入出力モ
デル手段からの割り込みを含むイベント通知の認識後
に、前記制御系モデル手段がシミュレーションを実行し
ていない場合に、当該制御系モデル手段を動作状態に戻
す設定を行うことを特徴とするシミュレーション実行装
置。
5. In a device for executing a simulation, a control system model means for modeling processing of a control system, a simulation control means for executing a simulation control, and statistical information for storing statistical information of a result of the simulation execution. Storage means, and at least one input / output model means modeling the peripheral input / output of the device to be simulated, under the control of the simulation control means, at a predetermined timing after the operation of the input / output model means, The simulation result of the control system model means is stored in the statistical information storage means, the simulation result based on the statistical information is updated after this storage, and after the event notification including the interrupt from the input / output model means is recognized, Control system model means simulation A simulation executing apparatus, characterized in that the control system model means is set to return to an operating state when not executing.
【請求項6】 動作検証シミュレーションにおける次の
制御を実質的なコンピュータが実行するためのプログラ
ム。入出力モデル部が動作した後の所定タイミングで、
制御系モデル部をモデル動作設定部が待機状態に動作設
定してシミュレーションを省略する制御 前記入出力モデル部からの割り込みを含むイベント通知
をモデル動作設定部が認識する制御 前記モデル動作設定部の認識後に前記制御系モデル部
を、前記モデル動作設定部によって動作状態に戻してシ
ミュレーションを再開する制御
6. A program for causing a substantial computer to execute the following control in the operation verification simulation. At a predetermined timing after the input / output model section operates,
Control of the control system model is set by the model operation setting section to the standby state and the simulation is skipped Control for recognizing event notification including interrupt from the input / output model section Recognition of the model operation setting section Control for returning the control system model unit to the operating state by the model operation setting unit and restarting the simulation later
【請求項7】 動作検証シミュレーションにおける次の
制御を実質的なコンピュータが実行するためのプログラ
ム。入出力モデル部が動作した後の所定タイミングで、
シミュレーション制御部の制御によって制御系モデル部
のシミュレーション結果を統計情報記憶部に記憶する制
御 この後に前記制御系モデル部のシミュレーションの実行
に代えた前記統計情報記憶部における記憶情報に基づく
シミュレーション結果を、前記シミュレーション制御部
の制御で更新する制御 前記シミュレーション制御部が、前記入出力モデル部か
らの割り込みを含むイベント通知を認識する制御 この認識後に、前記制御系モデル部がシミュレーション
を実行していない場合に、当該制御系モデル手段を動作
状態に戻す制御
7. A program for causing a substantial computer to execute the following control in the operation verification simulation. At a predetermined timing after the input / output model section operates,
Control of storing the simulation result of the control system model unit in the statistical information storage unit by the control of the simulation control unit After this, the simulation result based on the storage information in the statistical information storage unit replaced with the execution of the simulation of the control system model unit, Control updating by control of the simulation control unit The simulation control unit recognizes an event notification including an interrupt from the input / output model unit After this recognition, when the control system model unit is not executing a simulation , Control for returning the control system model means to the operating state
JP2001382645A 2001-12-17 2001-12-17 Method and device for executing operation verification simulation and its program Pending JP2003186936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001382645A JP2003186936A (en) 2001-12-17 2001-12-17 Method and device for executing operation verification simulation and its program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001382645A JP2003186936A (en) 2001-12-17 2001-12-17 Method and device for executing operation verification simulation and its program

Publications (1)

Publication Number Publication Date
JP2003186936A true JP2003186936A (en) 2003-07-04

Family

ID=27592913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001382645A Pending JP2003186936A (en) 2001-12-17 2001-12-17 Method and device for executing operation verification simulation and its program

Country Status (1)

Country Link
JP (1) JP2003186936A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010113619A (en) * 2008-11-07 2010-05-20 Internatl Business Mach Corp <Ibm> Processing control system, method and program
JP2010218143A (en) * 2009-03-16 2010-09-30 Ricoh Co Ltd Simulator for program for integration and simulation method
JP2012083834A (en) * 2010-10-07 2012-04-26 Fujitsu Semiconductor Ltd Simulation device, program, storage medium and method
JP2012123726A (en) * 2010-12-10 2012-06-28 Mitsubishi Electric Corp Simulation device and simulation program
CN104008009A (en) * 2013-02-26 2014-08-27 联想(北京)有限公司 Method and device for setting states of equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010113619A (en) * 2008-11-07 2010-05-20 Internatl Business Mach Corp <Ibm> Processing control system, method and program
JP2010218143A (en) * 2009-03-16 2010-09-30 Ricoh Co Ltd Simulator for program for integration and simulation method
JP2012083834A (en) * 2010-10-07 2012-04-26 Fujitsu Semiconductor Ltd Simulation device, program, storage medium and method
US8886512B2 (en) 2010-10-07 2014-11-11 Fujitsu Semiconductor Limited Simulation apparatus, computer-readable recording medium, and method
JP2012123726A (en) * 2010-12-10 2012-06-28 Mitsubishi Electric Corp Simulation device and simulation program
CN104008009A (en) * 2013-02-26 2014-08-27 联想(北京)有限公司 Method and device for setting states of equipment

Similar Documents

Publication Publication Date Title
US20010034751A1 (en) Real-time OS simulator
JP2003186936A (en) Method and device for executing operation verification simulation and its program
CN110851297A (en) Method, device, system and medium for processing interface jitter state
JP2000242484A (en) Change method for control program
JP5542643B2 (en) Simulation apparatus and simulation program
JP2861962B2 (en) Computer program simulation apparatus and method
JP2003177943A (en) Method, device, and program for simulating roughly multitask software
JPH09251389A (en) Data processor
JP3341064B2 (en) Control program creation device
JP2533489B2 (en) Simulation system
JP4535663B2 (en) State machine control method and state machine
JP3288750B2 (en) Robot controller
JPH05197577A (en) Virtual computer execution priority control system in virtual computer system
JPH04288660A (en) Parallel processing system for plural processors
CN110188491B (en) Processing method and device for improving calculation efficiency in simulation calculation process
JPH06187171A (en) Scheduling system for interruption
JP2747164B2 (en) Software simulator
JPH02231634A (en) Method for maintaining interchangeability of software
JPH07295670A (en) Starting method for computer system
JPH07219918A (en) System starting method for parallel computer
JP3334613B2 (en) Speed control method, speed control device, and microprogram control device
JPH0635988A (en) Logic simulation system
JPS62162104A (en) Flow chart type programmable controller
JP2001147830A (en) Method for changing state of real time os
JP2002169690A (en) Information processing apparatus and electronic device