JP3192229B2 - Information processing device with diagnostic function for device peripherals - Google Patents

Information processing device with diagnostic function for device peripherals

Info

Publication number
JP3192229B2
JP3192229B2 JP20113492A JP20113492A JP3192229B2 JP 3192229 B2 JP3192229 B2 JP 3192229B2 JP 20113492 A JP20113492 A JP 20113492A JP 20113492 A JP20113492 A JP 20113492A JP 3192229 B2 JP3192229 B2 JP 3192229B2
Authority
JP
Japan
Prior art keywords
diagnostic
diagnosis
status
cpu
peripheral
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP20113492A
Other languages
Japanese (ja)
Other versions
JPH0652012A (en
Inventor
善幸 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 filed Critical Toshiba Corp
Priority to JP20113492A priority Critical patent/JP3192229B2/en
Publication of JPH0652012A publication Critical patent/JPH0652012A/en
Application granted granted Critical
Publication of JP3192229B2 publication Critical patent/JP3192229B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、装置周辺部の診断機
能を持つ情報処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus having a function of diagnosing peripheral portions of the apparatus.

【0002】[0002]

【従来の技術】一般に情報処理装置では、装置の中心部
および周辺部の診断が電源投入時に行われることが多
い。このうち、周辺部、即ち装置に接続された周辺装
置、或いはその周辺装置を制御する制御回路の診断につ
いては、各周辺部診断のために作成された診断プログラ
ムを装置内の主記憶にロードし、装置の中枢を成すCP
Uが、そのプログラムに従って各周辺部に対して順次実
行していくようにしていた。
2. Description of the Related Art Generally, in an information processing apparatus, diagnosis of a central portion and a peripheral portion of the device is often performed at the time of power-on. Of these, regarding the diagnosis of the peripheral units, that is, the peripheral devices connected to the device, or the control circuit that controls the peripheral devices, a diagnostic program created for each peripheral portion diagnosis is loaded into the main memory of the device. , CP which forms the center of the device
U sequentially executes each peripheral part according to the program.

【0003】[0003]

【発明が解決しようとする課題】しかし、近年の情報処
理装置では高機能化が進み、その周辺部も高機能化され
ているため、CPUが各周辺部の診断を順次実行してい
く従来の方式では、診断に多くの時間を要するという問
題があった。
However, in recent years, information processing apparatuses have become more sophisticated, and their peripheral parts have also become more sophisticated. The method has a problem that it takes much time for diagnosis.

【0004】この発明は上記事情に鑑みてなされたもの
でその目的は、装置周辺部の診断が、各周辺部毎に並行
して行え、もって診断時間が短縮できる情報処理装置を
提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an information processing apparatus capable of performing a diagnosis of a peripheral portion of the device in parallel for each peripheral portion, thereby shortening a diagnosis time. is there.

【0005】[0005]

【課題を解決するための手段】この発明は、情報処理装
置の各周辺部毎に、対応する周辺部の診断を実行するた
めの診断手段を設けると共に、各診断手段毎に、対応す
る周辺部に対する診断結果を保持するためのCPUから
アクセス可能なステータス保持手段であって、このCP
Uからのライト命令としての診断開始コマンドの実行に
よりセットされて当該診断手段を起動するスタートビッ
トを含むステータス保持手段を設け、上記CPU(の起
動手段)上記各診断手段に対する診断開始コマンドを
実行して対応するステータス保持手段のスタートビット
をセットすることで当該診断手段を起動し、各診断手段
では、対応する周辺部に対して予め定められた診断を実
行し、その診断結果を対応するステータス保持手段に保
持する構成としたことを特徴とするものである。
According to the present invention, a diagnostic means for performing a diagnosis of a corresponding peripheral part is provided for each peripheral part of the information processing apparatus, and a corresponding diagnostic means is provided for each diagnostic part.
From the CPU for storing the diagnostic results for the peripheral
Accessible status holding means, and
For execution of diagnostic start command as write instruction from U
Start bit that is set by the
The status holding means including preparative provided, the CPU (electromotive
Operating means) executes a diagnosis start command for each of the above-mentioned diagnostic means, and executes a start bit of the corresponding status holding means.
To activate the diagnostic means,
Now, perform a predetermined diagnosis on the corresponding peripheral part.
And store the diagnostic results in the corresponding status storage
It is characterized by having a configuration to hold .

【0006】[0006]

【0007】また、この発明は、上記ステータス保持手
段に診断状態を示す診断中ビットを持たせ、診断手段の
起動時に上記診断中ビットが診断実行中を示す状態に設
定され、診断終了時には当該診断中ビットが診断終了を
示す状態に設定される構成としたことをも特徴とする。
[0007] The present invention also provides the above status holding means.
Each stage has a diagnostic bit indicating the diagnostic status,
At startup, the above diagnostic bit is set to indicate that diagnostics are being performed.
When the diagnosis is completed, the diagnostic bit indicates that the diagnosis has been completed.
It is also characterized in that it is configured to be set in the state shown .

【0008】[0008]

【作用】上記の構成において、CPUは、例えば電源投
入時に、主記憶とその制御回路を備えた装置周辺部、表
示装置とその制御回路を備えた装置周辺部など、各装置
周辺部の診断手段に対して診断開始コマンドを実行して
対応するステータス保持手段のスタートビットをセット
することで当該診断手段を起動する。これにより、各診
断手段は、対応する装置周辺部に対して予め定められた
その周辺部に固有の診断を並行して実行し、その診断結
果を対応するステータス保持手段に保持する。この間、
CPUはCPU内部の診断など、装置周辺部の診断とは
異なる処理を行うことも可能である。また、CPUは各
ステータス保持手段の保持内容をリードするコマンドを
実行することで、各診断手段による各周辺部に対する診
断結果を得ることができる。
In the above arrangement, when the CPU is turned on, the CPU diagnoses the peripheral devices of the respective devices such as a peripheral device having a main memory and its control circuit and a peripheral device having a display device and its control circuit. run the diagnostic start command to the
Set the start bit of the corresponding status holding means
This activates the diagnostic means. Thereby, each diagnostic means executes a predetermined diagnosis peculiar to the peripheral portion in parallel with the corresponding device peripheral portion, and executes the diagnostic result.
The result is held in the corresponding status holding means . During this time,
The CPU can also perform processing different from the diagnosis of the peripheral portion of the apparatus, such as the diagnosis inside the CPU. In addition, the CPU
Command to read the contents held by the status holding means
By executing, the diagnosis of each peripheral part by each diagnostic means
The result can be obtained.

【0009】[0009]

【0010】また、ステータス保持手段に診断状態を示
す診断中ビットを持たせた構成では、診断手段の起動時
には診断中ビットが診断実行中を示す状態に設定され、
診断終了時には当該診断中ビットが診断終了を示す状態
に設定される。したがって、CPUは、ステータス保持
手段の保持内容を所望のタイミングでリードしても、そ
の保持内容が診断終了後の診断結果を表しているか否か
を判断できる。
[0010] Also, the status holding means indicates the diagnostic state.
In a configuration with a diagnostic bit, the diagnostic
The diagnostic bit is set to indicate that diagnostics are being performed.
When the diagnosis is completed, the diagnostic bit indicates that the diagnosis has been completed.
Is set to Therefore, the CPU keeps the status
Even if the contents held by the means are read at the desired timing,
Whether or not the content of the data indicates the diagnosis result after the diagnosis is completed
Can be determined.

【0011】[0011]

【実施例】図1はこの発明の一実施例に係る装置周辺部
の診断機能を持つ情報処理装置の構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of an information processing apparatus having a function of diagnosing peripheral portions of an apparatus according to an embodiment of the present invention.

【0012】図1に示す情報処理装置は、同装置の制御
中枢を成すCPU1と、装置周辺部2-1,2-2…2-n
と、CPU1および装置周辺部2-1,2-2…2-nが接続
されるシステムバス3と、装置周辺部2-1,2-2…2-n
を診断するための診断回路4-1,4-2…4-nとから構成さ
れる。
The information processing apparatus shown in FIG. 1 has a CPU 1 forming a control center of the information processing apparatus, and peripheral devices 2-1, 2-2... 2-n.
A system bus 3 to which the CPU 1 and the device peripheral units 2-1, 2-2... 2-n are connected, and a device peripheral unit 2-1, 2-2.
... 4-n for diagnosing.

【0013】装置周辺部2-1は、主記憶11と、同主記
憶11を制御する主記憶制御回路12とから構成され
る。このように本実施例では、主記憶11およびその制
御回路(主記憶制御回路)12も、装置周辺部として位
置付けている。
The device peripheral section 2-1 comprises a main memory 11 and a main memory control circuit 12 for controlling the main memory 11. As described above, in the present embodiment, the main memory 11 and its control circuit (main memory control circuit) 12 are also positioned as peripheral portions of the apparatus.

【0014】装置周辺部2-2は、表示装置21と、同表
示装置21を制御する表示制御回路22と、同表示装置
21の表示イメ一ジを格納するためのVRAM(ビデオ
RAM)23とから構成される。装置周辺部2-nは、
(磁気ディスク装置などの)ディスク装置n1と、同デ
ィスク装置n1を制御するディスク制御回路n2とから
構成される。なお、図1では、他の装置周辺部、例えば
印刷装置とその制御回路、キーボード装置とその制御回
路等の各装置周辺部については省略されている。
The device peripheral section 2-2 includes a display device 21, a display control circuit 22 for controlling the display device 21, a VRAM (video RAM) 23 for storing a display image of the display device 21, Consists of The device peripheral part 2-n is
It comprises a disk drive n1 (such as a magnetic disk drive) and a disk control circuit n2 for controlling the disk drive n1. In FIG. 1, other peripheral parts of the apparatus such as a printing apparatus and its control circuit, a keyboard apparatus and its control circuit, and the like are omitted.

【0015】診断回路4-1〜4-nは、装置周辺部2-1〜
2-nに対し、その周辺部2-1〜2-nに固有の予め定めら
れた診断を実行する診断実行回路5-1〜5-nと、この診
断実行回路5-1〜5-nの診断結果を保持するためのステ
ータスレジスタ6-1〜6-nとを持つ。ステータスレジス
タ6-1〜6-nは、診断実行回路5-1〜5-nを起動するた
めのスタートビットSTBを持つ。このスタートビット
STBは、CPU1の診断スタートコマンド実行により
セットされるものである。またステータスレジスタ6-1
〜6-nは、スタートビットSTBの他、診断実行中を示
すための“診断中ビット”、タイムアウト発生を示す
“タイムアウトビット”、エラー有りを示す“エラービ
ット”等(いずれも図示せず)を持つ。次に、図1に示
す情報処理装置の周辺部の診断について、図2のフロー
チャートを参照して説明する。
The diagnostic circuits 4-1 to 4-n are connected to peripheral parts 2-1 to 4-2 of the apparatus.
A diagnosis execution circuit 5-1 to 5-n for executing a predetermined diagnosis specific to the peripheral parts 2-1 to 2-n for 2-n, and a diagnosis execution circuit 5-1 to 5-n And status registers 6-1 to 6-n for holding the diagnosis results. The status registers 6-1 to 6-n have start bits STB for activating the diagnostic execution circuits 5-1 to 5-n. The start bit STB is set when the CPU 1 executes the diagnostic start command. Status register 6-1
.About.6-n are a start bit STB, a "diagnosing bit" for indicating that a diagnosis is being executed, a "timeout bit" for indicating that a timeout has occurred, an "error bit" for indicating that an error has occurred (none of them is shown). have. Next, diagnosis of the peripheral portion of the information processing apparatus shown in FIG. 1 will be described with reference to the flowchart of FIG.

【0016】まずCPU1は、装置の電源投入時に、装
置周辺部2-1〜2-nに接続された診断回路4-1〜4-nに
対し、診断スタートコマンド(診断開始コマンド)を例
えば予め定められた順に実行する(ステップS1-1〜1
-n)。この診断スタートコマンドは、一種のI/O(入
出力)ライト命令であり、装置周辺部2-i(i=1〜
n)に接続された診断回路4-i内のステータスレジスタ
6-iのスタートビットSTBをセットすることを指示す
る。即ちCPU1は、診断回路4-1〜4-nに対して診断
スタートコマンドを順に実行することにより、診断回路
4-1〜4-n内のステータスレジスタ6-1〜6-nのスター
トビットSTBをそれぞれセットする。
First, when the apparatus is powered on, the CPU 1 sends a diagnostic start command (diagnosis start command) to the diagnostic circuits 4-1 to 4-n connected to the peripheral units 2-1 to 2-n in advance, for example. The steps are executed in a predetermined order (steps S1-1 to S1-1).
-n). This diagnostic start command is a kind of I / O (input / output) write instruction, and is a peripheral device 2-i (i = 1 to 1).
Instruct the start bit STB of the status register 6-i in the diagnostic circuit 4-i connected to n) to be set. That is, the CPU 1 sequentially executes the diagnostic start command for the diagnostic circuits 4-1 to 4-n, thereby starting the start bits STB of the status registers 6-1 to 6-n in the diagnostic circuits 4-1 to 4-n. Set each.

【0017】ステータスレジスタ6-1〜6-nのスタート
ビットSTBがセットされると、診断回路4-1〜4-n内
の診断実行回路5-1〜5-nが起動される。これにより診
断実行回路5-1〜5-nは、ステータスレジスタ6-1〜6
-nの“診断中ビット”をセットして診断実行中であるこ
とを示して、対応する装置周辺部2-1〜2-nに対する診
断処理を並行して実行する。診断実行回路5-1〜5-n
は、この診断処理において、対応する装置周辺部2-1〜
2-n内の各回路に固有の予め定められた診断動作、即ち
同周辺部2-1〜2-nのテストに合致した動作のみ実行す
る。例えば診断実行回路5-1が装置周辺部2-1内の主記
憶11を診断する場合は、連続したアドレスに対し、そ
れぞれライト/リード/コンペア動作、即ちテストデー
タを主記憶11にライトし、そのライトしたデータを主
記憶11からリードし、そのリードしたデータとテスト
データとをコンペアする動作を繰返す。
When the start bit STB of the status registers 6-1 to 6-n is set, the diagnostic execution circuits 5-1 to 5-n in the diagnostic circuits 4-1 to 4-n are activated. As a result, the diagnostic execution circuits 5-1 to 5-n store the status registers 6-1 to 6
The "diagnosing bit" of -n is set to indicate that the diagnosis is being executed, and the diagnostic processing for the corresponding device peripheral units 2-1 to 2-n is executed in parallel. Diagnosis execution circuit 5-1 to 5-n
In this diagnostic processing, the corresponding device peripheral parts 2-1 to
Only a predetermined diagnostic operation unique to each circuit in 2-n, that is, an operation that matches the test of the peripheral units 2-1 to 2-n is executed. For example, when the diagnostic execution circuit 5-1 diagnoses the main memory 11 in the device peripheral unit 2-1, a write / read / compare operation is performed on continuous addresses, that is, test data is written to the main memory 11, The operation of reading the written data from the main memory 11 and comparing the read data with the test data is repeated.

【0018】診断回路4-i(i=1〜n)内の診断実行
回路5-iの装置周辺部2-iに対する診断結果は、ステー
タスレジスタ6-iに書込まれる。例えば、タイムアウト
発生時にはステータスレジスタ6-iの“タイムアウトビ
ット”がセットされ、エラー発生時には“エラービッ
ト”がセットされる。診断実行回路5-iは、装置周辺部
2-iに対する診断を終了すると、ステータスレジスタ6
-iの“診断中ビット”をリセットする。
The diagnostic result of the diagnostic execution circuit 5-i in the diagnostic circuit 4-i (i = 1 to n) for the peripheral part 2-i is written to the status register 6-i. For example, when a timeout occurs, the "timeout bit" of the status register 6-i is set, and when an error occurs, the "error bit" is set. When the diagnosis execution circuit 5-i completes the diagnosis for the device peripheral section 2-i, the status register 6
Reset the "diagnosing bit" of -i.

【0019】以上のように本実施例によれば、CPU1
が、装置周辺部2-1〜2-nに接続された診断回路4-1〜
4-nに対して診断スタートコマンドを実行するだけで、
診断回路4-1〜4-n内の診断実行回路5-1〜5-nが起動
されて、同回路5-1〜5-nにより装置周辺部2-1〜2-n
の診断動作が行われる。このためCPU1は、診断回路
4-1〜4-n内の診断実行回路5-1〜5-nの診断動作と並
行して、自身の診断など、装置周辺部2-1〜2-nの診断
とは異なる処理を行うことができ、処理効率が向上す
る。また、装置周辺部2-1〜2-nの診断が並行して行わ
れることから、従来に比べて診断時間も大幅に短縮す
る。
As described above, according to the present embodiment, the CPU 1
Are the diagnostic circuits 4-1 to 4-1 connected to the peripheral units 2-1 to 2-n.
Just execute the diagnostic start command for 4-n,
The diagnostic execution circuits 5-1 to 5-n in the diagnostic circuits 4-1 to 4-n are started, and the circuits 2-1 to 5-n are used by the diagnostic circuits 5-1 to 5-n.
Is performed. For this reason, the CPU 1 performs the diagnostic operations of the diagnostic execution circuits 5-1 to 5-n in the diagnostic circuits 4-1 to 4-n in parallel with the diagnostic operations of the device peripheral units 2-1 to 2-n. Processing different from diagnosis can be performed, and processing efficiency is improved. In addition, since the diagnosis of the device peripheral parts 2-1 to 2-n is performed in parallel, the diagnosis time is greatly reduced as compared with the related art.

【0020】さてCPU1は、装置周辺部2-1〜2-nに
接続された診断回路4-1〜4-nに対して診断スタートコ
マンドを実行し、更に自身の診断など、所定の処理を行
うと、例えば装置周辺部2-1に接続された診断回路4-1
に対してステータスリードコマンドを実行する(ステッ
プS2-1)。これによりCPU1は、診断回路4-1内の
ステータスレジスタ6-1の内容、即ち、装置周辺部2-1
に対する診断結果のステータスを、装置周辺部2-1、シ
ステムバス3を介して読込む。
The CPU 1 executes a diagnostic start command for the diagnostic circuits 4-1 to 4-n connected to the peripheral units 2-1 to 2-n, and further performs predetermined processing such as a diagnosis of itself. When this is done, for example, the diagnostic circuit 4-1 connected to the device peripheral unit 2-1
, A status read command is executed (step S2-1). As a result, the CPU 1 sets the contents of the status register 6-1 in the diagnostic circuit 4-1, that is, the device peripheral unit 2-1.
The status of the diagnosis result for the device is read via the device peripheral unit 2-1 and the system bus 3.

【0021】次にCPU1は、診断回路4-1内のステー
タスレジスタ6-1から読込んだステータスの“診断中ビ
ット”を参照して、装置周辺部2-1に対する診断が終了
しているか否かをチェックする(ステップS3-1)。
Next, the CPU 1 refers to the status "diagnosing bit" of the status read from the status register 6-1 in the diagnostic circuit 4-1 to determine whether or not the diagnostics for the device peripheral unit 2-1 have been completed. Is checked (step S3-1).

【0022】もし終了していなければ(“診断中ビッ
ト”がセットされているならば)、CPU1は一定時間
を待った後、再びステップS2-1を実行して、ステータ
スレジスタ6-1からのステータス読込みを行う。
If the processing has not been completed (if the "diagnosing bit" has been set), the CPU 1 waits for a certain period of time, executes step S2-1 again, and returns the status from the status register 6-1. Perform reading.

【0023】これに対し、装置周辺部2-1に対する診断
が終了していれば、CPU1はステータスレジスタ6-1
から読込んだステータスの“エラービット”等を参照し
て、装置周辺部2-1に対する診断エラーが有るか否かを
チェックする(ステップS4-1)。
On the other hand, if the diagnosis for the peripheral part 2-1 has been completed, the CPU 1 sets the status register 6-1.
It is checked whether or not there is a diagnostic error with respect to the device peripheral unit 2-1 by referring to the "error bit" of the status read from (step S4-1).

【0024】もし、エラーが有るならば、CPU1は装
置周辺部2-1にエラーが有る旨のエラー表示を行う(ス
テップS5)。これにより、ユーザ(操作員)は装置周
辺部2-1を調べて、必要があれば交換等を行うことがで
きる。
If there is an error, the CPU 1 performs an error display to the effect that there is an error in the device peripheral unit 2-1 (step S5). As a result, the user (operator) can check the peripheral portion 2-1 of the device, and if necessary, replace the device.

【0025】これに対し、エラーが無いならば、CPU
1は上記ステップS2-1〜S4-1と同様の処理を、装置
周辺部2-2に接続された診断回路4-2を対象に実行す
る。即ちCPU1は、診断回路4-2内のステータスレジ
スタ6-2からのステータス読込みを行い(ステップS2
-2)、読込んだステータスが診断終了を示しているか否
かをチェックし(ステップS3-2)、診断終了を示して
いるならば、同ステータスがエラー有りを示しているか
否かをチェックする(ステップS4-2)。もし、エラー
有りを示しているならば、CPU1はステップS5に進
み、装置周辺部2-2にエラーが有る旨のエラー表示を行
う。
On the other hand, if there is no error, the CPU
1 executes the same processing as the above-described steps S2-1 to S4-1 on the diagnostic circuit 4-2 connected to the apparatus peripheral unit 2-2. That is, the CPU 1 reads the status from the status register 6-2 in the diagnostic circuit 4-2 (step S2).
-2), check whether the read status indicates the end of the diagnosis (Step S3-2), and if the status indicates the end of the diagnosis, check whether the status indicates the presence of an error. (Step S4-2). If it indicates that there is an error, the CPU 1 proceeds to step S5, and displays an error in the peripheral part 2-2 of the apparatus that there is an error.

【0026】これに対し、エラー無しを示しているなら
ば、CPU1は、前記ステップS4-1において装置周辺
部2-1のエラー無しを検出した場合と同様の処理を、装
置周辺部2-2の次の装置周辺部に接続された診断回路を
対象に実行する。
On the other hand, if no error is indicated, the CPU 1 executes the same processing as in the case where no error has been detected in the device peripheral section 2-1 in step S4-1. Is executed for the diagnostic circuit connected to the peripheral of the next device.

【0027】このようにして、装置周辺部2-1から装置
周辺部2-nの直前の装置周辺部までのエラー無しが確認
されると、CPU1は、同様の処理を、装置周辺部2-n
に接続された診断回路4-nを対象に実行する。即ちCP
U1は、診断回路4-n内のステータスレジスタ6-nから
のステータス読込みを行い(ステップS2-n)、読込ん
だステータスが診断終了を示しているか否かをチェック
し(ステップS3-n)、診断終了を示しているならば、
同ステータスがエラー有りを示しているか否かをチェッ
クする(ステップS4-n)。ここで、エラーが有りを示
しているならば、CPU1は装置周辺部2-nにエラーが
有る旨のエラー表示を行う(ステップS5)。
In this manner, when it is confirmed that there is no error from the device peripheral unit 2-1 to the device peripheral unit immediately before the device peripheral unit 2-n, the CPU 1 executes the same processing as the device peripheral unit 2-2-1. n
Is executed for the diagnostic circuit 4-n connected to. That is, CP
U1 reads the status from the status register 6-n in the diagnostic circuit 4-n (step S2-n), and checks whether the read status indicates the end of the diagnosis (step S3-n). , Indicating that the diagnosis has been completed,
It is checked whether the status indicates that there is an error (step S4-n). Here, if the presence of an error is indicated, the CPU 1 displays an error in the peripheral part 2-n of the apparatus (step S5).

【0028】これに対し、エラー無しを示しているなら
ば、CPU1は、全ての装置周辺部2-1〜2-nが正常で
あるものとして、システム立ち上げを実行する(ステッ
プS6)。
On the other hand, if no error is indicated, the CPU 1 determines that all the peripheral units 2-1 to 2-n are normal and executes system startup (step S6).

【0029】なお、前記実施例では、読取ったステータ
スにより診断終了が示されていない場合には、CPU1
は再度同じステータスレジスタからのステータス読込み
(再読込み)を実行するものとして説明したが、次の診
断回路内のステータスレジスタからのステータス読込み
に進み、再読込みについては、ステータス読込みが一巡
した後に行うようにしてもよい。
In the above embodiment, if the read status does not indicate the end of the diagnosis, the CPU 1
Described that the status reading (re-reading) from the same status register is executed again. However, the process proceeds to the status reading from the status register in the next diagnostic circuit, and the re-reading is performed after the status reading has completed one cycle. It may be.

【0030】また、前記実施例では、CPU1は診断回
路4-i(i=1〜n)内の診断実行回路5-iによる診断
動作が終了しているか否かに無関係に、ステータス読込
みを行うものとして説明したが、これに限るものではな
い。例えば、各診断回路4-i内の診断実行回路5-iが診
断終了時にCPU1に対してシステムバス3経由で割込
み(診断終了割込み)をかけ、この割込みによりCPU
1がその診断回路4-i内のステータスレジスタ6-iから
のステータス読込みを行うようにしても構わない。
In the above embodiment, the CPU 1 reads the status irrespective of whether or not the diagnosis operation by the diagnosis execution circuit 5-i in the diagnosis circuit 4-i (i = 1 to n) has been completed. However, the present invention is not limited to this. For example, the diagnosis execution circuit 5-i in each diagnosis circuit 4-i interrupts the CPU 1 via the system bus 3 at the end of diagnosis (diagnosis end interrupt).
1 may read the status from the status register 6-i in the diagnostic circuit 4-i.

【0031】また、前記実施例では、各診断回路4-i内
の診断実行回路5-iは、CPU1からの診断スタートコ
マンド実行により起動されるものとして説明したが、各
診断回路4-i内に電源投入を検出するための電源投入検
出回路を設け、この検出回路の電源投入検出により起動
されるようにしてもよい。
In the above embodiment, the diagnosis execution circuit 5-i in each diagnosis circuit 4-i has been described as being started by executing a diagnosis start command from the CPU 1. May be provided with a power-on detection circuit for detecting power-on, and may be activated by the power-on detection of this detection circuit.

【0032】[0032]

【発明の効果】以上詳述したようにこの発明によれば、
情報処理装置の各周辺部毎に対応する周辺部の診断を実
行するための診断手段を設けると共に、各診断手段毎に
スタートビットを含むステータス保持手段を設け、CP
Uからのライト命令としての診断開始コマンド(診断ス
タートコマンド)の実行によりステータス保持手段のス
タートビットをセットすることで当該診断手段を起動す
る構成としたので、各装置周辺部の診断がCPUから独
立に且つ並行して行えるようになり、従来に比べて診断
時間を大幅に短縮でき、しかもCPUの負荷を軽減する
こともできる。
As described in detail above, according to the present invention,
Rutotomoni provided a diagnostic means for performing diagnosis of the peripheral portion that corresponds to each peripheral unit of the information processing apparatus, each diagnostic unit
A status holding means including a start bit is provided.
The execution of the diagnosis start command (diagnosis start command) as a write instruction from the U causes the status holding means to scan.
Since the diagnosis means is activated by setting the start bit, the diagnosis of the peripheral parts of each device can be performed independently and in parallel from the CPU, and the diagnosis time can be significantly reduced as compared with the conventional case. In addition, the load on the CPU can be reduced.

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

【図1】この発明の一実施例に係る装置周辺部の診断機
能を持つ情報処理装置の構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of an information processing apparatus having a function of diagnosing peripheral portions of an apparatus according to an embodiment of the present invention.

【図2】同実施例の動作を説明するためのフローチャー
ト。
FIG. 2 is a flowchart for explaining the operation of the embodiment.

【符号の説明】[Explanation of symbols]

1…CPU、2-1〜2-n…装置周辺部、3…システムバ
ス、4-1〜4-n…診断回路、5-1〜5-n…診断実行回
路、6-1〜6-n…ステータスレジスタ、STB…スター
トビット。
DESCRIPTION OF SYMBOLS 1 ... CPU, 2-1 to 2-n ... Device peripheral part, 3 ... System bus, 4-1 to 4-n ... Diagnostic circuit, 5-1 to 5-n ... Diagnostic execution circuit, 6-1 to 6- n: status register, STB: start bit.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/22 - 11/277 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/22-11/277

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 装置の中枢を成すCPUを備えた情報処
理装置において、 前記装置の各周辺部毎に設けられ、対応する周辺部の診
断を実行するための診断手段と、前記各診断手段毎に設けられ、対応する前記周辺部に対
する診断結果を保持するための前記CPUからアクセス
可能なステータス保持手段であって、前記CPUからの
当該診断手段に対するライト命令としての診断開始コマ
ンドの実行によりセットされて当該診断手段を起動する
スタートビットを含むステータス保持手段と、 前記CPUに設けられ、前記各診断手段に対する診断開
始コマンドを実行して対応する前記ステータス保持手段
の前記スタートビットをセットすることで当該診断手段
を起動する起動手段とを具備し、 前記各診断手段は、対応する前記ステータス保持手段の
前記スタートビットがセットされることで起動されて、
対応する前記周辺部に対して予め定められた診断を実行
し、その診断結果を対応する前記ステータス保持手段に
保持することを特徴とする情報処理装置。
The information processing apparatus having a CPU constituting the center of 1. A device, wherein provided for each peripheral unit of the apparatus, and diagnostic means for performing diagnosis of the peripheral portion corresponding, each diagnostic unit for each At the corresponding peripheral part.
Access from the CPU to hold diagnostic results
Possible status holding means, and
Diagnostic start frame as a write command to the diagnostic means
Set to start the diagnostic means
Status holding means including a start bit, and a diagnostic opening provided in the CPU for each diagnostic means.
Start command corresponding to the status holding means
By setting the start bit of
Activating means for activating the status holding means.
Activated by setting the start bit ,
Performs a predetermined diagnosis on the corresponding peripheral part
And stores the diagnosis result in the corresponding status holding means.
An information processing device characterized by holding .
【請求項2】 前記ステータス保持手段には診断状態を
示す診断中ビットが含まれており、 前記診断手段は、起動時に前記診断中ビットを診断実行
中を示す状態に設定し、診断終了時には当該診断中ビッ
トを診断終了を示す状態に設定することを特徴とする請
求項1記載の 情報処理装置。
2. The diagnostic apparatus according to claim 2, wherein the status holding means stores a diagnostic state.
The diagnostic means executes the diagnostic bit at the time of startup.
Set the status to indicate
The contract is set to a state indicating the end of diagnosis.
The information processing apparatus according to claim 1 .
JP20113492A 1992-07-28 1992-07-28 Information processing device with diagnostic function for device peripherals Expired - Fee Related JP3192229B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20113492A JP3192229B2 (en) 1992-07-28 1992-07-28 Information processing device with diagnostic function for device peripherals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20113492A JP3192229B2 (en) 1992-07-28 1992-07-28 Information processing device with diagnostic function for device peripherals

Publications (2)

Publication Number Publication Date
JPH0652012A JPH0652012A (en) 1994-02-25
JP3192229B2 true JP3192229B2 (en) 2001-07-23

Family

ID=16435972

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20113492A Expired - Fee Related JP3192229B2 (en) 1992-07-28 1992-07-28 Information processing device with diagnostic function for device peripherals

Country Status (1)

Country Link
JP (1) JP3192229B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020037415A (en) * 2000-11-14 2002-05-21 구자홍 Peripheral Device State Monitoring Apparatus
KR100433547B1 (en) * 2002-04-11 2004-05-31 삼성전자주식회사 Method and apparatus for checking state of peripheral
JP5320780B2 (en) * 2008-03-17 2013-10-23 富士通株式会社 Information processing system, function expansion device, and control method

Also Published As

Publication number Publication date
JPH0652012A (en) 1994-02-25

Similar Documents

Publication Publication Date Title
JP3192229B2 (en) Information processing device with diagnostic function for device peripherals
JP2812630B2 (en) Test method and test apparatus for buffer storage device
JPS61220030A (en) Software discriminating system
JPH1069399A (en) Microcomputer
JP2684966B2 (en) I / O processor debug device
EP0545396A2 (en) Apparatus and method for information processing
JP3060376U (en) Memory device
JPS5835648A (en) Program execution controlling system
JPH0962534A (en) Self-diagnostic method for electronic computer
JPH02244232A (en) Information processor
JP2967741B2 (en) CPU compatibility test equipment
JPH05151021A (en) Debugging system using debugger with built-in resident area
JPH07168768A (en) Initial self-diagnosing method
JPH0299379A (en) Printer
JPS63316242A (en) Diagnosing system
JPH05181781A (en) Input/output control device
JPH05165671A (en) Program debugging device
JP2000353109A (en) Emulator and emulation system
JPH076103A (en) Fault processing system for input/output channel
JPS6029131B2 (en) Diagnostic method
JPH05173829A (en) Error generating method
JPS6167146A (en) Pseudo fault generating system
JPS59229658A (en) Information processor
JPH07141219A (en) Microcomputer
JPH05233273A (en) Information processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees