JPS61134845A - Error detecting system - Google Patents

Error detecting system

Info

Publication number
JPS61134845A
JPS61134845A JP59256990A JP25699084A JPS61134845A JP S61134845 A JPS61134845 A JP S61134845A JP 59256990 A JP59256990 A JP 59256990A JP 25699084 A JP25699084 A JP 25699084A JP S61134845 A JPS61134845 A JP S61134845A
Authority
JP
Japan
Prior art keywords
microprocessor
interruption
fixed data
output
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
JP59256990A
Other languages
Japanese (ja)
Inventor
Kazuhisa Seki
和久 関
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59256990A priority Critical patent/JPS61134845A/en
Publication of JPS61134845A publication Critical patent/JPS61134845A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0763Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect the errors of a microprocessor in early stages by comparing value obtained before data processing with the value obtained after data processing at prescribed time intervals for a microprocessor and checking the processing time. CONSTITUTION:When a timing generator 4 gives the interruption generation timing to an interruption generator 3, an interruption is produced to a microprocessor 1 via an interruption line 11 for start of the interruption processing. The processor 1 reads an interruption processing program out of a control memory ROM30 and executes it as follows. That is, the processor 1 shifts successively the fixed data among all internal register groups 9 and stores the result of said shift to a fixed data holding register 6. The generator 4 sends the comparison timing to a signal line 19 and compares a fixed data holding register 5 with the register 6 for detection of errors of the processor 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、WI!易なハードウェアにより1チツプのマ
イクロプロセッサの出力データの誤りを検出する誤り検
出方式に関する。 ′ 1チツプのマイクロプロセッサは、装置の小型化・低価
格化を実現するための有力な手段として色々な分野で使
用されるようになって来た。しかし、その利用範囲が拡
大されるに伴い、より高信頼性を要請する装置に耐え得
るような1チツプのマイクロプロセッサの出現が要望さ
れるようになった。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is directed to WI! This invention relates to an error detection method for detecting errors in output data of a single-chip microprocessor using simple hardware. '1-chip microprocessors have come to be used in a variety of fields as an effective means of making devices smaller and cheaper. However, as the scope of its use has expanded, there has been a demand for a one-chip microprocessor that can withstand devices requiring higher reliability.

〔従来の技術と発明が解決しようとする問題点〕マイク
ロプロセッサの導入は、装置の小型化・低価格化を実現
するばかりではなく、構成部品が少なくなり、その分装
置の信頼性を向上する役目も荷なっている。
[Problems to be solved by conventional technology and inventions] The introduction of microprocessors not only makes devices smaller and cheaper, but also reduces the number of component parts, which improves device reliability. I also have a lot of responsibilities.

しかし2反面1チツプのマイクロプロセッサ自身は、そ
の内部のアドレス線・データ線・内部しジスタ等に娯り
検出回路を備えているものがなく。
However, on the other hand, no one-chip microprocessor itself is equipped with an interference detection circuit for its internal address lines, data lines, internal registers, etc.

更により高度の信頼性を要求する装置2例えばメインプ
ロセッサとして使用するには、信頼性の肉で問題があっ
た。
Furthermore, when used as a device 2 that requires a higher degree of reliability, such as a main processor, there is a problem in terms of reliability.

従って、より高信頼性を要求する装置でマイクロプロセ
ッサを使用する場合、マイクロプロセッサの外部回路2
例えばマイクロプロセッサからのデータを格納し、転送
するメモリやレジスタ類等に対していちいち誤り検出回
路を備えたり、更により高度の信頼性を要求する装置で
は、マイクロプロセッサを複数同時動作させ、それぞれ
の出力線を9例えば比較回路等で比較することにより誤
り検出を行っていた。
Therefore, when using a microprocessor in a device that requires higher reliability, the microprocessor's external circuit 2
For example, in devices that require error detection circuits for each memory, register, etc. that stores and transfers data from a microprocessor, and that require even higher reliability, multiple microprocessors may be operated simultaneously, and each Error detection was performed by comparing the output lines using, for example, a comparator circuit.

そのため、ハードウェア量が多くなると共に価格をアン
プすると言う問題点があった。
Therefore, there was a problem in that the amount of hardware increased and the price increased.

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

本発明は、上記問題点を解消した新規な誤り検出方式を
実現することを目的とするものであり。
The present invention aims to realize a novel error detection method that solves the above problems.

該問題点は、所定時間間隔でマイクロプロセッサに対し
て割込みを発生する割込み手段と、該別込みによって予
め決められた複数の固定データを前記マイクロプロセッ
サ内部にある複数のレジスタ間を移動させる移動制御手
段と、前記移動制御手段で移動したデータを前記マイク
ロプロセッサの外部に出力する出力手段と、前記固定デ
ータと前記出力手段から出力したデータとを比較する比
較手段と、前記複数のレジスタ間を移動する該固定デー
タが前記出力手段から出力するまでの前記マイクロプロ
セッサ実行時間を計測する計測手段とを設け、該固定デ
ータが誤りなく前記複数のレジスタ間を移動したかどう
かの判定と、所定時間で該固定データが前記複数のレジ
スタ間を移動し出力されたかどうかの判定とで前記マイ
クロプロセッサから出力される該データの誤りを検出す
るする本発明による誤り検出方式により解決される。
The problem lies in an interrupt means that generates an interrupt to the microprocessor at predetermined time intervals, and a movement control that moves a plurality of fixed data predetermined by the separate interrupt between a plurality of registers inside the microprocessor. output means for outputting the data moved by the movement control means to the outside of the microprocessor; comparison means for comparing the fixed data with the data output from the output means; and movement between the plurality of registers. measuring means for measuring the execution time of the microprocessor until the fixed data is output from the output means, and a measuring means for measuring the execution time of the microprocessor until the fixed data is outputted from the output means, and a measuring means for measuring the execution time of the microprocessor until the fixed data is outputted from the output means. This problem is solved by the error detection method according to the present invention, which detects errors in the data output from the microprocessor by determining whether the fixed data has been moved between the plurality of registers and output.

〔作用〕[Effect]

即ち、誤りを検出するための複数の固定データ    
   ]を所定時間間隔でマイクロプロセッサに割込み
That is, multiple fixed data to detect errors.
] interrupts the microprocessor at predetermined time intervals.

前記マイクロプロセッサ内の複数のレジスタからなる内
部レジスタ群に送り込み、前記内部レジスタ群間を移動
させた後出力するデータと、前記内部レジスタ群に送り
込む前の前記複数の固定データとを比較すると共に、前
記内部レジスタ群を前記複数の固定データが移動し、出
力するまでの実行時間とにより誤りを検出するように、
1チツプのマイクロプロセッサに対応する誤り検査回路
を形成することにより、簡易なハードウェアで、しかも
適切な時間間隔で早期に誤り検出を行うことが可能とな
る。
Comparing data sent to an internal register group consisting of a plurality of registers in the microprocessor and output after being moved between the internal register groups with the plurality of fixed data before being sent to the internal register group; Errors are detected based on the execution time required for the plurality of fixed data to be moved through the internal register group and output.
By forming an error check circuit compatible with a one-chip microprocessor, it becomes possible to perform early error detection at appropriate time intervals with simple hardware.

〔実施例〕〔Example〕

以下本発明の要旨を第1図に示す実施例により具体的に
説明する。
The gist of the present invention will be specifically explained below with reference to an embodiment shown in FIG.

第1図は本発明に係る誤り検出回路を内蔵したマイクロ
プロセッサの一実施例図を示す。
FIG. 1 shows an embodiment of a microprocessor incorporating an error detection circuit according to the present invention.

本実施例での1チツプのマイクロプロセッサ1は、その
内部に複数の内部レジスタからなる内部レジスタ群9.
演算回路(図示してない)、アドレス制御用回路(図示
してない)等を含んでいる。
The one-chip microprocessor 1 in this embodiment has an internal register group 9.
It includes an arithmetic circuit (not shown), an address control circuit (not shown), and the like.

尚、タイミング発生器4は割込み発生器3にマイクロプ
ロセッサ1へ所定時間間隔で割込みを発生させるタイミ
ングを与えている。
Note that the timing generator 4 provides the interrupt generator 3 with timing to generate an interrupt to the microprocessor 1 at predetermined time intervals.

又、タイミング発生器4は共通バス2の信号を取込み、
マイクロプロセッサ1が固定データ保持用レジスタ5の
内容をリードしてから出力データ保持用レジスタ6ヘデ
ータをライトするまでの時間を計測している。この時間
は、マイクロプロセッサ1の動作クロックを計数して行
う。
Further, the timing generator 4 takes in the signal of the common bus 2,
The time from when the microprocessor 1 reads the contents of the fixed data holding register 5 to when the data is written to the output data holding register 6 is measured. This time is determined by counting the operating clock of the microprocessor 1.

次に9本実施例の動作を説明する。尚、符号11〜22
は各機能ブロック間の信号線を示す。
Next, the operation of the ninth embodiment will be explained. In addition, codes 11 to 22
indicates signal lines between each functional block.

タイミング発生器4が割込み発生器3に対して割込み番
発生させるためのタイミングを与えると。
When the timing generator 4 gives the interrupt generator 3 the timing for generating an interrupt number.

割込み発生器3は割込み信号線11を通じてマイクロプ
ロセッサ1に割込みを発生させる。マイクロプロセッサ
1はこの割込みを受けると割込み処理を開始する。
The interrupt generator 3 generates an interrupt to the microprocessor 1 through an interrupt signal line 11. When microprocessor 1 receives this interrupt, it starts interrupt processing.

即ち、マイクロプロセッサ1は割込み処理のためのプロ
グラムを共通バス2経出で制御用メ・モリ(ROM ”
) 30から読出し、その割込み処理プログラムにより
割込み処理を以下のように実行する。
That is, the microprocessor 1 stores the program for interrupt processing in the control memory (ROM) via the common bus 2.
) 30, and the interrupt processing is executed as follows using the interrupt processing program.

はじめに、74クロプロセツサlは固定データ保持用レ
ジスタ5から内部レジスタ群9の1つに固定データをロ
ードする。この固定データのロードはタイミング発生器
4で検出され、それ以後動作クロックの計数を開始する
First, the 74C processor 1 loads fixed data from the fixed data holding register 5 into one of the internal register group 9. The loading of this fixed data is detected by the timing generator 4, after which it starts counting operation clocks.

次に、マイクロプロセッサ1は内部レジスタ群9の1つ
にロードした固定データを内部レジスタ群9の他のレジ
スタへ順次移動する動作を繰返す。
Next, the microprocessor 1 repeats the operation of sequentially moving the fixed data loaded into one of the internal register group 9 to other registers of the internal register group 9.

このデータの移動は内部レジスタ群9の全てのレジスタ
で行い、終了すると、マイクロプロセッサ1は出力デー
タ保持用レジスタ6へそのデータをストアする。
This data movement is performed in all the registers of the internal register group 9, and upon completion, the microprocessor 1 stores the data in the output data holding register 6.

このデータストアはタイミング発生器4で検出され、動
作クロックの計数を停止すると共に、タイミング発生器
4は計数したクロック数が正常であるかどうかを、予め
セットしである基準クロック数(又は基準時間)と比較
して判定する。
This data store is detected by the timing generator 4, and the timing generator 4 stops counting the operating clocks, and the timing generator 4 determines whether the counted clock number is normal or not based on a preset reference clock number (or reference time). ) to make a judgment.

尚、基準クロック数(又は基準時間)とは、マイクロプ
ロセッサ1が正常な処理を行うに必要なりロック数(又
は処理時間)である。もし、上記判定が正常でないと判
定された時は、信号線22を経由して娯り検出信号を図
示してない処理部へ出力する。
Note that the reference clock number (or reference time) is the number of locks (or processing time) necessary for the microprocessor 1 to perform normal processing. If it is determined that the above determination is not normal, an entertainment detection signal is outputted to a processing section (not shown) via the signal line 22.

タイミング発生器4が正常なりロック数を検出すると、
信号線19にデータの比較タイミングを送出する。この
比較タイミングで固定データ保持用レジスタ5と出力デ
ータ保持用レジスタ6との内容が比較され、不一致とな
った時は信号線20に不一致信号を送出し、フリップフ
ロップ8にセットする。
When the timing generator 4 is normal and detects the number of locks,
The data comparison timing is sent to the signal line 19. At this comparison timing, the contents of the fixed data holding register 5 and the output data holding register 6 are compared, and if they do not match, a mismatch signal is sent to the signal line 20 and set in the flip-flop 8.

フリップフロップ8はこれにより、信号線21を経由し
て誤り検出信号を図示してない処理部へ出力する。尚、
内部レジスタ群9に読込ませる固定データは複数種類の
方が誤り検出率を高めるためには効果的である。
The flip-flop 8 thereby outputs an error detection signal to a processing section (not shown) via the signal line 21. still,
It is more effective to read a plurality of types of fixed data into the internal register group 9 in order to increase the error detection rate.

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

以上めような本発明によれば、マイクロプロセ    
   1ツサの動作中であっても割込みにより誤り検出
のための診断を実行することが出来るためマイクロプロ
セッサの誤りを早期に発見出来ると共に、簡易なハード
ウェアで高信頼度なマイクロプロセンサを実現出来ると
言う効果がある。
According to the present invention as described above, the microprocessor
Diagnosis for detecting errors can be executed using interrupts even when the sensor is in operation, making it possible to discover errors in the microprocessor early, and realizing a highly reliable microprocessor sensor with simple hardware. It has the effect of saying.

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

第1図は本発明に係る誤り検出回路を内蔵したマイクロ
プロセッサの一実施例図を示す。 図において。 1はマイクロプロセッサ、2は共通バス。 3は割込み発生器。 4はタイミング発生器。 5は固定データ保持用レジスタ。 6は出力データ保持用レジスタ。 7は比較器。 8はフリップフロップ、  9は内部レジスタ群。 10はクロック発生器、11〜22は信号線。 30は制御用メモリ (ROM ) 。 をそれぞれ示す。
FIG. 1 shows an embodiment of a microprocessor incorporating an error detection circuit according to the present invention. In fig. 1 is a microprocessor, 2 is a common bus. 3 is an interrupt generator. 4 is a timing generator. 5 is a register for holding fixed data. 6 is a register for holding output data. 7 is a comparator. 8 is a flip-flop, and 9 is a group of internal registers. 10 is a clock generator, and 11 to 22 are signal lines. 30 is a control memory (ROM). are shown respectively.

Claims (1)

【特許請求の範囲】[Claims] 所定時間間隔でマイクロプロセッサに対して割込みを発
生する割込み手段と、該割込みによって予め決められた
複数の固定データを前記マイクロプロセッサ内部にある
複数のレジスタ間を移動させる移動制御手段と、前記移
動制御手段で移動したデータを前記マイクロプロセッサ
の外部に出力する出力手段と、前記固定データと前記出
力手段から出力したデータとを比較する比較手段と、前
記複数のレジスタ間を移動する該固定データが前記出力
手段から出力するまでの前記マイクロプロセッサ実行時
間を計測する計測手段とを設け、該固定データが謝りな
く前記複数のレジスタ間を移動したかどうかの判定と、
所定時間で該固定データが前記複数のレジスタ間を移動
し出力されたかどうかの判定とで前記マイクロプロセッ
サから出力される該データの誤りを検出することを特徴
とする誤り検出方式。
Interrupt means for generating an interrupt to a microprocessor at predetermined time intervals; movement control means for moving a plurality of fixed data predetermined by the interrupt between a plurality of registers within the microprocessor; and the movement control means. output means for outputting the data moved by the means to the outside of the microprocessor; comparison means for comparing the fixed data with the data output from the output means; measuring means for measuring the execution time of the microprocessor until it is output from the output means, and determining whether the fixed data has been moved between the plurality of registers without apology;
An error detection method characterized in that an error in the data output from the microprocessor is detected by determining whether the fixed data is moved between the plurality of registers and output at a predetermined time.
JP59256990A 1984-12-05 1984-12-05 Error detecting system Pending JPS61134845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59256990A JPS61134845A (en) 1984-12-05 1984-12-05 Error detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59256990A JPS61134845A (en) 1984-12-05 1984-12-05 Error detecting system

Publications (1)

Publication Number Publication Date
JPS61134845A true JPS61134845A (en) 1986-06-21

Family

ID=17300189

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59256990A Pending JPS61134845A (en) 1984-12-05 1984-12-05 Error detecting system

Country Status (1)

Country Link
JP (1) JPS61134845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06231008A (en) * 1993-01-29 1994-08-19 Honda Motor Co Ltd On-line monitoring system for computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06231008A (en) * 1993-01-29 1994-08-19 Honda Motor Co Ltd On-line monitoring system for computer system

Similar Documents

Publication Publication Date Title
FI92262C (en) Flexible bus system
US4979102A (en) Microprocessor operable under direct connection to coprocessor
US4845712A (en) State machine checker
JPS6299835A (en) Diagnosing of test point for circuit and diagnosing apparatus
US7360109B2 (en) Measuring the interval of a signal using a counter and providing the value to a processor
US4636945A (en) Microprocessor
JPS61134845A (en) Error detecting system
JPS62293441A (en) Data outputting system
JPS6227831A (en) Checking circuit for computing element
JPH04119435A (en) Fail-safe comparing circuit
US6266626B1 (en) ROM data verification circuit
KR950014084B1 (en) Data write device of memory
SU1513455A1 (en) Device for monitoring properness of execution of commands by microprocessor system
JPH0229457Y2 (en)
JPS6428747A (en) Microprocessor
JPS59211123A (en) Semiconductor integrated circuit
JPS61165171A (en) Microcomputer
JPS5839339B2 (en) Computer program normal operation display device
JPS6318776B2 (en)
JPS61115143A (en) Detection circuit of malfunction of scan bus
JPH0333939A (en) Microprocessor
JPH11306096A (en) Device and method for serial communication and recording medium recording serial communication control program
JPS6257049A (en) Decentralized processor system
JPS63213040A (en) Input port diagnosing circuit
JPH01258291A (en) Access controller for dual port memory