JPH05134929A - Data access control system - Google Patents

Data access control system

Info

Publication number
JPH05134929A
JPH05134929A JP3295401A JP29540191A JPH05134929A JP H05134929 A JPH05134929 A JP H05134929A JP 3295401 A JP3295401 A JP 3295401A JP 29540191 A JP29540191 A JP 29540191A JP H05134929 A JPH05134929 A JP H05134929A
Authority
JP
Japan
Prior art keywords
area
data
program
address
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3295401A
Other languages
Japanese (ja)
Inventor
Yasuko Otsuka
泰子 大塚
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3295401A priority Critical patent/JPH05134929A/en
Publication of JPH05134929A publication Critical patent/JPH05134929A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a data access control system which never breaks the data area of a memory. CONSTITUTION:The program address area included in a program area 3 is stored in a register memory 5 together with the data address area included in a data area 4. A comparison check circuit 6 checks the program address area and the data address area stored in the memory 5 and the program address and the data address informed from a CPU 2 when a write instruction is carried out. If the write data address is included in the data address area, the data are written into the area 4 from the CPU 2. If the write data address is not included in the data address area, the occurrence of a program fault is reported to the CPU 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データアクセス制御方
式に関し、特に、メモリ上のデータ破壊を防止すること
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data access control system, and more particularly to preventing data destruction on a memory.

【0002】[0002]

【従来の技術】従来、この種のデータアクセス制御方式
は、メモリ上のデータ領域を全ての書き込み命令実行時
において、書き込み可能となっていた。
2. Description of the Related Art Conventionally, in this type of data access control method, a data area on a memory can be written when all write instructions are executed.

【0003】[0003]

【発明が解決しようとする課題】この従来のデータアク
セス制御方式においては、書き込み命令により、全ての
メモリ上のデータ領域に書き込みができるため、プログ
ラムの障害が発生した場合、本来書き込んではならない
メモリ上のデータ領域に書き込んでしまうことが起こ
り、プログラムの障害が発生したことを認識できずに、
メモリ上のデータ領域を破壊してしまうという問題点が
あった。
In this conventional data access control method, since a write command can write to the data areas on all the memories, when a program failure occurs, the data on the memory which should not be written is originally written. It happens that data is written in the data area of, and the failure of the program cannot be recognized,
There was a problem that the data area on the memory was destroyed.

【0004】本発明の目的は、メモリ上のデータ領域を
破壊しないようにしたデータアクセス制御方式を提供す
ることにある。
It is an object of the present invention to provide a data access control system which does not destroy the data area on the memory.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、プログラム領域及びデータ領域で構成さ
れたメモリと、中央処理装置と、プログラム領域中にあ
るプログラムアドレス領域と、プログラムにしたがって
書き込みを行うデータ領域中のデータアドレス領域とを
記憶する登録メモリと、プログラム領域中の書き込み命
令が存在するプログラムアドレスと、登録メモリに記憶
してあるプログラムアドレス領域との比較チェックを行
い、かつ、命令により書き込むデータアドレスと、登録
メモリに記憶してあるデータアドレス領域との比較チェ
ックを行う比較チェック回路とを設けたものである。
In order to achieve the above object, the present invention provides a memory comprising a program area and a data area, a central processing unit, a program address area in the program area, and a program. Therefore, a comparison check is performed between the registered memory that stores the data address area in the data area to be written, the program address where the write command exists in the program area, and the program address area stored in the registered memory, and , A comparison check circuit for performing a comparison check of the data address written by the instruction and the data address area stored in the registered memory.

【0006】[0006]

【実施例】以下、本発明について、図面を参照して説明
する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0007】図1は、本発明の一実施例の構成図であ
る。図2は、本発明の一実施例のメモリマップである。
図1及び図2に示すように、本発明の一実施例は、プロ
グラム領域3及びデータ領域4で構成されたメモリ1
と、中央処理装置(以下、CPUと称す。)2と、プロ
グラム領域3中にあるプログラムアドレス領域と、プロ
グラムにしたがって書き込みを行うデータ領域4中のデ
ータアドレス領域とを記憶する登録メモリ5と、プログ
ラム領域3中の書き込み命令が存在するプログラムアド
レスと、登録メモリ5に記憶してあるプログラムアドレ
ス領域7との比較チェックを行い、かつ、命令により書
き込むデータアドレスと、登録メモリ5に記憶してある
データアドレス領域8との比較チェックを行う比較チェ
ック回路6とから構成されている。
FIG. 1 is a block diagram of an embodiment of the present invention. FIG. 2 is a memory map of one embodiment of the present invention.
As shown in FIGS. 1 and 2, one embodiment of the present invention is a memory 1 including a program area 3 and a data area 4.
A central processing unit (hereinafter referred to as CPU) 2, a program address area in a program area 3, and a registration memory 5 for storing a data address area in a data area 4 to be written according to a program, A comparison check is performed between the program address in the program area 3 where the write command exists and the program address area 7 stored in the registration memory 5, and the data address to be written by the command is stored in the registration memory 5. It is composed of a comparison check circuit 6 for performing a comparison check with the data address area 8.

【0008】次に、図1及び図2を用いて、本発明の一
実施例の動作を説明する。初めに、CPU2がプログラ
ム領域3中にあるプログラムアドレス領域と、プログラ
ムにしたがって書き込みを行うデータ領域4中のデータ
アドレス領域を登録メモリ5に記憶させておき、プログ
ラム領域3中の命令実行により、データ領域4に対して
書き込みが行われた場合、命令実行時のプログラムアド
レスを比較チェック回路6へ通知する。
Next, the operation of one embodiment of the present invention will be described with reference to FIGS. First, the CPU 2 stores the program address area in the program area 3 and the data address area in the data area 4 to be written according to the program in the registration memory 5, and the data is executed by executing the instruction in the program area 3. When the area 4 is written, the comparison check circuit 6 is notified of the program address at the time of executing the instruction.

【0009】比較チェック回路6は、登録メモリ5上に
記憶してあるプログラムアドレス領域7及びデータアド
レス領域8とCPU2より通知された書き込み命令実行
時のプログラムアドレス及びデータアドレスのチェック
を行い、各アドレス領域のチェック結果により、書き込
みデータアドレスがデータアドレス領域8内にあるなら
ば、CPU2からデータ領域4にデータを書き込み、書
き込みデータアドレスがデータアドレス領域8内になけ
れば、プログラムの障害が発生したことをCPU2へ通
知する。このように、本実施例により、データ書き込み
時、メモリ上のデータ破壊を防止し、また、プログラム
障害が発生したことを瞬時に通知し得るものである。
The comparison check circuit 6 checks the program address area 7 and the data address area 8 stored in the registration memory 5 and the program address and the data address at the time of execution of the write command notified from the CPU 2, and checks each address. According to the area check result, if the write data address is in the data address area 8, data is written from the CPU 2 to the data area 4, and if the write data address is not in the data address area 8, a program failure has occurred. Is notified to the CPU 2. As described above, according to this embodiment, at the time of writing data, it is possible to prevent the data from being destroyed in the memory and to instantly notify that the program failure has occurred.

【0010】[0010]

【発明の効果】以上説明したように、本発明は、アドレ
ス管理を行うことにより、書き込みデータアドレスが、
登録メモリ上に記憶してあるデータアドレス領域内にあ
れば、データ領域にデータを書き込み、書き込みデータ
アドレスが、登録メモリ上に記憶してあるデータアドレ
ス領域内になければ、データ領域にデータの書き込みを
行わないので、メモリ上のデータ破壊を防止するという
効果と、命令を受け付けられないことをCPUに通知す
ることで、瞬時にプログラムの障害が発生したことを認
識できるという効果が得られる。
As described above, according to the present invention, by performing address management, the write data address is
If it is in the data address area stored in the registration memory, write the data in the data area. If the write data address is not in the data address area stored in the registration memory, write the data in the data area. Since the above is not performed, the effect of preventing the data destruction on the memory and the effect of notifying the CPU that the instruction cannot be accepted can be recognized that the program failure has occurred instantly.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】本発明の一実施例のメモリマップである。FIG. 2 is a memory map of one embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 メモリ 2 中央処理装置 3 プログラム領域 4 データ領域 5 登録メモリ 6 比較チェック回路 7 プログラムアドレス領域 8 データアドレス領域 1 Memory 2 Central Processing Unit 3 Program Area 4 Data Area 5 Registered Memory 6 Comparison Check Circuit 7 Program Address Area 8 Data Address Area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プログラム領域及びデータ領域で構成され
たメモリと、中央処理装置と、プログラム領域中にある
プログラムアドレス領域と、プログラムにしたがって書
き込みを行うデータ領域中のデータアドレス領域とを記
憶する登録メモリと、プログラム領域中の書き込み命令
が存在するプログラムアドレスと、登録メモリに記憶し
てあるプログラムアドレス領域との比較チェックを行
い、かつ、命令により書き込むデータアドレスと、登録
メモリに記憶してあるデータアドレス領域との比較チェ
ックを行う比較チェック回路とを設けたことを特徴とす
るデータアクセス制御方式。
1. A registration for storing a memory composed of a program area and a data area, a central processing unit, a program address area in the program area, and a data address area in the data area to be written according to a program. The memory and the program address where the write command exists in the program area and the program address area stored in the registered memory are compared and checked, and the data address written by the instruction and the data stored in the registered memory A data access control method comprising a comparison check circuit for performing a comparison check with an address area.
JP3295401A 1991-11-12 1991-11-12 Data access control system Pending JPH05134929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3295401A JPH05134929A (en) 1991-11-12 1991-11-12 Data access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3295401A JPH05134929A (en) 1991-11-12 1991-11-12 Data access control system

Publications (1)

Publication Number Publication Date
JPH05134929A true JPH05134929A (en) 1993-06-01

Family

ID=17820137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3295401A Pending JPH05134929A (en) 1991-11-12 1991-11-12 Data access control system

Country Status (1)

Country Link
JP (1) JPH05134929A (en)

Similar Documents

Publication Publication Date Title
JPH05134929A (en) Data access control system
JPH09198258A (en) Task stack overflow detecting circuit
JPH05100847A (en) Memory protection system for information processor
JPH05282209A (en) Data access controller
JPS6127778B2 (en)
JPH06309236A (en) Illegal write detecting circuit for memory
JPH02278446A (en) Memory access control circuit
JPH0484224A (en) Stack area protection circuit
JPS6234262A (en) Access system for nonvolatile memory
JPS6228836A (en) Miswriting preventing circuit
JPH0480860A (en) Program loading system
JPH04296954A (en) Memory system
JPS61228544A (en) Write protection system
JPH01113845A (en) Program protecting system
JPH0644145A (en) Memory error saving system
JPH02293936A (en) Program protecting system
JPH05173886A (en) Writing device
JP2001202202A (en) Disk controller and recording medium with recorded program
JPS63303446A (en) Information processor
JPH04367955A (en) Memory protecting system
JPS6134650A (en) Storage device
JPH0667988A (en) Semiconductor memory with ras function
JPH08123734A (en) Methods for checking occurrence of data destruction in data storing area and program runaway and methods for searching causes of data destruction occurrence and program runaway
JPH03158927A (en) Program processor
JPH01300357A (en) Electronic disk device