JPH0934793A - Main memory key controller - Google Patents
Main memory key controllerInfo
- Publication number
- JPH0934793A JPH0934793A JP7185174A JP18517495A JPH0934793A JP H0934793 A JPH0934793 A JP H0934793A JP 7185174 A JP7185174 A JP 7185174A JP 18517495 A JP18517495 A JP 18517495A JP H0934793 A JPH0934793 A JP H0934793A
- Authority
- JP
- Japan
- Prior art keywords
- key
- address
- unit
- register
- main 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.)
- Withdrawn
Links
Landscapes
- Storage Device Security (AREA)
Abstract
(57)【要約】
【課題】 主メモリのキー機能がある既存のプロセッサ
を、キー機能のない汎用のメモリ・ユニット(メモリ・
コントロール回路も含む)に接続可能に構成し、低価格
で信頼性の高いデータ処理システムを提供すること。
【解決手段】 キー機能付プロセッサ20と、キー機能
なしのメモリ・コントロール・ユニット30を具備する
データ処理装置において、キー・ベース・アドレスKB
により区分された部分をキー・ストレイジ空間KSMと
して使用する主記憶40と、KBが記入されたキー・ベ
ース・アドレス保持手段5と、キー機能付プロセッサ2
0からのアクセス要求を受けるリクエスト保持手段1
と、このアクセス要求に指示されたアドレスと、前記K
Bを加算する加算手段6と、この加算手段6から出力さ
れたアドレスと、前記アクセス要求に指示されたアドレ
スのいずれか一方をアクセス要求の内容に応じて出力す
る選択出力手段8を具備する。
(57) [Abstract] [Problem] An existing processor having a key function of a main memory is replaced with a general-purpose memory unit (memory
To provide a low-cost, highly reliable data processing system that is configured to be connectable to the control circuit). In a data processing device including a processor with a key function and a memory control unit without a key function, a key base address KB is provided.
The main memory 40 that uses the part divided by the key storage space KSM, the key base address holding means 5 in which KB is entered, and the processor with key function 2
Request holding means 1 for receiving an access request from 0
And the address specified in this access request, and the K
It is provided with an adding means 6 for adding B, and a selective output means 8 for outputting either one of the address output from the adding means 6 and the address designated in the access request according to the content of the access request.
Description
【0001】[0001]
【発明の属する技術分野】本発明は主記憶キー制御装置
に係り、特に主メモリのキー機能がある既存のプロセッ
サを、キー機能のない汎用の低価格メモリユニットに接
続して、低価格でしかも信頼性の高いデータ処理システ
ムを提供可能とするものに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a main memory key control device, and more particularly to connecting an existing processor having a main memory key function to a general-purpose low-cost memory unit having no key function at a low cost. The present invention relates to a device capable of providing a highly reliable data processing system.
【0002】[0002]
【従来の技術】従来のコンピュータでは、図3に示す如
く、主メモリ103を複数の領域A0〜An にわけてお
き、各領域にキーK0 〜Kn を付加しておく。そしてC
PU100から主メモリ103にアクセスする場合、C
PU100側に予めキーK0 〜Kn を用意しておき、ア
クセス先のアドレスに応じたキーを、このアドレスと共
にメモリ制御部101に送出する。メモリ制御部101
でもアドレス対応にキーK0 〜Kn を記憶するキースト
レイジ102が用意されているので、メモリ制御部10
1ではそのアクセス先アドレスによりキーストレイジ1
02をアクセスしてアクセス先に応じたキーを読み出
し、これをCPU100から伝達されたキーと比較し、
一致したとき、CPU100からのアクセス要求を主メ
モリ103に行う。2. Description of the Related Art In a conventional computer, as shown in FIG. 3, the main memory 103 is divided into a plurality of areas A 0 to A n , and keys K 0 to K n are added to the respective areas. And C
When accessing the main memory 103 from the PU 100, C
The keys K 0 to K n are prepared in advance on the PU 100 side, and the key corresponding to the access destination address is sent to the memory control unit 101 together with this address. Memory control unit 101
However, since the key storage 102 for storing the keys K 0 to K n corresponding to the addresses is prepared, the memory control unit 10
In 1, key storage 1 according to the access destination address
02 is accessed to read the key corresponding to the access destination, and this is compared with the key transmitted from the CPU 100,
When they match, an access request from the CPU 100 is issued to the main memory 103.
【0003】例えば、CPU100からのアクセス先ア
ドレスが領域A1 であるとき、CPU100はアクセス
先アドレスと共にキーK1 をもメモリ制御部101に送
る。メモリ制御部101では、このアクセス先アドレス
より得られた例えば上位Nビット(KS0 、KS1 ・・
・KSn のいずれかのアドレス)によりキーストレイジ
102をアクセスして、キーを読み出し、得られたキー
K1 をCPU100から伝達されたキーと比較する。For example, when the access destination address from the CPU 100 is the area A 1 , the CPU 100 sends the access destination address as well as the key K 1 to the memory control unit 101. In the memory control unit 101, for example, upper N bits (KS 0 , KS 1 ...
The key storage 102 is accessed by any address of KS n ), the key is read, and the obtained key K 1 is compared with the key transmitted from the CPU 100.
【0004】CPU100から依頼されたアクセス先が
正確であれば、この両方のキー(K 1 )は一致するが、
不正確であれば一致しないので、このようにして不所望
の主メモリ103のアクセスを防止し、例えばライトア
クセスを防止し、システムの信頼性を向上することがで
きる。The access destination requested by the CPU 100 is
If correct, both keys (K 1) Is a match,
If it is incorrect, it will not match
Access to the main memory 103 of the
Access and improve system reliability.
Wear.
【0005】このような主記憶キー制御装置は、従来で
はいわゆる大型のコンピュータで使用されており、メモ
リ制御部101に特別なキーストレイジ102の如き、
キー制御回路を設けることが必要であった。Such a main memory key controller is conventionally used in a so-called large-sized computer, and a memory controller 101 such as a special key storage 102 is used.
It was necessary to provide a key control circuit.
【0006】このようなキー制御回路を設けない場合に
は、特開平6−309237号公報に記載のように主メ
モリのDATテーブル上にキーテーブルを借り置きする
ことが必要となりこの場合にはメモリ制御回路を含む汎
用の低価格のメモリユニットを使用することができなか
った。If such a key control circuit is not provided, it is necessary to rent a key table on the DAT table of the main memory as described in Japanese Patent Laid-Open No. 6-309237, and in this case, the memory is memorized. It was not possible to use a general-purpose low-cost memory unit including a control circuit.
【0007】[0007]
【発明が解決しようとする課題】ところで最近では、コ
ンピュータの低価格化のために、メモリ制御回路を含む
汎用の低価格のメモリユニットを接続することが要求さ
れているが、このようなものには、キー制御回路が設け
られていない。By the way, recently, in order to reduce the price of a computer, it is required to connect a general-purpose low-cost memory unit including a memory control circuit. Has no key control circuit.
【0008】従来の技術では、キー機能があるCPUに
は専用のメモリ制御回路ユニットしか接続することがで
きず、汎用の低価格で大容量をカバーできるメモリ制御
回路ユニットが発表されても、前記専用のメモリ制御回
路ユニットに置換えることができなかった。In the prior art, only a dedicated memory control circuit unit can be connected to a CPU having a key function, and even if a general-purpose low-cost memory control circuit unit capable of covering a large capacity is announced, It was not possible to replace it with a dedicated memory control circuit unit.
【0009】従って本発明の目的は、キー制御回路のな
いメモリ制御回路を含む汎用のメモリユニットが使用可
能な主記憶キー制御装置を提供することである。Therefore, an object of the present invention is to provide a main memory key control device which can use a general-purpose memory unit including a memory control circuit without a key control circuit.
【0010】[0010]
【課題を解決するための手段】前記目的を達成するた
め、本発明では、図1(B)に示す如く、主メモリ・ユ
ニット40のメモリ空間をアドレス0〜MAXとしたと
き、その一部をキー・ストレイジ空間KSMとし他を主
記憶空間MSとして区分する。このキー・ストレイジ空
間KSMは、例えばメモリ空間のアドレスKB〜MAX
を使用し、キー・ストレイジ空間KSMをアクセスする
ときは、キー・ストレイジをアクセスするアドレスに、
前記KBをキー・ベース・アドレスとして付加する。To achieve the above object, according to the present invention, when the memory space of the main memory unit 40 is set to addresses 0 to MAX as shown in FIG. The key storage space KSM is defined as the main storage space MS. This key storage space KSM is, for example, addresses KB to MAX in the memory space.
To access the key storage space KSM, use
The KB is added as a key base address.
【0011】このため本発明では、図1(A)に示す如
く、キー機能付CPUユニット20と、キー機能のない
汎用メモリコントロールユニット30との間に、入力レ
ジスタ1、2、出力レジスタ3、4、キー・ベース・ア
ドレスレジスタ5、加算部6、減算部7、マルチプレク
サ8、9を設ける。また前記汎用メモリ・コントロール
・ユニット30に主メモリ・ユニット40を接続する。Therefore, in the present invention, as shown in FIG. 1A, the input registers 1 and 2 and the output register 3 are provided between the CPU unit 20 with the key function and the general-purpose memory control unit 30 without the key function. 4, a key base address register 5, an adding unit 6, a subtracting unit 7, and multiplexers 8 and 9 are provided. Further, the main memory unit 40 is connected to the general-purpose memory control unit 30.
【0012】キー・ベース・アドレスレジスタ5に前記
キー・ベース・アドレスKBを保持する。キー機能付C
PUユニット20の出力側に設けられた入力レジスタ1
には、キー機能付CPUユニット20から出力されるメ
モリ・アクセス・コマンドを保持する。The key base address KB is held in the key base address register 5. C with key function
Input register 1 provided on the output side of the PU unit 20
Holds a memory access command output from the CPU unit with a key function 20.
【0013】このコマンドのうち、アドレス部分がその
ままマルチプレクサの一方の入力端に入力され、マルチ
プレクサ8の他方の入力端には加算部6においてアドレ
ス部分と前記キー・ベース・アドレスKBとを加算して
得られたキー・ストレイジ空間KSM用のアドレスが入
力される。Of this command, the address part is directly input to one input end of the multiplexer, and the other input end of the multiplexer 8 is added with the address part and the key base address KB in the adder section 6. The address for the obtained key storage space KSM is input.
【0014】マルチプレクサ8は入力レジスタ1にセッ
トされたメモリ・アクセス・コマンドがキーアクセスの
場合には、前記加算部6より入力されたキー・ストレイ
ジ空間KSM用のアドレスが出力され、通常のメモリア
クセスの場合には入力レジスタ1から入力されたアドレ
スが出力され、レジスタ2にセットされる。なおレジス
タ1にセットされたオペコード部分は、マルチプレクサ
8を経由せず、そのままレジスタ2にセットされる。When the memory access command set in the input register 1 is a key access, the multiplexer 8 outputs the address for the key storage space KSM input from the adder unit 6 for normal memory access. In the case of, the address input from the input register 1 is output and set in the register 2. The operation code part set in the register 1 is set in the register 2 as it is without passing through the multiplexer 8.
【0015】図1(A)において、キー機能付CPUユ
ニット20から出力されたメモリ・アクセス・コマンド
がレジスタ1にセットされると、図示省略した解読部が
このコマンドの内容を判別し、通常のメモリ・アクセス
・コマンドであれば、マルチプレクサ8から入力レジス
タ1側のアドレスが出力されてそのままレジスタ2に入
力され、キー機能無しの汎用メモリ・コントロール・ユ
ニット30に送出される。In FIG. 1A, when a memory access command output from the CPU unit 20 with a key function is set in the register 1, a decoding unit (not shown) determines the contents of this command, and a normal command is executed. If it is a memory access command, the address on the input register 1 side is output from the multiplexer 8 and is input to the register 2 as it is and sent to the general-purpose memory control unit 30 having no key function.
【0016】コマンドの内容がキー・アクセス・コマン
ドであれば、加算部6において、キー・ベース・アドレ
スレジスタ5に設定されたキー・ベース・アドレスKB
と入力レジスタ1側のアドレスが加算されたものがマル
チプレクサ8から出力されてレジスタ2に入力され、汎
用メモリ・コントロール・ユニット30に送出される。
そして図1(B)に示す主メモリ・ユニット40のキー
・ストレイジ空間KSMがアクセスされ、例えば所望の
キーが読み出される。If the content of the command is a key access command, the key base address KB set in the key base address register 5 is added in the adding section 6.
The sum of the address on the input register 1 side and the address on the input register 1 side is output from the multiplexer 8, input to the register 2, and sent to the general-purpose memory control unit 30.
Then, the key storage space KSM of the main memory unit 40 shown in FIG. 1B is accessed and, for example, a desired key is read.
【0017】なお、アクセス結果は例えば読み出された
キーは汎用メモリ・コントロール・ユニット30から出
力レジスタ3にそのアクセス先のアドレスとともに出力
される。このアドレスは減算部7とマルチプレクサ9の
一方の入力端にそれぞれ入力される。またマルチプレク
サ9の他方の入力端には減算部7からの出力が入力され
ている。このとき減算部7には、前記キー・ベース・ア
ドレスレジスタ5からキー・ベース・アドレスKBが伝
達されているので、出力レジスタ3から入力されたアド
レスはこの減算部7においてキー・ベース・アドレスK
Bだけ減算される。例えば前記の如く、キー・ストレイ
ジ空間KSMがアクセスされた場合は、この減算の結果
入力レジスタ1にセットされたアドレスに復するものと
なる。As the access result, for example, the read key is output from the general-purpose memory control unit 30 to the output register 3 together with the address of the access destination. This address is input to one of the input terminals of the subtractor 7 and the multiplexer 9, respectively. The output from the subtraction unit 7 is input to the other input terminal of the multiplexer 9. At this time, since the key base address KB is transmitted from the key base address register 5 to the subtraction unit 7, the address input from the output register 3 is the key base address K in the subtraction unit 7.
Only B is subtracted. For example, as described above, when the key storage space KSM is accessed, it is restored to the address set in the input register 1 as a result of this subtraction.
【0018】そして出力レジスタ3にセットされたアド
レスを、図示省略した解読部が解読して、アクセス先が
主メモリ・ユニット40のキー・ストレイジ空間KSM
の場合にはマルチプレクサ9から減算部7からの入力を
出力レジスタ4に出力し、主記憶空間MSの場合には、
出力レジスタ3からの入力されたアドレスを出力レジス
タ4に出力する。なお、マルチプレクサ9より出力され
るのはアドレスデータであり、出力レジスタ3にセット
されたアクセス結果の部分はマルチプレクサ9を経由せ
ず、そのまま出力レジスタ4にセットされる。The address set in the output register 3 is decoded by a decoding unit (not shown), and the access destination is the key storage space KSM of the main memory unit 40.
In the case of, the multiplexer 9 outputs the input from the subtractor 7 to the output register 4, and in the case of the main memory space MS,
The address input from the output register 3 is output to the output register 4. Note that the address data is output from the multiplexer 9, and the access result part set in the output register 3 is set in the output register 4 as it is without passing through the multiplexer 9.
【0019】このようにして主メモリ・ユニット40の
キー・ストレイジ空間KSMより所望のキーを読み出す
ことができるので、このキーをキー機能付CPUユニッ
ト20ですでに持っているキーと一致するか否か比較す
ることができる。Since a desired key can be read from the key storage space KSM of the main memory unit 40 in this manner, whether or not this key matches the key already possessed by the CPU unit 20 with a key function. Or you can compare.
【0020】このようにしてメモリに直接キー・ストレ
イジ空間を設けることができ、しかもメモリ・コントロ
ール・ユニット側でキーの比較を行う必要もないので、
キー機能のない、汎用のメモリ・コントロール・ユニッ
トを使用することが可能となる。In this way, the key storage space can be provided directly in the memory, and it is not necessary to compare the keys on the memory control unit side.
It is possible to use a general-purpose memory control unit without a key function.
【0021】[0021]
【発明の実施の形態】本発明の一実施例を図2にもとづ
き他図を参照して説明する。図2において他図と同記号
は同一部を示し、1は入力レジスタ、2は入力レジス
タ、3は出力レジスタ、4は出力レジスタ、5はキー・
ベース・アドレスレジスタ、6は加算部、7は減算部、
8はマルチプレクサ、9はマルチプレクサ、10は解読
部、11は解読部、20はキー機能付CPUユニット、
30はキー機能なしの汎用メモリ・コントロール・ユニ
ット、40は主メモリ・ユニット、50はサービス・プ
ロセッサである。DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIG. 2 and other drawings. In FIG. 2, the same symbols as in the other figures indicate the same parts, 1 is an input register, 2 is an input register, 3 is an output register, 4 is an output register, and 5 is a key.
Base address register, 6 adder, 7 subtractor,
8 is a multiplexer, 9 is a multiplexer, 10 is a decryption unit, 11 is a decryption unit, 20 is a CPU unit with a key function,
Reference numeral 30 is a general-purpose memory control unit without a key function, 40 is a main memory unit, and 50 is a service processor.
【0022】入力レジスタ1は、キー機能付CPUユニ
ット20からのメモリ・アクセス・コマンドを出力する
ものである。このメモリ・アクセス・コマンドには、ア
クセス先のアドレスとアクセス内容を示すOPコード等
が記入されている。The input register 1 outputs a memory access command from the CPU unit 20 with a key function. In this memory access command, the address of the access destination and the OP code indicating the access content are written.
【0023】入力レジスタ2はキー機能なしの汎用メモ
リ・コントロール・ユニット30に対するメモリ・アク
セス・コマンドがセットされるものであり、演算コード
部分は前記入力レジスタ1からの演算コード部分がその
ままセットされる。そして主メモリ・ユニット40のキ
ー・ストレイジ空間KSMをアクセスする場合は加算部
6から出力されたアドレスがそのアドレス部分にセット
される。しかし主記憶空間MSをアクセスする場合は、
前記入力レジスタ1のアドレス部分がセットされる。A memory access command for the general-purpose memory control unit 30 having no key function is set in the input register 2, and the operation code portion from the input register 1 is directly set as the operation code portion. . When the key storage space KSM of the main memory unit 40 is accessed, the address output from the adder 6 is set in the address portion. However, when accessing the main memory space MS,
The address portion of the input register 1 is set.
【0024】出力レジスタ3は、キー機能なしの汎用メ
モリ・コントロール・ユニット30から出力された主メ
モリ・ユニット40に対するアクセス結果が、そのアク
セス先のアドレスとともにセットされるものである。In the output register 3, the access result to the main memory unit 40 output from the general-purpose memory control unit 30 having no key function is set together with the access destination address.
【0025】出力レジスタ4は、キー機能付CPUユニ
ット20に、主メモリ・ユニット40に対するアクセス
結果を出力するものであり、アクセス結果部分は前記出
力レジスタ3からのアクセス結果部分がそのままセット
される。そして主メモリ・ユニット40のキー・ストレ
イジ空間KSMをアクセスした場合は、減算部7から出
力されたアドレスがそのアドレス部分にセットされる。
しかし主記憶空間MSをアクセスした場合は前記出力レ
ジスタ3のアドレス部分がセットされる。The output register 4 outputs the access result to the main memory unit 40 to the CPU unit 20 with a key function, and the access result portion from the output register 3 is set as it is. When the key storage space KSM of the main memory unit 40 is accessed, the address output from the subtraction unit 7 is set in that address portion.
However, when the main memory space MS is accessed, the address portion of the output register 3 is set.
【0026】キー・ベース・アドレスレジスタ5は、前
記図1(B)に示すキー・ベース・アドレスKBが保持
されるものである。このキー・ベース・アドレスKB
は、システムの立上り時に例えばサービス・プロセッサ
50により設定される。勿論本発明はこれに限定される
ものではなく、例えばオペレータがキーボード等より入
力してもよい。The key base address register 5 holds the key base address KB shown in FIG. 1 (B). This key base address KB
Are set by the service processor 50, for example, at system startup. Of course, the present invention is not limited to this. For example, an operator may input from a keyboard or the like.
【0027】加算部6は、前記キー・ベース・アドレス
レジスタ5にセットされたキー・ベース・アドレスKB
と、入力レジスタ1にセットされたコマンドのアドレス
部分に記入されたアドレスとを加算するものであり、こ
の加算した値はマルチプレクサ8の入力端の一方に伝達
される。The adder 6 is provided with the key base address KB set in the key base address register 5.
And the address written in the address portion of the command set in the input register 1 are added, and the added value is transmitted to one of the input ends of the multiplexer 8.
【0028】減算部7は、出力レジスタ3にセットされ
たアドレスからキー・ベース・アドレスKBを減算する
ものであり、この減算した値はマルチプレクサ9の入力
端の一方に伝達される。The subtracting section 7 subtracts the key base address KB from the address set in the output register 3, and the subtracted value is transmitted to one of the input ends of the multiplexer 9.
【0029】マルチプレクサ8は加算部6から伝達され
たアドレスの加算値と、入力レジスタ1から伝達された
アドレスのいずれか一方を選択出力するものである。こ
の場合、入力レジスタ1にセットされたコマンドがキー
・アクセス・コマンドである場合、前記加算部6から伝
達された加算値を出力し、それ以外の場合は入力レジス
タ1から伝達されたアドレスを出力する。The multiplexer 8 selects and outputs either the added value of the address transmitted from the adder 6 or the address transmitted from the input register 1. In this case, when the command set in the input register 1 is a key access command, the added value transmitted from the adder unit 6 is output, and in other cases, the address transmitted from the input register 1 is output. To do.
【0030】マルチプレクサ9は減算部7から伝達され
たアドレスの減算値と、出力レジスタ3から伝達された
アドレスのいずれか一方を選択出力するものである。こ
の場合、出力レジスタ3にセットされたアドレスがキー
・ストレイジ空間KSMである場合、前記減算部7から
伝達された減算値を出力し、それ以外の場合は出力レジ
スタ3から伝達されたアドレスを出力する。The multiplexer 9 selects and outputs either the subtracted value of the address transmitted from the subtractor 7 or the address transmitted from the output register 3. In this case, when the address set in the output register 3 is the key storage space KSM, the subtraction value transmitted from the subtraction unit 7 is output, and in other cases, the address transmitted from the output register 3 is output. To do.
【0031】解読部10は入力レジスタ1にセットされ
たコマンドがキー・アクセス・コマンドか否かを、該コ
マンドの演算コード部分を解読することにより識別する
ものであり、キー・アクセス・コマンドか否かを示す識
別信号をマルチプレクサ8に出力する。The decoding section 10 identifies whether or not the command set in the input register 1 is a key access command by decoding the operation code portion of the command. Whether or not the command is a key access command. An identification signal indicating that is output to the multiplexer 8.
【0032】解読部11は出力レジスタ3にセットされ
たアクセス結果がキー・ストレイジ空間KSMに対する
ものか否かを、そのアドレス部分をチェックしてキー・
ベース・アドレスKBよりも大きいか否か判断すること
により識別するものである。このためキー・ベース・ア
ドレスレジスタ5より、キー・ベース・アドレスKBが
伝達されている。即ちこのアドレス部分に記入されたア
ドレスがキー・ストレイジ空間KSMのものであれば、
アクセス結果がキー・ストレイジ空間に対するものと判
断する。このようにしてキー・ストレイジ空間KSMに
対するものか否かを判断して、これに応じた識別信号を
マルチプレクサ9に出力する。The decoding unit 11 checks the address part of the key storage space KSM to see if the access result set in the output register 3 is for the key storage space KSM.
It is identified by judging whether it is larger than the base address KB. Therefore, the key base address KB is transmitted from the key base address register 5. That is, if the address entered in this address part is in the key storage space KSM,
It is determined that the access result is for the key storage space. In this way, it is determined whether or not it is for the key storage space KSM, and the identification signal corresponding to this is output to the multiplexer 9.
【0033】キー機能付CPUユニット20は、メモリ
をアクセスするとき、メモリを複数の領域に区分化して
おき、その区分毎にそれぞれキーを保持し、メモリアク
セスのときそのアクセス先の領域に対応するキーをキー
ストレイジより読み出し、これが保持しているものと一
致したときメモリアクセスを実行するように構成された
ものである。When the memory is accessed, the CPU unit with key function 20 divides the memory into a plurality of areas, holds a key for each of the areas, and corresponds to the area of the access destination at the time of memory access. The key is read from the key storage, and a memory access is executed when it matches the one held.
【0034】汎用メモリ・コントロール・ユニット30
は、キー機能付CPUユニット20から主メモリ・ユニ
ット40に対するアクセス要求があった場合、これに対
する処理を行うものであって、そのアクセス先アドレス
と共にアクセス結果を出力するものであり、キー機能の
ないもので構成されている。General-purpose memory control unit 30
When there is an access request to the main memory unit 40 from the CPU unit 20 with a key function, it processes the request and outputs the access result together with the access destination address, and has no key function. It consists of things.
【0035】主メモリ・ユニット40は、例えばDRA
Mで構成される主記憶であり、キー・ベース・アドレス
KBにより主記憶空間MSと、キー・ストレイジ空間K
SBに区分けられている。そしてキー・ストレイジ空間
KSMにはキー機能付CPUユニット20が保持してい
るものと同一のキーK0 、K1 ・・・Kn が格納されて
いる。これらキーK0 、K1 ・・・Kn は、キー・スト
レイジ空間KSMのオフセット値KS0 、KS1 ・・・
KSn のところに記入されている。そしてこれらオフセ
ット値KS0 、KS1 ・・・KSn は、図3に示すキー
ストレイジ102のアドレスKS0 、KS1 ・・・KS
n と一致するものである。The main memory unit 40 is, for example, a DRA.
A main memory composed of M, a main memory space MS and a key storage space K by a key base address KB.
It is divided into SB. The key storage space KSM stores the same keys K 0 , K 1, ... K n as those held by the CPU unit with a key function 20. These keys K 0 , K 1, ... K n are offset values KS 0 , KS 1, ... Of the key storage space KSM.
It is written in KS n . The offset values KS 0 , KS 1, ... KS n are the addresses KS 0 , KS 1, ... KS of the key storage 102 shown in FIG.
It matches n .
【0036】ところで、キー機能付CPUユニット20
からキー・ストレイジ空間KSMをアクセスする場合、
キー機能付CPUユニット20から出力されたコマンド
に、アクセス先アドレスとして前記オフセット値KS0
〜KSn の1つを記入する。そしてこのオフセット値K
Siに対し、前記キー・ベース・アドレスKBが加算さ
れた(KSi+KB)により、キー・ストレイジ空間K
SMがアクセスされ、例えばキーKiが読み出されるこ
とになる。By the way, the CPU unit with key function 20
When accessing the key storage space KSM from
The offset value KS 0 as an access destination address is added to the command output from the CPU unit 20 with the key function.
~ Fill in one of KS n . And this offset value K
By adding the key base address KB to Si (KSi + KB), the key storage space K
The SM is accessed and, for example, the key Ki is read.
【0037】次に本発明の動作を説明する。 (1)キー・ストレイジ空間KSMをアクセスする場
合、例えばキーK1 を読み出す場合、キー機能付CPU
ユニット20は、アドレスとしてKS1 を記入し、アク
セス態様としてリードを記入したキー・アクセス・コマ
ンドを入力レジスタ1に伝達する。これにより加算部6
は前記アドレスKS 1 にキー・ベース・アドレスKBを
加算した(KS1 +KB)を出力してマルチプレクサ8
の一方の入力端に印加する。またマルチプレクサ8の他
方の入力端には入力レジスタ1にセットされた前記アド
レスKS1 がそのまま印加される。Next, the operation of the present invention will be described. (1) When accessing the key storage space KSM
If, for example, key K1When reading out, CPU with key function
Unit 20 uses KS as the address1Enter
Key access piece with lead entered as the access mode
The input register 1 is transmitted to the input register 1. This adds 6
Is the address KS 1Key base address KB to
Added (KS1+ KB) is output and the multiplexer 8
It is applied to one input terminal. In addition to the multiplexer 8
The adder set in the input register 1 is provided at one input end.
Less KS1Is applied as it is.
【0038】このとき、解読部10は入力レジスタ1に
セットされたアクセス・コマンドを解読してこれがキー
・アクセス・コマンドであることを認識し、これを示す
識別信号例えば「1」をマルチプレクサ8に出力する。
これに応じてマルチプレクサ8は加算部6から伝達され
た前記(KS1 +KB)を入力レジスタ2のアドレス部
分に伝達する。このとき、この入力レジスタ2の演算コ
ード部分には、前記入力レジスタ1の演算コード部分が
そのまま伝達される。At this time, the decoding section 10 decodes the access command set in the input register 1 and recognizes that this is a key access command, and an identification signal indicating this, for example, "1" is sent to the multiplexer 8. Output.
In response to this, the multiplexer 8 transmits the (KS 1 + KB) transmitted from the adder 6 to the address portion of the input register 2. At this time, the operation code portion of the input register 1 is directly transmitted to the operation code portion of the input register 2.
【0039】このようにして、キー・アクセス・コマン
ドの場合入力レジスタ2には、入力レジスタ1にセット
されたアクセス・コマンドのアドレスにキー・ベース・
アドレスKBが加算されたアクセス・コマンドがセット
される。In this way, in the case of the key access command, the input register 2 has the key base address at the address of the access command set in the input register 1.
The access command to which the address KB is added is set.
【0040】この入力レジスタ2にセットされたアクセ
ス・コマンドは汎用メモリ・コントロール・ユニット3
0に伝達される。汎用メモリ・コントロール・ユニット
30は、これを解読して、主メモリ・ユニット40のア
ドレス(KS1 +KB)をアクセスし、即ちキー・スト
レイジ空間KSMをアクセスしてキーK1 を読み出す。
そしてこのアクセス結果得られたキーK1 にアクセス先
のアドレス(KS1 +KB)を付加した出力データを出
力レジスタ3に送出する。The access command set in the input register 2 is the general-purpose memory control unit 3
0 is transmitted. The general-purpose memory control unit 30 decodes this and accesses the address (KS 1 + KB) of the main memory unit 40, that is, the key storage space KSM and reads the key K 1 .
Then, the output data obtained by adding the access destination address (KS 1 + KB) to the key K 1 obtained as a result of this access is sent to the output register 3.
【0041】解読部11は、この出力レジスタ3のアド
レスがキー・ストレイジ空間KSMに対するアクセスで
あることを認識すると、これを示す識別信号例えば
「1」をマルチプレクサ9に出力する。これに応じてマ
ルチプレクサ9は減算部7から伝達された〔(KS1 +
KB)−KB〕即ち入力レジスタ1にセットされた前記
キー・アクセス・コマンドのアドレスKS1 を出力レジ
スタ4のアドレス部分に伝達する。When the decoding section 11 recognizes that the address of the output register 3 is an access to the key storage space KSM, it outputs an identification signal indicating this, for example, "1" to the multiplexer 9. In response to this, the multiplexer 9 is transmitted from the subtractor 7 [(KS 1 +
KB) -KB], that is, the address KS 1 of the key access command set in the input register 1 is transmitted to the address portion of the output register 4.
【0042】このとき出力レジスタ4のアクセス結果部
分には、前記出力レジスタ3のアクセス結果即ちキーK
1 がそのまま伝達される。このようにして出力レジスタ
4にはアクセス結果得られたキーK1 と、入力レジスタ
1に伝達されたコマンド内に記載されたアドレスKS1
がセットされ、キー機能付CPUユニット20に伝達さ
れる。キー機能付CPUユニット20では、このように
して読み出したキーK 1 を、すでに自分が所有している
キーと比較して、一致、不一致をチェックすることによ
り、これからアクセスする領域が正確か否か判断するこ
とができる。At this time, the access result part of the output register 4
In addition, the access result of the output register 3, that is, the key K
1Is transmitted as is. This way the output register
The key K obtained as the access result is 41And the input register
Address KS described in the command transmitted to 11
Is set and transmitted to the CPU unit 20 with key function.
It is. In the CPU unit 20 with key function,
Key K read 1Already owned by
By comparing the key and checking for a match or mismatch,
And determine whether the area you are going to access is accurate.
Can be.
【0043】(2)主記憶空間MSをアクセスする場合 主記憶空間MSをアクセスする場合、キー機能付CPU
ユニット20は、アドレスとしてアクセス先である、前
記キー・ベース・アドレスKB以下の値を記入し、アク
セス態様として例えばリードを記入したリード・コマン
ドを入力レジスタ1に伝達する。(2) When accessing the main memory space MS When accessing the main memory space MS, a CPU with a key function
The unit 20 writes a value equal to or less than the key base address KB, which is an access destination, as an address, and transmits a read command in which, for example, read is written as an access mode, to the input register 1.
【0044】このとき解読部10は入力レジスタ1にセ
ットされたアクセス・コマンドを解読してキー・アクセ
ス・コマンドでないことを認識し、これを示す識別信号
例えば「0」をマルチプレクサ8に出力する。これに応
じてマルチプレクサ8は入力レジスタ1から伝達された
アドレスを出力して入力レジスタ2のアドレス部分に伝
達する。このときこの入力レジスタ2の演算コード部分
には、前記入力レジスタ1の演算コード部分がそのまま
伝達されているので、結局入力レジスタ2には入力レジ
スタ1にセットされたコマンドがそのままセットされ
る。At this time, the decoding section 10 decodes the access command set in the input register 1 to recognize that it is not a key access command, and outputs an identification signal indicating this, for example, "0" to the multiplexer 8. In response to this, the multiplexer 8 outputs the address transmitted from the input register 1 and transmits it to the address portion of the input register 2. At this time, since the operation code portion of the input register 1 is directly transmitted to the operation code portion of the input register 2, the command set in the input register 1 is set in the input register 2 as it is.
【0045】このようにして入力レジスタ2にセットさ
れたコマンドは汎用メモリ・コントロール・ユニット3
0に伝達されて、例えばこれにもとづく主記憶空間MS
へのリードが行われ、汎用メモリ・コントロール・ユニ
ット30はそのリード結果とアクセス先アドレスを出力
レジスタ3に出力する。The command set in the input register 2 in this manner is the general-purpose memory control unit 3
0 transmitted to, for example, the main memory space MS based on this
Is read, and the general-purpose memory control unit 30 outputs the read result and the access destination address to the output register 3.
【0046】解読部11は、この出力レジスタ3のアド
レスがキー・ストレイジ空間KSMに対するものでない
ことを認識すると、これを示す識別信号例えば「0」を
マルチプレクサ9に出力する。これに応じてマルチプレ
クサ9は出力レジスタ3から伝達されたアドレスを出力
して、出力レジスタ4のアドレス部分に伝達する。When the decoding section 11 recognizes that the address of the output register 3 is not for the key storage space KSM, it outputs an identification signal indicating this, for example, "0" to the multiplexer 9. In response to this, the multiplexer 9 outputs the address transmitted from the output register 3 and transmits it to the address portion of the output register 4.
【0047】このとき出力レジスタ3のアクセス結果部
分はそのまま出力レジスタ4のアクセス結果部分に伝達
される。このようにして出力レジスタ4には出力レジス
タ3にセットされたデータがそのままセットされる。こ
れによりキー機能付CPUユニット20は、主記憶空間
MSをアクセスすることができ、例えばリード・コマン
ドにより得られたデータを用いて処理を遂行することが
できる。At this time, the access result portion of the output register 3 is directly transmitted to the access result portion of the output register 4. In this way, the data set in the output register 3 is set in the output register 4 as it is. As a result, the CPU unit 20 with a key function can access the main storage space MS, and can perform processing using, for example, the data obtained by the read command.
【0048】なお上記説明ではキー・ベース・アドレス
レジスタ5にサービス・プロセッサ50によりキー・ベ
ース・アドレスKBを記入した例について説明したが、
本発明は勿論これにのみ限定されるものではない。例え
ば、キーボード等によりオペレータが入力してもよい。In the above description, an example in which the key base address KB is written in the key base address register 5 by the service processor 50 has been described.
The present invention is of course not limited to this. For example, the operator may input the data using a keyboard or the like.
【0049】また、上記説明では、キー機能付CPUユ
ニット20が一個の場合について説明したが、本発明は
勿論これにのみ限定されるものではなく、複数のキー機
能付CPUユニットを使用する、マルチプロセッサシス
テムにも適用することもできる。Further, in the above description, the case where the number of the CPU unit 20 with the key function is one has been described, but the present invention is not limited to this, of course, and a plurality of CPU units with the key function are used. It can also be applied to a processor system.
【0050】上記説明では汎用メモリ・コントロール・
ユニットからの出力データにアドレスを付加した例につ
いて説明したが、出力データにアドレスを必ずしも付加
する必要はない。例えばマルチプロセッサシステムの場
合、出力データにアドレスが付加されていれば、これを
チェックすることによりアクセス要求元のプロセッサ
が、バス上に出力された出力データが自分の要求したも
のであるか否か判断できるが、アドレスで判断する代わ
りに他の手法、例えばアクセス元プロセッサのIDコー
ドを付加するようにすることもできる。In the above description, the general-purpose memory control
Although the example in which the address is added to the output data from the unit has been described, it is not always necessary to add the address to the output data. For example, in the case of a multiprocessor system, if an address is added to the output data, it is checked whether the processor requesting access has requested that the output data output on the bus is the one requested by itself. Although it can be determined, another method, for example, the ID code of the access source processor may be added instead of the address.
【0051】上記説明においては、キー機能のない汎用
メモリ・コントロール・ユニット30と、主メモリ・ユ
ニット40とを一体化したキー機能のない汎用のメモリ
・ユニットを使用することができる。In the above description, a general-purpose memory unit having no key function, which is a combination of the general-purpose memory control unit 30 having no key function and the main memory unit 40, can be used.
【0052】本発明によれば、キー・ベース・アドレス
により主メモリ・ユニットを主記憶空間とキー・ストレ
イジ空間に分けることができ、キー機能無しの汎用メモ
リ・コントロール・ユニットにより簡単にキー・ストレ
イジ空間をアクセス可能とすることができるので、コン
ピュータシステムを、低価格のキー機能無しの汎用メモ
リ・コントロール・ユニットを使用して、キー機能付C
PUユニットと接続して構成することができるので、例
えばチャネルを経由して接続された入出力装置からのラ
イト要求が行われたような場合でも、キーを確認するこ
とにより信頼性の高いコンピュータシステムを低価格で
構成することができる。According to the present invention, the main memory unit can be divided into the main storage space and the key storage space by the key base address, and the key storage can be easily performed by the general-purpose memory control unit having no key function. Since the space can be made accessible, the computer system can be configured with a key function by using a low-cost general-purpose memory control unit without key function.
Since it can be configured by connecting to a PU unit, for example, even when a write request is made from an input / output device connected via a channel, a computer system having high reliability by confirming the key Can be configured at a low price.
【0053】勿論、キー機能のない汎用メモリ・コント
ロール・ユニットと主メモリ・ユニットとを一体化した
キー機能のない汎用の低価格のメモリ・ユニットを使用
して前記信頼性の高いコンピュータシステムを構成する
ことができる。Of course, the highly reliable computer system is constructed by using a general-purpose low-cost memory unit having no key function, which is a combination of a general-purpose memory control unit having no key function and a main memory unit. can do.
【0054】またキー機能なしの汎用のメモリ・ユニッ
トのメモリ容量が変更になった場合、キー・ベース・ア
ドレスレジスタ5に設定される設定値を変更することが
できる。When the memory capacity of a general-purpose memory unit having no key function is changed, the set value set in the key base address register 5 can be changed.
【0055】[0055]
【発明の効果】請求項1に記載された本発明によれば、
キー機能付CPUユニットを、キー機能のない汎用の低
価格のメモリ・ユニットに接続することができるので、
CPUのキー機能を生かしたままシステムの信頼性を落
とさずキー機能のないメモリ・ユニットを使用したコン
ピュータシステムを安く、構成することができる。According to the first aspect of the present invention,
Since the CPU unit with key function can be connected to a general-purpose low-cost memory unit without key function,
It is possible to inexpensively configure a computer system using a memory unit having no key function without lowering the reliability of the system while making the most of the key function of the CPU.
【0056】また請求項2に記載された本発明によれ
ば、キー・ベース・アドレスを変更することがきわめて
簡単にできるので、メモリ容量が変更になっても簡単に
これに対応することができる。According to the present invention described in claim 2, it is possible to change the key base address very easily. Therefore, even if the memory capacity is changed, it can be easily dealt with. .
【図1】本発明の原理構成図を示す。FIG. 1 shows a principle configuration diagram of the present invention.
【図2】本発明の一実施例構成図を示す。FIG. 2 shows a configuration diagram of an embodiment of the present invention.
【図3】従来例説明図を示す。FIG. 3 shows an explanatory view of a conventional example.
1 入力レジスタ 2 入力レジスタ 3 出力レジスタ 4 出力レジスタ 5 キー・ベース・アドレスレジスタ 6 加算部 7 減算部 8 マルチプレクサ 9 マルチプレクサ 10 解読部 11 解読部 20 キー機能付CPUユニット 30 汎用メモリ・コントロール・ユニット 40 主メモリ・ユニット 50 サービス・プロセッサ 1 Input Register 2 Input Register 3 Output Register 4 Output Register 5 Key Base Address Register 6 Addition Unit 7 Subtraction Unit 8 Multiplexer 9 Multiplexer 10 Decoding Unit 11 Decoding Unit 20 CPU Unit with Key Function 30 General-purpose Memory Control Unit 40 Main Memory unit 50 Service processor
Claims (2)
のメモリ・コントロール・ユニットを具備するデータ処
理装置において、 キー・ベース・アドレスにより区分された部分をキー・
ストレイジ空間として使用する主記憶と、 キー・ベース・アドレスが記入されたキー・ベース・ア
ドレス保持手段と、 キー機能付プロセッサからのアクセス要求を受けるリク
エスト保持手段と、 このアクセス要求に指示されたアドレスと、前記キー・
ベース・アドレスを加算する加算手段と、 この加算手段から出力されたアドレスと、前記アクセス
要求に指示されたアドレスのいずれか一方を、アクセス
要求の内容に応じて出力する選択出力手段を具備したこ
とを特徴とする主記憶キー制御装置。1. A data processing device comprising a processor with a key function and a memory control unit without a key function, wherein a portion divided by a key base address is a key
A main memory used as a storage space, a key base address holding means in which a key base address is written, a request holding means for receiving an access request from a processor with a key function, and an address designated by this access request And the key
And a selection output unit for outputting one of the address output from the addition unit and the address designated in the access request according to the content of the access request. Main memory key control device characterized by.
・ベース・アドレスを変更することを特徴とする請求項
1記載の主記憶キー制御装置。2. The main memory key control apparatus according to claim 1, wherein the key base address is changed when the main memory capacity is changed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7185174A JPH0934793A (en) | 1995-07-21 | 1995-07-21 | Main memory key controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7185174A JPH0934793A (en) | 1995-07-21 | 1995-07-21 | Main memory key controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0934793A true JPH0934793A (en) | 1997-02-07 |
Family
ID=16166136
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7185174A Withdrawn JPH0934793A (en) | 1995-07-21 | 1995-07-21 | Main memory key controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0934793A (en) |
-
1995
- 1995-07-21 JP JP7185174A patent/JPH0934793A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4992936A (en) | Address translation method and apparatus therefor | |
| JPH0934793A (en) | Main memory key controller | |
| EP0059758A1 (en) | Numerical control unit | |
| US5349650A (en) | Address translating apparatus for translating virtual address into real address without depending on processing by CPU | |
| KR20010031916A (en) | Signal processor | |
| JPH05189352A (en) | I / O address conversion method | |
| JPS59173828A (en) | Data processing system | |
| JP2004529430A (en) | Method for identifying the correct command input address when using command words with different lengths | |
| KR0175606B1 (en) | P. The main processor and Mr. P. Data interface device between cards | |
| KR100243185B1 (en) | Apparatus and method for data communication between processors through shared memory | |
| JPH1021143A (en) | Memory interface device | |
| KR101284145B1 (en) | Read access support network processor system of memory access method PCMCIA card | |
| JPH0612270A (en) | Test circuit | |
| KR101192285B1 (en) | Apparatus and method for interfacing between the modules in communication system | |
| JP3569580B2 (en) | Coupling control system, process processing system and method thereof | |
| JP2973227B2 (en) | Exclusive control instruction execution method | |
| JPS58121443A (en) | Communication controller | |
| JPS6318778B2 (en) | ||
| JPH07129458A (en) | Memory controller | |
| JP2004252978A (en) | Processor provided with external storage device | |
| JPS6381547A (en) | Cache memory access system | |
| JPH0720977A (en) | System setup type computer equipment | |
| JPS6089263A (en) | Protective system of memory | |
| JPH02278304A (en) | Input/output control circuit for programmable controller | |
| JPH05174008A (en) | Information processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20021001 |