[go: up one dir, main page]

JP4679351B2 - Protocol test apparatus and protocol test method - Google Patents

Protocol test apparatus and protocol test method Download PDF

Info

Publication number
JP4679351B2
JP4679351B2 JP2005340328A JP2005340328A JP4679351B2 JP 4679351 B2 JP4679351 B2 JP 4679351B2 JP 2005340328 A JP2005340328 A JP 2005340328A JP 2005340328 A JP2005340328 A JP 2005340328A JP 4679351 B2 JP4679351 B2 JP 4679351B2
Authority
JP
Japan
Prior art keywords
protocol
transaction
operation pattern
normal operation
operation mode
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.)
Expired - Fee Related
Application number
JP2005340328A
Other languages
Japanese (ja)
Other versions
JP2007150547A (en
Inventor
健志 安倍
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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor 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 Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2005340328A priority Critical patent/JP4679351B2/en
Publication of JP2007150547A publication Critical patent/JP2007150547A/en
Application granted granted Critical
Publication of JP4679351B2 publication Critical patent/JP4679351B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Monitoring And Testing Of Exchanges (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Description

本発明はプロトコル試験装置およびプロトコル試験方法に関し、特に所定のプロトコルに応じたパターンのトランザクションを発生させて試験対象装置のプロトコル試験を行うためのプロトコル試験装置およびこのプロトコル試験装置を用いたプロトコル試験方法に関する。   The present invention relates to a protocol test apparatus and a protocol test method, and more particularly to a protocol test apparatus for performing a protocol test of a test target apparatus by generating a transaction of a pattern according to a predetermined protocol, and a protocol test method using the protocol test apparatus About.

各種インタフェース機器の動作確認や性能評価時には、プロトコルチェッカを用いてプロトコル試験が行われる。図11は、プロトコルチェッカの役割を示した図である。
プロトコルチェッカ901は、所定のプロトコルに従って通信を行うマスタ902とスレーブ903との間の信号路に接続される。図の例では、プロトコルに従ってマスタ902からアクセス要求(REQ)が送出されると、これを受信したスレーブ903が応答(ACK)を返すという通信が行われる。プロトコルチェッカ901は、マスタ902とスレーブ903間の信号状態を監視し、プロトコル違反を検出すると、エラー(ERROR)を出力する。
A protocol test is performed using a protocol checker at the time of operation check and performance evaluation of various interface devices. FIG. 11 is a diagram showing the role of the protocol checker.
The protocol checker 901 is connected to a signal path between a master 902 and a slave 903 that perform communication according to a predetermined protocol. In the illustrated example, when an access request (REQ) is transmitted from the master 902 according to the protocol, communication is performed such that the slave 903 that has received the request returns a response (ACK). The protocol checker 901 monitors the signal state between the master 902 and the slave 903, and outputs an error (ERROR) when a protocol violation is detected.

このように、プロトコルチェッカはプロトコル試験において重要な役割を担うが、そのために、プロトコルチェッカについても正しく動作するか確認する必要がある。プロトコルチェッカの試験では、正常時(プロトコルに適合する通信が行われている状態)にERRORを発生させないこと、および異常時(プロトコル違反が発生した状態)にERRORを発生させることを確認する。   As described above, the protocol checker plays an important role in the protocol test. Therefore, it is necessary to confirm whether the protocol checker operates correctly. In the test of the protocol checker, it is confirmed that ERROR is not generated when it is normal (communication conforming to the protocol is performed) and that ERROR is generated when it is abnormal (protocol violation occurs).

図12は、従来のプロトコルチェッカの試験方法を示した図である。従来プロトコルチェッカの試験では、プロトコル違反を起こすようなプロトコル違反シナリオ905を手作業で1つ1つ作成し、シミュレーション制御装置904にこれを実行させていた。シミュレーション制御装置904は、プロトコル違反シナリオ905の手順に従って、プロトコル違反の信号をプロトコルチェッカ901に送出し、プロトコルチェッカ901が所望のERRORを発生させるかどうかを確認していた。   FIG. 12 is a diagram showing a conventional protocol checker test method. In the conventional protocol checker test, protocol violation scenarios 905 that cause protocol violations are manually created one by one and are executed by the simulation control device 904. The simulation control apparatus 904 sends a protocol violation signal to the protocol checker 901 in accordance with the procedure of the protocol violation scenario 905, and confirms whether the protocol checker 901 generates a desired ERROR.

なお、プロトコル違反シナリオ905をマスタ902またはスレーブ903に適用すれば、マスタ902またはスレーブ903のプロトコル試験を行うことができる。
また、動作コマンドを設定し、フレームの無視、送出すべきフレームの破棄、あるいは送出すべきフレームを別のフレームに変更して送出させ、試験対象の装置に正常状態と異常状態を発生させて試験を行うプロトコル試験方式も提案されている(たとえば、特許文献1参照)。
特開平6−244835号公報(段落番号〔0005〕〜〔0006〕、図1)
If the protocol violation scenario 905 is applied to the master 902 or the slave 903, the protocol test of the master 902 or the slave 903 can be performed.
In addition, set an operation command to ignore the frame, discard the frame to be sent, or change the frame to be sent to another frame and send it to the device under test to generate normal and abnormal conditions. There has also been proposed a protocol test method for performing (see, for example, Patent Document 1).
JP-A-6-244835 (paragraph numbers [0005] to [0006], FIG. 1)

しかし、従来のプロトコル試験装置を用いた試験では、十分な検証を行うことが難しいという問題点があった。
従来、たとえば、プロトコルチェッカが異常を仕様通りに検出するかどうかを確認するためには、プロトコル違反を起こすようなシナリオを手作業で作成しなければならず、様々なパターンを作成することが難しかった。
However, a test using a conventional protocol test apparatus has a problem that it is difficult to perform sufficient verification.
Conventionally, for example, in order to check whether a protocol checker detects an abnormality as specified, it is necessary to manually create a scenario that causes a protocol violation, and it is difficult to create various patterns. It was.

簡単な例を挙げて説明する。図13は、プロトコル仕様とプロトコル違反の一例を示した図である。(1)は、この例のプロトコルの仕様通りの正常時の信号状態を示した図であり、(2)、(3)および(4)は、プロトコル違反時の信号状態を示した図である。なお、図11と同様に、REQはマスタ902、ACKはスレーブ903およびERRORはプロトコルチェッカ901の出力信号である。   A simple example will be described. FIG. 13 is a diagram illustrating an example of protocol specifications and protocol violations. (1) is a diagram showing a signal state in a normal state according to the protocol specification of this example, and (2), (3) and (4) are diagrams showing signal states at the time of protocol violation. . 11, REQ is an output signal of the master 902, ACK is an output of the slave 903, and ERROR is an output signal of the protocol checker 901.

図13(1)は、この例のプロトコル仕様を示しており、マスタ902がアクセス要求をする場合、REQをアサートし、スレーブ903によってACKがアサートされたら、クロック信号(CLK)の次サイクルでディアサートする。REQは、ACKがアサートされるまでアサートを継続する。一方、スレーブ903は、REQがアサートされた4サイクル以内にACKをアサートし、次サイクルでディアサートする。   FIG. 13 (1) shows the protocol specification of this example. When the master 902 makes an access request, REQ is asserted, and when ACK is asserted by the slave 903, it is disabled in the next cycle of the clock signal (CLK). Assert. REQ continues asserting until ACK is asserted. On the other hand, the slave 903 asserts ACK within 4 cycles when REQ is asserted, and deasserts it in the next cycle.

このようなプロトコルに対し、(2)では、マスタ902がREQをアサートするが、スレーブ903によってACKがアサートされる前にディアサートしている。この場合、プロトコルチェッカ901は、REQがディアサートされたことを検出した次のサイクルでERRORを発生させる。また、(3)では、マスタ902がREQをアサートし、スレーブ903がACKをアサートしたのに、ディアサートされない。この場合、プロトコルチェッカ901は、REQがディアサートされないことを検出した次のサイクルでERRORを発生させる。さらに、(4)では、マスタ902がREQをアサートしていないのに、スレーブ903がACKをアサートしている。この場合、プロトコルチェッカ901は、ACKのアサート検出の次のサイクルでERRORを発生させる。このほか、マスタ902がREQをアサートしたのに4サイクル経過してもスレーブ903がACKをアサートしない場合、スレーブ903がACKをアサートした後、次サイクルでディアサートしない場合などの異常状態が想定される。従来のプロトコル試験では、これらのケース各々についてシナリオを作成しなければならなかった。   For such a protocol, in (2), the master 902 asserts REQ, but deasserts before ACK is asserted by the slave 903. In this case, the protocol checker 901 generates ERROR in the next cycle after detecting that REQ is deasserted. In (3), the master 902 asserts REQ and the slave 903 asserts ACK, but is not deasserted. In this case, the protocol checker 901 generates ERROR in the next cycle after detecting that REQ is not deasserted. Further, in (4), the master 902 has not asserted REQ, but the slave 903 has asserted ACK. In this case, the protocol checker 901 generates ERROR in the next cycle after detection of ACK assertion. In addition, abnormal states are assumed such as when the master 902 asserts REQ but the slave 903 does not assert ACK even after 4 cycles, or when the slave 903 asserts ACK and does not deassert in the next cycle. The In conventional protocol tests, scenarios had to be created for each of these cases.

さらに、個々のパターン、たとえば(2)の場合について図の例では、REQを1サイクルでディアサートしているが、ACKがアサートされる前にREQを2サイクルまたは3サイクルでアサート/ディアサートするシナリオなども想定することが可能であり、作成しなければならないシナリオ数はさらに増える。このように、例に挙げた簡単なプロトコルの場合でも、すべての項目を網羅して試験を行う場合には、多数のプロトコル違反シナリオが必要になる。これらを手作業で行うのでは、作業者の負荷が重くなるばかりでなく、項目に抜けが生じる恐れがある。これは、動作コマンドを設定して行う試験の場合も同様である。   Further, in the illustrated example for the case of individual patterns, eg (2), REQ is deasserted in one cycle, but REQ is asserted / deasserted in two or three cycles before ACK is asserted. Scenarios can also be assumed, and the number of scenarios that must be created further increases. As described above, even in the case of a simple protocol given as an example, a large number of protocol violation scenarios are required when testing is performed covering all items. If these are performed manually, not only will the load on the operator become heavy, but items may be missing. The same applies to a test performed by setting an operation command.

また、プロトコルに基づき想定される試験項目のうち、どの程度の範囲の項目が終了したかを定量的に測定することができないという問題点もある。たとえば、コードカバレッジなどの一般的なカバレッジを用いれば、検証が終了したプログラムやデータを測定することはできるが、プロトコル試験の範囲をどの程度網羅したかを測定することはできなかった。   In addition, there is a problem that it is impossible to quantitatively measure how much of the test items assumed based on the protocol has been completed. For example, if general coverage such as code coverage is used, programs and data that have been verified can be measured, but it has not been possible to measure how much the protocol test range has been covered.

加えて、プロトコルチェッカ901がERRORを発生させると、シミュレーションが停止し、その状態を保持するようになっている。異なるパターンで試験を開始するためには、手動で一旦リセットを行わなければならなかった。また、1つ1つのシナリオを実行させるため、所定の期間正常状態が続いてから異常状態が発生するなどの状況を作り出すことが難しかった。このように連続して試験を行うことができず、様々なパターンの試験を行うためには、煩雑な作業が必要になるという問題点もある。   In addition, when the protocol checker 901 generates ERROR, the simulation is stopped and the state is maintained. In order to start the test with a different pattern, a manual reset had to be performed once. In addition, since each scenario is executed, it is difficult to create a situation in which an abnormal state occurs after a normal state continues for a predetermined period. In this way, there is a problem that it is not possible to continuously perform tests, and in order to perform tests of various patterns, complicated work is required.

本発明はこのような点に鑑みてなされたものであり、プロトコルに応じて想定される様々なパターンのプロトコル試験を容易に実行することが可能なプロトコル試験装置およびプロトコル試験方法を提供することを目的とする。また、本発明の他の目的は、プロトコル試験の範囲をどの程度網羅したかを定量的に測定することにある。   The present invention has been made in view of the above points, and provides a protocol test apparatus and a protocol test method capable of easily executing a protocol test of various patterns assumed according to a protocol. Objective. Another object of the present invention is to quantitatively measure how much the protocol test range is covered.

本発明では上記課題を解決するために、図1に示すようなプロトコル試験装置が提供される。プロトコル試験装置は、制御手段1aと、計時手段1bと、擬似マスタ2および擬似スレーブ3として動作するトランザクション発生手段1cと、を有する。   In order to solve the above problems, the present invention provides a protocol test apparatus as shown in FIG. The protocol test apparatus includes a control unit 1a, a timing unit 1b, and a transaction generation unit 1c that operates as a pseudo master 2 and a pseudo slave 3.

制御手段1aは、正常動作モードと、トランザクション発生手段1cを正常動作モードから異常動作モードへ切替える切替え時間として、予め指示された時間を計時手段1bに設定するとともに、試験対象装置に応じてトランザクション発生手段1cを制御する。正常動作モードは、試験対象装置に対し所定のプロトコルに適合したトランザクションを発生させる動作モードであり、異常動作モードは、試験対象装置に対し所定のプロトコルに違反するトランザクションを発生させる動作モードである。計時手段1bは、設定された切替え時間を計時し、切替え時間が経過した場合には、正常動作モードから異常動作モードへ切替える。トランザクション発生手段1cは、試験対象装置に応じて、擬似マスタ2や擬似スレーブ3として動作する。このトランザクション発生手段1cは、正常動作モード時の動作を規定する正常動作パターンを記憶する正常動作パターン記憶部2a、異常動作モード時の動作を規定する異常動作パターンを記憶する異常動作パターン記憶部2b、正常動作モード時は正常動作パターン記憶部2a、異常動作モード時は異常動作パターン記憶部2bを選択する選択部2d、および選択された正常動作パターン記憶部2aまたは異常動作パターン記憶部2bから動作パターンを読み出し、この動作パターンに基づきトランザクションを生成するトランザクション生成部2eを有する。   The control means 1a sets the time instructed in advance in the time measuring means 1b as a switching time for switching the normal operation mode and the transaction generation means 1c from the normal operation mode to the abnormal operation mode, and generates a transaction according to the device under test. Control means 1c. The normal operation mode is an operation mode in which a transaction conforming to a predetermined protocol is generated for the device under test, and the abnormal operation mode is an operation mode in which a transaction violating the predetermined protocol is generated for the device under test. The time measuring means 1b measures the set switching time, and when the switching time has elapsed, switches from the normal operation mode to the abnormal operation mode. The transaction generating unit 1c operates as a pseudo master 2 or a pseudo slave 3 depending on the test target device. The transaction generating means 1c includes a normal operation pattern storage unit 2a that stores a normal operation pattern that defines an operation in a normal operation mode, and an abnormal operation pattern storage unit 2b that stores an abnormal operation pattern that defines an operation in an abnormal operation mode. In the normal operation mode, the normal operation pattern storage unit 2a is selected. In the abnormal operation mode, the selection unit 2d selects the abnormal operation pattern storage unit 2b, and the selected normal operation pattern storage unit 2a or abnormal operation pattern storage unit 2b operates. It has a transaction generation unit 2e that reads a pattern and generates a transaction based on the operation pattern.

このようなプロトコル試験装置では、試験対象装置に応じて、トランザクション発生手段1cを擬似マスタ2または擬似スレーブ3、あるいは、擬似マスタ2と擬似スレーブ3として動作させる。制御手段1aは、正常動作モードを設定し、計時手段1bに切替え時間を設定してプロトコル試験を開始する。これに伴って、計時手段1bは、切替え時間の計時を開始し、トランザクション発生手段1c(擬似マスタ2と擬似スレーブ3)は処理を開始する。擬似マスタ2の場合で説明する。プロトコル試験の開始から計時手段1bが切替え時間の経過を検出するまでは正常動作モードであり、選択部2dは、正常動作パターン記憶部2aを選択する。トランザクション生成部2eは、正常動作パターン記憶部2aから正常動作パターンを読み出し、正常動作パターンに基づきトランザクションを発生させる。これにより、試験対象装置は、正常時の動作確認を行うことができる。計時手段1bが切替え時間の経過を検出し、正常動作モードを異常動作モードに切替える。擬似マスタ2では、選択部2dは、異常動作パターン記憶部2bを選択し、トランザクション生成部2eは異常動作パターン記憶部2bから読み出した異常動作パターンに基づくトランザクションを発生させる。擬似スレーブ3の場合も同様の処理を行う。これにより、試験対象装置は、異常時の動作確認を行うことができる。   In such a protocol test apparatus, the transaction generating means 1c is operated as the pseudo master 2 or the pseudo slave 3, or the pseudo master 2 and the pseudo slave 3 depending on the test target apparatus. The control means 1a sets the normal operation mode, sets the switching time in the time measuring means 1b, and starts the protocol test. Along with this, the time measuring means 1b starts measuring the switching time, and the transaction generating means 1c (the pseudo master 2 and the pseudo slave 3) starts processing. The case of the pseudo master 2 will be described. The normal operation mode is maintained from the start of the protocol test until the time measuring means 1b detects the elapse of the switching time, and the selection unit 2d selects the normal operation pattern storage unit 2a. The transaction generation unit 2e reads the normal operation pattern from the normal operation pattern storage unit 2a, and generates a transaction based on the normal operation pattern. Thereby, the device under test can perform a normal operation check. The time measuring means 1b detects the elapse of the switching time and switches the normal operation mode to the abnormal operation mode. In the pseudo master 2, the selection unit 2d selects the abnormal operation pattern storage unit 2b, and the transaction generation unit 2e generates a transaction based on the abnormal operation pattern read from the abnormal operation pattern storage unit 2b. Similar processing is performed for the pseudo slave 3. Thereby, the apparatus under test can check the operation at the time of abnormality.

また、上記課題を解決するために、所定のプロトコルに応じたパターンのトランザクションを発生させてプロトコル試験を行うプロトコル試験方法において、制御手段が、試験対象装置に対し所定のプロトコルに適合したトランザクションを発生させる正常動作モードから試験対象装置に対し所定のプロトコルに違反するトランザクションを発生させる異常動作モードへ切替える切替え時間を計時手段に設定してプロトコル試験を開始し、正常動作モードである場合に、トランザクション発生手段が、正常動作モード時の動作を規定する正常動作パターンを記憶する正常動作パターン記憶部を選択し、正常動作パターン記憶部から読み出した正常動作パターンに基づいてトランザクションを発生し、計時手段が、設定された切替え時間を計時し、切替え時間が経過した場合には正常動作モードを異常動作モードへ切替え、異常動作モードに切替わると、トランザクション発生手段が、異常動作モード時の動作を規定する異常動作パターンを記憶する異常動作パターン記憶部を選択し、異常動作パターン記憶部から読み出した異常動作パターンに基づいてトランザクションを発生する手順を有することを特徴とするプロトコル試験方法、が提供される。   In addition, in order to solve the above-mentioned problem, in a protocol test method in which a protocol test is performed by generating a transaction of a pattern according to a predetermined protocol, the control unit generates a transaction conforming to the predetermined protocol for the device under test. When the normal operation mode is selected, the protocol test is started by setting the switching time for switching from the normal operation mode to the abnormal operation mode that generates a transaction that violates the specified protocol to the device under test. The means selects a normal operation pattern storage unit that stores a normal operation pattern that defines the operation in the normal operation mode, and generates a transaction based on the normal operation pattern read from the normal operation pattern storage unit. Time the set switching time When the switching time elapses, the normal operation mode is switched to the abnormal operation mode, and when the operation mode is switched to the abnormal operation mode, the transaction generating means stores the abnormal operation pattern that defines the operation in the abnormal operation mode. There is provided a protocol test method characterized by having a procedure for selecting a storage unit and generating a transaction based on an abnormal operation pattern read from the abnormal operation pattern storage unit.

このようなプロトコル試験方法によれば、制御手段が、計時手段に切替え時間を設定してプロトコル試験を開始すると、トランザクション発生手段は、正常動作パターンを用いてプロトコルに適合したトランザクションを発生させる。計時手段が切替え時間の経過を検出し、正常動作モードから異常動作モードに切替えると、トランザクション発生手段は、異常動作パターンを用いてトランザクションを発生させる。   According to such a protocol test method, when the control unit sets the switching time in the time measuring unit and starts the protocol test, the transaction generating unit generates a transaction conforming to the protocol using the normal operation pattern. When the time measuring means detects the elapse of the switching time and switches from the normal operation mode to the abnormal operation mode, the transaction generating means generates a transaction using the abnormal operation pattern.

本発明では、プロトコル試験装置は、任意に設定される切替え時間が経過するまでの間は、正常動作パターンに基づいてトランザクションを発生させ、切替え時間が経過すると、異常動作パターンに基づくトランザクションを発生させる。このように、試験対象装置に供給するトランザクションを任意のタイミングで正常状態から異常状態に切替えることにより、所望のプロトコル試験を容易に実行することができる。   In the present invention, the protocol test apparatus generates a transaction based on a normal operation pattern until an arbitrarily set switching time elapses, and generates a transaction based on an abnormal operation pattern after the switching time elapses. . In this way, a desired protocol test can be easily executed by switching the transaction supplied to the device under test from the normal state to the abnormal state at an arbitrary timing.

以下、本発明の実施の形態を図面を参照して説明する。まず、実施の形態に適用される発明の概念について説明し、その後、実施の形態の具体的な内容を説明する。
図1は、本発明の実施の形態に適用される発明の概念図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. First, the concept of the invention applied to the embodiment will be described, and then the specific contents of the embodiment will be described.
FIG. 1 is a conceptual diagram of the invention applied to the embodiment of the present invention.

本発明にかかるプロトコル試験装置は、制御手段1a、計時手段1b、および擬似マスタ2または擬似スレーブ3として動作するトランザクション発生手段1cを有する。なお、ここでは、選択された動作パターンに従って通信マスタおよび通信スレーブ間で実行される一連の事象をトランザクションと言う。   The protocol test apparatus according to the present invention includes a control unit 1a, a timing unit 1b, and a transaction generation unit 1c that operates as a pseudo master 2 or a pseudo slave 3. Here, a series of events executed between the communication master and the communication slave according to the selected operation pattern is referred to as a transaction.

トランザクション発生手段1cは、制御手段1aに従い試験対象装置に応じて、通信マスタの動作をシミュレーションする擬似マスタ2、または通信スレーブの動作をシミュレーションする擬似スレーブ3、あるいは、擬似マスタ2と擬似スレーブ3として動作する。たとえば、通信装置間の通信がプロトコルに適合するか否かを調べるプロトコルチェッカの試験を行う場合は、プロトコルチェッカを接続し、擬似マスタ2および擬似スレーブ3として動作させることにより、通信マスタと通信スレーブ間で実行される通信プロトコルに基づく信号やデータ状態を再現し、プロトコルチェッカに供給して試験を行うことができる。また、通信スレーブを試験する場合には、通信スレーブを接続し、プロトコル試験装置を擬似マスタ2として動作させることにより、通信マスタから通信スレーブに送信される信号やデータ状態を再現し、通信スレーブに供給して行うことができる。通信マスタを試験する場合には、プロトコル試験装置を擬似スレーブ3として動作させることによって、同様に試験を行うことができる。   The transaction generation means 1c is a pseudo master 2 that simulates the operation of the communication master, a pseudo slave 3 that simulates the operation of the communication slave, or the pseudo master 2 and the pseudo slave 3 according to the test target device according to the control means 1a. Operate. For example, when performing a protocol checker test for checking whether communication between communication devices conforms to a protocol, the protocol checker is connected and operated as a pseudo master 2 and a pseudo slave 3 to thereby establish a communication master and a communication slave. Signals and data states based on the communication protocol executed between them can be reproduced and supplied to the protocol checker for testing. When testing a communication slave, the communication slave is connected and the protocol test apparatus is operated as a pseudo master 2 to reproduce signals and data states transmitted from the communication master to the communication slave. Can be supplied. When testing the communication master, the test can be similarly performed by operating the protocol test apparatus as the pseudo slave 3.

制御手段1aは、指定された切替え時間を計時手段1bに設定するとともに、トランザクション発生手段1cを擬似マスタ2および擬似スレーブ3として動作させる制御を行うことによって、プロトコル試験全体を制御する。   The control unit 1a controls the entire protocol test by setting the designated switching time in the time measuring unit 1b and performing control to operate the transaction generating unit 1c as the pseudo master 2 and the pseudo slave 3.

計時手段1bは、制御手段1aによって設定された切替え時間を計時し、この切替え時間が経過した場合には、擬似マスタ2および擬似スレーブ3の正常動作モードを異常動作モードへ切替える。   The timing means 1b measures the switching time set by the control means 1a, and when this switching time has elapsed, switches the normal operation mode of the pseudo master 2 and the pseudo slave 3 to the abnormal operation mode.

以下、試験対象装置をプロトコルチェッカとし、トランザクション発生手段1cを擬似マスタ2および擬似スレーブ3として動作させる場合で説明する。ここでは、プロトコルチェッカは、擬似マスタ2の出力するREQ(4a)および擬似スレーブ3の出力するACK(4b)が入力するようにプロトコル試験装置に接続される。   Hereinafter, a case will be described in which the test target apparatus is a protocol checker and the transaction generating unit 1c is operated as a pseudo master 2 and a pseudo slave 3. Here, the protocol checker is connected to the protocol test apparatus so that the REQ (4a) output from the pseudo master 2 and the ACK (4b) output from the pseudo slave 3 are input.

擬似マスタ2は、正常動作パターン記憶部2a、異常動作パターン記憶部2b、設定部(ランダム発生器)2c、選択部2dおよびトランザクション生成部2eを有する。なお、擬似スレーブ3も同様の構成をとる。   The pseudo master 2 includes a normal operation pattern storage unit 2a, an abnormal operation pattern storage unit 2b, a setting unit (random generator) 2c, a selection unit 2d, and a transaction generation unit 2e. The pseudo slave 3 has the same configuration.

正常動作パターン記憶部2aは、試験対象装置に対し所定のプロトコルに適合したトランザクションを発生させる正常動作モードにおける擬似マスタ2の動作を規定する正常動作パターンを格納する記憶手段である。異常動作パターン記憶部2bは、試験対象装置に対し所定のプロトコルに違反するトランザクションを発生させる異常動作モードにおける擬似マスタ2の動作を規定する異常動作パターンを格納する記憶手段である。   The normal operation pattern storage unit 2a is a storage unit that stores a normal operation pattern that defines the operation of the pseudo master 2 in a normal operation mode in which a transaction conforming to a predetermined protocol is generated for a test target device. The abnormal operation pattern storage unit 2b is a storage unit that stores an abnormal operation pattern that defines the operation of the pseudo master 2 in an abnormal operation mode in which a transaction that violates a predetermined protocol is generated for the device under test.

設定部2cは、乱数を発生させるランダム発生器の機能を具備し、正常動作パターン記憶部2aおよび異常動作パターン記憶部2bから読み出す動作パターンを指示するポインタや動作パターンの実行間隔などにランダムな値を設定し、トランザクション生成部2eに送る。   The setting unit 2c has a function of a random generator for generating a random number, and is a random value for a pointer indicating an operation pattern read from the normal operation pattern storage unit 2a and the abnormal operation pattern storage unit 2b, an operation pattern execution interval, or the like. Is sent to the transaction generation unit 2e.

選択部2dは、動作モードが正常動作モードの場合は正常動作パターン記憶部2aを選択し、異常動作モードの場合は異常動作パターン記憶部2bを選択する。
トランザクション生成部2eは、選択部2dが選択した正常動作パターン記憶部2aまたは異常動作パターン記憶部2bから、設定部2cが設定したポインタに従って動作パターンを読み出し、読み出した動作パターンに基づき、トランザクションを発生させる。
The selection unit 2d selects the normal operation pattern storage unit 2a when the operation mode is the normal operation mode, and selects the abnormal operation pattern storage unit 2b when the operation mode is the abnormal operation mode.
The transaction generation unit 2e reads the operation pattern from the normal operation pattern storage unit 2a or the abnormal operation pattern storage unit 2b selected by the selection unit 2d according to the pointer set by the setting unit 2c, and generates a transaction based on the read operation pattern Let

このような構成のプロトコル試験装置の動作について説明する。
制御手段1aは、計時手段1bに切替え時間を設定し、擬似マスタ2および擬似スレーブ3を初期化してプロトコル試験を開始する。初期化時、動作モードは正常動作モードになっている。なお、切替え時間の設定形式は任意であり、たとえば、時間のほか、開始からのサイクル数の設定や、正常動作パターンの繰り返し回数などが設定できる。また、固定値ではなく、ランダムな値を設定することもできる。
The operation of the protocol test apparatus configured as described above will be described.
The control unit 1a sets a switching time in the time measuring unit 1b, initializes the pseudo master 2 and the pseudo slave 3, and starts a protocol test. At initialization, the operation mode is the normal operation mode. The switching time setting format is arbitrary. For example, in addition to time, the setting of the number of cycles from the start, the number of repetitions of the normal operation pattern, and the like can be set. In addition, a random value can be set instead of a fixed value.

擬似マスタ2では、選択部2dは、正常動作モードが設定されているので正常動作パターン記憶部2aを選択する。また、設定部2cは、正常動作パターン記憶部2aに格納される複数の正常動作パターンのうち、どれを選択するかを指示するポインタを設定し、動作パターンと動作パターンの間隔の設定とともにトランザクション生成部2eに通知する。値は、内部のランダム発生器によってランダムに設定された値を用いる。トランザクション生成部2eは、選択部2dが選択した正常動作パターン記憶部2aから設定部2cの指示する領域に格納される動作パターンを読み出し、読み出した動作パターンに基づきトランザクションを発生させる。擬似スレーブ3の動作も同様である。これにより、擬似マスタ2および擬似スレーブ3間では、プロトコルに適合した複数の動作パターンがランダムに選択されてトランザクションが繰り返し発生する。ランダムに選択される動作パターンに応じて、擬似マスタ2および擬似スレーブ3間では、正常時の様々なREQ(4a)およびACK(4b)の信号が交換されることになる。   In the pseudo master 2, the selection unit 2d selects the normal operation pattern storage unit 2a because the normal operation mode is set. Further, the setting unit 2c sets a pointer that indicates which one of a plurality of normal operation patterns stored in the normal operation pattern storage unit 2a is selected, and generates a transaction together with the setting of the interval between the operation patterns and the operation patterns. Notify unit 2e. As the value, a value randomly set by an internal random generator is used. The transaction generation unit 2e reads the operation pattern stored in the area designated by the setting unit 2c from the normal operation pattern storage unit 2a selected by the selection unit 2d, and generates a transaction based on the read operation pattern. The operation of the pseudo slave 3 is the same. As a result, between the pseudo master 2 and the pseudo slave 3, a plurality of operation patterns conforming to the protocol are selected at random, and transactions are repeatedly generated. Various REQ (4a) and ACK (4b) signals in the normal state are exchanged between the pseudo master 2 and the pseudo slave 3 according to the operation pattern selected at random.

擬似マスタ2および擬似スレーブ3間の信号路に接続されるプロトコルチェッカは、入力するREQ(4a)およびACK(4b)がプロトコルに適合するかどうかをチェックしている。プロトコルチェッカの仕様では、正常動作モード時にERRORを発生させないことが求められており、このように様々な正常パターンを連続して発生させることによって、十分な検証が可能となる。   The protocol checker connected to the signal path between the pseudo master 2 and the pseudo slave 3 checks whether the input REQ (4a) and ACK (4b) conform to the protocol. In the specification of the protocol checker, it is required not to generate ERROR during the normal operation mode, and by sufficiently generating various normal patterns in this way, sufficient verification can be performed.

そして、計時手段1bが、切替え時間に到達したことを検知すると、正常動作モードから異常動作モードへ切替えられる。擬似マスタ2では、選択部2dは、異常動作パターン記憶部2bを選択する。設定部2cの動作は変化しないが、トランザクション生成部2eは、選択部2dが選択した異常動作パターン記憶部2bから設定部2cの指示する領域に格納される動作パターンを読み出し、読み出した動作パターンに基づきトランザクションを発生させる。擬似スレーブ3の動作も同様である。これにより、擬似マスタ2および擬似スレーブ3間では、プロトコルに違反した動作パターンを選択してトランザクションを発生させるため、プロトコル違反のREQ(4a)およびACK(4b)がプロトコルチェッカに入力されることになる。プロトコルチェッカの仕様では、異常動作モード時は、プロトコル違反を検出してERRORを発生することが要求されており、このようにランダムに選択された異常パターンを発生させることによって、異常時の検証が可能となる。また、シナリオを単独で実行していた従来のプロトコル試験とは異なり、正常動作を継続している状態で異常動作が発生した状態を作り出すことができ、現実に即した検証を行うことが可能である。   When the time measuring means 1b detects that the switching time has been reached, the normal operation mode is switched to the abnormal operation mode. In the pseudo master 2, the selection unit 2d selects the abnormal operation pattern storage unit 2b. Although the operation of the setting unit 2c does not change, the transaction generation unit 2e reads the operation pattern stored in the area designated by the setting unit 2c from the abnormal operation pattern storage unit 2b selected by the selection unit 2d, and converts the operation pattern to the read operation pattern. Generate a transaction based on this. The operation of the pseudo slave 3 is the same. As a result, between the pseudo master 2 and the pseudo slave 3, an operation pattern that violates the protocol is selected and a transaction is generated, so that the protocol violation REQ (4 a) and ACK (4 b) are input to the protocol checker. Become. In the specification of the protocol checker, in abnormal operation mode, it is required to detect a protocol violation and generate an ERROR. By generating a randomly selected abnormality pattern in this way, verification at the time of abnormality can be performed. It becomes possible. In addition, unlike the conventional protocol test, where the scenario is executed independently, it is possible to create a state in which abnormal operation has occurred while continuing normal operation, and it is possible to carry out verification according to reality. is there.

一旦、ERRORとなった状態からプロトコル試験を再開するためには、プロトコルチェッカ、擬似マスタ2および擬似スレーブ3をリセットすることが必要である。そこで、制御手段1aにリセット機能を付加し、ERROR後にリセットを行うようにすれば、連続してプロトコル試験を行うことができる。   In order to restart the protocol test from the state where the error is once set, it is necessary to reset the protocol checker, the pseudo master 2 and the pseudo slave 3. Therefore, if a reset function is added to the control means 1a and reset is performed after ERROR, protocol tests can be continuously performed.

このように、正常動作パターンおよび異常動作パターンを含む任意の動作パターンを任意の間隔で繰り返し発生させることができるため、プロトコルに応じて想定される様々なパターンのプロトコル試験を容易に実行することができ、十分な検証を行うことが可能となる。   As described above, since any operation pattern including a normal operation pattern and an abnormal operation pattern can be repeatedly generated at an arbitrary interval, it is possible to easily execute protocol tests of various patterns assumed according to the protocol. It is possible to perform sufficient verification.

さらに、どのようなパターンでプロトコル試験を実行したかを記憶しておけば、プロトコル試験装置で発生可能な全試験パターンがどの程度実行されたかを定量的に測定することができる。以下の説明では、このような測定をプロトコルカバレッジとする。   Furthermore, by storing the pattern in which the protocol test is executed, it is possible to quantitatively measure how much all the test patterns that can be generated by the protocol test apparatus have been executed. In the following description, such measurement is referred to as protocol coverage.

以下、実施の形態を、プロトコルチェッカの試験に適用した場合を例に図面を参照して詳細に説明する。プロトコルチェッカは、通信装置のプロトコル試験に適用されるので、想定されるパターンをすべて網羅して試験を行うことが望ましい。   Hereinafter, the embodiment will be described in detail with reference to the drawings, taking as an example a case where the embodiment is applied to a protocol checker test. Since the protocol checker is applied to a protocol test of a communication device, it is desirable to perform a test covering all assumed patterns.

図2は、本発明の実施の形態のプロトコルチェッカの試験構成を示した図である。
実施の形態のプロトコルチェッカの試験構成は、シミュレーション制御部11、タイマ12、リセット部13、プロトコルカバレッジ測定部14、擬似マスタ20および擬似スレーブ30を具備するプロトコル試験装置にプロトコルチェッカ40が接続する構成をとる。
FIG. 2 is a diagram illustrating a test configuration of the protocol checker according to the embodiment of this invention.
The test configuration of the protocol checker according to the embodiment is a configuration in which the protocol checker 40 is connected to a protocol test apparatus including a simulation control unit 11, a timer 12, a reset unit 13, a protocol coverage measurement unit 14, a pseudo master 20, and a pseudo slave 30. Take.

シミュレーション制御部11は、プロトコルチェッカ40からERROR、およびプロトコルカバレッジ測定部14からプロトコル試験のカバレッジ状況を取得し、タイマ12およびリセット部13に指示を与えることによって、擬似マスタ20に通信マスタおよび擬似スレーブ30に通信スレーブの動作をシミュレートさせ、プロトコル試験全体を制御する。   The simulation control unit 11 acquires the error status of the protocol test from the protocol checker 40 and the coverage status of the protocol test from the protocol coverage measurement unit 14, and gives instructions to the timer 12 and the reset unit 13, thereby giving the pseudo master 20 a communication master and a pseudo slave. 30 controls the operation of the communication slave and controls the entire protocol test.

タイマ12は、シミュレーション制御部11が設定した切替え時間を計時し、切替え時間が経過したタイマ設定時刻になると、動作モードの切替え指示を出力する。
リセット部13は、シミュレーション制御部11から指示されると、プロトコルチェッカ40、擬似マスタ20および擬似スレーブ30を初期化する。
The timer 12 measures the switching time set by the simulation control unit 11 and outputs an operation mode switching instruction when the timer setting time at which the switching time has elapsed is reached.
When instructed by the simulation control unit 11, the reset unit 13 initializes the protocol checker 40, the pseudo master 20, and the pseudo slave 30.

プロトコルカバレッジ測定部14は、REQおよびACKを監視し、擬似マスタ20および擬似スレーブ30が有する正常動作パターン、異常動作パターンおよび動作パターンの間隔の組み合わせなど、プロトコル試験によってカバーされる全試験パターンのうち、どれが実行されたかをチェックし、プロトコルカバレッジを定量的に計測する。   The protocol coverage measurement unit 14 monitors REQ and ACK, and includes all the test patterns covered by the protocol test, such as combinations of normal operation patterns, abnormal operation patterns, and operation pattern intervals that the pseudo master 20 and the pseudo slave 30 have. , Check which one was executed and measure protocol coverage quantitatively.

擬似マスタ20は、図1の擬似マスタ2と同様であり、通信マスタとして、正常動作モード時は正常動作パターン記憶部に格納される正常動作パターンに基づきトランザクションを発生し、異常動作モード時は異常動作パターン記憶部に格納される異常動作パターンに基づきトランザクションを発生させる。選択される動作パターンおよび動作パターンと動作パターンの実行間隔は、ランダムに選択される。擬似スレーブ30は、図1の擬似スレーブ3と同様であり、通信スレーブとして、正常動作パターンおよび異常動作パターンに基づきトランザクションを発生させる。   The pseudo master 20 is the same as the pseudo master 2 of FIG. 1, and as a communication master, generates a transaction based on the normal operation pattern stored in the normal operation pattern storage unit in the normal operation mode, and abnormal in the abnormal operation mode. A transaction is generated based on the abnormal operation pattern stored in the operation pattern storage unit. The selected operation pattern and the operation pattern and the execution interval of the operation pattern are selected at random. The pseudo slave 30 is the same as the pseudo slave 3 in FIG. 1 and generates a transaction based on a normal operation pattern and an abnormal operation pattern as a communication slave.

プロトコルチェッカ40は、擬似マスタ20のREQおよび擬似スレーブ30のACKを入力し、それぞれの信号がプロトコルに適合しているかどうかをチェックする。そして、プロトコル違反を検出した場合には、ERRORを発生させ、シミュレーション制御部11へ出力する。また、リセット部13から出力されるリセット信号によって、リセット処理を行う。   The protocol checker 40 inputs the REQ of the pseudo master 20 and the ACK of the pseudo slave 30 and checks whether each signal conforms to the protocol. When a protocol violation is detected, ERROR is generated and output to the simulation control unit 11. Further, a reset process is performed by a reset signal output from the reset unit 13.

このような構成によるプロトコルチェッカの試験方法について説明する。
図3は、本発明の実施の形態のプロトコルチェッカの試験方法を示したフローチャートである。
A test method for the protocol checker having such a configuration will be described.
FIG. 3 is a flowchart showing a protocol checker test method according to the embodiment of the present invention.

予め、正常動作時の動作を規定する正常動作パターンと、異常動作時の動作を規定する異常動作パターンを記憶部に格納し、切替え時間をタイマ12に設定して、プロトコルチェッカ40の試験が開始される。   The normal operation pattern that prescribes the operation at the time of normal operation and the abnormal operation pattern that prescribes the operation at the time of abnormal operation are stored in the storage unit, the switching time is set in the timer 12, and the test of the protocol checker 40 starts. Is done.

[ステップS01] 試験対象のプロトコルチェッカ40をリセット部13によりリセットする。これにより、プロトコルチェッカ40は、初期状態に戻る。
[ステップS02] プロトコルチェッカ40とともに擬似マスタ20および擬似スレーブ30もリセットされ、動作モードは正常動作モードに戻っている。そこで、擬似マスタ20および擬似スレーブ30は、正常動作モード記憶部に格納される正常動作モードに基づき、プロトコルに適合したトランザクションを発生させる。
[Step S01] The reset unit 13 resets the protocol checker 40 to be tested. As a result, the protocol checker 40 returns to the initial state.
[Step S02] The pseudo master 20 and the pseudo slave 30 are reset together with the protocol checker 40, and the operation mode returns to the normal operation mode. Therefore, the pseudo master 20 and the pseudo slave 30 generate a transaction conforming to the protocol based on the normal operation mode stored in the normal operation mode storage unit.

[ステップS03] プロトコルチェッカ40がERRORを出力していないかどうかをチェックする。以下、プロトコルチェッカがERROR出力することを発火と言う。正常動作モードで動作しているので、プロトコルに適合するトランザクションのみが発生している状態であり、プロトコルチェッカ40が正常であれば発火しない。ERRORを検出した場合は、プロトコルチェッカ40の誤作動と判断し、処理をステップS09へ進める。   [Step S03] It is checked whether or not the protocol checker 40 is outputting ERROR. Hereinafter, the fact that the protocol checker outputs ERROR is called firing. Since the operation is performed in the normal operation mode, only a transaction that conforms to the protocol is generated. If ERROR is detected, it is determined that the protocol checker 40 has malfunctioned, and the process proceeds to step S09.

[ステップS04] ERRORを検出しない場合、プロトコルチェッカ40は誤作動していないと判断できる。タイマ12の状態を調べ、異常動作モードへ切替えるタイマ設定時刻に到達したかどうかを判定する。タイマ設定時刻に到達していない場合は、処理をステップS02に戻し、次のトランザクション処理を行う。   [Step S04] If ERROR is not detected, it can be determined that the protocol checker 40 is not malfunctioning. The state of the timer 12 is checked, and it is determined whether or not the timer set time for switching to the abnormal operation mode has been reached. If the timer set time has not been reached, the process returns to step S02 to perform the next transaction process.

[ステップS05] タイマ設定時刻に到達していた場合、正常動作モードを異常動作モードに切替える。異常動作モード時には、擬似マスタ20および擬似スレーブ30は、異常動作モード記憶部に格納される異常動作モードに基づき、プロトコルに違反したトランザクションを発生させる。   [Step S05] When the timer set time has been reached, the normal operation mode is switched to the abnormal operation mode. In the abnormal operation mode, the pseudo master 20 and the pseudo slave 30 generate a transaction that violates the protocol based on the abnormal operation mode stored in the abnormal operation mode storage unit.

[ステップS06] プロトコルチェッカ40が発火していないかどうかをチェックする。異常動作モードで動作しているので、プロトコルに違反するトランザクションのみが発生している状態であり、プロトコルチェッカ40が正常であれば発火する。ERRORを検出しなかった場合は、プロトコルチェッカ40の誤作動と判断し、処理をステップS09へ進める。   [Step S06] It is checked whether or not the protocol checker 40 has fired. Since the operation is in the abnormal operation mode, only a transaction that violates the protocol is generated. If the protocol checker 40 is normal, the transaction is fired. If ERROR is not detected, it is determined that the protocol checker 40 has malfunctioned, and the process proceeds to step S09.

[ステップS07] ERRORを検出した場合、プロトコルチェッカ40は誤作動していないと判断できる。プロトコルカバレッジを調べ、100%に達したかどうかを判定する。100%に達していない場合、すなわち、全試験項目が終了していない場合、ステップS01に戻って、試験手順を繰り返す。   [Step S07] When ERROR is detected, it can be determined that the protocol checker 40 is not malfunctioning. Examine the protocol coverage and determine if it has reached 100%. If it has not reached 100%, that is, if all the test items have not been completed, the process returns to step S01 and the test procedure is repeated.

[ステップS08] プロトコルカバレッジが100%に達していた場合、全試験項目を通して正常に動作したと判断され、プロトコルチェッカ40の正常の判定結果を出力し、処理を終了する。   [Step S08] When the protocol coverage has reached 100%, it is determined that the operation is normal through all the test items, the normal determination result of the protocol checker 40 is output, and the process ends.

[ステップS09] 正常動作モード時に発火、もしくは、異常動作モード時に発火しないという誤作動をしたので、プロトコルチェッカ40が異常の判定結果を出力して処理を終了する。   [Step S09] Since a malfunction has occurred in which fire does not occur in the normal operation mode or fire does not occur in the abnormal operation mode, the protocol checker 40 outputs an abnormality determination result and ends the process.

このように、本実施の形態によれば、正常動作モードでは、プロトコルチェッカが発火しないかどうかを常に監視し、発火した場合には、プロトコルチェッカ誤作動としてプロトコル試験を終了する。一方、異常動作モード時は、プロトコルチェッカが発火するかどうかを監視し、もし発火しなければプロトコルチェッカ誤作動としてプロトコル試験を終了する。これらの正常動作および異常動作は、プロトコルカバレッジが100%に達するまで繰り返されるので、プロトコルチェッカの十分な評価が可能となる。   Thus, according to the present embodiment, in the normal operation mode, it is always monitored whether or not the protocol checker is ignited, and if it is ignited, the protocol test is terminated as a protocol checker malfunction. On the other hand, in the abnormal operation mode, it is monitored whether or not the protocol checker is ignited, and if it is not ignited, the protocol test is terminated as a protocol checker malfunction. Since these normal operation and abnormal operation are repeated until the protocol coverage reaches 100%, the protocol checker can be sufficiently evaluated.

以下、それぞれの処理の詳細を順に説明する。
まず、実施の形態で使用される正常動作パターンと異常動作パターンについて説明する。擬似マスタ20および擬似スレーブ30は、正常動作モード時には正常動作パターン、異常動作モード時には異常動作パターンに従ってトランザクションを発生させる。
Hereinafter, details of each process will be described in order.
First, normal operation patterns and abnormal operation patterns used in the embodiment will be described. The pseudo master 20 and the pseudo slave 30 generate a transaction according to the normal operation pattern in the normal operation mode and according to the abnormal operation pattern in the abnormal operation mode.

図4は、本発明の実施の形態の正常動作パターンを示した図である。なお、実施の形態のプロトコル仕様は、図13の(1)に示したプロトコル仕様と同様に、マスタは、「REQをACKがアサートされるまでアサートし、ACKがアサートされたら次サイクルでディアサートする」、スレーブは、「REQがアサートされたら4サイクル以内にACKをアサートし、次サイクルでディアサートする」こととする。   FIG. 4 is a diagram showing a normal operation pattern according to the embodiment of the present invention. The protocol specification of the embodiment is the same as the protocol specification shown in (1) of FIG. 13, the master asserts “REQ is asserted until ACK is asserted, and deasserts in the next cycle when ACK is asserted. The slave “asserts ACK within 4 cycles when REQ is asserted and deasserts in the next cycle”.

正常動作モード時は、擬似マスタ20および擬似スレーブ30は、正常動作パターンa(101)に従って上記プロトコルに適合する動作を行う。さらに、この正常動作パターンに対し、図に示したように、REQがアサートされてからACKがアサートされるまでのサイクル数のバリエーションを用意し、パターン1は1サイクル後、パターン2は2サイクル後、パターン3は3サイクル後、そしてパターン4は4サイクル後にACKがアサートされる。これら正常動作パターンは、正常動作パターン記憶部に格納される。   In the normal operation mode, the pseudo master 20 and the pseudo slave 30 perform an operation conforming to the protocol according to the normal operation pattern a (101). Furthermore, for this normal operation pattern, as shown in the figure, a variation of the number of cycles from when REQ is asserted to when ACK is asserted is prepared. Pattern 1 is after 1 cycle, Pattern 2 is after 2 cycles Pattern 3 is asserted after 3 cycles and Pattern 4 is asserted after 4 cycles. These normal operation patterns are stored in the normal operation pattern storage unit.

図5は、本発明の実施の形態の異常動作パターンを示した図である。
実施の形態の例では、異常動作モード時、異常動作パターンA(102)から異常動作パターンE(106)の5種類の異常動作パターンがある。異常動作パターンA(102)は、「ACKがアサートされる前に、REQがディアサートされるパターン」で、REQがアサートからディアサートするまでのサイクル数が4パターン用意されている。異常動作パターンB(103)は、「ACKがアサートされても、REQがディアサートされないパターン」で、ACKディアサート後、REQがディアサートされるまでのサイクル数が4パターン用意されている。異常動作パターンC(104)は、「REQがアサートされる前に、ACKがアサートされるパターン」で、ACKアサート後、REQがアサートするまでのサイクル数が4パターン用意されている。異常動作パターンD(105)は、「REQがアサートされても、4サイクル以内にACKがアサートされないパターン」で、REQがアサートされてからACKがアサートされるまでのサイクル数が4パターン用意されている。異常動作パターンE(106)は、「ACKがアサートされた後、次サイクルでACKがディアサートされないパターン」で、ACKがアサートされてからACKがディアサートするまでのサイクル数が4パターン用意されている。これらは、異常動作パターン記憶部に格納される。
FIG. 5 is a diagram showing an abnormal operation pattern according to the embodiment of the present invention.
In the example of the embodiment, there are five types of abnormal operation patterns from the abnormal operation pattern A (102) to the abnormal operation pattern E (106) in the abnormal operation mode. The abnormal operation pattern A (102) is “a pattern in which REQ is deasserted before ACK is asserted”, and four patterns are prepared for the number of cycles until REQ is asserted. The abnormal operation pattern B (103) is “a pattern in which REQ is not deasserted even if ACK is asserted”, and four patterns are prepared for the number of cycles after ACK is deasserted until REQ is deasserted. The abnormal operation pattern C (104) is “a pattern in which ACK is asserted before REQ is asserted”, and four cycles are prepared after ACK is asserted until REQ is asserted. The abnormal operation pattern D (105) is “a pattern in which ACK is not asserted within 4 cycles even when REQ is asserted”, and four patterns of cycles from when REQ is asserted until ACK is asserted are prepared. Yes. The abnormal operation pattern E (106) is “a pattern in which ACK is not deasserted in the next cycle after ACK is asserted”, and four patterns of cycles from when ACK is asserted until ACK is deasserted are prepared. Yes. These are stored in the abnormal operation pattern storage unit.

なお、上記の実施の形態では、動作パターンのバリエーションを1つの動作パターンについてサイクル数を各4パターンに限定したが、パターン数を拡張することにより、さらに品質を高めた評価を行うことができる。また、サイクル数に応じたパターンのバリエーションは、元の動作パターンから自動で展開されるようにすることもできる。これにより、動作パターン作成の手間を削減することができる。この処理は、プロトコル試験装置内で行ってもよいし、外部装置が行ってもよい。   In the above embodiment, the number of cycles for each operation pattern is limited to four for each operation pattern. However, evaluation with higher quality can be performed by expanding the number of patterns. Moreover, the pattern variation according to the number of cycles can be automatically developed from the original operation pattern. As a result, it is possible to reduce the trouble of creating an operation pattern. This process may be performed in the protocol test apparatus or an external apparatus.

以上の正常動作パターンおよび異常動作パターンが格納され、記憶部に格納される。なお、実施の形態の動作パターンは、マスタとスレーブ共通であるので、擬似マスタ20および擬似スレーブ30の記憶部を共通とすることができる。   The above normal operation pattern and abnormal operation pattern are stored and stored in the storage unit. Since the operation pattern of the embodiment is common to the master and the slave, the storage units of the pseudo master 20 and the pseudo slave 30 can be made common.

次にタイマ設定(ステップS02)について説明する。タイマ設定では、タイマ12に任意の切替え時間を設定する。切替え時間は、ユーザが設定する任意の時間であってもよいし、ランダムに設定されてもよい。   Next, timer setting (step S02) will be described. In the timer setting, an arbitrary switching time is set in the timer 12. The switching time may be an arbitrary time set by the user or may be set at random.

タイマ12と正常動作モードと異常動作モードの切替えの関係について説明する。図6は、本発明の実施の形態の動作モードの遷移を示した図である。
リセット203が行われると、擬似マスタ20、擬似スレーブ30およびプロトコルチェッカ40が初期化され、正常動作モード201で動作を開始する。また、タイマ12のカウンタも初期化され、切替え時間205の計時を開始する。正常動作モード201の間は、プロトコルに適合するトランザクションが繰り返し発生され、プロトコルチェッカ40が誤動作して発火しないかどうかが調べられる。
The relationship between the timer 12, the normal operation mode, and the abnormal operation mode will be described. FIG. 6 is a diagram showing transition of the operation mode according to the embodiment of the present invention.
When the reset 203 is performed, the pseudo master 20, the pseudo slave 30, and the protocol checker 40 are initialized, and the operation starts in the normal operation mode 201. In addition, the counter of the timer 12 is also initialized and starts measuring the switching time 205. During the normal operation mode 201, a transaction conforming to the protocol is repeatedly generated, and it is checked whether the protocol checker 40 malfunctions and fires.

リセット203時点から切替え時間205が経過し、タイマ設定時刻204に到達すると、動作モードは異常動作モード202に切替えられる。異常動作モード202の間は、プロトコルに違反するトランザクションが発生され、プロトコルチェッカ40がプロトコル違反を検出して発火するかどうかが調べられる。   When the switching time 205 elapses from the reset 203 time point and the timer setting time 204 is reached, the operation mode is switched to the abnormal operation mode 202. During the abnormal operation mode 202, a transaction that violates the protocol is generated, and it is checked whether the protocol checker 40 detects the protocol violation and fires.

そして、再びリセット203が発生すると、正常動作モード201に戻り、タイマ12による計時が開始される。
このように、プロトコル試験装置は、リセット203で正常動作モード201に遷移し、タイマ設定時刻204で異常動作モード202に遷移するという状態遷移を繰り返す。
When the reset 203 is generated again, the normal operation mode 201 is resumed and the timer 12 starts counting.
As described above, the protocol test apparatus repeats the state transition of transitioning to the normal operation mode 201 at the reset 203 and transitioning to the abnormal operation mode 202 at the timer setting time 204.

次に、正常動作モード(ステップS03)処理について説明する。図7は、本発明の実施の形態の正常動作モード時のトランザクションを示した波形図である。
正常動作モード時には、正常動作パターン記憶部に格納される正常動作パターンのうち、設定部がランダムに選択する任意のパターンが読み出されて実行される。また、正常動作パターンと次の正常動作パターンとの間の実行間隔も設定部によってランダムに設定される。図の例では、図4に示した正常動作パターンのうち、パターン2(a−2)「REQがアサートされたら、2サイクル後にACKがアサートする」が選択されて実行される。また、次の正常動作パターンには、パターン1(a−1)が選択されて実行されている。そして、正常動作パターンa−2と、次の正常動作パターンa−1との間の実行間隔210として、1サイクルが設定されている。
Next, the normal operation mode (step S03) process will be described. FIG. 7 is a waveform diagram showing a transaction in the normal operation mode according to the embodiment of the present invention.
In the normal operation mode, out of normal operation patterns stored in the normal operation pattern storage unit, an arbitrary pattern randomly selected by the setting unit is read and executed. The execution interval between the normal operation pattern and the next normal operation pattern is also set at random by the setting unit. In the example shown in the figure, among the normal operation patterns shown in FIG. 4, pattern 2 (a-2) “If REQ is asserted, ACK is asserted after two cycles” is selected and executed. Further, pattern 1 (a-1) is selected and executed as the next normal operation pattern. One cycle is set as the execution interval 210 between the normal operation pattern a-2 and the next normal operation pattern a-1.

このように、正常動作モード時は、ランダムに設定されるポインタに従って読み出される正常動作パターンが、同じくランダムに設定される実行間隔を空けて次々に実行される。これにより、様々な正常動作パターンを用いて正常動作時のプロトコルチェッカを検証することが可能となる。   In this way, in the normal operation mode, normal operation patterns read according to randomly set pointers are executed one after another with the same execution interval set at random. This makes it possible to verify the protocol checker during normal operation using various normal operation patterns.

次に、異常動作モード(ステップS05)処理について説明する。図8は、本実施の形態の正常動作モード時から異常動作モード時に遷移する際のトランザクションを示した波形図である。   Next, the abnormal operation mode (step S05) process will be described. FIG. 8 is a waveform diagram showing a transaction when transitioning from the normal operation mode to the abnormal operation mode according to the present embodiment.

一旦、異常が発生すると、動作を正しく再開させるためには、擬似マスタ20、擬似スレーブ30およびプロトコルチェッカ40ともリセットをする必要がある。したがって、異常動作モードについては、正常動作モード時のパターン実行と、異常動作モード時のパターン実行との実行間隔がランダムに設定される。図の例では、正常動作モード時に、正常動作パターンa−1が実行され、異常動作モードに遷移してから異常動作Bのパターン1(B−1)が実行される。そして、正常動作パターンa−1と異常動作パターンB−1との間の実行間隔220として、2サイクルが設定されている。   Once an abnormality occurs, it is necessary to reset the pseudo master 20, the pseudo slave 30, and the protocol checker 40 in order to resume the operation correctly. Therefore, for the abnormal operation mode, the execution interval between the pattern execution in the normal operation mode and the pattern execution in the abnormal operation mode is set at random. In the example shown in the figure, the normal operation pattern a-1 is executed in the normal operation mode, and after transitioning to the abnormal operation mode, the pattern 1 (B-1) of the abnormal operation B is executed. Two cycles are set as the execution interval 220 between the normal operation pattern a-1 and the abnormal operation pattern B-1.

タイマ12による異常動作モードへ切替えるタイマ設定時刻は、トランザクション処理の実行状態とは関係なく設定される。このため、タイマ設定時刻では、正常動作モード時の一連のトランザクションが終了しているという保証はない。そこで、正常動作パターンから異常動作パターンの実行間隔を設定しておき、これに従ってトランザクション発生タイミングを決めることにより、正常動作パターンのトランザクションが正しく終了してから、異常動作パターンのトランザクションを発生させることができる。   The timer setting time for switching to the abnormal operation mode by the timer 12 is set regardless of the execution state of the transaction process. For this reason, at the timer setting time, there is no guarantee that a series of transactions in the normal operation mode has been completed. Therefore, by setting the execution interval of the abnormal operation pattern from the normal operation pattern and determining the transaction generation timing according to this, the transaction of the abnormal operation pattern can be generated after the transaction of the normal operation pattern is correctly completed. it can.

次に、カバレッジ(ステップS07)処理について説明する。
プロトコルカバレッジは、実行可能な全試験パターンのうち、どの程度の試験パターンが終了したのかを示す試験網羅度であり、
プロトコルカバレッジ=(実行数/全件数)×100
によって表される。実行数は、既に実行された試験パターン数であり、全件数は、実行可能な全試験パターン数である。実施の形態における試験パターンとは、動作パターンと、その動作パターンの後に実行される動作パターンと、その実行間隔を組み合わせた試験項目を指す。具体例を挙げて説明する。
Next, the coverage (step S07) process will be described.
Protocol coverage is the degree of test coverage that indicates how many of the test patterns that can be executed have been completed.
Protocol coverage = (number of executions / total number) x 100
Represented by The number of executions is the number of test patterns already executed, and the total number is the total number of test patterns that can be executed. The test pattern in the embodiment refers to a test item that combines an operation pattern, an operation pattern executed after the operation pattern, and an execution interval thereof. A specific example will be described.

図9は、本発明の実施の形態のプロトコルカバレッジ測定用テーブル(正常/正常)を示した図である。パターン(前)は、前に実行されるパターンを示し、パターン(後)は、パターン(前)が終了してからパターンの実行間隔後に続いて実行されるパターンを示す。   FIG. 9 is a diagram showing a protocol coverage measurement table (normal / normal) according to the embodiment of this invention. The pattern (front) indicates a pattern that is executed before, and the pattern (after) indicates a pattern that is subsequently executed after a pattern execution interval after the pattern (front) ends.

プロトコルカバレッジ測定用テーブル(正常/正常)111は、図4に示した正常動作パターンa(101)が実行される場合のプロトコルカバレッジ測定用テーブルの例である。ここで、a−1は、正常動作パターンa(101)における「a.正常動作パターン」のバリエーション1「REQがアサートされたら、1サイクル後にACKがアサートする」であることを示している。以下、同様である。プロトコルカバレッジ測定用テーブル(正常/正常)101には、正常動作パターンa−1、a−2、a−3、a−4と、実行間隔1サイクル、2サイクル、3サイクルおよび4サイクルのすべての組み合わせが設定されている。プロトコルカバレッジ測定部14では、トランザクションを監視し、トランザクションに対応するテーブルの欄にフラグをセットしていく。たとえば、正常動作パターンa−2、実行間隔3サイクル、次の正常動作パターンa−4が選択されれば、該当する欄(図の●の位置)にフラグをセットする。   The protocol coverage measurement table (normal / normal) 111 is an example of a protocol coverage measurement table when the normal operation pattern a (101) shown in FIG. 4 is executed. Here, a-1 indicates that variation 1 of “a. Normal operation pattern” in the normal operation pattern a (101) is “ACK is asserted after one cycle when REQ is asserted”. The same applies hereinafter. The protocol coverage measurement table (normal / normal) 101 includes all normal operation patterns a-1, a-2, a-3, a-4 and execution intervals 1 cycle, 2 cycles, 3 cycles and 4 cycles. A combination is set. The protocol coverage measurement unit 14 monitors the transaction and sets a flag in the table column corresponding to the transaction. For example, if a normal operation pattern a-2, an execution interval of 3 cycles, and the next normal operation pattern a-4 are selected, a flag is set in the corresponding column (position ● in the figure).

このようにして設定されたフラグが全体の件数に占める割合を算出すれば、プロトコルカバレッジを算出することができる。
図10は、本発明の実施の形態のプロトコルカバレッジ測定用テーブル(正常/異常)を示した図である。プロトコルカバレッジ測定用テーブルの構成は、後に実行される動作パターンが異常動作パターンであることを除いて図9の場合と同様であるので同じ部分の説明は省略する。
By calculating the ratio of the set flag to the total number of cases, the protocol coverage can be calculated.
FIG. 10 is a diagram showing a protocol coverage measurement table (normal / abnormal) according to the embodiment of this invention. The configuration of the protocol coverage measurement table is the same as in the case of FIG. 9 except that the operation pattern to be executed later is an abnormal operation pattern, so the description of the same part is omitted.

プロトコルカバレッジ測定用テーブル(正常/異常)112は、図4に示した正常動作パターンa(101)が実行された後、図5に示した異常動作パターンA、B、C、D、Eの各パターンが実行される場合のプロトコルカバレッジ測定用テーブルの例である。プロトコルカバレッジ測定部14では、トランザクションを監視し、トランザクションに対応するテーブルの欄にフラグをセットしていく。   The protocol coverage measurement table (normal / abnormal) 112 stores each of the abnormal operation patterns A, B, C, D, and E shown in FIG. 5 after the normal operation pattern a (101) shown in FIG. 4 is executed. It is an example of the table for protocol coverage measurement when a pattern is executed. The protocol coverage measurement unit 14 monitors the transaction and sets a flag in the table column corresponding to the transaction.

カバレッジ処理では、このようにして設定されたフラグから算出されるプロトコルカバレッジが100%に達したか否かをチェックし、すべての試験パターンが実行されるまでプロトコル試験を自動的に繰り返す。プロトコルカバレッジが100%(すべての欄が埋まる)に達すれば、プロトコルチェッカの正当性が定量的に保証されることになる。   In the coverage process, it is checked whether or not the protocol coverage calculated from the flag set in this way has reached 100%, and the protocol test is automatically repeated until all test patterns are executed. If the protocol coverage reaches 100% (all fields are filled), the validity of the protocol checker is quantitatively guaranteed.

このように、本実施の形態では、プロトコルチェッカの十分な評価が可能となる。
なお、擬似マスタと試験対象の実際のスレーブを接続したり、試験対象の実際のマスタと擬似スレーブを接続することによって、擬似マスタ/擬似スレーブの正常動作・異常動作時における実スレーブ/実マスタの振る舞いを確認することも可能になる。特に、擬似マスタ/擬似スレーブの異常動作時に実スレーブ/実マスタがハングアップしないことを確認することは、実マスタ/実スレーブの検証における重要な試験項目となる。
As described above, in this embodiment, the protocol checker can be sufficiently evaluated.
By connecting the pseudo master and the actual slave to be tested, or connecting the actual master to be tested and the pseudo slave, the real slave / real master during normal / abnormal operation of the pseudo master / pseudo slave It is also possible to check the behavior. In particular, confirming that the real slave / real master does not hang up during the abnormal operation of the pseudo master / pseudo slave is an important test item in the verification of the real master / real slave.

なお、上記の処理機能は、コンピュータによって実現することができる。その場合、プロトコル試験装置が有すべき機能の処理内容を記述したプログラムが提供される。そのプログラムをコンピュータで実行することにより、上記処理機能がコンピュータ上で実現される。処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体としては、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリなどがある。磁気記録装置には、ハードディスク装置(HDD)、フレキシブルディスク(FD)、磁気テープなどがある。光ディスクには、DVD(Digital Versatile Disc)、DVD−RAM(Random Access Memory)、CD−ROM(Compact Disc Read Only Memory)、CD−R(Recordable)/RW(ReWritable)などがある。光磁気記録媒体には、MO(Magneto-Optical disk)などがある。   The above processing functions can be realized by a computer. In that case, a program describing the processing contents of the functions that the protocol test apparatus should have is provided. By executing the program on a computer, the above processing functions are realized on the computer. The program describing the processing contents can be recorded on a computer-readable recording medium. Examples of the computer-readable recording medium include a magnetic recording device, an optical disk, a magneto-optical recording medium, and a semiconductor memory. Examples of the magnetic recording device include a hard disk device (HDD), a flexible disk (FD), and a magnetic tape. Examples of the optical disc include a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD-ROM (Compact Disc Read Only Memory), and a CD-R (Recordable) / RW (ReWritable). Magneto-optical recording media include MO (Magneto-Optical disk).

プログラムを流通させる場合には、たとえば、そのプログラムが記録されたDVD、CD−ROMなどの可搬型記録媒体が販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにそのプログラムを転送することもできる。   When distributing the program, for example, portable recording media such as a DVD and a CD-ROM in which the program is recorded are sold. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.

プログラムを実行するコンピュータは、たとえば、可搬型記録媒体に記録されたプログラムもしくはサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、サーバコンピュータからプログラムが転送されるごとに、逐次、受け取ったプログラムに従った処理を実行することもできる。   The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. Further, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.

(付記1) 所定のプロトコルに応じたパターンのトランザクションを発生させるプロトコル試験装置において、
試験対象装置に対し前記所定のプロトコルに適合したトランザクションを発生させる正常動作モード時の動作を規定する正常動作パターンを記憶する正常動作パターン記憶部と、前記試験対象装置に対し前記所定のプロトコルに違反するトランザクションを発生させる異常動作モード時の動作を規定する異常動作パターンを記憶する異常動作パターン記憶部と、前記正常動作モード時は前記正常動作パターン記憶部を選択し、前記異常動作モード時は前記異常動作パターン記憶部を選択する選択部と、前記選択部の選択した前記正常動作パターン記憶部または前記異常動作パターン記憶部から動作パターンを読み出し、前記動作パターンに基づきトランザクションを生成するトランザクション生成部と、を有するトランザクション発生手段と、
設定された切替え時間を計時し、前記切替え時間が経過した場合には前記正常動作モードを前記異常動作モードへ切替える計時手段と、
前記切替え時間を前記計時手段に設定するとともに、前記試験対象装置に応じて前記トランザクション発生手段を制御する制御手段と、
を具備することを特徴とするプロトコル試験装置。
(Supplementary note 1) In a protocol test apparatus that generates a transaction of a pattern according to a predetermined protocol,
A normal operation pattern storage unit for storing a normal operation pattern that defines an operation in a normal operation mode for generating a transaction conforming to the predetermined protocol for the device under test, and a violation of the predetermined protocol for the device under test An abnormal operation pattern storage unit that stores an abnormal operation pattern that defines an operation in an abnormal operation mode that generates a transaction to be performed; and the normal operation pattern storage unit in the normal operation mode; and A selection unit that selects an abnormal operation pattern storage unit; and a transaction generation unit that reads an operation pattern from the normal operation pattern storage unit selected by the selection unit or the abnormal operation pattern storage unit and generates a transaction based on the operation pattern; A transaction generating means having
Timing the set switching time, and when the switching time has elapsed, timing means for switching the normal operation mode to the abnormal operation mode;
Control means for setting the switching time in the time measuring means and controlling the transaction generating means according to the test target device;
A protocol testing apparatus comprising:

(付記2) 前記制御手段は、
前記試験対象装置が通信装置間の通信が前記プロトコルに適合するか否かを調べるプロトコルチェッカである場合は、前記トランザクション発生手段を、通信マスタの動作を実行する擬似マスタと、通信スレーブの動作を実行する擬似スレーブとして動作させる、
ことを特徴とする付記1記載のプロトコル試験装置。
(Supplementary Note 2) The control means includes:
When the device under test is a protocol checker that checks whether communication between communication devices conforms to the protocol, the transaction generation means includes a pseudo master that executes the operation of the communication master, and the operation of the communication slave. Operate as a pseudo slave to execute,
The protocol testing apparatus according to supplementary note 1, wherein:

(付記3) 前記プロトコル試験装置は、さらに、前記試験対象装置を初期化する初期化手段を有し、
前記制御手段は、前記異常動作モードへ切替わった場合には、前記初期化手段により前記試験対象装置を初期化し、所定の終了条件が成立するまで前記計時手段および前記トランザクション発生手段を繰り返し動作させる、
ことを特徴とする付記1記載のプロトコル試験装置。
(Supplementary Note 3) The protocol test apparatus further includes an initialization unit that initializes the test target apparatus.
When the control means is switched to the abnormal operation mode, the initialization means initializes the device under test, and repeatedly operates the time measuring means and the transaction generation means until a predetermined termination condition is satisfied. ,
The protocol testing apparatus according to supplementary note 1, wherein:

(付記4) 前記制御手段は、
前記トランザクション発生手段が実行した前記トランザクションを監視し、既に実行された前記トランザクションが、前記トランザクション発生手段が発生可能な全試験パターンに占める割合を算出して測定される試験網羅度によって、前記全試験パターンが実行されたことが検出されたことを前記所定の終了条件とすることを特徴とする付記3記載のプロトコル試験装置。
(Supplementary Note 4) The control means includes
The transactions executed by the transaction generation means are monitored, and the total test is performed according to the test coverage measured by calculating the ratio of the already executed transactions to the total test patterns that can be generated by the transaction generation means. 4. The protocol test apparatus according to appendix 3, wherein the predetermined end condition is that the execution of the pattern is detected.

(付記5) 前記制御手段は、
プロトコル試験を繰り返すごとに、前記切替え時間をランダムに設定することを特徴とする付記3記載のプロトコル試験装置。
(Supplementary Note 5) The control means includes:
The protocol test apparatus according to appendix 3, wherein the switching time is set at random each time the protocol test is repeated.

(付記6) 前記トランザクション発生手段は、
前記正常動作パターン記憶部および前記異常動作パターン記憶部から前記トランザクション生成部が読み出す前記正常動作パターンおよび前記異常動作パターンの格納領域を指示する読み出しポインタと、前記トランザクション生成部が読み出した前記動作パターンに基づき前記トランザクションを生成した後、次に読み出した前記動作パターンに基づき前記トランザクションを生成するまでの実行間隔をランダムに設定する設定部、
を有することを特徴とする付記1記載のプロトコル試験装置。
(Supplementary Note 6) The transaction generation means includes:
A read pointer that points to a storage area for the normal operation pattern and the abnormal operation pattern read by the transaction generation unit from the normal operation pattern storage unit and the abnormal operation pattern storage unit, and the operation pattern read by the transaction generation unit A setting unit that randomly sets an execution interval until the transaction is generated based on the operation pattern read out after the transaction is generated based on
The protocol test apparatus according to appendix 1, characterized by comprising:

(付記7) 前記設定部は、
前記正常動作パターンと次に読み出した前記正常動作パターンとの実行間隔と、前記正常動作パターンと次に読み出した前記異常動作パターンとの実行間隔をランダムに設定する、
ことを特徴とする付記6記載のプロトコル試験装置。
(Appendix 7) The setting unit
Randomly set an execution interval between the normal operation pattern and the next read normal operation pattern, and an execution interval between the normal operation pattern and the next read abnormal operation pattern.
The protocol test apparatus according to supplementary note 6, wherein:

(付記8) 前記プロトコル試験装置は、さらに、
前記トランザクション発生手段が実行した前記トランザクションを監視し、既に実行された前記トランザクションが、前記トランザクション発生手段が発生可能な全試験パターンに占める割合を算出して試験網羅度を測定する測定手段、
を有することを特徴とする付記1記載のプロトコル試験装置。
(Supplementary Note 8) The protocol test apparatus further includes:
Measuring means for monitoring the transaction executed by the transaction generation means and calculating a ratio of the already executed transactions to all test patterns that can be generated by the transaction generation means to measure test coverage;
The protocol test apparatus according to appendix 1, characterized by comprising:

(付記9) 前記測定手段は、
前記正常動作パターン記憶部に格納される前記正常動作パターンと、前記異常動作パターン記憶部に格納される前記異常動作パターンと、前記トランザクション生成部が読み出した前記動作パターンに基づき前記トランザクションを生成した後、次に読み出した前記動作パターンに基づき前記トランザクションを生成するまでの実行間隔のすべての組み合わせを前記全試験パターンとする、
ことを特徴とする付記8記載のプロトコル試験装置。
(Supplementary Note 9) The measuring means includes
After generating the transaction based on the normal operation pattern stored in the normal operation pattern storage unit, the abnormal operation pattern stored in the abnormal operation pattern storage unit, and the operation pattern read by the transaction generation unit Then, all combinations of execution intervals until the generation of the transaction based on the operation pattern that is read next are used as the all test patterns.
The protocol test apparatus according to appendix 8, wherein

(付記10) 所定のプロトコルに応じたパターンのトランザクションを発生させてプロトコル試験を行うプロトコル試験方法において、
制御手段が、試験対象装置に対し前記所定のプロトコルに適合したトランザクションを発生させる正常動作モードから前記試験対象装置に対し前記所定のプロトコルに違反するトランザクションを発生させる異常動作モードへ切替える切替え時間を計時手段に設定して前記プロトコル試験を開始し、
前記正常動作モードである場合に、トランザクション発生手段が、前記正常動作モード時の動作を規定する正常動作パターンを記憶する正常動作パターン記憶部を選択し、前記正常動作パターン記憶部から読み出した前記正常動作パターンに基づいて前記トランザクションを発生し、
前記計時手段が、設定された切替え時間を計時し、前記切替え時間が経過した場合には前記正常動作モードを前記異常動作モードへ切替え、
前記異常動作モードに切替わると、前記トランザクション発生手段が、前記異常動作モード時の動作を規定する異常動作パターンを記憶する異常動作パターン記憶部を選択し、前記異常動作パターン記憶部から読み出した前記異常動作パターンに基づいて前記トランザクションを発生する、
手順を有することを特徴とするプロトコル試験方法。
(Supplementary Note 10) In a protocol test method for performing a protocol test by generating a transaction pattern according to a predetermined protocol,
The control means counts the switching time for switching from the normal operation mode for generating a transaction conforming to the predetermined protocol to the test target device to the abnormal operation mode for generating a transaction that violates the predetermined protocol for the test target device. Set the method to start the protocol test,
When in the normal operation mode, the transaction generation means selects a normal operation pattern storage unit that stores a normal operation pattern that defines an operation in the normal operation mode, and reads the normal operation pattern read from the normal operation pattern storage unit Generate the transaction based on the behavior pattern,
The timing means counts the set switching time, and when the switching time has elapsed, switches the normal operation mode to the abnormal operation mode,
When the operation mode is switched to the abnormal operation mode, the transaction generation unit selects an abnormal operation pattern storage unit that stores an abnormal operation pattern that defines an operation in the abnormal operation mode, and the read out from the abnormal operation pattern storage unit Generating the transaction based on an abnormal behavior pattern;
A protocol test method characterized by comprising a procedure.

本発明の実施の形態に適用される発明の概念図である。It is a conceptual diagram of the invention applied to embodiment of this invention. 本発明の実施の形態のプロトコルチェッカの試験構成を示した図である。It is the figure which showed the test structure of the protocol checker of embodiment of this invention. 本発明の実施の形態のプロトコルチェッカの試験方法を示したフローチャートである。It is the flowchart which showed the test method of the protocol checker of embodiment of this invention. 本発明の実施の形態の正常動作パターンを示した図である。It is the figure which showed the normal operation | movement pattern of embodiment of this invention. 本発明の実施の形態の異常動作パターンを示した図である。It is the figure which showed the abnormal operation | movement pattern of embodiment of this invention. 本発明の実施の形態の動作モードの遷移を示した図である。It is the figure which showed the transition of the operation mode of embodiment of this invention. 本発明の実施の形態の正常動作モード時のトランザクションを示した波形図である。It is the wave form diagram which showed the transaction at the time of the normal operation mode of embodiment of this invention. 本実施の形態の正常動作モード時から異常動作モード時に遷移する際のトランザクションを示した波形図である。It is the wave form diagram which showed the transaction at the time of changing to the time of the abnormal operation mode from the time of the normal operation mode of this Embodiment. 本発明の実施の形態のプロトコルカバレッジ測定用テーブル(正常/正常)を示した図である。It is the figure which showed the table for protocol coverage measurement (normal / normal) of embodiment of this invention. 本発明の実施の形態のプロトコルカバレッジ測定用テーブル(正常/異常)を示した図である。It is the figure which showed the table for protocol coverage measurement (normal / abnormal) of embodiment of this invention. プロトコルチェッカの役割を示した図である。It is the figure which showed the role of the protocol checker. 従来のプロトコルチェッカの試験方法を示した図である。It is the figure which showed the test method of the conventional protocol checker. プロトコル仕様とプロトコル違反の一例を示した図である。It is the figure which showed an example of protocol specification and protocol violation.

符号の説明Explanation of symbols

1a 制御手段
1b 計時手段
1c トランザクション発生手段
2 擬似マスタ
2a 正常動作パターン記憶部
2b 異常動作パターン記憶部
2c 設定部(ランダム発生器)
2d 選択部
2e トランザクション生成部
3 擬似スレーブ
4a REQ
4b ACK
DESCRIPTION OF SYMBOLS 1a Control means 1b Time measuring means 1c Transaction generation means 2 Pseudo master 2a Normal operation pattern memory | storage part 2b Abnormal operation pattern memory | storage part 2c Setting part (random generator)
2d selection unit 2e transaction generation unit 3 pseudo slave 4a REQ
4b ACK

Claims (5)

所定のプロトコルに応じたパターンのトランザクションを発生させるプロトコル試験装置において、
試験対象装置に対し前記所定のプロトコルに適合したトランザクションを発生させる正常動作モード時の動作を規定する正常動作パターンを記憶する正常動作パターン記憶部と、前記試験対象装置に対し前記所定のプロトコルに違反するトランザクションを発生させる異常動作モード時の動作を規定する異常動作パターンを記憶する異常動作パターン記憶部と、前記正常動作モード時は前記正常動作パターン記憶部を選択し、前記異常動作モード時は前記異常動作パターン記憶部を選択する選択部と、前記選択部の選択した前記正常動作パターン記憶部または前記異常動作パターン記憶部から動作パターンを読み出し、前記動作パターンに基づきトランザクションを生成するトランザクション生成部と、を有するトランザクション発生手段と、
設定された切替え時間を計時し、前記切替え時間が経過した場合には前記正常動作モードを前記異常動作モードへ切替える計時手段と、
前記切替え時間を前記計時手段に設定するとともに、前記試験対象装置に応じて前記トランザクション発生手段を制御する制御手段と、
を具備することを特徴とするプロトコル試験装置。
In a protocol test apparatus that generates a transaction pattern according to a predetermined protocol,
A normal operation pattern storage unit for storing a normal operation pattern that defines an operation in a normal operation mode for generating a transaction conforming to the predetermined protocol for the device under test, and a violation of the predetermined protocol for the device under test An abnormal operation pattern storage unit that stores an abnormal operation pattern that defines an operation in an abnormal operation mode that generates a transaction to be performed; and the normal operation pattern storage unit in the normal operation mode; and A selection unit that selects an abnormal operation pattern storage unit; and a transaction generation unit that reads an operation pattern from the normal operation pattern storage unit selected by the selection unit or the abnormal operation pattern storage unit and generates a transaction based on the operation pattern; A transaction generating means having
Timing the set switching time, and when the switching time has elapsed, timing means for switching the normal operation mode to the abnormal operation mode;
Control means for setting the switching time in the time measuring means and controlling the transaction generating means according to the test target device;
A protocol testing apparatus comprising:
前記プロトコル試験装置は、さらに、前記試験対象装置を初期化する初期化手段を有し、
前記制御手段は、前記異常動作モードへ切替わった場合には、前記初期化手段により前記試験対象装置を初期化し、所定の終了条件が成立するまで前記計時手段および前記トランザクション発生手段を繰り返し動作させる、
ことを特徴とする請求項1記載のプロトコル試験装置。
The protocol test apparatus further includes an initialization unit that initializes the test target apparatus,
When the control means is switched to the abnormal operation mode, the initialization means initializes the device under test, and repeatedly operates the time measuring means and the transaction generation means until a predetermined termination condition is satisfied. ,
The protocol test apparatus according to claim 1.
前記トランザクション発生手段は、
前記正常動作パターン記憶部および前記異常動作パターン記憶部から前記トランザクション生成部が読み出す前記正常動作パターンおよび前記異常動作パターンの格納領域を指示する読み出しポインタと、前記トランザクション生成部が読み出した前記動作パターンに基づき前記トランザクションを生成した後、次に読み出した前記動作パターンに基づき前記トランザクションを生成するまでの実行間隔をランダムに設定する設定部、
を有することを特徴とする請求項1記載のプロトコル試験装置。
The transaction generation means includes
A read pointer that points to a storage area for the normal operation pattern and the abnormal operation pattern read by the transaction generation unit from the normal operation pattern storage unit and the abnormal operation pattern storage unit, and the operation pattern read by the transaction generation unit A setting unit that randomly sets an execution interval until the transaction is generated based on the operation pattern read out after the transaction is generated based on
The protocol test apparatus according to claim 1, comprising:
前記プロトコル試験装置は、さらに、
前記トランザクション発生手段が実行した前記トランザクションを監視し、既に実行された前記トランザクションが、前記トランザクション発生手段が発生可能な全試験パターンに占める割合を算出して試験網羅度を測定する測定手段、
を有することを特徴とする請求項1記載のプロトコル試験装置。
The protocol test apparatus further includes:
Measuring means for monitoring the transaction executed by the transaction generation means and calculating a ratio of the already executed transactions to all test patterns that can be generated by the transaction generation means to measure test coverage;
The protocol test apparatus according to claim 1, comprising:
所定のプロトコルに応じたパターンのトランザクションを発生させてプロトコル試験を行うプロトコル試験方法において、
制御手段が、試験対象装置に対し前記所定のプロトコルに適合したトランザクションを発生させる正常動作モードから前記試験対象装置に対し前記所定のプロトコルに違反するトランザクションを発生させる異常動作モードへ切替える切替え時間を計時手段に設定して前記プロトコル試験を開始し、
前記正常動作モードである場合に、トランザクション発生手段が、前記正常動作モード時の動作を規定する正常動作パターンを記憶する正常動作パターン記憶部を選択し、前記正常動作パターン記憶部から読み出した前記正常動作パターンに基づいて前記トランザクションを発生し、
前記計時手段が、設定された切替え時間を計時し、前記切替え時間が経過した場合には前記正常動作モードを前記異常動作モードへ切替え、
前記異常動作モードに切替わると、前記トランザクション発生手段が、前記異常動作モード時の動作を規定する異常動作パターンを記憶する異常動作パターン記憶部を選択し、前記異常動作パターン記憶部から読み出した前記異常動作パターンに基づいて前記トランザクションを発生する、
手順を有することを特徴とするプロトコル試験方法。

In a protocol test method for performing a protocol test by generating a transaction of a pattern according to a predetermined protocol,
The control means counts the switching time for switching from the normal operation mode for generating a transaction conforming to the predetermined protocol to the test target device to the abnormal operation mode for generating a transaction that violates the predetermined protocol for the test target device. Set the method to start the protocol test,
When in the normal operation mode, the transaction generation means selects a normal operation pattern storage unit that stores a normal operation pattern that defines an operation in the normal operation mode, and reads the normal operation pattern read from the normal operation pattern storage unit Generate the transaction based on the behavior pattern,
The timing means counts the set switching time, and when the switching time has elapsed, switches the normal operation mode to the abnormal operation mode,
When the operation mode is switched to the abnormal operation mode, the transaction generation unit selects an abnormal operation pattern storage unit that stores an abnormal operation pattern that defines an operation in the abnormal operation mode, and the read out from the abnormal operation pattern storage unit Generating the transaction based on an abnormal behavior pattern;
A protocol test method characterized by comprising a procedure.

JP2005340328A 2005-11-25 2005-11-25 Protocol test apparatus and protocol test method Expired - Fee Related JP4679351B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005340328A JP4679351B2 (en) 2005-11-25 2005-11-25 Protocol test apparatus and protocol test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005340328A JP4679351B2 (en) 2005-11-25 2005-11-25 Protocol test apparatus and protocol test method

Publications (2)

Publication Number Publication Date
JP2007150547A JP2007150547A (en) 2007-06-14
JP4679351B2 true JP4679351B2 (en) 2011-04-27

Family

ID=38211446

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005340328A Expired - Fee Related JP4679351B2 (en) 2005-11-25 2005-11-25 Protocol test apparatus and protocol test method

Country Status (1)

Country Link
JP (1) JP4679351B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581035A (en) * 2019-02-19 2020-08-25 睿宽智能科技有限公司 Abnormal power failure test method and equipment for storage device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05336229A (en) * 1992-06-03 1993-12-17 Nec Corp Display panel test device
JPH06244835A (en) * 1993-02-15 1994-09-02 Fujitsu Ltd Protocol testing system
JPH07312628A (en) * 1994-05-17 1995-11-28 Mitsubishi Electric Corp Serial signal transmission device
JP2002217979A (en) * 2001-01-24 2002-08-02 Fujitsu Ltd CLAD test system
JP4222248B2 (en) * 2004-04-13 2009-02-12 沖電気工業株式会社 Test method

Also Published As

Publication number Publication date
JP2007150547A (en) 2007-06-14

Similar Documents

Publication Publication Date Title
US7461312B2 (en) Digital signature generation for hardware functional test
CN113076227A (en) MCU verification method, system and terminal equipment
KR20120031960A (en) Robust memory link testing using memory controller
US20090006068A1 (en) Software executing device and co-operation method
CN119132379A (en) Storage product reliability testing method, device, equipment and storage medium
JP2007078689A (en) System-on-chip failure diagnosis apparatus and method, and system-on-chip capable of failure diagnosis
JP4187470B2 (en) Semiconductor device development support cooperation device and development support method
JP4679351B2 (en) Protocol test apparatus and protocol test method
JP4759546B2 (en) Specification defect verification system, method and program
JP2014053011A (en) Apparatus and method for generating assertion, and apparatus and method for verifying processor
US20100299129A1 (en) Mapping Between Stress-Test Systems and Real World Systems
JP2007133870A (en) Method for measuring autonomic ability of computing system, system, and computer program
JP2004038350A (en) Computer accelerated test method
CN111188782A (en) Fan redundancy test method and device and computer readable storage medium
JP2006252267A (en) Circuit for system verification
CN117131821A (en) Chip verification method, device, electronic equipment and storage medium
CN114925639A (en) Method for detecting consistency of simulation verification data of SOC (System on chip)
JP5077219B2 (en) Simulation method, simulation apparatus, and simulation program
CN114090357A (en) Hard disk performance test method and device, electronic equipment and storage medium
JP5664430B2 (en) Test apparatus, verification model development method and program
CN114662430A (en) Regression testing method, equipment and storage medium for design to be tested
CN113177388A (en) Device, system and method for testing and verifying IP (Internet protocol) core
JP2668382B2 (en) Pseudo fault generation method for testing microprograms
TW202119252A (en) Test pattern generating method and fault model generating method
CN113567829B (en) Circuit board testing method and device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080729

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080811

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101227

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110201

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110201

R150 Certificate of patent or registration of utility model

Ref document number: 4679351

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140210

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees