JPH1063526A - Memory device - Google Patents

Memory device

Info

Publication number
JPH1063526A
JPH1063526A JP8221020A JP22102096A JPH1063526A JP H1063526 A JPH1063526 A JP H1063526A JP 8221020 A JP8221020 A JP 8221020A JP 22102096 A JP22102096 A JP 22102096A JP H1063526 A JPH1063526 A JP H1063526A
Authority
JP
Japan
Prior art keywords
rom
address
program
area
ram
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
JP8221020A
Other languages
Japanese (ja)
Inventor
Yukio Kobayashi
幸夫 小林
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP8221020A priority Critical patent/JPH1063526A/en
Publication of JPH1063526A publication Critical patent/JPH1063526A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make the device small in size advantageously by writing a start instruction entirely in a free area, thereby unnecessitating an address detecting circuit on a bus line. SOLUTION: A microprocessor system consisting principally of a microprocessor (CPU) 1 is so constituted that the CPU 1, a ROM 2 including a program area, a RAM 3 and an input/output interface (I/O) 5 are connected by a bus line (BUS) 4. In the memory area, a characteristic address space is provided. This address space consists of the ROM 2 and RAM 3; and a program (software and fixed data) is stored in the ROM 2, and the RAM 3 is assigned as a buffer, a work area, etc. Then the restart instruction for the program is written entirely in the free area of the ROM 2. Thus, the restart instruction is written entirely in the free area of the ROM 2 to eliminate the free area, and the possibility of illegal address access is eliminate.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はメモリー装置に関
し、特にマイクロプロセッサのメモリー装置の不正アド
レスアクセス防止方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory device, and more particularly, to a method for preventing unauthorized address access of a memory device of a microprocessor.

【0002】[0002]

【従来の技術】テレビジョン(ラジオ)放送局の自動番
組制御装置や、通信制御装置、表示制御装置等には、マ
イクロプロセッサを使用したファームウエアに近いコン
ピュータシステムが用いられる。
2. Description of the Related Art A computer system similar to firmware using a microprocessor is used for an automatic program control device, a communication control device, a display control device and the like of a television (radio) broadcasting station.

【0003】図4に示すマイクロプロセッサ(CPU)
1を主体とするマイクロプロセッサシステムの場合は、
CPU1、プログラムエリアを含むROM(リードオン
リーメモリー)2、RAM(ランダムアクセスメモリ
ー)3、及び入出力インタフェース(I/O)5をバス
ライン(BUS)4で結ぶ構成になる。
A microprocessor (CPU) shown in FIG.
In the case of a microprocessor system mainly composed of
The configuration is such that a CPU 1, a ROM (read only memory) 2 including a program area, a RAM (random access memory) 3, and an input / output interface (I / O) 5 are connected by a bus line (BUS) 4.

【0004】この場合、(制御)プログラムはROM2
に書き込まれるが、少なくともいくらかは空きエリアが
残る。
In this case, the (control) program is stored in the ROM 2
, But at least some empty areas remain.

【0005】RAM3はワーキングメモリーとして、作
業データ等が記録される。
[0005] The RAM 3 stores working data and the like as a working memory.

【0006】ROM2の空きエリアには何も書き込まれ
ていないので、この空きエリアに対応するアドレスをア
クセスすることは意味がないし、このようなことは起こ
らないはずである。しかし、プログラム(ソフトウエ
ア)にバグがあったり、またバグはなくてもパルス性の
ノイズで、誤って空きエリアのアドレスをアクセスして
しまうことは珍しいことではない。この空きエリアを誤
ってアクセスすることを不正アドレスアクセスと呼ぶ。
Since nothing is written in the free area of the ROM 2, it is meaningless to access an address corresponding to the free area, and such a situation should not occur. However, it is not unusual for a program (software) to have a bug or to access a free area address by mistake due to pulse noise even if there is no bug. Accidentally accessing this free area is called illegal address access.

【0007】不正アドレスアクセスがあると、意味のな
いデータが読み出されることになるので、一般にはCP
U1が停止することになる。
[0007] If there is an illegal address access, meaningless data will be read out.
U1 will stop.

【0008】この不正アドレスアクセスを防ぐ方法とし
ては、特開平6−164685号公報及び特開平4−0
21040号公報に、アドレスバスあるいはバスライン
上の不正アドレスへのアクセスを監視し、不正アドレス
アクセスを検出して処理する方法が提案されている。
As a method for preventing this unauthorized address access, Japanese Patent Application Laid-Open Nos. 6-164885 and 4-0
Japanese Patent Publication No. 21040 proposes a method of monitoring access to an illegal address on an address bus or a bus line, and detecting and processing the illegal address access.

【0009】図4においては、不正アドレスアクセスが
発生すると、I/O5を介して不正アドレスアクセス信
号6が出力される。
In FIG. 4, when an illegal address access occurs, an illegal address access signal 6 is output via the I / O 5.

【0010】[0010]

【発明が解決しようとする課題】特開平6−16468
5号公報あるいは特開平4−021040号公報に記載
されている提案は、いずれもバスライン上の不正アドレ
スアクセスを検出する方法をとっているので、アドレス
検出回路が必要となって、装置の小型化の障害になって
いた。
Problems to be Solved by the Invention Japanese Patent Laid-Open No. 6-16468
No. 5 or Japanese Unexamined Patent Publication No. 4-021040 each employs a method of detecting an illegal address access on a bus line, so that an address detection circuit is required and the size of the device is reduced. Had become an obstacle to the transformation.

【0011】本発明の目的は、バスライン上のアドレス
検出回路を必要としない、マイクロプロセッサシステム
のメモリー装置を提供することである。
It is an object of the present invention to provide a memory device for a microprocessor system that does not require an address detection circuit on a bus line.

【0012】[0012]

【課題を解決するための手段】本発明によるマイクロプ
ロセッサを動作させるプログラムを収容するROMと、
前記ROMの空きエリアをアクセスしたとき不正アドレ
スアクセスとして出力する不正アドレスアクセス出力手
段とを含むマイクロプロセッサシステムのメモリー装置
は、前記ROMのすべての空きエリアに前記プログラム
のリスタート命令を書き込むことを特徴とする。
A ROM for storing a program for operating a microprocessor according to the present invention;
A memory device of the microprocessor system including an illegal address access output means for outputting as an illegal address access when the empty area of the ROM is accessed, wherein a restart instruction of the program is written in all empty areas of the ROM. And

【0013】本発明の作用は次の通りである。ROM2
の空きエリアにすべてリスタート命令(のアドレスをア
クセスする)データを書き込むことで、空きエリアをな
くし、不正アドレスアクセスの可能性をなくす。
The operation of the present invention is as follows. ROM2
By writing restart instruction (accessing the address of) data to all empty areas, empty areas are eliminated and the possibility of unauthorized address access is eliminated.

【0014】[0014]

【発明の実施の形態】以下に、本発明の実施例について
図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】図1は本発明によるメモリー装置の実施例
の構成を示すメモリーマップであり、図2〜4と同等部
分は同一符号にて示している。なお、重複する説明は省
略する。
FIG. 1 is a memory map showing a configuration of an embodiment of a memory device according to the present invention, and portions equivalent to those in FIGS. In addition, overlapping description is omitted.

【0016】図1において、メモリーエリア(装置)に
は、固有のアドレス空間(0番地からN番地)が設けら
れる。このアドレス空間はROM2とRAM3で構成さ
れ、プログラム(ソフトウエア)(及び固定データ)を
ROM2に、バッファやワーク等をRAM3に割り付け
る。
In FIG. 1, a unique address space (addresses 0 to N) is provided in a memory area (device). This address space is composed of a ROM 2 and a RAM 3, and a program (software) (and fixed data) is allocated to the ROM 2, and a buffer and a work are allocated to the RAM 3.

【0017】ここで、プログラムをROMエリアの(ア
ドレスの)0番地から(m−1)番地に格納したとする
と、m番地から(m+n)番地までが空きエリアとな
る。すなわち、この空きエリアに対応するm番地から
(m+n)番地にマイクロプロセッサ(CPU)1がア
クセスすると、不正アドレスアクセスとなる。
Here, assuming that the program is stored in addresses 0 to (m-1) of the ROM area (addresses), the area from address m to address (m + n) is an empty area. That is, when the microprocessor (CPU) 1 accesses the address (m + n) from the address m corresponding to the empty area, an illegal address access is performed.

【0018】このm番地から(m+n)番地までに、n
個のリスタート0命令を書き込んでおく。図2に示すよ
うに、もしm番地から(m+n)番地までにアクセスが
あった場合は、リスタート0命令(この例では、α番地
にジャンプして、そこからプログラムを実行する)が実
行され、α番地あるいはそれ以降の番地に書き込まれ
た、不正アドレスアクセスがあった場合の処理プログラ
ムが実行され、この時I/O5を介して不正アドレスア
クセス信号6が出力される。
From address m to address (m + n), n
The restart 0 instructions are written in advance. As shown in FIG. 2, if there is an access from address m to address (m + n), a restart 0 instruction (in this example, jump to address α and execute the program from there) is executed. , .Alpha. Or a subsequent address, the processing program for an illegal address access is executed. At this time, an illegal address access signal 6 is output via the I / O 5. FIG.

【0019】図3に示すように、不正アドレスアクセス
があると、リスタート0の命令が読み出され(ステップ
11)、α番地(リスタートアドレス)へジャンプし
て、不正アドレスアクセス信号6の出力ポートをレジス
タセット(ステップ12)し、不正アドレスアクセス信
号6を出力(ステップ13)して終了(ステップ14)
する。
As shown in FIG. 3, when there is an illegal address access, the instruction of restart 0 is read (step 11), jumping to address α (restart address), and outputting the illegal address access signal 6 The port is set in a register (step 12), an illegal address access signal 6 is output (step 13), and the process is terminated (step 14).
I do.

【0020】図1においては、空きエリアのすべてのア
ドレスに、同じリスタート命令が書き込まれているが、
プログラム格納エリアの他の主プログラム上のステップ
へジャンプする命令を書き込んでも良い。
In FIG. 1, the same restart instruction is written at all addresses in the empty area.
An instruction to jump to a step on another main program in the program storage area may be written.

【0021】図2においては、α番地(リスタートアド
レス)へジャンプした場合、不正アドレスアクセス処理
プログラムが動き出すように説明したが、単に主プログ
ラムの一つのステップへジャンプしても良い場合もある
(不正アドレスアクセス処理プログラムが不要とな
る)。
In FIG. 2, it has been described that when jumping to the address α (restart address), the illegal address access processing program starts running. However, in some cases, it may be possible to simply jump to one step of the main program ( An unauthorized address access processing program is not required).

【0022】[0022]

【発明の効果】以上説明したように本発明は、空きエリ
アのすべてにリスタート命令を書き込むことにより、バ
スライン上のアドレス検出回路を必要とせず、装置の小
型化に有利となる効果がある。
As described above, the present invention does not require an address detection circuit on a bus line by writing a restart instruction in all empty areas, and is advantageous in reducing the size of the device. .

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

【図1】本発明の実施例のメモリーマップである。FIG. 1 is a memory map according to an embodiment of the present invention.

【図2】リスタート命令の実行方法の説明図である。FIG. 2 is an explanatory diagram of a method of executing a restart instruction.

【図3】不正アドレスアクセス時のプログラム処理フロ
ーチャートである。
FIG. 3 is a flowchart of a program process when an illegal address is accessed.

【図4】本発明の関連するマイクロプロセッサシステム
のブロック図である。
FIG. 4 is a block diagram of a related microprocessor system of the present invention.

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

1 マイクロプロセッサ 2 ROM 3 RAM 4 バスライン 5 I/O 6 不正アドレスアクセス信号 DESCRIPTION OF SYMBOLS 1 Microprocessor 2 ROM 3 RAM 4 Bus line 5 I / O 6 Illegal address access signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 マイクロプロセッサを動作させるプログ
ラムを収容するROMと、前記ROMの空きエリアをア
クセスしたとき不正アドレスアクセスとして出力する不
正アドレスアクセス出力手段とを含むマイクロプロセッ
サシステムのメモリー装置であって、前記ROMのすべ
ての空きエリアに前記プログラムのリスタート命令を書
き込むことを特徴とするメモリー装置。
1. A memory device for a microprocessor system, comprising: a ROM accommodating a program for operating a microprocessor; and illegal address access output means for outputting an illegal address access when an empty area of the ROM is accessed, A memory device for writing a restart instruction of the program in all empty areas of the ROM.
【請求項2】 前記リスタート命令によりジャンプする
前記ROMのアドレスに不正アドレスアクセス処理プロ
グラムを格納してなることを特徴とする請求項1記載の
メモリー装置。
2. The memory device according to claim 1, wherein an illegal address access processing program is stored at an address of said ROM jumped by said restart instruction.
【請求項3】 前記リスタート命令によりジャンプする
前記ROMのアドレスが前記プログラムの一あるいは複
数のステップであることを特徴とする請求項1記載のメ
モリー装置。
3. The memory device according to claim 1, wherein an address of said ROM jumped by said restart instruction is one or a plurality of steps of said program.
JP8221020A 1996-08-22 1996-08-22 Memory device Pending JPH1063526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8221020A JPH1063526A (en) 1996-08-22 1996-08-22 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8221020A JPH1063526A (en) 1996-08-22 1996-08-22 Memory device

Publications (1)

Publication Number Publication Date
JPH1063526A true JPH1063526A (en) 1998-03-06

Family

ID=16760234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8221020A Pending JPH1063526A (en) 1996-08-22 1996-08-22 Memory device

Country Status (1)

Country Link
JP (1) JPH1063526A (en)

Similar Documents

Publication Publication Date Title
KR940004435A (en) Smart video memory for processing graphics / video and its processing method
JP3226055B2 (en) Information processing device
JPH08202563A (en) Computer system
US4095268A (en) System for stopping and restarting the operation of a data processor
JP3970609B2 (en) Processor system
JP2001075866A (en) Method for operating storage device, and storage device
US6880077B2 (en) Enabling communication between video BIOS and graphics drivers
KR100532417B1 (en) The low power consumption cache memory device of a digital signal processor and the control method of the cache memory device
JPH10198463A (en) Automatic operating condition setting circuit
JPH1063526A (en) Memory device
JP2797760B2 (en) Parallel processing computer system
EP0864983A2 (en) Computer system including memory adress management circuit for protecting memory from illegal writing
JPH1083367A (en) Peripheral device controller
JP4423849B2 (en) Data protection system, data protection program, and data protection method
JP3039391B2 (en) Memory system
JPS63120340A (en) Data processor
JP3127737B2 (en) Digital signal processor
JP2001306335A (en) Computer
US20030160773A1 (en) Microcomputer having OSD circuit, and bus control device and method
JP2000029508A (en) Programmable controller
JPH06309236A (en) Illegal write detecting circuit for memory
JPH06139084A (en) Information processor
JPH05120134A (en) Cache memory mounting system
JPH09160786A (en) Microprocessor
JPH07225691A (en) Device and method for interrupt processing

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20031125