[go: up one dir, main page]

JPH01300357A - Electronic disk device - Google Patents

Electronic disk device

Info

Publication number
JPH01300357A
JPH01300357A JP63129490A JP12949088A JPH01300357A JP H01300357 A JPH01300357 A JP H01300357A JP 63129490 A JP63129490 A JP 63129490A JP 12949088 A JP12949088 A JP 12949088A JP H01300357 A JPH01300357 A JP H01300357A
Authority
JP
Japan
Prior art keywords
circuit
memory circuit
control
data
memory
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
JP63129490A
Other languages
Japanese (ja)
Inventor
Toshifumi Matsuo
松尾 敏文
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 JP63129490A priority Critical patent/JPH01300357A/en
Publication of JPH01300357A publication Critical patent/JPH01300357A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To minimize the destruction of the memory contents by discontinuing a data writing action at the trouble of an electronic disk device after reading out the protection information which is stored in the same address as the writing address to a data memory circuit from a control memory circuit. CONSTITUTION:The same addresses are read out of a data memory circuit 15 and a control memory circuit 17 respectively before the data contained in a data signal 12 is written into the circuit 15 based on an address signal 11. Therefore the protection information 19 is read out of the circuit 17 against an address of the circuit 15 that should be protected. When a writing action is carried out to the address where the information 19 on the circuit 17 is stored at the abnormality, i.e., a hardware trouble, etc., the information 19 is detected by a memory control circuit 21. Thus the circuit 21 discontinues the subsequent data writing actions to the circuit 15 by means of the control information 24 and protects the memory contents.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、電子ディスク装胃に係わり、特に装置の不正
動作時にメモリ内容を保護できる電子ディスク装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to electronic disk storage, and more particularly to an electronic disk device that can protect memory contents in the event of a malfunction of the device.

〔従来の技術〕[Conventional technology]

過去十数年に半導体集積回路は著しい発展をとげてきて
いる。マイクロプロセッサを例にとっても、4ビツトか
ら8ビツト、16ビツF132ビツトと高機能化、高性
能化の1途をたどっている。このような高機能化、高性
能化した論理デバイスの応用装置ではその使用するメモ
リ空間も広大になり、各種の管理が必要になってきてい
る。
Semiconductor integrated circuits have made remarkable progress over the past ten years. Taking microprocessors as an example, they have continued to advance in functionality and performance, from 4 bits to 8 bits to 16 bits to 132 bits. The memory space used by such logic device application devices with higher functionality and performance has become vast, and various types of management have become necessary.

特に、メモリ保護は例えば、O3(オペレーティング・
システム)を他のプログラムから保護したりユーザタス
ク相互間を隔離したりする点から重要である。また、プ
ログラムの格納されている領域に誤ってデータを書き込
むことによるシステムの暴走を防ぐ点からも重要になっ
てきている。従来、例えば、プログラムやデータの保護
はそれらの領域(セグメントまたはページ)ごとにあら
かじめ定めた属性を示すディスクリブタを設けて行われ
た。すなわち、このセグメントがアクセスされるたびに
、このアクセスの性質、例えば、読み出しか、書き込み
か、実行かがディスクリブタに設定された属性、例えば
読み出か書き込みか、実行の許可か、禁止かに対してチ
エツクされる。そしてアクセスが違反していた時は、ト
ラップが発生し、O8に制御が移るようになされていた
。ところで、本発明に係わるような電子ディスク装置で
は、ハードウェアの故障などで生じる不正なメモリエリ
アに対して書き込みを行っても、これを検出し、停止さ
せる手段を従来有していなかった。
In particular, memory protection is e.g.
This is important in terms of protecting the system (system) from other programs and isolating user tasks from each other. It is also becoming important to prevent the system from running out of control due to erroneously writing data to the area where the program is stored. Conventionally, for example, programs and data have been protected by providing a descriptor that indicates predetermined attributes for each area (segment or page). That is, each time this segment is accessed, the nature of this access, e.g., read, write, or execute, is determined by the attributes set in the descriptor, e.g., read or write, whether execution is allowed or prohibited. will be checked against. When access was violated, a trap was generated and control was transferred to O8. Incidentally, the electronic disk device according to the present invention has not conventionally had a means for detecting and stopping even if writing is performed to an illegal memory area due to a hardware failure or the like.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このように、従来の電子ディスク装置は、ハードウェア
の故障などが生じると、不正なメモリエリアに書き込み
を行ってしまい、メモリの内容が破壊されるという問題
があった。
As described above, conventional electronic disk devices have a problem in that when a hardware failure occurs, data is written to an incorrect memory area and the contents of the memory are destroyed.

〔課題を解決するための手段〕[Means to solve the problem]

データおよび管理情報などを格納するデータメモリ回路
と、このデータメモリ回路と同一のアドレスを有し、こ
のデータメモリ回路の格納内容を装置の故障時に保護す
るための保護情報を格納する制御メモリ回路と、この制
御メモリ回路に格納される上記保護情報を生成し、これ
をあらかじめ上記制御メモリ回路に書き込み、かつ装置
の故障時には上記データメモリ回路の所望のアドレスに
対する書き込みに際して、その前に、上記制御メモリ回
路から、このデータメモリ回路に対する書込アドレスと
同一のアドレスに格納された上記保護情報を読み出し、
書込動作を停止させるメモリ制御回路とを具備している
A data memory circuit that stores data, management information, etc., and a control memory circuit that has the same address as this data memory circuit and stores protection information for protecting the stored contents of this data memory circuit in the event of a device failure. , generates the protection information to be stored in the control memory circuit, writes it in advance to the control memory circuit, and in the event of a failure of the device, writes the protection information to the control memory before writing to a desired address in the data memory circuit. Reads the protection information stored in the same address as the write address to this data memory circuit from the circuit,
The memory control circuit includes a memory control circuit that stops the write operation.

従って、本発明による電子ディスク装置を用いると、制
御メモリ回路は、保護すべきデータメモリ回路と同一の
アドレスを持ち、このデータメモリ回路の格納内容を保
護するための保護情報を格納する。そして、メモリ制御
回路は、上記保護情報を生成し、上記制御メモリ回路に
あらかじめ書き込み、かつハードウェアの故障などに際
して、上記データメモリ回路の任意のアドレスに対する
書き込み前に、上記制御メモリ回路から、上記データメ
モリ回路に対する書込アドレスと同一のアドレスに格納
された上記保護情報を読み出し、書込動作を停止させる
。これにより、障害が発生しても、データメモリ回路の
メモリ内容の破壊を最小限に抑えることができる。
Therefore, when using the electronic disk device according to the present invention, the control memory circuit has the same address as the data memory circuit to be protected, and stores protection information for protecting the contents stored in this data memory circuit. The memory control circuit generates the protection information and writes it in the control memory circuit in advance, and in the event of a hardware failure or the like, the memory control circuit generates the protection information and writes the protection information from the control memory circuit before writing to an arbitrary address of the data memory circuit. The protection information stored at the same address as the write address for the data memory circuit is read and the write operation is stopped. Thereby, even if a failure occurs, destruction of the memory contents of the data memory circuit can be minimized.

〔実施例〕〔Example〕

以下実施例につき、本発明の詳細な説明する。 The present invention will be described in detail below with reference to Examples.

第1図は本実施例の電子ディスク装置を示したものであ
る。
FIG. 1 shows the electronic disk device of this embodiment.

図において、図示しない上位装置からのアドレス信号1
1およびデータ信号12は、インタフェース制御回路1
4を介してデータメモリ回路15に送られる。インタフ
ェース制御回路14は図示しない上位装置とのインタフ
ェースの制御を行う。データメモリ回路15は、上記の
データ信号12に含まれるデータや管理情報などを格納
する。
In the figure, address signal 1 from a higher-level device (not shown)
1 and data signal 12 are connected to interface control circuit 1
4 to the data memory circuit 15. The interface control circuit 14 controls the interface with a host device (not shown). The data memory circuit 15 stores data, management information, etc. included in the data signal 12 described above.

また、このデータメモリ回路15は制御メモリ回路17
に接続される。この制御メモリ回路17は、データメモ
リ回路15と同一のアドレスを有し、またデーダメモリ
回路15を保護するための保護情報19を格納する。さ
らに、データメモリ回路15からアドレス信号11を受
ける。制御メモリ回路17に格納される保護情報19は
、この制御メモリ回路17に接続されたメモリ制御回路
21で生成される。このメモリ制御回路21は、また、
データメモリ回路15とインタフェース制御回路14に
接続される。そしてこのメモリ制御回路21は、データ
メモリ回路15と制御メモリ回路17に制御信号23.
24を送出し、これらの回路に対する読み書きを制御す
る。さらに、このメモリ制御回路21は、インタフェー
ス制御回路14を介して図示しない上位装置から、メモ
リ読み書きの制御信号25を受け、その動作が起動され
る。
Further, this data memory circuit 15 is connected to a control memory circuit 17.
connected to. This control memory circuit 17 has the same address as the data memory circuit 15 and also stores protection information 19 for protecting the data memory circuit 15. Further, it receives an address signal 11 from a data memory circuit 15. The protection information 19 stored in the control memory circuit 17 is generated by a memory control circuit 21 connected to the control memory circuit 17. This memory control circuit 21 also includes:
It is connected to the data memory circuit 15 and the interface control circuit 14 . The memory control circuit 21 then sends a control signal 23. to the data memory circuit 15 and control memory circuit 17.
24 to control reading and writing to these circuits. Furthermore, this memory control circuit 21 receives a memory read/write control signal 25 from a host device (not shown) via the interface control circuit 14, and its operation is activated.

次に動作について説明する。Next, the operation will be explained.

まず、初期化処理において、メモリ制御回路21で生成
された保護情報19が、制御信号23に従って、一定の
アドレス間隔で制御メモリ回路17に書き込まれる。そ
の後、図示しない上位装置から制御信号25がメモリ制
御回路21に送られ、これによりメモリ制御回路21が
設定され、次の動作を行う。すなわち、図示しない上位
装置からデータメモリ回路15にアドレス信号11に従
ってデータ信号12に含まれるデータが書き込まれる前
に、データメモリ回路15および制御メモリ回路17の
同一アドレスが読み出され、これにより制御メモリ回路
17からデータメモリ回路15の保護されるべきアドレ
スに対する保護情報19が読み出される。正常時には、
データメモリ回路15に対する書き込みは、制御メモリ
回路17に保護情報19が書き込まれていないアドレス
に対して行われる。従ってこの場合は、メモリ制御回路
21により、制御メモリ回路17から保護情報19は検
出されず、書込動作は継続される。一方、異常時、すな
わちハードウェアの故障時などで、制御メモリ回路17
の保護情報19が格納されているアドレスに書き込みが
行われると、メモリ制御回路21は、この保護情報19
を検出する。この結果、メモリ制御回路21は、データ
メモリ回路15に対するその後のデータ書き込みを制御
情報24により中止させ、メモリ内容の保護を行う。
First, in the initialization process, the protection information 19 generated by the memory control circuit 21 is written into the control memory circuit 17 at regular address intervals according to the control signal 23. Thereafter, a control signal 25 is sent from a host device (not shown) to the memory control circuit 21, whereby the memory control circuit 21 is set and performs the next operation. That is, before the data included in the data signal 12 is written from the host device (not shown) to the data memory circuit 15 according to the address signal 11, the same address of the data memory circuit 15 and the control memory circuit 17 is read, and thereby the control memory Protection information 19 for an address to be protected in data memory circuit 15 is read from circuit 17 . During normal times,
Writing to the data memory circuit 15 is performed to an address in which the protection information 19 is not written to the control memory circuit 17. Therefore, in this case, the memory control circuit 21 does not detect the protection information 19 from the control memory circuit 17, and the write operation continues. On the other hand, in the event of an abnormality, such as a hardware failure, the control memory circuit 17
When writing is performed to the address where protection information 19 is stored, the memory control circuit 21 writes this protection information 19.
Detect. As a result, the memory control circuit 21 uses the control information 24 to stop subsequent data writing to the data memory circuit 15, thereby protecting the memory contents.

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

このように、本発明の電子ディスク装置は、保護すべき
データメモリ回路と同一のアドレスを持ち、このデータ
メモリ回路の格納内容を、装置の何らかの故障時に保護
するための保護情報を格納する制御メモリ回路と、保護
情報を生成し、あらかじめこの保護情報を上記制御メモ
リ回路に書き込み、かつ装置の故障時に上記データメモ
リ回路の所望のアドレスに対する書き込み前に、上記制
御メモリ回路から、このデータメモリに対する書込アド
レスと同一のアドレスに格納された上記保護情報を読み
出し、書込動作を停止させるメモリ制御回路とを設ける
ことにより、ハードウェア故障などの装置故障時に、メ
モリ内容の破壊を最小限に抑え得る効果がある。
As described above, the electronic disk device of the present invention has a control memory that has the same address as a data memory circuit to be protected and stores protection information for protecting the stored contents of this data memory circuit in the event of some kind of failure of the device. generate a circuit and protection information, write this protection information in the control memory circuit in advance, and write to the data memory from the control memory circuit before writing to a desired address of the data memory circuit in the event of a failure of the device. By providing a memory control circuit that reads the protection information stored at the same address as the write address and stops the write operation, destruction of memory contents can be minimized in the event of a device failure such as a hardware failure. effective.

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

第1図は、本発明の電子ディスク装置の一実施例を示す
ブロック図である。 15・・・・・・データメモリ回路、 17・・・・・・制御メモリ回路、 21・・・・・・メモリ制御回路。 出  願  人 日本電気株式会社 代  理  人
FIG. 1 is a block diagram showing an embodiment of an electronic disk device of the present invention. 15...Data memory circuit, 17...Control memory circuit, 21...Memory control circuit. Applicant: NEC Corporation Representative

Claims (1)

【特許請求の範囲】 データおよび管理情報などを格納するデータメモリ回路
と、 このデータメモリ回路と同一のアドレスを有し、このデ
ータメモリ回路の格納内容を装置の故障時に保護するた
めの保護情報を格納する制御メモリ回路と、 この制御メモリ回路に格納される前記保護情報を生成し
、これをあらかじめ前記制御メモリ回路に書き込み、か
つ装置の故障時には前記データメモリ回路の所望のアド
レスに対する書き込みに際して、その前に、前記制御メ
モリ回路から、このデータメモリ回路に対する書込アド
レスと同一のアドレスに格納された前記保護情報を読み
出し、書込動作を停止させるメモリ制御回路 とを具備することを特徴とする電子ディスク装置。
[Claims] A data memory circuit that stores data, management information, etc.; and protection information that has the same address as this data memory circuit and protects the contents stored in this data memory circuit in the event of a failure of the device. a control memory circuit to store the data; and a control memory circuit that generates the protection information to be stored in the control memory circuit, writes it to the control memory circuit in advance, and, in the event of a failure of the device, writes the protection information to a desired address of the data memory circuit. The electronic device further comprises a memory control circuit that reads the protection information stored at the same address as a write address for the data memory circuit from the control memory circuit and stops the write operation. disk device.
JP63129490A 1988-05-28 1988-05-28 Electronic disk device Pending JPH01300357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63129490A JPH01300357A (en) 1988-05-28 1988-05-28 Electronic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63129490A JPH01300357A (en) 1988-05-28 1988-05-28 Electronic disk device

Publications (1)

Publication Number Publication Date
JPH01300357A true JPH01300357A (en) 1989-12-04

Family

ID=15010768

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63129490A Pending JPH01300357A (en) 1988-05-28 1988-05-28 Electronic disk device

Country Status (1)

Country Link
JP (1) JPH01300357A (en)

Similar Documents

Publication Publication Date Title
CN102968353A (en) Fail address processing method and fail address processing device
KR100251381B1 (en) Apparatas and method for initializing of volatile memory
JPH02156357A (en) How to prevent program destruction
JPH0156410B2 (en)
JPH01300357A (en) Electronic disk device
JPS59231800A (en) Preventing device for foul writing to main memory
JPS58211254A (en) Accumulated program controlling system
JP2005209178A (en) Memory protection unit, memory protection method, and memory protection program
JPS63250753A (en) Memory access check method
JPH08129508A (en) Computer system and its shared memory control method
JP4009401B2 (en) Disk control apparatus and recording medium recording program
JPH07141120A (en) Processing method for fault in information storage medium
JPS61279940A (en) Fault detector for computer
JPS60142452A (en) Memory protection method
JPH0216656A (en) Electronic disk device
JPS61228544A (en) Write protection system
JPS61279941A (en) Fault detector for computer
JPH04289558A (en) Write data protection method during instantaneous power outage in disk devices
JP2000207235A (en) Information processor
JPH0476138B2 (en)
JPS62232054A (en) Controlling system for stack frame descriptor
JPH0281243A (en) Main memory contents destruction prevention method
JPH01180656A (en) Memory protecting device
JPH0528413B2 (en)
JPH02176843A (en) Dma controller