JP2000020348A - Simulation device and computer readable recording medium storing simulation program - Google Patents

Simulation device and computer readable recording medium storing simulation program

Info

Publication number
JP2000020348A
JP2000020348A JP10189199A JP18919998A JP2000020348A JP 2000020348 A JP2000020348 A JP 2000020348A JP 10189199 A JP10189199 A JP 10189199A JP 18919998 A JP18919998 A JP 18919998A JP 2000020348 A JP2000020348 A JP 2000020348A
Authority
JP
Japan
Prior art keywords
cpu
simulation
operation timing
simulation device
changing
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
JP10189199A
Other languages
Japanese (ja)
Inventor
Hidenao Bito
英直 尾藤
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP10189199A priority Critical patent/JP2000020348A/en
Publication of JP2000020348A publication Critical patent/JP2000020348A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To execute the integrated logical verification of software corresponding to various parallel operation timing of a system constitution element by providing a simulation device with a means for changing the parallel operation timing of the system constitution element and freely changing the prallel operation timing of the element to be operated in parallel synchronously with a instruction execution process of a CPU. SOLUTION: A CPU simulation device 1 tries an instruction execution process of a real CPU on a host CPU different from the real CPU. A parallel operation element 7 executes parallel operation synchronously with the instruction execution process. A scheduler 9 executes the reception of registration/deletion requests of a time event and the control of the monitor/execution of the events from the device 1 and the element 7. An operation timing changing means 11 changes the operation timing of the element 7. In the case of changing the timing of the element 7, parameters such as a frequency division value and a difference are inputted to the means 11.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、組み込み型ソフト
ウェア等のソフトウェア動作を実際に組み込むっCPU
(以下、実CPUと略記)とは異なるCPU(以下、ホ
ストCPUと略記)上でテストするシミュレーション装
置及びシミュレーションプログラムを記録したコンピュ
ータ読み取り可能な記録媒体に係り、特にシミュレーシ
ョン装置内部のシステム構成要素のCPUとの並列動作
タイミングを可変とすることにより、種々の並列動作タ
イミングに対応したソフトウェアの動作テストを可能と
する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CPU for actually incorporating software operations such as embedded software.
The present invention relates to a simulation apparatus for testing on a CPU (hereinafter, abbreviated as a host CPU) different from a real CPU (hereinafter, abbreviated as a host CPU) and a computer-readable recording medium on which a simulation program is recorded. The present invention relates to a technology that enables an operation test of software corresponding to various parallel operation timings by making the parallel operation timing with a CPU variable.

【0002】[0002]

【従来の技術】ソフトウェアシミュレーション装置(以
下、シミュレーション装置と略記)は、ホストCPU
で、ソフトウェアの実CPU上における動作をテストす
ることを目的とし、近年、組み込み型ソフトウェア等の
開発に広く利用されている。
2. Description of the Related Art A software simulation device (hereinafter, abbreviated as a simulation device) includes a host CPU.
For the purpose of testing the operation of software on a real CPU, it is widely used in recent years for the development of embedded software and the like.

【0003】一般的に、シミュレーション装置は、CP
Uの命令セットのシミュレーションだけでなく、システ
ムに付属した入出力装置の動作に関連するソフトウェア
内のモジュールの論理検証や外部入力を外乱としたソフ
トウェア全体の統合的な論理検証をも行うことを可能と
するために、シミュレーション装置内部にCPUの命令
実行過程と同期して並列動作するシステム構成要素を備
え、システム構成上はホストCPU上で周辺I/O装置
や外部環境を含めた実CPU周辺の環境を再現できる仕
組みとなっている。
[0003] Generally, a simulation device is a CP
It is possible to not only simulate the instruction set of U, but also perform the logic verification of the module in the software related to the operation of the input / output device attached to the system and the integrated logic verification of the whole software with external input as disturbance. In order to achieve this, a system component that operates in parallel in synchronization with the instruction execution process of the CPU is provided inside the simulation device, and the system configuration includes a peripheral I / O device and a peripheral I / O device including an external environment on the host CPU. It is a mechanism that can reproduce the environment.

【0004】以下、図4乃至図6を用いて、典型的なシ
ミュレーション装置のシステム構成及びその動作につい
て説明する。
[0004] The system configuration and operation of a typical simulation apparatus will be described below with reference to FIGS. 4 to 6.

【0005】初めに、図4を用いて従来のシミュレーシ
ョン装置のシステム構成について説明する。
First, a system configuration of a conventional simulation apparatus will be described with reference to FIG.

【0006】従来のシミュレーション装置は、CPUの
命令実行過程をシミュレーションするCPUシミュレー
ション装置1と、CPUアドレスにメモリアクセスイベ
ント関数をマッピングするアドレス管理部3と、メモリ
の動作をシミュレーションするメモリシミュレーション
装置5と、CPUシミュレーション装置1によるCPU
の命令実行過程と同期して並列動作する並列動作要素7
と、前記CPUシミュレーション装置1及び前記並列動
作要素7からの時間イベントの登録・削除要求の受付、
イベントの監視・実行の制御を行うためのスケジューラ
9とを備え、前記並列動作要素7は、周辺I/O装置や
外部環境シミュレーション装置等から構成されている。
The conventional simulation device includes a CPU simulation device 1 for simulating an instruction execution process of a CPU, an address management unit 3 for mapping a memory access event function to a CPU address, and a memory simulation device 5 for simulating a memory operation. CPU by CPU simulation device 1
Parallel operation element 7 that operates in parallel in synchronization with the instruction execution process of
And reception of requests for registration / deletion of time events from the CPU simulation device 1 and the parallel operation element 7.
A scheduler 9 for monitoring and executing events is provided, and the parallel operation element 7 includes a peripheral I / O device, an external environment simulation device, and the like.

【0007】さらに、スケジューラは、図5に示すよう
に、システム構成要素から登録される複数のイベントテ
ーブル15から構成され、さらに、イベントテーブル1
5は、システム構成要素の時間情報を格納するカウンタ
フィールド15a、イベント情報を格納するイベント情
報フィールド15b、次のイベントテーブルを示すフィ
ールド15cから成る。ここで、イベント情報とは、個
々のシステム構成要素が予め持つ時間イベントに関する
情報を意味する。
Further, the scheduler is composed of a plurality of event tables 15 registered from system components as shown in FIG.
Reference numeral 5 includes a counter field 15a for storing time information of system components, an event information field 15b for storing event information, and a field 15c indicating the next event table. Here, the event information means information on a time event that each system component has in advance.

【0008】上記シミュレーション装置においては、シ
ミュレーション装置内のスケジューラが他のシステム構
成要素の動作を管理する。そこで、以下では、スケジュ
ーラの動きを中心にシミュレーション装置の動作につい
て説明する。
In the above simulation apparatus, a scheduler in the simulation apparatus manages operations of other system components. Therefore, hereinafter, the operation of the simulation device will be described focusing on the operation of the scheduler.

【0009】システム構成要素が動作する際は、それぞ
れのシステム構成要素は、イベント発生時にイベント情
報をスケジューラに登録する。スケジューラはシステム
構成要素からのイベント登録要求を受けると、システム
構成要素から要求を受けたイベント情報を含んだイベン
トテーブルを追加し、スケジューラ内部を再構築する。
そして、登録された各イベントテーブルをチェーンで結
び、最初に実行すべきイベントテーブルを指定する。さ
らに、現時点から最初に実行すべき時間を指定したイベ
ントテーブルから割り出し、割り出された時間情報を個
々のイベントテーブルのカウンタフィールドに格納す
る。
When the system components operate, each system component registers event information in the scheduler when an event occurs. When the scheduler receives an event registration request from a system component, the scheduler adds an event table containing event information requested from the system component, and reconfigures the inside of the scheduler.
Then, the registered event tables are linked by a chain, and an event table to be executed first is specified. Further, the time to be executed first from the present time is determined from the designated event table, and the determined time information is stored in the counter field of each event table.

【0010】上記のように、シミュレーション実行に先
立ち、システム構成要素の時間イベントはスケジューラ
内に登録される。
As described above, prior to execution of the simulation, the time event of the system component is registered in the scheduler.

【0011】次に、システム構成要素からの時間イベン
ト登録があった後のシミュレーションの動作について、
命令内容がメモリマップドされたI/O装置へのアクセ
ス命令の場合を例に挙げ、説明する。
Next, the operation of the simulation after the registration of the time event from the system component will be described.
A description will be given by taking as an example the case where the instruction content is an access instruction to an I / O device to which memory mapping is performed.

【0012】図6は、従来のシミュレーション装置によ
る1命令の動作を説明するフローチャートを示す。
FIG. 6 is a flowchart for explaining the operation of one instruction by the conventional simulation device.

【0013】命令内容がメモリマップドされたI/O装
置へのアクセス命令の場合、メモリアクセスイベントが
間接的に起動され、前述のように、システム構成要素で
あるI/O装置は時間イベントをスケジューラに登録す
る。時間イベントが登録されると、スケジューラは、C
PU命令セットシミュレーション実行(ステップS1)
後、CPUシミュレーション装置から経過時間情報を取
得し、登録された時間イベントを実行するための所定の
経過時間に達したか否かを監視する(ステップS2)。
この監視ルーチンにおいて、登録されたイベントが実行
されるべき時間に達する(ステップS3)とスケジュー
ラは登録されたイベントを実行する(ステップS4)。
イベントの実行後、イベントテーブルの中でカウンタ、
イベントフィールドの内容が更新され(ステップS
5)、イベントが終了後、イベントテーブルの情報に基
づき、次のイベントに移行する(ステップS6)。
When the instruction content is an instruction to access a memory-mapped I / O device, a memory access event is indirectly activated, and as described above, the I / O device, which is a system component, generates a time event. Register with the scheduler. When a time event is registered, the scheduler
PU instruction set simulation execution (step S1)
Thereafter, elapsed time information is obtained from the CPU simulation device, and it is monitored whether or not a predetermined elapsed time for executing the registered time event has been reached (step S2).
In this monitoring routine, the scheduler executes the registered event when the time to execute the registered event has been reached (step S3) (step S4).
After executing the event, the counter in the event table,
The contents of the event field are updated (step S
5) After the event ends, the process proceeds to the next event based on the information in the event table (step S6).

【0014】以上説明してきたように、システム構成要
素の時間イベントはスケジューラに登録され、その実行
開始は常にCPU命令時間を基準としており、CPUの
命令実行前後でCPU内部の論理状態の整合性が確保さ
れる。つまり、システム構成要素がCPU命令実行部と
同期して並列動作するシミュレーションが行なわれてい
る。
As described above, the time event of the system component is registered in the scheduler, and its execution is always started with reference to the CPU instruction time, and the consistency of the logical state inside the CPU before and after the CPU executes the instruction. Secured. That is, a simulation is performed in which system components operate in parallel in synchronization with the CPU instruction execution unit.

【0015】[0015]

【発明が解決しようとする課題】従来までのシミュレー
ション装置内のシステム構成要素はCPUの命令実行と
同期して動作する構成となっている。しかしながら、こ
のようにシステム構成要素が常に同じタイミング、同じ
場所で全く同じ動作をすることは、ホストCPU上で再
現される環境が実CPUのそれと全く等しくない限り
は、シミュレーション精度の低下という大きな問題を引
き起こす。
The system components in the conventional simulation apparatus are configured to operate in synchronization with the execution of instructions by the CPU. However, the fact that the system components always perform the same operation at the same timing and at the same place as described above is a serious problem that the simulation accuracy is reduced unless the environment reproduced on the host CPU is exactly the same as that of the real CPU. cause.

【0016】例えば、キャッシュが正確にシミュレーシ
ョンされていない場合、メモリアクセスを伴う命令が頻
繁に連続すると、命令の処理に要するクロック数が実C
PUのそれよりも多く見積もられてしまう。
For example, if the cache is not accurately simulated, and if instructions involving memory accesses are frequently consecutive, the number of clocks required for processing the instruction may be reduced to the actual C number.
It is estimated more than that of PU.

【0017】さらに、命令と同期して動作するタイマシ
ミュレーション装置を備えている場合には、実際の命令
数よりも短い間隔でタイマ割り込みが発生してしまう。
このような不具合は、パイプライン、メモリのウエイト
等が正確にシミュレーションされていない場合も同様に
生じうる。
Further, when a timer simulation device that operates in synchronization with an instruction is provided, a timer interrupt occurs at intervals shorter than the actual number of instructions.
Such a problem can also occur when the simulation of the pipeline, the weight of the memory, or the like is not accurately performed.

【0018】つまり、従来のシミュレーション装置にお
いて、システム構成要素が常に同じタイミング、同じ場
所で全く同じ動作をする限りは、ホストCPU上で実際
のCPU上におけるソフトウェアの動作を試行できる範
囲は非常に狭く、その動作を正確に見積もることができ
ないことになる。
That is, in the conventional simulation apparatus, as long as the system components always perform exactly the same operation at the same timing and at the same place, the range in which the software operation on the actual CPU can be tried on the host CPU is very narrow. , The operation cannot be accurately estimated.

【0019】本問題を解決するための一つの手段とし
て、実際の環境と全く同じタイミング、精度で動作する
シミュレーション装置を作製する方法が考えられるが、
一つの環境にのみ適合したシミュレーション装置を作製
することは、汎用性のあるシミュレーション装置の作製
という観点から見ても問題があり、さらには、そのよう
なシミュレーション装置を作製することは現段階で技術
的に非常に大きな困難を伴う。
As one means for solving this problem, a method of manufacturing a simulation device that operates with exactly the same timing and accuracy as in an actual environment can be considered.
Producing a simulation device that is suitable for only one environment is problematic in terms of producing a versatile simulation device, and furthermore, producing such a simulation device is a technology at this stage. Very difficult.

【0020】本発明は、上記の問題点を鑑みてなされた
ものであり、システム構成要素のCPUの命令実行に対
する動作タイミングを変更することが可能なシミュレー
ション装置及びシミュレーションプログラムを記録した
コンピュータ読取り可能な記録媒体を提供することであ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has a simulation apparatus capable of changing the operation timing of a CPU of a system component for executing an instruction and a computer readable recording of a simulation program. It is to provide a recording medium.

【0021】[0021]

【課題を解決するための手段】上記課題を解決するため
に、本発明のシミュレーション装置及びシミュレーショ
ンプログラムを格納したコンピュータ読取り可能な記録
媒体の特徴は、実CPUとは異なるホストCPU上で実
CPUの命令実行過程を試行するためのCPUシミュレ
ーション装置と、当該命令実行過程と同期して並列動作
するシステム構成要素を有するシミュレーション装置及
びシミュレーションプログラムを記録したコンピュータ
読取り可能な記録媒体において、前記システム構成要素
の並列動作タイミングを変更するための手段を備えたこ
とにある。
In order to solve the above-mentioned problems, the features of the simulation apparatus and the computer-readable recording medium storing the simulation program of the present invention are as follows. A CPU simulation device for testing an instruction execution process, a simulation device having a system component that operates in parallel in synchronization with the instruction execution process, and a computer-readable recording medium on which a simulation program is recorded; There is provided means for changing the parallel operation timing.

【0022】(作用)本発明においては、CPUの命令
実行過程と同期して並列動作するシステム構成要素の並
列動作タイミングを自由に変更することができるので、
システム構成要素の種々の並列動作タイミングに対応し
た、ソフトウェアの総合的な論理検証を行うことができ
る。
(Operation) In the present invention, the parallel operation timing of the system components which operate in parallel in synchronization with the instruction execution process of the CPU can be freely changed.
Comprehensive logic verification of software corresponding to various parallel operation timings of system components can be performed.

【0023】[0023]

【発明の実施の形態】以下、図面に基づいて、本発明の
一実施形態の構成及び動作原理について説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention.

【0024】図1は、本発明を実施したシミュレーショ
ン装置のシステム構成を表す部ブロック図を示す。
FIG. 1 is a block diagram showing a system configuration of a simulation apparatus embodying the present invention.

【0025】本発明のシミュレーション装置のシステム
は、CPUの命令実行過程をシミュレーションするCP
Uシミュレーション装置1と、CPUアドレスにメモリ
アクセスイベント関数をマッピングするアドレス管理部
3と、メモリの動作をシミュレーションするメモリシミ
ュレーション装置5と、CPUの命令実行過程と同期し
て並列動作する並列動作要素7と、前記CPUシミュレ
ーション装置1及び前記並列動作要素7からの時間イベ
ントの登録・削除要求の受付、イベントの監視・実行の
制御を行うためのスケジューラ9と、前記並列動作要素
7の動作タイミングを変更するための動作タイミング変
更手段11を備え、前記並列動作要素7は、周辺I/O
装置や外部環境シミュレーション装置から構成されてい
る。
The system of the simulation apparatus according to the present invention has a CP
U simulation device 1, an address management unit 3 that maps a memory access event function to a CPU address, a memory simulation device 5 that simulates the operation of a memory, and a parallel operation element 7 that operates in parallel in synchronization with the instruction execution process of the CPU A scheduler 9 for receiving a registration / deletion request of a time event from the CPU simulation device 1 and the parallel operation element 7 and controlling the monitoring and execution of the event; and changing the operation timing of the parallel operation element 7 The parallel operation element 7 includes a peripheral I / O
It consists of a device and an external environment simulation device.

【0026】並列動作要素のタイミングを変更する際
は、動作タイミング変更手段11に対し後述のパラメー
タを入力する。パラメータ入力により、並列動作要素の
並列動作タイミングを自由に変化させることができる。
以下に、動作タイミング変更手段11より入力可能なパ
ラメータとその機能について説明する。
When changing the timing of the parallel operation elements, parameters to be described later are input to the operation timing changing means 11. The parallel operation timing of the parallel operation element can be freely changed by the parameter input.
Hereinafter, parameters that can be input from the operation timing changing unit 11 and their functions will be described.

【0027】(イ) 分周値M(M>0) 分周値Mを与えることにより、並列動作要素の動作タイ
ミングの周期を変化させることができる。例えば、分周
値Mに正の整数を指定した場合には、並列動作タイミン
グの周期がM倍長くなる。一方、正の分数を指定した場
合には、その周期はM倍短くなる。
(A) Divided value M (M> 0) By giving the divided value M, the cycle of the operation timing of the parallel operation element can be changed. For example, when a positive integer is specified for the frequency division value M, the cycle of the parallel operation timing becomes M times longer. On the other hand, when a positive fraction is specified, the period is shortened by M times.

【0028】(ロ) 差分N 差分Nを与えることにより、並列動作要素の動作タイミ
ングの位相を変化させることができる。例えば、差分N
に正の数を指定した場合には、並列動作タイミングが全
体的にNシミュレーション時間単位遅れる。一方、負の
数を指定した場合には、並列動作タイミングは全体的に
|N|シミュレーション時間単位速くなる。
(B) Difference N By giving the difference N, the phase of the operation timing of the parallel operation element can be changed. For example, the difference N
, A parallel operation timing is delayed by N simulation time units as a whole. On the other hand, when a negative number is specified, the parallel operation timing is generally faster by | N | simulation time unit.

【0029】(ハ)分布関数(平均値μ、標準偏差σ、
確立変数X) 平均値μ、標準偏差σ、確率変数Xによって分布関数を
指定することにより、分周値又は差分が分布関数に基づ
いて任意に与えられる。
(C) Distribution function (mean value μ, standard deviation σ,
Probable variable X) By specifying a distribution function using the average value μ, the standard deviation σ, and the random variable X, a frequency division value or a difference is arbitrarily given based on the distribution function.

【0030】(ニ) (イ)(ロ)(ハ)の組み合わせ 上記(イ)、(ロ)、(ハ)の方法を組み合わせること
により、分周値、差分を求め、並列動作タイミングを変
化させる。
(D) Combination of (a), (b), and (c) By combining the above methods (a), (b), and (c), the frequency division value and the difference are obtained, and the parallel operation timing is changed. .

【0031】(ホ) ユーザー定義式 任意のパラメータにより構成された関数を用いて、分周
値、差分を求め、並列動作タイミングを変化させる。
(E) User-defined formula Using a function composed of arbitrary parameters, a frequency division value and a difference are obtained, and the parallel operation timing is changed.

【0032】上記の並列動作タイミングの変化は、スケ
ジューラ内のイベントテーブルのカウンタフィールドの
値の更新処理の方法に変えることにより実現される。以
下、その原理について説明する。
The change of the parallel operation timing is realized by changing the method of updating the value of the counter field of the event table in the scheduler. Hereinafter, the principle will be described.

【0033】従来技術で述べたように、従来のカウンタ
フィールドの内容は、システム構成要素からの時間情報
をそのまま登録し利用する。そこで、本発明において
は、カウンタフィールド内の時間情報を動作タイミング
変更手段からパラメータを与えることにより変化させる
こととした。
As described in the prior art, the content of the conventional counter field is used by directly registering the time information from the system components. Therefore, in the present invention, the time information in the counter field is changed by giving a parameter from the operation timing changing means.

【0034】例えば、動作タイミング変更手段より分周
値Mを与えた場合には、カウンタフィールドには、時間
情報に分周値を掛けた値が登録される。
For example, when the dividing value M is given by the operation timing changing means, a value obtained by multiplying the time information by the dividing value is registered in the counter field.

【0035】すなわち、 (i)分周値Mを与えた場合 カウンタフィールド値=(時間情報)×(分周値M) となる。That is, (i) When the division value M is given: Counter field value = (time information) × (division value M).

【0036】一方、 (ii)差分Nを与えた場合 カウンターフィールド値=(時間情報)+(差分N) (iii)分周値M、差分N両方を与えた場合 カウンターフィールド値=(時間情報)×(分周値M)
+(差分N) (iv)分布関数を与えた場合 カウンターフィールド値=時間情報、平均値μ、標準偏
差σ、確率変数Xに対して乱数を発生させた値 となる。
On the other hand, (ii) when the difference N is given, the counter field value = (time information) + (difference N) (iii) when both the frequency division value M and the difference N are given, the counter field value = (time information) × (divided value M)
+ (Difference N) (iv) When a distribution function is given Counter field value = time information, average value μ, standard deviation σ, and a value generated by generating a random number for random variable X.

【0037】上記のように、本方法によりCPUの動作
とは関係なく、スケジューラ内におけるイベントテーブ
ルのカウンタフィールドの値を変更することができる。
これにより、CPUシミュレーション装置と並列動作す
るシステム構成要素の動作タイミングを自由に変更する
ことができる。
As described above, according to the present method, the value of the counter field of the event table in the scheduler can be changed regardless of the operation of the CPU.
Thereby, the operation timing of the system components operating in parallel with the CPU simulation device can be freely changed.

【0038】尚、本実施形態においては、パラメータ指
定により全てのシステム構成要素の動作タイミングが変
化するが、システム構成要素のそれぞれに認識番号を付
与し、認識番号を当該動作タイミング変更手段を介して
指定することにより、一つ一つのシステム構成要素に対
し動作タイミングの変更を施すことができる。
In this embodiment, the operation timings of all the system components change according to the parameter designation. However, identification numbers are assigned to the respective system components, and the identification numbers are changed via the operation timing changing means. By specifying, the operation timing can be changed for each system component.

【0039】また、本シミュレーションプログラムは、
コンピュータ読取り可能な記録媒体に保存することがで
きる。ここで、記録媒体とは、メモリ装置、磁気ディス
ク装置、光ディスク装置等、シミュレーションプログラ
ムを記録することができるような装置が含まれる。
The simulation program is:
It can be stored in a computer-readable recording medium. Here, the recording medium includes a device capable of recording a simulation program, such as a memory device, a magnetic disk device, and an optical disk device.

【0040】[実験例]以下、本発明を実施したシミュ
レーション装置を用いて、CPUの命令実行と同期して
並列動作するシステム構成要素の動作タイミングを変化
させた実験結果を示す。
[Experimental Examples] Hereinafter, experimental results will be shown in which the operation timing of system components that operate in parallel in synchronization with the execution of instructions by the CPU is changed using a simulation apparatus embodying the present invention.

【0041】図2は、100シミュレーション時間単位
の周期でCPUの命令実行と並列動作するシステム構成
要素の並列動作タイミングを本発明のシミュレーション
装置を用いて変化させた結果を表すタイミング図を示
す。
FIG. 2 is a timing chart showing the result of using the simulation apparatus of the present invention to change the parallel operation timing of the system components that operate in parallel with the instruction execution of the CPU in a cycle of 100 simulation time units.

【0042】図2中、横軸はシミュレーション時間を表
し、山形の波形が現れた点がシステム構成要素が動作す
るポイントを指す。
In FIG. 2, the abscissa represents the simulation time, and the point where the chevron-shaped waveform appears indicates the point where the system component operates.

【0043】従来のシミュレーション装置においては、
本来のシステム構成要素の動作周期(図2(a))であ
る100シミュレーション時間単位は変更することがで
きなかったが、本発明によれば、前節で述べたように、
分周値や差分を指定することにより、その動作タイミン
グを変更させることができる。
In a conventional simulation device,
Although the original operation cycle of the system components (FIG. 2A), ie, 100 simulation time units, could not be changed, according to the present invention, as described in the previous section,
By specifying a frequency division value or a difference, the operation timing can be changed.

【0044】例えば、分周値Mに正の整数として2を指
定した場合、システム構成要素の動作周期は、図2
(b)に示す波形のように周期が長くなり、2倍の20
0シミュレーション時間単位となる。逆に、分周値Mに
正の分数1/2を指定した場合には、システム構成要素
の動作周期は、図2(c)に示す波形のように周期が短
くなり、1/2倍の50シミュレーション時間単位とな
る。
For example, when 2 is specified as a positive integer for the frequency division value M, the operation cycle of the system component is as shown in FIG.
The period becomes longer as shown in the waveform shown in FIG.
0 simulation time unit. Conversely, when a positive fraction 1/2 is specified for the frequency division value M, the operation cycle of the system component becomes shorter as shown in the waveform of FIG. 50 simulation time units.

【0045】一方、差分Nに−5を指定した場合には、
システム構成要素の動作周期は、図2(d)に示すよう
に、動作タイミングが全体的に5シミュレーション時間
単位左にシフトする。つまり、5シミュレーション時間
単位早く動作が開始することになる。この際、さらに分
周値Mに2を指定すると、システム構成要素の動作周期
は2倍の200シミュレーション時間単位となった状態
で、全体的に5シミュレーション時間単位左にシフトす
る(図2(e))。
On the other hand, when -5 is specified for the difference N,
As shown in FIG. 2D, the operation cycle of the system components shifts the operation timing as a whole to the left by 5 simulation time units. That is, the operation starts five simulation time units earlier. At this time, if the frequency division value M is further designated as 2, the operation cycle of the system component is shifted to the left by 5 simulation time units as a whole with 200 operation time units being doubled (FIG. 2 (e)). )).

【0046】また、分周値Mの値に、平均値μ=1.0
0,標準偏差σ=0.10,確率変数X=0.03とし
た分布関数を指定した場合には、M≦Xの範囲での分布
確率にしたがって、任意の分周値Mで並列動作するよう
になる(図2(f))。
Further, the value of the dividing value M is added to the average value μ = 1.0.
When a distribution function with 0, standard deviation σ = 0.10, and random variable X = 0.03 is specified, parallel operation is performed with an arbitrary frequency division value M according to the distribution probability in the range of M ≦ X. (FIG. 2F).

【0047】図3は、150シミュレーション時間単位
の周期で動作するシステム構成要素の並列動作タイミン
グを本発明のシミュレーション装置を用いて変化させた
結果を表すタイミング図を示す。
FIG. 3 is a timing chart showing the result of changing the parallel operation timing of the system components operating at a cycle of 150 simulation time units using the simulation apparatus of the present invention.

【0048】図2と同様、横軸はシミュレーション時間
を表し、山形の波形が現れた点がシステム構成要素が動
作するポイントを指す。また、指定するパラメータ値
は、図2に示す実験結果と同じものを用いた。
As in FIG. 2, the abscissa represents the simulation time, and the point where the chevron-shaped waveform appears indicates the point where the system component operates. The designated parameter values were the same as the experimental results shown in FIG.

【0049】図3からわかるように、1つの周期中に複
数の波形を含むような場合も、並列動作のタイミングを
変化させることができる。
As can be seen from FIG. 3, the timing of the parallel operation can be changed even when a plurality of waveforms are included in one cycle.

【0050】[0050]

【発明の効果】周辺I/O装置や外部環境シミュレーシ
ョン装置などといった、CPUの命令実行過程と同期し
て並列動作するシステム構成要素の動作タイミングを任
意に変更することができる手段により、システム構成要
素の種々の並列動作タイミングを網羅した、ソフトウェ
アの総合的な論理検証を行うことができる。
According to the present invention, there is provided a system component, such as a peripheral I / O device or an external environment simulation device, which can arbitrarily change the operation timing of a system component that operates in parallel in synchronization with the instruction execution process of the CPU. Comprehensive logic verification of software covering various parallel operation timings can be performed.

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

【図1】本発明を実施したシミュレーション装置のシス
テム構成を示すブロック図である。
FIG. 1 is a block diagram showing a system configuration of a simulation device embodying the present invention.

【図2】本発明によるシステム構成要素の動作タイミン
グの変化を示す図である。
FIG. 2 is a diagram showing a change in operation timing of a system component according to the present invention.

【図3】本発明によるシステム構成要素の動作タイミン
グの変化を示す図である。
FIG. 3 is a diagram showing a change in operation timing of a system component according to the present invention.

【図4】従来のシミュレーション装置のシステム構成を
示すブロック図である。
FIG. 4 is a block diagram showing a system configuration of a conventional simulation device.

【図5】従来のスケジューラのシステム構成を示す図で
ある。
FIG. 5 is a diagram showing a system configuration of a conventional scheduler.

【図6】スケジューラによる命令実行制御過程を説明す
るためのフローチャートである。
FIG. 6 is a flowchart for explaining an instruction execution control process by the scheduler.

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

1 CPUシミュレーション装置 3 アドレス管理部 5 メモリシミュレーション装置 7 並列動作要素 9 スケジューラ 11 動作タイミング変更手段 13 システム構成要素 15 イベントテーブル 15a カウンタフィールド 15b イベント情報 DESCRIPTION OF SYMBOLS 1 CPU simulation apparatus 3 Address management part 5 Memory simulation apparatus 7 Parallel operation element 9 Scheduler 11 Operation timing change means 13 System component 15 Event table 15a Counter field 15b Event information

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 実CPUとは異なるホストCPU上で実
CPUの命令実行過程を試行するためのCPUシミュレ
ーション装置と当該命令実行過程と同期して並列動作す
るシステム構成要素とを有するシミュレーション装置に
おいて、 前記システム構成要素の並列動作タイミングを変更する
ための手段と備えたことを特徴とするシミュレーション
装置。
1. A simulation device comprising: a CPU simulation device for testing an instruction execution process of a real CPU on a host CPU different from the real CPU; and a system component that operates in parallel in synchronization with the instruction execution process. A simulation device comprising means for changing a parallel operation timing of the system components.
【請求項2】 請求項1に記載のシミュレーション装置
において、 前記CPUシミュレーション装置及び前記システム構成
要素からの時間イベントの登録・削除要求の受付、イベ
ントの監視・実行の制御を行うためのスケジューラとを
有し、 前記並列動作のタイミングの変更は、当該スケジューラ
に登録される前記システム構成要素の時間情報を変更す
ることによりなされることを特徴とするシミュレーショ
ン装置。
2. The simulation device according to claim 1, further comprising: a scheduler configured to receive a registration / deletion request of a time event from the CPU simulation device and the system component, and to control monitoring and execution of the event. The simulation apparatus, wherein the change of the timing of the parallel operation is performed by changing time information of the system component registered in the scheduler.
【請求項3】 実CPUとは異なるホストCPU上で実
CPUの命令実行過程を試行する機能と、 当該命令実行過程と同期して並列動作するシステム構成
要素の動作を試行する機能と、 前記システム構成要素の並列動作タイミングを変更する
機能とをコンピュータに実現させることを特徴とするシ
ミュレーションプログラムを記録したコンピュータ読み
取り可能な記録媒体。
3. A function of trying an instruction execution process of the real CPU on a host CPU different from the real CPU, a function of trying an operation of a system component that operates in parallel in synchronization with the instruction execution process, and A computer-readable recording medium on which a simulation program is recorded, wherein the computer realizes a function of changing a parallel operation timing of a component.
【請求項4】 前記実CPU及び前記システム構成要素
からの時間イベント登録・削除要求の受付、イベントの
監視・実行を制御するスケジューリング機能をコンピュ
ータに実現させ、 前記システム構成要素の並列動作タイミングの変更は、
当該スケジューリング機能により前記システム構成要素
の時間情報を変更することによりなされることを特徴と
する請求項3に記載のシミュレーションプログラムを記
録したコンピュータ読み取り可能な記録媒体。
4. A computer having a scheduling function for controlling reception of a time event registration / deletion request from the real CPU and the system component, and monitoring / execution of an event, and changing a parallel operation timing of the system component. Is
4. A computer-readable recording medium according to claim 3, wherein the scheduling function is performed by changing time information of the system components.
JP10189199A 1998-07-03 1998-07-03 Simulation device and computer readable recording medium storing simulation program Pending JP2000020348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10189199A JP2000020348A (en) 1998-07-03 1998-07-03 Simulation device and computer readable recording medium storing simulation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10189199A JP2000020348A (en) 1998-07-03 1998-07-03 Simulation device and computer readable recording medium storing simulation program

Publications (1)

Publication Number Publication Date
JP2000020348A true JP2000020348A (en) 2000-01-21

Family

ID=16237185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10189199A Pending JP2000020348A (en) 1998-07-03 1998-07-03 Simulation device and computer readable recording medium storing simulation program

Country Status (1)

Country Link
JP (1) JP2000020348A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6076576B1 (en) * 2016-06-07 2017-02-08 三菱電機株式会社 Simulation apparatus and simulation program
US10776139B2 (en) 2015-05-29 2020-09-15 Mitsubishi Electric Corporation Simulation apparatus, simulation method, and computer readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10776139B2 (en) 2015-05-29 2020-09-15 Mitsubishi Electric Corporation Simulation apparatus, simulation method, and computer readable medium
JP6076576B1 (en) * 2016-06-07 2017-02-08 三菱電機株式会社 Simulation apparatus and simulation program

Similar Documents

Publication Publication Date Title
TWI501102B (en) Virtual time control apparatus, method, and computer program product thereof
US20020120909A1 (en) State management in a co-verification system
JP2007334812A (en) Simulator and simulation method
JP2001209411A (en) Plc simulator
US7606694B1 (en) Framework for cycle accurate simulation
JPH04233040A (en) Simulation system for executing computer program
JP2003162428A (en) System and method for simulation, and computer-readable recording medium storing program for making computer execute the simulation system
JP2001282327A (en) Simulation system and simulator and management server and recording medium
JP2000020348A (en) Simulation device and computer readable recording medium storing simulation program
US7895026B1 (en) Multi-rate simulation scheduler for synchronous digital circuits in a high level modeling system
JP2715993B2 (en) Simulation method and apparatus
JP3214459B2 (en) Simulation method and apparatus
US7319367B2 (en) Programmable oscillators for high frequency clock generation for simulation environments
US9507898B2 (en) Identification of mistimed forcing of values in design simulation
JPH07253909A (en) Microprogram verifying method
JP2001166954A (en) Virtual computer device and its control method
US8140316B2 (en) Systems and methods for improving digital system simulation speed by clock phase gating
JP3169728B2 (en) Simulation system
JP2006331269A (en) Hardware/software cooperative simulation device and method
JP2003015965A (en) Test system in symmetric multi-processor environment
JP2000293396A (en) Method and device for estimating system performance
JPH0448388A (en) Logic circuit simulating method
JPS60118940A (en) Simulation device of logical circuit
JPH05108401A (en) Test pattern generating method
JPH11149489A (en) Simulation system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20080419

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20090419

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100419

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100419

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20110419

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20120419

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130419

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130419

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140419

Year of fee payment: 12