JPH0337750A - Function device peripheral of processor - Google Patents

Function device peripheral of processor

Info

Publication number
JPH0337750A
JPH0337750A JP17335089A JP17335089A JPH0337750A JP H0337750 A JPH0337750 A JP H0337750A JP 17335089 A JP17335089 A JP 17335089A JP 17335089 A JP17335089 A JP 17335089A JP H0337750 A JPH0337750 A JP H0337750A
Authority
JP
Japan
Prior art keywords
level
processor
access
function device
signal
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
JP17335089A
Other languages
Japanese (ja)
Inventor
Yuichi Nakao
中尾 裕一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP17335089A priority Critical patent/JPH0337750A/en
Publication of JPH0337750A publication Critical patent/JPH0337750A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the need of providing a decoder on the outside by providing a means for deciding a permission or an inhibition of an access, based on a level signal. CONSTITUTION:A processor 10 inputs an address signal ADD for designating a control register 32 to an address decoder 34, and inputs a level signal for showing the level of a program to be executed to an access level comparator 33. The access level comparator 33 compares the access permission level written in an access level storage register 31 and a level signal LEV, and outputs its result to an address decoder 34. In the case of the level signal LEV exceeds the access permission level, an effective decoding result is inputted to a buffer 36, and it is permitted to supply and receive a data signal DATA to and from the processor 10. In such a way, the access level can be decided, and it is unnecessary to provide a decoder on the outside.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、レベルによるメモリ保護を行うプロセッサシ
ステムに組み込まれるプロセッサ周辺機能装置に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a processor peripheral function device incorporated in a processor system that performs level-based memory protection.

〔従来の技術〕[Conventional technology]

プロセッサシステムの発展に伴い、誤操作又は誤プログ
ラムからシステムを守るために各種の対策が講じられて
きているが、レベルを用いたメモリ保護もその一つであ
る。これは、システム管理プログラムを応用プログラム
より高レベルプログラムとし、システム管理プログラム
が使用するメモリ領域を応用プログラムによってアクセ
スされることを禁止するものである。即ち、プロセッサ
が実行中のプログラムのレベルに相当するレベル信号を
発生し、一方メモリ装置はメモリ領域ごとに書き込みレ
ベルまたは読み出しレベルを設定(定義)してあり、前
記レベル信号がそのレベルに適合している場合にのみ該
当領域のデータの読み出し及び書き込みを許可するとい
う方法である。
With the development of processor systems, various measures have been taken to protect the system from erroneous operations or erroneous programs, one of which is memory protection using levels. This makes the system management program a higher level program than the application program, and prohibits the application program from accessing the memory area used by the system management program. That is, the processor generates a level signal corresponding to the level of the program being executed, while the memory device has a write level or read level set (defined) for each memory area, and the level signal matches the level. This method allows reading and writing of data in the corresponding area only when the area is open.

また、プロセッサ周辺機能装置が組み込まれたシステム
の場合についても、応用プログラムの誤操作又は誤プロ
グラムによる誤動作を行わないようにレベルによる管理
を行うことができる。
Furthermore, even in the case of a system in which a processor peripheral function device is incorporated, level-based management can be performed to prevent erroneous operations of application programs or malfunctions due to erroneous programs.

第4図は割り込みコントローラ、シリアル転送コントロ
ーラのようにバス制御に従って動作するプロセッサ周辺
機能装置30が組み込まれたプロセッサシステムのブロ
ック図である。プロセッサIOはアドレスバス50.デ
ータバス51.  レベル信号線52を介してメモリ装
置20と接続されている。またプロセッサ10からアド
レスバス50、レベル信号線52を介してアドレス信号
^DD及びレベル信号LEVがデコーダ53へ人力され
、該デコーダ53のデコード結果と、プロセッサ10か
らデータバス51を通して出力されるデータ信号DAT
Aとが周辺機能装置30へ入力されるようになしである
FIG. 4 is a block diagram of a processor system incorporating a processor peripheral function device 30 that operates according to bus control, such as an interrupt controller and a serial transfer controller. Processor IO is connected to address bus 50. Data bus 51. It is connected to the memory device 20 via a level signal line 52. Further, an address signal ^DD and a level signal LEV are inputted from the processor 10 to a decoder 53 via an address bus 50 and a level signal line 52, and the decoding result of the decoder 53 and a data signal output from the processor 10 via a data bus 51 are inputted. DAT
A is input to the peripheral function device 30.

以上の様に構成されたプロセッサシステムにおいて、プ
ロセッサ10がアドレスバス50及びレベル信号線52
にアドレス信号ADD及びレベル信号LEVを出力する
と、これらはメモリ装置20へ人力される。メモリ装W
20は複数のメモリ領域に分割されていて、各メモリ領
域にはレベルが定義されている。実行中のプログラムの
レベルがアクセスすべきメモリ領域のレベル以上の場合
、データバス51を介してプロセッサIOとメモリ装置
20との間でデータ信号DATへが授受される。
In the processor system configured as described above, the processor 10 has an address bus 50 and a level signal line 52.
When the address signal ADD and the level signal LEV are outputted to the memory device 20, these signals are input manually to the memory device 20. Memory unit W
20 is divided into a plurality of memory areas, and each memory area has a defined level. When the level of the program being executed is higher than the level of the memory area to be accessed, the data signal DAT is transferred between the processor IO and the memory device 20 via the data bus 51.

またプロセッサ10が周辺機能装置30をアクセスする
場合には、プロセッサ10が周辺機能装置30を指定す
るアドレス信号ADD及びそこに適合するレベル信号L
EVをデコーダ53へ出力する。デコーダ53は、これ
を受けてプロセッサ10から周辺機能装置30へのアク
セスを許可する信号を周辺機能装置30へ出力する。そ
うすると、プロセッサ10と周辺機能装置30との間で
データ信号が授受される。
Further, when the processor 10 accesses the peripheral function device 30, the processor 10 uses an address signal ADD specifying the peripheral function device 30 and a level signal L corresponding thereto.
The EV is output to the decoder 53. In response to this, the decoder 53 outputs a signal to the peripheral function device 30 to permit access from the processor 10 to the peripheral function device 30 . Then, data signals are exchanged between the processor 10 and the peripheral function device 30.

以上は周辺機能装置30がハス制御に従属するハススレ
ーブとして使用される例であったが、IIMAコントロ
ーラの様にバス制御を行ってメモリ装置をアクセスする
周辺機能装置もある。
The above is an example in which the peripheral function device 30 is used as a hash slave that is subordinate to hash control, but there are also peripheral function devices that perform bus control and access memory devices, such as the IIMA controller.

第5図はバスを制御するバスマスクとして周辺機能装置
40が組み込まれたプロセッサシステムのブロック図で
ある。プロセッサ10はアドレスバス50、データバス
51.レベル信号線52を介してメモリ装置20と接続
されている。また周辺機能装置40からのバス権要求信
号REQがプロセッサ10へ人力され、プロセッサ10
はバス権許可信号CRTを周辺機能装置40及びレベル
信号発生回路54へ出力する構成となしである。周辺機
能装置40は、アドレスバス50.データバス51を介
してメモリ装置20と接続され、レベル信号発生回路5
4は、レベル信号線52を介してメモリ装置20と接続
されている。
FIG. 5 is a block diagram of a processor system in which a peripheral function device 40 is incorporated as a bus mask for controlling a bus. The processor 10 has an address bus 50, a data bus 51 . It is connected to the memory device 20 via a level signal line 52. Further, a bus request signal REQ from the peripheral function device 40 is inputted to the processor 10, and the processor 10
There is a configuration in which the bus right permission signal CRT is output to the peripheral function device 40 and the level signal generation circuit 54, and a configuration in which the bus right permission signal CRT is not output. The peripheral function device 40 has an address bus 50 . The level signal generation circuit 5 is connected to the memory device 20 via the data bus 51.
4 is connected to the memory device 20 via a level signal line 52.

以上の様に構成されたプロセッサシステムにおいて、周
辺機能装置40によってメモリ装置20がアクセスされ
る必要が生したとき、プロセッサに対してバスを制御す
る権利であるバス権要求信号REQを周辺機能装置40
は出力する。プロセッサIOがバスを使用する必要がな
いときには、プロセッサ10はバス権許可信号CRTを
周辺機能装置40及びレベル信号発生回路54へ出力す
る。バスを制御することが許可された周辺機能装置40
は、メモリ装置20をアクセスすべく、アドレス信号^
DOをアドレスバス50を介してメモリ装置20へ出力
し、またレベル信号発生回路54が予め設定されたレベ
ルのレベル信号LIEVをレベル信号線52を介してメ
モリ装置20へ出力する。該レベル信号線52のレベル
が、前記アドレス信号^DDで指定されたメモリ領域の
レベル以上の場合、アクセスが許可されて、周辺機能装
置40とメモリ装置20との間でデータバス51を介し
てデータ信号DATAの授受が行われる。
In the processor system configured as described above, when it becomes necessary for the peripheral function device 40 to access the memory device 20, the peripheral function device 40 sends a bus request signal REQ, which is the right to control the bus to the processor.
outputs. When processor IO does not need to use the bus, processor 10 outputs bus permission signal CRT to peripheral function device 40 and level signal generation circuit 54. Peripheral function device 40 authorized to control the bus
is an address signal ^ in order to access the memory device 20.
DO is output to the memory device 20 via the address bus 50, and the level signal generating circuit 54 outputs a level signal LIEV at a preset level to the memory device 20 via the level signal line 52. When the level of the level signal line 52 is equal to or higher than the level of the memory area designated by the address signal ^DD, access is permitted and data is transferred between the peripheral function device 40 and the memory device 20 via the data bus 51. A data signal DATA is exchanged.

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

第4図の周辺機能装置30はレベル判定機能を有してい
ない。また、第5図の周辺機能装置40はレベル信号発
生機能を有していない。よってこれらがレベルによるメ
モリ保護を行うプロセッサシステムに組み込まれる場合
、アクセスレベルの判定をするデコーダ53及びレベル
信号LIEVを発生するレベル信号発生回路54を設け
る必要があり、回路が複雑になるという問題がある。ま
た、これらの回路においてレベルが予め設定されている
ので容易にレベルが変更できないという問題がある。
The peripheral function device 30 shown in FIG. 4 does not have a level determination function. Furthermore, the peripheral function device 40 shown in FIG. 5 does not have a level signal generation function. Therefore, when these are incorporated into a processor system that performs level-based memory protection, it is necessary to provide a decoder 53 that determines the access level and a level signal generation circuit 54 that generates the level signal LIEV, which causes the problem that the circuit becomes complicated. be. Furthermore, since the levels in these circuits are set in advance, there is a problem in that the levels cannot be easily changed.

本発明はこのような問題を解決するためになされたもの
であって、第1発明はアクセスレベルを判定できるプロ
セッサ周辺機能装置の提供を目的とし、第2発明はレベ
ル信号を出力出来るプロセッサ周辺機能装置の提供を目
的とする。
The present invention has been made to solve such problems, and the first invention aims to provide a processor peripheral function device that can determine an access level, and the second invention aims to provide a processor peripheral function device that can output a level signal. The purpose is to provide equipment.

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

第1発明のプロセッサ周辺機能装置は、プロセッサが発
生するレベル信号を判定する手段を(If這える。
The processor peripheral function device of the first invention includes means for determining a level signal generated by the processor.

第2発明のプロセッサ周辺機能装置は、レベルが定義さ
れているメモリをアクセスするためのレベル信号を発生
する手段を備える。
A processor peripheral function device according to a second aspect of the invention includes means for generating a level signal for accessing a memory whose level is defined.

〔作用〕[Effect]

第1発明のプロセッサ周辺機能装置が組み込まれたプロ
セッサシステムにおいて、プロセッサは、プロセッサ周
辺機能装置にプロセッサからのアクセスが可能なレベル
を設定する。プロセッサがプロセッサ周辺機能装置をア
クセスする場合、これが、プロセッサから出力されたレ
ベル信号がアクセスレベル以上であると判定するとアク
セスを許可する。
In the processor system incorporating the processor peripheral function device of the first invention, the processor sets a level at which the processor peripheral function device can be accessed by the processor. When a processor accesses a processor peripheral function device, it permits access if it determines that the level signal output from the processor is equal to or higher than the access level.

第2発明のプロセッサ周辺機能装置が組み込まれたプロ
セッサシステムにおいて、3亥プロセッサ周辺機能装置
がメモリをアクセスしようとするときはレベル信号を発
生する。該レベル信号がアクセスしようとするメモリ領
域のレベルに適合している場合はアクセスが許可される
In the processor system incorporating the processor peripheral function device of the second invention, a level signal is generated when the processor peripheral function device attempts to access the memory. If the level signal matches the level of the memory area to be accessed, access is permitted.

〔実施例] 以下、本発明をその一実施例を示す図面に基づいて説明
する。
[Example] Hereinafter, the present invention will be described based on drawings showing one example thereof.

第1図は第1発明のプロセッサ周辺機能装置30が組み
込まれたプロセッサシステムのブロック図である。プロ
セッサ10とメモリ装置20とは、アドレスバス50.
データバス51.レベルiM 号14%52ヲ介して接
続されていて、従来と同様の動作をする。
FIG. 1 is a block diagram of a processor system incorporating a processor peripheral function device 30 of the first invention. Processor 10 and memory device 20 are connected to address bus 50 .
Data bus 51. It is connected via Level iM No. 14%52 and operates in the same way as before.

またプロセッサ10は、アドレスバス50.データバス
51.レベル信号線52を介して周辺機能装置30と接
続している。周辺機能装置30は、アクセスレベルが書
き込まれるアクセスレベル記憶レジスタ31゜該アクセ
スレジスタ記憶レジスタ31に書き込まれているレジス
タを読み出し、これとプロセッサ10が出力するレジス
タ信号LEVとの比較を行うアクセスレジスタ比較器3
3、該アクセスレジスタ比較器33の比較結果とプロセ
ッサ10が出力するアドレス信号^DDとを人力するア
ドレスデコーダ34、及び前記レベル信号LEVがアク
セスレベル記憶レジスタ31に書き込まれているレベル
以上のときにプロセッサ10とデータ信号DATAの授
受を行う制御レジスタ32を備えている。アクセスレベ
ル記憶レジスタ31には周辺機能装置30に対するアク
セス許可レベルが随時書き込まれる。この書き込みは、
アクセスレベル記憶レジスタ31を指定するアドレス信
号ADD及び優先順位が最上位である特権レベルのレベ
ル信号LEVがプロセッサ10からアドレスバス50及
びレベル信号線52を介してバッファ35へ人力される
場合に行われ、アクセス許可レベルを表す書き込みデー
タDATAはデータバス51を介して人力される。
The processor 10 also has an address bus 50. Data bus 51. It is connected to the peripheral function device 30 via a level signal line 52. The peripheral function device 30 has an access level storage register 31 in which the access level is written; an access register comparison that reads the register written in the access register storage register 31 and compares this with the register signal LEV outputted by the processor 10; Vessel 3
3. An address decoder 34 that manually compares the comparison result of the access register comparator 33 and the address signal ^DD output by the processor 10, and when the level signal LEV is equal to or higher than the level written in the access level storage register 31. It includes a control register 32 that exchanges a data signal DATA with the processor 10. The access permission level for the peripheral function device 30 is written into the access level storage register 31 at any time. This writing is
This is performed when the address signal ADD specifying the access level storage register 31 and the level signal LEV of the privilege level having the highest priority are inputted from the processor 10 to the buffer 35 via the address bus 50 and the level signal line 52. , write data DATA representing the access permission level is input manually via the data bus 51.

アクセスすべきアドレスのレベルが人力されたレベル信
号LEV以上のときには、アドレスデコーダ34から有
効なデコード結果がバッファ36へ人力され、プロセッ
サ10からデータバス51を介して制御レジスタ32と
のデータ授受が許可される。
When the level of the address to be accessed is higher than the input level signal LEV, a valid decoding result is manually input from the address decoder 34 to the buffer 36, and data transfer from the processor 10 to the control register 32 via the data bus 51 is permitted. be done.

以上の様に構成された周辺機能装置30または制御レジ
スタ32へのアクセス動作は、以下の様にして行われる
The operation of accessing the peripheral function device 30 or the control register 32 configured as described above is performed as follows.

プロセンサ10が制御レジスタ32を指定するアドレス
信号ADDをアドレスデコーダ34へ人力し、実行すべ
きプログラムのレベルを表すレベル信号LEVをアクセ
スレベル比較器33へ人力する。該アクセスレベル比較
器33はアクセスレベル記憶レジスタ31に書き込まれ
ているアクセス許可レベルと前記レベル信号LEνとを
比較し、その結果をアドレスデコーダ34へ出力する。
The processor 10 inputs an address signal ADD specifying the control register 32 to the address decoder 34, and inputs a level signal LEV representing the level of the program to be executed to the access level comparator 33. The access level comparator 33 compares the access permission level written in the access level storage register 31 with the level signal LEν, and outputs the result to the address decoder 34.

レベル信号LEVがアクセス許可レベル以上の場合、有
効なデコード結果がバッファ36へ人力されて、プロセ
ッサ10とデータ信号DATAの授受が許可される。
When the level signal LEV is equal to or higher than the access permission level, a valid decoding result is input to the buffer 36, and data signal DATA is permitted to be exchanged with the processor 10.

次に第2発明のプロセッサ周辺機能装置40aを第2図
に基づいて説明する。
Next, the processor peripheral function device 40a of the second invention will be explained based on FIG.

プロセッサ10とメモリ装置20とは、アドレスバス5
0.データバス51.レベル信号線52を介して接続さ
れていて、従来と同様の動作をする。またメモリ装置2
0は、アドレスバス50.データバス51゜レベル信号
線52を介して周辺機能装置40aに接続されている。
The processor 10 and the memory device 20 are connected to an address bus 5.
0. Data bus 51. It is connected via a level signal line 52 and operates in the same manner as the conventional one. Also, memory device 2
0 is the address bus 50. A data bus 51 is connected to the peripheral function device 40a via a level signal line 52.

該プロセッサ周辺機能装置40aは、バス制御を行うバ
スマスクとして動作する。
The processor peripheral function device 40a operates as a bus mask that performs bus control.

IδH22機能装置40aには、これがバスマスクとし
て動作するときのレベルが設定される動作レベルレジス
タ41が備えられていて、ここにレベルが設定されると
バスマスクとして動作すべく、プロセッサ10ヘバスの
使用を要求するバス権要求信号REΩを出力し、プロセ
ッサ10からバスの使用を許可するバス権許可信号CR
Tが人力されるようになしである。周辺機能装置40a
にバス権許可信号GI?Tが入力されると、これがバス
マスクとして動作するときに出力するレベル信号のレベ
ルが動作レベルレジスタ41に書き込まれる。この書き
込みは、動作レベルレジスタ41を指定するアドレス信
号ADDがバッファ46へ人力される場合にデータバス
5Iを介してデータDATAが入力されることによって
行われる。
The IδH22 function device 40a is provided with an operation level register 41 in which a level is set when the IδH22 function device operates as a bus mask, and when a level is set here, the IδH22 function device 40a is configured to operate as a bus mask, thereby causing the processor 10 to use the bus. A bus right request signal REΩ is output to request the bus right, and a bus right grant signal CR is outputted to permit use of the bus from the processor 10.
There is no need for T to be done manually. Peripheral function device 40a
Is the bus right permission signal GI? When T is input, the level of the level signal output when it operates as a bus mask is written into the operation level register 41. This writing is performed by inputting data DATA via data bus 5I when address signal ADD specifying operation level register 41 is input to buffer 46.

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

周辺機能装置40aがバスマスクとして動作するときの
レベルがプロセッサ10によって動作レベルレジスタ4
1に書き込まれる。この様な状態において周辺機能装置
40aがメモリ装置20をアクセスする必要が生じると
、周辺a能装置40aはバス権要求信号REQを出力す
る。これを受けたプロセッサ10は、バスを使用する必
要がないときにはバス権許可信号CRTを出力する。バ
ス権が許可された周辺機能装置40aは、メモリ装置2
0をアクセスすべく動作レベルレジスタ41からそこに
設定されたレベルを示ずレベル信号線52を、図示しな
いアドレス発生回路からアドレス信号ADDを、各々レ
ベル信号線52.アドレスバス50を介してメモリ装置
20へ出力する。メモリ装置20において、人力された
レベル信号LEVがアクセスされたメモリ領域に定義さ
れているレベル以上の場合には、周辺機能装置 40 
aとデータバス51を介してデータ信号DATAの授受
が行われる。
The level at which the peripheral function device 40a operates as a bus mask is determined by the processor 10 in the operating level register 4.
Written to 1. When the peripheral function device 40a needs to access the memory device 20 in such a state, the peripheral function device 40a outputs the bus request signal REQ. Upon receiving this, the processor 10 outputs a bus right permission signal CRT when there is no need to use the bus. The peripheral function device 40a to which the bus right has been granted is the memory device 2
0 from the operation level register 41 to access the level signal line 52, and an address signal ADD from an address generation circuit (not shown) to the level signal line 52. It is output to the memory device 20 via the address bus 50. In the memory device 20, when the manually input level signal LEV is equal to or higher than the level defined in the accessed memory area, the peripheral function device 40
A data signal DATA is exchanged via the data bus 51 and the data bus 51.

第2発明の他の実施例を第3図に示している。Another embodiment of the second invention is shown in FIG.

この実施例であるプロセッサ周辺機能装置40bは、バ
スマスクとして動作するときのレベルが設定される動作
レベルレジスタ41.該動作レベルレジスタ41へのレ
ジスタ書き換えの判定基準となるレジスタが設定される
アクセスレベル記憶レジスタ43゜該アクセスレベル記
憶レジスタ43用のアドレスデコーダ42及び動作レベ
ルレジスタ41用のアドレスデコーダ44を備えている
。アドレスデコーダ42は、プロセッサ10から人力さ
れたアクセスレベル記憶レジスタ43を指定するアドレ
ス信号ADDが入力された場合に人力されたレベル信号
チEvが特権レベルのときのみ有効なデコード結果をバ
ッファ45へ出力するものであって、該バッファ45に
有効なデコード結果が入力されると、アクセスレベル記
憶レジスタ43に設定されるレベルがプロセッサ1oか
らデータバス51を介してアクセスレベル記憶レジスタ
43へ入力される。アドレスデコーダ44は、プロセッ
サ10から動作レベルレジスタ41を指定するアドレス
信号ADD及びレベル信号LEVを入力し、一方アクセ
スレベル記憶レジスタ43に設定されているレベルを入
力して、該レベルより前記レベル信号LEVO方が高い
ときに有効なデコ−ド結果をバッファ46へ出力するも
のである。有効なデコード結果がバッファ46へ人力さ
れるとレベル信号線52のレベルが動作レベルレジスタ
41へ書き込まれる。以上の様に構成された周辺機能装
置40bはアドレスバス50.データバス51.  レ
ジスタ信号線52を介してメモリ装置20に接続されて
いる。
The processor peripheral function device 40b of this embodiment has an operation level register 41. to which a level is set when operating as a bus mask. An access level storage register 43 in which a register serving as a criterion for register rewriting to the operation level register 41 is set; an address decoder 42 for the access level storage register 43 and an address decoder 44 for the operation level register 41 are provided. . Address decoder 42 outputs a valid decoding result to buffer 45 only when manually inputted level signal CHEv is at a privileged level when inputted from processor 10 is an address signal ADD specifying access level storage register 43. When a valid decoding result is input to the buffer 45, the level set in the access level storage register 43 is input from the processor 1o to the access level storage register 43 via the data bus 51. The address decoder 44 inputs an address signal ADD specifying the operation level register 41 and a level signal LEV from the processor 10, and inputs the level set in the access level storage register 43, and from this level inputs the level signal LEVO. A valid decoding result is output to the buffer 46 when the decoding result is higher. When a valid decoding result is input to the buffer 46, the level of the level signal line 52 is written to the operation level register 41. The peripheral function device 40b configured as described above has an address bus 50. Data bus 51. It is connected to the memory device 20 via a register signal line 52.

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

周辺機能装置40bがハスマスクとして動作するときの
レベル及びそのレベルを書き換えるための判定となる基
準レベルが、プロセッサ10によって動作レベルレジス
タ41及びアクセスレベル記憶レジスタ43に予め書き
込まれる。この様な状態において周辺機能装置40bが
メモリ装置20をアクセスする必要が生しると周辺機能
装置40bはバス権要求信号REQを出力する。これを
受けたプロセッサ10は、バスを使用する必要がないと
きにはハス権許可信号CRTを出力する。バス権が許可
された周辺機能装置40bは、メモリ装置20をアクセ
スすべく動作レベルレジスタ41からそこに設定された
レベルを示すレベル信号LEVを、図示しないアドレス
発生回路からアドレス信号ADDを各々レベル信号線5
2.アドレスバス50を介してメモリ装置20へ出力す
る。メモリ装置20において人力されたレベル信号LE
Vがアクセスされたメモリ領域に定義されているレベル
以上の場合には、周辺機能袋g4obとデータバス51
を介してデータ信号DATAの授受が行われる。
The level at which the peripheral function device 40b operates as a lotus mask and the reference level used as a determination for rewriting the level are written in advance in the operation level register 41 and the access level storage register 43 by the processor 10. In such a state, when the peripheral function device 40b needs to access the memory device 20, the peripheral function device 40b outputs a bus request signal REQ. Upon receiving this, processor 10 outputs a hash right permission signal CRT when there is no need to use the bus. The peripheral function device 40b to which the bus right has been granted receives a level signal LEV indicating the level set there from the operation level register 41 in order to access the memory device 20, and an address signal ADD from an address generation circuit (not shown). line 5
2. It is output to the memory device 20 via the address bus 50. Level signal LE manually input in memory device 20
If V is equal to or higher than the level defined in the accessed memory area, the peripheral function bag g4ob and the data bus 51
A data signal DATA is exchanged via the terminal.

動作モードの変更に応して動作レベルレジスタ41が出
力するレベル信号LEVのレベルを書き換える場合は、
プロセッサ10から動作レベルレジスタ41を指定する
アドレス信号ADDと書き換えようとするレベルを示す
レベル信号LEVとを、アドレスデコーダ44へ人力す
る。そうすると該アドレスデコーダ44は、アクセスレ
ベル記憶レジスタ43に設定されているレベルを人力し
、該レベルよりも書き換えようとするレベルの方が高い
場合には有効なデコード結果をバッファ46へ出力する
。そうすると書き換えようとするレベルがレベル信号線
52を介して動作レベルレジスタ41へ人力されて書き
込まれる。
When rewriting the level of the level signal LEV output by the operation level register 41 in response to a change in the operation mode,
An address signal ADD specifying the operating level register 41 and a level signal LEV indicating the level to be rewritten are manually inputted from the processor 10 to the address decoder 44. Then, the address decoder 44 manually inputs the level set in the access level storage register 43, and outputs a valid decoding result to the buffer 46 if the level to be rewritten is higher than the level. Then, the level to be rewritten is manually written into the operation level register 41 via the level signal line 52.

更に動作モードの変更に応じてアクセスレベル記憶レジ
スタ43に設定されている基準レベルを書き換える場合
は、プロセッサ10からアクセスレベル記憶レジスタ4
3を指定するアドレス信号ADDと特権レベルを示すレ
ベル信号LEVとをアドレスデコーダ42へ人力する。
Furthermore, when rewriting the reference level set in the access level storage register 43 in accordance with a change in the operation mode, the access level storage register 4 is rewritten from the processor 10.
An address signal ADD specifying number 3 and a level signal LEV indicating a privilege level are manually input to the address decoder 42.

そうすると該アドレスデコーダ42は、有効なデコード
結果をバッファ45へ出力する。バッファ45に有効な
デコード結果が入力されるとアクセスレベル記憶レジス
タ43に書き換えようとするレベルのデータがデータバ
ス5Iを介してそこに人力されて書き込まれる。
Then, the address decoder 42 outputs a valid decoding result to the buffer 45. When a valid decoding result is input to the buffer 45, the data of the level to be rewritten is manually written into the access level storage register 43 via the data bus 5I.

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

以上説明したとおり、第1発明のプロセッサ周辺機能装
置は、装置内部にレベル信号を判定する手段を備えてい
るので、外部にデコーダを設ける必要がないので回路が
複雑にならない。
As explained above, the processor peripheral function device of the first invention includes means for determining a level signal inside the device, so there is no need to provide an external decoder, and the circuit does not become complicated.

第2発明のプロセッサ周辺機能装置は、装置内部にレベ
ル信号を発生する手段を備えているので、外部にレベル
信号線52を設ける必要がないので回路が複雑にならな
い。
Since the processor peripheral function device of the second invention includes means for generating a level signal inside the device, there is no need to provide an external level signal line 52, and the circuit does not become complicated.

更に本発明のプロセッサ周辺機能装置を、レベルによる
メモリ保護を行うプロセッサシステムに組み込む場合、
外部装置を介さずにアクセス動作が行われるためレベル
の設定及びレベルの変更を随時行うことができるという
効果がある。
Furthermore, when the processor peripheral function device of the present invention is incorporated into a processor system that performs level-based memory protection,
Since the access operation is performed without using an external device, there is an advantage that the level can be set and changed at any time.

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

第1図は第1発明に係るプロセッサ周辺機能装置を備え
た場合のレベルによるメモリ保護4行うプロセッサシス
テムを示すブロック図、第2図は第2発明に係るプロセ
ッサ周辺機能装置を備えた場合のレベルによるメモリ保
護を行うデジタルプロセッサシステムを示すブロック図
、第3図は第2発明の他の実施例であるプロセッサ周辺
機能装置を備えた場合のレベルによるメモリ保護を行う
プロセッサシステムを示すブロック図、第4図は従来の
プロセッサ周辺機能装置を備えた場合のシステムを示す
ブロック図、第5図はバスマスタとなることができる従
来のプロセッサ周辺機能装置を備えた場合のシステムを
示すブロック図である。 30、40.40a、 40b・・・プロセッサ周辺機
能装置10・・・プロセッサ 41・・・動作レベルレ
ジスタ3L 43・・・アクセスレベル記憶レジスタな
お、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram showing a processor system that performs memory protection 4 according to the level when it is equipped with the processor peripheral function device according to the first invention, and FIG. 2 is the level when it is equipped with the processor peripheral function device according to the second invention. FIG. 3 is a block diagram illustrating a digital processor system that performs memory protection according to levels according to another embodiment of the second invention, and FIG. FIG. 4 is a block diagram showing a system including a conventional processor peripheral function device, and FIG. 5 is a block diagram showing a system including a conventional processor peripheral function device capable of acting as a bus master. 30, 40.40a, 40b...Processor peripheral function device 10...Processor 41...Operation level register 3L 43...Access level storage register Note that in the figures, the same reference numerals indicate the same or equivalent parts. .

Claims (2)

【特許請求の範囲】[Claims] (1)アクセスの優先順位を定義するレベルを指定する
レベル信号が、そのレベルに適合しているときには、こ
れを出力したプロセッサのアクセスが可能となるプロセ
ッサ周辺機能装置において、 前記レベル信号に基づいてアクセスの許可 又は禁止を判定する手段を備えることを特徴とするプロ
セッサ周辺機能装置。
(1) When the level signal that specifies the level that defines the priority of access matches that level, in the processor peripheral function device that allows access by the processor that outputs it, based on the level signal. A processor peripheral function device comprising means for determining permission or prohibition of access.
(2)アクセスの優先順位を示すレベルが定義されてい
る領域を有するメモリへのアクセスが許可されると該メ
モリへアクセスできるプロセッサ周辺機能装置において
、 前記メモリをアクセスすべく前記レベルを 指定するレベル信号を発生する手段を備えることを特徴
とするプロセッサ周辺機能装置。
(2) In a processor peripheral function device that can access a memory that has an area defined with a level indicating the priority of access, if access to the memory is permitted, a level that specifies the level to access the memory. A processor peripheral function device comprising means for generating a signal.
JP17335089A 1989-07-04 1989-07-04 Function device peripheral of processor Pending JPH0337750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17335089A JPH0337750A (en) 1989-07-04 1989-07-04 Function device peripheral of processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17335089A JPH0337750A (en) 1989-07-04 1989-07-04 Function device peripheral of processor

Publications (1)

Publication Number Publication Date
JPH0337750A true JPH0337750A (en) 1991-02-19

Family

ID=15958788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17335089A Pending JPH0337750A (en) 1989-07-04 1989-07-04 Function device peripheral of processor

Country Status (1)

Country Link
JP (1) JPH0337750A (en)

Similar Documents

Publication Publication Date Title
US7434264B2 (en) Data processing system with peripheral access protection and method therefor
US7444668B2 (en) Method and apparatus for determining access permission
US5497501A (en) DMA controller using a predetermined number of transfers per request
JP4602403B2 (en) Endianness control method and apparatus in data processing system
US7277972B2 (en) Data processing system with peripheral access protection and method therefor
EP0443557B1 (en) Interrupt controller capable of realizing interrupt nesting function
JPH0337750A (en) Function device peripheral of processor
EP0864983A2 (en) Computer system including memory adress management circuit for protecting memory from illegal writing
JPS6074059A (en) Access control system for storage device
JPS59117658A (en) Common bus access managing device of multimicroprocessor system
KR930007468B1 (en) Input/output matching method for a large method
JPS6054691B2 (en) Memory protection method for information processing equipment
JPH044454A (en) System for protecting register access
JPS62274445A (en) Privilege protection system in microcomputer system
JPH01279343A (en) Main memory protection system for computer system
JPS6355657A (en) Common bus connection system
JPS6022248A (en) Interruption controller
JPH01320557A (en) Shared storage device
JPH0336650A (en) Memory protecting system
JPH04130553A (en) Electronic computer
JPH01287762A (en) Shared data memory protecting method
JPS6138508B2 (en)
JPH02176843A (en) Dma controller
JPS6074060A (en) Storage protecting device
KR20070017537A (en) Method and apparatus for endianness control in a data processing system