JPH06324910A - Access detector for computer system - Google Patents
Access detector for computer systemInfo
- Publication number
- JPH06324910A JPH06324910A JP5111391A JP11139193A JPH06324910A JP H06324910 A JPH06324910 A JP H06324910A JP 5111391 A JP5111391 A JP 5111391A JP 11139193 A JP11139193 A JP 11139193A JP H06324910 A JPH06324910 A JP H06324910A
- Authority
- JP
- Japan
- Prior art keywords
- access
- strobe
- arithmetic unit
- slave
- write
- 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
Links
Landscapes
- Storage Device Security (AREA)
- Debugging And Monitoring (AREA)
- Memory System (AREA)
Abstract
(57)【要約】
【構成】演算部1によるアクセスがアクセス検出エリア
内か否かの判定をするADT7と、アクセス検出時、演
算部1からのアクセスの禁止,許可を設定するアクセス
禁止指定部17と、ADT7からIRQに出力される割
込信号とアクセス禁止指定部17の設定内容により、ス
レーブ対象18に対するSRDのスレーブ読み出しスト
ローブを禁止する読み出し禁止ゲート10と、スレーブ
対象18に対するSWDのスレーブ書き込みストローブ
を禁止する書き込み禁止ゲート11から成り立つ。
【効果】アクセス検出時のスレーブ対象への書き込み,
読み出しの禁止,許可を指定できる構成にしたのでプロ
グラムのデバッグ時のバグ発見効率を向上し、本稼働中
の不正アクセス防止,システムダウンの防止にも効果が
ある。
(57) [Summary] [Structure] ADT 7 for determining whether or not the access by the operation unit 1 is within the access detection area, and an access prohibition designation unit for setting access prohibition and permission from the operation unit 1 when access is detected. 17, the interrupt signal output from the ADT 7 to the IRQ, and the setting contents of the access prohibition designating unit 17, the read prohibition gate 10 that prohibits the slave read strobe of the SRD for the slave target 18, and the slave write of the SWD for the slave target 18. It comprises a write inhibit gate 11 which inhibits strobe. [Effect] Writing to the slave target when access is detected,
Since the configuration is such that read prohibition and permission can be specified, the efficiency of finding bugs during program debugging is improved, and it is also effective in preventing unauthorized access during system operation and system down.
Description
【0001】[0001]
【産業上の利用分野】本発明は各種分野に用いられるコ
ンピュータシステムにおけるプログラムの不具合原因を
究明する上で好適なアクセス検出装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an access detecting apparatus suitable for investigating the cause of a program failure in a computer system used in various fields.
【0002】[0002]
【従来の技術】従来、コンピュータシステムにおいて、
アクセス防止あるいはアクセス検出の技術はメモリ内容
の保護を目的とし、不正な書き込みを防止するものがほ
とんどであった。2. Description of the Related Art Conventionally, in computer systems,
Most of the technologies for preventing access or detecting access are intended to protect the memory contents and prevent unauthorized writing.
【0003】メモリ内容の読み出しに関しても特開昭62
−160554号公報に記載のようにプログラム実行中に参照
してはいけないデータの読み出しをも防止できるよう
な、書き込みに限定しない不正アクセス防止装置も発明
された。これはメモリのアクセス禁止エリアを設定記憶
する手段と、演算部のアクセス時にアクセスアドレスが
禁止エリア内に有るか否かを判定する手段と、演算部か
ら出力されるアクセスストローブを判定結果がアクセス
可である場合にメモリに与えるゲート手段と、判定結果
がアクセス不可である場合に演算部にアクセス不可を通
報する手段を備えている。Regarding the reading of memory contents, Japanese Patent Laid-Open No. 62-62
As described in Japanese Patent Laid-Open No. 160554, there is also invented an unauthorized access prevention device which is not limited to writing and which can prevent reading of data that should not be referred to during program execution. This is a means to set and store the access prohibited area of the memory, a means to judge whether the access address is in the prohibited area at the time of access of the arithmetic unit, and an access strobe output from the arithmetic unit as the judgment result can be accessed. If the determination result is inaccessible, it is provided with a gate means for giving to the memory, and a means for notifying the operation unit of inaccessibility.
【0004】この技術では演算部のメモリからの読み出
しアドレスが読み出し禁止エリア内の場合はメモリから
の読み出しを禁止し、メモリへの書き込みアドレスが書
き込み禁止エリア内の場合はメモリへの書き込みを禁止
し、演算部に通報する。In this technique, when the read address from the memory of the arithmetic unit is in the read prohibited area, the read from the memory is prohibited, and when the write address to the memory is in the write prohibited area, the write to the memory is prohibited. , Report to the operation unit.
【0005】[0005]
【発明が解決しようとする課題】上記従来技術によれば
プログラムによる誤ったエリアへのデータ書き込み、誤
ったエリアのデータ参照を防止できるという効果があ
り、演算部に対しても不正アクセスであることを通報し
ているので、プログラムのバグを発見しやすくなるが、
間接アドレス指定,相対アドレス指定等を用いてアクセ
スアドレスがプログラムの実行条件によって変化するプ
ログラムの動作確認において、期待値となるアドレスを
正しくアクセスするか否かを検出する場合、アクセスそ
のものを許可し、アクセス検出処理後もアクセス結果を
もとにプログラムの処理を継続したい場合がある。その
場合、演算部に対しては割込みとして通報し、割込みプ
ログラムでアクセス結果のチェックを行った後に、プロ
グラムの処理を継続することになるが従来技術ではアク
セス検出エリアへのアクセスが全て防止されるため、プ
ログラムの処理の継続が困難という問題があった。According to the above-mentioned prior art, there is an effect that it is possible to prevent the writing of data into an erroneous area by a program and the reference of data in an erroneous area, and it is also an illegal access to the arithmetic unit. Since it is reported, it becomes easier to find bugs in the program,
When detecting whether or not to correctly access the expected value address in the operation check of the program in which the access address changes depending on the execution condition of the program using indirect address specification, relative address specification, etc., the access itself is permitted, It may be desirable to continue the processing of the program based on the access result even after the access detection processing. In that case, the operation unit is notified as an interrupt, and after the access result is checked by the interrupt program, the processing of the program is continued, but in the prior art, access to the access detection area is prevented entirely. Therefore, there is a problem that it is difficult to continue the processing of the program.
【0006】本発明の目的は動作確認の効率を向上する
アクセス検出装置を提供することにある。An object of the present invention is to provide an access detection device that improves the efficiency of operation confirmation.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に本発明ではアクセス検出エリアを指定する手段と、演
算部からのアクセスが前記手段で指定されたアクセス検
出エリア内にあるか否かを比較しアクセス検出エリア内
にある場合に演算部に検出信号を出力する手段と、前記
検出信号が出力された時に演算部からスレーブ対象にア
クセスストローブを与えるか否かを指定する手段と、こ
の指定内容と前記検出信号の出力からアクセスストロー
ブをスレーブ対象に与えるか否かを判定する手段を設け
たものである。In order to achieve the above object, the present invention provides means for designating an access detection area and whether or not an access from a computing unit is within the access detection area designated by the means. Means for comparing and outputting a detection signal to the arithmetic unit when in the access detection area; means for specifying whether or not the arithmetic unit gives an access strobe to the slave target when the detection signal is output; A means for determining whether or not to give the access strobe to the slave object is provided based on the content and the output of the detection signal.
【0008】[0008]
【作用】演算部がアクセス検出エリア内をアクセスして
いる場合は演算部に通報することで演算部はアクセス検
出エリア内をアクセスしていることを認識するが、その
時の演算部からスレーブ対象へのアクセス動作を禁止す
るか許可するかを指定可能とし、アクセスの許可を指定
すれば、演算部が実行していた動作確認対象プログラム
の正常動作の確認の継続が可能となる。また、演算部は
アクセス検出エリア内をアクセスしていることを認識
後、その認識に対応する割込みプログラムを実行し、そ
の割込みプログラムでアクセス動作が正しく行われたか
を確認する。それとは逆に、演算部がアクセス検出エリ
ア内をアクセスしている場合、演算部からスレーブ対象
へのアクセス動作の禁止を指定すれば、そのアクセスが
防止されるので、スレーブ対象の保護や、動作確認中あ
るいは稼働中のプログラムの異常検出が行える。When the arithmetic unit is accessing the inside of the access detection area, the arithmetic unit recognizes that the inside of the access detection area is accessed by notifying the arithmetic unit. It is possible to specify whether the access operation is prohibited or allowed, and if the access permission is specified, it is possible to continue checking the normal operation of the operation check target program executed by the arithmetic unit. Further, after the arithmetic unit recognizes that the access detection area is being accessed, it executes the interrupt program corresponding to the recognition and confirms whether the access operation is correctly performed by the interrupt program. On the contrary, when the arithmetic unit is accessing the access detection area, if the prohibition of the access operation from the arithmetic unit to the slave target is specified, the access is prevented, so the slave target is protected and It is possible to detect abnormalities in the program being checked or running.
【0009】また、演算部が前記アクセス検出エリア外
をアクセスしている場合は演算部に対しては何ら通報せ
ず、スレーブ対象へのアクセス動作が行われる。When the arithmetic unit is accessing the outside of the access detection area, the arithmetic unit is not notified and the operation of accessing the slave target is performed.
【0010】[0010]
【実施例】以下、本発明の一実施例を図面を用いて説明
する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.
【0011】図1に本発明の一実施例に基づくコンピュ
ータシステムのブロック図を示す。任意に読み出し,書
き込みを行う演算部1はABとDBにてメモリ12と周
辺I/O13に接続される。演算部1はABにアクセス
するアドレスを出力する。演算部1が書き込む時はWR
に書き込みストローブを出力し、その時、演算部1は書
き込むデータをDBに出力する。演算部1が読み出す場
合はRDに読み出しストローブを出力し、その時演算部
1はDBに出力されているデータを読み出す。FIG. 1 is a block diagram of a computer system according to an embodiment of the present invention. The arithmetic unit 1 that arbitrarily reads and writes is connected to the memory 12 and the peripheral I / O 13 via AB and DB. The arithmetic unit 1 outputs an address for accessing AB. WR when the arithmetic unit 1 writes
The write strobe is output to, and at that time, the arithmetic unit 1 outputs the write data to the DB. When the arithmetic unit 1 reads out, it outputs a read strobe to RD, and at that time, the arithmetic unit 1 reads out the data output to DB.
【0012】メモリ12と周辺I/O13と書き込み禁
止ゲート11はSWRを用いて接続される。書き込み禁
止ゲート11からSWRにスレーブ書き込みストローブ
が出力されている時でABを用いて演算部1が出力する
アドレスがメモリ12に割付けられているアドレスなら
DBの内容はアドレスに対応するメモリ12のエリアに
格納される。The memory 12, peripheral I / O 13 and write inhibit gate 11 are connected using SWR. When the slave write strobe is output from the write inhibit gate 11 to the SWR and the address output from the arithmetic unit 1 using AB is the address assigned to the memory 12, the content of DB is the area of the memory 12 corresponding to the address. Stored in.
【0013】メモリ12と周辺I/O13と読み出し禁
止ゲート10はSRDを用いて接続される。読み出し禁
止ゲート10からSRDにスレーブ読み出しストローブ
が出力されている時でABを用いて演算部1が出力する
アドレスがメモリ12に割付けられているアドレスなら
メモリ12はアドレスに対応するエリアに格納された内
容をDBに出力する。The memory 12, the peripheral I / O 13 and the read inhibit gate 10 are connected using SRD. If a slave read strobe is output from the read inhibit gate 10 to the SRD and the address output from the arithmetic unit 1 using AB is the address assigned to the memory 12, the memory 12 is stored in the area corresponding to the address. Output contents to DB.
【0014】周辺I/O13にはキーボードやディスプ
レイ等の周辺機器が接続され、キーボード等からの入力
内容を取り込んだり、演算部1からの出力内容をディス
プレイ等に出力する。SWRにスレーブ書き込みストロ
ーブが出力されている時でABを用いて演算部1が出力
するアドレスが周辺I/O13に割付けられているアド
レスなら周辺I/O13はDBの内容をアドレスに割付
けられた周辺機器に出力する。SRDにスレーブ読み出
しストローブが出力されている時でABを用いて演算部
1が出力するアドレスが周辺I/O13に割付けられて
いるアドレスならアドレスに割付けられた周辺機器の内
容を周辺I/O13はDBに出力する。Peripheral I / O 13 is connected to peripheral devices such as a keyboard and a display, and takes in the input contents from the keyboard and outputs the output contents from the arithmetic unit 1 to the display and the like. When the slave write strobe is output to SWR and the address output by the arithmetic unit 1 using AB is the address assigned to the peripheral I / O 13, the peripheral I / O 13 assigns the contents of the DB to the address. Output to the device. If a slave read strobe is being output to SRD and the address output from the arithmetic unit 1 using AB is the address assigned to the peripheral I / O 13, the peripheral I / O 13 will display the contents of the peripheral device assigned to the address. Output to DB.
【0015】アクセスディテクトトラップ(以下ADT
と略す)7と演算部1はABとRDとWRで接続され
る。また、ADT7は演算部1と読み出し禁止ゲート1
0と書き込み禁止ゲート11にIRQで接続される。A
DT7にはアクセス検出エリアの指定が可能で、その指
定されたアクセス検出エリアに演算部1がABを用いて
アクセスするアドレスが含まれるか否かを判定する。そ
れとは別にADT7には読み出し検出の実行または禁止
が指定可能で、アクセス検出エリアに演算部1からのア
クセスアドレスが含まれる時で読み出し検出実行を指定
時で演算部1からのRDによりアクセスが読み出しであ
ることを認識した時にADT7はIRQに割込信号を出
力する。それとは別にADT7には書き込み検出の実行
または禁止も指定可能で、アクセス検出エリアに演算部
1からのアクセスアドレスが含まれる時で書き込み検出
実行を指定時で演算部1からのWRによりアクセスが書
き込みであることを認識した時にADT7はIRQに割
込信号を出力する。Access detect trap (hereinafter referred to as ADT
(Abbreviated as 7) and the arithmetic unit 1 are connected by AB, RD, and WR. In addition, the ADT 7 includes an arithmetic unit 1 and a read inhibit gate 1
0 and write inhibit gate 11 are connected by IRQ. A
An access detection area can be designated in the DT 7, and it is determined whether or not the designated access detection area includes an address accessed by the arithmetic unit 1 using AB. Separately, the execution or prohibition of the read detection can be designated in the ADT 7, and when the read detection execution is designated when the access detection area includes the access address from the arithmetic unit 1, the access is read by the RD from the arithmetic unit 1. When recognizing that, ADT7 outputs an interrupt signal to IRQ. Separately, execution or prohibition of write detection can be specified in the ADT 7, and when the write detection execution is specified when the access detection area includes an access address from the operation unit 1, the access is written by the WR from the operation unit 1. When recognizing that, ADT7 outputs an interrupt signal to IRQ.
【0016】演算部1は通常のプログラムを順番に実行
するがADT7からIRQにより割込信号が入力される
と通常プログラムを中止して割込みプログラムを実行す
る。この割込みプログラム終了時には通常プログラムの
中止時点からの処理の再開が可能である。The arithmetic unit 1 sequentially executes a normal program, but when an interrupt signal is input from the ADT 7 by the IRQ, the normal program is stopped and the interrupt program is executed. When the interrupt program ends, the process can be restarted from the point where the normal program was stopped.
【0017】アクセス禁止指定部17には読み出しの禁
止または許可と書き込みの禁止または許可を指定する。
アクセス禁止指定部17と読み出し禁止ゲート10とは
RDINHで接続され、アクセス禁止指定部17に読み
出し禁止を指定時にはRDINHに読み出し禁止指定信
号を出力する。アクセス禁止指定部17と書き込み禁止
ゲート11とはWRINHで接続され、アクセス禁止指
定部17に書き込み禁止を指定時にはWRINHに書き
込み禁止指定信号を出力する。In the access prohibition designating section 17, read prohibition or permission and write prohibition or permission are designated.
The access prohibition designation unit 17 and the read prohibition gate 10 are connected by RDINH. When the access prohibition designation unit 17 is designated to read out, a read prohibition designation signal is output to RDINH. The access prohibition designating section 17 and the write prohibition gate 11 are connected by WRINH, and when write prohibition is designated in the access prohibition designating section 17, a write prohibition designating signal is output to WRINH.
【0018】読み出し禁止ゲート10はIRQを用いて
ADT7に接続され、RDを用いて演算部1に接続さ
れ、RDINHを用いてアクセス禁止指定部17に接続
される。The read prohibition gate 10 is connected to the ADT 7 by using IRQ, is connected to the arithmetic unit 1 by using RD, and is connected to the access prohibition designating unit 17 by using RDINH.
【0019】書き込み禁止ゲート11はIRQを用いて
ADT7に接続され、WRを用いて演算部1に接続さ
れ、WRINHを用いてアクセス禁止指定部17に接続
される。The write prohibition gate 11 is connected to the ADT 7 by using IRQ, is connected to the arithmetic unit 1 by using WR, and is connected to the access prohibition specifying unit 17 by using WRINH.
【0020】このコンピュータシステムにおけるRDと
WRには、ABとDBに有効な情報が出力されるタイミ
ングでそれぞれ読み出しストローブまたは書き込みスト
ローブが出力され、どちらか一方のみが有効で、両方同
時に有効とはならない。In this computer system, read strobes and write strobes are output to RD and WR at the timings when valid information is output to AB and DB, respectively, and only one of them is valid, and both are not valid at the same time. .
【0021】図2には図1のコンピュータシステムで使
用している読み出し禁止ゲート10の内部回路例を示
す。FIG. 2 shows an example of the internal circuit of the read inhibit gate 10 used in the computer system of FIG.
【0022】図2の構成において、RDINHとIRQ
はNANDゲート50の入力に接続され、NANDゲー
ト50はRDINHとIRQの否定論理積をSRENを
用いてANDゲート60に出力する。RDとSRENは
ANDゲート60の入力に接続され、ANDゲート60
はRDとSRENの論理積をSRDに出力する。In the configuration of FIG. 2, RDINH and IRQ
Is connected to the input of the NAND gate 50, and the NAND gate 50 outputs the NAND of RDINH and IRQ to the AND gate 60 using SREN. RD and SREN are connected to the input of the AND gate 60, and the AND gate 60
Outputs the logical product of RD and SREN to SRD.
【0023】この構成で、IRQに割込信号が出力され
ない状態ではRDの読み出しストローブはSRDに伝わ
る。IRQに割込信号が出力時、RDINHに読み出し
禁止指定信号出力時ではRDの読み出しストローブは禁
止され、SRDには伝わらない。IRQに割込信号が出
力されていてもRDINHに読み出し禁止指定信号が出
力されていない状態ではRDの読み出しストローブはS
RDに伝わる。With this configuration, the read strobe of the RD is transmitted to the SRD when the interrupt signal is not output to the IRQ. When an interrupt signal is output to IRQ and a read inhibit designating signal is output to RDINH, the read strobe of RD is prohibited and is not transmitted to SRD. Even if the interrupt signal is output to IRQ, the read strobe of RD is S when the read inhibit designating signal is not output to RDINH.
It is transmitted to RD.
【0024】図3には図1のコンピュータシステムで使
用している書き込み禁止ゲート11の内部回路例を示
す。FIG. 3 shows an example of the internal circuit of the write inhibit gate 11 used in the computer system of FIG.
【0025】図3の構成において、WRINHとIRQ
はNANDゲート70の入力に接続され、NANDゲー
ト70はWRINHとIRQの否定論理積をSWENを
用いてANDゲート80に出力する。WRとSWENは
ANDゲート80の入力に接続され、ANDゲート80
はWRとSWENの論理積をSWRに出力する。In the configuration of FIG. 3, WRINH and IRQ are used.
Is connected to the input of the NAND gate 70, and the NAND gate 70 outputs the NAND of WRINH and IRQ to the AND gate 80 by using SWEN. WR and SWEN are connected to the input of the AND gate 80, and the AND gate 80
Outputs the logical product of WR and SWEN to SWR.
【0026】この構成でIRQに割込信号が出力されな
い状態ではWRの書き込みストローブはSWRに伝わ
る。IRQに割込信号が出力時、WRINHに書き込み
禁止指定信号出力時ではWRの書き込みストローブは禁
止され、SWRには伝わらない。IRQに割込信号が出
力されていてもWRINHに書き込み禁止指定信号が出
力されていない状態ではWRの書き込みストローブはS
WRに伝わる。With this configuration, the write strobe of the WR is transmitted to the SWR when the interrupt signal is not output to the IRQ. When the interrupt signal is output to IRQ and the write inhibit designating signal is output to WRINH, the write strobe of WR is prohibited and is not transmitted to SWR. Even if the interrupt signal is output to IRQ, the write strobe of WR is S when the write inhibit designating signal is not output to WRINH.
It is transmitted to WR.
【0027】図4には図1のコンピュータシステムを用
いたプログラムの動作確認の為のテストプログラムのフ
ローチャート例を示す。また、図5には図4のテストプ
ログラムの補助として、IRQの割込信号が演算部1に
入力された時に演算部1で実行する割込みプログラム側
フローチャート例を示す。これらのフローチャートでは
動作確認対象のプログラムが周辺I/O13を正常にア
クセスしているかを調べる。以下にその動作確認の例と
して周辺I/O13に正常に書き込んでいるかどうかを
確認する方法を示す。FIG. 4 shows an example of a flow chart of a test program for confirming the operation of the program using the computer system of FIG. Further, FIG. 5 shows an example of a flowchart of an interrupt program executed by the arithmetic unit 1 when an IRQ interrupt signal is input to the arithmetic unit 1 as an aid to the test program of FIG. In these flowcharts, it is checked whether the program whose operation is to be confirmed normally accesses the peripheral I / O 13. As an example of the operation confirmation, a method for confirming whether the peripheral I / O 13 is normally written will be shown below.
【0028】まず、動作確認の準備処理として、処理1
00に示すようにADT7のアクセス検出エリアに周辺
I/O13のアクセス範囲を指定する。この処理で周辺
I/O13のアドレス範囲と書き込みアクセスの検出を
指定する。読み出しアクセスの検出は指定しない。次
に、処理120に示すようにアクセス禁止指定部17に
アクセス許可を指定する。この処理で書き込みアクセス
許可を指定する。処理140ではメモリ12内に割込検
出フラグを設け、このフラグをクリアしておく。その
後、演算部1は処理160に示すように動作確認対象の
プログラムを実行する。First, as a preparation process for operation confirmation, process 1
As shown in 00, the access range of the peripheral I / O 13 is designated in the access detection area of the ADT 7. In this processing, the address range of the peripheral I / O 13 and detection of write access are specified. Detection of read access is not specified. Next, as shown in process 120, access permission is designated in the access prohibition designation unit 17. In this process, write access permission is specified. In process 140, an interrupt detection flag is provided in the memory 12 and this flag is cleared. After that, the computing unit 1 executes the program whose operation is to be confirmed as shown in process 160.
【0029】動作確認対象のプログラムの実行中に処理
100で指定したADT7のアクセス検出エリアである
周辺I/O13に対して書き込みアクセスをするとAD
T7はIRQに割込信号を出力する。書き込み禁止ゲー
ト11にはIRQの割込信号が入力されるが、処理12
0でアクセス禁止指定部17には書き込み許可指定がさ
れているためWRINHには書き込み禁止指定信号が出
力されず、SWRにスレーブ書き込みストローブが出力
され、書き込みが行われる。それとは別にIRQの割込信
号が演算部1に伝わることで演算部1は割込みプログラ
ム処理に移る。割込みプログラムではまず処理300に
示すように割込みを受付ける処理を行う。その後の処理
320では周辺I/O13へのアクセスが正常に行われ
たかを確認する。この場合、周辺I/O13内部を読み
出し、読み出した内容から周辺I/O13へのアクセス
が正常に行われたかを確認し、正常なら処理340を実
行し、異常なら処理360を実行する。この時、ADT
7には読み出しアクセスの検出が指定されていないため
IRQに割込信号が出力されず、正常に読み出しが出来
る。処理340では割込検出フラグに正常検出をセット
し、処理380に移る。処理360では割込検出フラグ
に異常検出をセットし、処理380に移る。その後の処
理380では処理300で行った割込み受付け処理から
の回復を行い、この割込み処理を終了する。When a write access is made to the peripheral I / O 13 which is the access detection area of the ADT 7 designated in the process 100 during execution of the program to be checked for operation, AD
T7 outputs an interrupt signal to IRQ. Although the IRQ interrupt signal is input to the write inhibit gate 11, processing 12
At 0, the write inhibition is designated in the access inhibition designating unit 17, so that the write inhibition designating signal is not output to WRINH, and the slave write strobe is output to SWR to perform the writing. Separately from that, the IRQ interrupt signal is transmitted to the arithmetic unit 1, and the arithmetic unit 1 shifts to the interrupt program processing. In the interrupt program, first, as shown in process 300, a process of accepting an interrupt is performed. In the subsequent process 320, it is confirmed whether the peripheral I / O 13 is normally accessed. In this case, the inside of the peripheral I / O 13 is read, and it is confirmed from the read contents whether or not the peripheral I / O 13 is normally accessed. If it is normal, the process 340 is executed, and if abnormal, the process 360 is executed. At this time, ADT
Since the detection of the read access is not designated in 7, the interrupt signal is not output to the IRQ, and the normal reading can be performed. In process 340, normal detection is set in the interrupt detection flag, and the process proceeds to process 380. In process 360, abnormality detection is set in the interrupt detection flag, and the process proceeds to process 380. In the subsequent process 380, recovery from the interrupt acceptance process performed in process 300 is performed, and this interrupt process ends.
【0030】処理160で示した動作確認対象のプログ
ラムの実行の終了後、処理180に示すように割込検出
フラグを評価し、周辺I/O13へのアクセスが正常か
否かを判断する。割込検出フラグに正常検出がセットさ
れている場合は動作確認正常として処理200に示すよ
うにこのテストプログラムの通常の終了処理を行う。割
込検出フラグに異常検出がセットされている場合は動作
確認異常として処理220に示すようにこのテストプロ
グラムのエラー終了処理を行う。この場合には動作確認
対象のプログラムから周辺I/O13へのアクセス方法
が異常な場合が考えられる。割込検出フラグがクリアの
場合はアクセス未実行として処理240に示すようにこの
テストプログラムの未検出処理を行う。この場合には動
作確認対象のプログラムが周辺I/O13をアクセスし
ていない場合が考えられる。After the execution of the program whose operation is to be confirmed shown in process 160, the interrupt detection flag is evaluated as shown in process 180 to determine whether or not the access to the peripheral I / O 13 is normal. If normal detection is set in the interrupt detection flag, the operation confirmation is normal, and the normal termination process of this test program is performed as shown in process 200. If abnormality detection is set in the interrupt detection flag, it is determined as an operation confirmation abnormality, and the error termination processing of this test program is performed as shown in processing 220. In this case, the method of accessing the peripheral I / O 13 from the program whose operation is to be confirmed may be abnormal. When the interrupt detection flag is clear, it is determined that the access is not executed, and the non-detection process of this test program is performed as shown in process 240. In this case, the program whose operation is to be confirmed may not be accessing the peripheral I / O 13.
【0031】この例では周辺I/O13への書き込みア
クセスの検出と書き込みアクセス許可を指定したため、
処理160における動作確認対象のプログラムにより周
辺I/O13への書き込みアクセスが実行された。これ
が従来技術の様に書き込みアクセス禁止のみの場合、周
辺I/O13への書き込みが阻止されるため周辺I/O
13の動作、周辺I/O13からの出力信号、または周
辺I/O13の読み出しデータなどから動作確認対象の
プログラムが周辺I/O13を正常に操作しているかの
確認ができない。この例の使用対象には、周辺I/O1
3を使用するプログラムが間接アドレス指定,相対アド
レス指定,インデックスアドレス指定等、プログラムの
実行中にアクセスアドレスを計算し、その計算結果とな
ったアドレスで周辺I/O13をアクセスする処理仕様
で、仕様通りにアクセスしているかどうかを確認する場
合などがあり、その例として、通信バッファなど、複数
の周辺I/Oを持つが、間接アドレスの指定値の変更で
複数の周辺I/Oを同じプログラムで操作する場合の動
作確認などがある。In this example, since detection of write access to the peripheral I / O 13 and write access permission are designated,
The write access to the peripheral I / O 13 is executed by the program whose operation is to be confirmed in the process 160. If this is the write access prohibition only as in the conventional technique, the write to the peripheral I / O 13 is blocked, so that the peripheral I / O is blocked.
It is not possible to confirm from the operation of No. 13, the output signal from the peripheral I / O 13, or the read data of the peripheral I / O 13 whether the program whose operation is to be confirmed operates the peripheral I / O 13 normally. Peripheral I / O 1 is used in this example.
A program that uses 3 calculates the access address during execution of the program, such as indirect address specification, relative address specification, index address specification, etc., and the processing specifications to access the peripheral I / O 13 at the address resulting from the calculation. There are cases such as checking whether or not you are accessing the street, and for example, you have multiple peripheral I / O, such as a communication buffer, but you can change multiple peripheral I / O by changing the specified value of the indirect address. Check the operation when operating with.
【0032】図4の例の処理100でADT7に読み出
しアクセスの検出と書き込みアクセスの検出の両方を指
定し、処理120でアクセス禁止指定部17に読み出し
アクセス禁止,書き込みアクセス許可を指定した場合、
処理100でADT7の検出対象に指定したアクセス検
出エリアを演算部1が書き込むとIRQに割込信号が出
力され、演算部1はアクセス検出エリアへの書き込みを
認識し、かつ、書き込みが実行されるが、読み出しの場
合、演算部1はアクセス検出エリアへの読み出しをIR
Qの割込信号が入力されることで認識するが、読み出し
禁止ゲート10にはIRQの割込信号とRDINHの書
き込み禁止指定信号が入力されるためSRDが無効状態
になり、読み出しが阻止される。これは周辺I/O13
内の読み出し禁止、書き込み専用レジスタをアクセスす
るプログラムの動作確認に使用可能である。逆に読み出
しアクセス許可、書き込みアクセス禁止を指定した場
合、周辺I/O13内の書き込み禁止、読み出し専用レ
ジスタをアクセスするプログラムの動作確認に使用可能
である。When both the read access detection and the write access detection are specified in the ADT 7 in the processing 100 of the example of FIG. 4, and the read access prohibition and the write access permission are specified in the access prohibition designating unit 17 in the processing 120,
When the arithmetic unit 1 writes the access detection area designated as the detection target of the ADT 7 in the process 100, an interrupt signal is output to the IRQ, the arithmetic unit 1 recognizes the writing to the access detection area, and the writing is executed. However, in the case of reading, the operation unit 1 performs IR reading to the access detection area.
Although it is recognized that the Q interrupt signal is input, the IRD interrupt signal and the RDINH write inhibit designating signal are input to the read inhibit gate 10, so that the SRD is disabled and the read is blocked. . This is the peripheral I / O 13
It can be used to check the operation of the program that prohibits reading or accessing the write-only register. On the contrary, when the read access permission and the write access prohibition are designated, it can be used to confirm the operation of the program that prohibits the write in the peripheral I / O 13 and the read-only register.
【0033】これとは別に読み出しアクセス禁止,書き
込みアクセス禁止を指定するとADT7がIRQに割込信号
を出力する時にはSRDとSWDが無効となりADT7
の検出対象に対してアクセスプロテクトを行うことがで
きる。そのため、このアクセス検出装置は本稼働中には
従来の不正アクセス防止装置として使用することができ
る。If read access prohibition and write access prohibition are designated separately from this, when ADT7 outputs an interrupt signal to IRQ, SRD and SWD become invalid and ADT7.
Access protection can be performed on the detection target of. Therefore, this access detection device can be used as a conventional unauthorized access prevention device during the actual operation.
【0034】[0034]
【発明の効果】本発明によればアクセス検出時のスレー
ブ対象への書き込み、読み出しの禁止、あるいは許可を
選択指定できる構成にしたのでプログラムのデバッグ時
のバグ発見効率を向上する効果だけでなく本発明のアク
セス検出装置を用いたコンピュータシステムの本稼働中
の不正アクセス防止、さらにはシステムダウンの防止に
も効果がある。As described above, according to the present invention, it is possible to selectively specify write or read prohibition or permission to a slave target when an access is detected. The present invention is effective in preventing unauthorized access during the actual operation of a computer system using the access detection device of the invention, and also in preventing system down.
【図1】本発明のアクセス検出装置を用いたコンピュー
タシステムのブロック図。FIG. 1 is a block diagram of a computer system using an access detection device of the present invention.
【図2】図1で表わしている読み出し禁止ゲートの内部
回路図。FIG. 2 is an internal circuit diagram of the read inhibit gate shown in FIG.
【図3】図1で表わしている書き込み禁止ゲートの内部
回路図。3 is an internal circuit diagram of the write inhibit gate shown in FIG.
【図4】図1のコンピュータシステムを用いたプログラ
ムの動作確認の為のテストプログラム側フローチャー
ト。FIG. 4 is a test program side flowchart for confirming the operation of a program using the computer system of FIG.
【図5】図4のテストプログラムの補助として、IRQ
の割込信号が演算部に入力された時に演算部で実行する
割込みプログラム側フローチャート。5 is an IRQ to assist the test program of FIG.
3 is a flowchart of an interrupt program executed by the arithmetic unit when the interrupt signal of 1 is input to the arithmetic unit.
1…演算部、7…アクセスディテクトトラップ、10…
読み出し禁止ゲート、11…書き込み禁止ゲート、12
…メモリ、13…周辺I/O、17…アクセス禁止指定
部。1 ... Operation unit, 7 ... Access detect trap, 10 ...
Read inhibit gate, 11 ... Write inhibit gate, 12
... memory, 13 ... peripheral I / O, 17 ... access prohibition designation section.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 小林 光明 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Mitsuaki Kobayashi 5-2-1 Omika-cho, Hitachi-shi, Ibaraki Hitachi Ltd. Omika factory
Claims (7)
演算部から読み出し,書き込みされるスレーブ対象から
なるコンピュータシステムにおいて、前記演算部からの
アクセスが指定されたアクセス検出エリア内に含まれる
かを判定し、その判定結果を前記演算部に報告する手段
と、前記演算部から出力されるアクセスストローブを前
記スレーブ対象に与えるか否かを指定する手段と、前記
判定結果と前記指定内容から前記スレーブ対象に前記ア
クセスストローブを与えるか否かを判定実行する手段を
設けたことを特徴とするコンピュータシステムのアクセ
ス検出装置。1. In a computer system comprising an arithmetic unit for reading and writing and a slave target to be read and written from the arithmetic unit, it is determined whether an access from the arithmetic unit is included in a designated access detection area. Means for making a determination and reporting the result of the determination to the arithmetic unit; means for designating whether or not the access strobe output from the arithmetic unit is given to the slave target; and the slave based on the determination result and the designated content. An access detecting apparatus for a computer system, comprising means for determining and executing whether or not to give the access strobe to an object.
アを任意に指定できるコンピュータシステムのアクセス
検出装置。2. The access detection device according to claim 1, wherein the access detection area can be designated arbitrarily.
手段は、報告するか否かを任意に指定できるコンピュー
タシステムのアクセス検出装置。3. The access detection device of a computer system according to claim 1, wherein the means for reporting to the computing unit can arbitrarily designate whether or not to report.
アクセスストローブを前記スレーブ対象に与えるか否か
を指定する手段において前記演算部が読み出す時に出力
する読み出しストローブ、また前記演算部が書き込む時
に出力する書き込みストローブを前記スレーブ対象に与
えるか否かをそれぞれ任意に指定できるコンピュータシ
ステムのアクセス検出装置。4. A read strobe output when the arithmetic unit reads in the means for designating whether or not the access strobe output from the arithmetic unit according to claim 1 is given to the slave target, and a write strobe written by the arithmetic unit. An access detection device for a computer system capable of arbitrarily specifying whether or not to give a write strobe output at times to the slave target.
スストローブを与えるか否かを判定実行する手段におい
て前記演算部からのアクセスが前記アクセス検出エリア
に含まれない場合、前記スレーブ対象に前記アクセスス
トローブを与えるか否かの指定によらず、前記アクセス
ストローブを前記スレーブ対象に与えるコンピュータシ
ステムのアクセス検出装置。5. The access to the slave target if the access from the operation unit is not included in the access detection area in the means for determining whether or not to give the access strobe to the slave target according to claim 1. An access detection device for a computer system that gives the access strobe to the slave target regardless of whether or not a strobe is given.
スストローブを与えるか否かを判定実行する手段におい
て前記演算部からのアクセスが前記アクセス検出エリア
に含まれる場合で前記スレーブ対象に前記アクセススト
ローブを与える指定をした時は前記アクセスストローブ
を前記スレーブ対象に与えるコンピュータシステムのア
クセス検出装置。6. The access strobe for the slave target when the access from the arithmetic unit is included in the means for determining whether or not the access strobe is given to the slave target according to claim 1. An access detecting device of a computer system for giving the access strobe to the slave target when the designation is given.
スストローブを与えるか否かを判定実行する手段におい
て前記演算部からのアクセスが前記アクセス検出エリア
に含まれる場合で前記スレーブ対象に前記アクセススト
ローブを与えない指定をした時は前記アクセスストロー
ブを前記スレーブ対象に与えないコンピュータシステム
のアクセス検出装置。7. The access strobe for the slave target in the case where the access from the arithmetic unit is included in the means for determining whether to give the access strobe to the slave target according to claim 1. An access detection device of a computer system which does not give the access strobe to the slave target when the designation is made not to give.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5111391A JPH06324910A (en) | 1993-05-13 | 1993-05-13 | Access detector for computer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5111391A JPH06324910A (en) | 1993-05-13 | 1993-05-13 | Access detector for computer system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06324910A true JPH06324910A (en) | 1994-11-25 |
Family
ID=14559982
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5111391A Pending JPH06324910A (en) | 1993-05-13 | 1993-05-13 | Access detector for computer system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06324910A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005528686A (en) * | 2002-05-31 | 2005-09-22 | アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド | Trusted client using high security kernel in high security execution mode |
| JP2012203698A (en) * | 2011-03-25 | 2012-10-22 | Toshiba Corp | Information processor and multi-core system |
-
1993
- 1993-05-13 JP JP5111391A patent/JPH06324910A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005528686A (en) * | 2002-05-31 | 2005-09-22 | アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド | Trusted client using high security kernel in high security execution mode |
| JP2012203698A (en) * | 2011-03-25 | 2012-10-22 | Toshiba Corp | Information processor and multi-core system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100298620B1 (en) | System for controlling access to a register mapped to an i/o address space of a computer system | |
| US5657445A (en) | Apparatus and method for limiting access to mass storage devices in a computer system | |
| US20140359183A1 (en) | Snoop-Based Kernel Integrity Monitoring Apparatus And Method Thereof | |
| CN107958164A (en) | Control device | |
| US5701486A (en) | Tracing technique for application programs using protect mode addressing | |
| JP3711871B2 (en) | PCI bus failure analysis method | |
| US6917991B2 (en) | Method of and system for efficiently tracking memory access by direct memory access controller | |
| CN110133624B (en) | Unmanned driving abnormity detection method, device, equipment and medium | |
| JPS59231800A (en) | Preventing device for foul writing to main memory | |
| JPH05265864A (en) | Memory management circuit and processor unit with memory management circuit | |
| CN1173266C (en) | Startup virus detection method | |
| JP2870202B2 (en) | Method and apparatus for mutual monitoring between processors | |
| JPH06202957A (en) | Memory protecting device | |
| JPS61279940A (en) | Fault detector for computer | |
| JPS5898900A (en) | Microprocessor controlling system | |
| JP3190694B2 (en) | Diagnostic method for local memory | |
| JPH05324482A (en) | Information processor | |
| JPS61228544A (en) | Write protection system | |
| JPH06236300A (en) | Microcomputer | |
| JPH0546485A (en) | Storage controller | |
| JPH06149681A (en) | Circuit and method for protecting hard disk and floppy disk from computer virus | |
| JPS63129440A (en) | Store through buffer device | |
| JPH03109652A (en) | data processing equipment | |
| JPS6046745B2 (en) | Memory access method | |
| JPH01229335A (en) | Computer system |