JPS6046745B2 - Memory access method - Google Patents

Memory access method

Info

Publication number
JPS6046745B2
JPS6046745B2 JP53098222A JP9822278A JPS6046745B2 JP S6046745 B2 JPS6046745 B2 JP S6046745B2 JP 53098222 A JP53098222 A JP 53098222A JP 9822278 A JP9822278 A JP 9822278A JP S6046745 B2 JPS6046745 B2 JP S6046745B2
Authority
JP
Japan
Prior art keywords
memory
protect
central processing
processing unit
data channel
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
Application number
JP53098222A
Other languages
Japanese (ja)
Other versions
JPS5525155A (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.)
Fujitsu Ltd
NEC Corp
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone Corp
Nippon Electric Co 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp, Nippon Electric Co Ltd filed Critical Fujitsu Ltd
Priority to JP53098222A priority Critical patent/JPS6046745B2/en
Publication of JPS5525155A publication Critical patent/JPS5525155A/en
Publication of JPS6046745B2 publication Critical patent/JPS6046745B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Memory System (AREA)

Description

【発明の詳細な説明】 本発明はメモリアクセス方式、たとえば電子交換器の
中央処理系などにおいて、データチャネル等から主記憶
装置へデータを蓄積する際の書込アドレス違反検出を行
うメモリアクセス方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory access method, for example, a memory access method for detecting a write address violation when storing data from a data channel or the like to a main memory in a central processing system of an electronic exchange. .

従来メモリ保護を行う方法として、たとえば、メモリ
のブロック毎のメモリロックを与え、書込みを要求する
中央処理装置またはデータチャネル側でキーを用意し、
主記憶装置でマッチ条件をとり、条件不成立の場合書込
みを禁止しプロテクトエラーとしてメモリ保護を行なう
方法がある。
Conventional methods for memory protection include, for example, providing a memory lock for each block of memory, preparing a key on the central processing unit or data channel side that requests writing, and
There is a method of protecting the memory by setting a match condition in the main memory, and if the condition is not satisfied, writing is prohibited and a protection error is treated.

データチャネルからのストア時にあれば書込みを禁止し
データチヤネルヘプロテクトエラーの情報を送出する。
そして、データチャネルの動作結果などを報告する際の
システムエリアヘの書込みなど、メモリロックの条件に
かかわりなく書込みを行う必要のある時のためにマスタ
ーキーを用意する。また、別の方法として、メモリプロ
テクト情報を分割されたブロックに与えて保護を行い、
プロテクト情報を無視するためにプロテクト無視指定の
信号を特別に出す手段を用意する方法もあつた。 しカ
ルながら、前者の方法では、キー情報のためのインター
フェイス線、キーマッチ回路等のハードウェアが多くな
るという欠点があり、後者の方法ではプロテクト無視指
定送出のためのハードウェアを必要とし、かつプロテク
ト無視指定をメモリ装置に設定する動作のための通常の
メモリアクセスの他に更に1メモリサイクルを必要とす
る、などの欠点がある。
If there is a store from the data channel, writing is prohibited and protect error information is sent to the data channel.
A master key is prepared for times when it is necessary to write to the system area when reporting data channel operation results, etc., regardless of the memory lock condition. Another method is to protect the divided blocks by giving them memory protection information.
In order to ignore the protect information, there was also a method of preparing a special means for issuing a signal specifying protection ignore. However, the former method has the disadvantage of requiring a large amount of hardware such as interface lines and key match circuits for key information, while the latter method requires hardware for sending out protection ignore designations, and This method has drawbacks such as requiring one additional memory cycle in addition to normal memory access for setting the protection ignore designation in a memory device.

本発明の目的は、プロテクトメモリおよび書込みの可否
の判定手段との結合形態に工夫をこらすことにより、こ
の種のメモリアクセスにおける書込みアドレス違反の検
出判定を適正に行い該検出判定の結果にもとづく書込み
禁止等の処置を、アクセスした装置側において決定しう
るようにし、運用上の融通性を増大し実用性を高めるこ
とにある。
An object of the present invention is to appropriately detect and judge write address violations in this type of memory access, and to perform write operations based on the results of the detection and judgment, by devising the combination of the protected memory and the means for determining whether writing is possible. The purpose is to allow the accessing device to decide on measures such as prohibition, thereby increasing operational flexibility and increasing practicality.

本発明においては、中央処理装置、データチャネル装置
からの書込み動作が主記憶装置上の定められた語数に分
割された特定エリアヘアクセスするとき、主記憶装置と
は別に設けたプロテクトメモリをアクセスして、その出
力データのROJかRlJかを見て、プロテクトエリア
か否かを判定する検出回路を、中央処理装置の主記憶制
御部分に設け、主記憶装置をアクセスした装置に対して
、前記検出回路で検出した信号を返送する手段と、前記
アクセスした装置内で前記手段から返送された信号によ
り該書込みが有効であるか否かを判定する手段とを有し
、前記判定の結果にもとつき書込みを禁止するか否かを
前記アクセスした装置側において決定し得るようになつ
ている、ことを特徴とするメモリアクセス方式が提供さ
れる。
In the present invention, when a write operation from the central processing unit or data channel device accesses a specific area divided into a predetermined number of words on the main memory, a protect memory provided separately from the main memory is accessed. A detection circuit is provided in the main memory control section of the central processing unit to check whether the output data is ROJ or RlJ and determine whether it is a protected area. means for returning a signal detected by the circuit, and means for determining whether or not the writing is valid based on the signal returned from the means within the accessed device, and based on the result of the determination. There is provided a memory access method characterized in that the accessing device side can decide whether or not to prohibit write-in.

本発明の実施例を第1および第2図について説明する。
プロテクトメモリ9の入力端子7において、AO,Al
,・・・・A5はプロテクトブロックを与えるアドレス
で、主記憶装置41,42,・・アクセス時の、中央処
理装置1またはデータチャネル装置21からのアドレス
の上位ビットであ.る。ここに、中央処理装置1の主記
憶制御回路2におけるアドレスレジスタ4は中央処理装
置使用許可信号3を受けてアドレス信号5を出力し、デ
ータチャネル21におけるアドレスレジスタ23はデー
タチャネル使用許可信号22を受けてアドレス信号24
を出力する。ゲート系6は、たとえばゲート600,6
01,・・・609,610,・・・614,615か
ら成り、これらは主記憶装置に対するアドレス信号AD
O,ADl,・・・・油9,AD10・・・・・・AD
l4,ADl5にそれぞれ対・応する。このアドレス信
号の上位6ビットADlO,ADll,・・・・ADl
5がプロテクトメモリ9の入力端子7にAO,Al,・
・・・A5として与えられる。別にプロテクトメモリ9
の入力端子8に、ライトイネイブル(WE)、チツプイ
ネィブル(CE)、データイ(DI)の各信号が入力さ
れる。DIおよびWEはプロテクトセットおよびプロテ
クトメモリ書込みを指示するもので、プロテクト情報を
プロテクトメモリに与える際に用いられる。このように
して、プロテクトメモリ9においてプロテクト情報が保
持される。プロテクトメモリ9の出力10はゲート14
に与えられるが、ゲート14の他の入力S3はライト”
オーダであつてゲート13を通してデータチャネルから
のメモリ書込み指示11または中央処理装置からのメモ
リ書込み指示12として与えられる。
An embodiment of the invention will be described with reference to FIGS. 1 and 2. FIG.
At the input terminal 7 of the protect memory 9, AO, Al
, . . . A5 is an address giving a protect block, and is the upper bit of the address from the central processing unit 1 or data channel device 21 when accessing the main memory 41, 42, . Ru. Here, the address register 4 in the main memory control circuit 2 of the central processing unit 1 receives the central processing unit usage permission signal 3 and outputs the address signal 5, and the address register 23 in the data channel 21 outputs the data channel usage permission signal 22. Receive address signal 24
Output. The gate system 6 includes, for example, gates 600, 6
01, . . . 609, 610, . . . 614, 615, these are address signals AD for the main memory device.
O,ADl,...Oil9,AD10...AD
They correspond to ADl4 and ADl5, respectively. The upper 6 bits of this address signal ADlO, ADll, ... ADl
5 is connected to the input terminal 7 of the protect memory 9 with AO, Al, .
...Given as A5. Separately protected memory 9
Write enable (WE), chip enable (CE), and data input (DI) signals are input to the input terminal 8 of the. DI and WE instruct protect set and write to protect memory, and are used when providing protect information to protect memory. In this way, protect information is held in the protect memory 9. The output 10 of the protect memory 9 is the gate 14
, but the other input S3 of gate 14 is “write”.
The order is given through gate 13 as a memory write instruction 11 from the data channel or as a memory write instruction 12 from the central processing unit.

ゲート14の出力はゲート17に供給されるが、ゲート
17の他の入力16はプロテクト無効化信号S4であつ
て中央処理装置でのプロテクト無視の際の信号である。
このように、プロテクトメモリ9,ゲート14、および
ゲート17が検出回路を形成する。ゲート14の出力は
またデータチャネルへ返送されるプロテクト情報S5と
してデータチャネルの判定回路25に与えられる。判定
回路25において書込み有効であるか否かが判定される
。ゲート17の出力は中央処理装置内部で処理を行なう
ためのプロテクト情報S6として割込回路18等に与え
られる。中央処理装置1の主記憶装置制御回路2におけ
るゲート6の出力は主記憶装置41,42,・・・・に
接続される。主記憶装置はたとえば1キロワードのメモ
リブロック64個を有する単位体41,42,・・より
成る。主記憶装置41,42,・・の各メモリブロック
がプロテクトメモリ9の一つの区画に対応させられてい
゛る。第2図において、動作を説明する。
The output of the gate 14 is supplied to the gate 17, and the other input 16 of the gate 17 is a protection invalidation signal S4, which is a signal used when the central processing unit ignores protection.
Thus, protect memory 9, gate 14, and gate 17 form a detection circuit. The output of the gate 14 is also given to the data channel determination circuit 25 as protect information S5 to be sent back to the data channel. The determination circuit 25 determines whether writing is valid or not. The output of the gate 17 is given to the interrupt circuit 18 and the like as protection information S6 for processing within the central processing unit. The output of the gate 6 in the main memory device control circuit 2 of the central processing unit 1 is connected to the main memory devices 41, 42, . . . . The main storage device consists of units 41, 42, . . . each having 64 memory blocks of 1 kiloword, for example. Each memory block of the main storage devices 41, 42, . . . corresponds to one section of the protect memory 9. The operation will be explained with reference to FIG.

まず、中央処理装置1のメモリアクセス時について、プ
ロテクトエリアに対してアクセスされた場合の書込みア
ドレス違反検出の方法を説明する。或るメモリブロック
のメモリをアクセスすると、アクセスするアドレスに対
しプロテクトメモリ9からデータS5が出力される。\
については、RlJがプロテクト、ROJが非プロテク
トであるとする。メモリ読取り時にはメモリを破壊する
ことはないのでゲート14の入力として書込み指示を与
え、読取り時にはゲート14の出力をROJとしている
。通常、プロテクト無効化はROョであるので、プロテ
クトブロックへ書込み指示がでるとゲート17の出力が
RlJとなり、プロテクトエラー検出の割込み処理に入
る。この割込み処理につづいてエラー処理、障害検出等
が行われ正常処理への復帰がなされる。メモリ保護のい
かんにかかわらず書込みを行う必要のある場合には、プ
ロテクト無効化をRlJにしておけば、プロテクトメモ
リの情報を無視しメモリへの書込みを行う。つぎに、デ
ータチャネル21でのメモリプロテクトの方法を説明す
る。
First, regarding the memory access of the central processing unit 1, a method of detecting a write address violation when a protected area is accessed will be described. When the memory of a certain memory block is accessed, data S5 is output from the protect memory 9 to the accessed address. \
Assume that RlJ is protected and ROJ is unprotected. Since the memory is not destroyed when reading the memory, a write instruction is given as an input to the gate 14, and when reading, the output of the gate 14 is set as ROJ. Normally, protection is invalidated by RO, so when a write instruction to a protect block is issued, the output of gate 17 becomes RlJ, and protection error detection interrupt processing begins. Following this interrupt processing, error processing, failure detection, etc. are performed to return to normal processing. If it is necessary to write regardless of memory protection, by setting protection invalidation to RlJ, information in the protected memory is ignored and writing to the memory is performed. Next, a method of memory protection in the data channel 21 will be explained.

データチャネル21から主記憶装置41,42,・・・
・へアクセスする時には、データチャネル21からのア
ドレスがプロテクトメモリ9に入力され、データチャネ
ル21からのアドレスに対応するメモリブロックがプロ
テクトされている領域であるか否かを判定する。メモリ
ストアであればゲート14が活性化され、プロテクト領
域であれば、20の信号により書込アドレス違反として
データチヤネルヘプロテクト領域へのメモリストアであ
ることを報告する。図示されていないが、データチャネ
ルでは、メモリ保護の必要のない時またはメモリ保護の
如何にかかわらずメモリストアを行わねばならぬ時には
、プロテクトエラーの情報を無視する。プロテクトの必
要のある場合には、書込アドレス違反であることが中央
処理装置からの報告で検出されれば、メモリストアを禁
止し、メモリプロテクトエラーの処理に入る。なお、以
上の説明においては、プロテクトメモリを中央処理装置
に置くものとして記述したが、それに代えて主記憶装置
のメモリコントロール部にプロテクトメモリを置くこと
も可能である。
From the data channel 21 to the main storage devices 41, 42, . . .
When accessing, the address from the data channel 21 is input to the protect memory 9, and it is determined whether the memory block corresponding to the address from the data channel 21 is a protected area. If it is a memory store, gate 14 is activated, and if it is a protect area, a signal 20 is used to report to the data channel that it is a memory store to the protect area as a write address violation. Although not shown, the data channel ignores protect error information when memory protection is not necessary or when memory store must be performed regardless of memory protection. If protection is necessary, if a write address violation is detected in a report from the central processing unit, memory store is prohibited and memory protection error processing is started. Note that in the above description, the protect memory is described as being placed in the central processing unit, but it is also possible to place the protect memory in the memory control section of the main storage device instead.

本発明によれば、中央処理装置およびデータチャネルか
らの書込み動作が主記憶装置上の定められた語数に分割
された特定エリアへのアクセスであるか否かを判定する
検出回路の存在にもとつき、この種のメモリアクセスに
おける書込みアドレス違反の検出判定が適正に行われ、
該検出判定の結果にもとづく書込み禁止等の処置を、ア
クセスした装置側において決定することができ、運用上
の融通性が増大し、実用性が高められる。
According to the present invention, the present invention is based on the existence of a detection circuit that determines whether a write operation from the central processing unit and the data channel is an access to a specific area divided into a predetermined number of words on the main memory. Therefore, the detection judgment of write address violation in this type of memory access is performed properly,
Measures such as write prohibition based on the result of the detection determination can be determined on the accessed device side, increasing operational flexibility and increasing practicality.

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

第1図は本発明の一実施例としての、メモリアクセス方
式を説明するブロック回路図、第2図は第1図の動作説
明用回路図てある。 (符号の説明)、1・・・・・・中央処理装置、2・・
・中央処理装置の主記憶装置制御回路、4・・・・・ア
ドレスレジスタ、6・・・・・・ゲート、9・・・・・
・プロテクトメモリ、13,14,17・・・・・・ゲ
ート、21・データチャネル、23・・・・アドレスレ
ジスタ、25・・・・・・判定回路、41,42・・・
・・・主記憶装置。
FIG. 1 is a block circuit diagram for explaining a memory access method as an embodiment of the present invention, and FIG. 2 is a circuit diagram for explaining the operation of FIG. (Explanation of symbols), 1...Central processing unit, 2...
・Main memory control circuit of central processing unit, 4...address register, 6...gate, 9...
・Protect memory, 13, 14, 17... Gate, 21 ・Data channel, 23... Address register, 25... Judgment circuit, 41, 42...
...Main memory.

Claims (1)

【特許請求の範囲】[Claims] 1 中央処理装置、データチャネル装置からの書込み動
作が主記憶装置上の定められた語数に分割された特定エ
リアへアクセスするとき、主記憶装置とは別に設けたプ
ロテクトメモリをアクセスして、その出力データの「0
」か「1」かを見て、プロテクトエリアか否かを判定す
る検出回路を、中央処理装置の主記憶装置制御部分に設
け、主記憶装置をアクセスした装置に対して、前記検出
回路で検出した信号を返送する手段と、前記アクセスし
た装置内で、前記手段から返送された信号により該書込
みが有効であるか否かを判定する手段とを有し、前記判
定の結果にもとづき書込みを禁止するか否かを前記アク
セスした装置側において決定し得るようになつている、
ことを特徴とするメモリアクセス方式。
1. When a write operation from the central processing unit or data channel device accesses a specific area divided into a predetermined number of words on the main memory, a protect memory provided separately from the main memory is accessed and the output is Data “0”
” or “1” and determines whether the area is a protected area or not, is provided in the main storage control section of the central processing unit, and the detection circuit detects a device that has accessed the main storage. and means for determining whether or not the writing is valid based on the signal returned from the means in the accessed device, and prohibiting writing based on the result of the determination. The accessing device side can decide whether or not to do so.
A memory access method characterized by:
JP53098222A 1978-08-14 1978-08-14 Memory access method Expired JPS6046745B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53098222A JPS6046745B2 (en) 1978-08-14 1978-08-14 Memory access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53098222A JPS6046745B2 (en) 1978-08-14 1978-08-14 Memory access method

Publications (2)

Publication Number Publication Date
JPS5525155A JPS5525155A (en) 1980-02-22
JPS6046745B2 true JPS6046745B2 (en) 1985-10-17

Family

ID=14213928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53098222A Expired JPS6046745B2 (en) 1978-08-14 1978-08-14 Memory access method

Country Status (1)

Country Link
JP (1) JPS6046745B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6232544A (en) * 1985-08-05 1987-02-12 Mitsubishi Electric Corp Abnormally detecting circuit for information processor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3806882A (en) * 1971-11-22 1974-04-23 A Clarke Security for computer systems
JPS50128936A (en) * 1974-03-29 1975-10-11

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3806882A (en) * 1971-11-22 1974-04-23 A Clarke Security for computer systems
JPS50128936A (en) * 1974-03-29 1975-10-11

Also Published As

Publication number Publication date
JPS5525155A (en) 1980-02-22

Similar Documents

Publication Publication Date Title
US5056009A (en) IC memory card incorporating software copy protection
JP3529800B2 (en) Data protection microprocessor circuit for portable data carrier
CA1208803A (en) Method for checking storage protection and a circuit for carrying out the same
EP0315209B1 (en) Microcomputer incorporating memory
US4298934A (en) Programmable memory protection logic for microprocessor systems
US3986169A (en) Device protection method and apparatus
IE50247B1 (en) Data processing system including internal register addressing arrangements
US3599159A (en) Digital memory with automatic overwrite protection
JPH04213136A (en) Updating system for reference bit and change bit
US20080091917A1 (en) Apparatus and method for directing micro architectural memory region accesses
JPS5539994A (en) Multiprocessor system
JPS6046745B2 (en) Memory access method
EP1066567B1 (en) Method and apparatus for secure address re-mapping
US6738869B1 (en) Arrangements for out-of-order queue cache coherency and memory write starvation prevention
JPS62160554A (en) Device for preventing wrong access to memory
EP0598570A2 (en) Region configuration system and method for controlling memory subsystem operations by address region
JPS6250863B2 (en)
JPS6329859A (en) Memory protection circuit
JPS6035694B2 (en) Main memory protection method
JP3047992B2 (en) Main memory key control method
JPS6043541B2 (en) data processing equipment
JPS58201157A (en) Control circuit of bank memory
JPS6136669B2 (en)
JPS60246450A (en) Memory protecting device
JPS6073761A (en) Memory protective device