JPH03171332A - Abnormal access detecting system - Google Patents

Abnormal access detecting system

Info

Publication number
JPH03171332A
JPH03171332A JP1312516A JP31251689A JPH03171332A JP H03171332 A JPH03171332 A JP H03171332A JP 1312516 A JP1312516 A JP 1312516A JP 31251689 A JP31251689 A JP 31251689A JP H03171332 A JPH03171332 A JP H03171332A
Authority
JP
Japan
Prior art keywords
access
internal circuit
circuit
detects
abnormal
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
JP1312516A
Other languages
Japanese (ja)
Inventor
Mikitaka Murase
村瀬 幹卓
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
Original Assignee
Fujitsu 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 filed Critical Fujitsu Ltd
Priority to JP1312516A priority Critical patent/JPH03171332A/en
Publication of JPH03171332A publication Critical patent/JPH03171332A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent the abnormal accesses and at the same time to inform an external device of the abnormal access to assure a normal operation for improvement of reliability by a system by providing a circuit which inhibits the access to an internal circuit of a device and a circuit which detects externally the access given to the internal circuit. CONSTITUTION:A 1st device 10 has a direct access to an internal circuit of a 2nd device 20 to perform the communication with the device 20. That is, an access detecting means 1 detects an access given to the internal circuit of the device 20 from the device 10. A setting means 2 sets the inhibition of the access given to the device 20 from the device 10. Then an abnormality detecting means 3 detects the abnormality based on the set state of the means 2 when an access given to the internal circuit of the device 20 from the device 10 is detected by the means 1. In such a constitution, the abnormal accesses is prevented and informed to an external device.

Description

【発明の詳細な説明】 〔概要〕 外部装置からの異常アクセスの検出に関し、外部装置か
らの異常アクセスを防止し、通知するために異常アクセ
スを検出する方式を提供することを目的とし、 第1の装置が第2の装置の内部回路に直接アクセスする
ことによって該第2の装置と通信を行うシステムにおい
て、該第2の装置に、前記内部回路へのアクセスを検出
するアクセス検出手段と、前記内部回路へのアクセスの
禁止を設定する手段と、該検出手段によって前記内部回
路へのアクセスが検出されたとき該設定手段の設定に基
づいて異常を検出する異常検出手段とを設けるよう構戒
する。
[Detailed Description of the Invention] [Summary] Regarding the detection of abnormal access from an external device, the object of the present invention is to provide a method for detecting abnormal access in order to prevent and notify abnormal access from an external device, A system in which a device communicates with a second device by directly accessing an internal circuit of the second device, wherein the second device includes access detection means for detecting access to the internal circuit; It is advisable to provide a means for setting prohibition of access to the circuit, and an abnormality detecting means for detecting an abnormality based on the setting of the setting means when access to the internal circuit is detected by the detecting means.

〔産業上の利用分野〕[Industrial application field]

本発明は、外部装置からの異常アクセスの検出に関する
The present invention relates to detection of abnormal access from an external device.

近年、半導体技術の進歩による半導体製品の低価格化に
伴って、あらゆる分野にマイクロプロセッサが利用され
ている。例えば、マイクロプロセッサを有する2つの装
置の間の通信においては通常、−力の装置は他方の装置
内部の共j市バスを介して直接、その!/ジスタに指令
をセッt−Lて動イ′『を起動(−、またメモリ等(、
こデー夕を読み書きしてデータfj:送を行うように構
戒される。このような構或において、装置が動竹中に不
当に前記レジスタや)メモリがアクセスされた場合、2
装置の動作は擾乱され、誤動作を来すことになる。従っ
て、n幇なアクセスを検出することができる方式が望ま
れている。
In recent years, microprocessors are being used in all fields as semiconductor products become cheaper due to advances in semiconductor technology. For example, in communication between two devices with microprocessors, one device typically communicates with the other device directly via a public bus within the other device. /Set the command to register t-L to start operation (-, also memory etc. (,
It is planned to read and write this data and send data fj. In such a structure, if the register or memory is accessed illegally while the device is in operation, 2
The operation of the device will be disturbed, leading to malfunctions. Therefore, a system that can detect n-fold accesses is desired.

〔従来の技術〕[Conventional technology]

第4レILLu来例を示ずブ口ツク図である。全図を通
して同−・符号は同一対象物を示す。
It is a bookmark diagram that does not show the fourth ILLu example. The same symbols indicate the same objects throughout the figures.

ホスl−装置10^は中央処1プロセ・7サ(CPUと
いう)11によってブ[2グラl、を実行してデータを
人出力装i7 ( I Oという)21から人力し、ま
た+021へ出力すると共に、データ処理を行・)。人
出力制御装i(IOCという)20Aは人出力ブロセ・
ッザ( I O Pという)5aによー,て制御記憶(
CSという)6,{に格納された制御プログラムを実行
してホス1・装FIOAと1021との間のデータの人
出力を制御ずる。ホス1・装置10AとlOc20Aと
は、それぞれのブロセッザの共通ハスを相互接続し、制
御部7乃内のレジスタ類(図示せず)及びデータバッフ
ァ(DBという)8aにそれぞれのブ口セノザのアドレ
ス空間における共通のアドレスを割り当てることによっ
て接続されている。例えば、ホスl・装i??10Aか
らl021ヘデータを出力するライト動作において、ホ
スト袋置10AはDB8aをアドレス指定して出力デー
タを転送して格納し、制御部7aの指令1/ジスタ(図
示せず)をアドレス指定してライ1指令を七ッ1・する
。制御部7aはインタフェース回路(N FCという)
9aを介してIO21を起動し、DBBa内のデータを
1021へ出力することGこよってライト動作を実行す
る。
The host device 10 executes a program using a central processor 11 (called CPU) 11, outputs data from an output device 21 (called IO) 21, and outputs it to +021. At the same time, data processing is performed. The human output controller i (referred to as IOC) 20A is a human output controller.
The control memory (referred to as IOP) 5a is
The control program stored in the CS (CS) 6 and { is executed to control the output of data between the host 1 and the FIOA 1021. The host 1/device 10A and the IOc 20A interconnect the common busses of their respective processors, and input the addresses of the respective processors into registers (not shown) and data buffers (referred to as DB) 8a in the control unit 7. connected by assigning a common address in space. For example, Hoss I? ? In the write operation of outputting data from 10A to 1021, host storage 10A specifies the address of DB8a, transfers and stores the output data, and specifies the command 1/register (not shown) of control unit 7a to write the data. Seven commands are given. The control unit 7a is an interface circuit (referred to as NFC)
The IO21 is activated via 9a and the data in DBBa is output to 1021, thereby executing the write operation.

〔発明が解決しようとする課題1 上記のように従来方法によると、rOc20Aとボス]
・装置10Aとの間の通信は共通バスを介(7て共通に
アクセス可能なレジスタやバッファを直接アクセスする
ことによって行われるので、ブ1コグラム誤り等によっ
てホスト装置10Aが動作中の10C2OAの指令レジ
スタ等にアクセスして内容を変更したとき、10C2O
Aは動作シーケンスが乱れて誤動11を起こずという問
題点があった。
[Problem to be solved by the invention 1 According to the conventional method as described above, rOc20A and boss]
・Communication with the device 10A is carried out via a common bus (7) by directly accessing commonly accessible registers and buffers, so if the host device 10A is in operation and the command register of 10C2OA is etc. and change the contents, 10C2O
A had a problem in that the operation sequence was disrupted and malfunction 11 did not occur.

本発明は、ク{部装置からの異常アクセスを防1}Yし
7、通知するために異常アクセスを検出する方式を提供
することを11的とする。
An eleventh object of the present invention is to provide a system for detecting abnormal access in order to prevent abnormal access from a client device, and to notify the abnormal access.

(課題を解決するための手段〕 第1図は本発明の原理ブロック図を示す。(Means for solving problems) FIG. 1 shows a block diagram of the principle of the present invention.

間において、 10は第1の装置、 20は第2の装置、 1は第1の装置10から第2の装置20の内部回路への
アクセスを検出するアクセス検出手段、2は第1の装置
10から第2の装置20の内部回路へのアクセスの禁止
を設定する手段、 3は検出千段1によって第1の装置10から第2の装置
20の内部回路へのアクセスが検出されたとき設定千段
2の設定に基づいて異常を検出する異常検出千段である
In between, 10 is a first device, 20 is a second device, 1 is access detection means for detecting access from the first device 10 to the internal circuit of the second device 20, and 2 is the first device 10. means for setting prohibition of access from the first device 10 to the internal circuit of the second device 20; This is a 1,000-stage abnormality detection system that detects abnormalities based on the settings of stage 2.

[作用] 本発明Cこよれば、第1の装評10が第2の装置20の
内部同路に直接アクセスすることによって第2の装置2
0と通信を行うシステムにおいて、アクセス検出千段1
は第1の装置10から第2の装置20の内部回路へのア
クセスを検出し、設定千段2は第1の装置10から第2
の装置20の内部同路一・のアクセスの禁止を設定し、
異常検出千段3は検出千段1によって第1の装置10か
ら第2の装置20の内部回路へのアクセスが検出された
とき設定千段2の設定に基づいて異常を検出するので、
異常アクセスを防止し、通知することが可能となる。
[Function] According to the present invention, the first equipment 10 directly accesses the internal same path of the second device 20, so that the second device 2
In systems that communicate with 0, access detection is 1,000 steps.
detects the access from the first device 10 to the internal circuit of the second device 20, and the setting step 2 detects the access from the first device 10 to the internal circuit of the second device 20.
setting prohibition of access to the internal same path of the device 20;
The abnormality detection stage 3 detects an abnormality based on the setting of the setting stage 2 when the access from the first device 10 to the internal circuit of the second device 20 is detected by the detection stage 1.
It becomes possible to prevent and notify abnormal access.

〔実施例] 以下、本発明の実施例を第2図及び第3図を参照して説
明する。全図を通して同一符号は同一・対象物を示す。
[Example] Hereinafter, an example of the present invention will be described with reference to FIGS. 2 and 3. The same reference numerals indicate the same objects throughout the figures.

第2図で第1図に対応するものは一点鎖線で囲んである
Components in FIG. 2 that correspond to those in FIG. 1 are surrounded by dashed lines.

第2図において、 1 0 C20B ,  I O P5b, C S6
b, D B8b,制御部7b、lFc9bは、従来例
で説明したIOC20八1 0 P5a, C S6a
, D B8a,制御部7a..IFC98と同様の機
能を有する。
In Fig. 2, 1 0 C20B, IO P5b, C S6
b, D B8b, control unit 7b, and lFc9b are IOC20810 P5a, C S6a explained in the conventional example.
, D B8a, control unit 7a. .. It has the same functions as IFC98.

デコーダ1bは、図示省略するホスト装置からの共通パ
スのアドレス信号をデコードして指令レジスタ(図示せ
ず)、DB8b等のIOC20Bの内部回路に割り当て
られたアドレスが指定されていることを検出する。
The decoder 1b decodes a common path address signal from a host device (not shown) and detects that an address assigned to an internal circuit of the IOC 20B, such as a command register (not shown) or DB 8b, is specified.

フリップフロツプ(FFという)2bは、IOC20B
が動作中などで、ホスト装置からIOC20Bの内部回
路へのアクセスを禁止する必要があるときに制御プログ
ラム3cによってセットされる。
Flip-flop (referred to as FF) 2b is IOC20B
It is set by the control program 3c when it is necessary to prohibit access from the host device to the internal circuits of the IOC 20B, such as when the IOC 20B is in operation.

第3図のタイミング図を参照して本実施例の動作を説明
する。
The operation of this embodiment will be explained with reference to the timing diagram of FIG.

■制御プログラム3cはホスト装置から内部回路へのア
クセスを禁止する必要があるときFF2bをセットする
(2) The control program 3c sets the FF 2b when it is necessary to prohibit access from the host device to the internal circuit.

■ホスト装置の共通バスからアドレス信号及びライト又
はリードタイミング信号10W又はIORが出力される
(2) An address signal and a write or read timing signal of 10W or IOR are output from the common bus of the host device.

■デコーダ1bがアドレス信号がIOC20Bの内部回
路を指定していることを検出したときRS信号を出力す
る。
(2) When the decoder 1b detects that the address signal specifies the internal circuit of the IOC 20B, it outputs an RS signal.

■IOW又はIORのタイミング(OR回路4b)で、
デコーダ1bがRS信号を出力し、かつ、FF2bがセ
ットされているとき(NAND回路3a)、SINT信
号がオンとなる。
■At the timing of IOW or IOR (OR circuit 4b),
When the decoder 1b outputs the RS signal and the FF 2b is set (NAND circuit 3a), the SINT signal is turned on.

■SINT信号によってホスト装置から内部回路へのア
クセスを抑止し、FF3bをセットしてホスト装置に割
込み要求(*INT)を出力して異常アクセスを通知す
る。
(2) Suppresses access from the host device to the internal circuit by the SINT signal, sets FF3b and outputs an interrupt request (*INT) to the host device to notify abnormal access.

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

以上説明したように本発明によれば、2つの装置の一方
から他方の内部回路へ直接アクセスすることによって相
互の通信を行うシステムにおいて、装置の内部回路への
アクセス禁止を設一定する回路と、外部から内部回路へ
のアクセスを検出する回路とを設けて異常アクセスを検
出するので、装置間の動作シーケンスを乱す異常アクセ
スを防止すると共に外部装置に通知して正常な動作を保
証することによりシステムの信頼性を向上することがで
きるという効果がある。
As explained above, according to the present invention, in a system in which two devices communicate with each other by directly accessing the internal circuits of the other device, a circuit for prohibiting access to the internal circuits of the devices and an external The system is equipped with a circuit that detects access to internal circuits to detect abnormal access, which prevents abnormal access that disrupts the operation sequence between devices, and also notifies external devices to ensure normal operation. This has the effect of improving reliability.

【図面の簡単な説明】 第1図は本発明の原理ブロック図、 第2図は本発明の実施例を示すブロック図、第3図は本
発明の実施例のタイミング図、第4図は従来例を示すブ
ロック図である。 図において、 lはアクセス検出手段、 1bはデコーダ、 2は設定手段、 2bはフリップフロップ(FF)、 3は異常検出手段、 3aはNAND回路、 3bはフリップフロップ(FF)、 3cは制御プログラム、 4bはOR回路、 5bは人出力プロセッサ(■○P)、 6bは制御記憶(CS)、 7bは制御部、 8bはデータバッファ(DB)、 9bはインタフェース回路(IFC) 10は第1の装置、 20は第2の装置、 20Bは入出力制御装置(■○C)、 2lは人出力装置(■○) を示す。 不発B月の原理ブロッフ図 うぶ≦Eイ「;ア] 不発明0実施イタ1jのタイミンク図
[Brief Description of the Drawings] Fig. 1 is a principle block diagram of the present invention, Fig. 2 is a block diagram showing an embodiment of the present invention, Fig. 3 is a timing diagram of the embodiment of the present invention, and Fig. 4 is a conventional block diagram. FIG. 2 is a block diagram illustrating an example. In the figure, l is an access detection means, 1b is a decoder, 2 is a setting means, 2b is a flip-flop (FF), 3 is an abnormality detection means, 3a is a NAND circuit, 3b is a flip-flop (FF), 3c is a control program, 4b is an OR circuit, 5b is a human output processor (■○P), 6b is a control memory (CS), 7b is a control unit, 8b is a data buffer (DB), 9b is an interface circuit (IFC), 10 is a first device , 20 is a second device, 20B is an input/output control device (■○C), and 2l is a human output device (■○). Principle brochure diagram of non-explosion B month Ubu≦Ei ``;A] Timing diagram of non-invention 0 implementation Ita 1j

Claims (1)

【特許請求の範囲】 第1の装置(10)が第2の装置(20)の内部回路に
直接アクセスすることによって該第2の装置(20)と
通信を行うシステムにおいて、 該第2の装置(20)に、前記内部回路へのアクセスを
検出するアクセス検出手段(1)と、 前記内部回路へのアクセスの禁止を設定する手段(2)
と、 該検出手段(1)によって前記内部回路へのアクセスが
検出されたとき該設定手段(2)の設定に基づいて異常
を検出する異常検出手段(3)とを設けることを特徴と
する異常アクセス検出方式。
Claims: A system in which a first device (10) communicates with a second device (20) by directly accessing an internal circuit of the second device (20), comprising: 20), access detection means (1) for detecting access to the internal circuit; and means (2) for setting prohibition of access to the internal circuit;
and an abnormality detecting means (3) for detecting an abnormality based on the setting of the setting means (2) when the detecting means (1) detects an access to the internal circuit. Access detection method.
JP1312516A 1989-11-30 1989-11-30 Abnormal access detecting system Pending JPH03171332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1312516A JPH03171332A (en) 1989-11-30 1989-11-30 Abnormal access detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1312516A JPH03171332A (en) 1989-11-30 1989-11-30 Abnormal access detecting system

Publications (1)

Publication Number Publication Date
JPH03171332A true JPH03171332A (en) 1991-07-24

Family

ID=18030167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1312516A Pending JPH03171332A (en) 1989-11-30 1989-11-30 Abnormal access detecting system

Country Status (1)

Country Link
JP (1) JPH03171332A (en)

Similar Documents

Publication Publication Date Title
KR20010042374A (en) Method for switching between multiple system processors
US7523229B2 (en) Memory protection during direct memory access
US7007126B2 (en) Accessing a primary bus messaging unit from a secondary bus through a PCI bridge
JPH05324348A (en) Single chip microcomputer
JPS61182160A (en) Data processing device
JPH03171332A (en) Abnormal access detecting system
KR100223096B1 (en) Method and apparatus for observing internal memory-mapped registers
JPS6158054A (en) Run away detection of program
JPH0430245A (en) Multiprocessor control system
KR100238175B1 (en) Bus control logic apparatus
JP2583617B2 (en) Multiprocessor system
JPH03252831A (en) Method for collecting ras information by dma transfer
JPH03225546A (en) Method for confirming whether option board is mounted or not
JPS63250753A (en) Memory access checking system
JP3012402B2 (en) Information processing system
JP2501393B2 (en) Direct memory access device
JPH03119439A (en) Address stop circuit
JPH0320834A (en) Initial diagnostic method for information processor
JPS6162142A (en) I/o controller
JPS61165160A (en) Bus controlling system
JPH0333939A (en) Microprocessor
JPH02238547A (en) Interruption control system
JPH0317757A (en) Data processor
JPS5829062A (en) Microcomputer system
JPS62186344A (en) Address mapped register