JPH0460435A - Automatic apparatus for verification - Google Patents

Automatic apparatus for verification

Info

Publication number
JPH0460435A
JPH0460435A JP2170312A JP17031290A JPH0460435A JP H0460435 A JPH0460435 A JP H0460435A JP 2170312 A JP2170312 A JP 2170312A JP 17031290 A JP17031290 A JP 17031290A JP H0460435 A JPH0460435 A JP H0460435A
Authority
JP
Japan
Prior art keywords
state
action
event
verification
verified
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
JP2170312A
Other languages
Japanese (ja)
Inventor
Takuya Kishimoto
卓也 岸本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba AVE 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 Toshiba Corp, Toshiba AVE Co Ltd filed Critical Toshiba Corp
Priority to JP2170312A priority Critical patent/JPH0460435A/en
Publication of JPH0460435A publication Critical patent/JPH0460435A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prepare verification data accurately and simply and to enable automatic verification of a device to be verified, by representing design specification of the device by a finite state machine model. CONSTITUTION:In the case of verification of a control board 29 of a refrigerator, for instance, first a virtual state and an internal time in an apparatus for verification are initialized. In a signal input element 13, next, an event and an action are extracted 15 and 17 respectively from data inputted from the control board 29. Then, it is verified whether or not they are a combination of an event and an action which can be generated in the current state. In the case when the event and the action which can not be generated exist, judgement is made as abnormality of verification and the process is ended. When a combination of those which can be generated is detected as the result of verification, the internal time is replaced by the time when the event and the action are generated, the virtual state is put in transition to a next state and thereby an internal state and the internal time are updated. Extractions are repeated until the data inputted to the signal input element 13 are up or until a forced end instruction is supplied from the outside.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、被検証装置が設計仕様通りに作動しているか
否かを有限状態機械モデルに基づいて検証する自動検証
装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention provides an automatic verification device that verifies whether a device to be verified is operating according to design specifications based on a finite state machine model. Regarding.

(従来の技術) 従来、被検証装置の検証を行う場合、予め検証する項目
に従ってデータを作成し、この通りに被検証装置が動作
するか否か確認している。すなわち、設定仕様書に従っ
て検証項目毎に被検証装置に供給するデータと、このデ
ータを被検証装置に供給した結果、被検証装置から出力
されるデータの期待値を時間軸に沿って作成する。それ
から、前記データを被検証装置に実際に供給し、この場
合に被検証装置から検出される出力データを前記期待値
と比較し、これにより被検証装置が設定仕様通り作動し
ているか否かを検査している。
(Prior Art) Conventionally, when verifying a device to be verified, data is created in advance according to the items to be verified, and it is confirmed whether the device to be verified operates as specified. That is, data to be supplied to the device to be verified for each verification item according to the setting specifications and expected values of data output from the device to be verified as a result of supplying this data to the device to be verified are created along the time axis. Then, the data is actually supplied to the device under test, and the output data detected from the device under test is compared with the expected value, thereby determining whether the device under test is operating according to the set specifications. It is being inspected.

第6図(a)を参照して具体的に説明する。第6図(L
)に示す被検証装置51にはスイッチ53、センサ55
、モータ57および発光ダイオード(LED)59が接
続され、これにより被検証装置51は、第6図(b)に
示す設計仕様書のように、例えば「スイッチ53が押さ
れたらモータ57を回転する」等の機能を有するものと
する。
This will be explained in detail with reference to FIG. 6(a). Figure 6 (L
) The device to be verified 51 shown in ) includes a switch 53 and a sensor 55.
, a motor 57, and a light emitting diode (LED) 59 are connected, and as a result, the device to be verified 51 is configured to, for example, "rotate the motor 57 when the switch 53 is pressed" as shown in the design specification shown in FIG. 6(b). ” and other functions.

ここで、被検証装置51に対してスイッチ53が押され
るということは、スイッチ53が接続されている端子の
信号か5ボルトから0ボルトに変化することてあり、モ
ータ57を回転させるということは、モータ57が接続
されている端子の信号を5ボルトからOボルトに変化さ
せることであるとすると、検証データ作成者は、第6図
(b)に示す設計仕様書から実際に被検証装置に入出力
される信号を考え、第6図(c)に示すような設定デー
タと期待値との関係を示すデータを作成する。
Here, pressing the switch 53 for the device to be verified 51 means that the signal at the terminal to which the switch 53 is connected changes from 5 volts to 0 volts, and rotating the motor 57 means If the purpose is to change the signal at the terminal to which the motor 57 is connected from 5 volts to O volts, the verification data creator should actually change the signal from the design specification shown in FIG. 6(b) to the device under verification. Considering the signals to be input and output, data showing the relationship between setting data and expected values as shown in FIG. 6(c) is created.

例えば、第1ステツプでスイッチ53の接続されていた
入力端子を5ボルトに初期化し、第2ステツプて同入力
端子をOボルトに変化させ、これによりスイッチ53か
押された状態を作成する。また、これらの各状態に対す
る期待値データは、第1ステツプに対してモータ57の
接続されている出力端子の電圧を5ボルトとし、第2ス
テツプで同端子の電圧を0ボルトとすれば、「スイッチ
53が押されたらモータ57を回転させる」という設計
仕様の検証データを完成することができる。
For example, in the first step, the input terminal connected to the switch 53 is initialized to 5 volts, and in the second step, the input terminal is changed to O volts, thereby creating a state in which the switch 53 is pressed. Furthermore, the expected value data for each of these states can be expressed as follows: It is possible to complete the verification data of the design specification "When the switch 53 is pressed, the motor 57 is rotated."

このような動作を行う被検証装置51を検証するために
、検証装置61が被検証装置51に第6図(a)に示す
ように接続されている。この検証装置61は、第6図(
C)に示す設定データを被検証装[51の入力端子側、
すなわち前記スイッチ53およびセンサ55が接続され
ている端子に供給する信号出力部63と、被検証装[5
1の出力端子側、すなわち前記モータ57およびLED
59が接続されている端子からの出力信号を受信する信
号入力部65と、該信号入力部65で受信した被検証装
置51からの出力信号を第6図(b)の期待値と比較す
る比較部67とから構成されている。なお、信号出力部
63を被検証装置51の入力端子側に接続する場合には
、スイッチ53およびセンサ55と被検証装置51との
間は第6図(a)に点線で示すように切り離される。
In order to verify the device to be verified 51 that performs such operations, a verification device 61 is connected to the device to be verified 51 as shown in FIG. 6(a). This verification device 61 is shown in FIG.
C) The setting data shown in
That is, the signal output unit 63 supplies the terminals to which the switch 53 and the sensor 55 are connected, and the device to be verified [5
1 output terminal side, that is, the motor 57 and the LED
A signal input unit 65 that receives an output signal from a terminal to which 59 is connected, and a comparison in which the output signal from the device to be verified 51 received by the signal input unit 65 is compared with the expected value in FIG. 6(b). 67. Note that when the signal output section 63 is connected to the input terminal side of the device to be verified 51, the switch 53 and sensor 55 and the device to be verified 51 are disconnected as shown by dotted lines in FIG. 6(a). .

このように構成されたものにおいて、信号出力部63が
第6図(b)に示す設定データを被検証装置51に供給
し、この結果の出力データを信号人力部65て受信し、
この受信した出力データを比較部67において第6図(
b)に示す期待値ブタと比較することにより、被検証装
置51が設計仕様通り作動しているか否かを検査するこ
とができる。
In the device configured in this way, the signal output section 63 supplies the setting data shown in FIG.
The received output data is sent to the comparator 67 as shown in FIG.
By comparing with the expected value shown in b), it is possible to check whether the device to be verified 51 is operating according to the design specifications.

(発明が解決しようとする課8) 上述した従来の自動検証装置においては、検証者か自ら
設計仕様を理解し解釈して検証データを作成していて、
検証者は被検証装置を詳細に知っている必要があるため
、被検証装置の開発設計者自身が検証者となって、検証
データまで作成しなければならず、本来の開発設計業務
に差し障りがあるとともに、開発設計者以外の者では適
確な検証データを作成するのが困難であるという問題が
ある。
(Issue 8 to be solved by the invention) In the conventional automatic verification device described above, the verifier himself or herself understands and interprets the design specifications to create verification data.
Since the verifier must have detailed knowledge of the device to be verified, the developer and designer of the device to be verified must also become the verifier and create the verification data, which may interfere with the original development and design work. In addition, there is a problem in that it is difficult for anyone other than the development designer to create accurate verification data.

また、設計仕様をすべて満足する検証データを作成する
ことは、非常に困難であり、検証項目が抜ける場合が多
かったり、または仮にすべての設定仕様を検証できるデ
ータを作成できても、そのデータには重複した検証デー
タが多く含まれ、この重複した多くの検証データをすべ
て検証するには、かなりの時間がかかるため、検証時間
に費やせる時間の関係から、すべての検証項目を行うこ
とは不可能であるという問題がある。
In addition, it is extremely difficult to create verification data that satisfies all design specifications, and verification items are often omitted, or even if data that can verify all setting specifications can be created, the data contains a lot of duplicated verification data, and it takes a considerable amount of time to verify all of this duplicated verification data, so it is not possible to perform all the verification items due to the amount of time that can be spent on verification. The problem is that it is possible.

更に、個人によって様々な検証データが作成され、検証
の標準化か困難であるとともに、検証データを再利用し
にくいという問題がある。
Furthermore, various types of verification data are created by individuals, making it difficult to standardize verification and making it difficult to reuse verification data.

本発明は、上記に鑑みてなされたもので、その目的とす
るところは、検証データを人手によらずに有限状態機械
モデルに基づいて適確かつ比較的簡単に作成し、被検証
装置の検証を自動的に行うことができる自動検証装置を
提供することにある。
The present invention has been made in view of the above, and its purpose is to accurately and relatively easily create verification data based on a finite state machine model without manual intervention, and to verify verification data of a device to be verified. An object of the present invention is to provide an automatic verification device that can automatically perform the following steps.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 上記目的を達成するため、本発明の自動検証装置は、被
検証装置の各部の信号から被検証装置が所定通り作動し
ているかを検証する自動検証装置であって、被検証装置
か動作開始するイベントを記憶するイベントテーブルと
、被検証装置が前記イベントによって作動するアクショ
ンを記憶するアクションテーブルと、被検証装置の設計
仕様を前記イベントテーブルおよび前記アクションテー
ブルを用いた有限状態機械モデルで表現した状態遷移テ
ーブルと、被検証装置の各部の信号を入力する信号入力
部と、該信号入力部で入力される各部の信号と前記イベ
ントテーブルに記憶されているイベントとを比較して被
検証装置に供給されるイベントを抽出するイベント抽出
部と、前記信号入力部で入力される各部の信号と前記ア
クションテーブルに記憶されているアクションとを比較
して被検証装置が行ったアクションを抽出するアクショ
ン抽出部と、前記イベント抽出部およびアクション抽出
部で抽出した情報が正しいか否かを前記遷移状態テーブ
ルからの情報に基づいて検証する検証部と、仮想の被検
証装置を作成して仮想的に被検証装置の状態を作成し、
前記検証部の結果から仮想の被検証装置を次の状態に遷
移させるオートマトン部とを有し、前記イベント抽出部
は、前記イベントテーブルの事象発生条件を状態イベン
トに変換して抽出する状態イベント抽出部と、該状態イ
ベント抽出部で抽出した状態イベントデータを記録する
状態イベントプールと、該状態イベントプールに記憶さ
れた状態イベントからイベントテーブルの事象発生条件
に従って通常イベントに再変換する状態イベント変換部
とを有し、前記アクション抽出部は、前記アクションテ
ーブルの事象発生条件を状態アクションに変換して抽出
する状態アクション抽出部と、該状態アクション抽出部
で抽出した状態アクションデータを記録する状態アクシ
ョンプールと、該状態アクションプールに記録された状
態アクションから前記アクションテーブルの事象発生条
件に従って通常アクションに再変換する状態アクション
変換部とを有することを要旨とする。
(Means for Solving the Problems) In order to achieve the above object, an automatic verification device of the present invention is an automatic verification device that verifies whether a device to be verified is operating as specified based on signals from each part of the device to be verified. an event table that stores events that cause the device to be verified to start operating; an action table that stores actions that the device to be verified performs in response to the events; and a design specification for the device to be verified using the event table and the action table. A state transition table expressed by a finite state machine model, a signal input section into which signals from each part of the device under verification are input, signals from each part inputted by the signal input part, and events stored in the event table. an event extractor that extracts events supplied to the device to be verified by comparing the an action extraction unit that extracts the performed action; a verification unit that verifies whether the information extracted by the event extraction unit and the action extraction unit is correct based on information from the transition state table; and a virtual device to be verified. to virtually create the state of the device under verification,
and an automaton section that transitions a virtual device to be verified to the next state based on the result of the verification section, and the event extraction section converts and extracts an event occurrence condition in the event table into a state event. a state event pool that records the state event data extracted by the state event extraction section; and a state event conversion section that reconverts the state events stored in the state event pool into normal events according to the event occurrence conditions of the event table. The action extraction unit includes a state action extraction unit that converts and extracts the event occurrence conditions of the action table into state actions, and a state action pool that records state action data extracted by the state action extraction unit. and a state/action conversion unit that reconverts the state/action recorded in the state/action pool into a normal action according to the event occurrence conditions of the action table.

(作用) 本発明の自動検証装置では、有限状態機械モデルに基づ
いて被検証装置の設計仕様を表現し、被検証装置の初期
状態から順次、被検証装置のイベントおよびアクション
を検出して状態を進め、最終状態まで状態を進めること
によって検証データを作成することなく、検出を行うこ
とかできるとともに、イベント/アクションテーブルの
事象発生条件を状態イベント/アクションに変換して抽
出記録し、この記録された状態イベント/アクションか
らイベント/アクションテーブルの事象発生条件に従っ
て通常イベントに再変換している。
(Operation) The automatic verification device of the present invention expresses the design specifications of the device to be verified based on a finite state machine model, and sequentially detects events and actions of the device to be verified from the initial state of the device to determine the state. Detection can be performed without creating verification data by advancing the state to the final state, and the event occurrence conditions in the event/action table are converted to state events/actions and extracted and recorded. The status event/action is reconverted to a normal event according to the event occurrence conditions in the event/action table.

(実施例) 以下、図面を用いて本発明の詳細な説明する。(Example) Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明の一実施例に係わる自動検証装置の構成
を示すブロック図である。同図に示す自動検証装置は、
被検証装置を自動的に検証するものであり、具体的には
被検証装置から既に取ってあるデータまたは被検証装置
を監視して被検証装置から取りつつあるデータが設計仕
様通りであるか否かを検証して被検証装置を検証するも
のである。
FIG. 1 is a block diagram showing the configuration of an automatic verification device according to an embodiment of the present invention. The automatic verification device shown in the figure is
It automatically verifies the device being verified, and specifically, it checks whether the data already taken from the device being verified or the data being taken from the device being verified by monitoring the device is in accordance with the design specifications. This is to verify the device to be verified.

また、この自動検証装置は、被検証装置の各動作状態と
各動作状態間の状態遷移を表現した有限状態機械モデル
に基づいて被検証装置の検証を行うものであり、有限状
態機械モデルを表現するために、被検証装置か動作開始
する引金となるイベントの種類および内容をすべて記憶
しているイベントテーブル1、該イベントテーブル1に
よって被検証装置が動作するアクションの種類および内
容をすべて記憶しているアクションテーブル3および被
検証装置の設計仕様を前記イベントテーブル1およびア
クションテーブル3を用いた有限状態機械モデルで表現
した状態遷移テーブル5を有する。
In addition, this automatic verification device performs verification of the device under verification based on a finite state machine model that expresses each operating state of the device under test and the state transition between each operating state. In order to do this, an event table 1 stores all the types and contents of events that trigger the device to be verified to start operating, and an event table 1 stores all types and contents of actions that cause the device to be verified to operate based on the event table 1. The state transition table 5 has an action table 3 representing the event table 3 and a state transition table 5 expressing the design specifications of the device to be verified by a finite state machine model using the event table 1 and the action table 3.

前記イベントテーブル1、アクションテーブル3および
状態遷移テーブル5からの情報はオートマトン部7を介
して検証部9に供給されている。
Information from the event table 1, action table 3, and state transition table 5 is supplied to the verification section 9 via the automaton section 7.

また、本自動検証装置は、被検証装置11の各部を監視
し、各部の信号を入力して記憶する信号入力部13を有
する。該信号入力部13はイベント抽出部15およびア
クション抽出部17に接続されている。イベント抽出部
15およびアクション抽出部17はそれぞれ該信号人力
部13に記憶された被検証装置11の各部の信号から被
検証装置11のイベントおよびアクションを抽出し、前
記検証部9に供給する。更に、オートマトン部7には、
検証部9で検証した結果を簡単に表示する表示部19お
よび検証部9て検証した内容を詳細に記憶するレポート
部21を有する。
The automatic verification device also includes a signal input unit 13 that monitors each part of the device to be verified 11 and inputs and stores signals from each part. The signal input section 13 is connected to an event extraction section 15 and an action extraction section 17. The event extraction section 15 and the action extraction section 17 each extract an event and an action of the device to be verified 11 from the signals of each part of the device to be verified 11 stored in the signal human power section 13, and supply them to the verification section 9. Furthermore, in the automaton part 7,
It has a display section 19 that simply displays the results verified by the verification section 9, and a report section 21 that stores details of the contents verified by the verification section 9.

前記イベント抽出部15は、信号入力部13で得たデー
タから状態事象を抽出する状態イベント抽出部15aと
、この抽出したデータを記録する状態イベントプール1
5bと、該記録したデータを再変換する状態イベント変
換部15cとから構成されている。また、前記アクショ
ン抽出部17は、信号入力部13で得たデータから状態
事象を抽出する状態アクション抽出部17aと、この抽
出したデータを記録する状態アクションプール17bと
、該記録したデータを再変換する状態アクション抽出部
17cとから構成されている。
The event extraction section 15 includes a state event extraction section 15a that extracts state events from the data obtained by the signal input section 13, and a state event pool 1 that records the extracted data.
5b, and a state/event converter 15c that reconverts the recorded data. The action extraction section 17 also includes a state action extraction section 17a that extracts state events from the data obtained by the signal input section 13, a state action pool 17b that records the extracted data, and a state action pool 17b that reconverts the recorded data. and a state/action extraction section 17c.

第2図は第1図の自動検証袋1置を部分的に詳細に示す
構成図である。同図に示すように、前記イベントテーブ
ル1、アクションテーブル3および状態遷移テーブル5
は仕様データファイル23に記憶され、表示部19およ
びレポート部21はそれぞれCRTデイスプレィ25お
よびレポートファイル27て構成されている。また、被
検証装置11は、冷蔵庫35を構成する冷蔵庫制御基板
29であり、該冷蔵庫制御基板2つの入力端子側にはセ
ンサ31が接続され、出力端子側にはコンプレッサを駆
動するモータ33が接続されている。
FIG. 2 is a partially detailed configuration diagram of the automatic verification bag 1 shown in FIG. As shown in the figure, the event table 1, action table 3, and state transition table 5
are stored in the specification data file 23, and the display section 19 and report section 21 are each composed of a CRT display 25 and a report file 27. Further, the device to be verified 11 is a refrigerator control board 29 that constitutes a refrigerator 35, and a sensor 31 is connected to the input terminal side of the two refrigerator control boards, and a motor 33 that drives a compressor is connected to the output terminal side. has been done.

前記被検証装置11を構成する冷蔵庫制御基板29は、
次の機能を有する。
The refrigerator control board 29 configuring the device to be verified 11 includes:
It has the following functions.

1、電源投入時は、室内温度が一30℃より暖かければ
コンプレッサを運転する。
1. When the power is turned on, the compressor will operate if the indoor temperature is warmer than 130℃.

2、室内温度が一20℃より暖かくなると、コンプレッ
サを運転して、室温をさげる。
2. When the indoor temperature becomes warmer than 120℃, operate the compressor to lower the room temperature.

3、室内温度が一30℃より冷えると、コンプレッサを
停止して、それ以下に室内温度を下げない。
3. When the indoor temperature gets colder than 130℃, stop the compressor and do not let the indoor temperature drop below that temperature.

4、−旦コンプレッサが停止すると、5分間は運転を再
開しない(コンプレッサ保護タイマ)。
4. Once the compressor stops operating, it will not resume operation for 5 minutes (compressor protection timer).

第2図に示す自動検証装置は、仕様データファイル23
に記憶されたイベントテーブル1、アクションテーブル
3および状態遷移テーブル5による有限状態機械モデル
に基づいて被検証装置11である冷蔵庫制御基板29の
設計仕様を表現し、これにより冷蔵庫制御基板29の初
期状態から順次、被検証装置11のイベントおよびアク
ションを検出して状態を進め、これにより検証データを
作成することなく、検証を行えるようにしたものである
。前記信号入力部13は、冷蔵庫制御基板29に人出力
されるセンサ31からのデータおよびモータ33への駆
動用データを取り込み、この信号入力部13で取り込ん
だデータから状態事象を抽出する状態イベントおよび状
態アクションをイベント抽出部15の状態イベント抽出
部15aおよびアクション抽出部17の状態アクション
抽出部17aでそ五それ抽出し、状態イベントプール1
5bおよび状態アクションプール17bにそれぞれ記録
し、この記録した状態イベントおよび状態アクションを
状態イベント変換部15cおよび状態アクション変換部
17cでそれぞれ再変換し、検証部9に供給している。
The automatic verification device shown in FIG.
The design specifications of the refrigerator control board 29, which is the device to be verified 11, are expressed based on the finite state machine model using the event table 1, action table 3, and state transition table 5 stored in Events and actions of the device to be verified 11 are sequentially detected from then on to advance the state, thereby making it possible to perform verification without creating verification data. The signal input unit 13 inputs data from the sensor 31 and drive data to the motor 33 that are output to the refrigerator control board 29, and extracts status events from the data input by the signal input unit 13. The state action is extracted by the state event extracting section 15a of the event extracting section 15 and the state action extracting section 17a of the action extracting section 17, and is stored in the state event pool 1.
5b and state action pool 17b, and the recorded state events and state actions are reconverted by state event conversion section 15c and state action conversion section 17c, respectively, and are supplied to verification section 9.

また、オートマトン部7は、イベントテーブル1、アク
ションテーブル3および状態遷移テーブル5を記憶した
仕様データファイル23から冷蔵庫制御基板29の仕様
を入力し、この入力に従って初期状態から順次検証を行
い、状態を進め、このオートマトン部7の指示により検
証部9か実際に検証を行っている。
In addition, the automaton section 7 inputs the specifications of the refrigerator control board 29 from the specification data file 23 that stores the event table 1, action table 3, and state transition table 5, and sequentially verifies the state from the initial state according to this input. The verification section 9 actually performs verification according to the instructions from the automaton section 7.

すなわち、オートマトン部7は、検証装置上で仮想の被
検証装置を作成し、仮想的に被検証装置の状態を作り、
この状態を検証部9に供給する。検証部9は、このオー
トマトン部7から供給される状態で可能なイベントおよ
びアクションを状態遷移テーブル5から取り出し、この
取り出したイベントおよびアクション情報を前記イベン
ト抽出部15およびアクション抽出部17から抽出した
情報と比較して正しいか否か検証する。そして、この検
証部9における検証が正しい場合には、オートマトン部
7は検証装置上の仮想装置を次の状態に遷移させ、この
状態で同様な検証を行い、間違っている場合には、新た
に仮想被検証装置の状態を作るようにしている。
That is, the automaton unit 7 creates a virtual device to be verified on the verification device, virtually creates the state of the device to be verified, and
This state is supplied to the verification section 9. The verification unit 9 extracts possible events and actions in the state supplied from the automaton unit 7 from the state transition table 5, and converts the extracted event and action information into information extracted from the event extraction unit 15 and action extraction unit 17. Verify whether it is correct by comparing it with. If the verification by the verification unit 9 is correct, the automaton unit 7 transitions the virtual device on the verification device to the next state and performs the same verification in this state. If the verification is incorrect, a new The state of the virtual device under verification is created.

第3図は前記冷蔵庫制御基板29の仕様を表した状態遷
移図である。同図に示すように、冷蔵庫制御基板2つは
、状態STO,STI、ST2゜Sr1.Sr1.Sr
5を有する。状態STOは電源がオンされるまで待機し
ている状態であり、状態STIは室内温度によってコン
プレッサを運転するかとうかを判定する状態であり、状
態ST2は室内温度が十分下がるまでコンプレッサを運
転している状態であり、状態ST5はコンプレッサが停
止し、コンプレッサを保護している状態であり、状態S
T4はコンプレッサ保護中に室内温度が上昇し、コンプ
レッサ保護解除時の状態であり、状態ST3はコンプレ
ッサ保護解除となり、室内温度が上がるまで待機してい
る状態である。
FIG. 3 is a state transition diagram showing the specifications of the refrigerator control board 29. As shown in the figure, the two refrigerator control boards are in the states STO, STI, ST2°Sr1. Sr1. Sr.
5. State STO is a state in which the system waits until the power is turned on, state STI is a state in which it is determined whether or not to operate the compressor based on the indoor temperature, and state ST2 is a state in which the compressor is operated until the indoor temperature falls sufficiently. State ST5 is a state in which the compressor is stopped and protected, and state ST5 is a state in which the compressor is protected.
T4 is a state when the indoor temperature rises during compressor protection and the compressor protection is released, and state ST3 is a state where the compressor protection is released and the system waits until the indoor temperature rises.

第4図(a)、(b)、(c)はそれぞれ前記イベント
テーブル1、アクションテーブル3および状態遷移テー
ブル5の一例を示す図であり、第3図の状態遷移図をも
とにして作成した仕様ブタである。第4図(a)のイベ
ントテーブル1は、第3図の遷移状態図で使用している
6つのイベント、すなわち「電源オン」、「室内温度−
30’C以上である」、[室内温度−30℃以下である
」、「室内温度−20℃以上になった」、「室内温度3
0℃以下になった」、「コンプレッサ保護タイマ終了」
を抽出し、各ID番号0,1,2,3゜4.5に対応し
て示している。また、第4図(b)のアクションテーブ
ル3は、前記状態遷移図で使用されている3つのアクシ
ョン、すなわち「コンプレッサ運転」、「コンプレッサ
停止」、「コンプレッサ保護、タイマ初期化」を抽出し
、各ID番号0,1.2に対応して示している。更に、
第4図(c)の状態遷移テーブル5は、状態の遷移を示
したもので、例えば、状態ST2において、「イベント
ID4(室内温度−30℃になった)」が発生すれば、
「アクションIDI (コンプレ・ンサ停止)」と「ア
クションID2 (コンプレ・ソサ保護タイマ初期化)
」を実行して、状態をrST5」に進めるという意味で
ある。この3つのテーブルが前記仕様データファイル2
3に記憶されている。
FIGS. 4(a), (b), and (c) are diagrams showing examples of the event table 1, action table 3, and state transition table 5, respectively, and were created based on the state transition diagram of FIG. This is a spec pig. Event table 1 in FIG. 4(a) contains the six events used in the transition state diagram in FIG.
30'C or higher", "Indoor temperature is -30°C or lower", "Indoor temperature is -20°C or higher", "Indoor temperature 3
"The temperature has dropped below 0℃", "Compressor protection timer has expired"
are extracted and shown corresponding to each ID number 0, 1, 2, 3°4.5. In addition, the action table 3 in FIG. 4(b) extracts the three actions used in the state transition diagram, namely "compressor operation", "compressor stop", "compressor protection, timer initialization", It is shown corresponding to each ID number 0, 1.2. Furthermore,
The state transition table 5 in FIG. 4(c) shows state transitions. For example, if "event ID4 (indoor temperature became -30°C)" occurs in state ST2,
“Action IDI (stop compression/sensor)” and “Action ID2 (initialize compression/sensor protection timer)”
This means to execute `` and advance the state to ``rST5''. These three tables are in the specification data file 2.
It is stored in 3.

ところで、従来、イベント検出部はイベントテーブルに
記述されているイベントのすべてを検出し、イベントプ
ールに記録していた。例えば、第4図を例にすると、6
つのイベントをすべて検出し、プールに記録していたの
である。室内温度が変化した時の各イベントの記録デー
タを第7図に示す。同図に示すように、「室内温度−3
0℃以上である」、[室内温度−30℃以下である」と
いう状態イベントと、「室内温度が一30℃以上になっ
た」という通常イベントとは、イベントとして異なるも
のであるが、−30℃以上になった時期tsと、−30
℃以下になった時間teのデータを組み合わせるもので
ほとんど同様なものである。−30℃以上になった時間
tsと、−30℃以下になった時間teとをこれらのイ
ベントに対して1組だけプールに記録しておけば、後で
そのデータとイベントテーブル内のイベント発生条件と
を比較することで、イベントを合成することができる。
By the way, conventionally, the event detection unit has detected all the events described in the event table and recorded them in the event pool. For example, taking Figure 4 as an example, 6
All events were detected and recorded in a pool. FIG. 7 shows the recorded data of each event when the room temperature changes. As shown in the figure, “indoor temperature -3
The status events such as "Indoor temperature is -30°C or higher" and the normal event "Indoor temperature is -30°C or higher" are different events. The time ts when the temperature exceeded ℃ and -30
It combines the data of the time te when the temperature dropped below ℃, and is almost the same. If you record only one set of the time ts when the temperature exceeded -30°C and the time te when the temperature fell below -30°C for these events in the pool, you can later use that data and the event occurrence in the event table. Events can be synthesized by comparing them with conditions.

そこで、本実施例では、室内温度が一30℃以上になっ
た時間tsと一30℃以下になった時間teのみを抽出
し、プールに記録する状態イベント抽出部15a(同様
に状態アクション抽出部17a)と、記録されたデータ
から元のイベントを合成する状態イベント変換部15C
(同様に状態アクション変換部17C)とを有するよう
になっている。
Therefore, in this embodiment, the state event extraction unit 15a (similarly, the state action extraction unit 17a) and a state event converter 15C that synthesizes the original event from the recorded data.
(Similarly, the state/action converter 17C).

このようにイベント/アクションのデータを直接プール
に記録しないことによって記録データ数を大幅に削減す
ることができる。この例では、3つのイベントに対して
1組のデータでよいから、1/3の記録数でよくなる。
By not directly recording event/action data in the pool in this way, the amount of recorded data can be significantly reduced. In this example, one set of data is required for three events, so the number of records is reduced to 1/3.

また、この他に「室内温度が一30℃以上になった」、
[室内温度が一30℃である」のイベントが考えられ、
すべて使用した場合は、最大で115の記録数でよいこ
とになる。更に、各イベント毎に発生状況を調べる必要
がないため、検出時間の短縮か期待できる。
In addition to this, "the indoor temperature has exceeded 130 degrees Celsius",
The event "indoor temperature is 130 degrees Celsius" is considered,
If all are used, a maximum of 115 records will be sufficient. Furthermore, since it is not necessary to check the occurrence status for each event, it is expected that the detection time will be shortened.

第5図のフローチャートを参照して作用を説明する。The operation will be explained with reference to the flowchart in FIG.

まず、検証装置内の仮想状態および内部時間を初期化す
る(ステップ110,120)。信号入力部13で冷蔵
庫制御基板29から人力したデータからイベントおよび
アクションをイベント抽出部15およびアクション抽出
部17においてそれぞれ抽出する(ステップ130,1
40)。現在の状態で発生可能なイベントとアクション
の組合せであるかどうか検証部9において検証する(ス
テップ150,160)。発生不可能なイベントとアク
ションか存在する場合には、検証異常として終了する(
ステップ170)。検証の結果、発生可能な組合せを検
出した場合には、内部時間をイベントおよびアクション
か発生した時間で置き換え、仮想状態を次の状態に遷移
させることにより内部状態および内部時間を更新する(
ステップ180 190)。信号入力部13に入力され
るデータがなくなるか、または外部から強制終了命令が
供給されるまで、ステップ130〜190を繰り返して
検証を終了する(ステップ200,210)。
First, the virtual state and internal time within the verification device are initialized (steps 110 and 120). Events and actions are extracted from the data manually input from the refrigerator control board 29 by the signal input unit 13 in the event extraction unit 15 and the action extraction unit 17 (steps 130 and 1).
40). The verification unit 9 verifies whether the combination of event and action can occur in the current state (steps 150 and 160). If there are events and actions that cannot occur, the process ends as a verification error (
step 170). As a result of the verification, if a possible combination is detected, the internal time is replaced with the time when the event and action occurred, and the internal state and internal time are updated by transitioning the virtual state to the next state (
Steps 180 190). The verification is completed by repeating steps 130 to 190 until there is no more data input to the signal input unit 13 or a forced termination command is supplied from the outside (steps 200 and 210).

上述したように、本自動検証装置の設計仕様は、有限状
態機械モデルに基づいて記述している。有限状態機械モ
デルは有限個の状態集合と各人力信号、すなわちイベン
トが引き起こす状態遷移の集合を用いて表現され、1つ
の状態から1つのイベントにより遷移する先はただ1つ
の状態(前と同し状態であってもよい)である。例えば
、第3図において、「状態5T2Jで「室内温度が一3
0℃以下になった」というイベントが発生したとき、「
コンプレッサを停止する」、「コンプレッサ保護タイマ
を初期化する」というアクションを起こして、「状態5
T5Jに遷移するということを表現している。このとき
、被検証装置の有する使用可能な機能の組合せ(単独機
能を含む)が有限状態機械モデルにおける「状態」によ
って表現される。従って、被検証装置の初期状態から最
終状態に到達可能なすべての経路か考えられ得るすべて
の検証項目になる。そして、この被検証装置の設計仕様
を表現した有限状態機械モデルに基づいて検証を実施す
ることで、人為的なミスによる検証項目の抜けを防止す
ることができるのである。
As mentioned above, the design specifications of this automatic verification device are described based on a finite state machine model. A finite state machine model is expressed using a finite set of states and a set of state transitions caused by each human signal, i.e., an event. ). For example, in Fig. 3, "In state 5T2J,"
When an event occurs in which the temperature drops below 0°C,
``Stop the compressor'' and ``Initialize the compressor protection timer.''
This expresses the transition to T5J. At this time, a combination of usable functions (including single functions) possessed by the device to be verified is expressed by a "state" in the finite state machine model. Therefore, all routes that can reach the final state from the initial state of the device to be verified are all possible verification items. By performing verification based on a finite state machine model that expresses the design specifications of the device to be verified, it is possible to prevent omissions of verification items due to human error.

なお、本実施例では、冷蔵庫の制御装置である冷蔵庫制
御基板の検証を行う場合について説明したが、本自動検
証装置は仕様データファイルを変更することにより自動
販売機、洗濯機等の多くの装置についても同様に検証可
能である。そして、本自動検証装置の仕様データファイ
ルを外部から変更できるようにすれば、自動検証装置そ
のものを変更することなく自動販売機、洗濯機等の検証
装置とすることができる。
In addition, in this embodiment, we have explained the case of verifying the refrigerator control board, which is the control device of the refrigerator, but this automatic verification device can be applied to many devices such as vending machines and washing machines by changing the specification data file. can also be verified in the same way. If the specification data file of this automatic verification device can be changed from the outside, it can be used as a verification device for vending machines, washing machines, etc. without changing the automatic verification device itself.

また、信号入力部に直接冷蔵庫の制御基板の信号データ
を人力して検証を行ったが、この信号入力部とそれ以外
の検証部とに分割して検証することもてきる。すなわち
、信号入力部が−旦信号デ−夕をファイルに記憶し、後
で検証部がファイルからバッチ的に信号を取り出して検
証する。この場合、検証装置は信号入力部の人力速度に
無関係になるため、高速に変化するような被検証装置で
も、信号入力部のみを高速化することで、本自動検証装
置と同様な検証が可能となる。また、信号データそのも
のが記憶されているため、何回でも自動検証装置に検証
させることが可能であり、自動検証装置そのものを含め
て被検証装置のデバッグを行うときに有効である。
In addition, although the verification was performed by inputting the signal data of the control board of the refrigerator directly to the signal input section manually, it is also possible to perform the verification by dividing the signal data into this signal input section and other verification sections. That is, the signal input section first stores signal data in a file, and later the verification section extracts signals from the file in a batch manner and verifies them. In this case, the verification device is independent of the manual speed of the signal input section, so even if the device under test changes rapidly, it is possible to perform the same verification as this automatic verification device by speeding up only the signal input section. becomes. Furthermore, since the signal data itself is stored, it is possible to have the automatic verification device perform the verification any number of times, which is effective when debugging the device to be verified including the automatic verification device itself.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、有限状態機械モ
デルに基づいて被検証装置の設計仕様を表現し、被検証
装置の初期状態から順次、被検証装置のイベントおよび
アクションを検出して状態を進め、最終状態まで状態を
進めることによって検証データを作成することなく、検
証を行うことが可能となる。また、設計仕様から検証デ
ータを作成し、検証するのとは異なり、設計仕様からそ
のまま検証を行うため、検証データの作成が不用となり
、また検証内容(結果)が理解し易い。
As explained above, according to the present invention, the design specifications of a device under verification are expressed based on a finite state machine model, and the events and actions of the device under verification are sequentially detected from the initial state of the device to be verified. By advancing the state to the final state, it becomes possible to perform verification without creating verification data. Further, unlike creating verification data from design specifications and performing verification, verification is performed directly from the design specifications, eliminating the need to create verification data and making the verification contents (results) easier to understand.

更に、イベント/アクションテーブルの事象発生条件を
状態イベント/アクションに変換して抽出記録し、この
記録された状態イベント/アクションからイベント/ア
クションテーブルの事象発生条件に従って通常イベント
に再変換しているので、記録容量を低減することかでき
るとともに、処理速度を高速化することができる。
Furthermore, the event occurrence conditions in the event/action table are converted into state events/actions, extracted and recorded, and the recorded state events/actions are reconverted into normal events according to the event occurrence conditions in the event/action table. , the recording capacity can be reduced and the processing speed can be increased.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例に係わる自動検証装置の構成
を示すブロック図、第2図は第1図の自動検証装置の部
分的構成を具体的に示すブロック図、第3図は第1図の
自動検証装置に使用される状態遷移図、第4図は第3図
の状態遷移図に対するイベントテーブル、アクションテ
ーブルおよび状態遷移テーブルを示す表、第5図は第1
図の自動検証装置の作用を示すフローチャート、第6図
は従来の自動検証装置の構成、設定仕様書および検証デ
ータを示す図、第7図は室内温度の変化とイベント抽出
データの説明図である。 1 ・ 3 ・ 5 ・ 7 ・ 9 ・ 11 ・ 13 ・ 15 ・ 5a 5b 5c 17 ・ 7a 7b 7c ・イベントテーブル、 ・アクションテーブル、 ・状態遷移テーブル、 ・オートマトン部、 ・検証部、 ・被検証装置、 ・信号人力部、 ・イベント抽出部、 ・状態イベント抽出部、 ・状態イベントプール、 ・状態イベント変換部、 ・アクション抽出部、 ・状態アクション抽出部、 ・状態アクションプール、 ・状態アクション変換部。
FIG. 1 is a block diagram showing the configuration of an automatic verification device according to an embodiment of the present invention, FIG. 2 is a block diagram specifically showing a partial configuration of the automatic verification device shown in FIG. 1, and FIG. Figure 1 is a state transition diagram used in the automatic verification device, Figure 4 is a table showing the event table, action table, and state transition table for the state transition diagram in Figure 3, and Figure 5 is a table showing the state transition table used in the automatic verification device.
Figure 6 is a flowchart showing the operation of the automatic verification device shown in Figure 6, Figure 6 is a diagram showing the configuration, setting specifications, and verification data of the conventional automatic verification equipment, and Figure 7 is an explanatory diagram of changes in indoor temperature and event extraction data. . 1 ・ 3 ・ 5 ・ 7 ・ 9 ・ 11 ・ 13 ・ 15 ・ 5a 5b 5c 17 ・7a 7b 7c ・Event table, ・Action table, ・State transition table, ・Automaton section, ・Verification section, ・Verified device, - Signal human power section, - Event extraction section, - State event extraction section, - State event pool, - State event conversion section, - Action extraction section, - State action extraction section, - State action pool, - State action conversion section.

Claims (1)

【特許請求の範囲】[Claims] 被検証装置の各部の信号から被検証装置が所定通り作動
しているかを検証する自動検証装置であって、被検証装
置が動作開始するイベントを記憶するイベントテーブル
と、被検証装置が前記イベントによって作動するアクシ
ョンを記憶するアクションテーブルと、被検証装置の設
計仕様を前記イベントテーブルおよび前記アクションテ
ーブルを用いた有限状態機械モデルで表現した状態遷移
テーブルと、被検証装置の各部の信号を入力する信号入
力部と、該信号入力部で入力される各部の信号と前記イ
ベントテーブルに記憶されているイベントとを比較して
被検証装置に供給されるイベントを抽出するイベント抽
出部と、前記信号入力部で入力される各部の信号と前記
アクションテーブルに記憶されているアクションとを比
較して被検証装置が行ったアクションを抽出するアクシ
ョン抽出部と、前記イベント抽出部およびアクション抽
出部で抽出した情報が正しいか否かを前記遷移状態テー
ブルからの情報に基づいて検証する検証部と、仮想の被
検証装置を作成して仮想的に被検証装置の状態を作成し
、前記検証部の結果から仮想の被検証装置を次の状態に
遷移させるオートマトン部とを有し、前記イベント抽出
部は、前記イベントテーブルの事象発生条件を状態イベ
ントに変換して抽出する状態イベント抽出部と、該状態
イベント抽出部で抽出した状態イベントデータを記録す
る状態イベントプールと、該状態イベントプールに記録
された状態イベントからイベントテーブルの事象発生条
件に従って通常イベントに再変換する状態イベント変換
部とを有し、前記アクション抽出部は、前記アクション
テーブルの事象発生条件を状態アクションに変換して抽
出する状態アクション抽出部と、該状態アクション抽出
部で抽出した状態アクションデータを記憶する状態アク
ションプールと、該状態アクションプールに記録された
状態アクションから前記アクションテーブルの事象発生
条件に従って通常アクションに再変換する状態アクショ
ン変換部とを有することを特徴とする自動検証装置。
An automatic verification device that verifies whether a device to be verified is operating as specified based on signals from each part of the device to be verified, the device includes an event table that stores an event in which the device to be verified starts operating, and an event table that stores an event in which the device to be verified starts operating. an action table that stores actions to be performed, a state transition table that expresses the design specifications of the device to be verified using a finite state machine model using the event table and the action table, and signals that input signals from each part of the device to be verified. an input section; an event extraction section that compares signals from each section inputted by the signal input section with events stored in the event table to extract events to be supplied to the device to be verified; and the signal input section. an action extraction section that extracts the action taken by the device under verification by comparing the signals of each section inputted with the actions stored in the action table; and the information extracted by the event extraction section and the action extraction section. A verification section that verifies whether or not it is correct based on the information from the transition state table; an automaton section that transitions the device to be verified to the next state; and a state event conversion unit that reconverts the state event recorded in the state event pool into a normal event according to the event occurrence conditions of the event table, and the action extraction The unit includes a state action extraction unit that converts and extracts the event occurrence conditions of the action table into a state action, a state action pool that stores state action data extracted by the state action extraction unit, and a state action pool that records the state action data in the state action pool. and a state/action conversion unit that reconverts a state action into a normal action according to an event occurrence condition in the action table.
JP2170312A 1990-06-29 1990-06-29 Automatic apparatus for verification Pending JPH0460435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2170312A JPH0460435A (en) 1990-06-29 1990-06-29 Automatic apparatus for verification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2170312A JPH0460435A (en) 1990-06-29 1990-06-29 Automatic apparatus for verification

Publications (1)

Publication Number Publication Date
JPH0460435A true JPH0460435A (en) 1992-02-26

Family

ID=15902639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2170312A Pending JPH0460435A (en) 1990-06-29 1990-06-29 Automatic apparatus for verification

Country Status (1)

Country Link
JP (1) JPH0460435A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103558857A (en) * 2013-11-14 2014-02-05 东南大学 Distributed composite anti-interference attitude control method of BTT flying machine
CN105043794A (en) * 2015-06-02 2015-11-11 遵义市立新机械有限责任公司 Intelligent crusher monitoring method based on audio
CN105547720A (en) * 2015-12-07 2016-05-04 聊城大学 Movement coordination verification device used for mechanical design

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103558857A (en) * 2013-11-14 2014-02-05 东南大学 Distributed composite anti-interference attitude control method of BTT flying machine
CN103558857B (en) * 2013-11-14 2016-05-25 东南大学 A kind of distributed compound anti-interference attitude control method of BTT aircraft
CN105043794A (en) * 2015-06-02 2015-11-11 遵义市立新机械有限责任公司 Intelligent crusher monitoring method based on audio
CN105547720A (en) * 2015-12-07 2016-05-04 聊城大学 Movement coordination verification device used for mechanical design

Similar Documents

Publication Publication Date Title
CN105404525B (en) Manage the method and device of the basic input output system configuration in computer system
CN110300299A (en) Show facility switching machine method for testing pressure, device, equipment and storage medium
US20030074549A1 (en) Method and system for implementing a diagnostic or correciton boot image over a network connection
CN111694760B (en) Server system, flash memory module and method for updating firmware mapping file
JP2018189641A (en) User control of automated test functions using software application programming interface (api)
WO2015079725A1 (en) Programmable controller
CN110119330A (en) Method for automatically restoring BIOS file of cloud backup server BIOSROM
US20070082741A1 (en) Scheme for use in testing software for computer entertainment systems
CN104658218A (en) Mobile terminal used for remotely controlling household appliance and remote-control code setting method thereof
TW201716999A (en) Method for startup inspection and computer system using the same
CN107894935A (en) OPS computer module detection process method, apparatus and electronic equipment
JPH0460435A (en) Automatic apparatus for verification
CN106411649A (en) Control method and device for remote play system
KR102194974B1 (en) System for monitoring and controling electric power system for process verification
CN101996289A (en) Computer with password boot-up function and boot-up method thereof
CN110502894A (en) Recognition methods, equipment and the system of operation behavior
KR20150116020A (en) Apparatus for computer diagnostics and recovery using wireless network and method thereof
CN113257334B (en) Test method, device and system for solid state disk
CN105320120B (en) Simulate the apparatus and method that compressor of air conditioner starts failure
CN100535815C (en) Operation instruction system, operation instruction device, operation instruction program storage medium, and operation instruction method
CN104394466B (en) High safety set top box production method
CN107077343A (en) Ignore the input in WOL's guiding
JP3324728B2 (en) Sequence controller
US6671564B1 (en) Portable programming system and control method therefor
JPH0460419A (en) Automatic examining apparatus