JPS61264444A - Data processing system for central processing unit - Google Patents

Data processing system for central processing unit

Info

Publication number
JPS61264444A
JPS61264444A JP60107240A JP10724085A JPS61264444A JP S61264444 A JPS61264444 A JP S61264444A JP 60107240 A JP60107240 A JP 60107240A JP 10724085 A JP10724085 A JP 10724085A JP S61264444 A JPS61264444 A JP S61264444A
Authority
JP
Japan
Prior art keywords
memory
address
data
cpu
processing unit
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
JP60107240A
Other languages
Japanese (ja)
Inventor
Yasutaka Akita
秋田 康貴
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60107240A priority Critical patent/JPS61264444A/en
Publication of JPS61264444A publication Critical patent/JPS61264444A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the processing to reset a CPU in its normal state by utilizing the contents of a memory as the data having meaning even in case the CPU gives an access to a memory address where no program code exists owing to a malfunction. CONSTITUTION:The programs are stored in the memory addresses A-B in a program map shown here and no program code exists in the areas after the address B. Thus the normal types of EPROM are all set at '1'. In other words, the data (FF)16 is stored. In case a CPU gives an access to an area larger than the address B owing to a malfunction, the CPU executes the data (FF)16 in the form of an instruction code and has a jump to a memory address (3C)16. Here a processing routine is set previously in the address (3C)16 to reset the normal execution processing. This prevents the CPU runaway.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は中央処理装置の暴走を防止する次めに実施さ
れる中央処理装置のデータ処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing system for a central processing unit to be implemented next to prevent runaway of the central processing unit.

〔従来の技術〕[Conventional technology]

第3図は従来から使用されている計算機の中央処理装置
とプログラム格納用のリードオンリメモリとの関係を示
すブロック接続図であり、図において、1は中央処理装
置(以下CPUというン、2はリードオンリメモリ(以
下ROMという)、3はアドレスバス、4はデータバス
であり、CPU1とROM2とはアドレスバス3および
データバス4で結ばれている。
FIG. 3 is a block connection diagram showing the relationship between the central processing unit of a conventionally used computer and a read-only memory for storing programs. In the figure, 1 is the central processing unit (hereinafter referred to as CPU), and 2 is In the read-only memory (hereinafter referred to as ROM), 3 is an address bus, and 4 is a data bus, and the CPU 1 and ROM 2 are connected by the address bus 3 and the data bus 4.

次に動作について説明する。ROM 2にはCPU1に
よって実行されるべきプログラムが格納されており、C
PU1はアドレスバス3を介してメモリアドレスを出力
し、このアドレスにおけるROM2のプログラムコード
をデータバス4を介して取り込み、そのプログラムコー
ドの命令を解読し、実行する。
Next, the operation will be explained. ROM 2 stores programs to be executed by CPU 1, and C
The PU 1 outputs a memory address via the address bus 3, takes in the program code in the ROM 2 at this address via the data bus 4, decodes and executes the instructions of the program code.

17tXROM2に格納されているプログラムの大きさ
は、アクセス可能なアドレス空間内に納まりている。こ
のよりなROM2のメモリマツプの概念図を第4図に示
す。図において、28はプログラム本体の内容が書き込
まれているエリアであり、26は空きエリアでプログラ
ムコードとは無関係の無意味なデータが入っている。こ
こで、もし第3図のデータバス4が電源電圧にプルアッ
プされているとすると、データビットはすべて「1」と
なっているので、このデータは例えば(FFン1.とい
うような値にセットされる。
The size of the program stored in the 17tXROM2 falls within the accessible address space. A conceptual diagram of the memory map of the ROM 2 is shown in FIG. In the figure, 28 is an area where the contents of the program body are written, and 26 is an empty area that contains meaningless data unrelated to the program code. Here, if the data bus 4 in Figure 3 is pulled up to the power supply voltage, all the data bits are "1", so this data will have a value such as (FF n 1. Set.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のCPU1およびROM2を備え比データ処理方式
は以上のようであるので、もし外来ノイズなどが原因で
CPU1が上記プログラムコードの存在しないメモリア
ドレスをアクセスし几場合には、これが無意g@な命令
を解読し、実行することになってCPU1が正常に動作
しなくなり、暴走を引きおこすという問題点があつ友。
The conventional data processing method with CPU 1 and ROM 2 is as described above, so if CPU 1 accesses a memory address where the program code does not exist due to external noise etc., this will be an unexpected instruction. The problem is that the CPU 1 stops working properly when the code is decoded and executed, causing a runaway operation.

この発明は上記のような問題点を解消するためになされ
比もので、CPU1がプログラムコードの存在しないメ
モリアドレスをアクセスし、本来のプログラムの命令コ
ードではないデータをプログラムコードとして解読し、
実行しても、CPU1の暴走を阻止できるデータ処理方
式を得ることを目的とする。
This invention was made in order to solve the above-mentioned problems, and the CPU 1 accesses a memory address where no program code exists, decodes data that is not an instruction code of the original program as a program code,
It is an object of the present invention to obtain a data processing method that can prevent the CPU 1 from running out of control even when executed.

〔問題点を解決するための手段〕[Means for solving problems]

この発明にかかる中央処理装置のデータ処理方式は、こ
の中央処理装置がリードオンリメモリに格納されている
プログラムコードが存在するメモリアドレス以外の未書
込みアドレスを誤ってアクセスしたときに、このリード
オンリメモリによって一義的に決まる未書込み状態にお
ける出力データをプログラムコードとして上記中央処理
装置に解釈させ、これにより正常な処理に戻る九めのル
ーチンを実行させるようにし比ものである。
The data processing method of the central processing unit according to the present invention is such that when the central processing unit mistakenly accesses an unwritten address other than the memory address where the program code stored in the read-only memory exists, the read-only memory The output data in the unwritten state, which is uniquely determined by the above, is interpreted by the central processing unit as a program code, thereby causing the ninth routine to return to normal processing to be executed.

〔作用〕[Effect]

この発明における中央処理装置のデータ処理方式は、プ
ログラムコードが存在しないメモリアドレスをアクセス
し、このアドレスにおけるプログラムコードのデータを
意味を持つデータとして利用し、これにより中央処理装
置に正常に戻る之めのルーチンを実行させ、その中央処
理装置の暴走を防止するよりに作用する。
The data processing method of the central processing unit in this invention accesses a memory address where no program code exists, uses the data of the program code at this address as meaningful data, and thereby returns to the central processing unit normally. This function is to prevent the central processing unit from running out of control.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。なお
、この実施例については、既に説明し次第3図のブロッ
ク接続図のほか、第1図のプログラムマツプおよび第2
図のフローチャートについて述べる。また、この実施例
ではCPU1として8080系のものを使用する。第1
図におけるプログラムマツプでは、プログラムがメモリ
アドレスAからメモリアドレスBまで格納されている。
An embodiment of the present invention will be described below with reference to the drawings. Regarding this embodiment, as soon as it has been explained, in addition to the block connection diagram shown in Fig. 3, the program map shown in Fig. 1 and the
The flowchart in the figure will be described. Further, in this embodiment, an 8080 series CPU is used as the CPU 1. 1st
In the program map shown in the figure, programs are stored from memory address A to memory address B.

すなわち、メモリアドレス以外り大きいところでは、プ
ログラムコードは存在しないが、上記のよ5にデータバ
ス4が電源電圧にプリアップされていることにより、通
常のEPROMは正常に消去され几場合、曹込みのメモ
リデータ出力はすベテ「1」となる之め、CPU1はデ
ータビットをすべて「1」として認識することができ、
プログラムコードのないエリアには、すべて上記の(F
F)xsというデータが格納されていることになる。
In other words, there is no program code in a large area other than the memory address, but if the data bus 4 is pre-upped to the power supply voltage as described in 5 above, a normal EPROM can be erased normally. Since the memory data output of is completely ``1'', CPU 1 can recognize all data bits as ``1''.
All areas without program code should be filled with the above (F)
F) Data called xs is stored.

ここで、もしノイズなどが原因でアクセスされるべきア
ドレス値が変わり、上記の=5なメモリアドレスがBよ
り大きいプログラムコードの入っていなりエリアのアド
レスがアクセスされると、CPUは上記のような(FF
)xsというデータ命令コードとして実行する。(FF
)□、という命令コードは、例えば8080/8085
CPUではR8T7というニューモニツクコードに相当
し、ハードウェアインタラブト命令の1つである。この
命令コードによって、8080/8085CPUはメモ
リアドレス(3C)16をコールする。
Here, if the address value to be accessed changes due to noise, etc., and the above memory address = 5 contains a program code larger than B, and the address of the area is accessed, the CPU will (FF
)xs data instruction code. (FF
)□, the instruction code is, for example, 8080/8085.
In the CPU, this corresponds to a new mnemonic code called R8T7, and is one of the hardware interrupt instructions. This instruction code causes the 8080/8085 CPU to call memory address (3C) 16.

そこで、このCPUが命令コード(FF)1.を実行し
次場合、この命令をメモリアドレス(3C)1.へのジ
ャンプ命令として用いることを考え、プログラマがあら
かじめこの場所に変更される前の正規の実行処理に戻る
ような処理ルーチンを置けば暴走を阻止できる。
Therefore, this CPU has instruction code (FF) 1. Then, if you execute this instruction at memory address (3C) 1. If the programmer places a processing routine in advance that returns to the normal execution process before the change was made to this location, a runaway can be prevented.

次に、上記のような処理製作を第2図のフローチャート
で示す。第1図で示すようなメモリアドレスのプログラ
ムが実行されている途中に、ノイズなどによって変更さ
nたアドレス値がアクセスされ(このアドレス値はBよ
り大きいとする)、命令コード(FFLmが実行されて
(3C)□6にジャンプする(ステップ■〕。メモリア
ドレス(3C)1.にはあらかじめ正規の処理へ戻る之
めの処理ルーチンが置かれているので、CPU1はこの
処理ルーチンを実行しくステップ■ン、正規の処理に戻
る。
Next, the process and production as described above is shown in the flowchart of FIG. While the program at the memory address shown in Figure 1 is being executed, an address value that has been changed due to noise or the like is accessed (assuming that this address value is greater than B), and the instruction code (FFLm) is executed. (3C) □ 6 (step ■). Since a processing routine for returning to normal processing is placed in memory address (3C) 1 in advance, CPU 1 steps to execute this processing routine. ■ Return to normal processing.

なお、上記実施例では8ビツト系の8080/8Q85
CPUにおいて、ROAi中のプログラムの命令コード
の存在しないメモリアドレスのデータがすべて(FP)
□。である場合について述べ比が、このデータの値が(
FF)*a以外である場合には、この未使用のメモリア
ドレスのデータを本来のプログラムを処理する前にすべ
て(FF)usにしておけばよい。
Note that in the above embodiment, 8-bit system 8080/8Q85 is used.
In the CPU, all data in memory addresses where no instruction code of the program in ROAi exists (FP)
□. We talk about the case where the ratio is, and the value of this data is (
If it is other than FF)*a, all data in this unused memory address may be set to (FF)us before processing the original program.

ま之、上記実施例では8080/8085CPUを使用
し之場合について説明し几が、他の8ビツト系CPUや
16ビツト系CPHについても応用できる。
However, although the above embodiment describes the case where an 8080/8085 CPU is used, it can also be applied to other 8-bit CPUs and 16-bit CPHs.

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

以上のエリに、この発明によれば、CPUが誤動作によ
って本来プログラムコードが存在しないメモリアドレス
をアクセスした場合にも、そのメモリアドレスのプログ
ラムコードを、正規の処理へ戻すための処理ルーチンを
実行させるものとして利用するようにしたので、CPU
の暴走を確実に阻止でき、正規のデータ処理を続行でき
る効果がある。
To solve the above problem, according to the present invention, even when the CPU accesses a memory address where no program code originally exists due to a malfunction, a processing routine is executed to return the program code at that memory address to normal processing. Since I decided to use it as an object, the CPU
This has the effect of reliably preventing runaway data and allowing normal data processing to continue.

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

第1図はこの発明の一実施例によるデータ処理方式を実
行する几めのリードオンリメモリに格納したメモリマツ
プの概念図、第2図はデータ処理方式の実行の几めのフ
ローチャート、第3図は従来技術およびこの発明の実施
に用いられる中央処理装置とリードオンリメモリとの曳
係を示すブロック接続図、第4図は従来のメモリマツプ
の概念図である。 1は中央処理装置t(CPU)、2はリードオンリメモ
リ(ROM)、A、Bはメモリアドレス、(3C)□6
はメモリアドレス。
FIG. 1 is a conceptual diagram of a memory map stored in a read-only memory for implementing a data processing method according to an embodiment of the present invention, FIG. 2 is a flowchart for implementing a data processing method, and FIG. FIG. 4 is a block connection diagram showing the relationship between a central processing unit and a read-only memory used in the prior art and the implementation of the present invention. FIG. 4 is a conceptual diagram of a conventional memory map. 1 is the central processing unit t (CPU), 2 is the read-only memory (ROM), A and B are memory addresses, (3C)□6
is a memory address.

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置がプログラム格納用リードオンリメモリに
メモリアドレスを出力し、このメモリアドレスに対応す
るプログラムコードを取り込んで命令を解読および実行
する中央処理装置のデータ処理方式において、上記中央
処理装置が上記リードオンリメモリに格納されているプ
ログラムコードが存在するメモリアドレス以外の未書込
みアドレスを誤つてアクセスしたとき、そのリードオン
リメモリによつて一義的に決まる未書込み状態における
出力データをプログラムコードとして、上記中央処理装
置に正常の処理に戻るためのルーチンを実行させるよう
にした中央処理装置のデータ処理方式。
In a data processing method of a central processing unit in which a central processing unit outputs a memory address to a read-only memory for program storage, and reads a program code corresponding to this memory address to decode and execute instructions, the central processing unit outputs a memory address to a read-only memory for storing a program. When an unwritten address other than the memory address where the program code stored in the read-only memory is accessed by mistake, the output data in the unwritten state uniquely determined by the read-only memory is used as the program code in the center above. A data processing method for a central processing unit that causes the processing unit to execute a routine to return to normal processing.
JP60107240A 1985-05-20 1985-05-20 Data processing system for central processing unit Pending JPS61264444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60107240A JPS61264444A (en) 1985-05-20 1985-05-20 Data processing system for central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60107240A JPS61264444A (en) 1985-05-20 1985-05-20 Data processing system for central processing unit

Publications (1)

Publication Number Publication Date
JPS61264444A true JPS61264444A (en) 1986-11-22

Family

ID=14454030

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60107240A Pending JPS61264444A (en) 1985-05-20 1985-05-20 Data processing system for central processing unit

Country Status (1)

Country Link
JP (1) JPS61264444A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63155236A (en) * 1986-12-18 1988-06-28 Fuji Electric Co Ltd Detecting method for runaway of software

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63155236A (en) * 1986-12-18 1988-06-28 Fuji Electric Co Ltd Detecting method for runaway of software

Similar Documents

Publication Publication Date Title
US4777588A (en) General-purpose register file optimized for intraprocedural register allocation, procedure calls, and multitasking performance
US4835677A (en) System for directly and indirectly accessing control registers by different operating systems based upon value of operating system indication bit
US4794515A (en) Protection of data in a multiprogramming data processing system
US5842012A (en) Efficient soft reset in a personal computer
JPS6055849B2 (en) Command control method
JPS6212529B2 (en)
JPS61264444A (en) Data processing system for central processing unit
JPH10240522A (en) Arithmetic unit
JPS63120340A (en) Data processor
JPS62120542A (en) Information processor
JPS638491B2 (en)
JPS5842891B2 (en) Meirei Seigiyohoushiki
JPS58221448A (en) Microcomputer
JPH03127126A (en) Information processor
JPH0348954A (en) Key storage control system
JPS6212532B2 (en)
JPS60151754A (en) Data processor
JPH0415826A (en) One-chip microcomputer
JPS631624B2 (en)
JPS6261127A (en) Method for preventing program from runaway
JPS62271143A (en) Coprocessor
JPS6148746B2 (en)
JPS6313214B2 (en)
JPH01263750A (en) Single chip microcomputer
JPS5958563A (en) Memory address extension system of microprocessor system