JP2003122592A - Hardware inspection system - Google Patents
Hardware inspection systemInfo
- Publication number
- JP2003122592A JP2003122592A JP2001314203A JP2001314203A JP2003122592A JP 2003122592 A JP2003122592 A JP 2003122592A JP 2001314203 A JP2001314203 A JP 2001314203A JP 2001314203 A JP2001314203 A JP 2001314203A JP 2003122592 A JP2003122592 A JP 2003122592A
- Authority
- JP
- Japan
- Prior art keywords
- hardware
- test program
- input
- interpreter
- test
- 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
Links
- 238000007689 inspection Methods 0.000 title claims abstract description 41
- 230000006870 function Effects 0.000 claims description 22
- 230000015654 memory Effects 0.000 claims description 8
- 238000012360 testing method Methods 0.000 abstract description 26
- 230000002093 peripheral effect Effects 0.000 abstract description 16
- 238000012937 correction Methods 0.000 abstract description 5
- 230000004075 alteration Effects 0.000 abstract 1
- 238000012986 modification Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 4
- 238000007792 addition Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は中央処理装置とこの
中央処理装置の実行するプログラムを格納した記録媒体
が実装されたハードウェアの動作確認を行うハードウェ
ア検査システムに係わり、特に効率的な検査を可能とす
るハードウェア検査システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a central processing unit and a hardware inspection system for confirming the operation of hardware in which a recording medium storing a program executed by the central processing unit is mounted. Hardware inspection system that enables
【0002】[0002]
【従来の技術】CPU(中央処理装置)やROM(リー
ド・オンリ・メモリ)等の記録媒体を収容した電子機器
あるいは基板等の電子部品(以下、これらをまとめてハ
ードウェアという。)が数多く使用されている。これら
のハードウェアは、ROM等の記録媒体に制御用のプロ
グラムを格納しており、この制御用のプログラムを実行
することで所定の制御を行うようになっている。2. Description of the Related Art A large number of electronic devices such as CPUs (Central Processing Units) and ROMs (Read Only Memory) and electronic components such as boards (hereinafter collectively referred to as hardware) are used. Has been done. These hardware stores a control program in a recording medium such as a ROM, and executes the control program to perform predetermined control.
【0003】このように制御用のプログラムを使用する
ハードウェアでは、まずそのプログラムあるいはソフト
ウェアに不具合がないかどうかの点検が必要となる。た
とえば特開昭64−82127号公報では、ソフトウェ
ア開発における複数のソーステキストや、ソフトウェア
開発支援ツールを並列して利用し、その並列作業が終了
したら次に起動するツールを選択するといった作業を改
善する工夫を行っている。この提案された技術では、デ
ータ処理装置に接続したデータ表示装置でウィンドウを
複数表示してこれらを管理しながら、支援ツールの選択
的な起動を行うと共に、支援ツールごとに異なっていた
データ入力インタフェースを統一し、ソフトウェアの開
発の際の作業負担を軽減している。特開平8−4701
4号公報でも、ソフトウェアのデバッグや試験について
の提案を行っている。As described above, in hardware that uses a control program, it is first necessary to check whether the program or software has a defect. For example, in Japanese Unexamined Patent Publication No. 64-82127, a plurality of source texts in software development and software development support tools are used in parallel, and when the parallel work is completed, a work to be selected next is improved. I am devising. In this proposed technology, the data display device connected to the data processing device displays a plurality of windows and manages these windows while selectively activating the support tool and different data input interface for each support tool. To reduce the work load when developing software. JP-A-8-4701
Japanese Patent No. 4 also proposes software debugging and testing.
【0004】一方、ソフトウェアに不具合が存在しない
場合であっても、ハードウェアに障害があれば正常な動
作を行わせることができない。特開平11−10230
2号公報では、コンピュータのハードウェア動作の確認
試験を行うテストツールについての提案を行っている。On the other hand, even if there is no defect in the software, normal operation cannot be performed if there is a failure in the hardware. Japanese Patent Laid-Open No. 11-10230
Japanese Patent Publication No. 2 proposes a test tool for conducting a confirmation test of the hardware operation of a computer.
【0005】図4は、この提案の概要を表わしたもので
ある。このテストツールは、試験を行う各ハードウェア
情報、テスト内容およびテストの手順をテキスト形式で
記述したファイル11を有している。このファイル11
はテストツール本体部12内のトランスレータ13で解
釈されて、テーブル化される。インタプリタ14は、ト
ランスレータ13でテーブル化されたファイル11に従
ってテスト実行タスクを次々と生成する。生成されたテ
スト実行タスク群15は、起動情報を引数としてテスト
項目実行部16を呼び出す。テスト項目実行部16は引
数を解釈して仮想I/Oシステム17のコマンドを発行
する。FIG. 4 shows an outline of this proposal. This test tool has a file 11 in which each piece of hardware information to be tested, test contents, and a test procedure are described in a text format. This file 11
Is interpreted by the translator 13 in the test tool body 12 and tabulated. The interpreter 14 sequentially generates test execution tasks according to the file 11 tabulated by the translator 13. The generated test execution task group 15 calls the test item execution unit 16 with the start information as an argument. The test item execution unit 16 interprets the argument and issues the command of the virtual I / O system 17.
【0006】仮想I/Oシステム17はトランスレータ
13でテーブル化されたファイル11に従ってデバイス
ドライバ群18の中の該当するドライバを駆動すること
でハードウェア群19内の目的とするハードウェアの試
験を行う。テスト実行タスク群15を構成する各テスト
実行タスクは平行して動作するため、ハードウェア群1
9内の複数のハードウェアの競合試験を実施することが
できる。The virtual I / O system 17 tests the target hardware in the hardware group 19 by driving the corresponding driver in the device driver group 18 according to the file 11 tabulated by the translator 13. . Since the test execution tasks constituting the test execution task group 15 operate in parallel, the hardware group 1
Multiple hardware competition tests within 9 can be performed.
【0007】この提案ではオペレータがテスト内容およ
びテストの手順をテキスト形式で記述したファイル11
を作成することで、その内容に沿ったハードウェアの試
験を行うことができるようになっている。In this proposal, the file 11 in which the operator describes the test contents and the test procedure in text format
By creating, you can test the hardware according to its contents.
【0008】[0008]
【発明が解決しようとする課題】この提案では、予め作
成された試験の内容や手順を選択することができる。し
かしながら、試験の内容自体を修正したり変更すること
はできない。一般にハードウェアを検査する際には、検
査用として特に用意したテストプログラムを記録媒体の
一部に予め格納しておく。そして、図示しない入力用端
末から指示してこのテストプログラムを実行し、CPU
によって制御される図示しない周辺デバイスあるいは入
出力端末の動作をチェックすることで、ハードウェアに
何らかの不具合が存在するかどうかを検査することにし
ている。In this proposal, it is possible to select the content or procedure of the test created in advance. However, the test content itself cannot be modified or changed. Generally, when inspecting hardware, a test program prepared especially for inspection is stored in advance in a part of the recording medium. Then, this test program is executed by instructing from an input terminal (not shown)
By checking the operation of a peripheral device or an input / output terminal (not shown) controlled by, it is decided whether or not there is any malfunction in the hardware.
【0009】このような検査では、テストプログラムを
一部修正したり追加することでハードウェアの検査内容
を改良することが可能である。テストプログラムは、従
来では高級言語で記述し、コンパイルおよびリンク後
に、検査システムへの組み込みコマンドとしてROM等
の記録媒体に格納されてる。このため、テストプログラ
ムに何らかの追加や修正を行う場合には、修正後にコン
パイル・リンク・ROMへこれらの内容を書き込む作業
が必要である。In such inspection, it is possible to improve the inspection contents of the hardware by partially modifying or adding the test program. Conventionally, the test program is written in a high-level language, and after compiling and linking, it is stored in a recording medium such as a ROM as an embedded command for the inspection system. Therefore, if any addition or modification is made to the test program, it is necessary to write these contents in the compile / link ROM after the modification.
【0010】また、異なるハードウェア上で同様の検査
システムを構築する場合にも、テストプログラムの作成
とこれを記録媒体に書き込む作業とが必要である。した
がって、ハードウェアのテストの修正または変更を行え
るようにしたハードウェア検査システムでは、修正また
は追加したテストプログラムをROMに格納してから検
査を実行するようになっていた。このため、修正または
変更のための作業が煩雑であった。Also, when constructing a similar inspection system on different hardware, it is necessary to create a test program and write it in a recording medium. Therefore, in the hardware inspection system capable of correcting or changing the hardware test, the inspection is executed after the corrected or added test program is stored in the ROM. Therefore, the work for correction or change is complicated.
【0011】そこで本発明の目的は、ハードウェアのテ
ストの修正または変更をROMに格納されたプログラム
を訂正することなく行うことのできるハードウェア検査
システムを提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a hardware inspection system capable of correcting or changing hardware tests without correcting a program stored in ROM.
【0012】[0012]
【課題を解決するための手段】請求項1記載の発明で
は、(イ)CPUと、このCPUを搭載したハードウェ
アの初期化を行う初期化プログラムとこの初期化プログ
ラムによってハードウェアが初期化された後にソースコ
ードをCPUが実行できるオブジェクトコードに変換す
ることで所定のテストプログラムを実行させるインタプ
リタとを予め組み込んだリード・オンリ・メモリと、テ
ストプログラムを格納するランダム・アクセス・メモリ
と、テストプログラムによる検査対象の回路とを備えた
ハードウェアと、(ロ)このハードウェアに対してテス
トプログラムおよびその実行を指示するコマンドを入力
する入力手段と、(ハ)CPUがテストプログラムを実
行して検査対象の回路を検査したときその結果を出力す
る出力手段とをハードウェア検査システムに具備させ
る。According to a first aspect of the present invention, (a) a CPU, an initialization program for initializing hardware equipped with the CPU, and the initialization of the hardware by the initialization program. After that, a read-only memory in which an interpreter for executing a predetermined test program by converting the source code into an object code that can be executed by a CPU is incorporated in advance, a random access memory for storing the test program, and a test program Hardware provided with a circuit to be inspected by (b), input means for inputting a test program and a command instructing its execution to this hardware, and (c) the CPU executes the test program and inspects The output means that outputs the result when the target circuit is inspected To be provided in the hardware inspection system.
【0013】すなわち請求項1記載の発明では、CPU
やROMおよびRAMを格納したハードウェアのROM
内に予めこのハードウェアの初期化を行う初期化プログ
ラムとこの初期化プログラムによってハードウェアが初
期化された後にソースコードをCPUが実行できるオブ
ジェクトコードに変換することで所定のテストプログラ
ムを実行させるインタプリタを組み込んでおく。そし
て、入力手段からこのハードウェアに対してテストプロ
グラムおよびその実行を指示するコマンドを入力し、C
PUがテストプログラムを実行して検査対象の回路を検
査したときその結果を出力手段によって外部に出力する
ようにしている。このようにRAMにテストプログラム
を書き込むので、その修正または変更を簡単に行うこと
ができるようになる。That is, in the invention described in claim 1, the CPU
ROM that stores hardware, ROM, and RAM
An initialization program for initializing the hardware in advance, and an interpreter for executing a predetermined test program by converting the source code into an object code that can be executed by the CPU after the hardware is initialized by the initialization program. Built in. Then, a test program and a command instructing its execution are input to this hardware from the input means, and C
When the PU executes the test program and inspects the circuit to be inspected, the result is output to the outside by the output means. Since the test program is written in the RAM in this way, the correction or change can be easily performed.
【0014】請求項2記載の発明では、請求項1記載の
ハードウェア検査システムで、インタプリタはエディタ
機能を備えており、入力手段からランダム・アクセス・
メモリに格納されたテストプログラムの修正あるいは変
更を指示する入力があったときテストプログラムが修正
あるいは変更されることを特徴としている。According to a second aspect of the present invention, in the hardware inspection system according to the first aspect, the interpreter has an editor function, and random access from the input means is performed.
It is characterized in that the test program is modified or changed when there is an input instructing to modify or change the test program stored in the memory.
【0015】すなわち請求項2記載の発明では、インタ
プリタがテストプログラムの修正や変更を行うためのエ
ディタ機能を備えているので、RAMに格納されたテス
トプログラムの必要な修正や削除あるいは追加を容易に
行うことができ、その修正や変更後のテストプログラム
でハードウェアのテストを迅速かつ容易に行うことがで
きる。That is, according to the second aspect of the invention, since the interpreter has an editor function for modifying and changing the test program, necessary modification, deletion, or addition of the test program stored in the RAM can be easily performed. It is possible to test the hardware quickly and easily with the test program after the modification or change.
【0016】請求項3記載の発明では、請求項1記載の
ハードウェア検査システムで、インタプリタは入力手段
から入力されるコマンドを解釈してランダム・アクセス
・メモリに格納されたテストプログラムの実行およびそ
の結果の出力を行うことを特徴としている。According to a third aspect of the present invention, in the hardware inspection system according to the first aspect, the interpreter interprets the command input from the input means to execute the test program stored in the random access memory and the execution thereof. It is characterized by outputting the result.
【0017】すなわち請求項3記載の発明では、インタ
プリタが入力手段から入力されるコマンドを解釈してテ
ストプログラムを実行しこれによるハードウェアの検査
結果を出力するような機能を有しているので、入力手段
から与えるコマンドによってハードウェアの診断を操作
することができる。That is, according to the third aspect of the invention, the interpreter has a function of interpreting the command input from the input means, executing the test program, and outputting the hardware inspection result by the test program. Hardware diagnostics can be operated by commands given from the input means.
【0018】請求項4記載の発明では、請求項1記載の
ハードウェア検査システムで、インタプリタは入力手段
から入力されるコマンドを解釈してランダム・アクセス
・メモリに格納されたテストプログラムの削除を行うこ
とを特徴としている。According to a fourth aspect of the invention, in the hardware inspection system according to the first aspect, the interpreter interprets the command input from the input means and deletes the test program stored in the random access memory. It is characterized by that.
【0019】すなわち請求項4記載の発明では、ハード
ウェアの複数箇所の検査を順次行うような場合に、RA
M内のテストプログラムを書き換える必要があるので、
このような場合に前に格納したテストプログラムを削除
する機能をインタプリタに持たせている。That is, according to the fourth aspect of the invention, when the inspection of a plurality of locations of the hardware is sequentially performed, the RA
Since it is necessary to rewrite the test program in M,
In such a case, the interpreter has a function of deleting the test program stored previously.
【0020】請求項5記載の発明では、請求項1記載の
ハードウェア検査システムで、インタプリタは、異なっ
たハードウェア構成のリード・オンリ・メモリに共通し
て同一内容のソフトウェアとして組み込まれることを特
徴としている。According to a fifth aspect of the present invention, in the hardware inspection system according to the first aspect, the interpreter is incorporated in the read-only memories of different hardware configurations as software having the same contents. I am trying.
【0021】すなわち請求項5記載の発明では、一部共
通したハードウェアを検査するような場合には、ROM
に組み込むインタプリタを共通にしてもテストプログラ
ムの大きな変更をすることなく検査が可能な場合がある
ので、このような場合には同一内容のインタプリタは、
異なったハードウェア構成のROMに格納することにし
ている。That is, in the invention described in claim 5, in the case of inspecting a part of common hardware, the ROM is used.
In some cases, even if the same interpreter is built in, it is possible to inspect without making major changes to the test program.
It will be stored in the ROM with a different hardware configuration.
【0022】[0022]
【0023】[0023]
【実施例】以下実施例につき本発明を詳細に説明する。EXAMPLES The present invention will be described in detail below with reference to examples.
【0024】図1は本発明の一実施例におけるハードウ
ェア検査システムの概要を表わしたものである。このハ
ードウェア検査システム31は、検査の対象となるハー
ドウェア32と、これにシリアルインタフェース33を
介して接続された入出力端末34から構成されている。
検査の対象となるハードウェア32は、図示しないバス
を介してCPU41と、ROM42、RAM43ならび
に第1および第2の周辺デバイス44、45から構成さ
れている。FIG. 1 shows an outline of a hardware inspection system according to an embodiment of the present invention. The hardware inspection system 31 includes hardware 32 to be inspected and an input / output terminal 34 connected to the hardware 32 via a serial interface 33.
The hardware 32 to be inspected includes a CPU 41, a ROM 42, a RAM 43, and first and second peripheral devices 44 and 45 via a bus (not shown).
【0025】図2は本実施例のハードウェア検査システ
ムの制御の要部を表わしたものである。図1と共にこれ
を説明する。図1に示したROM42には、電源を投入
した時点でこのハードウェア32の初期化を行うハード
ウェア初期化プログラム42Aとインタプリタ42Bが
格納されている。ここで、インタプリタ42Bは、入出
力端末34から入力されるプログラミング言語で記述し
たソフトウェアの設計図としてのソースコードを、CP
U41が実行できる形式としてのオブジェクトコードに
変換しながら、そのプログラムを実行するためのソフト
ウェアである。インタプリタ42Bは、ハードウェア初
期化プログラム42Aによってハードウェア32が初期
化されると(図2ステップS101)、その時点で起動
される(ステップS102)。FIG. 2 shows the main part of control of the hardware inspection system of this embodiment. This will be described with reference to FIG. The ROM 42 shown in FIG. 1 stores a hardware initialization program 42A and an interpreter 42B that initialize the hardware 32 when the power is turned on. Here, the interpreter 42B converts the source code as the design drawing of the software described in the programming language input from the input / output terminal 34 into the CP.
It is software for executing the program while converting the object code into a format that can be executed by the U41. When the hardware 32 is initialized by the hardware initialization program 42A (step S101 in FIG. 2), the interpreter 42B is activated at that time (step S102).
【0026】本実施例のインタプリタ42Bは、次の3
つの機能を持っている。
(1)入出力端末34から入力されたコマンドを解釈し
て、直ちに実行する機能。
(2)エディタ機能。
(3)エディタ機能によって作成された複数のコマンド
からなるコマンド列を、1つのテストプログラムとして
実行する機能。The interpreter 42B of this embodiment has the following three types.
Have two functions. (1) A function of interpreting a command input from the input / output terminal 34 and immediately executing it. (2) Editor function. (3) A function of executing a command sequence composed of a plurality of commands created by the editor function as one test program.
【0027】インタプリタ42Bが起動されると、この
ソフトウェアは、コマンドの入力を促進する入力促進記
号としてのコマンド・プロンプトを、シリアルインタフ
ェース33を介して入出力端末34に送出する(ステッ
プS103)。そしてこれ以後は入出力端末34からの
コマンドの入力待ちとなるようになっている。この状態
で入出力端末34からオペレータがハードウェア32の
ある機能を検査するコマンド列としてのテストプログラ
ムを入力することになる。入出力端末34からテストプ
ログラムが入力されると(ステップS104:Y)、シ
リアルインタフェース33を介してRAM43の予め決
められた領域としてのテストプログラム格納領域43A
に格納される(ステップS105)。When the interpreter 42B is activated, this software sends a command prompt as an input prompt symbol for prompting input of a command to the input / output terminal 34 via the serial interface 33 (step S103). After that, the input / output terminal 34 waits for the input of a command. In this state, the operator inputs a test program as a command string for inspecting a certain function of the hardware 32 from the input / output terminal 34. When the test program is input from the input / output terminal 34 (step S104: Y), the test program storage area 43A as a predetermined area of the RAM 43 via the serial interface 33.
(Step S105).
【0028】この状態でCPU41は入出力端末34か
らテストプログラムの実行を指示するコマンドが入力す
るのを待機する(ステップS106)。テストプログラ
ムの実行が指示されると(Y)、CPU41は、のテス
トプログラム格納領域43Aに格納されたテストプログ
ラムを、先頭のアドレスから順に読み出して実行する
(ステップS107)。これによりハードウェア32の
検査が実行される。この実行結果は入出力端末34に出
力される(ステップS108)。この後、ステップS1
03の処理に戻る。オペレータはこれにより、ハードウ
ェア32が正常に動作したか否かを判別することができ
る。In this state, the CPU 41 waits for input of a command instructing the execution of the test program from the input / output terminal 34 (step S106). When the execution of the test program is instructed (Y), the CPU 41 sequentially reads the test programs stored in the test program storage area 43A from the top address and executes the test programs (step S107). As a result, the inspection of the hardware 32 is executed. The execution result is output to the input / output terminal 34 (step S108). After this, step S1
Return to the process of 03. This allows the operator to determine whether the hardware 32 has operated normally.
【0029】このようなハードウェア検査システムで、
たとえばハードウェア32に実装された第1の周辺デバ
イス44の有する第1の機能を検査するものとする。オ
ペレータは、エディタ機能を使用して、入出力端末34
から複数のコマンドによって構成されるこの第1の機能
を検査して結果を出力するための第1のテストプログラ
ムを入力する。入力された第1のテストプログラムは、
テストプログラム格納領域43Aに格納される。With such a hardware inspection system,
For example, the first function of the first peripheral device 44 mounted on the hardware 32 is tested. The operator uses the editor function to input / output terminal 34.
The first test program for checking the first function composed of a plurality of commands and outputting the result is input. The first test program entered is
It is stored in the test program storage area 43A.
【0030】このようにして第1のテストプログラムの
入力が終了したら、オペレータはインタプリタ42Bの
“プログラム実行”コマンドを入出力端末34から入力
する。これにより、CPU41はテストプログラム格納
領域43Aに格納された第1のテストプログラムを実行
して、第1の周辺デバイス44の機能を検査する。この
検査結果は入出力端末34に出力される。When the input of the first test program is completed in this way, the operator inputs the "program execution" command of the interpreter 42B from the input / output terminal 34. As a result, the CPU 41 executes the first test program stored in the test program storage area 43A to check the function of the first peripheral device 44. This inspection result is output to the input / output terminal 34.
【0031】テストプログラムを修正あるいは変更する
場合を次に説明する。第1のテストプログラムに修正ま
たは変更があった場合、オペレータはエディタ機能を使
用してテストプログラム格納領域43Aに格納された第
1のテストプログラムの必要な箇所だけを修正、追加あ
るいは削除することができる。このような修正あるいは
変更の後に、オペレータが“プログラム実行”コマンド
を入出力端末34から入力すると、改めて第1の周辺デ
バイス44の機能が検査されることになる。A case where the test program is modified or changed will be described below. When the first test program is modified or changed, the operator can use the editor function to modify, add, or delete only the necessary parts of the first test program stored in the test program storage area 43A. it can. After such correction or change, when the operator inputs a "program execution" command from the input / output terminal 34, the function of the first peripheral device 44 is checked again.
【0032】次に、ハードウェア32に実装された第2
の周辺デバイス45の有する第2の機能を検査するもの
とする。オペレータはまずインタプリタ42Bの“プロ
グラムリストクリア”コマンドを入出力端末34から入
力する。これにより、テストプログラム格納領域43A
に格納されていた第1のテストプログラムがクリア(削
除)される。第1のテストプログラムを削除した後に、
オペレータはインタプリタ42Bのエディタ機能を使用
して第2のテストプログラムを入出力端末34から入力
する。ここで第2のテストプログラムは、第2の周辺デ
バイス45の第2の機能を検査してその結果を入出力端
末34に出力するためのプログラムである。Next, the second device mounted on the hardware 32
The second function of the peripheral device 45 is tested. The operator first inputs the "program list clear" command of the interpreter 42B from the input / output terminal 34. As a result, the test program storage area 43A
The first test program stored in is cleared (deleted). After deleting the first test program,
The operator inputs the second test program from the input / output terminal 34 by using the editor function of the interpreter 42B. Here, the second test program is a program for inspecting the second function of the second peripheral device 45 and outputting the result to the input / output terminal 34.
【0033】オペレータが第2のテストプログラムを入
出力端末34から入力すると、このプログラムはテスト
プログラム格納領域43Aに格納される。この後、オペ
レータがインタプリタ42Bの“プログラム実行”コマ
ンドを入出力端末34から入力すると、テストプログラ
ム格納領域43Aに現在格納されている第2のテストプ
ログラムが実行され、第2の周辺デバイス45を検査し
てその結果が入出力端末34から出力されることにな
る。When the operator inputs the second test program from the input / output terminal 34, this program is stored in the test program storage area 43A. After that, when the operator inputs the "program execution" command of the interpreter 42B from the input / output terminal 34, the second test program currently stored in the test program storage area 43A is executed and the second peripheral device 45 is inspected. Then, the result is output from the input / output terminal 34.
【0034】第2のテストプログラムについても第1の
テストプログラムと同様に修正あるいは変更することが
できるが、その説明は重複するため省略する。The second test program can be modified or changed in the same manner as the first test program, but the description thereof will be omitted because it is redundant.
【0035】発明の変形例 Modification of the Invention
【0036】図3は、本発明の変形例におけるハードウ
ェア検査システムの構成を表わしたものである。図3で
図1と同一部分には同一の符号を付しており、これらの
説明を適宜省略する。FIG. 3 shows the configuration of a hardware inspection system according to a modified example of the present invention. 3, the same parts as those in FIG. 1 are designated by the same reference numerals, and the description thereof will be appropriately omitted.
【0037】この変形例のハードウェア検査システム3
1Aでは、検査対象となるハードウェア32Aが先の実
施例のハードウェア32に第3の周辺デバイス46を追
加している点で一部異なったものとなっている。この変
形例のROM42にも先の実施例と同一のインタプリタ
42Bを組み込んでおく。これにより、たとえば第1の
周辺デバイス44の第1の機能を検査するときに、先の
実施例で使用した第1のテストプログラムをそのまま、
あるいは僅かにカスタマイズした状態で使用することが
できる。第2のテストプログラムについても同様であ
る。Hardware inspection system 3 of this modification
1A is partially different in that the hardware 32A to be inspected has a third peripheral device 46 added to the hardware 32 of the previous embodiment. The same interpreter 42B as in the previous embodiment is also incorporated in the ROM 42 of this modification. As a result, for example, when inspecting the first function of the first peripheral device 44, the first test program used in the previous embodiment can be used as it is.
Alternatively, it can be used in a slightly customized state. The same applies to the second test program.
【0038】このように1つのハードウェアで使用した
テストプログラムを他のハードウェアでも大きな変更を
加えることなく使用して、それぞれの周辺デバイス等の
ハードウェア構成部品を検査することができる可能性が
ある。したがって、予め異なるハードウェアにインタプ
リタを実装しておくことで、ROM42に1つずつカス
タマイズされたテスト用のプログラムを格納するより
も、同一のコマンドインタフェースを有するハードウェ
ア検査システムを簡単に構築することができる。As described above, there is a possibility that the test program used in one piece of hardware can be used in other pieces of hardware without making a great change to inspect each hardware component such as a peripheral device. is there. Therefore, by mounting an interpreter on different hardware in advance, it is possible to easily construct a hardware inspection system having the same command interface, rather than storing each customized test program in the ROM 42. You can
【0039】[0039]
【発明の効果】以上説明したように請求項1〜請求項5
記載の発明によれば、CPUやROMおよびRAMを格
納したハードウェアのROM内に予めこのハードウェア
の初期化を行う初期化プログラムとこの初期化プログラ
ムによってハードウェアが初期化された後にソースコー
ドをCPUが実行できるオブジェクトコードに変換する
ことで所定のテストプログラムを実行させるインタプリ
タを組み込むことにしたので、入力手段からこのハード
ウェアに対してテストプログラムおよびその実行を指示
するコマンドを入力し、CPUがテストプログラムを実
行して検査対象の回路を検査したときその結果を出力手
段によって外部に出力することができる。従来では、こ
のようなテストプログラムを修正したり変更したり、あ
るいは検査項目を追加する場合に、高級言語やアセンブ
リ言語でテストプログラムを作成し、コンパイル(アセ
ンブル)およびリンクし、ROM上の検査システムのコ
マンドとして検査を行うことにしていたが、本発明では
コンパイル(アセンブル)、リンクおよびROMへの書
き込みの作業が不要となる。したがって、検査を効率的
に行うことができるという効果がある。As described above, claims 1 to 5 are as follows.
According to the described invention, an initialization program for initializing the hardware in advance in the ROM of the hardware storing the CPU, the ROM and the RAM, and the source code after the hardware is initialized by the initialization program. Since it is decided to incorporate an interpreter for executing a predetermined test program by converting it into an object code that can be executed by the CPU, the CPU inputs a test program and a command instructing its execution to the hardware from the input means. When the test program is executed to inspect the circuit to be inspected, the result can be output to the outside by the output means. Conventionally, when such a test program is modified or changed, or an inspection item is added, a test program is created in a high-level language or an assembly language, compiled (assembled) and linked, and an inspection system on a ROM is installed. However, in the present invention, the work of compiling (assembling), linking, and writing to the ROM is unnecessary. Therefore, there is an effect that the inspection can be efficiently performed.
【0040】また請求項2記載の発明によれば、請求項
1記載のハードウェア検査システムで、インタプリタは
エディタ機能を備えているので、RAMに格納されたテ
ストプログラムの必要な修正や削除あるいは追加を容易
に行うことができ、その修正や変更後のテストプログラ
ムでハードウェアのテストを迅速かつ容易に行うことが
できる。According to a second aspect of the invention, in the hardware inspection system according to the first aspect, the interpreter has an editor function, so that necessary correction, deletion or addition of the test program stored in the RAM is performed. The hardware can be tested quickly and easily with the test program after the modification or change.
【0041】更に請求項5記載の発明によれば、インタ
プリタは、異なったハードウェア構成のROMに共通し
て同一内容のソフトウェアとして組み込まれるので、同
一のコマンドインタフェースを持つハードウェア検査シ
ステムを簡単に構築することができる。Further, according to the invention of claim 5, the interpreter is incorporated as software having the same contents in the ROMs having different hardware configurations in common, so that the hardware inspection system having the same command interface can be simplified. Can be built.
【図1】本発明の一実施例におけるハードウェア検査シ
ステムの概要を表わしたブロック図である。FIG. 1 is a block diagram showing an outline of a hardware inspection system according to an embodiment of the present invention.
【図2】本実施例のハードウェア検査システムの制御の
要部を表わした流れ図である。FIG. 2 is a flowchart showing a main part of control of the hardware inspection system of this embodiment.
【図3】本発明の変形例におけるハードウェア検査シス
テムの構成を表わしたブロック図である。FIG. 3 is a block diagram showing a configuration of a hardware inspection system in a modified example of the present invention.
【図4】従来提案されたコンピュータのハードウェア動
作の確認試験を行うテストツールを示すブロック図であ
る。FIG. 4 is a block diagram showing a conventionally proposed test tool for performing a confirmation test of a hardware operation of a computer.
31、31A ハードウェア検査システム 32、32A ハードウェア 34 入出力端末 41 CPU 42 ROM 42A ハードウェア初期化プログラム 42B インタプリタ 43 RAM 43A テストプログラム格納領域 44 第1の周辺デバイス 45 第2の周辺デバイス 46 第3の周辺デバイス 31, 31A hardware inspection system 32, 32A hardware 34 Input / output terminals 41 CPU 42 ROM 42A hardware initialization program 42B interpreter 43 RAM 43A Test program storage area 44 First peripheral device 45 Second peripheral device 46 Third peripheral device
Claims (5)
ウェアの初期化を行う初期化プログラムとこの初期化プ
ログラムによってハードウェアが初期化された後にソー
スコードを前記CPUが実行できるオブジェクトコード
に変換することで所定のテストプログラムを実行させる
インタプリタとを予め組み込んだリード・オンリ・メモ
リと、前記テストプログラムを格納するランダム・アク
セス・メモリと、前記テストプログラムによる検査対象
の回路とを備えたハードウェアと、 このハードウェアに対して前記テストプログラムおよび
その実行を指示するコマンドを入力する入力手段と、 前記CPUがテストプログラムを実行して前記検査対象
の回路を検査したときその結果を出力する出力手段とを
具備することを特徴とするハードウェア検査システム。1. A CPU, an initialization program for initializing hardware equipped with the CPU, and a source code converted into an object code executable by the CPU after the initialization of the hardware by the initialization program. A read-only memory in which an interpreter for executing a predetermined test program is incorporated in advance, a random access memory for storing the test program, and hardware including a circuit to be inspected by the test program. An input means for inputting the test program and a command instructing its execution to the hardware; and an output means for outputting the result when the CPU executes the test program and inspects the circuit to be inspected. Hardware characterized by comprising査 system.
ており、前記入力手段から前記ランダム・アクセス・メ
モリに格納されたテストプログラムの修正あるいは変更
を指示する入力があったときテストプログラムが修正あ
るいは変更されることを特徴とする請求項1記載のハー
ドウェア検査システム。2. The interpreter has an editor function, and the test program is modified or changed when an input for modifying or changing the test program stored in the random access memory is input from the input means. The hardware inspection system according to claim 1, wherein:
力されるコマンドを解釈して前記ランダム・アクセス・
メモリに格納されたテストプログラムの実行およびその
結果の出力を行うことを特徴とする請求項1記載のハー
ドウェア検査システム。3. The interpreter interprets a command input from the input means to perform the random access
2. The hardware inspection system according to claim 1, which executes the test program stored in the memory and outputs the result.
力されるコマンドを解釈して前記ランダム・アクセス・
メモリに格納されたテストプログラムの削除を行うこと
を特徴とする請求項1記載のハードウェア検査システ
ム。4. The interpreter interprets a command input from the input means to perform the random access
The hardware inspection system according to claim 1, wherein the test program stored in the memory is deleted.
ェア構成のリード・オンリ・メモリに共通して同一内容
のソフトウェアとして組み込まれることを特徴とする請
求項1記載のハードウェア検査システム。5. The hardware inspection system according to claim 1, wherein the interpreter is installed as software having the same content in common in read-only memories of different hardware configurations.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001314203A JP2003122592A (en) | 2001-10-11 | 2001-10-11 | Hardware inspection system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001314203A JP2003122592A (en) | 2001-10-11 | 2001-10-11 | Hardware inspection system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2003122592A true JP2003122592A (en) | 2003-04-25 |
Family
ID=19132555
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001314203A Pending JP2003122592A (en) | 2001-10-11 | 2001-10-11 | Hardware inspection system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2003122592A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101159775B (en) * | 2007-10-16 | 2010-06-23 | 中兴通讯股份有限公司 | Hardware module testing system and method |
| CN102812374A (en) * | 2010-03-31 | 2012-12-05 | 惠普发展公司,有限责任合伙企业 | Testing an electronic device |
-
2001
- 2001-10-11 JP JP2001314203A patent/JP2003122592A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101159775B (en) * | 2007-10-16 | 2010-06-23 | 中兴通讯股份有限公司 | Hardware module testing system and method |
| CN102812374A (en) * | 2010-03-31 | 2012-12-05 | 惠普发展公司,有限责任合伙企业 | Testing an electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5926638A (en) | Program debugging system for debugging a program having graphical user interface | |
| JP5045940B2 (en) | PLC simulation equipment | |
| US8201143B2 (en) | Dynamic mating of a modified user interface with pre-modified user interface code library | |
| JPH0388046A (en) | Service processor testing apparatus | |
| KR100694381B1 (en) | Graphical Programmers and Programmable Indicators | |
| JP2009104252A (en) | Debugging support apparatus and debugging support method | |
| JP2004139458A (en) | Program development support device, program execution device, compiling method, and debugging method | |
| Thompson et al. | An integrated development environment for prototyping safety critical systems | |
| KR101548960B1 (en) | Method and apparatus for programming and debugging using virtual platform | |
| JP2010224597A (en) | Programmable controller control program creation method and programmable controller control program creation system | |
| JP7675555B2 (en) | Program development device and program development system | |
| EP0801348A1 (en) | Method of monitoring the operation of a computer | |
| JP2005174045A (en) | Source program conversion device, source program conversion method, source program conversion program, and program recording medium | |
| CN119923637A (en) | Debugging device and debugging method | |
| JP2014048706A (en) | Application developing device and application developing tool | |
| JP2004070561A (en) | Debugging device | |
| JP4569284B2 (en) | Integrated circuit debugging method and debugging program | |
| JP2001216337A (en) | CPU core development support system, development support method thereof, and recording medium storing development support program | |
| JPH08137684A (en) | Program transfer method, program development system, program development device, and program execution device | |
| JP5067705B2 (en) | Abnormal test support device, abnormal test support method, and program | |
| JP2005326909A (en) | Plant engineering system | |
| KR100423742B1 (en) | Exclusive control system by sequential function chart | |
| JP2005115619A (en) | Program debugger | |
| JP2885957B2 (en) | Sequence program programming method and apparatus | |
| JP2023145080A (en) | assembly inspection system |