JPS62243040A - Detecting system for runaway of program - Google Patents

Detecting system for runaway of program

Info

Publication number
JPS62243040A
JPS62243040A JP61087270A JP8727086A JPS62243040A JP S62243040 A JPS62243040 A JP S62243040A JP 61087270 A JP61087270 A JP 61087270A JP 8727086 A JP8727086 A JP 8727086A JP S62243040 A JPS62243040 A JP S62243040A
Authority
JP
Japan
Prior art keywords
rom
parity
program
unused
data
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
JP61087270A
Other languages
Japanese (ja)
Inventor
Shigeo Suzuki
重雄 鈴木
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP61087270A priority Critical patent/JPS62243040A/en
Publication of JPS62243040A publication Critical patent/JPS62243040A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To exactly detect a runaway caused by an access of an unused address, by writing used/unused address information in a dead area of a parity data write ROM, and detecting an access of an unused address. CONSTITUTION:When a read signal of a program ROM 2 is inputted to a parity ROM 4' through a ROM 2 and an OR gate 11, a program data from the ROM 2 is sent out to a mu computer 1 and a parity checking circuit 3, and from the ROM 4', a parity data and a used/unused data are outputted to a selector 9. From a terminal YA of the selector 9, 1 bit of the parity data is selected and sent out to the circuit 3, and from a terminal YB, 1 bit of the used/unused data is selected and sent out to an FF 10. By the circuit 3, the program data of the ROM 2 is brought to a parity check, and if it is abnormal, a parity error signal is outputted. From the FF 10, unused address access error signals of '0' and '1' are outputted, in case when an address is used, and in case when it is unused, respectively.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、マイクロコンピュータのプロゲラ、小!1
土棒h±÷ン啼照キナ [従来の技術1 第3図は、マイクロコンピュータシステムにおける従来
の暴走検知回路を示している。
[Detailed Description of the Invention] [Industrial Application Field] This invention is applicable to microcomputer progera, small! 1
[Prior art 1] Fig. 3 shows a conventional runaway detection circuit in a microcomputer system.

1は、このシステムを集中制御するマイクロコンピュー
タである。2は、このシステム動作のだめのプログラム
が格納されるプログラムROM(リードオンリーメモリ
)であり、アドレスバスを介したアドレスのアクセスに
より読み出されたプ′ログラムは、データバスを介して
マイクロコンピュータ1に取り込まれるとともに、プロ
グラムのパリティチェックを行なうrこめにパリティチ
ェック回路3に入力される。4は、パリティチェックを
行なうために必要となるパリティデータが記憶されるパ
リティROMであり、このパリティデータは前記パリテ
ィチェック回路3に入力される。5は、上位アドレスの
みをデコーVするアVし久デコーダであり、6は、前記
アドレスデコーダ5からのデコード信号に基づいて、未
使用のアドレスがアクセスされていないかを検知する検
知回路である。7は、プログラム容量の#、張に対処す
るために未使用ブロックの設定変更するだめのスイッチ
であり、8は、所定のタイミングで上述したような動作
が行なわれているかをチェックするだめのウォッチドッ
グタイマであり、マイクロコンビエータ1により出力さ
れるリフレッシュ信号によりセット/リセットされる。
1 is a microcomputer that centrally controls this system. Reference numeral 2 denotes a program ROM (read-only memory) in which a program necessary for system operation is stored, and the program read by address access via the address bus is transferred to the microcomputer 1 via the data bus. At the same time as being taken in, the program is input to the parity check circuit 3 at the same time as the program is checked for parity. A parity ROM 4 stores parity data necessary for performing a parity check, and this parity data is input to the parity check circuit 3. Reference numeral 5 denotes an A/V decoder that decodes only the upper address. Reference numeral 6 denotes a detection circuit that detects whether an unused address is being accessed based on the decode signal from the address decoder 5. . 7 is a switch for changing the settings of unused blocks in order to deal with the program capacity #, and 8 is a watch for checking whether the above-mentioned operation is being performed at a predetermined timing. It is a dog timer and is set/reset by a refresh signal output from the micro combinator 1.

[発明が解決しようとする問題点1 このような従来の回路であれば、以下に記すような問題
点があった。
[Problem 1 to be Solved by the Invention This conventional circuit has the following problems.

■1ブロック内に使用/未使用のアドレスが混在してい
る場合、未使用のアドレスをアクセスしても未使用アド
レス検知回路6により異常検知されない。
(2) If used and unused addresses coexist in one block, the unused address detection circuit 6 will not detect an abnormality even if an unused address is accessed.

■前記の場合、ウォッチドッグタイマ8により、異常検
知される可能性もあるが、それはあくまで異常動作によ
り検知されたものであり、原因を判断することができず
、又、ウォッチドッグタイマ8が作動する前に誤出力し
てしまう恐れがある。
■In the above case, there is a possibility that an abnormality is detected by the watchdog timer 8, but it is only detected due to an abnormal operation, and the cause cannot be determined, and the watchdog timer 8 is activated. There is a risk that the output will be erroneous.

■上述したようなアドレスデコーダ5及びスイッチ7を
必要とする。
(2) The address decoder 5 and switch 7 as described above are required.

本発明では、簡単な回路構成でもって未使用アドレスの
アクセスによる暴走をを確実に検知することを目的とし
ている。
An object of the present invention is to reliably detect runaway due to access to an unused address with a simple circuit configuration.

[問題点を解決するための手段1 従来のパリティチェック回路用に設けられていたパリテ
ィROMは、プログラムROMより小容量で済むが、R
OMの低廉化によりほとんどの場合にはプログラムRO
Mと同容量のROMを使用していて、このため、パリテ
ィROMには未使用のビット領域が残ることになる。本
発明では、ここに着目し、プログラムのパリティデータ
が書き込まれる異常検出用パリティROMの空いている
領域に使用/未使用アドレスの情報を書き込むとともに
、プログラムのパリティチェック及び未使用アドレスの
7クセク検知を行なう第1及び第2の判定手段を備えて
いる。
[Means for solving the problem 1 The parity ROM provided for the conventional parity check circuit has a smaller capacity than the program ROM, but
Due to the low cost of OM, in most cases program RO
A ROM with the same capacity as M is used, so an unused bit area remains in the parity ROM. In the present invention, focusing on this point, information on used/unused addresses is written in the empty area of the abnormality detection parity ROM in which program parity data is written, and the program parity check is performed and 7 sectors of unused addresses are detected. The apparatus includes first and second determination means for performing the following.

[作用1 上記構成により、プログラムの読み出し時に、前記異常
検出用ROMからのデータに基づいて、第1の判定手段
に上りプログラムのパリティチェックを行なうとともに
、第2の判定手段により、アドレスのアクセス毎に未使
用アドレスがアクセスされていないかをチェックしてプ
ログラムの暴走を未然に防いでいる。
[Operation 1] With the above configuration, when a program is read, the first determination means performs a parity check of the program based on the data from the abnormality detection ROM, and the second determination means performs a parity check of the program every time an address is accessed. This prevents the program from running out of control by checking whether unused addresses are being accessed.

[実施例1 以下、本発明の1実施例を図面に従って説明する。[Example 1 An embodiment of the present invention will be described below with reference to the drawings.

第1図は、アドレス空間が64にバイトであり、前半の
32にバイト(アドレス0000〜7FFF)はROM
空間、後半32にバイト(アドレス8000〜FFFF
)はRAM(ランダムアクセスメモリ)空間とし、25
6にビットのROMを使用したパリティチェック回路を
示している。
In Figure 1, the address space is 64 bytes, and the first 32 bytes (addresses 0000 to 7FFF) are ROM
Space, second half 32 bytes (address 8000 to FFFF
) is RAM (random access memory) space, and 25
6 shows a parity check circuit using a 6-bit ROM.

尚、従来例と同一の部分については同位置の符号を付し
ていて、同一部分についての説明を省略する。
Note that the same parts as in the conventional example are given the same reference numerals, and explanations of the same parts will be omitted.

パリティROM4’からは、4ビツトのパリティデータ
と、使用/未使用データとがセレクタ9の入力端子A及
びBとにそれぞれ入力される。このふ+−h々Oハふし
々L轟ヱQlゆ?+マVatフT待后号AO,Alがセ
レクト信号として入力さhでいて、このセレクト信号に
より、入力端子AおよびBに入力された4ビツトの信号
の内の1ビツトが選択され、セレクタ9の出力端子YA
及びYBにそれぞれ出力される。
From the parity ROM 4', 4-bit parity data and used/unused data are input to input terminals A and B of the selector 9, respectively. This fu + -h Oha Fushishi L Todoroki Ql Yu? +Material Vat flags AO and Al are input as select signals, and this select signal selects one bit of the 4-bit signals input to input terminals A and B. output terminal YA
and YB, respectively.

出力端子YAからの信号は、パリティチェック回路3に
パリティデータとして入力され、又、出力端子YBから
出力される使用/未使用データは7リツプ70ツブ回路
10の入力端子りに入力される。
The signal from the output terminal YA is input to the parity check circuit 3 as parity data, and the used/unused data output from the output terminal YB is input to the input terminal of the 7-lip 70-tub circuit 10.

マイクロコンピュータ1からは、ROM及びRAMのリ
ード信号であるROMRD及びRAMRDと、RAMの
リード/ライト信号RAHWRとが出力されていて、R
OMRD信号はプログラムROM2及びパリティチェッ
ク回路3とに入力され、又、三つの信号ROMRD。
The microcomputer 1 outputs ROM and RAM read signals ROMRD and RAMRD, and a RAM read/write signal RAHWR.
The OMRD signal is input to the program ROM 2 and the parity check circuit 3, and three signals ROMRD.

RへMR[l、RA四RはANDゲート11を介してパ
リティROM 4 ’と、遅延回路12を介した7リツ
プ70ツブ回路10のクロック端子CKにラッチ信号と
して入力される。
R to MR[l, RA4R is input as a latch signal to the parity ROM 4' via the AND gate 11, and to the clock terminal CK of the 7-lip 70-tube circuit 10 via the delay circuit 12.

坑2Fial土、ト紀パリ予イROM4’のメモリーマ
ツプを示している。
It shows the memory map of ROM 4' in Pit 2Fial and Toki Paris.

D4〜D7は、プログラムROM2のパリティデータで
あり、DO〜D3は、使用/未使用アドレスのデ〜りを
示している。
D4 to D7 are parity data of the program ROM 2, and DO to D3 indicate used/unused addresses.

次に上記構成による回路の動作について説明する。Next, the operation of the circuit with the above configuration will be explained.

(1)前半32にバイトのROM空間をアクセスした場
合。
(1) When accessing ROM space of 32 bytes in the first half.

この時は、プログラムROM2のリード信号であるRO
MRDがアクティブにされ、このリード信号ROMRD
がプログラムROM2と、ANI)ゲート11を介した
パリティROM4’とに入力されることにより、プログ
ラムROM2から出力されるプログラムデータは、デー
タバスを介してマイクロコンピュータ1及びパリティチ
ェック回路3に送出される。又、パリティROM4’か
らはセレクタ9に対してパリティデータとともに、使用
/未使用データが送出される。セレクタ9のセレクト端
子Sに入力されるアレレス下位信号AO,A1により、
4ビツトのパリティデータの内の1ビツトか゛選択され
出力端子YAからパリティチェック回路3に送出される
。これにより、パリティチェック回路3にて、前記リー
ド信号ROMRDにより、入力されたパリティデータに
基づいて、プログラムROM2からのプログラムデータ
がパリティチェックされ、異常であれば、パリティチェ
ック回路3カ・らパリティエラー信号PERが出力され
る。
At this time, RO which is the read signal of program ROM2
MRD is activated and this read signal ROMRD
is input to the program ROM 2 and the parity ROM 4' via the ANI gate 11, so that the program data output from the program ROM 2 is sent to the microcomputer 1 and the parity check circuit 3 via the data bus. . Further, the parity ROM 4' sends used/unused data to the selector 9 along with parity data. Due to the lower order signals AO and A1 input to the select terminal S of the selector 9,
One bit of the 4-bit parity data is selected and sent to the parity check circuit 3 from the output terminal YA. As a result, the parity check circuit 3 performs a parity check on the program data from the program ROM 2 based on the parity data inputted by the read signal ROMRD, and if it is abnormal, the parity check circuit 3 detects a parity error. A signal PER is output.

一方、パリティROM4’から出力された4ビツトの使
用/未使用データは、パリティデータと同様にセレクタ
9により、1ビツト選択され出力端子YBから7リツプ
70ツブ回路10の入力端子りに送出される。この入力
された使用/未使用のデータは、7リツプ70ツブ回路
10のクロック端子CKに入力されるラッチ信号により
ラッチされる。この結果、7リツプフロツプ回路10の
出力端子Qからは、使用アドレスであればOとなり、未
使用アドレスであれぼ1となる未使用アVレスアクセス
エラー信号ADERが出力される。
On the other hand, from the 4-bit used/unused data output from the parity ROM 4', 1 bit is selected by the selector 9 and sent out from the output terminal YB to the input terminal of the 7-lip 70-tub circuit 10, similar to the parity data. . This input used/unused data is latched by a latch signal input to the clock terminal CK of the 7-lip 70-tub circuit 10. As a result, the output terminal Q of the 7-lip-flop circuit 10 outputs an unused address access error signal ADER which becomes O if the address is a used address and becomes 1 if it is an unused address.

(2)後半32にバイトのRAM空間をアクセスした場
合。
(2) When accessing the RAM space of 32 bytes in the latter half.

この時は、RAMのリード信号RへMRD又はり−ド/
ライト信号RAMWRがアクティブにされることにより
、前(1)項と同様な動作がなされ、プログラムデータ
のパリティチェックとともに、使用/未使用のアドレス
検出がなされ、パリティチェック回路3からはパリティ
エラー信号PERが出力され、又、7リツプ70ツブ回
路10からは未使用アクセスエラー信号^DERが出力
される。
At this time, MRD or read/write is sent to the RAM read signal R.
By activating the write signal RAMWR, the same operation as in the previous item (1) is performed, and the parity check of the program data and used/unused addresses are detected, and the parity check circuit 3 outputs the parity error signal PER. The 7-rip 70-tub circuit 10 outputs an unused access error signal ^DER.

[発明の効果1 以上説明したように、この発明ではメモリーアクセス毎
に、);リティROMに書き込んだ使用/未使用のアド
レスを示すデータを読み出してチェックするようにした
ので、未使用アドレスのアクセス検知を早期にかつ確実
に検知することが可能となる。
[Effect of the invention 1] As explained above, in this invention, every time a memory is accessed, data indicating used/unused addresses written in the security ROM is read out and checked. It becomes possible to detect the detection early and reliably.

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

第1図はこの発明のプログラム暴走検知方式を実現する
ための1実施例を示すシステムブロック図、第2図は第
1図におけるパリティROMのメ回路を示すブロック図
である。 1・・・マイクロコンピュータ、2・・・プログラムR
OM、3・・・パリティチェック回路、4゛・・・パリ
ティROM、9・・・セレクタ、10・・・7リツプフ
ロツプ回路、11・・・ANDデート、12・・・遅延
回路。 特許出願人   富士電機株式会社 代理人 弁理士 青白 葆 外2名 *2図 ROM1fソテイヂータ     4大ノl/禾イ大〕
9アドレスデータ第3図
FIG. 1 is a system block diagram showing one embodiment of the program runaway detection system of the present invention, and FIG. 2 is a block diagram showing a main circuit of the parity ROM in FIG. 1. 1... Microcomputer, 2... Program R
OM, 3... Parity check circuit, 4'... Parity ROM, 9... Selector, 10... 7 lip-flop circuit, 11... AND date, 12... Delay circuit. Patent Applicant: Fuji Electric Co., Ltd. Agent Patent Attorney: Blue and White Blue and 2 other people
9 Address data Figure 3

Claims (1)

【特許請求の範囲】[Claims] (1) マイクロコンピュータシステムにおける暴走検
知方式において、プログラムのパリティデータとともに
、個々のアドレス毎に使用/未使用アドレスを示すデー
タを書き込んだ異常検出用ROMと、第1及び第2の判
定手段とを設け、プログラムの読み出し時に、前記異常
検出用ROMからのデータに基づいて、前記第1の判定
手段によりプログラムのパリティチェックを行なうとと
もに、第2の判定手段によりアドレスのアクセス毎に未
使用アドレスがアクセスされていないかをチェックする
ことをことを特徴とするプログラム暴走検知方式。
(1) In a runaway detection method in a microcomputer system, an abnormality detection ROM in which data indicating used/unused addresses is written for each address as well as program parity data, and first and second determination means are provided. and when reading a program, the first determination means performs a parity check of the program based on data from the abnormality detection ROM, and the second determination means determines whether an unused address is accessed every time an address is accessed. This is a program runaway detection method that is characterized by checking whether or not the program has run away.
JP61087270A 1986-04-15 1986-04-15 Detecting system for runaway of program Pending JPS62243040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61087270A JPS62243040A (en) 1986-04-15 1986-04-15 Detecting system for runaway of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61087270A JPS62243040A (en) 1986-04-15 1986-04-15 Detecting system for runaway of program

Publications (1)

Publication Number Publication Date
JPS62243040A true JPS62243040A (en) 1987-10-23

Family

ID=13910071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61087270A Pending JPS62243040A (en) 1986-04-15 1986-04-15 Detecting system for runaway of program

Country Status (1)

Country Link
JP (1) JPS62243040A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02148343A (en) * 1988-11-30 1990-06-07 Nec Corp Memory parity error discriminating system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02148343A (en) * 1988-11-30 1990-06-07 Nec Corp Memory parity error discriminating system

Similar Documents

Publication Publication Date Title
KR890007162A (en) Data processing device
KR910012925A (en) How to initialize and address the components of your personal computer system and memory
EP0395377A2 (en) Status register for microprocessor
JPH0827730B2 (en) Single-chip microcomputer and test method thereof
JPS62243040A (en) Detecting system for runaway of program
JPH0250226A (en) Microcomputer
JPS63305444A (en) Storage device
JPH11272490A (en) Dlagnostic control system
JPH06309236A (en) Illegal write detecting circuit for memory
JPS60225942A (en) Microprogram control device
JPS60193046A (en) Detecting system for instruction exception
JPH01100799A (en) Read-only memory control circuit
JPS62168241A (en) Microprogram controller
JPH0398129A (en) Parity error detection system
JPS6184749A (en) Processor maintenance device
JPH0486932A (en) Memory fault detecting system
JPH05241900A (en) Program operation confirmation system of computer
JP2001084160A (en) Microcomputer and its inspecting method
JPH05143366A (en) Interruption control circuit
JPS62288947A (en) Information processing controller
JPH0793039B2 (en) Memory address control circuit
JPS62241037A (en) Microcomputer
JPH04124746A (en) Memory capacity identification system
KR890016477A (en) Operation program and data loading method of electronic exchange
JPS61201344A (en) Microcomputer