JPH0440544A - Processing system for input and output instructions for test - Google Patents
Processing system for input and output instructions for testInfo
- Publication number
- JPH0440544A JPH0440544A JP2148354A JP14835490A JPH0440544A JP H0440544 A JPH0440544 A JP H0440544A JP 2148354 A JP2148354 A JP 2148354A JP 14835490 A JP14835490 A JP 14835490A JP H0440544 A JPH0440544 A JP H0440544A
- Authority
- JP
- Japan
- Prior art keywords
- tag
- register
- input
- data
- 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
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔目次〕
概要
産業上の利用分野
従来の技術(第5図〜第7図)
発明が解決しようとする課題
課題を解決するための手段(第1図)
作用
実施例(第2図〜第4図)
発明の効果
〔概要]
テスト用入出力命令処理方式に関し、
チャネル・アダプタのテストのときテスト用アウト命令
の応答を直ちに返し、またテスト用イン命令に対しては
その応答をチャネル・アダプタの状態により可変できる
ように制御することを目的とし、
複数のプログラム走行レヘルを持つファームウェアによ
り制御部されるチャネル・アダプタと、このチャネル・
アダプタを入出力命令によって制御する中央制御部と、
前記チャネル・アダプタのテスト開始または終了指示を
行う監視手段を有し、監視手段がテスト開始指示を発行
すると、チャネル・アダプタがチャネルインタフェース
を折り返し、中央制御部がテスト用の入出力命令によっ
てインターロンタ方式のチャネルインタフェースを擬偵
する装置において、中央制御部からテスト用の出力命令
が伝達されたとき、プロセッサによりタグイン保持手段
のデータを保持手段にセーブするとともに、タグアウト
保持手段に出力命令の内容を保持し、テスト用の入力命
令が伝達されたとき、タイマを起動し、そのタイムアウ
トにより前記セーブした保持手段のデータとタグイン保
持手段とを11コセンサで比較し、不一致のとき前記入
力命令に対する応答を返し、一致したときタイマを再起
動し、タイマの起動回数が規定の値に達したときも入力
命令に対する応答を返すように構成する。[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figures 5 to 7) Problems to be solved by the invention Means for solving the problems (Figure 1) Working examples (Figures 2 to 4) Effects of the invention [Summary] Regarding the test input/output command processing method, when testing a channel adapter, a response to a test OUT command is returned immediately, and a response to a test IN command is returned. The purpose is to control the response so that it can be varied depending on the state of the channel adapter.
a central control unit that controls the adapter according to input/output instructions;
It has a monitoring means for instructing the channel adapter to start or end a test, and when the monitoring means issues a test start instruction, the channel adapter loops back the channel interface, and the central control unit executes an interlon by a test input/output command. In a device for simulating a data type channel interface, when an output command for testing is transmitted from the central control unit, the processor saves the data in the tag-in holding means in the holding means, and also transmits the output command to the tag-out holding means. When a test input command is transmitted, a timer is started, and when the timeout expires, the data in the saved storage means and the tag-in storage means are compared by the 11 sensors, and if they do not match, the data for the input command is The configuration is configured to return a response, restart the timer when a match occurs, and return a response to the input command even when the number of activations of the timer reaches a predetermined value.
本発明はテスト用人出力命令処理方式に関する。 The present invention relates to a test human output command processing method.
近年マイクロ・プロセッサの進歩により、従来ではハー
ドウェアで作られていた装置がファームウェアによって
作られるようになってきた。このような装置では、非同
期の処理を含むため、多くの場合、割込みによって処理
する方法が用いられている。割込み処理があるとファー
ムウェアの変更によって割込み発生のタイミングが変わ
るので、その動作の検証及び装置のテストに多くの工数
が必要となる。そのためテストを自動化することが不可
欠となっている。Due to advances in microprocessors in recent years, devices that were previously made using hardware are now being made using firmware. Since such devices involve asynchronous processing, a method of processing using interrupts is often used. If there is an interrupt process, the timing of interrupt generation changes depending on the firmware change, and therefore a large number of man-hours are required to verify the operation and test the device. Therefore, it has become essential to automate testing.
本発明は、このような装置を自動的にテストするものに
関する。The present invention relates to automatic testing of such devices.
例えば、通信制御処理装置40のチャネル・アダプタ4
1の場合について説明する第5図に示す如く、通信制御
処理装置40はホスト50に設けられたポス1−プロセ
ッサ5]に、チャネル52及びチャネル・アダプタ4〕
を経由して接続される。For example, the channel adapter 4 of the communication control processing device 40
As shown in FIG. 5, which describes case 1, the communication control processing device 40 connects a channel 52 and a channel adapter 4 to a post 1-processor 5 provided in a host 50.
connected via.
また通信制御処理装置40番こは、複数のラインユニッ
ト44−0.44−1−/I /I −nが設けられ、
これらに接続された回線に、それぞれ1台〜複数台の端
末装置が接続され、ホストコンピュータ51に対するデ
ータ処理が行われている。そして回線スキャナ44によ
り、ラインユニット44−0〜44−nの状態が順次走
査されて、ホストプロセッサ51に対する通信制御が行
われている。Further, the communication control processing device No. 40 is provided with a plurality of line units 44-0.44-1-/I/I-n,
One to a plurality of terminal devices are connected to each of the lines connected to these lines, and data processing for the host computer 51 is performed. The line scanner 44 sequentially scans the states of the line units 44-0 to 44-n to control communication with the host processor 51.
通信制御処理装置40には、中央制御部42、主記憶部
43が設けられており、中央制御部42は主記憶部43
に格納された命令を読出し、それを実行する。またチャ
ネル・アダプタ41は中央制御部42からの命令にした
がって、インターロンタ方式のチャネル・インタフェー
スを制御する。The communication control processing device 40 is provided with a central control section 42 and a main storage section 43.
Reads the instructions stored in and executes them. Further, the channel adapter 41 controls the interlonter type channel interface according to instructions from the central control unit 42.
なお48は、主記憶部43、中央制御部42、チャネル
・アダプタ41等を接続するシステムハスである。そし
てチャネル・アダプタ41にはマイクロプロセッサ45
、タグアラl〜・レジスタ46、タグイン・レジスタ4
7等が設けられている。チャネル・インタフェースから
チャネル・アダプタ41に対し伝達されるデータは一旦
タグアウド・レジスタ464こセントされ、またチャネ
ル・アダプク41からチャネル・インタフェースに対し
送出されるデータは一旦タゲイン・レジスタ47に七ノ
ドされる。Note that 48 is a system hub to which the main storage section 43, central control section 42, channel adapter 41, etc. are connected. And the channel adapter 41 has a microprocessor 45.
, tag-in register 46, tag-in register 4
7th grade is provided. Data transmitted from the channel interface to the channel adapter 41 is once sent to a tag register 464, and data sent from the channel adapter 41 to the channel interface is once sent to a tag register 47. .
ところで主記憶部43には、チャネル・アダプタ41を
制御する命令の外に、チャネル・インタフェースを擬f
以するテスト命令等が格納されている。そして監視部4
9が中央制御部42及びチャネル・アダプタ41を監視
しており、折り返しテストの開始及び終了を指示する。By the way, in addition to instructions for controlling the channel adapter 41, the main storage unit 43 also contains instructions for controlling the channel interface.
Test commands and the like are stored. and monitoring section 4
9 monitors the central control unit 42 and channel adapter 41, and instructs the start and end of the loopback test.
チャネル・アダプタ4Jをテストする場合、監視部49
がチャネル・アダプタ41及び中央制御部42に対して
テスト開始を指示する。これによりチャネル・アダプタ
41ばナス1−時のデータをチャネル52乙こ送出しな
いよう制御する。When testing the channel adapter 4J, the monitoring unit 49
instructs the channel adapter 41 and central control unit 42 to start the test. This controls the channel adapter 41 so that it does not send data from the channel 52 to the channel 52.
中央制御部42ではテスト用アウト命令をチャネル・ア
ダプタ41に対して発行する。チャネル・アダプタ41
のマイクロプロセッサ45がテスト用アウト命令を受は
取るとテスト用アウト命令で発行されたデータをタグア
ウト・レジスタ46に書く。The central control unit 42 issues a test out command to the channel adapter 41. Channel adapter 41
When the microprocessor 45 receives the test out instruction, it writes the data issued by the test out instruction to the tagout register 46.
次に中央制御部42はテスト用イン命令をチャネル・ア
ダプタ41に対して発行する。Next, the central control unit 42 issues a test in command to the channel adapter 41.
チャネル・アダプタ41のマイクロプロセッサ45がテ
スト用イン命令を受は取るとタグイン・レジスタ47に
保持されているデータを応答する。When the microprocessor 45 of the channel adapter 41 receives the test-in command, it responds with the data held in the tag-in register 47.
このナス1〜用イン命令によって読み出されたブタと期
待値と一致するか否かをチェフクし、一致すれば正常と
みて次のテスi−を行い、不一致ならエラー処理を行う
。このようにしてチャネル・アダプタ41におけるチャ
ネル・インタフェースのテストが行われる。第6図はこ
のテスト用シーケンスを示している。It is checked whether the data read by this eggplant 1~in instruction matches the expected value or not. If they match, it is considered normal and the next test i- is performed, and if they do not match, error handling is performed. In this way, the channel interface in the channel adapter 41 is tested. FIG. 6 shows this test sequence.
ところで、前記アウト命令、イン命令をチャネル・アダ
プタ41では次のように処理している。By the way, the channel adapter 41 processes the out command and in command as follows.
マイクロプロセッサ45は複数のプログラム走行レベル
を持っており、」1位しヘルでは、中央制御部42から
発行される命令の処理が行われる。The microprocessor 45 has a plurality of program execution levels, and at the first level, instructions issued from the central control unit 42 are processed.
下位レベルではタグアウト・レジスタ46の変化を検出
し、チャネル・インタフェースに従ったタグインをタグ
イン・レジスタ47にセントする。At the lower level, a change in the tagout register 46 is detected and the tagin according to the channel interface is sent to the tagin register 47.
第7図に示す如く、前記アウト命令、イン命令はそれぞ
れ上位レベルで処理される。As shown in FIG. 7, the out instruction and in instruction are each processed at a higher level.
前記アウト命令が中央制御部42から発行され、マイク
ロプロセッサ45がこれを受は取ると発行されたデータ
をタグアウト・レジスタ46に書く処理が」−位しヘル
で行われる。When the out command is issued by the central control unit 42 and received by the microprocessor 45, the process of writing the issued data into the tag out register 46 is performed at the same time.
アウト命令の処理が終了すると下位レベルでタグアウト
・レジスタ4Gの内容が変化したことを検出し、チャネ
ル・インタフェースに従ったタグインをタグイン・レジ
スタ47ヘセソトする処理が行われる。したがって、第
7図に示す如く、時刻1.oで中央制御部42からアウ
ト命令が発行されると、マイクロプロセッサ45はこれ
により上位レベルの処理を実行し、タグアラI〜・レジ
スタ46にデータのセットを開始し、時刻1+にて通常
の下位レベルの処理によりこのタグアウト・レジスタ4
6にセットされたデータに対するタグインを、タグイン
・レジスタ47にセットずべく動作を開始する。When the processing of the out instruction is completed, a change in the contents of the tag-out register 4G is detected at a lower level, and processing is performed to transfer the tag-in according to the channel interface to the tag-in register 47. Therefore, as shown in FIG. 7, at time 1. When an out command is issued from the central control unit 42 at time o, the microprocessor 45 executes upper-level processing, starts setting data in the tagara I~ register 46, and at time 1+ returns to normal lower-level processing. This tagout register 4 is processed by level processing.
The operation is started to set the tag-in for the data set to 6 in the tag-in register 47.
ところで、このタグイン・レジスタ47に対するデータ
のセントが終らない、またはその実行中に、中央制御部
42からイン命令が発行されると、例えば点線で示す時
刻t2にこのイン命令が発行すると、マイクロブロセ・
ンサ45は−L位レしルの処理に移行してタグイン・レ
ジスタ47のデータを中央制御部42に出力することに
なる。しかしこのとき、前記タグアラl〜・レジスタ4
6にセットされたタグアウトに対するタグインがタグイ
ンレジスタ47にセントされていないので、このタグイ
ン・レジスタ47から読出したデータは1す1待値と一
致しない。従って中央制御部42はチャネル・アダプタ
41がエラーであると誤認識する。By the way, if the input of data to the tag-in register 47 is not completed or if an IN instruction is issued from the central control unit 42 while it is being executed, for example, if this IN instruction is issued at time t2 indicated by a dotted line, the microblock is Se・
The sensor 45 shifts to processing at the -L level and outputs the data in the tag-in register 47 to the central control unit 42. However, at this time, the tagara l~・register 4
Since the tag-in for the tag-out set to 6 has not been written to the tag-in register 47, the data read from the tag-in register 47 does not match the 1-1 wait value. Therefore, the central control unit 42 mistakenly recognizes that the channel adapter 41 is in error.
このようにエラーであると認識したとき、中央制御部4
2から、そのときの状態をダンプするためにイン命令を
発行する。しかし、チャネル・アダプタ41が、このイ
ン命令に対する応答を夕、ゲイン・レジスタ47におけ
るデータセット完了まで保留した場合、何らかの原因に
よりその応答がタイムアウトになったら、このダンプの
ためのイン命令もタイムアウトになり、どのような状態
でイン命令がタイムアウトになったのか後で解析するこ
とができないという欠点があった。When an error is recognized in this way, the central control unit 4
From step 2, an IN command is issued to dump the current state. However, if the channel adapter 41 suspends the response to this IN instruction until the data set in the gain register 47 is completed in the evening, and the response times out for some reason, the IN instruction for dumping will also time out. This has the disadvantage that it is not possible to later analyze in what condition the IN instruction times out.
そこでこの欠点を解決するだめの方法として、■テスト
用の前記アウト命令の応答を、ファームウェアがタグイ
ン・レジスタ47にデータセントが完了した時刻も3後
の時刻t4まで保留したり、■前記アウト命令によりタ
グイン・レジスタ47にデータがセットされる時間を見
込んだ時刻t5に、中央制御部42がイン命令を発行す
るように主記憶部43に格納されているテストプログラ
ムを作成していた。Therefore, as a possible solution to this drawback, there are two methods: (1) suspending the response of the out command for testing until time t4, which is 3 years after the time when the firmware completes data entry to the tag-in register 47; The test program stored in the main storage unit 43 was created so that the central control unit 42 would issue an IN command at time t5, which is the time when data is set in the tag-in register 47.
しかし前記■のように、テスト用のアウト命令の応答を
保留する場合、タグアウト・レジスタ46にデータをセ
ットして状態変化させてからタグイン・レジスタ47に
そのタグアウトに対するタグインデータの更新まで他の
入出力命令が発行できないためきめ細かいテストができ
ない問題があった。ファームウェアのタグイン・レジス
タの制御を行っている部分にテストのための処理を必要
とし、ファームウェアの複雑化、増大化を招いていた。However, as in (2) above, when suspending the response to the out command for testing, data is set in the tagout register 46 to change the state, and then the tagin register 47 is updated with the tagin data for that tagout. There was a problem that detailed tests could not be performed because other input/output commands could not be issued. The part of the firmware that controls the tag-in register requires processing for testing, leading to the complexity and size of the firmware.
また前記■のように、テスト用のプログラムで、タグイ
ン・レジスタ47にデータをセットしてその状態変化す
るまでの時間を見込んでこれを作成した場合、ファーム
ウェアの変更によって見込んでいた時間が足りない等の
問題が発生し、テストプログラムの変更が必要になるこ
ともあった。In addition, as in (■) above, if a test program is created with an allowance for the time it will take to set data in the tag-in register 47 and change its state, the estimated time will not be sufficient due to firmware changes. Problems such as these may occur, requiring changes to the test program.
したがって本発明の目的は、このような問題点を改善し
たテスト用入出力命令処理方弐を掃供することである。Therefore, an object of the present invention is to provide a method for processing input/output instructions for testing which improves the above-mentioned problems.
前記目的を達成するため、第1図に示す如く、チャネル
・アダプタにマイクロプロセッサIと、コン1−ロール
・ストレイン2と、タイマ3 ヲ設ケ、マイクロプロセ
ッサ1には比較部1−0と、カウンタ1−1を設ける。To achieve the above object, as shown in FIG. 1, the channel adapter is equipped with a microprocessor I, a controller 1-roll strain 2, and a timer 3, and the microprocessor 1 is equipped with a comparator 1-0. A counter 1-1 is provided.
勿論チャネル・アダプタには、タグアウト・レジスタ4
及びタグイン・レジスタ5が設りられ、タグアウト・レ
ジスタ4の入力側にはゲ−l−6が設けられ、チャネル
インタフェースからのデータ、またはマイクロプロセッ
サ1からのデータが選択的にセントされる。Of course, the channel adapter has tagout register 4.
and a tag-in register 5 are provided, and a gate 1-6 is provided on the input side of the tag-out register 4, to which data from the channel interface or data from the microprocessor 1 is selectively sent.
またコントロール・ス1〜レイジ2にはタグイン・レジ
スタ5のデータをセーブするセーブ領域20が用意され
ている。In addition, a save area 20 for saving the data of the tag-in register 5 is provided in the control units 1 to 2.
〔作用]
チャネル・アダプタのテストのため、中央制j卸部(第
1図では省略)からのアウト命令がマイクロプロセッサ
1に伝達されると、マイクロプロセッサ1はまずタグイ
ン・レジスタ5の内容を読み出し、これをコントロール
・ストレイン2のセブ領域2−0にセーブする。そして
前記アウト命令時に中央制御部から伝達されたデータを
、ゲト6をオンにしてタグアウト・レジスタ4にセノl
〜する。アウト命令の処理が終わったらごのタグアウト
・レジスタ4にセントされたデータに対するタグインを
タグイン・レジスタ5に記入する処理を開始する。それ
から中央制御部よりイン命令がマイクロプロセッサ1に
伝達されると、マイクロプロセッサ1はタイマ3を起動
する。そしてタイマ3が一定時間経過後、割込信号がマ
イクロプロセッサ1に伝達されると、マイクロプロセッ
サ1はセーブ領域2−0にセーブしたデータと、そのと
きタグイン・レジスタ5にセットされているデータとを
比較部1−0で比較する。[Operation] When an out command is transmitted from the central controller (not shown in FIG. 1) to the microprocessor 1 to test the channel adapter, the microprocessor 1 first reads the contents of the tag-in register 5. , save this in control strain 2's sub-area 2-0. Then, the data transmitted from the central control unit at the time of the out command is sent to the tagout register 4 by turning on the get 6.
~do. When the processing of the out instruction is completed, the process of writing the tag-in for the data sent to the tag-out register 4 into the tag-in register 5 is started. Then, when the IN command is transmitted to the microprocessor 1 from the central control section, the microprocessor 1 starts the timer 3. When the interrupt signal is transmitted to the microprocessor 1 after the timer 3 has elapsed for a certain period of time, the microprocessor 1 saves the data saved in the save area 2-0 and the data set in the tag-in register 5 at that time. are compared by comparison unit 1-0.
このとき、タグイン・レジスタ5にタグアウト・レジス
タ4にセットされたデータがセントずみであれば比較部
1−0は不一致を検出し、セットずみでなければ一致を
検出する。At this time, if the data set in the tag-out register 4 has been sent to the tag-in register 5, the comparator 1-0 detects a mismatch, and if the data has not been set, it detects a match.
もし一致を検出すれば、マイクロプロセッサ1はカウン
タ1−1を+1し、タイマ3を再起動する。そしてタイ
マ3から一定時間後再び割込信号が伝達されれば、同様
の比較を行う。If a match is detected, microprocessor 1 increments counter 1-1 by 1 and restarts timer 3. Then, when the interrupt signal is transmitted again from the timer 3 after a certain period of time, the same comparison is performed.
このとき、タグイン・レジスタ5にタグアウトに対する
タグインデータがセント済みであれば、比較部1−0は
不一致信号を出力する。これによりマイクロプロセッサ
1は前記中央制御部からのイン命令に対して応答信号を
出力することになる。At this time, if the tag-in data for the tag-out has already been sent to the tag-in register 5, the comparator 1-0 outputs a mismatch signal. As a result, the microprocessor 1 outputs a response signal in response to the IN command from the central control section.
このイン命令の応答信号により、中央制御部はタグイン
・レジスタ5のデータを読み出し、これが期待値であれ
ばチャネル・アダプタは正常と判断し、期待値でなけれ
ば異常と判断する。In response to the response signal of this IN instruction, the central control unit reads the data in the tag-in register 5, and if this is the expected value, the channel adapter is determined to be normal, and if it is not the expected value, it is determined to be abnormal.
ごのようにして、中央制御部から他の入出力命令を、従
来抑止していた区間に発行することができる。In this way, other input/output commands can be issued from the central control unit to the sections that were previously suppressed.
本発明の一実施例を第2図〜第4図に基づき説明する。 An embodiment of the present invention will be described based on FIGS. 2 to 4.
第2図は本発明の一実施例構成のチャネル・アダプタ、
第3図(A)は本発明のタイミングチャト説明図、第3
図(B)は本発明の制御用メモリ説明図、第4図は本発
明の動作説明フローチャ1−である。FIG. 2 shows a channel adapter configured as an embodiment of the present invention.
FIG. 3(A) is a timing chart explanatory diagram of the present invention;
FIG. 4B is an explanatory diagram of the control memory of the present invention, and FIG. 4 is a flowchart 1- for explaining the operation of the present invention.
第2図は本発明によるチャネル・アダプタを示し、シス
テム構成としては第5図に示すチャネル・アダプタ41
に対応するものである。FIG. 2 shows a channel adapter according to the present invention, and the system configuration includes a channel adapter 41 shown in FIG.
This corresponds to
第2図すこおいて、第1図と同−記号部は同一部分を示
す。In FIG. 2, the same parts as in FIG. 1 are indicated by the same symbols.
タイマ3はカウンタ3−0、ゼロ検出部3−1、アンド
ゲート3−2.3−3、オアゲート3−4、減算器3−
5、インハ−り3−6を具(rtiiする。そして10
は割込み信号保持用のフリップ・70ツブ(以下FFと
いう)であり、11はオアゲ 1−112はアンドゲー
ト、13はインバータである。The timer 3 includes a counter 3-0, a zero detector 3-1, an AND gate 3-2, 3-3, an OR gate 3-4, and a subtracter 3-
5. Fill in-holes 3-6 (rtii) and 10
is a flip 70-tube (hereinafter referred to as FF) for holding an interrupt signal, 11 is an OR gate, 1-112 are AND gates, and 13 is an inverter.
またコントロール・ス)・レイン2には、第3図(■3
)で示す如く、チャネル・アダプタのファムウェア2−
1の外に、タグイン・レジスタ5のデータをセーブする
セーブ領域2−0、タイマ3からの割込回数を規定する
割込回数保持領域22等が用意され、この割込回数保持
領域2−2には事前にタイマ3からの割込回数の上限が
記入されている。In addition, in Control S) Rain 2, Figure 3 (■3
), the channel adapter firmware 2-
1, a save area 2-0 for saving the data of the tag-in register 5, an interrupt count holding area 22 for specifying the number of interrupts from the timer 3, etc. are prepared, and this interrupt count holding area 2-2 The upper limit of the number of interrupts from timer 3 is written in advance.
次ムこ本発明の動作について説明する。Next, the operation of the present invention will be explained.
■ チャネル・アダプタの動作をテストする場合、図示
省略した監視部(第5図参照)がチャネル・アダプタ及
び中央制御部に対してテスト開始] 5
を指示する。これによりチャネル・アダプタをテス1−
するために、中央制御部からチャネル・アダプタに対し
テスト用のアウト命令が発行される。(2) When testing the operation of the channel adapter, a monitoring section (not shown) (see FIG. 5) instructs the channel adapter and the central control section to start the test. This will test the channel adapter.
In order to do this, the central control unit issues a test out command to the channel adapter.
またチャネル・アダプタではテスト時のデータがチャネ
ルに出力しないようにゲー ト制御卸される。In addition, the channel adapter is gated so that test data is not output to the channel.
■ 第4図(A)のフローチャー1・に示ず如く、この
アウト命令が伝達されたとき、チャネル・アダプタのフ
ァームウェアにこのアウト命令のための割込みが発生ず
る。これにより、マイクロプロセッサ1はそのときタグ
イン・レジスタ5を読み出し、コントロール・ストレイ
ン2のセーブZU Mi2−0にこれをセーブする。次
に中央制御部から伝達されたアウト命令のデータをタグ
アラ1− レジスタ4にセットする。そして中央制御部
にタグアウト応答を出力する。この割込み処理は、第3
図(A)に示す如く、マイクロプロセッサ1の」−位レ
ベルの処理で行われる。(2) As shown in flowchart 1 of FIG. 4(A), when this out command is transmitted, an interrupt for this out command is generated in the firmware of the channel adapter. This causes the microprocessor 1 to then read the tag-in register 5 and save it in the save ZU Mi 2-0 of the control strain 2. Next, the data of the out command transmitted from the central control unit is set in the tag register 1-register 4. Then, a tag-out response is output to the central control unit. This interrupt processing is performed by the third
As shown in Figure (A), the processing is performed at the - level of the microprocessor 1.
■ マイクロプロセッサ1は、このタグアウト・レジス
タ4のセントを上位レヘルの処理で行ったあと、タグア
ウト・レジスタ4にセン1〜された1に
のデータに対するタグインをタグイン・レジスタ5にセ
ットするための処理を下位のレヘルで行う。■ After the microprocessor 1 has sent the data in the tagout register 4 through processing at the upper level, it sets the tagin in the tagin register 5 for the data 1 to 1 sent to the tagout register 4. processing is performed at a lower level.
■ 中央制御部は、前記アウト命令に対する確認を行う
ために、テスト用のイン命令を、第3図(A)に示ず時
刻1゛oで発行する。ごれによりチャネル・アダプタの
ファームウェアに、ごのイン命令の処理のための割込み
が発生ずる。ごの割込み処理により、第41図(B)の
フローチャー1・に示ず如く、タイマ起動が行われる。(2) The central control unit issues a test IN command at time 1'o, not shown in FIG. 3(A), in order to confirm the OUT command. This causes an interrupt to be generated in the channel adapter's firmware to process the next in command. As a result of the interrupt processing, the timer is activated as shown in flowchart 1 of FIG. 41(B).
かくしてマイクロプロセッサ1がタイマ3を起動制御す
るため「l」を、第2図に示すアントゲ−1−3−2に
出力する。このとき、アントゲ−) 3−2には固定値
が入力されているため、この固定値がアンドゲト3−2
、オアゲ−1−3−4を経由してカウンタ3−0に伝達
される。そしてカウンタ3−0がごの固定値にセントさ
れる。これによりタイマ3が起動し、前記1’ l 4
が10」となる。このため、インバータ3−6が「1」
を出力し、今度はアントゲ−ト3−3がオン状態となる
。カウンタ30の出力は減算器3−5により−1ずつ減
算され、この−1減算された値がアンドゲート3−3、
オアゲ−ト3−4を経由してカウンタ3−0にセン]・
されるので、結局カウンタ3−0は、動作カウンタに応
じ一1減算動作する。そしてカウンタ30の出力がオー
ルゼロ、つまり零になったとき、これがゼロ検出部3−
1により検出され、ゼロ検出部3−1より「1」が出力
され、オアゲート]1も[1]を出力し、F F ]、
Oがこれによりセットされ、割込み信号「1」を出力
する。Thus, the microprocessor 1 outputs "l" to the game 1-3-2 shown in FIG. 2 in order to start and control the timer 3. At this time, since a fixed value is input to Antogame) 3-2, this fixed value is input to Andogame 3-2.
, or-1-3-4 to the counter 3-0. The counter 3-0 is then set to the respective fixed value. This starts timer 3, and the 1' l 4
becomes 10. Therefore, inverter 3-6 is "1"
is output, and the ant gate 3-3 is now turned on. The output of the counter 30 is subtracted by -1 by a subtracter 3-5, and the value subtracted by -1 is input to the AND gate 3-3.
Sent to counter 3-0 via OR gate 3-4]
Therefore, the counter 3-0 eventually subtracts by 1 in accordance with the operation counter. Then, when the output of the counter 30 becomes all zero, that is, zero, this is detected by the zero detection section 3-
1 is detected, "1" is output from the zero detection unit 3-1, OR gate ]1 also outputs [1], F F ],
O is thereby set and outputs an interrupt signal "1".
■ これにより、第4図(C)に示すフローチャートの
如く、マイクロプロセッサ1は、この割込み信号のリセ
ットを行うため、リセット信号「1」をインバータ13
に出力する。これによりインバータ13は[OJを出力
し、アンドゲート12及びオアゲート11は「OJを出
力し、FF10はリセットされる。■ As a result, as shown in the flow chart shown in FIG. 4(C), the microprocessor 1 sends the reset signal "1" to the inverter 13 in order to reset this interrupt signal.
Output to. As a result, the inverter 13 outputs "OJ", the AND gate 12 and the OR gate 11 output "OJ", and the FF 10 is reset.
■ ところで、前記F F ] 0からの割込み信号に
より、マイクロプロセッサ1はセーブ領域20に保持し
ているタグイン・レジスタ5の初めのデータを読み出し
、このときタグイン・レジスタ5にセットされているデ
ータを読み出す。そしてこれらのデータを比較部1−0
で比較する。もし一致すれば、タグイン・レジスタ5が
書き替えられていないことを示しているので、初め零に
設定されているカウンタ1−1を+]する。そして、こ
のカウンタ]、−1の値が割込回数保持領域22に設定
されている割込回数と一致するか否か比較部1−0で比
較する。不一致ならば、すなわち一定の割込回数に達し
ていなければ、マイクロプロセッサ1は再びタイマ起動
信号を出力し、前記の如(カウンタ3−0に固定値を七
)l−L、同様の制御を行う。By the way, in response to the interrupt signal from F F ] 0, the microprocessor 1 reads the first data of the tag-in register 5 held in the save area 20, and at this time, the data set in the tag-in register 5 is read out. Then, compare these data with the comparison section 1-0.
Compare with. If they match, it indicates that the tag-in register 5 has not been rewritten, so the counter 1-1, which is initially set to zero, is incremented. Then, the comparator 1-0 compares whether the value of this counter], -1 matches the number of interrupts set in the interrupt number holding area 22. If there is a mismatch, that is, if the predetermined number of interrupts has not been reached, the microprocessor 1 outputs the timer activation signal again and performs the same control as described above (setting the fixed value to 7 to the counter 3-0). conduct.
■ ところで、前記■において、セーブ領域20の保持
データとタグイン・レジスタ5のブタとが不一致であれ
ば、タグイン・レジスタ5がタグアウト・レジスタ4の
データに対するタグインデータに書替えられていること
を示しているので、マイクロプロセッサ1は前記イン命
令に対する応答を出力し、カウンタ1−1をクリアして
割込回数をOとする。■ By the way, in the above (■), if the data held in the save area 20 and the data in the tag-in register 5 do not match, it means that the tag-in register 5 has been rewritten with the tag-in data corresponding to the data in the tag-out register 4. Therefore, the microprocessor 1 outputs a response to the IN command, clears the counter 1-1, and sets the number of interrupts to O.
■ また前記■においてタイマを再び起動し、同様の制
御を割込回数保持領域2−2に記入されている回数に達
するときまで繰返したとき、マイクロプロセッサ1は前
記イン命令に対する応答を出力し、カウンタ1−1をク
リアして割込回数を0とする。(2) In addition, when the timer is started again in (2) and the same control is repeated until the number of times recorded in the interrupt count holding area 2-2 is reached, the microprocessor 1 outputs a response to the IN instruction, Clear the counter 1-1 and set the number of interrupts to 0.
中央制御部は、このイン命令の応答により、タグイン・
レジスタ5のデータを読み出し、所定の値と一致するか
否かを比較してチャネル・アダプタの動作診断を行うこ
とになる。前記■では正常状態と診断され、前記■では
所定の値と一致しないので異常状態と判断され、それぞ
れに応した処理が行われることになる。In response to this in command, the central control unit performs tag-in.
The operation of the channel adapter is diagnosed by reading the data in the register 5 and comparing it to see if it matches a predetermined value. In the above case (2), it is diagnosed as a normal state, and in the above case (2), since it does not match the predetermined value, it is determined that the state is in an abnormal state, and processing corresponding to each case is performed.
第3図(A)はこの前記■におげろ状態を示すタイミン
グチャートである。時刻TOで中央制御部よりイン命令
が伝達され、タイマ起動が行われ、時刻T Iでタイマ
による割込み信号が出力されたときフグアラ1−・レジ
スタ4のデータがタグインレジスタ5に記入されていな
いため、タイマ3は再起動される。そして時刻T2でタ
グイン・レジスタ5にタグアウト・レジスタ4のデータ
に対するタグインがセットされるので、時刻T3におい
てタイマによる割込み信号が出力されたとき、前記イン
命令に対する応答が出力されることになる。FIG. 3(A) is a timing chart showing the state of decline in the above-mentioned (2). At time TO, an IN command is transmitted from the central control unit, the timer is started, and at time TI, when the timer outputs an interrupt signal, the data in Fuguara 1-Register 4 has not been written to Tag-in register 5. Therefore, timer 3 is restarted. Then, at time T2, the tag-in for the data in the tag-out register 4 is set in the tag-in register 5, so that when the interrupt signal from the timer is output at time T3, a response to the IN instruction is output.
なお、前記説明では、タグイン・レジスタ5のデータを
コントロール・ストレイン2のセーブケ■域2−0にセ
ットした例について説明したが勿論本発明はこれに限定
されるものではなく、他の保持手段、例えばレジスタを
使用してセーブしてもよい。またタイマ用のカウンタ3
−0として一1減算データをセットする例について説明
したが、勿論加算カウンタを使用して一定値をカラン1
−シたとき割込信号を出力するように構成してもよい。In the above explanation, an example was explained in which the data of the tag-in register 5 was set in the save key area 2-0 of the control strain 2, but the present invention is of course not limited to this, and other holding means, For example, it may be saved using registers. Also, counter 3 for timer
We have explained an example of setting 11 subtraction data as -0, but of course an addition counter is used to set a constant value to 1
- It may be configured to output an interrupt signal when an event occurs.
本発明によりアウト命令の応答を抑止していた区間にも
他の入出力命令をチャネル・アダプタに発行することが
できるので、きめ細かいテス1〜が実施できる。またフ
ァームウェアにテスト特有の処理を割込み処理だけにと
どめることができ、ファームウェアの開発保守が容易に
なる。さらにテストプログラムを作成するとき、タグイ
ン・レジスタのデータの変化する時間を見込む必要がな
いので、その作成も容易なものとなる。According to the present invention, other input/output commands can be issued to the channel adapter during the period in which the response to the OUT command is suppressed, so that detailed tests 1 to 1 can be performed. Further, processing specific to testing in firmware can be limited to interrupt processing, making firmware development and maintenance easier. Furthermore, when creating a test program, it is not necessary to take into account the time that the data in the tag-in register changes, so the test program can be created easily.
第1図は本発明の原理説明図、
第2図は本発明の一実施例構成図、
第3図(A)は本発明のタイミング・チャー1・説明図
、第3図(B)は本発明の制御用メモリ説明図、
第4図は本発明の動作説明フローチャー1−1第5図は
通信制御処理装置の構成とボスLとの接続状態説明図、
第6図は従来のテスト状態説明用フロ−チャト、
第7図は従来のテスト状態の問題点説明用タイムチャー
トである。
マイクロプロセッサ
コントロール・ストレイン
タイマ
タグアラ1−・レジスタ
タグイン・レジスタFig. 1 is an explanatory diagram of the principle of the present invention, Fig. 2 is a configuration diagram of an embodiment of the present invention, Fig. 3 (A) is an explanatory diagram of the timing chart 1 of the present invention, and Fig. 3 (B) is FIG. 4 is a flowchart 1-1 for explaining the operation of the present invention. FIG. 5 is an explanatory diagram of the configuration of the communication control processing device and the connection state with the boss L. FIG. 6 is a conventional test state. Explanatory Flow Chart FIG. 7 is a time chart for explaining problems in the conventional test state. Microprocessor control strain timer tag register 1-register tag-in register
Claims (1)
り制御されるチャネル・アダプタと、このチャネル・ア
ダプタを入出力命令によって制御する中央制御部と、前
記チャネル・アダプタのテスト開始または終了指示を行
う監視手段を有し、監視手段がテスト開始指示を発行す
ると、チャネル・アダプタがチャネルインタフェースを
折り返し、中央制御部がテスト用の入出力命令によって
インターロック方式のチャネルインタフェースを擬似す
る装置において、 中央制御部からテスト用の出力命令、入力命令が発行さ
れるとこれにもとづく処理を行うプロセッサ(1)と、 タグアウト保持手段(4)と、 タグイン保持手段(5)と、 タイマ(3)と、 タグイン保持手段(5)のデータをセーブする保持手段
(2−0)を有し、 中央制御部からテスト用の出力命令が伝達されたとき、
プロセッサ(1)によりタグイン保持手段(5)のデー
タを保持手段(2−0)にセーブするとともに、タグア
ウト保持手段(4)に出力命令の内容を保持し、テスト
用の入力命令が伝達されたとき、タイマ(3)を起動し
、そのタイムアウトにより前記セーブした保持手段(2
−0)のデータとタグイン保持手段(5)とをプロセッ
サ(1)で比較し、不一致のとき前記入力命令に対する
応答を返し、一致したときタイマを再起動し、タイマの
起動回数が規定の値に達したときも入力命令に対する応
答を返すようにしたことを特徴とするテスト用入出力命
令処理方式。[Claims] A channel adapter controlled by firmware having a plurality of program running levels, a central control unit that controls the channel adapter using input/output commands, and a central control unit that instructs the channel adapter to start or end a test. When the monitoring means issues a test start instruction, the channel adapter loops back the channel interface, and the central control unit simulates an interlock type channel interface by input/output commands for testing. A processor (1) that performs processing based on test output commands and input commands issued from the control unit, a tag-out holding means (4), a tag-in holding means (5), and a timer (3). , has a holding means (2-0) for saving the data of the tag-in holding means (5), and when a test output command is transmitted from the central control unit,
The processor (1) saves the data of the tag-in holding means (5) in the holding means (2-0), holds the contents of the output command in the tag-out holding means (4), and transmits the input command for testing. When the timer (3) is activated, the saved holding means (2) is started due to the timeout.
-0) and the tag-in holding means (5) are compared by the processor (1), and if they do not match, a response to the input command is returned, and if they match, the timer is restarted, and the number of times the timer is started is set to a specified value. An input/output command processing method for testing is characterized in that a response to an input command is returned even when the input command is reached.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2148354A JPH0440544A (en) | 1990-06-06 | 1990-06-06 | Processing system for input and output instructions for test |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2148354A JPH0440544A (en) | 1990-06-06 | 1990-06-06 | Processing system for input and output instructions for test |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0440544A true JPH0440544A (en) | 1992-02-10 |
Family
ID=15450885
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2148354A Pending JPH0440544A (en) | 1990-06-06 | 1990-06-06 | Processing system for input and output instructions for test |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0440544A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102632945A (en) * | 2012-04-16 | 2012-08-15 | 力帆实业(集团)股份有限公司 | Hand warming device for motorcycle |
-
1990
- 1990-06-06 JP JP2148354A patent/JPH0440544A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102632945A (en) * | 2012-04-16 | 2012-08-15 | 力帆实业(集团)股份有限公司 | Hand warming device for motorcycle |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1882917B (en) | Method and apparatus for monitoring and resetting a coprocessor | |
| CN105120259A (en) | Detection method and apparatus for digital television | |
| CN109597389B (en) | Test system of embedded control system | |
| US20240403188A1 (en) | Computer system and method for processing debug message of computer system | |
| JPH10254738A (en) | Emulator device and emulation method | |
| JPS6146543A (en) | Fault processing system of transfer device | |
| CN112667423A (en) | Method, device and system for diagnosing program running time abnormity | |
| JPH1115661A (en) | CPU self-diagnosis method | |
| CN113836035B (en) | Battery management system testing methods, devices and electronic equipment | |
| CN114637655A (en) | Software state automatic supervision method and system | |
| CA1133088A (en) | Control system for input/output apparatus | |
| JPH07109592B2 (en) | CPU-IO parallel operation simulation method | |
| JPS5855535B2 (en) | Multi-computer device for vehicles | |
| JPH06348544A (en) | Scsi simulator | |
| CN101206606A (en) | Method of monitoring input/output port data | |
| JPH0244436A (en) | Information processing monitoring system | |
| JP2924732B2 (en) | Self-diagnosis method for information processing device | |
| JP2002244885A (en) | Computer system monitoring system | |
| JPH0346853B2 (en) | ||
| JP2684966B2 (en) | I/O processor debug unit | |
| JPH1011325A (en) | Programmable controller | |
| JPH0149975B2 (en) | ||
| JP2000298599A (en) | Automatic testing system for exchange software | |
| JPS6146535A (en) | Pseudo error setting control system | |
| JPH07219609A (en) | Information processing equipment |