JPH0225937A - Detecting system for cpu runaway - Google Patents
Detecting system for cpu runawayInfo
- Publication number
- JPH0225937A JPH0225937A JP63176309A JP17630988A JPH0225937A JP H0225937 A JPH0225937 A JP H0225937A JP 63176309 A JP63176309 A JP 63176309A JP 17630988 A JP17630988 A JP 17630988A JP H0225937 A JPH0225937 A JP H0225937A
- Authority
- JP
- Japan
- Prior art keywords
- parity
- rom
- cpu
- data
- bus
- 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
- 238000004364 calculation method Methods 0.000 claims description 31
- 238000000034 method Methods 0.000 claims description 3
- 239000013256 coordination polymer Substances 0.000 claims 1
- 238000001514 detection method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000006378 damage Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Detection And Correction Of Errors (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
本発明は、CPUの暴走検出方式に関し、ROMとパリ
ティ算出部間のパスラインへのノイズの侵入をなくし、
暴走検出を確実にできることを目的とし、
命令又はデータをフェッチする機能を有するCPUと、
命令又はデータを格納し前記CPUによりアドレスされ
た命令又はデータをCPUに与えるROMと、前記RO
Mに内蔵され、ROMが認識した入力アドレスとこれに
対応する出力データ又は命令とを合計してパリティを出
力するパリティ算出部とを備え、前記パリティ算出部か
らの合計パリティと前記CPUが内部的に発生したパリ
ティとを比較して暴走を検出するよう構成したものであ
る。[Detailed Description of the Invention] [Summary] The present invention relates to a CPU runaway detection method that eliminates noise from entering the path line between the ROM and the parity calculation section, and
A CPU that has a function of fetching instructions or data with the purpose of ensuring runaway detection;
a ROM that stores instructions or data and provides instructions or data addressed by the CPU to the CPU;
A parity calculating section is built in the M and outputs parity by summing the input address recognized by the ROM and the corresponding output data or instruction, and the total parity from the parity calculating section and the CPU are internally calculated. It is configured to detect runaway by comparing the parity generated in
本発明は、CPU (中央処理装置)の暴走検出方式に
関する。The present invention relates to a runaway detection method for a CPU (central processing unit).
マイクロコンピュータを内蔵した装置において、これを
長時間連続動作させる場合、CPUのバス上に侵入した
ノイズによりCPUが暴走するのを未然に防止できるこ
とが要求される。When a device incorporating a microcomputer is operated continuously for a long period of time, it is required to be able to prevent the CPU from running out of control due to noise entering the CPU bus.
第2図は、従来のCPU暴走検出方式の構成図である。FIG. 2 is a block diagram of a conventional CPU runaway detection method.
図において、1はCPU、2はパリティ算出部、3はR
OMで、これらは別々に構成されている。In the figure, 1 is the CPU, 2 is the parity calculation unit, and 3 is the R
In OM these are configured separately.
cpuiとパリティ算出部2間は、アドレスバス4とデ
ータバス5により接続され、また、パリティ算出部2と
ROM3間はアドレスバス6及びデータバス7により接
続されている。The CPUI and the parity calculation section 2 are connected by an address bus 4 and a data bus 5, and the parity calculation section 2 and the ROM 3 are connected by an address bus 6 and a data bus 7.
上記のように構成された従来のCPU暴走検出方式にお
いて、CPUIによりアドレスされたインストラクショ
ン又はデータをROM3からCPU1に与えるために、
それらをラッチ回路に取り込む、即ち、CPUIが命令
又はデータをフェッチする時は、CPU 1からアドレ
スバス4を通してパリティ算出部2に出力されたアドレ
スの“1゛の数と、アドレスバス6を通してアドレスさ
れることによりROM3からデータバス7を通してパリ
ティ算出部2に出力されたデータ又は命令の“1 ++
の数とをパリティ算出部2で合計し、この合計パリティ
の算出結果と、cpuiが内部的に発生したパリティ、
即ち、出力アドレスとフェッチしたデータ又は命令の合
計パリティとを比較し、不一致ならばcpuiからエラ
ー信号を出力して、これをCPUIのリセット端子に戻
すことで自己復旧させ、又は外部的にフェッチエラーを
表示することでCPUIの暴走を検出するようにしてい
た。In the conventional CPU runaway detection method configured as described above, in order to give instructions or data addressed by the CPUI from the ROM 3 to the CPU 1,
When these are taken into the latch circuit, that is, when the CPU fetches an instruction or data, the number of 1's in the address output from the CPU 1 to the parity calculation unit 2 through the address bus 4 and the number of 1's in the address output through the address bus 6 are used. By doing so, the data or instruction output from the ROM 3 to the parity calculation unit 2 through the data bus 7 is
The parity calculation unit 2 adds up the total parity calculation result and the parity internally generated by CPUI,
That is, the output address is compared with the total parity of the fetched data or instruction, and if they do not match, the CPU outputs an error signal and returns this to the reset terminal of the CPU for self-recovery, or the fetch error is detected externally. It was designed to detect CPU runaway by displaying the following.
上述のような従来のCPUの暴走検出方式では、CPU
1.パリティ算出部2及びROM3は別々に構成されて
いるため、これら王者間を接続するアドレスバス及びデ
ータバスの長さが相当に長くなり、これに伴ってバス上
にノイズが侵入され易くなる。この場合、パリティ算出
部2がcputとROM3間のバス上に設けられている
ため、CPutとパリティ算出部2間を接続するアドレ
スバス4又はデータバス5上にノイズが侵入した時のC
PUIの暴走検出は可能であるが、パリティ算出部2と
ROM3間を接続するアドレスバス6又はデータバス7
上にノイズが侵入しても、これによるCPUIの暴走検
出は不可能である。In the conventional CPU runaway detection method as described above, the CPU
1. Since the parity calculation section 2 and the ROM 3 are configured separately, the lengths of the address bus and data bus connecting these two players become considerably long, and as a result, noise tends to enter the bus. In this case, since the parity calculation section 2 is provided on the bus between the cput and the ROM 3, the
Although PUI runaway detection is possible, the address bus 6 or data bus 7 connecting between the parity calculation unit 2 and the ROM 3 is
Even if noise intrudes above, it is impossible to detect CPU runaway due to this noise.
例えば、パリティ算出部2からROM3へのアドレスバ
ス6上にノイズが侵入することにより、ROM3へのア
ドレスの“°l°′の数がCPUIがパリティ算出部2
へ出力したアドレスのll l”′の数より減少した場
合、これを認識したROM3は、ノイズが侵入しない時
と異なるデータ又は命令を出力することになるが、この
時、出力データの“l“の数がノイズが侵入しない時と
同一の数であるとすると、CPUIがアドレスした希望
するデータ又は命令と異なるにも拘らず、パリティ算出
部2の合計パリティと、CPUが内部的に発生したパリ
ティ(出力されたアドレスとフェッチしたデータの合計
パリティ)とが一致し、その結果、暴走がないと判断さ
れてしまい、CPUIの暴走検出が不能になる問題があ
った。For example, if noise enters the address bus 6 from the parity calculation unit 2 to the ROM 3, the CPU
When the number of addresses output to ll l"' decreases, the ROM 3 recognizes this and outputs different data or instructions than when noise does not enter, but at this time, the number of output data "l" is the same number as when no noise enters, the total parity of the parity calculation unit 2 and the parity internally generated by the CPU, even though it is different from the desired data or instruction addressed by the CPU. (The output address and the total parity of the fetched data) match, and as a result, it is determined that there is no runaway, and there is a problem that the CPUI cannot detect the runaway.
本発明は上述の問題を解決するためになされたもので、
ROMとパリティ算出部間のパスライン上へのノイズの
侵入をな(し、暴走検出を確実にできるCPUの暴走検
出方式を提供することを目的とする。The present invention was made to solve the above-mentioned problems.
It is an object of the present invention to provide a CPU runaway detection method that prevents noise from entering a path line between a ROM and a parity calculation unit and can ensure runaway detection.
〔課題を解決するための手段]
本発明に係るCPUの暴走検出方式は、命令又はデータ
をフェッチする機能を有するCPUl0と、命令又はデ
ータを格納し前記CPUl0によりアドレスされた命令
又はデータをCPUl0に与えるROM1lと、前記R
OM11に内蔵され、ROMIIが認識した入力アドレ
スとこれに対応する出力データ又は命令とを合計してパ
リティを出力するパリティ算出部12とを備え、前記パ
リティ算出部12からの合計パリティと前記CPU10
が内部的に発生したパリティとを比較して暴走を検出す
るようにしたものである。[Means for Solving the Problems] The CPU runaway detection method according to the present invention includes a CPU10 having a function of fetching instructions or data, and a CPU10 that stores instructions or data and sends instructions or data addressed by the CPU10 to the CPU10. 1l of ROM to be given and the R
The OM 11 includes a parity calculation unit 12 that is built in and outputs parity by summing the input address recognized by the ROMII and the corresponding output data or instruction, and the total parity from the parity calculation unit 12 and the CPU 10
Runaway is detected by comparing the parity with internally generated parity.
パリティ算出部がROMに内蔵されるから、ROMとパ
リティ算出部間を結ぶアドレスバス及びデータバスにノ
イズが侵入しなくなり、CPUのノイズによる暴走検出
が確実になる。Since the parity calculation unit is built into the ROM, noise does not enter the address bus and data bus connecting the ROM and the parity calculation unit, and runaway detection due to CPU noise is ensured.
以下、本発明の実施例を図面に基づいて詳細に説明する
。Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図は、本発明によるCPUの暴走検出方式の構成図
である。FIG. 1 is a block diagram of a CPU runaway detection method according to the present invention.
図において、10は入出力装置などを制御、管理し、与
えられた仕事を実行するCPU (中央処理装置)、1
1はCPUl0の個々の動作命令、その他のデータを格
納するROMで、マスクROM、PROM、EPROM
、EzPROMから成り、CPUl0と別に構成されて
いる。In the figure, 10 is a CPU (central processing unit) that controls and manages input/output devices and executes given tasks;
1 is a ROM that stores individual operating instructions and other data for the CPU10, including mask ROM, PROM, and EPROM.
, EzPROM, and is configured separately from CPU10.
前記ROMIIは、アドレスとデータを合計したパリテ
ィを出力するパリティ算出部12を有し、このパリティ
算出部12はROMIIと同一のチップ上に形成され、
そして両者間は同一チップ上に形成したアドレス用内部
バス13とデータ用内部バス14により接続されている
。また、パリティ算出部12とCPUl0間は、外部バ
スに相当するアドレスバス15及びデータバス16によ
り接続されている。The ROMII has a parity calculation unit 12 that outputs parity that is the sum of address and data, and this parity calculation unit 12 is formed on the same chip as the ROMII,
The two are connected by an internal address bus 13 and an internal data bus 14 formed on the same chip. Furthermore, the parity calculation unit 12 and the CPU 10 are connected by an address bus 15 and a data bus 16, which correspond to external buses.
次に、上記のように構成された本実施例の動作について
説明する。Next, the operation of this embodiment configured as described above will be explained.
CPUl0の一般的な命令フェッチ動作は、まず、CP
Ul0からアドレスを出力し、これによりアドレスされ
た命令又はデータをROM12からCPUl0に与える
ためにラッチ回路に取り込む。そして与えられた命令又
はデータをCPUが実行又は処理する。The general instruction fetch operation of CPU10 is as follows:
An address is output from Ul0, and the addressed instruction or data is taken into the latch circuit from the ROM 12 to be given to the CPUl0. The CPU then executes or processes the given instructions or data.
このようにCPUl0が命令又はデータをフェッチする
時、CPUI Oからアドレスバス15を通してパリテ
ィ算出部12に出力されたアドレスの°“1°”の数と
、パリティ算出部12及びアドレス用内部バス13を通
してアドレスされることによりROMIIからデータ用
内部バス14を通してパリティ算出部2に取り込まれた
データ又は命令のII I IIの数とをパリティ算出
部12に合計し、この合計パリティ結果を出力線12a
から出力する。When the CPU 10 fetches an instruction or data in this way, the number of "1 degrees" of the address output from the CPU 10 through the address bus 15 to the parity calculation unit 12 and The number of data or instructions taken into the parity calculation unit 2 from the ROMII through the data internal bus 14 by being addressed is summed up in the parity calculation unit 12, and this total parity result is sent to the output line 12a.
Output from.
一方、ROMIIが認識したアドレスに対応する出力デ
ータ又は命令は外部のデータバス16を通してcpui
oに取り込まれる。これに伴い、CPUl0では内部的
に発生したパリティ、即ち、CPUl0自身が出力した
アドレスの“1′の数と、フェッチしたデータ又は命令
の“1”の数との合計のパリティ結果を出力線10aか
ら出力する。On the other hand, output data or instructions corresponding to the address recognized by the ROMII are transferred to the CPU via an external data bus 16.
It is taken into o. Along with this, the CPU 10 outputs the internally generated parity, that is, the total parity result of the number of "1's" of the address output by the CPU 10 itself and the number of "1's" of the fetched data or instructions, to the output line 10a. Output from.
即ち、前記両合計パリティ結果を比較した結果、不一致
と判定されたならば、出力線10aにエラー信号を出力
する。このエラー信号は、そのままCPUl0のリセッ
ト端子tabに戻すことで、CPUl0を自己復旧させ
る。そして、フェッチエラーとして表示させる。That is, as a result of comparing the two total parity results, if it is determined that they do not match, an error signal is output to the output line 10a. This error signal is directly returned to the reset terminal tab of CPU10, thereby causing CPU10 to self-recover. Then, display it as a fetch error.
上述のような本実施例にあっては、ROM11に対する
入力アドレスの“′1°°の数と出力データの“11+
の数とを合計してパリティを出力するパリティ算出部工
2をROMIIを構成する同一チップ上に設け、さらに
両者を結ぶアドレスバス13及びデータバス14も同一
チップ上に形成したものであるから、アドレスバス13
及びデータバス14の長さが短くなると共に、これらバ
ス上へのノイズの侵入は皆無となり、これに伴い従来の
ようにROMとパリティ算出部間のバスにノイズが侵入
してもCPUの暴走が検出できないという問題を解決で
きる。また、cpuioとパリティ算出部12間を結ぶ
パスラインにノイズが侵入した時のCPUl0の暴走は
従来と同様に検出するこおが可能である。In this embodiment as described above, the number of "'1°°" of the input address to the ROM 11 and the "11+" of the output data are
The parity calculation unit 2 which outputs the parity by summing the number of ROMII is provided on the same chip that constitutes the ROMII, and the address bus 13 and data bus 14 that connect the two are also formed on the same chip. address bus 13
As the lengths of the data bus 14 and the data bus 14 become shorter, there is no intrusion of noise onto these buses, and as a result, even if noise intrudes into the bus between the ROM and the parity calculation section as in the past, the CPU will not run out of control. This can solve the problem of not being detected. In addition, runaway of the CPU10 when noise enters the path line connecting the CPUIO and the parity calculation unit 12 can be detected in the same way as in the past.
なお、本発明におけるパリティの出し方は自由であり、
ROMの製造コストとの兼ね合いで、その都度計算して
もよいが(この場合数十ゲートの追加で可能)、ROM
内容の破壊まで検出しようとする場合は、1バイトにつ
き1ビツトのパリティビットがプログラムできるように
しておけば良い。Note that the method of determining parity in the present invention is free.
Depending on the manufacturing cost of the ROM, it may be calculated each time (in this case, it is possible to add several tens of gates), but the ROM
If you want to detect even the destruction of the contents, it is sufficient to be able to program one parity bit per byte.
〔発明の効果]
以上のように、本発明によれば、ROMが認識した入力
アドレスとこれに対応する出力データとを合計してパリ
ティを出力するパリティ算出部をROMに内蔵したLS
I構成にしたので、ROMとパリティ算出部間のパスラ
イン上へのノイズ侵入を防止できると共に、特別なハー
ド部を付加することなくCPUのノイズ侵入による暴走
検出が確実になる効果がある。[Effects of the Invention] As described above, according to the present invention, there is provided an LS in which a ROM has a built-in parity calculation unit that totals the input address recognized by the ROM and the output data corresponding to the input address and outputs parity.
Since the I configuration is adopted, it is possible to prevent noise from entering the path line between the ROM and the parity calculating section, and there is also an effect that runaway detection due to noise intrusion of the CPU can be reliably detected without adding a special hardware section.
はアドレス用内部バス、 はデータ用内部バス、 は外部用のアドレスバス、 は外部用のデータバスである。is the internal bus for addresses, is the internal bus for data, is an external address bus, is an external data bus.
第1図は本発明によるCPUの暴走検出方式の実施例を
示す構成図である。
第2図は従来のCPU暴走検出方式の構成図である。
図において、
IOはCPU、
llはROM。
12はパリティ算出部、FIG. 1 is a block diagram showing an embodiment of a CPU runaway detection method according to the present invention. FIG. 2 is a block diagram of a conventional CPU runaway detection method. In the figure, IO is CPU and ll is ROM. 12 is a parity calculation unit;
Claims (1)
U(10)と、 命令又はデータを格納し前記CPU(10)によりアド
レスされた命令又はデータをCPU(10)に与えるR
OM(11)と、 前記ROM(11)に内蔵され、ROM(11)が認識
した入力アドレスとこれに対応する出力データ又は命令
とを合計してパリテイを出力するパリテイ算出部(12
)とを備え、 前記パリテイ算出部(12)からの合計パリテイと前記
CPU(10)が内部的に発生したパリテイとを比較し
て暴走を検出するようにしたことを特徴とするCPUの
暴走検出方式。(1) CP with the function of fetching instructions or data
U(10), and R for storing instructions or data and providing instructions or data addressed by the CPU(10) to the CPU(10).
OM (11), and a parity calculation unit (12) built in the ROM (11) that totals the input address recognized by the ROM (11) and the corresponding output data or instruction and outputs parity.
), and a runaway is detected by comparing the total parity from the parity calculation unit (12) and the parity internally generated by the CPU (10). method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63176309A JPH0225937A (en) | 1988-07-14 | 1988-07-14 | Detecting system for cpu runaway |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63176309A JPH0225937A (en) | 1988-07-14 | 1988-07-14 | Detecting system for cpu runaway |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0225937A true JPH0225937A (en) | 1990-01-29 |
Family
ID=16011333
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63176309A Pending JPH0225937A (en) | 1988-07-14 | 1988-07-14 | Detecting system for cpu runaway |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0225937A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017099493A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099494A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099491A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099496A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099497A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099495A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099492A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5637899A (en) * | 1979-09-04 | 1981-04-11 | Fujitsu Ltd | Memory malfunction detection system |
-
1988
- 1988-07-14 JP JP63176309A patent/JPH0225937A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5637899A (en) * | 1979-09-04 | 1981-04-11 | Fujitsu Ltd | Memory malfunction detection system |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017099493A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099494A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099491A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099496A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099497A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099495A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
| JP2017099492A (en) * | 2015-11-30 | 2017-06-08 | 京楽産業.株式会社 | Game machine |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5886648A (en) | Tracing device | |
| JPH0225937A (en) | Detecting system for cpu runaway | |
| JPH02100724A (en) | Runaway detection system for microcomputer | |
| JP3088286B2 (en) | Program runaway detection circuit, detection method, detection software development apparatus, and software generation method | |
| JPH05216721A (en) | Electronic computer | |
| JPS63150732A (en) | Program running supervisory equipment | |
| JPH04364531A (en) | Microprocessor | |
| JPH03209523A (en) | Detection system for error of instruction data | |
| JPH03186937A (en) | Cpu bus data diagnostic device | |
| JPS63165931A (en) | Storing system for information on discontinuous instruction fetch address | |
| JPH0340039A (en) | Firmware diagnostic device | |
| JP2850377B2 (en) | Microcomputer | |
| JPH03260843A (en) | Execution confirming system | |
| JPH0333939A (en) | Microprocessor | |
| JPH03257684A (en) | Microcomputer | |
| JPH06202907A (en) | Debug support device | |
| JPH03296146A (en) | Back-up device for program development | |
| JPH03256131A (en) | Electronic computer having parity mode as segment attribute | |
| JPS62182934A (en) | program execution device | |
| JPS6334643A (en) | Information processor | |
| JPH0477826A (en) | microprocessor | |
| JPS6385831A (en) | Microprocessor control circuit | |
| JPS58114146A (en) | Detecting for overrun of processor | |
| JPH03208132A (en) | Single chip microcomputer | |
| JPS63150748A (en) | Data processor |