JPH05158627A - Disk device - Google Patents

Disk device

Info

Publication number
JPH05158627A
JPH05158627A JP3327489A JP32748991A JPH05158627A JP H05158627 A JPH05158627 A JP H05158627A JP 3327489 A JP3327489 A JP 3327489A JP 32748991 A JP32748991 A JP 32748991A JP H05158627 A JPH05158627 A JP H05158627A
Authority
JP
Japan
Prior art keywords
fifo
disk device
signal
bus
disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3327489A
Other languages
Japanese (ja)
Inventor
Tomoyoshi Kawashita
朝好 川下
Suetada Ito
末忠 伊藤
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP3327489A priority Critical patent/JPH05158627A/en
Publication of JPH05158627A publication Critical patent/JPH05158627A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable a host device to analyze the execution details of a control program on the disk device and the details of transfer on a bus. CONSTITUTION:This SCSI hard disk device which is connected to the host device by a bus interface and has a microcomputer internally consists of a disk mechanism part 1, a data decoder part 2, a data encoder part 3, a disk controller part 4, a buffer memory part 5, a DMA controller part 6, a CPU part 7, a ROM part 8, a RAM part 9, an FIFO controller part 10, and an FIFO part 11 and is connected to the host device through the SCSI bus. Then the FIFO controller part 10 monitors the details of the state change of a SCSI bus signal, and the details are stored in the FIFO part 11 on a lap-around basis and read out at a request from the host device.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ディスク装置に関し、
特に内部にマイクロコンピュータを有するインテリジェ
ントなディスク装置において、ディスク装置の動作経緯
の詳細を上位装置から正確に管理することが可能とされ
るディスク装置に適用して有効な技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk device,
In particular, the present invention relates to a technology effectively applied to an intelligent disk device having a microcomputer therein, which is applied to a disk device in which details of the operation history of the disk device can be accurately managed from a host device.

【0002】[0002]

【従来の技術】従来、SCSI(Small Computer Syste
m Interface )のハードディスク装置においては、AN
SI規格X3・131−1986SCSI日本語訳(日
本規格協会発行)の7章第7.1.2項に記載のよう
に、REQUEST SENSEコマンドによって、ハ
ードディスク装置の状態(ステータス)を上位装置が刈
り取ることができるようになっている。
2. Description of the Related Art Conventionally, SCSI (Small Computer Syste
m interface) hard disk drive, AN
As described in Chapter 7 Section 7.1.2 of SI Standard X3131-1986 SCSI Japanese Translation (issued by the Japanese Standards Association), the higher-level device can cut the hard disk device status by the REQUEST SENSE command. You can do it.

【0003】[0003]

【発明が解決しようとする課題】ところが、前記のよう
な従来技術においては、ハードディスク装置がマイクロ
コンピュータを持ち、インテリジェント化されているに
もかかわらず、センスキーは、ハードウエアエラー、メ
ディアエラー、ノットレディなどの代表的なエラーに集
約されて報告され、それを補足するセンスコードも簡単
なものであるため、ハードディスク装置の詳細状態が分
からないという欠点がある。
However, in the prior art as described above, even though the hard disk device has a microcomputer and is made intelligent, the sense key has a hardware error, a media error, and a knot. There is a drawback in that the detailed status of the hard disk device cannot be known because the sense code that collects and reports to typical errors such as ready and the like is also simple.

【0004】加えて、たとえば同じハードウエアエラー
であっても、どのような制御を実行してそのような結果
になったのかが分からないと、エラーの根本原因の追及
ができず、トラブルシュートに多大な工数を要したり、
信頼性を著しく低下させる結果を招くことになるという
問題があった。
In addition, for example, even if the same hardware error occurs, if it is not known what kind of control is executed and what kind of result is obtained, the root cause of the error cannot be sought and trouble shooting is carried out. Requires a lot of man-hours,
There is a problem in that the reliability is significantly reduced.

【0005】そこで、本発明の目的は、このような従来
の問題を解決し、上位装置がディスク装置内の制御プロ
グラムの実行経緯やバス上の転送経緯を解析することが
できるディスク装置を提供することにある。
Therefore, an object of the present invention is to solve such a conventional problem and provide a disk device in which a host device can analyze the execution history of a control program in the disk device and the transfer history on the bus. Especially.

【0006】本発明の前記ならびにその他の目的と新規
な特徴は、本明細書の記述および添付図面から明らかに
なるであろう。
The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

【0007】[0007]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
下記のとおりである。
Among the inventions disclosed in the present application, a brief description will be given to the outline of typical ones.
It is as follows.

【0008】すなわち、本発明のディスク装置は、バス
インタフェースにより上位装置と接続され、内部にマイ
クロコンピュータを有するディスク装置であって、マイ
クロコンピュータによる制御プログラムの実行経緯、ま
たはバスインタフェースによるバス信号の状態を常にモ
ニターし、かつこのモニター内容を内部のメモリまたは
ディスク媒体上に記憶させるものである。
That is, the disk device of the present invention is a disk device which is connected to a higher-level device by a bus interface and has a microcomputer inside. The process of executing a control program by the microcomputer or the state of a bus signal by the bus interface. Is constantly monitored, and the monitored contents are stored in an internal memory or disk medium.

【0009】[0009]

【作用】前記したディスク装置によれば、メモリまたは
ディスク媒体上に制御プログラムの実行経緯またはバス
信号の状態が記憶されることにより、上位装置の要求に
応じて読み出しを可能とすることができる。たとえば、
ディスク装置内部にFIFO(First-in First-out)部
およびFIFOコントローラ部を設け、ディスク内制御
プログラムの実行アドレス経緯や、SCSIバス信号の
状態変化経緯をFIFO部の中にラップアラウンドで記
憶させることにより達成される。
According to the disk device described above, the execution history of the control program or the state of the bus signal is stored in the memory or the disk medium, so that the reading can be performed in response to the request of the host device. For example,
A first-in first-out (FIFO) section and a FIFO controller section are provided inside the disk device, and the execution address history of the control program in the disk and the status change history of the SCSI bus signal are stored in the FIFO section in a wrap-around manner. Achieved by.

【0010】すなわち、SCSIバスの信号の変化をF
IFOコントローラ部が常に監視しており、これらの信
号の変化がある毎にFIFO部にSCSIバスの全ての
信号の値を書き込ませるようにし、さらにFIFO部の
記憶容量を超えて状態変化があった場合は、FIFOア
ドレスをラップアラウンドして書き込ませるようにする
ことにより、常に新しいSCSIバスの状態を記録する
ことができる。これにより、上位装置が、このFIFO
部のデータを読み出すことによってエラー発生時の原因
解析が容易に可能となる。
That is, the change in the signal on the SCSI bus is F
The IFO controller unit is constantly monitoring, and every time there is a change in these signals, the FIFO unit is made to write the values of all signals of the SCSI bus, and further, there is a change in state beyond the storage capacity of the FIFO unit. In this case, the new SCSI bus state can always be recorded by wrapping around the FIFO address so that it can be written. As a result, the higher-level device
By reading the data of the section, the cause analysis when an error occurs can be easily performed.

【0011】同様に、ディスク装置内部の制御プログラ
ムの実行アドレスをFIFOコントローラ部がFIFO
部に順番に書き込ませるようにし、さらにFIFO部の
記憶容量を超えてプログラムが実行された場合は、FI
FOアドレスをラップアラウンドして書き込ませるよう
にすることにより、常に最新の実行状態を記録すること
ができる。これにより、上位装置が、このFIFO部の
データを読み出すことによってエラー発生時の原因解析
作業が容易に可能となる。
Similarly, the execution address of the control program inside the disk device is transferred by the FIFO controller to the FIFO.
When the program is executed exceeding the storage capacity of the FIFO unit, the FI
By wrapping around the FO address so that it can be written, the latest execution state can always be recorded. As a result, the host device can easily perform the cause analysis work when an error occurs by reading the data in the FIFO unit.

【0012】また、上記FIFO部に記憶させたデータ
をディスク媒体上に記録させることにより、ディスク装
置の電源がオフされても上記情報が消失しないようにす
ることができる。すなわち、FIFO部の記憶データを
ディスク装置の媒体上に記録させるようにすることによ
り、上記SCSIバスや制御プログラムの履歴をパワー
オフにより消失しないようにすることができる。これに
より、パワーオフ後であってもエラーの原因解析が容易
に可能となる。
Further, by recording the data stored in the FIFO section on the disk medium, it is possible to prevent the above information from being lost even when the power of the disk device is turned off. That is, by recording the storage data of the FIFO unit on the medium of the disk device, it is possible to prevent the history of the SCSI bus and the control program from being lost by powering off. As a result, the cause of the error can be easily analyzed even after the power is turned off.

【0013】[0013]

【実施例1】図1は本発明の一実施例であるディスク装
置を示す機能ブロック図、図2は本実施例のディスク装
置において、FIFOの動作を説明するためのSCSI
バスのタイミングチャート図である。
Embodiment 1 FIG. 1 is a functional block diagram showing a disk device according to an embodiment of the present invention, and FIG. 2 is a SCSI for explaining the operation of a FIFO in the disk device of this embodiment.
It is a timing chart figure of a bus.

【0014】まず、図1により本実施例のディスク装置
の構成を説明する。
First, the configuration of the disk device of this embodiment will be described with reference to FIG.

【0015】本実施例のディスク装置は、たとえばバス
インタフェースにより上位装置と接続され、内部にマイ
クロコンピュータを有するSCSIハードディスク装置
とされ、ディスク機構部1、データデコーダ部2、デー
タエンコーダ部3、ディスクコントローラ部4、バッフ
ァメモリ部5、DMAコントローラ部6、CPU(Cent
ral Processing Unit )部7、ROM(Read Only Memo
ry)部8、RAM(Random Access Memory)部9、FI
FOコントローラ部10およびFIFO部11から構成
され、SCSIバスを通じて図示しない上位装置に接続
されている。
The disk device of this embodiment is, for example, a SCSI hard disk device which is connected to a host device by a bus interface and has a microcomputer inside, and has a disk mechanism unit 1, a data decoder unit 2, a data encoder unit 3 and a disk controller. Unit 4, buffer memory unit 5, DMA controller unit 6, CPU (Cent
ral Processing Unit) 7, ROM (Read Only Memo)
ry) section 8, RAM (Random Access Memory) section 9, FI
It is composed of a FO controller unit 10 and a FIFO unit 11, and is connected to a host device (not shown) through a SCSI bus.

【0016】ディスク機構部1は、図示しないディスク
円板、ヘッド、シークモータおよびスピンドルモータな
どから構成され、ヘッドからのRLL(RunLength Limi
ted)データが、データデコーダ部2によりNRZ(Non
Return to Zero)データに復調され、またデータエン
コーダ部3によりNRZデータがRLLデータに変調さ
れる。
The disk mechanism section 1 is composed of a disk disk, a head, a seek motor, a spindle motor, etc., which are not shown, and an RLL (RunLength Limi) from the head.
ted) data is sent to the NRZ (Non
Return to Zero) data, and the data encoder section 3 modulates the NRZ data into RLL data.

【0017】ディスクコントローラ部4は、ディスク機
構部1のリード/ライトやシークの制御全体を司り、リ
ード/ライトデータがバッファメモリ部5に一次的に記
憶され、またディスクコントローラ部4とバッファメモ
リ部5との間の内部DMAデータ転送がDMAコントロ
ーラ部6により行われる。
The disk controller section 4 controls the entire read / write and seek operations of the disk mechanism section 1, read / write data is temporarily stored in the buffer memory section 5, and the disk controller section 4 and the buffer memory section are also stored. The internal DMA data transfer with the DMA controller 5 is performed by the DMA controller unit 6.

【0018】CPU部7は、SCSIハードディスク装
置として上位ホストとの間のインタフェース制御や、デ
ィスクコントローラ部4、DMAコントローラ部6およ
びバッファメモリ部5のハードウエアリソースを使って
リード/ライト動作の実行制御およびエラーチェック/
リトライなどを行うものであり、このCPU部7の制御
プログラムがROM部8に常駐され、また制御プログラ
ムが処理するデータがRAM部9に一時的に記憶され
る。
The CPU unit 7 is an SCSI hard disk device that controls the interface with a host and controls the execution of read / write operations by using the hardware resources of the disk controller unit 4, the DMA controller unit 6 and the buffer memory unit 5. And error check /
The control program of the CPU section 7 is resident in the ROM section 8, and the data processed by the control program is temporarily stored in the RAM section 9.

【0019】FIFO部11は、SCSIバスの変化を
リング式に一時的に記憶させるものであり、この制御が
FIFOコントローラ部10により行われる。
The FIFO unit 11 temporarily stores changes in the SCSI bus in a ring manner, and this control is performed by the FIFO controller unit 10.

【0020】次に、本実施例の作用について、特に本発
明の特徴であるFIFOコントローラ部10の動作を、
図2のSCSIバスのタイミングチャートに基づいて説
明する。
Next, regarding the operation of this embodiment, the operation of the FIFO controller 10 which is a feature of the present invention will be described.
Description will be made based on the timing chart of the SCSI bus in FIG.

【0021】まず、Bus Freeフェーズの状態か
ら、上位システムがBSY(Busy)信号をオン(ローレ
ベル)にし、かつDB(Data Bus)0〜7信号上に自分
のSCSI ID(Identification)とターゲットのS
CSI IDを送出してArbitrationフェー
ズを開始する。
First, from the state of the Bus Free phase, the host system turns on the BSY (Busy) signal (low level), and on its DB (Data Bus) 0 to 7 signals, its own SCSI ID (Identification) and target. S
Send the CSI ID to start the Arbitration phase.

【0022】そして、上位システムがDB0〜7信号を
チェックした結果、自分よりプライオリティの高いSC
SI IDを持ったホスト/ターゲットが存在しなけれ
ば、SEL(Select)信号をオン(ローレベル)としか
つATN(Attention )信号をオン(ローレベル)と
し、その後にBSY(Busy)信号をオフ(ハイレベル)
にしてArbitrationフェーズを終了させる。
Then, as a result of the host system checking the DB0-7 signals, the SC having a higher priority than itself is
If there is no host / target having the SI ID, the SEL (Select) signal is turned on (low level), the ATN (Attention) signal is turned on (low level), and then the BSY (Busy) signal is turned off ( high level)
Then, the Arbitration phase is completed.

【0023】続いて、上位システムは、上記SEL信号
をオン(ローレベル)としたままSelectionフ
ェーズを開始し、DB0〜7信号上に自分のSCSI
IDとアクセスしたいハードディスク装置のSCSI
ID番号を送出する。
Subsequently, the host system starts the Selection phase while keeping the SEL signal on (low level), and sends its own SCSI on the DB0 to DB7 signals.
ID and SCSI of the hard disk drive you want to access
Send out the ID number.

【0024】この後、ハードディスク装置がBSY信号
をオン(ローレベル)にしたことを検出して、SEL信
号をオフ(ハイレベル)とすると共にDB0〜7信号上
へのデータ送出を止めてSelectionフェーズを
終了させる。
After that, the hard disk device detects that the BSY signal is turned on (low level), turns off the SEL signal (high level), stops the data transmission onto the DB0 to DB7 signals, and selects phase. To end.

【0025】次に、ハードディスク装置から、C/D
(Control/Data)信号をオン(ローレベル)、I/O
(Input/Output)信号をオフ(ハイレベル)、MSG
(Message)信号をオン(ローレベル)として送
出された後、REQ(Request )信号がオン
(ローレベル)として送出されると、上位システムはA
CK(Acknowledge )信号をオンとすると共に、DB0
〜7信号上にディスコネクト/リコネクトをサポートす
ることを示す値(C0h )を送出してMessage
Outフェーズを開始する。
Next, from the hard disk device, C / D
(Control / Data) signal on (low level), I / O
(Input / Output) signal off (high level), MSG
If the REQ (Request) signal is transmitted as ON (low level) after the (Message) signal is transmitted as ON (low level), the upper system is
CK (Acknowledge) signal is turned on and DB0
A message (C0h) indicating that disconnect / reconnect is supported is transmitted on the ~ 7 signal and the Message is transmitted.
Start the Out phase.

【0026】この後、上位システムは、上記REQ信号
がオフ(ハイレベル)となることを検出した後、ACK
信号をオフとすると共にDB0〜7信号上へのデータ送
出を止め、さらにC/D信号、I/O信号、MSG信号
の全てをオフとしてMessage Outフェーズを
終了させる。
After that, the upper system detects that the REQ signal is off (high level) and then sends ACK.
The signal is turned off, the data transmission to the DB0 to 7 signals is stopped, and all the C / D signal, I / O signal, and MSG signal are turned off to end the Message Out phase.

【0027】続いて、ハードディスク装置から、C/D
信号がオン(ローレベル)、I/O信号がオフ(ハイレ
ベル)、MSG信号がオフ(ハイレベル)として送出さ
れることによりCommandフェーズが開始され、そ
の後REQ信号がオン(ローレベル)として送出される
と、上位システムはACK信号をオンとすると共にDB
0〜7信号上にコマンドデータを送出する。
Then, from the hard disk device, C / D
The command phase is started by sending the signal on (low level), the I / O signal off (high level), and the MSG signal off (high level), and then sending the REQ signal on (low level). Then, the upper system turns on the ACK signal and the DB
Send command data on signals 0-7.

【0028】この後、REQ信号がオフ(ハイレベル)
として送出されると、上位システムはACK信号をオフ
とすると共にDB0〜7信号上へのコマンドデータの送
出を止める。その後、このようにしてコマンドデータを
数バイト送出してCommandフェーズを終了させ
る。
After that, the REQ signal is turned off (high level).
Is sent, the host system turns off the ACK signal and stops sending command data on the DB0 to DB7 signals. After that, the command data is sent out in several bytes in this way, and the Command phase is ended.

【0029】次に、ハードディスク装置から、C/D信
号をオン(ローレベル)、I/O信号をオン(ローレベ
ル)、MSG信号をオン(ローレベル)として送出され
てMessageフェーズが開始され、その後REQ信
号がオン(ローレベル)とされると共にDB0〜7信号
上にメッセージデータが送出される。これを受けて、上
位システムはACK信号をオンとしてメッセージデータ
を受信したことをハードディスク装置に報告する。
Next, the hard disk drive sends the C / D signal on (low level), the I / O signal on (low level), and the MSG signal on (low level) to start the Message phase. After that, the REQ signal is turned on (low level) and the message data is transmitted on the DB0 to 7 signals. In response to this, the upper system turns on the ACK signal and reports to the hard disk device that the message data has been received.

【0030】この後、REQ信号がオフ(ハイレベル)
として送出されると、上位システムはACK信号をオフ
する。その後ハードディスク装置は、C/D信号をオフ
(ハイレベル)、I/O信号をオフ(ハイレベル)、M
SG信号をオフ(ハイレベル)として送出してMess
ageフェーズを終了させる。
After that, the REQ signal is turned off (high level).
Is sent, the upper system turns off the ACK signal. After that, the hard disk device turns off the C / D signal (high level), turns off the I / O signal (high level), M
Send the SG signal off (high level) to send Mess
End the age phase.

【0031】そして、ハードディスク装置は、BSY信
号をオフ(ハイレベル)としてBUS Freeフェー
ズに戻りSCSIバスを開放する。
Then, the hard disk device turns off the BSY signal (high level) and returns to the BUS Free phase to open the SCSI bus.

【0032】以上のように、SCSIバスの各信号の状
態変化をFIFOコントローラ部10により検出してF
IFO部11に記憶させ、たとえばこのFIFO部11
の記憶容量を64KBにしておけば、その64KB分の
SCSIバスの変化が順番に記憶され、64KBを超え
て変化した場合でも、上書きされて常に最新の64KB
分の事象が記憶される。このため、エラー発生でハード
ディスク装置の制御が中断した場合などに、上位システ
ムがこのFIFOデータの読み出しを行って、エラー発
生時およびそれ以前のSCSIバスの動きを知ることが
できる。
As described above, the state change of each signal of the SCSI bus is detected by the FIFO controller unit 10 and the F
It is stored in the IFO unit 11, and for example, this FIFO unit 11
If the storage capacity of 64 KB is set to 64 KB, the change of the SCSI bus for 64 KB is sequentially stored, and even if the change exceeds 64 KB, it is overwritten and the latest 64 KB is always stored.
Minute events are stored. Therefore, when the control of the hard disk device is interrupted due to an error, the host system can read the FIFO data to know the movement of the SCSI bus when the error occurred and before.

【0033】従って、本実施例のハードディスク装置に
よれば、FIFOコントローラ部10およびFIFO部
11が設けられることにより、SCSIバス信号の状態
変化経緯がラップアラウンドで記憶されるので、上位シ
ステムがFIFO部11のデータを読み出すことによっ
てエラー発生時の原因解析が容易に可能となる。
Therefore, according to the hard disk drive of this embodiment, since the FIFO controller unit 10 and the FIFO unit 11 are provided, the history of changes in the state of the SCSI bus signal is stored in a wraparound mode, so that the host system operates as a FIFO unit. By reading the data of 11, the cause analysis when an error occurs can be easily performed.

【0034】[0034]

【実施例2】図3は本発明の他の実施例であるディスク
装置を示す機能ブロック図である。
Second Embodiment FIG. 3 is a functional block diagram showing a disk device which is another embodiment of the present invention.

【0035】本実施例のディスク装置は、実施例1と同
様にディスク機構部1、データデコーダ部2、データエ
ンコーダ部3、ディスクコントローラ部4、バッファメ
モリ部5、DMAコントローラ部6、CPU部7、RO
M部8、RAM部9、FIFOコントローラ部10およ
びFIFO部11から構成され、実施例1との相違点
は、FIFOコントローラ部10がSCSIバスではな
く、ディスク装置内部におけるCPU部7のデータバス
に接続されている点である。
The disk device of this embodiment is similar to the first embodiment in that the disk mechanism unit 1, the data decoder unit 2, the data encoder unit 3, the disk controller unit 4, the buffer memory unit 5, the DMA controller unit 6, and the CPU unit 7 are provided. , RO
It is composed of an M unit 8, a RAM unit 9, a FIFO controller unit 10 and a FIFO unit 11. The difference from the first embodiment is that the FIFO controller unit 10 is not the SCSI bus but the data bus of the CPU unit 7 inside the disk device. It is a connected point.

【0036】すなわち、本実施例においては、FIFO
コントローラ部10はCPU部7の命令フェッチ、すな
わちプログラムメモリ部からのプログラム実行アドレス
の取り込み時にのみFIFO部11にプログラム実行ア
ドレスが記憶されるため、たとえばエラー発生でハード
ディスク装置の制御が中断した場合などに、上位システ
ムがこのFIFOデータの読み出しを行って、エラー発
生時およびそれ以前のハードディスク装置内の制御プロ
グラムの動きを知ることができる。
That is, in this embodiment, the FIFO
The controller unit 10 stores the program execution address in the FIFO unit 11 only when the instruction fetch of the CPU unit 7, that is, when the program execution address is fetched from the program memory unit, so that the control of the hard disk device is interrupted due to an error, for example. In addition, the host system can read the FIFO data to know the movement of the control program in the hard disk device at the time of error occurrence and before.

【0037】従って、本実施例のディスク装置によれ
ば、制御プログラムの実行アドレス経緯がラップアラウ
ンドで記憶されるので、実施例1と同様に上位システム
がこのFIFO部11のデータを読み出すことによって
エラー発生時の原因解析が容易に可能となる。
Therefore, according to the disk device of the present embodiment, the execution address history of the control program is stored in a wraparound. Therefore, as in the case of the first embodiment, an error occurs when the host system reads the data of the FIFO unit 11. It is possible to easily analyze the cause at the time of occurrence.

【0038】以上、本発明者によってなされた発明を実
施例1および2に基づき具体的に説明したが、本発明は
前記実施例に限定されるものではなく、その要旨を逸脱
しない範囲で種々変更可能であることはいうまでもな
い。
Although the invention made by the present inventor has been specifically described based on the first and second embodiments, the present invention is not limited to the above embodiments and various modifications can be made without departing from the scope of the invention. It goes without saying that it is possible.

【0039】たとえば、前記各実施例のディスク装置に
ついては、バス信号の状態変化経緯または制御プログラ
ムの実行経緯をFIFO部11に記憶する場合について
説明したが、本発明は前記実施例に限定されるものでは
なく、図4に示すようなトラックマップを構成するディ
スク媒体上に記憶する場合などについても広く適用可能
である。
For example, in the disk device of each of the above-described embodiments, the case where the history of changes in the state of the bus signal or the history of execution of the control program is stored in the FIFO unit 11 has been described, but the present invention is limited to the above embodiments. However, the present invention can be widely applied to the case of storing on a disk medium forming a track map as shown in FIG.

【0040】この場合には、ディスク機構部1にディス
ク媒体を設け、トラックアドレス(16進値)の“00
0”から“001”まではハードディスク装置としての
ディスクシステム管理情報が記憶され、“002”から
“003”までは不良ブロックの交替情報、“004”
から“02F”までは先述のようにしてFIFO部11
に記憶されたデータが記憶され、さらにトラックアドレ
ス“030”から“3FF”まではユーザデータが記憶
されるように構成される。
In this case, a disk medium is provided in the disk mechanism unit 1 and the track address (hexadecimal value) "00" is set.
The disk system management information as a hard disk device is stored from 0 "to" 001 ", the defective block replacement information from" 002 "to" 003 ", and" 004 ".
From the first to the "02F", the FIFO unit 11 as described above
Is stored, and user data is stored at track addresses "030" to "3FF".

【0041】これにより、ハードディスク装置の電源が
オフされてもデータが消失しないので、前述と同様にハ
ードディスク装置内の制御プログラムが読み出し/書き
込み制御を行うことができるようになっている。
As a result, the data is not lost even when the power of the hard disk device is turned off, so that the control program in the hard disk device can perform the read / write control as described above.

【0042】また、バス信号のモニターにおいても、S
CSIバスにとどまらず各種のシステムバスに接続され
る装置への適用も可能である。
Also, when monitoring the bus signal, S
The present invention is applicable not only to the CSI bus but also to devices connected to various system buses.

【0043】以上の説明では、主として本発明者によっ
てなされた発明をその利用分野であるハードディスク装
置に適用した場合について説明したが、これに限定され
るものではなく、他のディスク装置、およびディスク装
置にとどまらず、内部にマイクロコンピュータを有する
他の入出力デバイスなどについても広く適用可能であ
る。
In the above description, the case where the invention made by the present inventor is mainly applied to the hard disk device which is the field of application thereof has been described, but the present invention is not limited to this, and other disk devices and disk devices. Not limited to the above, the present invention can be widely applied to other input / output devices having a microcomputer therein.

【0044】[0044]

【発明の効果】本願において開示される発明のうち、代
表的なものによって得られる効果を簡単に説明すれば、
下記のとおりである。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.
It is as follows.

【0045】(1).マイクロコンピュータによる制御プロ
グラムの実行経緯、またはバスインタフェースによるバ
ス信号の状態を常にモニターし、かつこのモニター内容
を内部のメモリまたはディスク媒体上に記憶させること
により、たとえばバス信号の状態変化経緯を順に記憶さ
せた場合には、上位装置が必要に応じて記憶された情報
を読み出すことができるので、バスで何が転送されてい
たかを知ることができ、エラー発生の原因追及および解
析が容易に可能となる。
(1). The process of execution of a control program by a microcomputer or the state of a bus signal by a bus interface is constantly monitored, and the monitored contents are stored in an internal memory or a disk medium. When the status change history of is stored in order, the higher-level device can read the stored information as needed, so that it is possible to know what was transferred on the bus and investigate the cause of the error occurrence. And the analysis becomes easy.

【0046】(2).前記(1) により、たとえば制御プログ
ラムの実行アドレスを順に記憶させた場合には、上位装
置が必要に応じて記憶された情報を読み出すことができ
るので、ディスク装置内部の制御プログラムで何が実行
されていたかを知ることができ、エラー発生の原因追及
および解析が容易に可能となる。
(2) According to the above (1), for example, when the execution addresses of the control program are stored in order, the upper device can read the stored information as needed, so It is possible to know what was being executed by the control program, and it is possible to easily investigate the cause of the error occurrence and analyze it.

【0047】(3).前記(1) により、たとえばモニター内
容をディスク媒体上に記録させた場合には、ディスク装
置の電源がオフされても情報の消失を防止することがで
きるので、パワーオフ後であってもエラー発生原因追及
および解析が容易に可能となる。
(3) By the above (1), for example, when the monitor contents are recorded on the disk medium, it is possible to prevent the loss of information even when the power of the disk device is turned off. Even after that, it is possible to easily investigate the cause of the error and analyze it.

【0048】(4).前記(1) 〜(3) により、特に内部にマ
イクロコンピュータを有するインテリジェントなディス
ク装置において、ディスク装置の動作経緯の詳細を上位
装置から正確に管理することが可能とされるディスク装
置を得ることができる。
(4) According to the above (1) to (3), it is possible to accurately manage the details of the operation history of the disk device from the host device, especially in an intelligent disk device having a microcomputer inside. It is possible to obtain a disk device that can be used.

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

【図1】本発明の実施例1であるディスク装置を示す機
能ブロック図である。
FIG. 1 is a functional block diagram showing a disk device that is Embodiment 1 of the present invention.

【図2】実施例1のディスク装置において、FIFOの
動作を説明するためのSCSIバスのタイミングチャー
ト図である。
FIG. 2 is a timing chart of the SCSI bus for explaining the operation of the FIFO in the disk device of the first embodiment.

【図3】本発明の実施例2であるディスク装置を示す機
能ブロック図である。
FIG. 3 is a functional block diagram showing a disk device that is Embodiment 2 of the present invention.

【図4】本発明の実施例1および2のディスク装置にお
いて、モニター結果をディスク媒体上に記憶する場合を
示す説明図である。
FIG. 4 is an explanatory diagram showing a case where the monitoring result is stored on a disk medium in the disk device according to the first and second embodiments of the present invention.

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

1 ディスク機構部 2 データデコーダ部 3 データエンコーダ部 4 ディスクコントローラ部 5 バッファメモリ部 6 DMAコントローラ部 7 CPU部 8 ROM部 9 RAM部 10 FIFOコントローラ部 11 FIFO部 1 disk mechanism section 2 data decoder section 3 data encoder section 4 disk controller section 5 buffer memory section 6 DMA controller section 7 CPU section 8 ROM section 9 RAM section 10 FIFO controller section 11 FIFO section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 バスインタフェースにより上位装置と接
続され、内部にマイクロコンピュータを有するディスク
装置であって、前記マイクロコンピュータによる制御プ
ログラムの実行経緯、または前記バスインタフェースに
よるバス信号の状態を常にモニターし、かつ該モニター
内容を内部のメモリまたはディスク媒体上に記憶させ、
前記上位装置の要求に応じて読み出しを可能とすること
を特徴とするディスク装置。
1. A disk device, which is connected to a host device by a bus interface and has a microcomputer therein, which constantly monitors the execution process of a control program by the microcomputer or the state of a bus signal by the bus interface, And the contents of the monitor are stored in an internal memory or a disk medium,
A disk device capable of being read in response to a request from the host device.
JP3327489A 1991-12-11 1991-12-11 Disk device Pending JPH05158627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3327489A JPH05158627A (en) 1991-12-11 1991-12-11 Disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3327489A JPH05158627A (en) 1991-12-11 1991-12-11 Disk device

Publications (1)

Publication Number Publication Date
JPH05158627A true JPH05158627A (en) 1993-06-25

Family

ID=18199729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3327489A Pending JPH05158627A (en) 1991-12-11 1991-12-11 Disk device

Country Status (1)

Country Link
JP (1) JPH05158627A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07230360A (en) * 1994-02-21 1995-08-29 Nec Field Service Ltd Magnetic storage device with fault information recorder
US7111133B2 (en) 2001-05-18 2006-09-19 Hitachi, Ltd. Control apparatus for selectively operating with program data from two memories and having a system controller supplying program data and address for writing the data to the second memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07230360A (en) * 1994-02-21 1995-08-29 Nec Field Service Ltd Magnetic storage device with fault information recorder
US7111133B2 (en) 2001-05-18 2006-09-19 Hitachi, Ltd. Control apparatus for selectively operating with program data from two memories and having a system controller supplying program data and address for writing the data to the second memory

Similar Documents

Publication Publication Date Title
US4888691A (en) Method for disk I/O transfer
US5734918A (en) Computer system with an input/output processor which enables direct file transfers between a storage medium and a network
KR970005742B1 (en) Interface circuit for data transfer control
JPH05158627A (en) Disk device
US6535953B1 (en) Magnetic disk, method of accessing magnetic disk device, and recording medium storing disk access control program for magnetic disk device
US20040177183A1 (en) Interface circuit, disc controller, disc drive apparatus and interface control method
JPH02135562A (en) Queue buffer control system
JP2000155737A (en) Data packet receiving device
JPH1097489A (en) Method and device for block length conversion of magnetic disk unit
JP3594265B2 (en) Disk cache device
KR100216365B1 (en) Disk error detection and recovery method in electronic exchange
JPS58223860A (en) Magnetic disk controller
JP3985530B2 (en) Fraud monitoring system
JP3145765B2 (en) Information processing device
JPH06202715A (en) State change detecting and recording circuit
JPH11134261A (en) Input and output controller
JP2594567B2 (en) Memory access control device
US20020046367A1 (en) Method for preventing data corruption by a floppy diskette controller
JPH0272443A (en) Data processor
JPH05298199A (en) Input/output control device
JP2737555B2 (en) Disk controller
JP2004021505A (en) Communication controller and microcomputer
JPH03288269A (en) Medical image data transfer device
JPS59161717A (en) Priority decision system
JPH06103119A (en) Trace information holding controller