JPH0336650A - Memory protecting system - Google Patents
Memory protecting systemInfo
- Publication number
- JPH0336650A JPH0336650A JP1169819A JP16981989A JPH0336650A JP H0336650 A JPH0336650 A JP H0336650A JP 1169819 A JP1169819 A JP 1169819A JP 16981989 A JP16981989 A JP 16981989A JP H0336650 A JPH0336650 A JP H0336650A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- data
- buffer
- key
- 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
- 238000000034 method Methods 0.000 claims description 6
- 230000005856 abnormality Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は入出力装置からメモリへのデータ転送において
、該データ転送バッファがプログラム誤りにより破壊さ
れることを防止するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention prevents a data transfer buffer from being destroyed due to a program error during data transfer from an input/output device to a memory.
従来の方式は特開昭62−191950号公報に記載の
ように、メモリ内に記憶されている任意のデータをDM
Aコントローラのアクセスから保護するものである。The conventional method, as described in Japanese Patent Application Laid-open No. 191950/1983, is to DM any data stored in the memory.
This is to protect it from access by the A controller.
CPUの介入なしで、システムバスを利用して入出力装
置とメモリ間で直接にデータの転送を行うデータ転送方
式では、入出力装置からメモリへのデータ転送中に、並
列して走行しているプログラムにより、既に転送液のデ
ータが破壊された場合でも、その原因がプログラム誤り
によるものか、データ転送動作異常によるものかの判断
が困難である。前記特開昭62−191950号公報の
方式では、DMA動作異常に対する特定メモリ領域の保
護は可能であるが、プログラム誤りによる。In the data transfer method, which uses the system bus to directly transfer data between input/output devices and memory without CPU intervention, two devices are running in parallel while data is being transferred from the input/output device to memory. Even if the data in the transfer liquid has already been destroyed by the program, it is difficult to determine whether the cause is a program error or an abnormality in the data transfer operation. Although the method disclosed in Japanese Patent Application Laid-Open No. 62-191950 can protect a specific memory area against DMA operation abnormalities, this is due to program errors.
DMA転送領域の破壊は検出できない。Destruction of the DMA transfer area cannot be detected.
本発明の目的は、データ転送中のプログラム誤りによる
転送データ破壊を防止することにある。An object of the present invention is to prevent data from being destroyed due to program errors during data transfer.
上記目的は、メモリ上のデータ転送バッファに優先の保
護キーを設け、データ転送コントローラ以外からの書き
込み要求が発生した場合は、書き込みを禁止することに
より達成される。The above object is achieved by providing a priority protection key in the data transfer buffer on the memory and prohibiting writing when a write request is generated from a source other than the data transfer controller.
一定のメモリ空間ごとに付与した保護キーには優先と非
優先のクラスがあり、書き込み要求時の書き込みキーと
、この保護キーとの照合により書き込み許可/禁止を決
定している0本発明ではメモリ上のデータ転送バッファ
に優先の保護キーを設け、データ転送コントローラから
のデータ書き込みの場合は優先書き込みキーを、一般の
プログラムからのデータ書き込みの場合は非優先書き込
みを行うことにより、プログラムの誤りによりデータ転
送バッファに書き込み要求が発生しても、書き込みキー
と保護キーの不一致により要求を禁止できる。There are priority and non-priority classes of protection keys assigned to each fixed memory space, and write permission/prohibition is determined by comparing the write key at the time of a write request with this protection key. By setting a priority protection key in the data transfer buffer above, and using the priority write key when writing data from the data transfer controller, and performing non-priority writing when writing data from a general program, it is possible to prevent errors in the program from occurring. Even if a write request occurs in the data transfer buffer, the request can be prohibited due to a mismatch between the write key and the protection key.
以下、本発明の一実施例を第1図により説明する。第1
図は1本発明の実施例に係るDMA方式の構成を示す部
分ブロック図である。1はCPUと同様なメモリを直接
アクセス可能なりMAコントローラであり、2はDMA
コントローラlによってアクセスすることが可能な記憶
装置(メモリ)である、この記憶装置1(メモリ)2に
一定間隔ごとにメモリ保護キー3を設け、記憶装置(メ
モリ)lの初期設定時に通常バッファには′o′データ
を、DMAにより書込むバッファには11′データを書
込んでおく、4はバッファ回路であり内部アドレスバス
5およびWRITE信号線6と外部アドレスバス7およ
び外部WRITE信号線8との接続を制御する機能を有
する。9はREAD信号線13とアドレスバス14によ
りデータバス10に読出されたメモリ保護キーと、信号
線11により出力されたメモリ書込みキーをA N l
)回路12により出力したイネーブル信号線であり、バ
ッファ回路4の人力制御信号となる。13は割込回路で
あり、データバス10のメモリ保護キーと信号線11の
メモリ書込みキーのNAND回路14とA N D I
Elj路15の出力が入力される。An embodiment of the present invention will be described below with reference to FIG. 1st
FIG. 1 is a partial block diagram showing the configuration of a DMA system according to an embodiment of the present invention. 1 is an MA controller that can directly access memory similar to the CPU, and 2 is a DMA controller.
This storage device 1 (memory) 2, which is a storage device (memory) that can be accessed by the controller l, is provided with memory protection keys 3 at regular intervals, and when the storage device (memory) l is initialized, it is stored in a normal buffer. 'o' data is written in the buffer to be written by DMA, and '11' data is written in the buffer to be written by DMA. 4 is a buffer circuit which connects the internal address bus 5, the WRITE signal line 6, the external address bus 7 and the external WRITE signal line 8. It has the function of controlling the connection of 9 indicates the memory protection key read out to the data bus 10 through the READ signal line 13 and the address bus 14, and the memory write key outputted through the signal line 11.
) This is an enable signal line output by the circuit 12, and serves as a manual control signal for the buffer circuit 4. 13 is an interrupt circuit that connects the memory protection key of the data bus 10 and the memory write key of the signal line 11 with a NAND circuit 14;
The output of Elj path 15 is input.
次に第1図を参照しながら、本発明の実施例回路の動作
について説明する。DMA転送要求が発生すると、まず
DMAコントローラ1がら記憶装置i!(メモリ)2ヘ
メモリ保護キー3をアクセスするためREAD信号線1
3とアドレスバス14にそれぞれREAD信号とアドレ
ス信号が送出され。Next, the operation of the embodiment circuit of the present invention will be explained with reference to FIG. When a DMA transfer request occurs, the DMA controller 1 first transfers the storage device i! READ signal line 1 to access memory protection key 3 to (memory) 2
A READ signal and an address signal are sent to the address bus 14 and address bus 14, respectively.
その結果としてデータバス10にメモリ保護キーが出力
される。またI)MAコントローラ1は同時にアドレス
バス5にデータ書込みバッファのアドレス信号、WRI
TE信号線6にWRITE信号。As a result, a memory protection key is output onto the data bus 10. Also, I) MA controller 1 simultaneously sends the data write buffer address signal to address bus 5, WRI
WRITE signal on TE signal line 6.
および信号線11にメモリ書込みキーを出力する。And a memory write key is output to the signal line 11.
AND回路12はデータバス10のメモリ保護キーと信
号線11のメモリ書込みキーを入力し。The AND circuit 12 inputs the memory protection key of the data bus 10 and the memory write key of the signal line 11.
AND結果がハイレベル(1)となった場合はバッファ
回路4にイネーブル信号線9を介してイネーブル信号を
出力することによりバッファ回路4を開かせ、アドレス
バス5およびWRITE信号線6は外部アドレスバス7
および外部WRITF。If the AND result is high level (1), the buffer circuit 4 is opened by outputting an enable signal to the buffer circuit 4 via the enable signal line 9, and the address bus 5 and WRITE signal line 6 are connected to the external address bus. 7
and external WRITF.
信号線8に接続され記憶装置!(メモリ)2をアクセス
できる。一方、DMAコントローラ1から記憶装f!(
メモリ)2の通常バッファへデータを書込もうとした場
合は、AND回路12に入力されたデータバス10のメ
モリ保護キーと信号線11のメモリ書込みキーの出力結
果がローレベル(0)となり、バッファ回路4にイネー
ブル信号線9を介してイネーブル信号が出力されない、
このためバッファ回路4が開かれずDMAコントローラ
1は記憶装f!(メモリ)2をアクセスすることができ
ない、また、このときデータバス10のメモリ保護キー
と信号線11のメモリ書込みキーをNAND回路14と
AND回路15に入力させることにより1割込回路16
を介してCPUへ割込信号を出力することができる。A storage device connected to signal line 8! (Memory) 2 can be accessed. On the other hand, from the DMA controller 1 to the storage device f! (
When attempting to write data to the normal buffer of memory) 2, the output result of the memory protection key of the data bus 10 input to the AND circuit 12 and the memory write key of the signal line 11 becomes low level (0), No enable signal is output to the buffer circuit 4 via the enable signal line 9;
Therefore, the buffer circuit 4 is not opened and the DMA controller 1 is in the storage device f! (Memory) 2 cannot be accessed, and at this time, by inputting the memory protection key of the data bus 10 and the memory write key of the signal line 11 to the NAND circuit 14 and the AND circuit 15, the 1 interrupt circuit 16
An interrupt signal can be output to the CPU via.
以上1本実施例によれば、DMA方式時のデータ書込み
バッファのアドレス指定誤りによる記憶装置!(メモリ
)上のデータ破壊を防止でき、かつ、割込み信号の情報
によりプログラム誤りの探索が容勧となる。According to the above-mentioned first embodiment, the storage device due to an error in addressing the data write buffer in the DMA method! It is possible to prevent data corruption on (memory), and it is recommended to search for program errors using the information of the interrupt signal.
以上のように本発明によれば、DMA方式による入出力
装置からメモリへのデータ転送中にデータ転送バッファ
のデータ破壊が発生した場合、プログラム誤りによるも
のか、または、それ以外の要因によるものかの判別が一
目瞭然で行え、データ破壊要因の解析時間を大幅に短縮
することが可能となる。As described above, according to the present invention, when data corruption in the data transfer buffer occurs during data transfer from an input/output device to memory using the DMA method, it is possible to determine whether it is due to a program error or other factors. It is possible to make the determination at a glance, and the time required to analyze the cause of data corruption can be significantly shortened.
第1図は本発明の一実施例を示すDMA方式を採用した
システム構成図である。
1・・・DMAコントローラ、2・・・メモリ、3・・
・メモリ保護キー、4・・バッファ回路、5,7・・・
アドレスバス、6,8,9,10,11.13・・・デ
ータバス、12.15・・・AND回路、14・・・N
AND回路、16・・・割込み回路。FIG. 1 is a diagram showing the configuration of a system employing a DMA method, showing one embodiment of the present invention. 1...DMA controller, 2...memory, 3...
・Memory protection key, 4...Buffer circuit, 5, 7...
Address bus, 6, 8, 9, 10, 11.13...Data bus, 12.15...AND circuit, 14...N
AND circuit, 16... interrupt circuit.
Claims (1)
記メモリ上のデータ受信バッファに通常のメモリより優
先保護するメモリ保護キーを設けることにより、該デー
タ受信バッファの並列走行中プログラムでの破壊を防止
することを特徴とするメモリ保護方式。1. During data transfer from the input/output device to the memory, by providing a memory protection key that protects the data receiving buffer on the memory with priority over normal memory, it prevents the data receiving buffer from being destroyed by a program running in parallel. A memory protection method that is characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1169819A JPH0336650A (en) | 1989-07-03 | 1989-07-03 | Memory protecting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1169819A JPH0336650A (en) | 1989-07-03 | 1989-07-03 | Memory protecting system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0336650A true JPH0336650A (en) | 1991-02-18 |
Family
ID=15893488
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1169819A Pending JPH0336650A (en) | 1989-07-03 | 1989-07-03 | Memory protecting system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0336650A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100397338B1 (en) * | 1998-10-16 | 2005-05-24 | 엘지전자 주식회사 | Write-Protect Buffer Circuit for Stabilization of Initial Values in Motherboard Mounting |
-
1989
- 1989-07-03 JP JP1169819A patent/JPH0336650A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100397338B1 (en) * | 1998-10-16 | 2005-05-24 | 엘지전자 주식회사 | Write-Protect Buffer Circuit for Stabilization of Initial Values in Motherboard Mounting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070255872A1 (en) | Bus system and semiconductor integrated circuit | |
JPH0336650A (en) | Memory protecting system | |
JPS59214952A (en) | Processing system of fault | |
JPH01106150A (en) | Protection system for local memory | |
JPH11126173A (en) | Memory access controller and storage medium therefor | |
US11455248B2 (en) | Semiconductor device capable of performing software lock-step | |
JPS6329859A (en) | Memory protection circuit | |
JPH0635747A (en) | Debug supporting device | |
JP2904266B2 (en) | Memory connection controller that can cope with bus degradation | |
JP2000207235A (en) | Information processor | |
JPH02176843A (en) | Dma controller | |
JP3012402B2 (en) | Information processing system | |
JPH02302855A (en) | Memory control system | |
JPS5914316A (en) | Protecting controller | |
JPH11110210A (en) | Expanded bios protection system | |
JP2008242592A (en) | Memory monitoring circuit, information processing apparatus and memory monitoring method | |
JPS60120451A (en) | Memory protection in unit of word | |
JPH05241966A (en) | Memory controller | |
JPH0390946A (en) | Storage device | |
JPH01219933A (en) | Bus window circuit | |
JPH0215353A (en) | Abnormality setting system at specific address | |
JPH0480860A (en) | Program loading system | |
JPS60246450A (en) | Memory protecting device | |
JPH02103650A (en) | Data processor | |
JPH03185547A (en) | Memory control device |