JPS62168221A - Input and output controller - Google Patents

Input and output controller

Info

Publication number
JPS62168221A
JPS62168221A JP61010648A JP1064886A JPS62168221A JP S62168221 A JPS62168221 A JP S62168221A JP 61010648 A JP61010648 A JP 61010648A JP 1064886 A JP1064886 A JP 1064886A JP S62168221 A JPS62168221 A JP S62168221A
Authority
JP
Japan
Prior art keywords
fifo
data
power supply
input
circuit
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
JP61010648A
Other languages
Japanese (ja)
Inventor
Akira Tamaki
玉木 晃
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61010648A priority Critical patent/JPS62168221A/en
Publication of JPS62168221A publication Critical patent/JPS62168221A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To perform the rerise of a system in a short time by securing such a constitution where an input/output controller recovers automatically the data broken when a power supply is cut off with no intervention of the host software. CONSTITUTION:When a previous notice is given from a power supply 4 via a voltage drop previously noticing line 202, a microprocessor 103 of an input/ output controller DKC2 receives an interruption. Then a DMA control circuit 101 is put under a saving mode during a writing action and the transfer of data is discontinued to a device control circuit 107. The data are transferred to an FIFO(2)101 only and the numbers of the unit, cylinder, track, sector, etc. of a magnetic disk device 3 are stored, and at the same time a data storing frag is stored when the power supply is cut off to an FIFO(1)110 after the end of the data transfer. When the power supply is recovered, the self-diagnosis is carried out and the data stored in the FIFO(2)111 are written and recovered based on the information on the FIFO(1)110.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は入出力制御装置に関し、特に中央処理装置から
出力された指令に従って磁気ディスク装置のリード/ラ
イト動作を制御する入出力制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an input/output control device, and more particularly to an input/output control device that controls read/write operations of a magnetic disk device in accordance with instructions output from a central processing unit.

〔従来の技術〕[Conventional technology]

一般にマイクロプログラム制御の入出力制御装置は、中
央処理装置から出力された指令に応答して動作する。こ
の指令としては、ライト命令やリード命令がある。
In general, microprogram-controlled input/output control devices operate in response to commands output from a central processing unit. This command includes a write command and a read command.

従来、磁気ディスク装置と中央処理装置間でデータ転送
を行う場合、中央処理装置から人出力制御装置に指令が
出されると、人出力制御装置はこの指令を解読して磁気
ディスク装置に対して必要なコマンドを送出し、ダイレ
クトメモリアクセスデータ転送の制御を行ってデータ転
送を実けする。
Conventionally, when transferring data between a magnetic disk device and a central processing unit, when a command is issued from the central processing unit to a human output control device, the human output control device decodes this command and sends the necessary information to the magnetic disk device. It sends commands to control direct memory access data transfer and execute data transfer.

データ転送が終了すると、入出力制御装置は動作が終了
した旨を中央処理装置に対して割込みにより通知する。
When the data transfer is completed, the input/output control device notifies the central processing unit of the completion of the operation through an interrupt.

従来の入出力制御装置では、ライト動作(中央処理装置
から磁気ディスク装置へのデータ転送)時にシステムの
電源が瞬断や停電等により断した場合には、第7図に示
すように、決められたデータ長を書き終わらないうちに
途中でライト動作が中断するので、ライト中のセクタの
データ破壊を生じる。また、中央処理装置でも入出力制
御装置でも、電源が断になると実行していた動作の情報
が全てクリア(消失)されてしまう。
With conventional input/output control devices, if the system power is cut off due to a momentary power outage or power outage during a write operation (data transfer from the central processing unit to the magnetic disk drive), as shown in Figure 7, the Since the write operation is interrupted midway before writing the specified data length, data in the sector being written is destroyed. Furthermore, when the power is turned off in both the central processing unit and the input/output control unit, all information about the operations being executed is cleared (disappeared).

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の入出力制御装置は、ライト動作時に発生
したシステムの電源の瞬断や停電等の電源断によりセク
タのデータ破壊を生じ、このため電源が復旧したときに
不用意にデータ破壊を生じたセクタをリードするとリー
ドエラーが発生し、システム障害を起こすという欠点が
ある。
The above-mentioned conventional input/output control device causes sector data to be destroyed due to a power outage such as a momentary power outage or power outage of the system that occurs during a write operation, and as a result, data is inadvertently destroyed when the power is restored. The disadvantage is that reading a sector that has been previously read will result in a read error, causing a system failure.

また、上述のり一ドエラーを回避するためにシステムの
立ち上げ前にファイル復旧という作業が必要になるが、
使用していた磁気ディスク装置にシステムのソフトウェ
アが格納されており、破壊されたセクタがファイルのデ
ィレクトリの部分であるとファイルの復旧に長時間を費
し、システムのダウン時間を長くするという欠点がある
Also, in order to avoid the above-mentioned boarding error, it is necessary to perform file recovery before starting the system.
If the system software is stored on the magnetic disk drive that was being used, and the corrupted sector is part of a file directory, it will take a long time to recover the file, resulting in extended system downtime. be.

本発明の目的は、上述の点に鑑み、システムの電源の瞬
断や停電等によりデータ破壊されたセクタを電源復電後
にソフトウェアの介在なしに自動的に復旧するようにし
た入出力制御装置を提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide an input/output control device that automatically restores sectors whose data has been destroyed due to a momentary power interruption or power outage in a system, without software intervention, after the power is restored. It is about providing.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の入出力制御装置は、中央処理装置からの指令に
より磁気ディスク装置のリード動作およびライト動作の
制御を行う入出力制御装置において、電圧降下を監視す
る電圧監視回路と、電圧降下時に動作を行っていた前記
磁気ディスク装置のユニット番号、シリンダ番号、トラ
ック番号、セクタ番号、電圧降下指示フラグおよびデー
タ格納有効性指示ビットを含む情報を格納する第1FI
FOと、所定バイト数のデータを格納できる第2FIF
Oと、前記第1FIFOおよび前記第2FIFOをバッ
テリバックアップするバッテリ回路と、システムの電源
装置の電圧降下予告線の駆動によってマイクロプロセッ
サへの割込みを可能とする割込み回路とを有する。
The input/output control device of the present invention is an input/output control device that controls read and write operations of a magnetic disk device based on commands from a central processing unit, and includes a voltage monitoring circuit that monitors a voltage drop, and a voltage monitoring circuit that monitors voltage drops and operates when a voltage drop occurs. A first FI that stores information including the unit number, cylinder number, track number, sector number, voltage drop instruction flag, and data storage validity instruction bit of the magnetic disk device that was being used.
FO and a second FIF that can store a predetermined number of bytes of data
0, a battery circuit that backs up the first FIFO and the second FIFO with a battery, and an interrupt circuit that enables an interrupt to the microprocessor by driving a voltage drop warning line of a power supply of the system.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例を示す構成図である。本実
施例の入出力制御装置(以下、DKCと略記する)2は
、バスを介して中央処理装置(以下、CPUと略記する
)1に接続されるとともに複数台の磁気ディスク装置(
以下、DKUと略記する)3に接続されている。また、
DKC2は、電源装置(以下、PWUと略記する)4に
接続されており、PWU4は電圧降下予告線202を介
してCPUIに接続されている。
FIG. 1 is a configuration diagram showing an embodiment of the present invention. An input/output control device (hereinafter abbreviated as DKC) 2 of this embodiment is connected to a central processing unit (hereinafter abbreviated as CPU) 1 via a bus, and also includes a plurality of magnetic disk devices (
(hereinafter abbreviated as DKU) 3. Also,
The DKC 2 is connected to a power supply unit (hereinafter abbreviated as PWU) 4, and the PWU 4 is connected to the CPUI via a voltage drop warning line 202.

本実施例のDKC2は、ダイレクトメモリアクセス(D
MA)制御回路101と、ハス制御回路102と、マイ
クロプロセッサ103と、割込み回路104と、電源監
視回路105と、ゲート106と、デバイス制御回路1
07と、ランダムアクセスメモリ (以下、RAMと略
記する)108と、プログラマブルリードオンリメモリ
 (以下、FROMと略記する)109と、電源断時の
情報等を格納するための0MO3構造を有する第111
FO(以下、FIFO(l)と記す)11Oと、65K
Bまでのデータを格納できるLSI化された1チツプの
0MO3構造を有する第2FIFO(以下、FIFO(
21と記す)111 と、F T F 0(11110
およびF r F 0(21111をバッテリバックア
ップするバッテリ回路112とから構成されている。
The DKC2 of this embodiment uses direct memory access (DKC2).
MA) control circuit 101, hash control circuit 102, microprocessor 103, interrupt circuit 104, power supply monitoring circuit 105, gate 106, device control circuit 1
07, a random access memory (hereinafter abbreviated as RAM) 108, a programmable read only memory (hereinafter abbreviated as FROM) 109, and a 111th memory having an 0MO3 structure for storing information etc. when the power is turned off.
FO (hereinafter referred to as FIFO (l)) 11O and 65K
The second FIFO (hereinafter referred to as FIFO) has a one-chip 0MO3 structure that can store data up to
21) 111 and F T F 0 (11110
and a battery circuit 112 that backs up F r F 0 (21111) with a battery.

第2図を参照すると、バッテリ回路112は、ニッケル
カドミウム電池でなるバックアンプバッテリBと、コン
デンサC1と、抵抗R1−R3と、トランジスタTIお
よびT2とから構成されている。バックアンプバッテリ
Bの正極ならびに負極は、P I F 0(11110
およびP I F 0(21111の動作電圧入力端子
vCCならびにグランド端子GNDにそれぞれ接続され
ている。このバッテリ回路112は、トランジスタT1
のオフ時にバックアンプバッテリBによってF I F
 0(ll 110およびFIFO(21111をバッ
テリバックアップする。
Referring to FIG. 2, the battery circuit 112 includes a back amplifier battery B made of a nickel cadmium battery, a capacitor C1, resistors R1-R3, and transistors TI and T2. The positive and negative electrodes of the back amplifier battery B are P I F 0 (11110
and P I F 0 (connected to the operating voltage input terminal vCC and ground terminal GND of 21111, respectively. This battery circuit 112 is connected to the transistor T1
F I F by back amplifier battery B when off.
0(ll 110 and FIFO(21111) are battery backed up.

第3図を参照すると、電源監視回路105は、電圧検出
器113と、抵抗R4〜R6と、コンデンサC2とから
構成されている。なお、符号201は電源監視回路10
5から割込み回路104を介してマイクロプロセッサ1
03に接続された緊急割込み線を示す。この電源監視回
路105は、電源電圧が降下すると電圧検出器113が
これを検知して緊急割込みfa201を駆動するように
なっている。
Referring to FIG. 3, the power supply monitoring circuit 105 includes a voltage detector 113, resistors R4 to R6, and a capacitor C2. Note that the reference numeral 201 indicates the power supply monitoring circuit 10.
5 to the microprocessor 1 via the interrupt circuit 104.
The emergency interrupt line connected to 03 is shown. In this power supply monitoring circuit 105, when the power supply voltage drops, the voltage detector 113 detects this and drives the emergency interrupt fa201.

第4図を参照すると、F I F 0(11110には
、電圧降下があったことを示す電圧降下指示フラグと、
F I F 0(2) 111にデータが格納されてい
ることを示すデータ格納有効性指示とット(以下、Vビ
ットと略記する)と、DKU3のユニット番号と、電源
断時のシリンダ番号と、電源断時のトランク番号と、電
源断時のセクタ番号と、動作開始時のシリンダ番号と、
動作開始時のトラック番号と、動作開始時のセクタ番号
とが格納されるようになっている。なお、電圧降下指示
フラグは“1″のときに電圧降下があったことを示しζ
Vビットば“1”のときにF T F O(2+ 11
1にデータが格納されていることを示す。
Referring to FIG. 4, F I F 0 (11110) includes a voltage drop instruction flag indicating that there has been a voltage drop;
F I F 0 (2) A data storage validity indication bit (hereinafter abbreviated as V bit) indicating that data is stored in 111, the unit number of DKU3, and the cylinder number at the time of power-off. , the trunk number when the power is turned off, the sector number when the power is turned off, the cylinder number when the operation starts,
The track number at the start of operation and the sector number at the start of operation are stored. Note that the voltage drop instruction flag indicates that there has been a voltage drop when it is “1”.
When the V bit is “1”, F T F O(2+11
1 indicates that data is stored.

第5図を参照すると、本実施例のDKC2における処理
は、ライト中かどうかを判定する判定ステップ601 
と、デバイス制御回路107のクリアステ・7プ602
と、DMA制御回路101の退避モードセットステップ
603と、緊急割込み判定ステップ604と、P I 
F Of2+ 111へのデータ転送終了判定ステップ
605と、FTF(]11へのフラグ等の必要情報格納
ステップ606と、自己診断ステップ60Bと、F I
 F o(tl tioのチ、!ツタステップ609 
と、フラグ判定ステップ610と、Vビット判定ステッ
プ611 と、ライト動作実行およびP I F Of
l+ 110のクリアステップ612と、ステータスH
IEステップ613と、CPUIからの指令検出ステッ
プ614と、電源断ステータス判定ステップ615と、
制御情報の引取りステップ616と、パラメータの生成
およびセントステップ617と、リード/ライト動作ス
テップ618と、終了判定ステップ619と、終了ステ
ータス編集ステップ620とからなる。
Referring to FIG. 5, the process in the DKC 2 of this embodiment includes a determination step 601 for determining whether writing is in progress.
and the clear step 602 of the device control circuit 107.
, an evacuation mode setting step 603 of the DMA control circuit 101, an emergency interrupt determination step 604, and a P I
A step 605 for determining the end of data transfer to the FOf2+ 111, a step 606 for storing necessary information such as a flag in the FTF(]11, a self-diagnosis step 60B,
F o (tl tio's chi,! Ivy step 609
, flag determination step 610 , V bit determination step 611 , write operation execution and P I F Of
l+ 110 clear step 612 and status H
IE step 613, command detection step 614 from CPUI, power-off status determination step 615,
It consists of a control information acquisition step 616, a parameter generation and entry step 617, a read/write operation step 618, an end determination step 619, and an end status editing step 620.

次に、このように構成された本実施例の入出力制御装置
の動作について説明する。
Next, the operation of the input/output control device of this embodiment configured as described above will be explained.

DKC2は、CPtJlからライト命令を受は取ると、
CPUIから必要な制御情報を引き取り、RAM108
に格納する(ステップ616)。次に、動作に必要なパ
ラメータを生成してDMA制御回路101にはアドレス
/カウント値、デバイス制御回路107にはユニット番
号、シリンダ番号、トランク番号、セクタ番号等をセッ
トしくステップ617)、DMA制御回路101 とバ
ス制御回路102とに起動をかけてDMAデータ転送を
開始する(ステップ618)。
When DKC2 receives a write command from CPtJl,
Receives necessary control information from the CPUI and stores it in the RAM 108.
(step 616). Next, the parameters necessary for operation are generated and the address/count value is set in the DMA control circuit 101, and the unit number, cylinder number, trunk number, sector number, etc. are set in the device control circuit 107 (step 617). The circuit 101 and the bus control circuit 102 are activated to start DMA data transfer (step 618).

ライト動作中に電源断が発生すると、第6図に示すよう
に、電圧降下予告線202が駆動される(PWU4は、
′r1.tX電圧+5VDCが降下ヲ始メル10m5以
上前に電圧降下予告線202を駆動するように設計され
ている)。
When a power failure occurs during a write operation, the voltage drop warning line 202 is driven as shown in FIG.
'r1. It is designed to drive the voltage drop warning line 202 at least 10m5 before the tX voltage +5VDC starts to drop).

割込み回路104は、電圧降下予告線202の駆動を検
出すると、マイクロプロセッサ103に割り込む。
When the interrupt circuit 104 detects driving of the voltage drop warning line 202, it interrupts the microprocessor 103.

マイクロプロセッサ103は、この割込みを検出すると
ライト動作中かどうかを判断しくステップ601)、動
作していない時またはリード動作中の時はこの割込みを
無視する。ライト動作中ならばデバイス制御回路107
をクリアしくステップ6o2)、DMA制御回路101
を退避モードにセントする(ステップ603 ) 、 
D M A ?!II御回路101は、ライト動作中(
DMA転送中)はデバイス制御回路107とF I F
 0(2) 111との両方にデータを転送しているが
、退避モードがセントされるとデバイス制御回路107
へのデータ転送を中止し、FIFO(21111のみへ
のデータ転送を行う。
When the microprocessor 103 detects this interrupt, it determines whether a write operation is in progress (step 601), and ignores this interrupt if it is not in operation or a read operation is in progress. If the write operation is in progress, the device control circuit 107
Clear step 6o2), DMA control circuit 101
to the evacuation mode (step 603),
DMA? ! The II control circuit 101 is in the write operation (
(during DMA transfer) is connected to the device control circuit 107 and F I F
0(2) 111, but when the save mode is sent, the device control circuit 107
Stops data transfer to FIFO (21111) and transfers data only to FIFO (21111).

DMA制御回路101は、データ転送が終了(カウント
値が0”)すると(ステップ6o5)、マイクロプロセ
ッサ103に通知を行い、マイクロプロセッサ103は
この通知を受は取ると、電源断が発生した時点のDKI
J3のユニット番号、シリンダ番号、トラック番号、セ
クタ番号および動作開始時のシリンダ番号、トランク番
号、セクタ番号、P I F (]21111に退避デ
ータが格納されていることを示すvビットおよび電源断
が発生したことを示すデータ格納指示フラグをF I 
F 0(1) 110に格納する(ステップ606)。
When the data transfer is completed (count value is 0") (step 6o5), the DMA control circuit 101 notifies the microprocessor 103. When the microprocessor 103 receives this notification, DKI
J3 unit number, cylinder number, track number, sector number, cylinder number, trunk number, sector number at the start of operation, the v bit indicating that saved data is stored in PIF (] 21111, and the power-off F I the data storage instruction flag indicating that this has occurred.
It is stored in F 0 (1) 110 (step 606).

電源監視回路105は電源電圧+5VDCを常に監視し
ており、第6図に示すように、電源電圧が+4.7VD
C以下(抵抗R5およびR6の値を変えることによって
可変)になると緊急割込み線201を駆動し、割込み回
路104を介してマイクロプロセッサ103に割り込む
(ステップ604)。マイクロプロセッサ103は、こ
の割込みを受は取るとFlrot21111へのデータ
転送が終了しているか、すなわちDMA制御回路101
の退避動作が完了しているかどうかをチェックしくステ
ップ605)、完了していなければVビットを“0″に
セットし、第4図に示すような電源断発生時の情報をP
IFO(11110に格納する(ステップ606)。
The power supply monitoring circuit 105 constantly monitors the power supply voltage +5VDC, and as shown in FIG.
When the value becomes less than C (variable by changing the values of resistors R5 and R6), the emergency interrupt line 201 is driven and an interrupt is issued to the microprocessor 103 via the interrupt circuit 104 (step 604). When the microprocessor 103 receives this interrupt, it determines whether the data transfer to the Flrot 21111 has been completed, that is, whether the DMA control circuit 101
Check whether the evacuation operation has been completed (step 605), and if it has not been completed, set the V bit to "0" and write the information at the time of power failure as shown in Figure 4 to P.
Store in IFO (11110) (step 606).

バッテリ回路112は、電源電圧+5VDCが+4.5
VDC以下(抵抗R1およびR2を変えることによって
可変)になると、トランジスタT1がオフし、バックア
ップバッテリBからの電圧がFI F 0fLl 11
0およびFIFO(21111に供給されるので、P 
I F 0(11110およびP I F 0f211
14の内容は保持される。電源が復旧すると、バッテリ
回路112のトランジスタT1がオンし、PIF(]1
1110およびP I F 0f21111ニは電5電
圧+5VDCの供給が再開される。
The battery circuit 112 has a power supply voltage of +5VDC of +4.5
Below VDC (variable by changing resistors R1 and R2), transistor T1 turns off and the voltage from backup battery B becomes FI F 0fLl 11
0 and FIFO (21111), so P
I F 0 (11110 and P I F 0f211
The contents of 14 are retained. When the power is restored, the transistor T1 of the battery circuit 112 is turned on, and the PIF(]1
1110 and P I F 0f211112, the supply of voltage +5VDC is restarted.

DKC2は、電源が復旧すると自己診断を行い(ステッ
プ608)、次にF I F (]11110のチェッ
クを行う (ステップ609)。
When the power is restored, the DKC 2 performs a self-diagnosis (step 608), and then checks F IF (] 11110 (step 609).

続いて、電圧降下指示フラグおよびvビットの判定を行
い(ステップ610および611)、電圧降下指示フラ
グが“1″でVビットが1”であればF I F 0(
11110の内容で示されるセクタにFIFO(2) 
111に格納されているデータをライトし、ファイルの
復旧を行う (ステップ612)。このライト動作終了
後は、P I F 0f11110をクリアするととも
にCPUIからの命令を受付は可能とする。電圧降下指
示フラグが“1″でVビットカぴ0″であれば、F I
 F 0(11110(7)内容をRAM108に移送
し、CPUIへの割込みステータスを編集する(ステッ
プ613)。
Next, the voltage drop instruction flag and the v bit are determined (steps 610 and 611), and if the voltage drop instruction flag is "1" and the V bit is 1, F I F 0 (
FIFO (2) in the sector indicated by the contents of 11110
The data stored in 111 is written and the file is restored (step 612). After this write operation is completed, P IF 0f11110 is cleared and commands from the CPU can be accepted. If the voltage drop instruction flag is “1” and the V bit capacity is 0, then FI
F 0 (11110(7)) Transfers the contents to the RAM 108 and edits the interrupt status to the CPUI (step 613).

CPUIから電源復旧後の最初の指令がくると(ステッ
プ614 ) 、電源断ステータスの有無を判定して(
ステップ615)、電源断ステータスが有る場合にはC
PUIに割込みを発生し、FIFO(11110の内容
をCPUIに転送する。CPUIはこの内容を保持し、
破壊されたセクタの内容が復旧されるまではこのセクタ
に対するリード命令を禁止する。電源断ステータスが無
い場合には、すでに述べたステップ616以下のステッ
プが実行される。
When the first command after power restoration is received from the CPU (step 614), it is determined whether there is a power-off status (
Step 615), if there is a power down status, then
Generates an interrupt to the PUI and transfers the contents of FIFO (11110) to the CPUI.The CPUI retains this contents.
Read commands to the destroyed sector are prohibited until the contents of the sector are restored. If there is no power-off status, the steps from step 616 described above are executed.

ステップ618のライト/リード動作が正常に終了する
と(ステップ619)、次に終了ステータスが編集され
てRAM108に格納され(ステップ620)、CPU
Iに割込みが行われて正常終了が通知される。
When the write/read operation in step 618 ends normally (step 619), the completion status is then edited and stored in the RAM 108 (step 620), and the CPU
An interrupt is made to I to notify normal completion.

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

以上説明したように本発明は、システムの電源の瞬断ま
たは停電によりデータ破壊されたセクタを電源復旧後に
DKCがソフトウェアの介在なしに自動的に復旧するこ
とにより、短時間にシステムの再立ち上げができる効果
がある。
As explained above, the present invention allows the DKC to automatically restore sectors whose data has been destroyed due to a momentary power outage or power outage without any software intervention after the power is restored, allowing the system to be restarted in a short time. It has the effect of

また、FIF(]21にデータが退避できないような最
悪の場合でも、データ破壊されたセクタを電源復旧後に
CPUに通知できるため、ファイルの不完全更新による
矛盾によって生じるシステム障害を回避できるという効
果がある。
In addition, even in the worst case where data cannot be saved to the FIF ( ) 21, the CPU can be notified of data-destroyed sectors after power is restored, making it possible to avoid system failures caused by inconsistencies caused by incomplete file updates. be.

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

第1図は本発明の一実施例を示す構成図、第2図は第1
図中に示したバッテリ回路をさらに詳細に示す回路図、 第3図は第1図中に示した電源監視回路をさらに詳細に
示す回路図、 第4図は第1図中に示した第1 F I FOに格納さ
れる情報を示す図、 第5図は第1図に示した入出力制御装置の動作を示す流
れ図、 第6図は第1図に示した入出力制御装置の動作を示すタ
イムチャート、 第7図はシステム?KttA断の発生とライトセクタと
の関係を例示する図である。 図において、 ■・・・中央処理装置(CPU)、 2・・・入出力制御装置(D K C)、3・・・磁気
ディスク装置(DKLI)、4・・・電FA装置(PW
U)、 101  ・・D M A !IIIJ御回路、102
 ・・バス制御回路、 103  ・・マイクロプロセッサ、 104  ・・割込み回路、 105 ・・電源監視回路、 106  ・ ・ゲート、 107  ・・デバイス制御回路、 108  ・・RAM。 109  ・・FROM。 110・・第1FIF0゜ 111・・第2FIF0゜ 112  ・・バッテリ回路、 201  ・・緊急割込み線、 202  ・・電圧降下予告線である。
FIG. 1 is a configuration diagram showing one embodiment of the present invention, and FIG.
FIG. 3 is a circuit diagram showing the power supply monitoring circuit shown in FIG. 1 in more detail; FIG. 4 is a circuit diagram showing the power supply monitoring circuit shown in FIG. FIG. 5 is a flowchart showing the operation of the input/output control device shown in FIG. 1; FIG. 6 is a flowchart showing the operation of the input/output control device shown in FIG. 1. Is the time chart, Figure 7, a system? FIG. 3 is a diagram illustrating the relationship between the occurrence of KttA disconnection and write sectors. In the figure, ■...Central processing unit (CPU), 2...Input/output control unit (DKC), 3...Magnetic disk device (DKLI), 4...Electronic FA device (PW)
U), 101...DM A! IIIJ control circuit, 102
... bus control circuit, 103 ... microprocessor, 104 ... interrupt circuit, 105 ... power supply monitoring circuit, 106 ... gate, 107 ... device control circuit, 108 ... RAM. 109...FROM. 110...First FIF0°111...Second FIF0°112...Battery circuit, 201...Emergency interrupt line, 202...Voltage drop warning line.

Claims (1)

【特許請求の範囲】 中央処理装置からの指令により磁気ディスク装置のリー
ド動作およびライト動作の制御を行う入出力制御装置に
おいて、 電圧降下を監視する電圧監視回路と、 電圧降下時に動作を行っていた前記磁気ディスク装置の
ユニット番号、シリンダ番号、トラック番号、セクタ番
号、電圧降下指示フラグおよびデータ格納有効性指示ビ
ットを含む情報を格納する第1FIFOと、 所定バイト数のデータを格納できる第2FIFOと、 前記第1FIFOおよび前記第2FIFOをバッテリバ
ックアップするバッテリ回路と、 システムの電源装置の電圧降下予告線の駆動によってマ
イクロプロセッサへの割込みを可能とする割込み回路と
、 を有することを特徴とする入出力制御装置。
[Claims] An input/output control device that controls read and write operations of a magnetic disk device based on commands from a central processing unit, comprising: a voltage monitoring circuit that monitors voltage drops; and a voltage monitoring circuit that operates when the voltage drops. a first FIFO that stores information including a unit number, cylinder number, track number, sector number, voltage drop instruction flag, and data storage validity instruction bit of the magnetic disk device; a second FIFO that can store a predetermined number of bytes of data; An input/output control system comprising: a battery circuit that backs up the first FIFO and the second FIFO with a battery; and an interrupt circuit that enables an interrupt to the microprocessor by driving a voltage drop warning line of a power supply of the system. Device.
JP61010648A 1986-01-21 1986-01-21 Input and output controller Pending JPS62168221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61010648A JPS62168221A (en) 1986-01-21 1986-01-21 Input and output controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61010648A JPS62168221A (en) 1986-01-21 1986-01-21 Input and output controller

Publications (1)

Publication Number Publication Date
JPS62168221A true JPS62168221A (en) 1987-07-24

Family

ID=11756039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61010648A Pending JPS62168221A (en) 1986-01-21 1986-01-21 Input and output controller

Country Status (1)

Country Link
JP (1) JPS62168221A (en)

Similar Documents

Publication Publication Date Title
JPH10320135A5 (en) Data storage system, data protection processing method and data protection device
JP2679715B2 (en) Data transfer method
JP3136258B2 (en) Disk update log recording method
JPH02297770A (en) Optical disk device
JP2000357059A (en) Disk array device
US20030037207A1 (en) Disk array apparatus
JPH1195933A (en) Disk array device
JPH07182250A (en) Automatic alternation processing method for magnetic disks
JP2003330627A (en) Storage device
JPS62173670A (en) Input/output controller
JP4098400B2 (en) Semiconductor disk device
JPS6247758A (en) Floppy disk data protection device
JP2000322333A (en) Automatic saving/automatic restoration system and method for information specific to computer system
JPS589201A (en) Record protecting method of magnetic disk storage device
JPH0651918A (en) Semiconductor disk device
JP2002091632A (en) Computer system
JPS63280357A (en) Data save/restore system
JPH0415726A (en) Write backup method for disk controller
JPH0588988A (en) Disk array device and data restoration method
JP2006318105A (en) Monitoring system
JPH01102658A (en) File write backup method
JP2656499B2 (en) Computer system
CN121029505A (en) Methods, devices, electronic equipment and storage media for isolating power-loss data
JPH10198523A (en) Magnetic disk device
JPH03244047A (en) Store mechanism for working state data on data processor