JP2001184271A - Device and method for simulation of serial function, and recording medium - Google Patents

Device and method for simulation of serial function, and recording medium

Info

Publication number
JP2001184271A
JP2001184271A JP36787299A JP36787299A JP2001184271A JP 2001184271 A JP2001184271 A JP 2001184271A JP 36787299 A JP36787299 A JP 36787299A JP 36787299 A JP36787299 A JP 36787299A JP 2001184271 A JP2001184271 A JP 2001184271A
Authority
JP
Japan
Prior art keywords
serial
signal
function
serial function
virtual
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
JP36787299A
Other languages
Japanese (ja)
Inventor
Kentaro Nakahara
健太郎 中原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP36787299A priority Critical patent/JP2001184271A/en
Publication of JP2001184271A publication Critical patent/JP2001184271A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To verify a serial function with a high working efficiency without considering a timing in which a serial function reads a signal. SOLUTION: A serial data part 105 describes serial classifications, communication protocol information, terminal information, and serial data necessary for constituting a virtual serial function in a serial signal preparing tool 104. The serial signal preparing tool 104 constitutes the virtual serial function corresponding to each serial function 103 on the basis of information described in the serial data part 105. The serial signal preparing tool 104 transmits a signal from the virtual serial function in response to a transmission request from the serial function 103, and receives the signal from the serial function 103. In this way, the serial function 103 is verified. The verified result of the serial function 103 is transmitted from an output processing part 107 to a result outputting part 108 and displayed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、マイクロ
コンピュータに含まれるシリアル機能(通信機能:以
下、同じ)のシミュレーション装置、方法及びそれを実
現するプログラムを記録したコンピュータ読み取り可能
な記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to, for example, an apparatus and method for simulating a serial function (communication function: the same applies hereinafter) included in a microcomputer and a computer-readable recording medium storing a program for realizing the same.

【0002】[0002]

【従来の技術】図13は、従来技術における一般的なシ
リアル機能のシミュレーション装置(シミュレータ)の
機能構成及びシリアル・データの流れを示す図である
(以下、これを従来技術1とする)。図示するように、
このシミュレーション装置は、複数のシリアル機能13
03を有するシングルチップ・マイクロコンピュータ機
能部1302と、入力処理部1304と、出力処理部1
306とを備えるシミュレータ部1301を含む。
2. Description of the Related Art FIG. 13 is a diagram showing a functional configuration of a general serial function simulation apparatus (simulator) and a flow of serial data in the prior art (hereinafter referred to as prior art 1). As shown
This simulation device has a plurality of serial functions 13
, An input processing unit 1304, and an output processing unit 1
306 and a simulator unit 1301 having the same.

【0003】シングルチップ・マイクロコンピュータ機
能部1302は、シングルチップ・マイクロコンピュー
タの機能を記述したプログラムを含み、このプログラム
の実行によってシングルチップ・マイクロコンピュータ
の機能を模擬的に実現する。シリアル機能1303は、
そのシングルチップ・マイクロコンピュータに含まれる
シリアル機能を、同様にプログラムの実行によって模擬
的に実現する。
The single-chip microcomputer function unit 1302 includes a program describing the functions of the single-chip microcomputer, and executes the programs to realize the functions of the single-chip microcomputer in a simulated manner. The serial function 1303 is
Similarly, the serial function included in the single-chip microcomputer is simulated by executing a program.

【0004】入力処理部1304には、信号を入力する
シリアル機能1303の端子名と、入力する信号の値及
びその時間を記述したデータが入力される。入力処理部
1304は、入力処理部1304は、指定された時間に
なると、シングルチップ・マイクロコンピュータ機能部
1302が有するシリアル機能1303に、その信号の
値を送信(入力)する。出力処理部1306は、シリア
ル機能1303に送信される信号や、シリアル機能13
03から送信(出力)された信号を処理し、外部に出力
する。
The input processing unit 1304 receives a terminal name of the serial function 1303 for inputting a signal, and data describing the value of the input signal and its time. The input processing unit 1304 transmits (inputs) the value of the signal to the serial function 1303 of the single-chip microcomputer function unit 1302 at the designated time. The output processing unit 1306 receives a signal transmitted to the serial function
It processes the signal transmitted (output) from C.03 and outputs it to the outside.

【0005】図14は、従来技術1におけるシリアル機
能の検証方法を示すフローチャートである。まず、シミ
ュレータ部1301を含むシミュレーション装置を起動
する(ステップ1401)。次に、シリアル機能130
3に信号を入力する時間と信号の値(HighまたはLow)
を入力処理部1304に入力し、予め設定しておく(ス
テップ1402)。
FIG. 14 is a flowchart showing a method for verifying a serial function in the prior art 1. First, a simulation device including the simulator unit 1301 is started (step 1401). Next, the serial function 130
Time to input signal to 3 and signal value (High or Low)
Is input to the input processing unit 1304 and set in advance (step 1402).

【0006】次に、入力処理部1304は、検証の対象
としているシリアル機能1303のプログラムを選択
し、選択したシリアル機能1303の検証を開始させる
(ステップ1403)。そして、選択したシリアル機能
1303を一定期間動作させ、その結果の出力信号を、
出力処理部1306から外部に出力させる(ステップ1
404)。次に、この出力信号の内容に基づいて、選択
したシリアル機能1303が意図した動作を行っている
かどうかを判断する(ステップ1405)。意図した動
作を行っていたならば、シリアル機能1303の検証を
終了する。
Next, the input processing unit 1304 selects a program of the serial function 1303 to be verified, and starts verification of the selected serial function 1303 (step 1403). Then, the selected serial function 1303 is operated for a certain period, and the resulting output signal is
Output from the output processing unit 1306 to the outside (step 1
404). Next, it is determined whether or not the selected serial function 1303 is performing an intended operation based on the content of the output signal (step 1405). If the intended operation has been performed, the verification of the serial function 1303 ends.

【0007】意図した動作を行っていないならば、検証
対象としたシリアル機能1303のプログラムの内容を
確認する(ステップ1406)。ここでプログラムに間
違いが見つかれば、プログラムを修正した後、再度当該
シリアル機能1303の検証を行う(ステップ140
8)。そして、同様にして当該シリアル機能1303を
動作させる(ステップ1404)。
If the intended operation has not been performed, the contents of the program of the serial function 1303 to be verified are confirmed (step 1406). If an error is found in the program, the program is corrected and the serial function 1303 is verified again (step 140).
8). Then, similarly, the serial function 1303 is operated (step 1404).

【0008】一方、プログラムに間違いがなかった場合
は、当該シリアル機能1303に信号を送信する時間
が、当該シリアル機能1303が1ビットずつ信号を読
み込んでいる時間と外れている、すなわち入力処理部1
304から意図した信号を入力できていないこととな
る。そこで、当該シリアル機能1303に信号を入力す
る時間と信号の値とを修正した後、再度シリアル機能1
033の検証を行う(ステップ1407)。そして、同
様にして当該シリアル機能1303を動作させる(ステ
ップ1404)。
On the other hand, when there is no mistake in the program, the time for transmitting the signal to the serial function 1303 is out of the time for reading the signal by the serial function 1303 one bit at a time.
It means that the intended signal has not been input from 304. Therefore, after correcting the signal input time and the signal value to the serial function 1303, the serial function 1
033 is verified (step 1407). Then, similarly, the serial function 1303 is operated (step 1404).

【0009】[0009]

【発明が解決しようとする課題】上記した従来技術1で
は、以上のような処理を繰り返すことによって、シング
ルチップ・マイクロコンピュータ部1302が有するシ
リアル機能1303を、順次検証(シミュレーション)
することができる。しかしながら、上記した従来技術1
には、次のような問題があった。
In the prior art 1 described above, the above-described processing is repeated to sequentially verify (simulate) the serial function 1303 of the single-chip microcomputer unit 1302.
can do. However, the above-mentioned prior art 1
Had the following problems.

【0010】まず、従来技術1では、CPU単体でしか
検証を行うことができなかった。すなわち、CPUに複
数のシリアル機能があっても、それに対して送受信を行
う別のCPUのシリアル機能が存在しなかった。このた
め、例えば、マスタ受信状態のCPUが送信を開始する
信号を送り、その信号を受け取ったスレーブ送信状態の
CPUが送信を開始するといった、マスタ状態とスレー
ブ状態とがあるシリアル機能を十分に検証することがで
きなかった。
First, in the prior art 1, the verification could be performed only by the CPU alone. That is, even if a CPU has a plurality of serial functions, there is no serial function of another CPU that transmits and receives the serial functions. For this reason, for example, a serial function having a master state and a slave state is fully verified, for example, a CPU in a master reception state sends a signal to start transmission, and a CPU in a slave transmission state that receives the signal starts transmission. I couldn't.

【0011】また、従来技術1では、シリアル機能13
03が1ビットずつ信号を読み込む時間は、とりわけ非
同期式のものの場合には把握することができない。この
ため、シリアル機能1303に信号を入力する時間と、
シリアル機能1303が1ビットずつ信号を読み込む時
間とが合っていなければ、意図した信号をシリアル機能
1303に入力することができなかった。
In the prior art 1, the serial function 13
03 cannot read the signal one bit at a time, especially in the case of the asynchronous type. Therefore, the time for inputting a signal to the serial function 1303,
If the time for the serial function 1303 to read the signal one bit at a time does not match, the intended signal could not be input to the serial function 1303.

【0012】さらに同様の理由により、従来技術1で
は、通信プロトコルに違反した信号を意図的にシリアル
機能1303に入力して、検証を行うことが十分にでき
ないという問題点があった。
Further, for the same reason, in the prior art 1, there is a problem that a signal violating the communication protocol is intentionally input to the serial function 1303 and verification cannot be performed sufficiently.

【0013】そこで、これらの問題を解決するための技
術として、特開平10−65762号公報に記載の通信
ソフトウェアの自動試験シミュレータがある(以下、こ
れを従来技術2とする)。図15は、従来技術2にかか
る通信ソフトウェアの自動試験シミュレータの機能構成
を示すブロック図である。
Therefore, as a technique for solving these problems, there is an automatic test simulator for communication software described in Japanese Patent Application Laid-Open No. H10-65762 (hereinafter referred to as Conventional Technique 2). FIG. 15 is a block diagram illustrating a functional configuration of an automatic test simulator for communication software according to the conventional technique 2.

【0014】従来技術2では、まず、送信部1501に
おいて、入力部1502からプロトコルの種別と送信し
たいメッセージとを入力し、送信情報ファイル1503
に保持させる。次に、メッセージ編集部1504は、送
信情報ファイル1503に保持された情報に基づいて、
プロトコルの種別に対応するテンプレートファイル15
05に準ずる形式の送信メッセージを生成する。そし
て、送信メッセージ部1506は、生成した送信メッセ
ージを被テストプログラム1507に対して送信する。
In the prior art 2, a transmitting unit 1501 first inputs a protocol type and a message to be transmitted from an input unit 1502, and sends a transmission information file 1503.
To be held. Next, the message editing unit 1504, based on the information held in the transmission information file 1503,
Template file 15 corresponding to protocol type
Generate a transmission message in a format conforming to 05. Then, the transmission message unit 1506 transmits the generated transmission message to the program under test 1507.

【0015】次に、被テストプログラム1507は、受
信部1508に対して受信メッセージを出す。受信部1
508において、受信メッセージ部1509が受信メッ
セージを受信すると、メッセージ編集部1511は、受
付期待値ファイル1510を読み出し、受け付けたプロ
トコルの種別に対応するテンプレートファイル1512
に基づいて、受信期待値メッセージを生成する。そし
て、編集出力部1513は、実際に受信した受信メッセ
ージと生成した受信期待値メッセージとを照合し、その
照合結果に従って受信メッセージを画面出力部1515
に表示し、ファイル出力部1516に格納する。
Next, the program under test 1507 issues a received message to the receiving unit 1508. Receiver 1
In 508, when the received message unit 1509 receives the received message, the message editing unit 1511 reads the expected reception value file 1510, and reads the template file 1512 corresponding to the type of the received protocol.
, A reception expectation value message is generated. Then, the edit output unit 1513 collates the actually received message with the generated expected expectation message, and displays the received message on the screen output unit 1515 according to the collation result.
And stored in the file output unit 1516.

【0016】こうして、従来技術2では、複数の異なる
通信プロトコルの動作確認試験を行うことができる。し
かしながら、従来技術2では、送信部1501が単一で
しか存在しないため、シングルチップ・マイクロコンピ
ュータ機能1302が複数のシリアル機能1303を有
していた場合、複数のシリアル機能1303を同時に並
行して検証することができないという問題点があった。
また、マスタ状態とスレーブ状態とがあるシリアル機能
を十分に検証することができなかった。
As described above, in the prior art 2, it is possible to perform an operation confirmation test of a plurality of different communication protocols. However, in the prior art 2, since the transmission unit 1501 is only a single unit, if the single-chip microcomputer function 1302 has a plurality of serial functions 1303, the plurality of serial functions 1303 are simultaneously verified in parallel. There was a problem that it was not possible.
In addition, a serial function having a master state and a slave state cannot be sufficiently verified.

【0017】本発明の目的は、シリアル機能が信号を読
み込んでいくタイミングを考慮することなく、高い作業
効率でシリアル機能を検証することができるシリアル機
能のシミュレーション装置、方法及びそれを実現するプ
ログラムを記録した記録媒体を提供することにある。
An object of the present invention is to provide a serial function simulation apparatus and method capable of verifying a serial function with high work efficiency without considering a timing at which the serial function reads signals, and a program for realizing the same. An object of the present invention is to provide a recorded recording medium.

【0018】本発明の他の目的は、通信プロトコル違反
を検証することができるシリアル機能のシミュレーショ
ン装置、方法及びそれを実現するプログラムを記録した
記録媒体を提供することにある。
It is another object of the present invention to provide a serial function simulation apparatus and method capable of verifying a communication protocol violation, and a recording medium storing a program for realizing the same.

【0019】本発明のさらに他の目的は、複数のシリア
ル機能を同時にシミュレーションし得るシリアル機能の
シミュレーション装置、方法及びそれを実現するプログ
ラムを記録した記録媒体を提供することにある。
Still another object of the present invention is to provide a serial function simulation apparatus and method capable of simultaneously simulating a plurality of serial functions, and a recording medium storing a program for realizing the same.

【0020】[0020]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1の観点にかかるシリアル機能のシミュ
レーション装置は、送信された信号に従って検証対象と
なるシリアル機能を記述したプログラムを実行し、該プ
ログラムの実行により前記シリアル機能を模擬的に実現
するシリアル機能手段と、前記シリアル機能に送信する
ための信号を含む仮想シリアル機能を構成し、前記シリ
アル機能の模擬的な実行によって前記シリアル機能手段
から出力された信号を受信すると共に、該受信した信号
に基づいて構成した仮想シリアル機能が含む信号を前記
シリアル機能に送信することで、前記シリアル機能を模
擬的に実行させるシリアル信号作成手段と、前記シリア
ル機能手段によるシリアル機能の模擬的な実行によって
出力された信号を外部に出力する出力処理手段とを備え
ることを特徴とする。
In order to achieve the above object, a serial function simulation apparatus according to a first aspect of the present invention executes a program describing a serial function to be verified according to a transmitted signal. A serial function means for simulating the serial function by executing the program, and a virtual serial function including a signal to be transmitted to the serial function, and simulating the serial function to execute the serial function. Means for receiving a signal output from the means, and transmitting a signal included in a virtual serial function configured based on the received signal to the serial function, so as to simulate the serial function; The signal output by the simulated execution of the serial function by the serial function means is excluded. And an outputting process for outputting to.

【0021】上記シリアル機能のシミュレーション装置
において、前記シリアル機能手段によるシリアル機能の
模擬的な実行によって出力される信号は、前記シリアル
信号作成手段が構成した仮想シリアル機能に対する信号
の送信要求を含むものとしてもよい。この場合、前記シ
リアル信号作成手段は、前記シリアル機能手段から出力
された信号の送信要求に応答して、前記シリアル機能に
信号を送信するものとすることができる。
In the above-described serial function simulation apparatus, the signal output by the simulated execution of the serial function by the serial function means includes a signal transmission request for the virtual serial function configured by the serial signal creation means. Is also good. In this case, the serial signal generation means may transmit a signal to the serial function in response to a transmission request for a signal output from the serial function means.

【0022】このとき、前記シリアル信号作成手段は、
前記シリアル機能手段から出力された信号の送信要求に
応答して、前記シリアル機能に1ビットずつ信号を送信
するものとすることを好適とする。
At this time, the serial signal creating means includes:
It is preferable that a signal is transmitted to the serial function one bit at a time in response to a transmission request for a signal output from the serial function means.

【0023】上記シリアル機能のシミュレーション装置
において、検証対象となるシリアル機能は、複数あって
もよい。この場合、前記シリアル信号作成手段は、複数
のシリアル機能のそれぞれに対応する複数仮想シリアル
機能を構成し、複数の仮想シリアル機能から対応するシ
リアル機能への信号の送信を順次行っていくものとする
ことができる。
In the above-mentioned serial function simulation apparatus, there may be a plurality of serial functions to be verified. In this case, the serial signal generation means configures a plurality of virtual serial functions corresponding to each of the plurality of serial functions, and sequentially transmits signals from the plurality of virtual serial functions to the corresponding serial functions. be able to.

【0024】上記シリアル機能のシミュレーション装置
において、前記シリアル信号作成手段は、前記シリアル
機能に送信する信号として通信プロトコルに違反する信
号を含む仮想シリアル機能を構成することが可能である
と共に、前記シリアル機能手段から受信した信号に基づ
いて通信プロトコルへの違反を判定する手段を備えるも
のとすることができる。
In the serial function simulation apparatus, the serial signal generating means can constitute a virtual serial function including a signal violating a communication protocol as a signal to be transmitted to the serial function. Means may be provided for determining a violation of the communication protocol based on a signal received from the means.

【0025】上記シリアル機能のシミュレーション装置
は、前記シリアル信号作成手段が仮想シリアル機能を構
成するために必要な情報を記述したシリアルデータ記述
手段をさらに備えるものであってもよい。この場合、前
記シリアル信号作成手段は、前記シリアルデータ記述手
段の記述に従って、前記仮想シリアル機能を構成するも
のとすることができる。
The serial function simulation apparatus may further include a serial data description unit that describes information necessary for the serial signal generation unit to configure the virtual serial function. In this case, the serial signal creation means can configure the virtual serial function according to the description of the serial data description means.

【0026】このとき、前記シリアル信号作成手段は、
検証対象となるシリアル機能に合わせて、前記シリアル
データ記述手段の記述内容を書き換える手段を有するも
のとすることもできる。
At this time, the serial signal generating means includes:
There may be provided a means for rewriting the description contents of the serial data description means in accordance with the serial function to be verified.

【0027】上記シリアル機能のシミュレーション装置
において、前記シリアル信号作成手段は、1つのシリア
ル機能に対して複数の仮想シリアル機能を構成してもよ
い。この場合、前記シリアル機能手段によるシリアル機
能の模擬的な実行によって出力される信号は、前記シリ
アル信号作成手段が構成した複数の仮想シリアル機能に
対する信号の送信要求と共にその要求先の仮想シリアル
機能を識別する識別情報を含むものとすることができ、
前記シリアル信号作成手段は、前記シリアル機能手段か
ら出力された信号の送信要求に応答して、該送信要求に
付された識別情報が示す仮想シリアル機能が含む信号
を、前記シリアル機能に送信するものとすることができ
る。
In the above-described simulation apparatus for serial functions, the serial signal generating means may constitute a plurality of virtual serial functions for one serial function. In this case, the signal output by the simulated execution of the serial function by the serial function means identifies the virtual serial function of the request destination together with the signal transmission request for the plurality of virtual serial functions configured by the serial signal creation means. Identifying information that
The serial signal generating means transmits, to the serial function, a signal included in the virtual serial function indicated by the identification information attached to the transmission request in response to a transmission request for a signal output from the serial function means. It can be.

【0028】上記シリアル機能のシミュレーション装置
において、前記シリアル信号作成手段は、前記シリアル
機能への信号の送信間隔を不定にする手段を備えるもの
とすることができる。
In the serial function simulation apparatus, the serial signal generating means may include means for making a transmission interval of a signal to the serial function indefinite.

【0029】上記シリアル機能のシミュレーション装置
において、前記シリアル機能手段がプログラムの実行に
よって実現するシリアル機能は、例えば、シングルチッ
プ・マイクロコンピュータに含まれるシリアル機能とす
ることができる。
In the serial function simulation apparatus, the serial function realized by the serial function means by executing a program may be, for example, a serial function included in a single-chip microcomputer.

【0030】上記目的を達成するため、本発明の第2の
観点にかかるシリアル機能のシミュレーション方法は、
送信した信号に従って検証対象となるシリアル機能を記
述したプログラムを実行することによって、該シリアル
機能を検証するシリアル機能のシミュレーション方法で
あって、前記シリアル機能に送信するための信号を含む
仮想シリアル機能を構成する仮想シリアル機能構成ステ
ップと、前記シリアル機能を記述したプログラムの実行
によって出力された信号を受信する信号受信ステップ
と、前記信号受信ステップで受信した信号に基づいて、
前記仮想シリアル機能構成ステップで構成した仮想シリ
アル機能が含む信号を前記シリアル機能に送信する信号
送信ステップと、前記シリアル機能を記述したプログラ
ムの実行によって出力された信号を外部に出力する出力
ステップとを含むことを特徴とする。
To achieve the above object, a serial function simulation method according to a second aspect of the present invention comprises:
A method of simulating a serial function for verifying the serial function by executing a program describing a serial function to be verified according to a transmitted signal, wherein the virtual serial function includes a signal to be transmitted to the serial function. A virtual serial function configuration step to configure, a signal reception step of receiving a signal output by executing a program describing the serial function, and, based on the signal received in the signal reception step,
A signal transmission step of transmitting a signal included in the virtual serial function configured in the virtual serial function configuration step to the serial function, and an output step of outputting a signal output by executing a program describing the serial function to the outside. It is characterized by including.

【0031】上記シリアル機能のシミュレーション方法
において、前記シリアル機能を記述したプログラムの実
行によって出力される信号は、前記仮想シリアル機能構
成ステップで構成した仮想シリアル機能に対する信号の
送信要求を含むものであってもよい。この場合、前記信
号送信ステップは、前記信号受信ステップで受信した信
号に含まれる送信要求に応答して、前記シリアル機能に
1ビットずつ信号を送信するものとすることができる。
In the method for simulating a serial function, the signal output by executing the program describing the serial function includes a request for transmitting a signal to the virtual serial function configured in the virtual serial function configuration step. Is also good. In this case, the signal transmitting step may transmit a signal to the serial function one bit at a time in response to a transmission request included in the signal received in the signal receiving step.

【0032】上記シリアル機能のシミュレーション方法
において、前記方法において検証対象となるシリアル機
能は、複数あってもよい。この場合、前記仮想シリアル
機能構成ステップは、複数のシリアル機能のそれぞれに
対応する複数の仮想シリアル機能を構成するものとする
ことができ、前記信号送信ステップは、構成した複数の
仮想シリアル機能について、順次対応するシリアル機能
への信号の送信を行うものとすることができる。
In the method for simulating the serial function, the method may include a plurality of serial functions to be verified. In this case, the virtual serial function configuration step can configure a plurality of virtual serial functions corresponding to each of the plurality of serial functions, and the signal transmission step includes, for the configured virtual serial functions, Signals can be sequentially transmitted to corresponding serial functions.

【0033】上記シリアル機能のシミュレーション方法
において、前記仮想シリアル機能構成ステップは、前記
シリアル機能に送信する信号として通信プロトコルに違
反する信号を含む仮想シリアル機能を構成するものとす
ることができる。この場合、前記方法は、前記信号受信
ステップで受信した信号に基づいて通信プロトコルへの
違反を判定する違反判定ステップをさらに含むものとす
ることができる。
In the above-described method for simulating a serial function, the virtual serial function configuring step may include configuring a virtual serial function including a signal violating a communication protocol as a signal transmitted to the serial function. In this case, the method may further include a violation determining step of determining a violation of a communication protocol based on the signal received in the signal receiving step.

【0034】上記シリアル機能のシミュレーション方法
は、前記仮想シリアル機能構成ステップで仮想シリアル
機能を構成するために必要な情報の記述を、前記仮想シ
リアル機能構成ステップにおける仮想シリアルデータの
構成に先立って準備する情報記述準備ステップと、検証
対象となるシリアル機能に合わせて、前記情報記述準備
ステップで準備した情報の記述内容を書き換える情報書
き換えステップとをさらに含むものとすることができ
る。
In the above-described method for simulating a serial function, description of information necessary for configuring the virtual serial function in the virtual serial function configuration step is prepared prior to the configuration of virtual serial data in the virtual serial function configuration step. The method may further include an information description preparing step and an information rewriting step of rewriting the description content of the information prepared in the information description preparing step in accordance with the serial function to be verified.

【0035】上記目的を達成するため、本発明の第3の
観点にかかるコンピュータ読み取り可能な記録媒体は、
送信した信号に従って検証対象となるシリアル機能を記
述したプログラムを実行することによって、該シリアル
機能を検証するためのプログラムを記録したコンピュー
タ読み取り可能な記録媒体であって、前記シリアル機能
に送信するための信号を含む仮想シリアル機能を構成す
る仮想シリアル機能構成ステップと、前記シリアル機能
を記述したプログラムの実行によって出力された信号を
受信する信号受信ステップと、前記信号受信ステップで
受信した信号に基づいて、前記仮想シリアル機能構成ス
テップで構成した仮想シリアル機能が含む信号を前記シ
リアル機能に送信する信号送信ステップと、前記シリア
ル機能を記述したプログラムの実行によって出力された
信号を外部に出力する出力ステップとをコンピュータに
実行させるためのプログラムを記録したことを特徴とす
る。
In order to achieve the above object, a computer-readable recording medium according to a third aspect of the present invention comprises:
A computer-readable recording medium on which a program for verifying the serial function is recorded by executing a program describing a serial function to be verified in accordance with the transmitted signal. A virtual serial function configuration step for configuring a virtual serial function including a signal, a signal receiving step for receiving a signal output by executing a program describing the serial function, and a signal received in the signal receiving step, A signal transmission step of transmitting a signal included in the virtual serial function configured in the virtual serial function configuration step to the serial function, and an output step of outputting a signal output by executing a program describing the serial function to the outside. To run on a computer And characterized by recording a program.

【0036】上記記録媒体において、前記シリアル機能
を記述したプログラムの実行によって出力される信号
は、前記仮想シリアル機能構成ステップで構成した仮想
シリアル機能に対する信号の送信要求を含むものであっ
てもよい。この場合、前記信号送信ステップは、前記信
号受信ステップで受信した信号に含まれる送信要求に応
答して、前記シリアル機能に1ビットずつ信号を送信す
るものとすることができる。
In the above-mentioned recording medium, the signal output by executing the program describing the serial function may include a signal transmission request for the virtual serial function configured in the virtual serial function configuration step. In this case, the signal transmitting step may transmit a signal to the serial function one bit at a time in response to a transmission request included in the signal received in the signal receiving step.

【0037】上記コンピュータ読み取り可能な記録媒体
において、記録したプログラムの実行によって検証対象
となるシリアル機能は、複数あってもよい。この場合、
前記仮想シリアル機能構成ステップは、複数のシリアル
機能のそれぞれに対応する複数の仮想シリアル機能を構
成するものとすることができ、前記信号送信ステップ
は、構成した複数の仮想シリアル機能について、順次対
応するシリアル機能への信号の送信を行うものとするこ
とができる。
In the computer readable recording medium, there may be a plurality of serial functions to be verified by executing the recorded program. in this case,
The virtual serial function configuration step may configure a plurality of virtual serial functions corresponding to each of the plurality of serial functions, and the signal transmission step sequentially corresponds to the configured virtual serial functions. Transmission of a signal to the serial function may be performed.

【0038】上記コンピュータ読み取り可能な記録媒体
において、前記仮想シリアル機能構成ステップは、前記
シリアル機能に送信する信号として通信プロトコルに違
反する信号を含む仮想シリアル機能を構成するものとす
ることができる。この場合、前記記録媒体は、前記信号
受信ステップで受信した信号に基づいて通信プロトコル
への違反を判定する違反判定ステップを、さらにコンピ
ュータに実行させるためのプログラムを記録したものと
することができる。
[0038] In the above-mentioned computer-readable recording medium, the virtual serial function configuration step may configure a virtual serial function including a signal violating a communication protocol as a signal transmitted to the serial function. In this case, the recording medium may store a program for causing a computer to further execute a violation determining step of determining a violation of a communication protocol based on the signal received in the signal receiving step.

【0039】上記コンピュータ読み取り可能な記録媒体
は、前記仮想シリアル機能構成ステップで仮想シリアル
機能を構成するために必要な情報の記述を、前記仮想シ
リアル機能構成ステップにおける仮想シリアルデータの
構成に先立って準備する情報記述準備ステップと、検証
対象となるシリアル機能に合わせて、前記情報記述準備
ステップで準備した情報の記述内容を書き換える情報書
き換えステップとを、さらにコンピュータに実行させる
ためのプログラムを記録したものとすることができる。
The computer readable recording medium prepares a description of information necessary for configuring the virtual serial function in the virtual serial function configuration step prior to the configuration of the virtual serial data in the virtual serial function configuration step. A program for causing a computer to further execute an information description preparing step to perform, and an information rewriting step of rewriting the description content of the information prepared in the information description preparing step in accordance with the serial function to be verified. can do.

【0040】[0040]

【発明の実施の形態】以下、添付図面を参照して、本発
明の実施の形態について説明する。
Embodiments of the present invention will be described below with reference to the accompanying drawings.

【0041】[第1の実施の形態]図1は、この実施の
形態にかかるシリアル機能のシミュレーション装置(シ
ミュレータ)の機能構成及びシリアル・データの流れを
示す図である。このシリアル機能のシミュレーション装
置は、シングルチップ・マイクロコンピュータに含まれ
るシリアル機能をシミュレーションするものである。
[First Embodiment] FIG. 1 is a diagram showing the functional configuration of a serial function simulation apparatus (simulator) and the flow of serial data according to this embodiment. This serial function simulation device simulates a serial function included in a single-chip microcomputer.

【0042】このシリアル機能のシミュレーション装置
は、ソフトウェアプログラムを実行するエンジニアリン
グワークステーションなどの汎用コンピュータで実現さ
れ、図1に示すように、1以上のシリアル機能103及
びクロック発生回路部106を有するシングルチップ・
マイクロコンピュータ機能部102と、シリアル信号作
成ツール104と、出力処理部107とからなるシミュ
レータ部101と、シリアル・データ部105と、結果
出力部108とから構成されている。
This serial function simulation apparatus is realized by a general-purpose computer such as an engineering workstation that executes a software program. As shown in FIG. 1, a single chip having one or more serial functions 103 and a clock generation circuit unit 106 is provided.・
The simulator includes a microcomputer function unit 102, a serial signal creation tool 104, a simulator unit 101 including an output processing unit 107, a serial data unit 105, and a result output unit 108.

【0043】シングルチップ・マイクロコンピュータ機
能部102は、シングルチップ・マイクロコンピュータ
の機能を記述したプログラムを含み、このプログラムの
実行によってシングルチップ・マイクロコンピュータの
機能を模擬的に実現する。シリアル機能103及びクロ
ック発生回路部106は、それぞれシングルチップ・マ
イクロコンピュータに含まれるシリアル機能及びCPU
の動作クロック(以下、CPUクロックという)を発生
するクロック発生回路の機能を、同様にプログラムの実
行によって模擬的に実現する。
The single-chip microcomputer function unit 102 includes a program describing the functions of the single-chip microcomputer, and executes the program to realize the functions of the single-chip microcomputer in a simulated manner. The serial function 103 and the clock generation circuit unit 106 are respectively a serial function and a CPU included in a single-chip microcomputer.
Similarly, the function of the clock generation circuit for generating the operation clock (hereinafter referred to as CPU clock) is simulated by executing a program.

【0044】シリアル信号作成ツール104は、シリア
ル・データ部105に記述された情報を基にして、シリ
アル機能103の各々に対応して、シリアル機能103
に入力するための信号を含む仮想シリアル機能を構成す
る。シリアル信号作成ツール104は、シリアル機能1
03からの送信要求に対して仮想シリアル機能から信号
を送信したり、シリアル機能103からの信号を受信す
る。これにより、シリアル機能103をシミュレーショ
ン(検証)する。シリアル信号作成ツール104につい
ては、詳細を後述する。
The serial signal creation tool 104, based on the information described in the serial data section 105,
A virtual serial function including a signal to be input to the. The serial signal creation tool 104 uses the serial function 1
A signal is transmitted from the virtual serial function in response to a transmission request from the serial function 103, and a signal from the serial function 103 is received. Thereby, the serial function 103 is simulated (verified). Details of the serial signal creation tool 104 will be described later.

【0045】出力処理部107は、シリアル信号作成ツ
ール104からシリアル機能103に送信(入力)する
信号や、シリアル機能103からシリアル信号作成ツー
ル104に送信(出力)された信号を処理し、結果出力
部108に供給する。結果出力部108は、例えば、C
RT(Cathode Ray Tube)表示装置によって構成され、
出力処理部107から供給された出力信号を表示する。
The output processing unit 107 processes a signal transmitted (input) from the serial signal creation tool 104 to the serial function 103 and a signal transmitted (output) from the serial function 103 to the serial signal creation tool 104 and outputs the result. To the unit 108. The result output unit 108, for example,
It is composed of an RT (Cathode Ray Tube) display device,
The output signal supplied from the output processing unit 107 is displayed.

【0046】シリアル・データ部105は、シリアル信
号作成ツール104内に仮想シリアル機能を構成するた
めに必要な、シリアル種別、通信プロトコル情報、端子
情報及びシリアル・データなどを記述している。シリア
ル・データ部105へのデータの記述については、詳細
を後述する。
The serial data section 105 describes the serial type, communication protocol information, terminal information, serial data, and the like necessary for configuring the virtual serial function in the serial signal creation tool 104. The description of data in the serial data section 105 will be described later in detail.

【0047】図2は、図1のシリアル信号作成ツール1
04の機能構成を示すブロック図である。図示するよう
に、シリアル信号作成ツール104は、入力部112
と、送信判断部113と、送信信号作成部114と、送
信部115と、受信部117と、受信信号解析部118
と、エラーメッセージ部119とを備える。シリアル・
データ部105のデータは、入力部112に入力され、
クロック発生回路部106のCPUクロックは、送信部
115と受信部117とに入力される。
FIG. 2 shows the serial signal creation tool 1 shown in FIG.
FIG. 4 is a block diagram showing a functional configuration of the information processing unit 04. As shown, the serial signal creation tool 104 includes an input unit 112
, A transmission determination unit 113, a transmission signal creation unit 114, a transmission unit 115, a reception unit 117, and a reception signal analysis unit 118
And an error message section 119. Cereal·
The data of the data unit 105 is input to the input unit 112,
The CPU clock of the clock generation circuit unit 106 is input to the transmission unit 115 and the reception unit 117.

【0048】入力部112は、シリアル・データ部10
5に記述されている情報を入力し、シリアル信号作成ツ
ール104内に仮想シリアル機能を構成する。送信判断
部113は、シリアル機能103からの送信要求(後
述)に従って、構成された仮想シリアル機能の中で示す
シリアル機能103に信号を送信すべきものがあるかど
うかを判断する。
The input section 112 is provided for the serial data section 10
The virtual serial function is configured in the serial signal creation tool 104 by inputting the information described in 5. The transmission determining unit 113 determines whether or not there is a serial function 103 to which a signal is to be transmitted among the configured virtual serial functions according to a transmission request (described later) from the serial function 103.

【0049】送信信号作成部114は、入力部112に
入力された情報のうちのシリアル種別と、通信プロトコ
ル情報と、端子情報と、シリアル・データとに基づい
て、シリアル機能103に送信すべき信号を作成する。
送信部115は、クロック発生回路部106からのCP
Uクロックを基にして仮想シリアル機能の動作クロック
を生成し、それに従って送信信号作成部114が作成し
た信号を、シリアル機能103の目的の端子に送信す
る。
The transmission signal creation unit 114 receives a signal to be transmitted to the serial function 103 based on the serial type, communication protocol information, terminal information, and serial data of the information input to the input unit 112. Create
The transmission unit 115 receives the CP from the clock generation circuit unit 106.
An operation clock of the virtual serial function is generated based on the U clock, and the signal generated by the transmission signal generating unit 114 is transmitted to a target terminal of the serial function 103 according to the generated clock.

【0050】受信部117は、クロック発生回路部10
6からのCPUクロックを基にしてシリアル機能103
からの送信信号をサンプリングし、そのサンプリング結
果を受信信号解析部118に渡す。受信信号解析部11
8は、シリアル機能103からの送信信号のサンプリン
グ結果に基づいて、通信プロトコルへの違反がないかど
うか、及びシリアル機能103から送信要求が出ている
かどうかを判断する。
The receiving unit 117 includes the clock generation circuit unit 10
Serial function 103 based on CPU clock from 6
, And sends the sampling result to the received signal analyzing unit 118. Received signal analyzer 11
8 determines whether or not there is a violation of the communication protocol and whether or not a transmission request has been issued from the serial function 103 based on the sampling result of the transmission signal from the serial function 103.

【0051】エラーメッセージ部119は、受信信号解
析部118が通信プロトコルへの違反を判断したとき、
その内容を出力処理部107に渡し、結果出力部108
にエラーメッセージを表示させる。また、受信信号解析
部118は、シリアル機能103から送信要求が出てい
ると判断したとき、その旨を送信判断部113に通知す
る。
The error message section 119 is used when the received signal analyzing section 118 determines that the communication protocol is violated.
The contents are passed to the output processing unit 107, and the result output unit 108
To display an error message. When determining that a transmission request has been issued from the serial function 103, the reception signal analysis unit 118 notifies the transmission determination unit 113 of the determination.

【0052】以下、この実施の形態にかかるシリアル機
能のシミュレーション装置における動作について、説明
する。
The operation of the serial function simulation apparatus according to this embodiment will be described below.

【0053】図3は、この実施の形態におけるシリアル
機能の検証方法を示すフローチャートである。まず、シ
ミュレータ部101を含むシミュレーション装置を起動
する(ステップ201)。次に、例えば、入力部112
からの入力などによって検証の対象としているシリアル
機能103のプログラムを選択する(ステップ20
2)。
FIG. 3 is a flowchart showing a method for verifying a serial function in this embodiment. First, a simulation device including the simulator unit 101 is started (step 201). Next, for example, the input unit 112
The program of the serial function 103 to be verified is selected by input from the user (step 20).
2).

【0054】次に、シリアル・データ部105からシリ
アル機能103に信号を入力するための時間と信号の値
(HighまたはLow)をシリアル信号作成ツール104に
入力して設定し、選択したシリアル機能103の検証を
開始させる(ステップ203)。そして、シリアル信号
作成ツール104は、後述するように信号を送受信しな
がら選択したシリアル機能103を一定期間動作させ
る。また、その動作結果の出力信号を、出力処理部10
7から出力し、結果出力部108に表示させる(ステッ
プ204)。
Next, the time for inputting a signal from the serial data section 105 to the serial function 103 and the signal value (High or Low) are input to the serial signal creation tool 104 and set, and the selected serial function 103 is set. Verification is started (step 203). Then, the serial signal creation tool 104 operates the selected serial function 103 for a certain period while transmitting and receiving signals as described later. The output signal of the operation result is output to the output processing unit 10.
7 and displayed on the result output unit 108 (step 204).

【0055】次に、この出力信号の内容に基づいて、選
択したシリアル機能103が意図した動作を行っている
かどうかを判断する(ステップ205)。なお、この判
断は、このシミュレーション装置の操作者が結果出力部
108に表示された結果の出力信号に従って行うように
しても、所定のプログラムを実行することで自動的に行
うようにしてもよい。
Next, it is determined whether or not the selected serial function 103 is performing an intended operation based on the content of the output signal (step 205). This determination may be made by the operator of the simulation apparatus according to the output signal of the result displayed on the result output unit 108, or may be made automatically by executing a predetermined program.

【0056】意図した動作を行っていないならば、検証
対象としたシリアル機能103のプログラムの内容を確
認し、ここでプログラムに間違いが見つかれば、プログ
ラムを修正する(ステップ207)。その後、再度当該
シリアル機能103の検証を行う。そして、同様にして
当該シリアル機能133を動作させる(ステップ20
4)。一方、意図した動作を行っていたならば、シリア
ル機能103の検証を終了する。
If the intended operation is not performed, the contents of the program of the serial function 103 to be verified are confirmed. If an error is found in the program, the program is corrected (step 207). After that, the serial function 103 is verified again. Then, the serial function 133 is operated similarly (step 20).
4). On the other hand, if the intended operation has been performed, the verification of the serial function 103 ends.

【0057】図4は、シリアル信号作成ツール104に
おけるシリアル機能103との間での信号の送受信の処
理手順を示すフローチャートである。なお、このフロー
チャートに示す各ステップの処理のうちステップ301
と302とは、図3のステップ203の中で実行される
ものであり、ステップ303〜315は、図3のステッ
プ204の中で実行されるものである。
FIG. 4 is a flowchart showing the procedure for transmitting and receiving signals to and from the serial function 103 in the serial signal creation tool 104. In the processing of each step shown in this flowchart, step 301
And 302 are executed in step 203 of FIG. 3, and steps 303 to 315 are executed in step 204 of FIG.

【0058】まず、シリアル・データ部105に記述さ
れている情報を入力部112に入力し、シリアル信号作
成ツール104内に仮想シリアル機能を構成する(ステ
ップ301)。そして、シリアル信号作成ツール104
は、シリアル機能103の検証を開始する(ステップ3
02)。次に、送信判断部113は、仮想シリアル機能
103を順番に動作させるため、まず、動作させる仮想
シリアル機能の番号を示す変数nに“1”を代入する
(ステップ303)。
First, information described in the serial data section 105 is input to the input section 112, and a virtual serial function is configured in the serial signal creation tool 104 (step 301). Then, the serial signal creation tool 104
Starts verification of the serial function 103 (step 3
02). Next, the transmission determination unit 113 first substitutes “1” for a variable n indicating the number of the virtual serial function to be operated in order to operate the virtual serial function 103 in order (step 303).

【0059】次に、変数nで示す仮想シリアル機能の端
子の中で、動作クロックの発振を指定されている端子が
あれば、送信部115は、その端子からシリアル機能1
03の対応する端子に動作クロックを送信する(ステッ
プ304)。そして、送信判断部113は、変数nで示
す仮想シリアル機能が送信許可状態であるかどうかを判
断する(ステップ305)。
Next, if there is a terminal designated to oscillate the operation clock among the terminals of the virtual serial function indicated by the variable n, the transmitting unit 115 transmits the serial function 1 from that terminal.
The operation clock is transmitted to the corresponding terminal of the terminal 03 (step 304). Then, the transmission determining unit 113 determines whether the virtual serial function indicated by the variable n is in the transmission permission state (step 305).

【0060】変数nで示す仮想シリアル機能が送信許可
状態であれば、送信信号作成部114は、シリアル・デ
ータ部105から入力した情報に含まれるシリアル種
別、シリアル・データ及び通信プロトコル情報に従っ
て、当該仮想シリアル機能に対応するシリアル機能10
3に送信する信号を作成する(ステップ305)。そし
て、送信部115は、当該シリアル機能103の動作ク
ロックまたは当該仮想シリアル機能の動作クロックに合
わせて、作成した信号をシリアル機能103に送信する
(ステップ306)。
If the virtual serial function indicated by the variable n is in the transmission-permitted state, the transmission signal creation unit 114 determines the transmission type according to the serial type, serial data and communication protocol information included in the information input from the serial data unit 105. Serial function 10 corresponding to virtual serial function
3 is created (step 305). Then, the transmitting unit 115 transmits the generated signal to the serial function 103 in accordance with the operation clock of the serial function 103 or the operation clock of the virtual serial function (step 306).

【0061】さらに、送信判断部113は、未だシリア
ル機能103に送信していないシリアル・データ(1ビ
ットずつの信号をいう)があるかどうかを判断する(ス
テップ311)。未だ送信していないシリアルデータが
ある場合には、そのままステップ313の処理に進む。
未だ送信していないシリアル・データがなく、すべての
シリアル・データを送信した場合には、送信判断部11
3は、変数nで示す仮想シリアル機能を送信不許可状態
にする(ステップ312)。そして、ステップ313の
処理に進む。
Further, the transmission judging section 113 judges whether or not there is serial data (referred to as a signal of one bit) not yet transmitted to the serial function 103 (step 311). If there is any serial data that has not been transmitted yet, the process directly proceeds to step 313.
If there is no serial data yet to be transmitted and all serial data has been transmitted, the transmission determination unit 11
3 sets the virtual serial function indicated by the variable n to the transmission non-permission state (step 312). Then, the process proceeds to step 313.

【0062】一方、ステップ305において変数nで示
す仮想シリアル機能が送信許可状態でなければ、受信信
号解析部118は、受信部117が受信した信号に含ま
れるシリアル・データを解析し(ステップ308)、変
数nで示す仮想シリアル機能に、対応するシリアル機能
103から送信要求がでているかどうかを判断する(ス
テップ309)。
On the other hand, if the virtual serial function indicated by the variable n is not in the transmission permission state in step 305, the received signal analyzing unit 118 analyzes the serial data included in the signal received by the receiving unit 117 (step 308). It is determined whether a transmission request has been issued from the serial function 103 corresponding to the virtual serial function indicated by the variable n (step 309).

【0063】変数nで示す仮想シリアル機能に送信要求
が出ている場合には、送信判断部113は、当該仮想シ
リアル機能を送信許可状態にする(ステップ310)。
そして、ステップ313の処理に進む。変数nで示す仮
想シリアル機能に送信要求が出ていない場合には、その
ままステップ313の処理に進む。
If a transmission request has been issued to the virtual serial function indicated by the variable n, the transmission judgment unit 113 sets the virtual serial function to a transmission permission state (step 310).
Then, the process proceeds to step 313. If a transmission request has not been issued to the virtual serial function indicated by the variable n, the process proceeds directly to step 313.

【0064】ステップ313では、送信判断部113
は、すべての仮想シリアル機能について、対応するシリ
アル機能103との間で信号の送受信を行ったかどうか
を判断する。すべての仮想シリアル機能についての送受
信が未だ終了していなければ、変数nの値を“1”イン
クリメントし(ステップ314)、ステップ304の処
理に戻る。
In step 313, the transmission judgment unit 113
Determines whether all virtual serial functions have transmitted / received signals to / from the corresponding serial function 103. If transmission / reception for all virtual serial functions has not been completed, the value of the variable n is incremented by "1" (step 314), and the process returns to step 304.

【0065】一方、すべての仮想シリアル機能について
の送受信が終了していれば、送信判断部103は、シリ
アル機能103の検証が終了したかどうかを判断する
(ステップ315)。シリアル機能103の検証が終了
していない場合は、ステップ303の処理に戻り、変数
nの値を再び“1”として処理を続ける。一方、シリア
ル機能103の検証が終了した場合は、このフローチャ
ートの処理を終了する。
On the other hand, if the transmission / reception for all the virtual serial functions has been completed, the transmission determining unit 103 determines whether the verification of the serial function 103 has been completed (step 315). If the verification of the serial function 103 has not been completed, the process returns to step 303, where the value of the variable n is set to “1” again and the process is continued. On the other hand, when the verification of the serial function 103 ends, the processing of this flowchart ends.

【0066】図5は、受信信号解析部118における処
理手順を示すフローチャートである。このフローチャー
トに示す各ステップのうちステップ401と402は、
図4のステップ308の中で実行されるものであり、ス
テップ405と406とは、図4のステップ309と3
10とにそれぞれ対応するものである。
FIG. 5 is a flowchart showing a processing procedure in received signal analyzing section 118. Steps 401 and 402 of the steps shown in this flowchart are:
Steps 405 and 406 are executed in step 308 of FIG. 4, and steps 309 and 3 of FIG.
10 and 10 respectively.

【0067】受信信号解析部118は、まず、受信部1
17がシリアル機能103からの受信信号をサンプリン
グした結果を二進数のデータとして入手する(ステップ
401)。次に、受信信号解析部118は、予め指定し
た仮想シリアル機能のシリアル種別に従って、入手した
二進数のデータを、シリアル・データの部分とプロトコ
ル信号の部分とに切り分ける(ステップ402)。
The reception signal analyzer 118 firstly receives the
17 obtains the result of sampling the received signal from the serial function 103 as binary data (step 401). Next, the received signal analysis unit 118 divides the obtained binary data into a serial data portion and a protocol signal portion according to the serial type of the virtual serial function designated in advance (step 402).

【0068】次に、受信信号解析部118は、ステップ
402で切り分けたプロトコル信号の部分が通信プロト
コルに違反しているものであるかどうかを判断する(ス
テップ403)。通信プロトコルに違反していた場合に
は、受信信号解析部118は、エラーメッセージ部11
9に対して、通信プロトコルへの違反がある旨及びその
違反の内容を通知する(ステップ404)。
Next, the received signal analyzing section 118 determines whether or not the portion of the protocol signal separated in step 402 violates the communication protocol (step 403). If the communication protocol is violated, the received signal analyzing unit 118
9 is notified that there is a violation of the communication protocol and the content of the violation (step 404).

【0069】通信プロトコルに違反していなかった場
合、或いはエラーメッセージ部119への通知が終了し
た場合には、受信信号解析部118は、ステップ402
で切り分けたシリアル・データの部分に従って、仮想シ
リアル機能からシリアル機能103への送信要求が出て
いるかどうかを判断する(ステップ405)。
If the communication protocol has not been violated, or if the notification to the error message section 119 has been completed, the received signal analyzing section 118 proceeds to step 402.
In step 405, it is determined whether a transmission request from the virtual serial function to the serial function 103 has been issued in accordance with the portion of the serial data divided in step (405).

【0070】シリアル機能103への送信要求が出てい
る場合には、受信信号解析部118は、送信判断部11
3に対して仮想シリアル機能からシリアル機能103へ
の送信要求が出ている旨を通知する(ステップ40
6)。そして、このフローチャートの処理を終了する。
一方、シリアル機能103への送信要求が出ていない場
合には、受信信号解析部118は、そのままこのフロー
チャートの処理を終了する。
When a transmission request to serial function 103 has been issued, received signal analysis section 118 transmits to transmission determination section 11
3 is notified that a transmission request has been issued from the virtual serial function to the serial function 103 (step 40).
6). Then, the process of this flowchart ends.
On the other hand, when the transmission request to the serial function 103 has not been issued, the reception signal analysis unit 118 ends the processing of this flowchart as it is.

【0071】以下、図1、図2に示したシリアル・デー
タ部105へのデータの記述について説明する。
Hereinafter, description of data in serial data section 105 shown in FIGS. 1 and 2 will be described.

【0072】図6は、シリアル・データ部105の記述
内容を示す図である。シリアル種別の項目は、仮想シリ
アル機能に対応するシリアル機能103の種別を表すも
ので、仮想シリアル機能で前もって用意されているシリ
アル機能の種別の中から選択される。アドレスの項目
は、マスタ状態のシリアル機能がスレーブ状態のシリア
ル機能を選択するときのアドレス番号を示す。
FIG. 6 is a diagram showing the description contents of the serial data section 105. The serial type item indicates the type of the serial function 103 corresponding to the virtual serial function, and is selected from the serial function types prepared in advance for the virtual serial function. The address item indicates an address number when the serial function in the master state selects the serial function in the slave state.

【0073】プロトコルの項目は、シリアル機能103
の通信プロトコルの項目を示し、シリアル種別で選択し
たシリアル機能によって変わる。また、通信プロトコル
の項目は、信号として送信するかどうか選択できる。端
子の項目は、仮想シリアル機能がシリアル機能103の
端子に送信するシリアル・データ、または動作クロック
を示す。
The protocol item is the serial function 103
Of the communication protocol, and varies depending on the serial function selected by the serial type. In the item of the communication protocol, whether or not to transmit as a signal can be selected. The item of the terminal indicates serial data transmitted by the virtual serial function to the terminal of the serial function 103 or an operation clock.

【0074】図7は、シリアル・データ部105へのデ
ータ保存を示す図である。Noは、仮想シリアル機能の
番号を示す。種別の項目は、仮想シリアル機能のシリア
ル機能の種類を示す。アドレスの項目は、マスタ状態の
シリアル機能がスレーブ状態のシリアル機能を選択する
ときのアドレス番号を示す。アドレスを設定しないシリ
アル機能の場合には、00Hが設定される。
FIG. 7 is a diagram showing data storage in serial data section 105. No indicates the number of the virtual serial function. The item of type indicates the type of the serial function of the virtual serial function. The address item indicates an address number when the serial function in the master state selects the serial function in the slave state. In the case of a serial function in which no address is set, 00H is set.

【0075】プロトコルの項目は、シリアル・データ以
外に送信する信号を示し、xの部分には二進数のシリア
ル・データが入る。また、0、1、xの他にも、Aなど
の16進数が入る場合もあるが、それはシリアル・デー
タによって変動する値である。端子の項目は、仮想シリ
アル機能が当該端子に送信するシリアル・データ、また
は動作クロックを示す。許可の項目は、仮想シリアル機
能がシリアル機能103に信号を送信しても良いのかど
うかを示す。この値は、シリアル機能から送信要求が来
たり、送信するシリアル・データが無くなることで変動
する。
The item of the protocol indicates a signal to be transmitted other than the serial data, and binary serial data is entered in the part of x. A hexadecimal number such as A may be entered in addition to 0, 1, and x, which is a value that varies depending on serial data. The item of the terminal indicates serial data transmitted by the virtual serial function to the terminal or an operation clock. The permission item indicates whether the virtual serial function may transmit a signal to the serial function 103. This value varies when a transmission request comes from the serial function or when there is no more serial data to be transmitted.

【0076】図8(a)、(b)は、シリアル種別の変
更によるシリアル・データ部105の記述内容の変換を
示す図である。この記述内容の変換は、シリアル・デー
タ部105のシリアル種別だけを変更して入力部112
に入力した場合、入力部112がシリアル種別に応じて
シリアル・データ部105の内容を自動的に行うもので
ある。変換の内容を具体的に示すと、次のようになる。
FIGS. 8A and 8B are diagrams showing conversion of the description contents of the serial data section 105 by changing the serial type. This description is converted by changing only the serial type of the serial data
, The input unit 112 automatically performs the contents of the serial data unit 105 according to the serial type. The details of the conversion are as follows.

【0077】アドレスの項目には、アドレスのないシリ
アル機能の場合には、何も設定されない。アドレスのあ
るシリアル機能の場合には、いま設定されている同じシ
リアル機能のアドレスに“1”を加えたものが設定され
る。プロトコルの項目には、そのシリアル機能の初期値
が設定される。端子の項目では、シリアル・データや動
作クロックの設定をそのまま引き継ぐ。しかし、端子の
数が少ないシリアル機能に変更した場合は、その端子に
関するデータは設定されず、端子の数が増えた場合に
は、初期値が設定される。
Nothing is set in the address item in the case of a serial function without an address. In the case of a serial function having an address, a value obtained by adding "1" to the address of the currently set serial function is set. In the protocol item, the initial value of the serial function is set. In the terminal item, the settings of serial data and operation clock are inherited as they are. However, when changing to a serial function with a small number of terminals, data relating to the terminal is not set, and when the number of terminals increases, an initial value is set.

【0078】この実施の形態にかかるシリアル機能のシ
ミュレーション装置は、上記のような構成及び動作を有
することにより、以下に説明する効果を奏する。
The serial function simulation apparatus according to the present embodiment has the above-described configuration and operation, and has the following effects.

【0079】まず、図3と図14とを比較してわかるよ
うに、この実施の形態にかかるシリアル機能のシミュレ
ーション装置では、シリアル機能103が意図した動作
をしなかった場合に、従来必要であったシリアル機能1
03への信号の入力時間と値とを変更する手順が必要な
い。このため、シリアル機能の検証を行う際の作業効率
が高くなる。その理由は、シリアル信号作成ツール10
4は、シリアル機能103から出力された信号に従っ
て、シリアル機能103に信号を1ビットずつ入力して
いくので、検証用のデータとしてシリアル機能103か
ら信号を読み込む時間を考慮する必要がないからであ
る。
First, as can be seen by comparing FIG. 3 and FIG. 14, the serial function simulation apparatus according to the present embodiment is conventionally required when the serial function 103 does not operate as intended. Serial function 1
There is no need for a procedure for changing the input time and value of the signal to 03. For this reason, work efficiency when verifying the serial function is increased. The reason is that the serial signal creation tool 10
No. 4 is because the signal is input one bit at a time to the serial function 103 according to the signal output from the serial function 103, so that it is not necessary to consider the time to read the signal from the serial function 103 as the data for verification. .

【0080】また、この実施の形態にかかるシリアル機
能のシミュレーション装置では、マスタ受信状態のCP
Uが送信を開始する信号を送り、その信号を受け取った
スレーブ送信状態のCPUが送信を開始するといった、
マスタ状態とスレーブ状態とがあるシリアル機能を十分
に検証することができる。その理由は、シリアル信号作
成ツール104は、シリアル機能103からの送信要求
に対して適切に信号を返すからである。
In the serial function simulation apparatus according to this embodiment, the CP in the master reception state is used.
U sends a signal to start transmission, and the CPU in the slave transmission state that receives the signal starts transmission.
A serial function having a master state and a slave state can be sufficiently verified. The reason is that the serial signal creation tool 104 appropriately returns a signal in response to a transmission request from the serial function 103.

【0081】さらに、この実施の形態にかかるシリアル
機能のシミュレーション装置では、シングルチップ・マ
イクロコンピュータ機能部102が複数のシリアル機能
103を有していた場合に、複数のシリアル機能103
を同時に検証することができる。その理由は、シリアル
機能103と仮想シリアル機能とを複数設定し、互いに
信号を送受信できるようにしているためである。
Furthermore, in the serial function simulation apparatus according to this embodiment, when the single-chip microcomputer function unit 102 has a plurality of serial functions 103, a plurality of serial functions 103
Can be verified simultaneously. The reason is that a plurality of serial functions 103 and virtual serial functions are set so that signals can be transmitted and received between them.

【0082】さらに、この実施の形態にかかるシリアル
機能のシミュレーション装置では、通信プロトコルに違
反した信号を受信したシリアル機能103の動作を検証
することができる。その理由は、シリアル機能103に
は、通信プロトコルに違反した信号を仮想シリアル機能
から意図的に入力することができるからである。
Further, with the serial function simulation apparatus according to this embodiment, the operation of the serial function 103 that has received a signal violating the communication protocol can be verified. The reason is that a signal violating the communication protocol can be intentionally input to the serial function 103 from the virtual serial function.

【0083】さらに、この実施の形態にかかるシリアル
機能のシミュレーション装置では、シリアル機能103
の検証に利用したシリアル・データ部105に記述され
た情報を、他のシリアル機能を検証する際にも流用する
ことができる。その理由は、シリアル信号作成ツール1
04は、シリアル・データ部105に記述された情報
を、シリアル機能103に合わせて変換することができ
るからである。
Further, in the serial function simulation apparatus according to this embodiment, the serial function 103
The information described in the serial data unit 105 used for the verification of the serial data can be used for verifying other serial functions. The reason is serial signal creation tool 1
04 is because the information described in the serial data section 105 can be converted according to the serial function 103.

【0084】[第2の実施の形態]上記の第1の実施の
形態では、シリアル信号作成ツール104が構成する仮
想シリアル機能は、単数であった。これに対して、マス
タ状態のシリアル機能に複数のスレーブ状態のシリアル
機能が存在する場合もある。そこで、この実施の形態で
は、複数の仮想シリアル機能を構成できるようにしたも
のを説明する。
[Second Embodiment] In the above-described first embodiment, the virtual serial function configured by the serial signal creation tool 104 is singular. On the other hand, the serial function in the master state may include a plurality of serial functions in the slave state. Therefore, in the present embodiment, a configuration in which a plurality of virtual serial functions can be configured will be described.

【0085】図9は、この実施の形態にかかるシリアル
機能のシミュレーション装置(シミュレータ)の機能構
成及びシリアル・データの流れを示す図である。ここ
で、第1の実施の形態のもの(図1)との違いは、シリ
アル信号作成ツール120が構成する仮想シリアル機能
にある。
FIG. 9 is a diagram showing a functional configuration of a serial function simulation apparatus (simulator) and a flow of serial data according to this embodiment. Here, the difference from the first embodiment (FIG. 1) lies in the virtual serial function configured by the serial signal creation tool 120.

【0086】シリアル信号作成ツール120では、1つ
のシリアル機能103との間で複数の仮想シリアル機能
が信号を送受信している。シリアル機能103は、複数
の仮想シリアル機能にアドレスを含む信号を送信し、複
数の仮想シリアル機能と選択的に信号を送受信してい
る。
In the serial signal creation tool 120, a plurality of virtual serial functions transmit / receive signals to / from one serial function 103. The serial function 103 transmits signals including addresses to a plurality of virtual serial functions, and selectively transmits and receives signals to and from the plurality of virtual serial functions.

【0087】図10は、この実施の形態に適用されるシ
リアル・データ部105の記述内容を示す図である。図
示するように、仮想シリアル機能11と仮想シリアル機
能12のデータは、同じシリアル種別、レジスタ、端子
名を指定しており、同一のシリアル機能と信号を送受信
するために、異なるアドレスを指定している。
FIG. 10 is a diagram showing the description contents of the serial data section 105 applied to this embodiment. As shown in the figure, the data of the virtual serial function 11 and the data of the virtual serial function 12 specify the same serial type, register, and terminal name, and specify different addresses in order to transmit and receive signals to and from the same serial function. I have.

【0088】マスタ状態であるシリアル機能1は、複数
のスレーブ状態の仮想シリアル機能に、信号と共にアド
レス・データも送信する。このアドレス・データとシリ
アル・データ部105に記述されているアドレス・デー
タとが一致する仮想シリアル機能が、シリアル機能1と
信号を送受信する対象として指定される。また、スレー
ブ状態であるシリアル機能2は、複数のマスタ状態の仮
想シリアル機能から信号と共にアドレス・データを受信
する。このアドレス・データとシリアル機能2の持つア
ドレス・データとが一致した場合、そのアドレス・デー
タを受信した仮想シリアル機能が、シリアル機能2と信
号を送受信する対象として指定される。
The serial function 1 in the master state transmits address data together with signals to a plurality of virtual serial functions in the slave state. The virtual serial function whose address data matches the address data described in the serial data section 105 is designated as an object for transmitting and receiving signals to and from the serial function 1. The serial function 2 in the slave state receives address data together with signals from a plurality of virtual serial functions in the master state. When the address data matches the address data of the serial function 2, the virtual serial function that has received the address data is designated as a target for transmitting and receiving signals to and from the serial function 2.

【0089】この実施の形態にかかるシリアル機能のシ
ミュレーション装置では、上記のような構成により、シ
ングルチップ・マイクロコンピュータ機能部102にお
いて、1つのマスタ状態のシリアル機能に対して複数の
スレーブ状態のシリアル機能が存在する場合でも、シリ
アル機能103の動作を検証することができる。
In the serial function simulation apparatus according to this embodiment, the single-chip microcomputer function unit 102 has the above-described configuration, and a single master state serial function is replaced by a plurality of slave state serial functions. , The operation of the serial function 103 can be verified.

【0090】[第3の実施の形態]上記の第1の実施の
形態では、シリアル信号作成ツール101は、シリアル
機能103からの送信要求に対して、仮想シリアル機能
から一定の間隔で信号を送信していた。しかしながら、
実際には送信信号の中にノイズが混入し、信号の間隔が
一定でなくなることがある。そこで、この実施の形態で
は、意図的に送信信号の間隔を不定にし、その時のシリ
アル機能103の動作を検証可能とするシリアル機能の
シミュレーション装置を説明する。
[Third Embodiment] In the first embodiment, the serial signal creation tool 101 transmits a signal from the virtual serial function at regular intervals in response to a transmission request from the serial function 103. Was. However,
Actually, noise is mixed in the transmission signal, and the interval between the signals may not be constant. Therefore, in the present embodiment, a serial function simulation apparatus that intentionally makes the interval between transmission signals indefinite and enables the operation of the serial function 103 at that time to be verified.

【0091】図11は、この実施の形態で適用されるシ
リアル信号作成ツールの機能構成を示すブロック図であ
る。ここで、第1の実施の形態のもの(図2)との違い
は、1ビット送信クロック部130をさらに備え、クロ
ック発生回路部106が発生したCPUクロックが、送
信部115ではなく、1ビット送信クロック部130に
入力されることである。なお、シミュレータ部101の
構成としては、第1の実施の形態のもの(図1)と同一
である。
FIG. 11 is a block diagram showing a functional configuration of a serial signal creation tool applied in this embodiment. Here, the difference from the first embodiment (FIG. 2) is that a 1-bit transmission clock unit 130 is further provided, and the CPU clock generated by the clock generation circuit unit 106 is not a transmission unit 115 but a 1-bit transmission clock unit. This is input to the transmission clock unit 130. The configuration of the simulator unit 101 is the same as that of the first embodiment (FIG. 1).

【0092】1ビット送信クロック部130は、シング
ルチップ・マイクロコンピュータ機能部102のクロッ
ク発生回路106からのCPUクロックに基づいて、仮
想シリアル機能がシリアル機能103に1ビットの信号
を送信するためのクロックを生成する。送信部115
は、1ビット送信クロック部130が生成したクロック
に基づいて、シリアル機能部103の目的の端子に信号
を送信する。
The 1-bit transmission clock section 130 is a clock for transmitting a 1-bit signal from the virtual serial function to the serial function 103 based on the CPU clock from the clock generation circuit 106 of the single-chip microcomputer function section 102. Generate Transmission unit 115
Transmits a signal to a target terminal of the serial function unit 103 based on the clock generated by the 1-bit transmission clock unit 130.

【0093】図12は、この実施の形態に適用されるシ
リアル・データ部105の記述内容を示す図である。こ
こでの記述内容は、第1の実施の形態に示した記述内容
(図6)に、送信部115が1ビットの信号を送信する
ためのクロックと、端子1のシリアル・データの記述方
法とが追加されている。
FIG. 12 is a diagram showing the description contents of the serial data section 105 applied to this embodiment. The description here is the same as the description (FIG. 6) described in the first embodiment, except that the clock for transmitting the 1-bit signal by the transmitting unit 115, the method of describing the serial data at the terminal 1, and the like. Has been added.

【0094】送信部115が1ビットの信号を送信する
ためのクロックは、シリアル信号作成ツール104の動
作クロックであり、この例では、CPUクロックが1M
Hz、送信部115が1ビットの信号を送信するための
クロックが2MHzである。
The clock for transmitting the 1-bit signal by the transmitting unit 115 is the operation clock of the serial signal creation tool 104. In this example, the CPU clock is 1M.
Hz, and a clock for transmitting the 1-bit signal by the transmission unit 115 is 2 MHz.

【0095】また、端子1のシリアル・データは、プロ
トコル信号も含めて二進数で記述されている。ここで、
シリアル信号作成ツールの動作クロックを2MHzとし
ているので、CPUクロックの1MHzに合わせて信号
を送信するために、二進数で記述した信号の長さを2倍
にしている。このとき、例えば、信号“1100110
0”を“11101000”と記述することで、送信部
115から送信する信号の間隔を不定にすることができ
る。
The serial data of the terminal 1 is described in a binary number including a protocol signal. here,
Since the operation clock of the serial signal creation tool is 2 MHz, the length of the signal described in the binary number is doubled in order to transmit the signal in accordance with the CPU clock of 1 MHz. At this time, for example, the signal “1100110”
By describing “0” as “11101000”, the interval between signals transmitted from transmitting section 115 can be made indefinite.

【0096】この実施の形態にかかるシリアル機能のシ
ミュレーション装置では、上記のような構成により、送
信する信号の間隔を不定にして、シリアル機能103の
動作を検証することができる。
In the serial function simulation apparatus according to the present embodiment, the operation of the serial function 103 can be verified by setting the interval of signals to be transmitted indefinitely by the above configuration.

【0097】[実施の形態の変形]本発明は、上記の第
1〜第3の実施の形態に限られず、種々の変形、応用が
可能である。以下、本発明に適用可能な上記の実施の形
態の変形態様について説明する。
[Modifications of Embodiment] The present invention is not limited to the above-described first to third embodiments, and various modifications and applications are possible. Hereinafter, modifications of the above-described embodiment applicable to the present invention will be described.

【0098】上記の第1〜第3の実施の形態では、シリ
アル・データ部105に記述されたデータは、入力部1
12に一括して入力し、シリアル信号作成ツール104
内に予め設定しておくものとしていた。しかしながら、
シリアル・データ部105に記述されたデータのうち、
必要なものを選んで入力部112に順次入力するように
してもよい。
In the first to third embodiments, the data described in the serial data unit 105 is input to the input unit 1
12 and the serial signal creation tool 104
In advance. However,
Of the data described in the serial data section 105,
Necessary items may be selected and sequentially input to the input unit 112.

【0099】上記の第1〜第3の実施の形態では、シリ
アル機能のシミュレーション装置、より具体的にはシミ
ュレータ部101の各機能は、エンジニアリングワーク
ステーションなどの汎用コンピュータがソフトウェアプ
ログラムを実行することで実現されるものとしていた。
しかしながら、その一部を論理結線によって構成された
ハードウェアで実現しても、上記の第1〜第3の実施の
形態と同様の結果を得ることができる。
In the first to third embodiments, the simulation device for the serial function, more specifically, each function of the simulator unit 101 is implemented by executing a software program by a general-purpose computer such as an engineering workstation. Was to be realized.
However, even if a part thereof is realized by hardware configured by logical connection, the same result as in the above-described first to third embodiments can be obtained.

【0100】上記の第1〜第3の実施の形態では、シリ
アル機能のシミュレーション装置、より具体的にはシミ
ュレータ部101の各機能は、図3〜図5に示したフロ
ーチャートに示すプログラムを実行するによって、例え
ば、エンジニアリングワークステーションなどの汎用コ
ンピュータで実現されるものとしていた。
In the first to third embodiments, the simulation device for the serial function, more specifically, each function of the simulator unit 101 executes the program shown in the flowcharts shown in FIGS. For example, it is realized by a general-purpose computer such as an engineering workstation.

【0101】このような機能を実現するためのプログラ
ムは、CD−ROM、DVD−ROMなどのコンピュー
タ読み取り可能な記録媒体に格納して提供してもよい。
また、サーバ装置が有する固定ディスク装置に格納して
おき、WAN、LANなどのネットワークを通じてクラ
イアント装置に提供してもよい。この場合において、提
供されるプログラムは、従来技術にはない、シリアル信
号作成ツール104の各機能のみを実現するものであっ
てもよい。
A program for realizing such a function may be provided by being stored in a computer-readable recording medium such as a CD-ROM or a DVD-ROM.
Alternatively, the data may be stored in a fixed disk device of the server device and provided to the client device through a network such as a WAN or a LAN. In this case, the provided program may implement only the functions of the serial signal creation tool 104, which are not available in the related art.

【0102】[0102]

【発明の効果】以上説明したように、本発明によれば、
シリアル機能が信号を読み込んでいくタイミングを考慮
する必要がなく、シリアル機能を検証する際の作業効率
を、高くすることができる。
As described above, according to the present invention,
There is no need to consider the timing at which the serial function reads signals, and the work efficiency in verifying the serial function can be increased.

【0103】また、通信プロトコル違反を検証すること
ができたり、複数のシリアル機能を同時にシミュレーシ
ョンしたりということもできるようになる。
Further, it is possible to verify a communication protocol violation and to simulate a plurality of serial functions at the same time.

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

【図1】本発明の第1の実施の形態にかかるシリアル機
能のシミュレーション装置(シミュレータ)の機能構成
及びシリアル・データの流れを示す図である。
FIG. 1 is a diagram showing a functional configuration of a serial function simulation device (simulator) and a flow of serial data according to a first embodiment of the present invention.

【図2】図1のシリアル信号作成ツールの機能構成を示
すブロック図である。
FIG. 2 is a block diagram showing a functional configuration of a serial signal creation tool of FIG. 1;

【図3】本発明の第1の実施の形態にかかるシリアル機
能のシミュレーション装置(シミュレータ)でのシリア
ル機能の検証方法を示すフローチャートである。
FIG. 3 is a flowchart illustrating a serial function verification method in a serial function simulation apparatus (simulator) according to the first embodiment of the present invention.

【図4】図1、図2のシリアル信号作成ツールにおける
処理手順を示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure in the serial signal creation tool of FIGS. 1 and 2;

【図5】図2の受信信号解析部における処理手順を示す
フローチャートである。
FIG. 5 is a flowchart illustrating a processing procedure in a received signal analysis unit in FIG. 2;

【図6】図1、図2のシリアル・データ部の記述内容を
示す図である。
FIG. 6 is a diagram showing description contents of a serial data part in FIGS. 1 and 2;

【図7】図1、図2のシリアル・データ部へのデータ保
存を示す図である。
FIG. 7 is a diagram showing storage of data in a serial data section of FIGS. 1 and 2;

【図8】(a)、(b)は、シリアル種別の変更による
シリアル・データ部の記述内容の変換を示す図である。
FIGS. 8A and 8B are diagrams showing conversion of description contents of a serial data portion by changing a serial type.

【図9】本発明の第2の実施の形態にかかるシリアル機
能のシミュレーション装置(シミュレータ)の機能構成
及びシリアル・データの流れを示す図である。
FIG. 9 is a diagram showing a functional configuration of a serial function simulation apparatus (simulator) and a flow of serial data according to a second embodiment of the present invention.

【図10】本発明の第2の実施の形態で適用されるシリ
アル・データ部の記述内容を示す図である。
FIG. 10 is a diagram showing a description content of a serial data portion applied in the second embodiment of the present invention.

【図11】本発明の第3の実施の形態で適用されるシリ
アル信号作成ツールの機能構成を示すブロック図であ
る。
FIG. 11 is a block diagram showing a functional configuration of a serial signal creation tool applied in a third embodiment of the present invention.

【図12】本発明の第3の実施の形態で適用されるシリ
アル・データ部の記述内容を示す図である。
FIG. 12 is a diagram showing a description content of a serial data portion applied in the third embodiment of the present invention.

【図13】従来技術1にかかるシリアル機能のシミュレ
ーション装置(シミュレータ)の機能構成及びシリアル
・データの流れを示す図である。
FIG. 13 is a diagram showing a functional configuration and a flow of serial data of a simulation device (simulator) for a serial function according to Prior Art 1.

【図14】従来技術1にかかるシリアル機能のシミュレ
ーション装置(シミュレータ)でのシリアル機能の検証
方法を示す図である。
FIG. 14 is a diagram showing a serial function verification method in a serial function simulation device (simulator) according to Prior Art 1.

【図15】従来技術2にかかる通信ソフトウェアの自動
試験シミュレータの機能構成を示す図である。
FIG. 15 is a diagram showing a functional configuration of an automatic test simulator for communication software according to the related art 2.

【符号の説明】 101 シミュレータ部 102 シングルチップ・マイクロコンピュータ機能部 103 シリアル機能 104 シリアル信号作成ツール 105 シリアル・データ部 106 クロック発生回路部 107 出力処理部 108 結果出力部 112 入力部 113 送信判断部 114 送信信号作成部 115 送信部 117 受信部 118 受信信号解析部 119 エラーメッセージ部 120 シリアル信号作成ツール 130 1ビット送信クロック部[Description of Signs] 101 Simulator section 102 Single-chip microcomputer function section 103 Serial function 104 Serial signal creation tool 105 Serial data section 106 Clock generation circuit section 107 Output processing section 108 Result output section 112 Input section 113 Transmission judgment section 114 Transmission signal creation section 115 Transmission section 117 Receiving section 118 Received signal analysis section 119 Error message section 120 Serial signal creation tool 130 1-bit transmission clock section

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】送信された信号に従って検証対象となるシ
リアル機能を記述したプログラムを実行し、該プログラ
ムの実行により前記シリアル機能を模擬的に実現するシ
リアル機能手段と、 前記シリアル機能に送信するための信号を含む仮想シリ
アル機能を構成し、前記シリアル機能の模擬的な実行に
よって前記シリアル機能手段から出力された信号を受信
すると共に、該受信した信号に基づいて構成した仮想シ
リアル機能が含む信号を前記シリアル機能に送信するこ
とで、前記シリアル機能を模擬的に実行させるシリアル
信号作成手段と、 前記シリアル機能手段によるシリアル機能の模擬的な実
行によって出力された信号を外部に出力する出力処理手
段とを備えることを特徴とするシリアル機能のシミュレ
ーション装置。
1. A serial function means for executing a program describing a serial function to be verified according to a transmitted signal, and simulating the serial function by executing the program, and transmitting the serial function to the serial function. A virtual serial function including the signal of the above, while receiving the signal output from the serial function means by simulated execution of the serial function, the signal included in the virtual serial function configured based on the received signal A serial signal generating unit that simulates the serial function by transmitting to the serial function, and an output processing unit that externally outputs a signal output by the simulated execution of the serial function by the serial function unit. A simulation device for a serial function, comprising:
【請求項2】前記シリアル機能手段によるシリアル機能
の模擬的な実行によって出力される信号は、前記シリア
ル信号作成手段が構成した仮想シリアル機能に対する信
号の送信要求を含み、 前記シリアル信号作成手段は、前記シリアル機能手段か
ら出力された信号の送信要求に応答して、前記シリアル
機能に信号を送信することを特徴とする請求項1に記載
のシリアル機能のシミュレーション装置。
2. A signal output by simulated execution of a serial function by the serial function means includes a signal transmission request for a virtual serial function configured by the serial signal creation means, wherein the serial signal creation means includes: 2. The serial function simulation apparatus according to claim 1, wherein a signal is transmitted to the serial function in response to a transmission request for a signal output from the serial function means.
【請求項3】前記シリアル信号作成手段は、前記シリア
ル機能手段から出力された信号の送信要求に応答して、
前記シリアル機能に1ビットずつ信号を送信することを
特徴とする請求項2に記載のシリアル機能のシミュレー
ション装置。
3. The serial signal generating means responds to a request for transmission of a signal output from the serial function means,
The serial function simulation apparatus according to claim 2, wherein a signal is transmitted to the serial function one bit at a time.
【請求項4】検証対象となるシリアル機能は、複数あ
り、 前記シリアル信号作成手段は、複数のシリアル機能のそ
れぞれに対応する複数仮想シリアル機能を構成し、複数
の仮想シリアル機能から対応するシリアル機能への信号
の送信を順次行っていくことを特徴とする請求項1乃至
3のいずれか1項に記載のシリアル機能のシミュレーシ
ョン装置。
4. A serial function to be verified includes a plurality of serial functions. The serial signal creating means constitutes a plurality of virtual serial functions corresponding to the plurality of serial functions, respectively, and the serial function corresponding to the plurality of virtual serial functions. The serial function simulation apparatus according to claim 1, wherein signals are sequentially transmitted to the serial function.
【請求項5】前記シリアル信号作成手段は、前記シリア
ル機能に送信する信号として通信プロトコルに違反する
信号を含む仮想シリアル機能を構成することが可能であ
ると共に、前記シリアル機能手段から受信した信号に基
づいて通信プロトコルへの違反を判定する手段を備える
ことを特徴とする請求項1乃至4のいずれか1項に記載
のシリアル機能のシミュレーション装置。
5. The serial signal generating means can configure a virtual serial function including a signal violating a communication protocol as a signal to be transmitted to the serial function, and generate a signal received from the serial function means. The apparatus for simulating a serial function according to any one of claims 1 to 4, further comprising: means for determining a violation of a communication protocol based on the serial function.
【請求項6】前記シリアル信号作成手段が仮想シリアル
機能を構成するために必要な情報を記述したシリアルデ
ータ記述手段をさらに備え、 前記シリアル信号作成手段は、前記シリアルデータ記述
手段の記述に従って、前記仮想シリアル機能を構成する
ことを特徴とする請求項1乃至5のいずれか1項に記載
のシリアル機能のシミュレーション装置。
6. The serial signal creating means further comprises serial data description means describing information necessary for configuring a virtual serial function, wherein the serial signal creation means is adapted to write the serial data according to the description of the serial data description means. The apparatus for simulating a serial function according to claim 1, wherein the apparatus comprises a virtual serial function.
【請求項7】前記シリアル信号作成手段は、検証対象と
なるシリアル機能に合わせて、前記シリアルデータ記述
手段の記述内容を書き換える手段を有することを特徴と
する請求項6に記載のシリアル機能のシミュレーション
装置。
7. The serial function simulation according to claim 6, wherein said serial signal generating means has means for rewriting the description content of said serial data description means in accordance with the serial function to be verified. apparatus.
【請求項8】前記シリアル信号作成手段は、1つのシリ
アル機能に対して複数の仮想シリアル機能を構成し、 前記シリアル機能手段によるシリアル機能の模擬的な実
行によって出力される信号は、前記シリアル信号作成手
段が構成した複数の仮想シリアル機能に対する信号の送
信要求と共にその要求先の仮想シリアル機能を識別する
識別情報を含み、前記シリアル信号作成手段は、前記シ
リアル機能手段から出力された信号の送信要求に応答し
て、該送信要求に付された識別情報が示す仮想シリアル
機能が含む信号を、前記シリアル機能に送信することを
特徴とする請求項1乃至7のいずれか1項に記載のシリ
アル機能のシミュレーション装置。
8. The serial signal creating means constitutes a plurality of virtual serial functions for one serial function, and a signal output by the serial function means simulating execution of the serial function is the serial signal. A request for transmitting a signal to the plurality of virtual serial functions configured by the generating means and identification information for identifying the virtual serial function of the request destination are included, and the serial signal generating means includes a request for transmitting a signal output from the serial function means. 8. The serial function according to claim 1, wherein a signal included in the virtual serial function indicated by the identification information attached to the transmission request is transmitted to the serial function in response to the request. Simulation equipment.
【請求項9】前記シリアル信号作成手段は、前記シリア
ル機能への信号の送信間隔を不定にする手段を備えるこ
とを特徴とする請求項1乃至8のいずれか1項に記載の
シリアル機能のシミュレーション装置。
9. A simulation of a serial function according to claim 1, wherein said serial signal generating means includes means for making a transmission interval of a signal to said serial function undefined. apparatus.
【請求項10】前記シリアル機能手段がプログラムの実
行によって実現するシリアル機能は、シングルチップ・
マイクロコンピュータに含まれるシリアル機能であるこ
とを特徴とする請求項1乃至9のいずれか1項に記載の
シリアル機能のシミュレーション装置。
10. The serial function realized by the serial function means by executing a program is a single-chip serial function.
The serial function simulation apparatus according to claim 1, wherein the serial function is included in a microcomputer.
【請求項11】送信した信号に従って検証対象となるシ
リアル機能を記述したプログラムを実行することによっ
て、該シリアル機能を検証するシリアル機能のシミュレ
ーション方法であって、 前記シリアル機能に送信するための信号を含む仮想シリ
アル機能を構成する仮想シリアル機能構成ステップと、 前記シリアル機能を記述したプログラムの実行によって
出力された信号を受信する信号受信ステップと、 前記信号受信ステップで受信した信号に基づいて、前記
仮想シリアル機能構成ステップで構成した仮想シリアル
機能が含む信号を前記シリアル機能に送信する信号送信
ステップと、 前記シリアル機能を記述したプログラムの実行によって
出力された信号を外部に出力する出力ステップとを含む
ことを特徴とするシリアル機能のシミュレーション方
法。
11. A method of simulating a serial function for verifying a serial function by executing a program describing a serial function to be verified in accordance with a transmitted signal, the method comprising: transmitting a signal to be transmitted to the serial function. A virtual serial function configuring step including configuring a virtual serial function, a signal receiving step of receiving a signal output by executing a program describing the serial function, and a virtual serial function based on the signal received in the signal receiving step. A signal transmission step of transmitting a signal included in the virtual serial function configured in the serial function configuration step to the serial function, and an output step of outputting a signal output by executing a program describing the serial function to the outside Simulation of serial function characterized by Method.
【請求項12】前記シリアル機能を記述したプログラム
の実行によって出力される信号は、前記仮想シリアル機
能構成ステップで構成した仮想シリアル機能に対する信
号の送信要求を含み、 前記信号送信ステップは、前記信号受信ステップで受信
した信号に含まれる送信要求に応答して、前記シリアル
機能に1ビットずつ信号を送信することを特徴とする請
求項11に記載のシリアル機能のシミュレーション方
法。
12. A signal output by execution of the program describing the serial function includes a request to transmit a signal to the virtual serial function configured in the virtual serial function configuration step, and the signal transmitting step includes receiving the signal. 12. The serial function simulation method according to claim 11, wherein a signal is transmitted to the serial function one bit at a time in response to a transmission request included in the signal received in the step.
【請求項13】前記方法において検証対象となるシリア
ル機能は、複数あり、 前記仮想シリアル機能構成ステップは、複数のシリアル
機能のそれぞれに対応する複数の仮想シリアル機能を構
成し、 前記信号送信ステップは、構成した複数の仮想シリアル
機能について、順次対応するシリアル機能への信号の送
信を行うことを特徴とする請求項11または12に記載
のシリアル機能のシミュレーション方法。
13. A serial function to be verified in the method includes a plurality of serial functions, the virtual serial function configuring step configures a plurality of virtual serial functions corresponding to each of the plurality of serial functions, and the signal transmitting step includes: 13. The serial function simulation method according to claim 11, wherein signals are sequentially transmitted to the serial functions corresponding to the plurality of virtual serial functions configured.
【請求項14】前記仮想シリアル機能構成ステップは、
前記シリアル機能に送信する信号として通信プロトコル
に違反する信号を含む仮想シリアル機能を構成し、 前記方法は、前記信号受信ステップで受信した信号に基
づいて通信プロトコルへの違反を判定する違反判定ステ
ップをさらに含むことを特徴とする請求項11乃至13
のいずれか1項に記載のシリアル機能のシミュレーショ
ン方法。
14. The virtual serial function configuration step,
Configuring a virtual serial function including a signal that violates a communication protocol as a signal to be transmitted to the serial function, wherein the method includes a violation determining step of determining a violation of a communication protocol based on the signal received in the signal receiving step. 14. The method according to claim 11, further comprising:
The method for simulating a serial function according to any one of the preceding claims.
【請求項15】前記仮想シリアル機能構成ステップで仮
想シリアル機能を構成するために必要な情報の記述を、
前記仮想シリアル機能構成ステップにおける仮想シリア
ルデータの構成に先立って準備する情報記述準備ステッ
プと、 検証対象となるシリアル機能に合わせて、前記情報記述
準備ステップで準備した情報の記述内容を書き換える情
報書き換えステップとをさらに含むことを特徴とする請
求項11乃至14のいずれか1項に記載のシリアル機能
のシミュレーション方法。
15. A description of information necessary for configuring a virtual serial function in the virtual serial function configuration step,
An information description preparation step for preparing prior to the configuration of virtual serial data in the virtual serial function configuration step; and an information rewriting step for rewriting the description content of the information prepared in the information description preparation step in accordance with the serial function to be verified. The method for simulating a serial function according to claim 11, further comprising:
【請求項16】送信した信号に従って検証対象となるシ
リアル機能を記述したプログラムを実行することによっ
て、該シリアル機能を検証するためのプログラムを記録
したコンピュータ読み取り可能な記録媒体であって、 前記シリアル機能に送信するための信号を含む仮想シリ
アル機能を構成する仮想シリアル機能構成ステップと、 前記シリアル機能を記述したプログラムの実行によって
出力された信号を受信する信号受信ステップと、 前記信号受信ステップで受信した信号に基づいて、前記
仮想シリアル機能構成ステップで構成した仮想シリアル
機能が含む信号を前記シリアル機能に送信する信号送信
ステップと、 前記シリアル機能を記述したプログラムの実行によって
出力された信号を外部に出力する出力ステップとをコン
ピュータに実行させるためのプログラムを記録したこと
を特徴とするコンピュータ読み取り可能な記録媒体。
16. A computer-readable recording medium having recorded thereon a program for verifying a serial function to be verified by executing a program describing a serial function to be verified in accordance with a transmitted signal. A virtual serial function configuration step of configuring a virtual serial function including a signal to be transmitted to, a signal reception step of receiving a signal output by executing a program describing the serial function, and a signal reception step of receiving the signal. A signal transmitting step of transmitting a signal included in the virtual serial function configured in the virtual serial function configuring step to the serial function based on the signal; and outputting a signal output by executing a program describing the serial function to the outside. Output steps to the computer A computer-readable recording medium having recorded thereon a program to be executed.
【請求項17】前記シリアル機能を記述したプログラム
の実行によって出力される信号は、前記仮想シリアル機
能構成ステップで構成した仮想シリアル機能に対する信
号の送信要求を含み、 前記信号送信ステップは、前記信号受信ステップで受信
した信号に含まれる送信要求に応答して、前記シリアル
機能に1ビットずつ信号を送信することを特徴とする請
求項16に記載のコンピュータ読み取り可能な記録媒
体。
17. A signal output by execution of the program describing the serial function includes a request to transmit a signal to the virtual serial function configured in the virtual serial function configuration step, and the signal transmitting step includes receiving the signal. 17. The computer-readable recording medium according to claim 16, wherein a signal is transmitted to the serial function bit by bit in response to a transmission request included in the signal received in the step.
【請求項18】前記方法において検証対象となるシリア
ル機能は、複数あり、 前記仮想シリアル機能構成ステップは、複数のシリアル
機能のそれぞれに対応する複数の仮想シリアル機能を構
成し、 前記信号送信ステップは、構成した複数の仮想シリアル
機能について、順次対応するシリアル機能への信号の送
信を行うことを特徴とする請求項16または17に記載
のコンピュータ読み取り可能な記録媒体。
18. The method according to claim 18, wherein the method includes a plurality of serial functions to be verified, wherein the virtual serial function configuring step configures a plurality of virtual serial functions corresponding to each of the plurality of serial functions, and the signal transmitting step includes: 18. The computer-readable recording medium according to claim 16, wherein signals are sequentially transmitted to the serial functions corresponding to the plurality of virtual serial functions configured.
【請求項19】前記仮想シリアル機能構成ステップは、
前記シリアル機能に送信する信号として通信プロトコル
に違反する信号を含む仮想シリアル機能を構成し、 前記信号受信ステップで受信した信号に基づいて通信プ
ロトコルへの違反を判定する違反判定ステップを、さら
にコンピュータに実行させるためのプログラムを記録し
たことを特報とする請求項16乃至18のいずれか1項
に記載のコンピュータ読み取り可能な記録媒体。
19. The virtual serial function configuration step,
A virtual serial function including a signal violating a communication protocol is configured as a signal transmitted to the serial function, and a violation determining step of determining a violation of the communication protocol based on the signal received in the signal receiving step is further performed by the computer. 19. The computer-readable recording medium according to claim 16, wherein a program for executing the program is recorded.
【請求項20】前記仮想シリアル機能構成ステップで仮
想シリアル機能を構成するために必要な情報の記述を、
前記仮想シリアル機能構成ステップにおける仮想シリア
ルデータの構成に先立って準備する情報記述準備ステッ
プと、 検証対象となるシリアル機能に合わせて、前記情報記述
準備ステップで準備した情報の記述内容を書き換える情
報書き換えステップとを、さらにコンピュータに実行さ
せるためのプログラムを記録したことを特徴とする請求
項16乃至19のいずれか1項に記載のコンピュータ読
み取り可能な記録媒体。
20. A description of information necessary for configuring a virtual serial function in the virtual serial function configuration step,
An information description preparation step for preparing prior to the configuration of virtual serial data in the virtual serial function configuration step; and an information rewriting step for rewriting the description content of the information prepared in the information description preparation step in accordance with the serial function to be verified. 20. The computer-readable recording medium according to claim 16, further comprising a program for causing a computer to execute the following.
JP36787299A 1999-12-24 1999-12-24 Device and method for simulation of serial function, and recording medium Pending JP2001184271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36787299A JP2001184271A (en) 1999-12-24 1999-12-24 Device and method for simulation of serial function, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36787299A JP2001184271A (en) 1999-12-24 1999-12-24 Device and method for simulation of serial function, and recording medium

Publications (1)

Publication Number Publication Date
JP2001184271A true JP2001184271A (en) 2001-07-06

Family

ID=18490419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36787299A Pending JP2001184271A (en) 1999-12-24 1999-12-24 Device and method for simulation of serial function, and recording medium

Country Status (1)

Country Link
JP (1) JP2001184271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005536789A (en) * 2002-08-01 2005-12-02 テラディン インコーポレイティッド A universal approach to simulate, emulate and test various serial bus types

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005536789A (en) * 2002-08-01 2005-12-02 テラディン インコーポレイティッド A universal approach to simulate, emulate and test various serial bus types

Similar Documents

Publication Publication Date Title
US6816814B2 (en) Method and apparatus for decomposing and verifying configurable hardware
US20030074423A1 (en) Testing web services as components
CN112286746B (en) Universal verification platform and method for AXI slave device interface
JPH09326796A (en) Method for generating test packet to simulate computer network communication and its device
CN111859834B (en) UVM-based verification platform development method, system, terminal and storage medium
CN109783340A (en) Test code programming method, IP test method and the device of SoC
CN111400167A (en) Redfish service compliance verification method, device, equipment and medium
CN114757135A (en) Programmable logic device verification method and system based on demand-driven verification
CN110750446A (en) System testing method and related device
CN116306474A (en) Method, device, equipment and storage medium for verifying access of network on chip
JP2001184271A (en) Device and method for simulation of serial function, and recording medium
CN112559264B (en) Simulation test method for realizing FPGA (field programmable Gate array) universal serial port by verification platform based on UVM (Universal verification Module)
CN114780143A (en) CAN controller excitation sequence generation method and device based on UVM and verification platform
CN111708568B (en) Modularized development decoupling method and terminal
US8046201B1 (en) Communication system for use with a block diagram environment
US20080281549A1 (en) Test Apparatus for Control Unit, Pattern Signal Creating Apparatus, and Test Program Generating Apparatus
JPH1065762A (en) Automatic testing simulator for communication software and automatic testing method therefor
JPH06332828A (en) Communication processing program development supporting system
WO2019021898A1 (en) Development support device
CN117172205B (en) Performance analysis method, device, electronic equipment and storage medium
JP2022123414A (en) Verification system, control method and program
KR100768916B1 (en) Packet gathering/analysis apparatus and method using the emulating
CN117331816A (en) Method and system for simulating and verifying rapidIO interface based on UVM architecture
JPH10307727A (en) Software construction device and type check method
CN118012681A (en) Full duplex function verification method and device for universal asynchronous receiving and transmitting device