JP2006215781A - Simulation device and simulation method - Google Patents

Simulation device and simulation method Download PDF

Info

Publication number
JP2006215781A
JP2006215781A JP2005027432A JP2005027432A JP2006215781A JP 2006215781 A JP2006215781 A JP 2006215781A JP 2005027432 A JP2005027432 A JP 2005027432A JP 2005027432 A JP2005027432 A JP 2005027432A JP 2006215781 A JP2006215781 A JP 2006215781A
Authority
JP
Japan
Prior art keywords
simulation
execution
model
switching
information
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
JP2005027432A
Other languages
Japanese (ja)
Inventor
Masaru Imaizumi
賢 今泉
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005027432A priority Critical patent/JP2006215781A/en
Publication of JP2006215781A publication Critical patent/JP2006215781A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To increase the development efficiency and thus development speed of a system comprising a plurality of processors and hardware by enabling a simulation, whether synchronous or asynchronous, and enabling a fast simulation. <P>SOLUTION: A model switching part 105, when receiving an execution stop flag or processing completion flag from any processing execution control part 106, outputs an execution stop instruction to the processing execution control part 106 of a corresponding simulation model. The model switching part 105 then compares simulation times of respective simulation models to select the simulation model that has the shortest elapsed time, and outputs an execution start instruction to the processing execution control part 106 of the model. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、シミュレーション装置及びシミュレーション方法に関し、特に処理時間を高速化したシミュレーション装置及びシミュレーション方法に関する。   The present invention relates to a simulation apparatus and a simulation method, and more particularly, to a simulation apparatus and a simulation method that increase the processing time.

従来、ハードウェアやプロセッサおよびそのプロセッサ上で動くソフトウェアを開発する場合、各ハードウェアやプロセッサをモデル化し、擬似的に実行させるシミュレーション装置が一般的に用いられている。シミュレーション装置では、処理単位である動作1クロックごとに、各ハードウェアやプロセッサのモデルを動作させ、命令を実行する。しかし、シミュレーション装置の各モデルを1クロックごとに切り替える必要があり、そのためのオーバヘッドが大きくなり、シミュレーション時間がかかってしまうという問題がある。   2. Description of the Related Art Conventionally, when developing hardware, a processor, and software that runs on the processor, a simulation apparatus that models each hardware or processor and executes it in a simulated manner is generally used. In the simulation apparatus, each hardware or processor model is operated and an instruction is executed for each operation clock that is a processing unit. However, it is necessary to switch each model of the simulation apparatus every clock, and there is a problem that the overhead for that is increased and simulation time is required.

そこで、シミュレーション時間を短縮するために、特許文献1で示すようなシミュレーション装置が知られている。図9に示すような、プロセッサによるプログラム実行を例にとって説明すると、外部周辺回路とのやり取りが生じるまでは、プロセッサにおいて複数のクロック分の命令1#10及び命令2#11をモデルを切り替えず実行し、実行したクロック数をカウントする。周辺回路とのやり取りが生じた段階で、プロセッサにおいて実行したクロック数分、周辺回路を実行することにより命令3#12を実行する。このような構成によって、各モデルの切り替え量を減らすことができ、シミュレーション時間を短縮することができる。
特開平8−328905号公報
Therefore, in order to shorten the simulation time, a simulation apparatus as shown in Patent Document 1 is known. Referring to an example of execution of a program by a processor as shown in FIG. 9, instructions 1 # 10 and 2 # 11 for a plurality of clocks are executed in the processor without switching models until an exchange with an external peripheral circuit occurs. And count the number of clocks executed. When the communication with the peripheral circuit occurs, the instruction 3 # 12 is executed by executing the peripheral circuit by the number of clocks executed in the processor. With such a configuration, the switching amount of each model can be reduced, and the simulation time can be shortened.
JP-A-8-328905

しかしながら、従来の装置においては、単一のプロセッサにおいてはシミュレーションの高速化が可能であるが、複数のプロセッサとハードウェアとがパラレルに動作する場合に適用できないので、そのようなモデルのシミュレーションの高速化ができないという問題がある。又、従来の装置においては、複数のプロセッサとハードウェアの間で非同期に通信する場合には適用できないという問題がある。   However, in the conventional apparatus, the simulation speed can be increased with a single processor. However, since it cannot be applied when a plurality of processors and hardware operate in parallel, the simulation speed of such a model is high. There is a problem that it cannot be converted. Further, the conventional apparatus has a problem that it cannot be applied when asynchronously communicating between a plurality of processors and hardware.

本発明はかかる点に鑑みてなされたものであり、同期または非同期に関わらずシミュレーションが可能であるとともに、高速なシミュレーションを行うことができ、複数のプロセッサやハードウェアから構成されるシステムの開発効率を高め、開発スピードを向上させることができるシミュレーション装置及びシミュレーション方法を提供することを目的とする。   The present invention has been made in view of the above points, and can perform simulation regardless of whether it is synchronous or asynchronous, and can perform high-speed simulation, and the development efficiency of a system composed of a plurality of processors and hardware. An object of the present invention is to provide a simulation apparatus and a simulation method capable of improving the development speed and improving the development speed.

本発明のシミュレーション装置は、複数のシステムのそれぞれのシミュレーションを行う複数のシミュレーションモデル手段と、前記シミュレーションモデル手段を切り替えるための情報である切替情報に基づいて、実行中の前記シミュレーションモデル手段の実行を停止させるとともに他の前記シミュレーションモデル手段の実行を開始するように切り替えるモデル切替手段と、を具備する構成を採る。   The simulation apparatus according to the present invention executes a plurality of simulation model means for performing a simulation of each of a plurality of systems and the simulation model means being executed based on switching information that is information for switching the simulation model means. A model switching unit that switches to stop and start execution of the other simulation model unit is adopted.

本発明のシミュレーション方法は、複数のシミュレーションモデルのそれぞれのシミュレーションを行うステップと、前記シミュレーションモデルの実行を切り替えるための情報である切替情報に基づいて、実行中の前記シミュレーションモデルを停止させるとともに他の前記シミュレーションモデルの実行を開始するように切り替えるステップと、を具備するようにした。   According to the simulation method of the present invention, the simulation model being executed is stopped based on the step of performing simulation of each of a plurality of simulation models, and switching information that is information for switching execution of the simulation model. Switching to start execution of the simulation model.

本発明によれば、同期または非同期に関わらずシミュレーションが可能であるとともに、高速なシミュレーションを行うことができ、複数のプロセッサやハードウェアから構成されるシステムの開発効率を高め、開発スピードを向上させることができる。   According to the present invention, simulation is possible regardless of whether it is synchronous or asynchronous, high-speed simulation can be performed, the development efficiency of a system composed of a plurality of processors and hardware is improved, and the development speed is improved. be able to.

以下、本発明の実施の形態について、図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

(実施の形態1)
図1は、本発明の実施の形態1に係るシミュレーション装置100の構成を示すブロック図である。
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of a simulation apparatus 100 according to Embodiment 1 of the present invention.

図1に示すように、シミュレーション装置100は、複数のプロセッサやハードウェアを模擬したシミュレーションモデル部(以下、「シミュレーションモデル」と記載する)101〜103と、出力情報記憶部104と、モデル切替え部105とから構成されている。   As shown in FIG. 1, the simulation apparatus 100 includes a simulation model unit (hereinafter referred to as “simulation model”) 101 to 103 simulating a plurality of processors and hardware, an output information storage unit 104, and a model switching unit. 105.

それぞれのシミュレーションモデル101〜103は、処理実行制御部106と、時間計測部107と、入力情報記憶部108と、内部状態記憶部109とから構成されている。   Each of the simulation models 101 to 103 includes a process execution control unit 106, a time measurement unit 107, an input information storage unit 108, and an internal state storage unit 109.

出力情報記憶部104は、処理実行制御部106から出力された出力情報を記憶する。また、入力情報記憶部108より出力情報取得要望がある場合は、該当する出力情報を入力情報記憶部108に出力する。   The output information storage unit 104 stores the output information output from the process execution control unit 106. If there is a request for obtaining output information from the input information storage unit 108, the corresponding output information is output to the input information storage unit 108.

モデル切替え部105は、処理実行制御部106から実行停止フラグまたは処理完了フラグが入力された場合、当該シミュレーションモデルの処理実行制御部106に対し、実行停止命令を出力する。また、このとき、各シミュレーションモデルのシミュレーション上の時刻を比較し、もっとも経過時間が少ないシミュレーションモデルを選択し、そのモデルの処理実行制御部106に対し、実行開始命令を出力する。   When the execution stop flag or the process completion flag is input from the process execution control unit 106, the model switching unit 105 outputs an execution stop instruction to the process execution control unit 106 of the simulation model. At this time, the simulation time of each simulation model is compared, the simulation model having the shortest elapsed time is selected, and an execution start command is output to the process execution control unit 106 of the model.

処理実行制御部106は、モデル切替え部105から処理実行開始命令が入力されると、入力情報記憶部108に対し、入力情報取得命令を出力すると共に、内部状態記憶部109からモデルの内部状態を読み出して、内部状態を設定する。以降、モデル切替え部105から、処理実行停止命令を受信するまでは、1クロックごとに当該シミュレーションモデルの処理を実行し、実行完了フラグを時間計測部107に出力する。入力情報記憶部108から、入力情報取得命令に対応する入力値がある場合は、それを用いて処理を実行する。当該シミュレーションモデルの処理がすべて終了した場合は、処理完了フラグをモデル切替え部105に出力する。   When a process execution start command is input from the model switching unit 105, the process execution control unit 106 outputs an input information acquisition command to the input information storage unit 108, and changes the internal state of the model from the internal state storage unit 109. Read and set internal state. Thereafter, until a process execution stop command is received from the model switching unit 105, the process of the simulation model is executed every clock and an execution completion flag is output to the time measurement unit 107. If there is an input value corresponding to the input information acquisition command from the input information storage unit 108, the processing is executed using it. When all the processes of the simulation model are completed, a process completion flag is output to the model switching unit 105.

また、処理実行制御部106は、当該シミュレーションモデルの処理において、他のシミュレーションモデルに対し出力を行う場合は、時間計測部107より入力されたシミュレーション上の時刻と出力値およびそのアドレスを出力情報記憶部104に出力する。   In addition, in the process of the simulation model, the process execution control unit 106 stores the simulation time, the output value, and its address input from the time measurement unit 107 as output information storage when outputting to another simulation model. Output to the unit 104.

また、処理実行制御部106は、当該シミュレーションモデルの処理において、他のシミュレーションモデルから出力される情報である出力情報の入力が必要な場合は、時間計測部107より入力されたシミュレーション上の時刻とアドレスを入力情報記憶部108に出力するとともに、内部状態記憶部109に当該シミュレーションモデルの内部状態を記憶させ、処理停止フラグ(切替情報)をモデル切替え部105に出力し、次の命令の実行に備える。   In addition, the process execution control unit 106, when processing of the simulation model requires input of output information that is information output from another simulation model, The address is output to the input information storage unit 108, the internal state of the simulation model is stored in the internal state storage unit 109, the processing stop flag (switching information) is output to the model switching unit 105, and the next instruction is executed. Prepare.

時間計測部107は、処理実行制御部106から実行完了フラグが入力するたびに、当該シミュレーションモデルのシミュレーション上の時刻を1クロックインクリメントする。当該シミュレーションモデルの現時点の時刻は、都度処理実行制御部106およびモデル切替え部105に出力される。   Each time the execution completion flag is input from the process execution control unit 106, the time measurement unit 107 increments the simulation time of the simulation model by one clock. The current time of the simulation model is output to the process execution control unit 106 and the model switching unit 105 each time.

入力情報記憶部108は、当該シミュレーションモデルへの入力情報として、処理実行制御部106から入力されたシミュレーション上の時刻とアドレスを記憶する。また、処理実行制御部106より入力情報取得命令が入力されたときに、当該シミュレーションモデルの入力情報が、出力情報記憶部104に記憶されている場合は、出力情報記憶部104から該当する入力値を取得し、それを処理実行制御部106に出力する。   The input information storage unit 108 stores the simulation time and address input from the process execution control unit 106 as input information to the simulation model. When the input information acquisition command is input from the process execution control unit 106 and the input information of the simulation model is stored in the output information storage unit 104, the corresponding input value is output from the output information storage unit 104. Is output to the process execution control unit 106.

次に、図2に示すフロー図を用いて、シミュレーション装置100の動作を詳細に説明する。   Next, the operation of the simulation apparatus 100 will be described in detail using the flowchart shown in FIG.

まず、ST201で、モデル切替え部105は、任意の1つのシミュレーションモデル101を選択し、選択したシミュレーションモデル101に対し、実行開始命令を出力する。この実行開始命令を受けて、シミュレーションモデル101の処理実行制御部106は、入力情報記憶部108に対し入力情報取得命令を出力する。また、内部状態記憶部109から内部状態を読み出し、内部状態を設定する。   First, in ST201, the model switching unit 105 selects any one simulation model 101 and outputs an execution start command to the selected simulation model 101. Upon receiving this execution start command, the process execution control unit 106 of the simulation model 101 outputs an input information acquisition command to the input information storage unit 108. Also, the internal state is read from the internal state storage unit 109 and the internal state is set.

ST202において、入力情報記憶部108は、入力情報があるか確認し、ある場合はST203で、他のシミュレーションモデル102、103の出力したアドレス情報に基づき、出力情報記憶部104に格納された出力情報の読み出しを要望し、出力情報記憶部104から該当する値を得て、それを処理実行制御部106に出力する。   In ST202, the input information storage unit 108 checks whether there is input information. If there is, the output information stored in the output information storage unit 104 based on the address information output by the other simulation models 102 and 103 in ST203. Is read out, the corresponding value is obtained from the output information storage unit 104, and is output to the process execution control unit 106.

次に、処理実行制御部106は、ST204で1クロック分の処理を行う。ST203で入力値を得た場合は、その入力値を用いて処理を行う。また、この処理で出力がある場合(ST205)は、ST206で時間計測部107より得た現在の時刻および出力情報のアドレスと出力値を出力情報記憶部104に出力する。処理が完了したら、時間計測部107に実行完了フラグを出力する。   Next, the process execution control unit 106 performs processing for one clock in ST204. When an input value is obtained in ST203, processing is performed using the input value. When there is an output in this process (ST205), the current time obtained from the time measuring unit 107 in ST206, the output information address and the output value are output to the output information storage unit 104. When the processing is completed, an execution completion flag is output to the time measuring unit 107.

次に、時間計測部107は、ST207で処理実行制御部106から実行完了フラグを得たら、現在時刻を1クロック分インクリメントし、処理実行制御部106およびモデル切替え部105に出力する。処理実行制御部106は、ST208でシミュレーションモデル101の処理が終了した場合は、処理完了フラグをモデル切替え部105に出力し、ST212に進む。また、終了していない場合はST209に進む。   Next, when the time measurement unit 107 obtains an execution completion flag from the process execution control unit 106 in ST207, the time measurement unit 107 increments the current time by one clock, and outputs the incremented value to the process execution control unit 106 and the model switching unit 105. If the process of the simulation model 101 is completed in ST208, the process execution control unit 106 outputs a process completion flag to the model switching unit 105, and proceeds to ST212. If not completed, the process proceeds to ST209.

処理実行制御部106は、ST209において、次回の処理で入力があるかどうか確認し、入力がない場合はST204に戻り、次の命令を実行する。一方、入力がある場合は、ST210で時間計測部107より得た現在の時刻および入力情報のアドレスと出力値を、入力情報記憶部108に記憶する。また、実行停止フラグをモデル切替え部105に出力する。モデル切替え部105は、実行停止フラグを受信したら、実行中のシミュレーションモデル101に対し処理実行停止命令を出力する。次に、ST211において、モデル切替え部105は、各シミュレーションモデル102、103の時間計測部107から得た各モデルのシミュレーション上の時刻を比較し、最も経過時間が少ないシミュレーションモデル102を選択し、そのシミュレーションモデル102に対し処理実行開始命令を出力し、シミュレーションモデルを切り替えてST202に戻る。   In ST209, the process execution control unit 106 checks whether or not there is an input in the next process. If there is no input, the process execution control unit 106 returns to ST204 and executes the next instruction. On the other hand, if there is an input, the current time and the address and output value of the input information obtained from time measuring section 107 in ST210 are stored in input information storage section 108. Further, the execution stop flag is output to the model switching unit 105. When the model switching unit 105 receives the execution stop flag, the model switching unit 105 outputs a process execution stop command to the simulation model 101 being executed. Next, in ST211, the model switching unit 105 compares the simulation time of each model obtained from the time measurement unit 107 of each simulation model 102, 103, selects the simulation model 102 with the least elapsed time, A process execution start instruction is output to the simulation model 102, the simulation model is switched, and the process returns to ST202.

ST211で、切り替えられたシミュレーションモデル101の処理実行制御部106は、処理実行停止命令が入力されたら、シミュレーションモデル101内の状態を内部状態記憶部109に記憶する。なお、場合によっては、同一のシミュレーションモデル101が連続して選択される場合もあるので、その場合は、そのシミュレーションモデル101内の状態を記憶する必要はない。したがって、ST211で、処理実行制御部106が、処理実行停止命令と処理実行開始命令とを同時に受け取った場合は、そのシミュレーションモデル101内の状態の記憶は行わず、ST202に戻る。   In ST211, the process execution control unit 106 of the switched simulation model 101 stores the state in the simulation model 101 in the internal state storage unit 109 when a process execution stop command is input. In some cases, the same simulation model 101 may be selected continuously. In this case, it is not necessary to store the state in the simulation model 101. Therefore, when the process execution control unit 106 receives a process execution stop instruction and a process execution start instruction simultaneously in ST211, the state in the simulation model 101 is not stored, and the process returns to ST202.

又、ST212で処理完了フラグがモデル切替え部105に入力されると、モデル切替え部105では、すべてのシミュレーションモデル101〜103の処理が終了したか確認する。終了していないシミュレーションモデルがある場合は、ST211に進む。また、すべてのシミュレーションモデル101〜103の処理が終了した場合は、シミュレーションを終了する。   Further, when the processing completion flag is input to the model switching unit 105 in ST212, the model switching unit 105 confirms whether the processing of all the simulation models 101 to 103 is completed. If there is a simulation model that has not been completed, the process proceeds to ST211. In addition, when all the simulation models 101 to 103 have been processed, the simulation is ended.

次に、図3を用いて、図4に示すような3つのプロセッサ301〜303が1つのメモリ401を共有する場合の処理を例にとり、シミュレーション装置100による実行順序を説明する。なお、以下の説明では、各プロセッサとも、1クロックで1命令が実行されるとする。   Next, the execution sequence by the simulation apparatus 100 will be described using FIG. 3 as an example of processing when the three processors 301 to 303 share one memory 401 as shown in FIG. In the following description, it is assumed that each processor executes one instruction in one clock.

まず、はじめに、シミュレーションモデルとしてプロセッサ301が選択されると、命令1から命令12までは外部からの入力がないため、プロセッサ301上で連続して処理が実行される。途中、命令2および命令6で、それぞれ外部への出力があるため、その時刻とアドレスと出力値とを出力情報記憶部104に記憶させる。なお、この図において、各プロセッサ301〜303から外側の矢印は出力、内側への矢印は入力を示す。また、Ver1[2]とは、時刻2のアドレスVer1の値を出力していることを示す。   First, when the processor 301 is selected as a simulation model, instructions 1 to 12 are not input from the outside, and therefore processing is continuously executed on the processor 301. In the middle, instructions 2 and 6 are output to the outside, and the time, address, and output value are stored in the output information storage unit 104. In this figure, an arrow on the outside from each of the processors 301 to 303 indicates an output, and an arrow on the inside indicates an input. Ver1 [2] indicates that the value of the address Ver1 at time 2 is output.

次に、プロセッサ301の時刻12の時点で入力があったため、プロセッサ301は命令12の実行直前で停止し、その入力情報と内部状態を記憶し、他のプロセッサ302、303に処理が移行する。プロセッサ302およびプロセッサ303ともまだ実行されていないため、どちらが選択されてもかまわない。ここでは、プロセッサ302が選択される。プロセッサ302では、命令1から命令7まで実行され、途中、命令3と命令5で出力情報を記憶する。プロセッサ302の時刻7の入力情報と内部情報とを記憶したあと、プロセッサ303に移行し、命令1から命令4までが実行される。   Next, since there was an input at time 12 of the processor 301, the processor 301 stops immediately before execution of the instruction 12, stores the input information and internal state, and the processing shifts to the other processors 302 and 303. Since neither the processor 302 nor the processor 303 has been executed yet, either one may be selected. Here, the processor 302 is selected. In the processor 302, instructions 1 to 7 are executed, and output information is stored in the instructions 3 and 5 on the way. After the input information and internal information at time 7 of the processor 302 are stored, the processing shifts to the processor 303 and instructions 1 to 4 are executed.

ここで、各プロセッサ301〜303の出力情報としては、時刻、アドレス、出力値であり、同一アドレスであっても時刻が異なる情報はそれぞれ記憶する必要がある。これは、各プロセッサ301〜303の処理がシミュレーション時間上で非同期であり、たとえ同じアドレスに上書きされることが自明であっても、上書きされる前の状態が必要になる可能性があるためである。   Here, the output information of each of the processors 301 to 303 includes a time, an address, and an output value, and it is necessary to store information having different times even if they are the same address. This is because the processing of each of the processors 301 to 303 is asynchronous in the simulation time, and even if it is obvious that the same address is overwritten, the state before overwriting may be required. is there.

プロセッサ303で命令4まで実行されたあと、モデル切替え部105は、各プロセッサ301〜303の経過時間を比較し、最も経過時間が少ないプロセッサ303を選択する。したがって、プロセッサ303は継続して実行される。プロセッサ303では、命令4で得ようとした入力情報を、出力情報記憶部104から取得する。図において、Ver[4]、即ち、時刻4の時点のVer4の情報が必要であるが、これはプロセッサ302の命令3で出力された時刻3の時点のVer4の出力情報が時刻4でも保たれているため、これがプロセッサ303の命令4の時点の入力情報に該当する。この入力情報を用いてプロセッサ303の命令4の処理を行い、引き続き命令5から命令12までの処理を行う。   After the instruction 303 is executed by the processor 303, the model switching unit 105 compares the elapsed times of the processors 301 to 303, and selects the processor 303 having the shortest elapsed time. Therefore, the processor 303 is continuously executed. The processor 303 acquires the input information that is to be obtained by the instruction 4 from the output information storage unit 104. In the figure, Ver [4], that is, Ver4 information at time 4 is required, but this is because Ver4 output information at time 3 output by instruction 3 of processor 302 is also maintained at time 4. Therefore, this corresponds to the input information at the time of instruction 4 of the processor 303. Using this input information, the instruction 4 of the processor 303 is processed, and the processes from the instruction 5 to the instruction 12 are subsequently performed.

同様にして、プロセッサ302に処理が移行し、命令7における入力情報として、プロセッサ301の命令6で出力されたVer2の値を取得し命令7の処理を行う。続けて命令8から命令16までの処理を行う。命令16でプロセッサ30についてはすべての処理が完了するため、モデル切替え部105でプロセッサ301に処理を移す。プロセッサ301で命令12から命令16までの処理を行い、最後にプロセッサ303で命令12から命令16の処理を行ってシミュレーションを終了する。   Similarly, the processing shifts to the processor 302, and the value of Ver2 output by the instruction 6 of the processor 301 is acquired as input information in the instruction 7, and the instruction 7 is processed. Subsequently, the processes from the instruction 8 to the instruction 16 are performed. Since all processing is completed for the processor 30 by the instruction 16, the processing is transferred to the processor 301 by the model switching unit 105. The processor 301 performs the processing from the instruction 12 to the instruction 16, and finally the processor 303 performs the processing from the instruction 12 to the instruction 16 to finish the simulation.

図3の例で示すように、本発明は、入力がない状態での出力モデルの実行結果は、他のシミュレーションモデルと独立に実行できることを利用して、シミュレーションモデルの切り替えを入力があったときのみとすることで、切り替えオーバヘッドを削減することができる点に特徴がある。   As shown in the example of FIG. 3, the present invention uses the fact that the execution result of the output model without any input can be executed independently of other simulation models, and when the simulation model is switched. It is characterized in that the switching overhead can be reduced by using only.

また、各シミュレーションモデルからの時刻の異なる出力情報をすべて記憶することで、複数のプロセッサおよびハードウェアが非同期に動作するシミュレーションモデルに対応している。   Also, by storing all output information at different times from each simulation model, a plurality of processors and hardware are compatible with a simulation model that operates asynchronously.

なお、過去の出力情報が必要なくなった場合は、それを削除することで出力情報記憶部104の記憶すべき情報量を削減することができる。過去の出力情報が必要なくなる場合とは、すべてのモデルの経過時刻よりも古い、同一アドレスの情報が2つ以上ある場合であり、このときは最新のもののみを残して後のものは削除することができる。   When past output information is no longer needed, the amount of information to be stored in the output information storage unit 104 can be reduced by deleting it. The case where the past output information is no longer needed is when there are two or more pieces of information with the same address that are older than the elapsed time of all models. At this time, only the latest information is left and the subsequent information is deleted. be able to.

このように、本実施の形態1によれば、他のシミュレーションモデルからの出力情報の入力が必要になった場合には実行を停止するとともに、実行時間の最も短いシミュレーションモデルに切り替えるので、複数のプロセッサとハードウェアとがパラレルに動作し、又、非同期に通信する場合であっても、高速にシミュレーションを実行することができる。また、本実施の形態1によれば、複数のプロセッサやハードウェアから構成されるシステムの開発効率を高め、開発スピードを向上させることができる。   As described above, according to the first embodiment, when input of output information from another simulation model is required, the execution is stopped and the simulation model having the shortest execution time is switched. Even when the processor and hardware operate in parallel and communicate asynchronously, simulation can be executed at high speed. Further, according to the first embodiment, the development efficiency of a system composed of a plurality of processors and hardware can be improved and the development speed can be improved.

(実施の形態2)
図5は、本発明の実施の形態2に係るシミュレーション装置500の構成を示すブロック図である。
(Embodiment 2)
FIG. 5 is a block diagram showing a configuration of simulation apparatus 500 according to Embodiment 2 of the present invention.

本実施の形態2に係るシミュレーション装置500は、図1に示す実施の形態1に係るシミュレーション装置100において、図5に示すように、処理停止時刻設定部501を追加し、モデル切替え部105の代わりにモデル切替え部502を有する。なお、図5においては、図1と同一構成である部分には同一の符号を付してその説明は省略する。   The simulation apparatus 500 according to the second embodiment is different from the simulation apparatus 100 according to the first embodiment shown in FIG. 1 in that a processing stop time setting unit 501 is added as shown in FIG. Has a model switching unit 502. 5, parts having the same configuration as in FIG. 1 are denoted by the same reference numerals and description thereof is omitted.

処理停止時刻設定部501は、シミュレーション停止時刻を指定する。指定方法としては、シミュレーション上のある絶対時刻や、現時点のシミュレーション時点からの相対的な時刻などがある。   The process stop time setting unit 501 specifies a simulation stop time. The designation method includes a certain absolute time on the simulation and a relative time from the current simulation time.

モデル切替え部502は、処理停止時刻設定部501から入力されたシミュレーション停止時刻の情報(切替情報)と時間計測部107から入力されるシミュレーションモデルの現時点の時刻とを比較し、それが一致した時点で、実行中のシミュレーションモデルの処理実行制御部106に対し実行停止命令を出力し、他のシミュレーションモデルに制御を移す。また、モデル切替え部502は、各シミュレーションモデルのシミュレーション上の時刻を比較し、もっとも経過時間が少ないシミュレーションモデルを選択し、そのモデルの処理実行制御部106に対し、実行開始命令を出力する。又、他のシミュレーションモデルでも同様にシミュレーション停止時刻まで実行を行い、実行を停止させる。   The model switching unit 502 compares the simulation stop time information (switching information) input from the process stop time setting unit 501 with the current time of the simulation model input from the time measurement unit 107, and the time when they match. Then, an execution stop command is output to the process execution control unit 106 of the simulation model being executed, and control is transferred to another simulation model. In addition, the model switching unit 502 compares the simulation time of each simulation model, selects the simulation model having the shortest elapsed time, and outputs an execution start command to the process execution control unit 106 of the model. Similarly, other simulation models are executed until the simulation stop time, and the execution is stopped.

このような構成とすることで、シミュレーション装置上の全モデルにおいて、指定した任意のシミュレーション上の時刻までの実行が行われ、この時刻でのすべてのモデル状態が観測できる。また、この時点で出力情報記憶部104に記憶されている情報は、各アドレスごとに最新のものを除いてすべて削除することができるため、出力情報の記憶量を削減できる。   With such a configuration, all models on the simulation apparatus are executed up to a designated arbitrary simulation time, and all model states at this time can be observed. Further, since all the information stored in the output information storage unit 104 at this time can be deleted except for the latest information for each address, the storage amount of the output information can be reduced.

このように、本実施の形態2によれば、あらかじめ設定したシミュレーション停止時刻と時間計測部107にて計測した時刻とが一致した場合には実行を停止するとともに、実行時間の最も短いシミュレーションモデルに切り替えるので、複数のプロセッサとハードウェアとがパラレルに動作し、又、非同期に通信する場合であっても、高速にシミュレーションを実行することができる。また、本実施の形態2によれば、複数のプロセッサやハードウェアから構成されるシステムの開発効率を高め、開発スピードを向上させることができる。また、本実施の形態2によれば、高速シミュレーションを行いながら、任意のシミュレーション時刻での全プロセッサおよび周辺回路の情報を得ることができる。また、本実施の形態2によれば、時刻を適切に設定することで、出力情報記憶部104の記憶量が限定された環境であっても、高速にシミュレーションを実行することができる。   As described above, according to the second embodiment, when the preset simulation stop time and the time measured by the time measurement unit 107 coincide with each other, the execution is stopped and the simulation model with the shortest execution time is obtained. Since switching is performed, a plurality of processors and hardware operate in parallel, and simulation can be executed at high speed even when communicating asynchronously. Further, according to the second embodiment, the development efficiency of a system composed of a plurality of processors and hardware can be improved and the development speed can be improved. Further, according to the second embodiment, it is possible to obtain information on all processors and peripheral circuits at an arbitrary simulation time while performing a high-speed simulation. Further, according to the second embodiment, by setting the time appropriately, simulation can be executed at high speed even in an environment where the storage amount of the output information storage unit 104 is limited.

なお、本実施の形態2と実施の形態1とを適宜組み合わせるように構成しても良い。   In addition, you may comprise so that this Embodiment 2 and Embodiment 1 may be combined suitably.

(実施の形態3)
図6は、本発明の実施の形態3に係るシミュレーション装置600の構成を示すブロック図である。
(Embodiment 3)
FIG. 6 is a block diagram showing a configuration of simulation apparatus 600 according to Embodiment 3 of the present invention.

本実施の形態3に係るシミュレーション装置600は、図1に示す実施の形態1に係るシミュレーション装置100において、図6に示すように、出力情報記憶量監視部602を追加し、出力情報記憶部104の代わりに出力情報記憶部601を有するとともにモデル切替え部105の代わりにモデル切替え部603を有する。なお、図6においては、図1と同一構成である部分には同一の符号を付してその説明は省略する。   The simulation apparatus 600 according to the third embodiment adds an output information storage amount monitoring unit 602 as shown in FIG. 6 to the output information storage unit 104 in the simulation apparatus 100 according to the first embodiment shown in FIG. And an output information storage unit 601, and a model switching unit 603 instead of the model switching unit 105. In FIG. 6, parts having the same configuration as in FIG.

出力情報記憶部601は、処理実行制御部106からの出力情報を記憶すると共に、現在の出力情報記憶部601の記憶情報量の情報(切替情報)を出力情報記憶量監視部602に出力する。出力情報記憶量監視部602は、予め設定された閾値と各時点での記憶情報量とを比較し、記憶情報量が閾値を超えている場合は、モデル切替え部603に記憶情報量超過フラグを出力する。   The output information storage unit 601 stores the output information from the process execution control unit 106 and outputs the information (switching information) of the current stored information amount of the output information storage unit 601 to the output information storage amount monitoring unit 602. The output information storage amount monitoring unit 602 compares a preset threshold value with the stored information amount at each time point, and if the stored information amount exceeds the threshold value, the model switching unit 603 sets a storage information amount excess flag. Output.

モデル切替え部603は、出力情報記憶量監視部602から記憶情報量超過フラグが入力した場合は、実行中の当該シミュレーションモデルの処理実行制御部106に対し実行停止命令を出力し、他のシミュレーションモデルに制御を移す。この時点で出力情報記憶部601に記憶されている情報は、各アドレスごとに最新のものを除いてすべて削除することができ、出力情報の記憶量を削減できる。また、モデル切替え部603は、各シミュレーションモデルのシミュレーション上の時刻を比較し、もっとも経過時間が少ないシミュレーションモデルを選択し、そのモデルの処理実行制御部106に対し、実行開始命令を出力する。   When the storage information amount excess flag is input from the output information storage amount monitoring unit 602, the model switching unit 603 outputs an execution stop instruction to the process execution control unit 106 of the simulation model being executed, and another simulation model Transfer control to. At this time, all the information stored in the output information storage unit 601 can be deleted except for the latest information for each address, and the amount of output information stored can be reduced. Further, the model switching unit 603 compares the simulation time of each simulation model, selects a simulation model having the shortest elapsed time, and outputs an execution start command to the process execution control unit 106 of the model.

又、記憶情報量と比較する最適な閾値は、シミュレーションの実行形態によって変わるが、シミュレーションモデル数が多くなるほど低い閾値にすることで、記憶情報量が実際に記憶できる限界を超えないような実行ができる。特に、実施の形態2に示すような処理停止時刻の指定と組み合わせることにより、記憶情報量を低く抑えることができる。   In addition, the optimum threshold value to be compared with the stored information amount varies depending on the execution form of the simulation. it can. In particular, the amount of stored information can be kept low by combining with the designation of the processing stop time as shown in the second embodiment.

このように、本実施の形態3によれば、記憶情報量が閾値以上である場合には実行を停止するとともに、実行時間の最も短いシミュレーションモデルに切り替えるので、複数のプロセッサとハードウェアとがパラレルに動作し、又、非同期に通信する場合であっても、高速にシミュレーションを実行することができる。また、本実施の形態3によれば、複数のプロセッサやハードウェアから構成されるシステムの開発効率を高め、開発スピードを向上させることができる。また、本実施の形態3によれば、記憶情報量の閾値を適切に設定することで、出力情報記憶部601の記憶情報量が制限されても高速にシミュレーションを実行することができる。   As described above, according to the third embodiment, when the amount of stored information is equal to or greater than the threshold value, the execution is stopped and the simulation model with the shortest execution time is switched, so that a plurality of processors and hardware are parallel. Even when asynchronously communicating, simulation can be executed at high speed. Further, according to the third embodiment, the development efficiency of a system composed of a plurality of processors and hardware can be improved and the development speed can be improved. Further, according to the third embodiment, by appropriately setting the threshold value of the stored information amount, the simulation can be executed at high speed even if the stored information amount of the output information storage unit 601 is limited.

なお、本実施の形態3と、実施の形態1または実施の形態2とを組み合わせるように構成しても良い。   In addition, you may comprise so that this Embodiment 3 and Embodiment 1 or Embodiment 2 may be combined.

(実施の形態4)
図7は、本発明の実施の形態4に係るシミュレーション装置700の構成を示すブロック図である。
(Embodiment 4)
FIG. 7 is a block diagram showing a configuration of a simulation apparatus 700 according to Embodiment 4 of the present invention.

本実施の形態4に係るシミュレーション装置700は、図1に示す実施の形態1に係るシミュレーション装置100において、図7に示すように、処理停止位置設定部701を追加し、モデル切替え部105の代わりにモデル切替え部702を有するとともに処理実行制御部106の代わりに処理実行制御部703を有する。なお、図7においては、図1と同一構成である部分には同一の符号を付してその説明は省略する。   The simulation apparatus 700 according to the fourth embodiment adds a processing stop position setting unit 701 to the simulation apparatus 100 according to the first embodiment illustrated in FIG. 1 and replaces the model switching unit 105 as illustrated in FIG. And a process execution control unit 703 instead of the process execution control unit 106. In FIG. 7, parts having the same configuration as in FIG.

処理停止位置設定部701は、シミュレーションモデル上における停止位置を指定する。例えば、停止位置は、プロセッサで実行される、任意の命令アドレス等である。   The process stop position setting unit 701 specifies a stop position on the simulation model. For example, the stop position is an arbitrary instruction address executed by the processor.

モデル切替え部702は、処理停止位置設定部701から入力した停止位置の情報(切替情報)を、該当するシミュレーションモデルの処理実行制御部703に設定する。停止位置が指定されたシミュレーションモデルの処理実行制御部703は、処理が停止位置に達した時点で実行停止フラグをモデル切替え部702に出力する。モデル切替え部702は、実行停止フラグが入力されたら、当該シミュレーションモデルに処理実行停止命令を出力し、他のシミュレーションモデルに制御を移す。また、このとき、モデル切替え部702は、各シミュレーションモデルのシミュレーション上の時刻を比較し、もっとも経過時間が少ないシミュレーションモデルを選択し、そのモデルの処理実行制御部703に対し、実行開始命令を出力する。   The model switching unit 702 sets the stop position information (switching information) input from the process stop position setting unit 701 in the process execution control unit 703 of the corresponding simulation model. The simulation model process execution control unit 703 in which the stop position is designated outputs an execution stop flag to the model switching unit 702 when the process reaches the stop position. When the execution stop flag is input, the model switching unit 702 outputs a process execution stop instruction to the simulation model, and transfers control to another simulation model. At this time, the model switching unit 702 compares the simulation time of each simulation model, selects the simulation model having the shortest elapsed time, and outputs an execution start command to the process execution control unit 703 of the model. To do.

このように、本実施の形態4によれば、シミュレーションモデルにおける実行が、あらかじめ設定した実行停止位置になった場合には実行を停止するとともに、実行時間の最も短いシミュレーションモデルに切り替えるので、複数のプロセッサとハードウェアとがパラレルに動作し、又、非同期に通信する場合であっても、高速にシミュレーションを実行することができる。また、本実施の形態4によれば、複数のプロセッサやハードウェアから構成されるシステムの開発効率を高め、開発スピードを向上させることができる。また、本実施の形態4によれば、高速シミュレーションを行いながら、モデル上の任意の位置に到達した時刻の全プロセッサおよび周辺回路の情報を得ることができる。具体的な例として、ブレークポイントによるシミュレーション停止設定に対応しながら、かつ高速シミュレーションの効果が得られる。   As described above, according to the fourth embodiment, when the execution in the simulation model reaches the execution stop position set in advance, the execution is stopped and switched to the simulation model having the shortest execution time. Even when the processor and hardware operate in parallel and communicate asynchronously, simulation can be executed at high speed. Further, according to the fourth embodiment, the development efficiency of a system composed of a plurality of processors and hardware can be improved and the development speed can be improved. Further, according to the fourth embodiment, it is possible to obtain information on all processors and peripheral circuits at the time when an arbitrary position on the model is reached while performing high-speed simulation. As a specific example, the effect of high-speed simulation can be obtained while corresponding to the simulation stop setting by the breakpoint.

なお、本実施の形態4と実施の形態1〜3とを適宜組み合わせるように構成しても良い。   In addition, you may comprise so that this Embodiment 4 and Embodiment 1-3 may be combined suitably.

(実施の形態5)
図8は、本発明の実施の形態5に係るシミュレーション装置800の構成を示すブロック図である。
(Embodiment 5)
FIG. 8 is a block diagram showing a configuration of simulation apparatus 800 according to Embodiment 5 of the present invention.

本実施の形態5に係るシミュレーション装置800は、図1に示す実施の形態1に係るシミュレーション装置100において、図8に示すように、実行形式指示部801を追加し、モデル切替え部105の代わりにモデル切替え部802を有する。なお、図8においては、図1と同一構成である部分には同一の符号を付してその説明は省略する。   The simulation apparatus 800 according to the fifth embodiment adds an execution format instruction unit 801 as shown in FIG. 8 to the simulation apparatus 100 according to the first embodiment shown in FIG. A model switching unit 802 is included. In FIG. 8, parts having the same configuration as in FIG.

実行形式指示部801は、実施の形態1のようにできるだけシミュレーションモデルの切り替えを抑制した高速なシミュレーション実行形式及び1処理単位ごとにシミュレーションモデルの切り替えを行うシミュレーション実行形式の内から、任意の実行形式の選択を行い、選択した実行形式の情報(切替情報)をモデル切替え部802に出力する。   The execution format instruction unit 801 is an arbitrary execution format from among a high-speed simulation execution format in which switching of simulation models is suppressed as much as in Embodiment 1 and a simulation execution format in which simulation models are switched for each processing unit. The selected execution format information (switching information) is output to the model switching unit 802.

モデル切替え部802は、実行形式指示部801から入力された実行形式の情報に従い制御する。即ち、モデル切替え部802は、高速なシミュレーションの実行形式が選択された場合は、実施の形態1と同様の制御を行い、1処理単位ごとにシミュレーションのモデルの切り替えを行うシミュレーション実行形式が選択された場合は、1処理を行うたびにシミュレーションモデルを切り替えて、シミュレーションを実行する。また、モデル切替え部802は、他のシミュレーションモデルに切り替える場合には、各々の他のシミュレーションモデルのシミュレーション上の時刻を比較し、もっとも経過時間が少ないシミュレーションモデルを選択し、そのモデルの処理実行制御部106に対し、実行開始命令を出力する。   The model switching unit 802 performs control according to the execution format information input from the execution format instruction unit 801. That is, when a high-speed simulation execution format is selected, the model switching unit 802 performs the same control as in the first embodiment, and selects a simulation execution format for switching simulation models for each processing unit. In this case, each time one process is performed, the simulation model is switched and the simulation is executed. In addition, when switching to another simulation model, the model switching unit 802 compares the simulation time of each of the other simulation models, selects the simulation model having the shortest elapsed time, and controls processing execution of the model An execution start instruction is output to the unit 106.

このように、本実施の形態5によれば、要求される実行速度が早い実行形式のシミュレーションモデルは、切り替えの回数が少なくなるようにするので、複数のプロセッサとハードウェアとがパラレルに動作し、又、非同期に通信する場合であっても、高速にシミュレーションを実行することができる。また、本実施の形態5によれば、複数のプロセッサやハードウェアから構成されるシステムの開発効率を高め、開発スピードを向上させることができる。また、本実施の形態5によれば、高速シミュレーションと1処理時間単位ごとの実行を組み合わせた検証を行うことができる。具体的な例としては、ステップ実行によるシミュレーション実行と、高速シミュレーションを組み合わせて使用することができる。   As described above, according to the fifth embodiment, since the simulation model of the execution format that requires a high execution speed reduces the number of times of switching, a plurality of processors and hardware operate in parallel. In addition, even when communicating asynchronously, simulation can be executed at high speed. Further, according to the fifth embodiment, the development efficiency of a system composed of a plurality of processors and hardware can be improved and the development speed can be improved. Further, according to the fifth embodiment, verification combining high-speed simulation and execution for each processing time unit can be performed. As a specific example, simulation execution by step execution and high-speed simulation can be used in combination.

なお、本実施の形態5において、高速なシミュレーション実行形式及び1処理単位ごとにシミュレーションモデルの切り替えを行うシミュレーション実行形式の2つの実行形式の中から選択したが、これに限らず、要求される実行速度が各々異なる3つ以上の実行形式の中から任意に実行形式を選択するようにしても良い。その際、モデル切替え部802は、要求される実行速度が速い実行形式ほど所定時間における切り替え回数が少なくなるようにする。また、本実施の形態5と実施の形態1〜4とを適宜組み合わせるように構成しても良い。   In the fifth embodiment, the execution mode is selected from two execution formats: a high-speed simulation execution format and a simulation execution format for switching the simulation model for each processing unit. The execution format may be arbitrarily selected from three or more execution formats having different speeds. At that time, the model switching unit 802 causes the number of switching times in a predetermined time to decrease as the requested execution format has a higher execution speed. Moreover, you may comprise so that this Embodiment 5 and Embodiment 1-4 may be combined suitably.

上記実施の形態1〜実施の形態5において、実行時間がもっとも少ない他のシミュレーションモデルの実行を開始するように切り替えることにしたが、これに限らず、任意のソミュレーションモデルの実行を開始するように切り替えても良い。また、上記実施の形態1〜実施の形態5において、シミュレーションモデルの数は任意にすることができる。   In the first to fifth embodiments, it is decided to switch to start execution of another simulation model having the shortest execution time. However, the present invention is not limited to this, and execution of any simulation model is started. It may be switched as follows. Moreover, in the said Embodiment 1-Embodiment 5, the number of simulation models can be made arbitrary.

本発明にかかるシミュレーション装置及びシミュレーション方法は、処理時間を高速化したシミュレーション装置に好適であり、特に、複数のプロセッサとハードウェアがパラレルに動作し、また、非同期に通信する場合のシミュレーションに好適である。   The simulation apparatus and the simulation method according to the present invention are suitable for a simulation apparatus with a high processing time, and particularly suitable for simulation when a plurality of processors and hardware operate in parallel and communicate asynchronously. is there.

本発明の実施の形態1に係るシミュレーション装置の構成を示すブロック図The block diagram which shows the structure of the simulation apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るシミュレーション装置の動作を示すフロー図The flowchart which shows operation | movement of the simulation apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るシミュレーション装置の実行順序を説明する図The figure explaining the execution order of the simulation apparatus which concerns on Embodiment 1 of this invention 本発明の実施の形態1に係るシミュレーション装置の実行例のモデル構成を示す図The figure which shows the model structure of the example of execution of the simulation apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態2に係るシミュレーション装置の構成を示すブロック図The block diagram which shows the structure of the simulation apparatus which concerns on Embodiment 2 of this invention. 本発明の実施の形態3に係るシミュレーション装置の構成を示すブロック図The block diagram which shows the structure of the simulation apparatus which concerns on Embodiment 3 of this invention. 本発明の実施の形態4に係るシミュレーション装置の構成を示すブロック図Block diagram showing a configuration of a simulation apparatus according to Embodiment 4 of the present invention 本発明の実施の形態5に係るシミュレーション装置の構成を示すブロック図Block diagram showing a configuration of a simulation apparatus according to Embodiment 5 of the present invention 従来のシミュレーション装置の動作を説明する図The figure explaining operation of the conventional simulation device

符号の説明Explanation of symbols

100 シミュレーション装置
101、102、103 シミュレーションモデル
104 出力情報記憶部
105 モデル切替え部
106 処理実行制御部
107 時間計測部
108 入力情報記憶部
109 内部情報記憶部
DESCRIPTION OF SYMBOLS 100 Simulation apparatus 101,102,103 Simulation model 104 Output information storage part 105 Model switching part 106 Process execution control part 107 Time measurement part 108 Input information storage part 109 Internal information storage part

Claims (8)

複数のシステムのそれぞれのシミュレーションを行う複数のシミュレーションモデル手段と、
前記シミュレーションモデル手段を切り替えるための情報である切替情報に基づいて、実行中の前記シミュレーションモデル手段の実行を停止させるとともに他の前記シミュレーションモデル手段の実行を開始するように切り替えるモデル切替手段と、
を具備することを特徴とするシミュレーション装置。
A plurality of simulation model means for simulating each of a plurality of systems;
Based on switching information which is information for switching the simulation model means, model switching means for switching to stop execution of the simulation model means being executed and to start execution of the other simulation model means;
A simulation apparatus comprising:
前記モデル切替手段は、実行中の前記シミュレーションモデル手段に対して、他の前記シミュレーションモデル手段から出力される情報である出力情報の入力が必要になったことを示す前記切替情報が入力した場合に、他の前記シミュレーションモデル手段の実行を開始するように切り替えることを特徴とする請求項1記載のシミュレーション装置。   When the switching information indicating that it is necessary to input output information, which is information output from the other simulation model means, is input to the simulation model means being executed. 2. The simulation apparatus according to claim 1, wherein switching is performed so as to start execution of the other simulation model means. 前記シミュレーションモデル手段は、シミュレーション上の時刻を計測し、
前記モデル切替手段は、あらかじめ設定した前記切替情報であるシミュレーション停止時刻と前記シミュレーションモデル手段にて計測された時刻とが一致した場合に、他の前記シミュレーションモデル手段の実行を開始するように切り替えることを特徴とする請求項1または請求項2記載のシミュレーション装置。
The simulation model means measures time on simulation,
The model switching means switches so as to start execution of the other simulation model means when the simulation stop time as the switching information set in advance coincides with the time measured by the simulation model means. The simulation apparatus according to claim 1, wherein:
前記シミュレーションモデル手段からの出力情報を格納する出力情報記憶手段と、
前記出力情報記憶手段における所定のシミュレーションモデル手段の記憶情報量と閾値とを比較する出力情報記憶量監視手段を具備し、
前記モデル切替手段は、前記切替情報である前記記憶情報量が前記閾値以上になったことが前記出力情報記憶量監視手段にて検出された場合には、実行中の前記シミュレーションモデル手段を他の前記シミュレーションモデル手段に切り替えることを特徴とする請求項1から請求項3のいずれかに記載のシミュレーション装置。
Output information storage means for storing output information from the simulation model means;
Comprising output information storage amount monitoring means for comparing the storage information amount of the predetermined simulation model means in the output information storage means with a threshold;
When the output information storage amount monitoring unit detects that the stored information amount as the switching information is equal to or greater than the threshold, the model switching unit determines whether the simulation model unit being executed is another The simulation apparatus according to claim 1, wherein the simulation apparatus is switched to the simulation model unit.
前記モデル切替手段は、前記シミュレーションモデル手段における実行が、あらかじめ設定した前記切替情報である実行停止位置になった場合には、他の前記シミュレーションモデル手段の実行を開始するように切り替えることを特徴とする請求項1から請求項4のいずれかに記載のシミュレーション装置。   The model switching means switches to start execution of the other simulation model means when execution in the simulation model means reaches an execution stop position that is the preset switching information. The simulation apparatus according to any one of claims 1 to 4. 要求される実行速度が異なるシミュレーションモデルの複数の実行形式の中から任意の前記実行形式を選択する実行形式指示手段を具備し、
前記モデル切替手段は、前記実行形式指示手段にて選択された前記切替情報である前記実行形式の情報より、要求される実行速度が速い前記実行形式ほど所定時間における切り替え回数が少なくなるように、他の前記シミュレーションモデル手段の実行を開始するように切り替えることを特徴とする請求項1から請求項5のいずれかに記載のシミュレーション装置。
Comprising execution format instruction means for selecting any of the execution formats from among a plurality of execution formats of simulation models having different required execution speeds,
The model switching unit is configured so that the number of times of switching in a predetermined time is reduced as the execution format has a higher execution speed than the execution format information that is the switching information selected by the execution format instruction unit. 6. The simulation apparatus according to claim 1, wherein switching is performed so as to start execution of the other simulation model means.
前記モデル切替手段は、実行時間がもっとも少ない他の前記シミュレーションモデル手段の実行を開始するように切り替えることを特徴とする請求項1から請求項6のいずれかに記載のシミュレーション装置。   The simulation apparatus according to claim 1, wherein the model switching unit performs switching so as to start execution of another simulation model unit having the shortest execution time. 複数のシミュレーションモデルのそれぞれのシミュレーションを行うステップと、
前記シミュレーションモデルの実行を切り替えるための情報である切替情報に基づいて、実行中の前記シミュレーションモデルを停止させるとともに他の前記シミュレーションモデルの実行を開始するように切り替えるステップと、
を具備することを特徴とするシミュレーション方法。
Performing each simulation of a plurality of simulation models;
Based on switching information that is information for switching the execution of the simulation model, the step of switching to stop the simulation model being executed and start the execution of another simulation model;
A simulation method comprising:
JP2005027432A 2005-02-03 2005-02-03 Simulation device and simulation method Pending JP2006215781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005027432A JP2006215781A (en) 2005-02-03 2005-02-03 Simulation device and simulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005027432A JP2006215781A (en) 2005-02-03 2005-02-03 Simulation device and simulation method

Publications (1)

Publication Number Publication Date
JP2006215781A true JP2006215781A (en) 2006-08-17

Family

ID=36978979

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005027432A Pending JP2006215781A (en) 2005-02-03 2005-02-03 Simulation device and simulation method

Country Status (1)

Country Link
JP (1) JP2006215781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100530103C (en) * 2007-12-29 2009-08-19 中国科学院计算技术研究所 Simulator and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100530103C (en) * 2007-12-29 2009-08-19 中国科学院计算技术研究所 Simulator and method

Similar Documents

Publication Publication Date Title
US9043806B2 (en) Information processing device and task switching method
JP2006329788A (en) Testing system for on-vehicle electrical component, and testing method
JP5320918B2 (en) Network system and system test program
EP3327573B1 (en) Multi-processor and multi-processor system
JP2548428B2 (en) Timing generator
JP2006215781A (en) Simulation device and simulation method
JP6419400B1 (en) PLC, network unit, CPU unit, and data transfer method
US6831654B2 (en) Data processing system
US6643749B2 (en) Interface for multi-processor
CN100361433C (en) Communication device using three step communication buffer storage
CN108541307B (en) Programmable controller and synchronization control method
JP2002082813A (en) Program logic device
JP2000155701A (en) Debugging circuit
JPS62232036A (en) Information processor
JP3735551B2 (en) Information processing device that operates in synchronous / asynchronous mode
JP3463543B2 (en) Address generation circuit for data compression
JP4813823B2 (en) Test system and test method
US20180225245A1 (en) Programmable controller
US8280529B2 (en) Sequence control apparatus and test apparatus
CN116431557A (en) Method, device, chip, apparatus and storage medium for controlling interconnection device
JPH09146901A (en) Program transfer system
JP2005157929A (en) Semiconductor device
JP3114111B2 (en) Logic emulation method and system
JP3678656B2 (en) Interface circuit, logic circuit verification method, logic device, information processing device
JPH1185518A (en) Controller