WO2010097844A1 - Runaway detection device - Google Patents

Runaway detection device Download PDF

Info

Publication number
WO2010097844A1
WO2010097844A1 PCT/JP2009/002474 JP2009002474W WO2010097844A1 WO 2010097844 A1 WO2010097844 A1 WO 2010097844A1 JP 2009002474 W JP2009002474 W JP 2009002474W WO 2010097844 A1 WO2010097844 A1 WO 2010097844A1
Authority
WO
WIPO (PCT)
Prior art keywords
register
field
data
runaway detection
signal
Prior art date
Application number
PCT/JP2009/002474
Other languages
French (fr)
Japanese (ja)
Inventor
森有佳理
三宅二郎
谷村昌史
Original Assignee
パナソニック株式会社
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 パナソニック株式会社 filed Critical パナソニック株式会社
Publication of WO2010097844A1 publication Critical patent/WO2010097844A1/en

Links

Images

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/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Definitions

  • the present invention relates to a runaway detection device in a microcomputer or the like.
  • microcomputers information processing devices represented by microcomputers (hereinafter referred to as microcomputers) have been used in a wide variety of fields such as home appliances, OA devices, communication devices, and automobile control applications.
  • a program bug, etc. causes an infinite loop, or the system malfunctions due to external noise, etc.
  • the operation step and the system status are monitored, and the program that escapes from the runaway state by detecting the program runaway state quickly and reliably and restarts the system. It has become an extremely important technology.
  • a mechanism that can detect various runaway conditions reliably and correct the trajectory will become increasingly important in the future. It is thought to become.
  • the watchdog timer is well known as a microcomputer runaway detection technology.
  • a runaway state cannot be detected when a program portion including a timer clear instruction falls into an infinite loop. Therefore, a number is assigned to the timer clear instruction, and each time the timer clear instruction is issued, the number is stored in the compare register and the counter is counted up. If the compare register value and the counter value match, the watchdog There is one that resets the timer (for example, see Patent Document 1).
  • the overflow period setting of the watchdog timer is not appropriate as the reason why runaway detection cannot be performed. In other words, if an incorrect overflow period that should not be set is set, if the program execution is shifted to an unexpected routine due to runaway, the watchdog timer is not cleared and runaway detection cannot be performed.
  • an object of the present invention is to detect a system runaway that could not be detected conventionally. Furthermore, an object of the present invention is to minimize the number of program corrections associated with increase / decrease in clear instructions. Another object of the present invention is to appropriately set the overflow period of the watchdog timer.
  • the runaway detection device stores a first register having a first field and a second field, and stores the data of the first field before the stored contents of the first register are updated.
  • a second register that compares the second field data with the stored contents of the second register, and outputs a match signal when the two match, and a timer that counts a predetermined time. And a timer that is reset in response to the coincidence signal.
  • the timer can be cleared only when the data in the first field before the data is written to the clear register matches the data in the second field after the data is written.
  • the write data to the first register related to the change / modification is modified in consideration of the write data to the first register before and after the modification. This can be achieved.
  • the first register further includes a third field, and the runaway detection device changes the predetermined time of the timer based on the data of the third field when receiving the coincidence signal. It is preferable to further include a period setting unit. According to this, it is possible to prevent a problem that the watchdog timer sets the wrong runaway detection cycle. In addition, runaway can be detected at an early stage.
  • the second register preferably stores the data of the first field when receiving the coincidence signal. According to this, it is possible to avoid overwriting the value in the second register at the time of comparison.
  • the comparator outputs a mismatch signal when the data in the second field does not match the stored contents of the second register.
  • the mismatch signal can be used as an interrupt signal or a reset signal for the microcomputer.
  • a runaway detection device a register that can be accessed at a plurality of addresses, a decoder that generates and outputs an identification number that does not overlap with each other from the address that is associated with accessing the register, and the decoder generates An access order storage device that holds a plurality of identification numbers to be processed and outputs these identification numbers in a predetermined order, and an identification number output from the decoder and an identification number output from the access order storage device are compared And a comparator that outputs a coincidence signal when they coincide with each other, and a timer that measures a predetermined time and is reset upon receiving the coincidence signal.
  • the timer can be cleared only when the access order to the registers is correct. Even if the clear instruction is added to or deleted from the timer, the other parts of the program basically need not be modified.
  • the runaway detection device further includes a runaway detection cycle setting unit that changes the predetermined time of the timer based on the stored contents of the register when the coincidence signal is received. According to this, it is possible to prevent a problem that the watchdog timer sets the wrong runaway detection cycle. In addition, runaway can be detected at an early stage.
  • the access order storage device outputs the next identification number when receiving the coincidence signal. According to this, it is possible to avoid outputting an incorrect identification number at the time of comparison.
  • the comparator preferably outputs a mismatch signal when the identification number output from the decoder does not match the identification number output from the access order storage device.
  • the mismatch signal can be used as an interrupt signal or a reset signal for the microcomputer.
  • the watchdog timer overflow period can be set appropriately.
  • FIG. 1 is a configuration diagram of the runaway detection device according to the first embodiment.
  • FIG. 2 is a diagram illustrating a program example.
  • FIG. 3 is a diagram showing a program example in which the program of FIG. 2 is modified.
  • FIG. 4 is a configuration diagram of the runaway detection device according to the second embodiment.
  • FIG. 5 is a diagram illustrating a specific example of the clear register.
  • FIG. 1 shows a configuration of a runaway detection apparatus according to the first embodiment.
  • the watchdog timer 11 is a runaway detection counter that outputs an abnormal state detection signal S1 when a predetermined time elapses. Specifically, the watchdog timer 11 outputs the signal S1 when it overflows.
  • the signal S1 can be used as an interrupt signal or a reset signal for a microcomputer (not shown).
  • the clear register 12 is a register that is accessed when a clear instruction in the program is executed. The clear command is executed when the count value of the watchdog timer 11 is cleared.
  • the clear register 12 includes a first field, a second field, and a third field.
  • a first field saving register (hereinafter, sometimes simply referred to as “saving register”) 13 is a register for storing data of the first field of the clear register 12.
  • the comparator 14 compares the data stored in the save register 13 with the data in the second field of the clear register 12 in which the current data is written, and outputs a match signal S2 when the two match.
  • the data held in the save register 13 is data written to the first field of the clear register 12 by the previous clear instruction.
  • the save register 13 preferably stores the data of the first field of the clear register 12 in which the current data is written when the match signal S2 is received. As a result, it is possible to avoid data being overwritten in the save register 13 during comparison.
  • the comparator 14 may output the mismatch signal / S2 when the data stored in the save register 13 and the data in the second field of the clear register 12 to which the current data is written do not match.
  • the mismatch signal / S2 can also be used as an interrupt signal or a reset signal for a microcomputer (not shown).
  • the watchdog timer 11 clears the count value when it receives the coincidence signal S1. On the other hand, since the coincidence signal S1 is not output during runaway, the count value of the watchdog timer 11 is not cleared and the watchdog timer 11 overflows and outputs an abnormal state detection signal S1. Thereby, it becomes possible to interrupt or reset a microcomputer (not shown).
  • the runaway detection cycle setting unit 15 When the runaway detection cycle setting unit 15 receives the coincidence signal S2, the runaway detection cycle setting unit 15 converts the data in the third field of the clear register 12 into an overflow cycle and sets it in the watchdog timer 11.
  • the watchdog timer 11 detects an overflow at a set cycle. Since the data write to the third field is performed based on the clear command, if an erroneous clear command is executed due to runaway, an unexpected overflow period is written to the third field. However, at this time, if the mismatch signal / S2 is output from the comparator 14, the microcomputer (not shown) can perform an interrupt process or a reset operation. As a result, the erroneous setting of the overflow period is invalidated. In addition, an appropriate overflow cycle can be set each time a clear instruction is issued, leading to early detection of runaway.
  • the third field of the clear register 12 and the runaway detection cycle setting unit 15 may be omitted.
  • the data to be written to the clear register 12 is determined so that the data written to the first field by the previous clear instruction matches the data written to the second field by the current clear instruction. To do.
  • a program is created so that data is written to the clear register 12 as shown in FIG.
  • both the first field and the second field are 4 bits, and the initial value of the save register 13 is 0x0.
  • the comparator 14 detects a match and outputs a match signal S2, and the watchdog timer 11 The count value is cleared.
  • the comparator 14 matches when executing the clear instruction at address B. Detecting and outputting the coincidence signal S2, the count value of the watchdog timer 11 is cleared.
  • the write data to the clear register 12 related to the change / correction is corrected in consideration of the write data to the clear register 12 before and after the correction part.
  • the program may be changed as shown in FIG. First, since 0x3 is written in the first field by the clear instruction at address C, 0x3 is written in the second field by the clear instruction at address X.
  • the data written to the first field by the clear instruction at address X is arbitrary, for example, 0x5.
  • the data written in the second field by the clear instruction at address Y is set to 0x5 written in the first field by the clear instruction at address X. Since the data written to the second field by the clear instruction at address D is 0x3, the data written to the first field by the clear instruction at address Y is set to 0x3.
  • the watchdog timer 11 may output an abnormal state detection signal S1 due to underflow. Further, when the same data is written to the first field and the second field by the clear instruction, the stored contents of the clear register 12 need not be updated. As a result, even when a clear instruction that repeatedly causes the first field and the second field to be the same data due to runaway is repeatedly executed, the coincidence signal S1 is not output and the runaway can be detected.
  • FIG. 4 shows the configuration of the runaway detection device according to the second embodiment.
  • the clear register 12 is a register having a plurality of addresses for access, that is, a register accessible by a plurality of addresses.
  • FIG. 5 shows a specific example of the clear register 12.
  • the clear register 12 includes a plurality of address detection circuits 121 that detect a specific address, and the logical sum of the outputs of these address detection circuits 121 becomes a write control signal for the register 122. With such a configuration, it is possible to access with a plurality of addresses.
  • the access order storage device 17 is a storage unit that stores an input order of addresses used when accessing the clear register 12, that is, an access order to the clear register 12.
  • the access order storage device 17 includes an identification number storage unit 171, a number storage unit 172, and a counter 173.
  • the identification number storage unit 171 stores a plurality of identification numbers to be generated by the decoder 16.
  • the number storage unit 172 stores the number of valid identification numbers.
  • the counter 173 repeats the counting operation within the value range of the number storage unit 172.
  • the identification number storage unit 171 sequentially outputs identification numbers corresponding to the numbers designated by the counter 173. For example, when the number of identification numbers stored in the identification number storage unit 171 is 8, 7 is set in the number storage unit 172. Therefore, the identification number entered in the 0th entry is output after the 7th entry in the identification number storage section 171.
  • the watchdog timer 11 and the runaway detection cycle setting unit 15 are as described above. However, in this embodiment, the runaway detection period setting unit 15 converts the data in the clear register 12 into an overflow period and sets it in the watchdog timer 11 when receiving the coincidence signal S2. The operational effects are as already described. The runaway detection cycle setting unit 15 can be omitted.
  • the identification numbers of addresses accessed when the program operates normally are stored in the identification number storage unit 171 in the order of access. Further, the number of identification numbers to be used is stored in the number storage unit 172. The contents stored in the identification number storage unit 171 and the number storage unit 172 are updated every time a microcomputer (not shown) is activated.
  • the decoder 16 decodes an address related to the access and outputs an identification number. This access may be any of writing data to the clear register 12, reading data, and a shift operation.
  • the comparator 14 compares the identification number output from the decoder 16 with the identification number output from the access order storage device 17, and outputs a match signal S2 when the two match.
  • the access order storage device 17 preferably outputs the next identification number when receiving the coincidence signal S2. As a result, it is possible to avoid an erroneous identification number being output due to the counting operation of the counter 173 proceeding at the time of comparison.
  • an identification number corresponding to the address accessed by the clear instruction to be added this time is inserted into the corresponding part of the series of identification numbers before the clear instruction is added, and updated accordingly.
  • a series of identification numbers is stored in the identification number storage unit 17 when the microcomputer is activated.
  • the watchdog timer 11 can be cleared only when the access order to the clear register 12 is correct. Therefore, when the clear instruction is executed in an infinite loop due to runaway, the access order to the clear register 12 is out of order, so that runaway can be detected. Further, even if the clear instruction of the watchdog timer 11 is increased or decreased, the other parts of the program basically need not be corrected. Furthermore, even if an overflow period longer than expected is accidentally set during runaway, runaway detection is possible.
  • the address used when accessing the clear register 12 is stored in the identification number storage unit 171 as an identification number as it is. May be. In this case, although the number of bits for storing the identification number increases, there is an advantage that the decoder 16 can be omitted.
  • the runaway detection device can detect a runaway that could not be detected in the past, it is particularly useful for a microcomputer that is particularly required for safety or stability, for example, an automotive control application.
  • Watchdog timer timer
  • Clear register first register, register
  • First field save register second register
  • Comparator 15 Runaway Detection Period Setting Unit 16 Decoder 17 Access Order Storage Device

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

The runaway detection device is equipped with a first register (12) having a first field and a second field, a second register (13) that stores the first field data before the stored content of the first register is updated, a comparator (14) that compares the second field data with the stored content of the second register and outputs a match signal if they match, and a timer (11) that counts a certain period of time and that receives the match signal and is reset.

Description

暴走検出装置Runaway detection device
 本発明は、マイクロコンピュータなどおける暴走検出装置に関するものである。 The present invention relates to a runaway detection device in a microcomputer or the like.
 近年、マイクロコンピュータ(以下、マイコンと表記する。)に代表される情報処理装置は、家電機器、OA機器、通信機器、自動車制御用途など、幅広く多岐にわたる分野で使用されている。しかし、時に、動作中にデバイスの応答がなかったり、プログラムのバグなどによって無限ループに陥ったり、外部ノイズなどの影響でシステムが誤動作したりするなど、いわゆる暴走状態に陥り、誤動作を引き起こす可能性があることが課題となっている。そこで、システムを安定的かつ正常に動作させるために動作ステップやシステムの状態を監視し、プログラムの暴走状態をいち早く確実に検出することで暴走状態から脱却し、システムを再起動させるような機構が極めて重要な技術となってきている。特に、安全性や安定性が要求されるシステムに用いられるマイコン、例えば自動車制御用途向けのマイコンにおいては、さまざまな暴走状態を確実に検出でき、軌道修正を可能とする機構が今後ますます重要になってくると考えられる。 In recent years, information processing devices represented by microcomputers (hereinafter referred to as microcomputers) have been used in a wide variety of fields such as home appliances, OA devices, communication devices, and automobile control applications. However, there are times when the device does not respond during operation, a program bug, etc. causes an infinite loop, or the system malfunctions due to external noise, etc. There is a problem. Therefore, in order to operate the system stably and normally, the operation step and the system status are monitored, and the program that escapes from the runaway state by detecting the program runaway state quickly and reliably and restarts the system. It has become an extremely important technology. In particular, for microcomputers used in systems that require safety and stability, such as microcomputers for automotive control applications, a mechanism that can detect various runaway conditions reliably and correct the trajectory will become increasingly important in the future. It is thought to become.
 マイコンの暴走検知技術としてウォッチドッグタイマが周知である。しかし、典型的なウォッチドッグタイマは、構成上、タイマクリア命令を含むプログラム部分が無限ループに陥ると暴走状態を検知できなくなる。そこで、タイマクリア命令に番号を振っておき、タイマクリア命令が発行されるたびに、コンペアレジスタにその番号を格納するとともにカウンタをカウントアップし、コンペアレジスタ値とカウンタ値とが一致すればウォッチドッグタイマをリセットするようにしているものがある(例えば、特許文献1参照)。 The watchdog timer is well known as a microcomputer runaway detection technology. However, in a typical watchdog timer, a runaway state cannot be detected when a program portion including a timer clear instruction falls into an infinite loop. Therefore, a number is assigned to the timer clear instruction, and each time the timer clear instruction is issued, the number is stored in the compare register and the counter is counted up. If the compare register value and the counter value match, the watchdog There is one that resets the timer (for example, see Patent Document 1).
特開平4-107748号公報JP-A-4-107748
 上記の改良されたウォッチドッグタイマでは、監視対象のプログラムが変更・修正された場合、その変更・修正によって増減のあったタイマクリア命令の個数を考慮して、当該修正箇所以降のプログラムにおいてコンペアレジスタに書き込まれるデータを修正する必要がある。したがって、プログラムの修正箇所が広範囲にわたり、修正工数が増大するという問題がある。プログラムの流用性の観点から、タイマクリア命令の増減に伴うプログラムの修正は最小限であることが望ましい。 In the improved watchdog timer described above, if the program to be monitored is changed or modified, the number of timer clear instructions that have increased or decreased due to the change or modification is taken into account, and the compare register in the program after the corrected location It is necessary to correct the data written to the. Therefore, there is a problem that the number of corrections in the program is wide and the number of correction steps increases. From the viewpoint of program diversion, it is desirable that the modification of the program accompanying the increase / decrease in the timer clear instruction is minimal.
 また、暴走検知ができなくなる原因として、ウォッチドッグタイマのオーバーフロー周期の設定が適切ではないことも想定される。すなわち、本来設定されるべきでない間違ったオーバーフロー周期が設定されていた場合、暴走によってプログラムの実行が予期しないルーチンに遷移するとウォッチドッグタイマがクリアされないため暴走検出ができなくなってしまう。 Also, it is assumed that the overflow period setting of the watchdog timer is not appropriate as the reason why runaway detection cannot be performed. In other words, if an incorrect overflow period that should not be set is set, if the program execution is shifted to an unexpected routine due to runaway, the watchdog timer is not cleared and runaway detection cannot be performed.
 上記問題に鑑み、本発明は、従来は検出することができなかったシステム暴走を検出することを課題とする。さらに、本発明は、クリア命令の増減に伴うプログラムの修正箇所が極力少なくなるようにすることを課題とする。また、ウォッチドッグタイマのオーバーフロー周期を適切に設定できるようにすることを課題とする。 In view of the above problems, an object of the present invention is to detect a system runaway that could not be detected conventionally. Furthermore, an object of the present invention is to minimize the number of program corrections associated with increase / decrease in clear instructions. Another object of the present invention is to appropriately set the overflow period of the watchdog timer.
 上記課題を解決するために本発明によって次のような手段を講じた。まず、第1の発明に係る暴走検出装置は、第1フィールドおよび第2フィールドを有する第1のレジスタと、前記第1のレジスタの記憶内容が更新される前に前記第1フィールドのデータを格納する第2のレジスタと、前記第2フィールドのデータと前記第2のレジスタの記憶内容とを比較し、両者が一致するとき一致信号を出力する比較器と、所定時間を計時するタイマであって前記一致信号を受けてリセットされるタイマと、を備えていることを特徴とする。 In order to solve the above problems, the present invention has taken the following measures. First, the runaway detection device according to the first invention stores a first register having a first field and a second field, and stores the data of the first field before the stored contents of the first register are updated. A second register that compares the second field data with the stored contents of the second register, and outputs a match signal when the two match, and a timer that counts a predetermined time. And a timer that is reset in response to the coincidence signal.
 これによると、クリアレジスタにデータが書き込まれる前の第1フィールドのデータと当該データが書き込まれた後の第2フィールドのデータとで一致したときにのみタイマのクリアが可能になる。また、タイマに対するクリア命令の追加および削除を伴うプログラムの修正は、修正箇所の前後における第1のレジスタへの書き込みデータを考慮して、変更・修正に係る第1のレジスタへの書き込みデータを修正することで実現できる。 According to this, the timer can be cleared only when the data in the first field before the data is written to the clear register matches the data in the second field after the data is written. In addition, when modifying a program that involves adding or deleting a clear instruction to the timer, the write data to the first register related to the change / modification is modified in consideration of the write data to the first register before and after the modification. This can be achieved.
 前記第1のレジスタは、さらに、第3フィールドを有するものであり、暴走検出装置は、前記一致信号を受けたとき前記第3フィールドのデータに基づいて前記タイマの前記所定時間を変更する暴走検出周期設定部をさらに備えていることが好ましい。これによると、ウォッチドッグタイマが間違った暴走検出周期を設定してしまうという不具合を防止することができる。また、暴走を初期段階で検出することもできる。 The first register further includes a third field, and the runaway detection device changes the predetermined time of the timer based on the data of the third field when receiving the coincidence signal. It is preferable to further include a period setting unit. According to this, it is possible to prevent a problem that the watchdog timer sets the wrong runaway detection cycle. In addition, runaway can be detected at an early stage.
 前記第2のレジスタは、前記一致信号を受けたとき前記第1フィールドのデータを格納することが好ましい。これによると、比較時に、第2のレジスタに値が上書きされることを回避することができる。 The second register preferably stores the data of the first field when receiving the coincidence signal. According to this, it is possible to avoid overwriting the value in the second register at the time of comparison.
 前記比較器は、前記第2フィールドのデータと前記第2のレジスタの記憶内容とが一致しないとき不一致信号を出力することが好ましい。不一致信号は、マイコンに対する割り込み信号またはリセット信号として使用することができる。 It is preferable that the comparator outputs a mismatch signal when the data in the second field does not match the stored contents of the second register. The mismatch signal can be used as an interrupt signal or a reset signal for the microcomputer.
 また、第2の発明に係る暴走検出装置は、複数のアドレスでアクセス可能なレジスタと、前記レジスタへのアクセスに係るアドレスから互いに重複しない識別番号を生成して出力するデコーダと、前記デコーダによって生成されるべき複数の識別番号を保持し、これら識別番号を所定の順序で出力するアクセス順記憶装置と、前記デコーダから出力された識別番号と前記アクセス順記憶装置から出力された識別番号とを比較し、両者が一致するとき一致信号を出力する比較器と、所定時間を計時するタイマであって前記一致信号を受けてリセットされるタイマと、を備えていることを特徴とする。 According to a second aspect of the present invention, there is provided a runaway detection device, a register that can be accessed at a plurality of addresses, a decoder that generates and outputs an identification number that does not overlap with each other from the address that is associated with accessing the register, and the decoder generates An access order storage device that holds a plurality of identification numbers to be processed and outputs these identification numbers in a predetermined order, and an identification number output from the decoder and an identification number output from the access order storage device are compared And a comparator that outputs a coincidence signal when they coincide with each other, and a timer that measures a predetermined time and is reset upon receiving the coincidence signal.
 これによると、レジスタへのアクセス順が正しい場合にのみタイマのクリアが可能になる。また、タイマに対するクリア命令の追加および削除があってもプログラムの他の部分については基本的に修正不要である。 * According to this, the timer can be cleared only when the access order to the registers is correct. Even if the clear instruction is added to or deleted from the timer, the other parts of the program basically need not be modified.
 暴走検出装置は、前記一致信号を受けたとき前記レジスタの記憶内容に基づいて前記タイマの前記所定時間を変更する暴走検出周期設定部をさらに備えていることが好ましい。これによると、ウォッチドッグタイマが間違った暴走検出周期を設定してしまうという不具合を防止することができる。また、暴走を初期段階で検出することもできる。 It is preferable that the runaway detection device further includes a runaway detection cycle setting unit that changes the predetermined time of the timer based on the stored contents of the register when the coincidence signal is received. According to this, it is possible to prevent a problem that the watchdog timer sets the wrong runaway detection cycle. In addition, runaway can be detected at an early stage.
 前記アクセス順記憶装置は、前記一致信号を受けたとき次の識別番号を出力することが好ましい。これによると、比較時に、間違った識別番号が出力されることを回避することができる。 It is preferable that the access order storage device outputs the next identification number when receiving the coincidence signal. According to this, it is possible to avoid outputting an incorrect identification number at the time of comparison.
 前記比較器は、前記デコーダから出力された識別番号と前記アクセス順記憶装置から出力された識別番号とが一致しないとき不一致信号を出力することが好ましい。不一致信号は、マイコンに対する割り込み信号またはリセット信号として使用することができる。 The comparator preferably outputs a mismatch signal when the identification number output from the decoder does not match the identification number output from the access order storage device. The mismatch signal can be used as an interrupt signal or a reset signal for the microcomputer.
 本発明によると、従来は検出することができなかったシステム暴走を検出することができる。さらに、クリア命令の増減に伴うプログラムの修正箇所を少なくすることができる。また、ウォッチドッグタイマのオーバーフロー周期を適切に設定することができる。 According to the present invention, it is possible to detect a system runaway that could not be detected conventionally. Furthermore, it is possible to reduce the number of program corrections accompanying the increase / decrease of the clear command. In addition, the watchdog timer overflow period can be set appropriately.
図1は、第1の実施形態に係る暴走検出装置の構成図である。FIG. 1 is a configuration diagram of the runaway detection device according to the first embodiment. 図2は、プログラム例を示す図である。FIG. 2 is a diagram illustrating a program example. 図3は、図2のプログラムを修正したプログラム例を示す図である。FIG. 3 is a diagram showing a program example in which the program of FIG. 2 is modified. 図4は、第2の実施形態に係る暴走検出装置の構成図である。FIG. 4 is a configuration diagram of the runaway detection device according to the second embodiment. 図5は、クリアレジスタの具体例を示す図である。FIG. 5 is a diagram illustrating a specific example of the clear register.
 以下、本発明を実施するための形態について、図面を参照しながら説明する。 Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.
 (第1の実施形態)
 図1は、第1の実施形態に係る暴走検出装置の構成を示す。ウォッチドッグタイマ11は、所定時間が経過すると異常状態検出信号S1を出力する暴走検出カウンタである。具体的には、ウォッチドッグタイマ11は、オーバーフローすることで信号S1を出力する。信号S1は、図示しないマイコンに対する割り込み信号またはリセット信号として使用することができる。
(First embodiment)
FIG. 1 shows a configuration of a runaway detection apparatus according to the first embodiment. The watchdog timer 11 is a runaway detection counter that outputs an abnormal state detection signal S1 when a predetermined time elapses. Specifically, the watchdog timer 11 outputs the signal S1 when it overflows. The signal S1 can be used as an interrupt signal or a reset signal for a microcomputer (not shown).
 クリアレジスタ12は、プログラム中のクリア命令が実行されることでアクセスされるレジスタである。クリア命令はウォッチドッグタイマ11のカウント値をクリアするときに実行される。クリアレジスタ12は、第1フィールド、第2フィールド、および第3フィールを含んでいる。第1フィールド退避レジスタ(以下、単に「退避レジスタ」と表記することがある。)13は、クリアレジスタ12の第1フィールドのデータを格納するためのレジスタである。 The clear register 12 is a register that is accessed when a clear instruction in the program is executed. The clear command is executed when the count value of the watchdog timer 11 is cleared. The clear register 12 includes a first field, a second field, and a third field. A first field saving register (hereinafter, sometimes simply referred to as “saving register”) 13 is a register for storing data of the first field of the clear register 12.
 クリア命令が実行されるとクリアレジスタ12にデータが書き込まれる。比較器14は、退避レジスタ13に格納されているデータと今回データが書き込まれたクリアレジスタ12の第2フィールドのデータとを比較し、両者が一致するとき一致信号S2を出力する。退避レジスタ13が保持しているデータは、前回のクリア命令でクリアレジスタ12の第1フィールドに書き込まれたデータである。 When the clear instruction is executed, data is written to the clear register 12. The comparator 14 compares the data stored in the save register 13 with the data in the second field of the clear register 12 in which the current data is written, and outputs a match signal S2 when the two match. The data held in the save register 13 is data written to the first field of the clear register 12 by the previous clear instruction.
 なお、退避レジスタ13は、一致信号S2を受けたとき、今回データが書き込まれたクリアレジスタ12の第1フィールドのデータを格納することが好ましい。これにより、比較時に、退避レジスタ13にデータが上書きされることを回避することができる。また、比較器14は、退避レジスタ13に格納されているデータと今回データが書き込まれたクリアレジスタ12の第2フィールドのデータとが一致しないとき不一致信号/S2を出力してもよい。不一致信号/S2もまた図示しないマイコンに対する割り込み信号またはリセット信号として使用することができる。 The save register 13 preferably stores the data of the first field of the clear register 12 in which the current data is written when the match signal S2 is received. As a result, it is possible to avoid data being overwritten in the save register 13 during comparison. The comparator 14 may output the mismatch signal / S2 when the data stored in the save register 13 and the data in the second field of the clear register 12 to which the current data is written do not match. The mismatch signal / S2 can also be used as an interrupt signal or a reset signal for a microcomputer (not shown).
 ウォッチドッグタイマ11は、一致信号S1を受けたときカウント値をクリアする。一方、暴走時には一致信号S1が出力されないため、ウォッチドッグタイマ11のカウント値はクリアされずにウォッチドッグタイマ11はオーバーフローし、異常状態検出信号S1を出力する。これにより、図示しないマイコンに対して割り込みまたはリセットが可能となる。 The watchdog timer 11 clears the count value when it receives the coincidence signal S1. On the other hand, since the coincidence signal S1 is not output during runaway, the count value of the watchdog timer 11 is not cleared and the watchdog timer 11 overflows and outputs an abnormal state detection signal S1. Thereby, it becomes possible to interrupt or reset a microcomputer (not shown).
 暴走検出周期設定部15は、一致信号S2を受けたとき、クリアレジスタ12の第3フィールドのデータをオーバーフロー周期に変換してウォッチドッグタイマ11に設定する。ウォッチドッグタイマ11は、設定された周期でオーバーフローを検出する。第3フィールドへのデータ書き込みはクリア命令に基づいて行われるため、暴走によって誤ったクリア命令が実行されると、想定しないオーバーフロー周期が第3フィールドに書き込まれることとなる。しかし、このとき、比較器14から不一致信号/S2が出力されると、図示しないマイコンは割り込み処理やリセット動作をすることができる。これにより、誤ったオーバーフロー周期の設定は無効にされる。また、クリア命令発行の都度適切なオーバーフロー周期を設定できるため、暴走の早期検出につながる。 When the runaway detection cycle setting unit 15 receives the coincidence signal S2, the runaway detection cycle setting unit 15 converts the data in the third field of the clear register 12 into an overflow cycle and sets it in the watchdog timer 11. The watchdog timer 11 detects an overflow at a set cycle. Since the data write to the third field is performed based on the clear command, if an erroneous clear command is executed due to runaway, an unexpected overflow period is written to the third field. However, at this time, if the mismatch signal / S2 is output from the comparator 14, the microcomputer (not shown) can perform an interrupt process or a reset operation. As a result, the erroneous setting of the overflow period is invalidated. In addition, an appropriate overflow cycle can be set each time a clear instruction is issued, leading to early detection of runaway.
 なお、クリアレジスタ12の第3フィールドおよび暴走検出周期設定部15は省略しても構わない。 The third field of the clear register 12 and the runaway detection cycle setting unit 15 may be omitted.
 プログラムにクリア命令を挿入する場合、前回のクリア命令で第1フィールドに書き込まれるデータと今回のクリア命令で第2フィールドに書き込まれたデータとが一致するように、クリアレジスタ12に書き込むデータを決定する。以下、第3フィールドがない場合について説明する。例えば、図2に示したようにクリアレジスタ12にデータが書き込まれるようにプログラムを作成する。ただし、第1フィールドおよび第2フィールドはいずれも4ビットであり、退避レジスタ13の初期値は0x0であるとする。最初に実行されるA番地のクリア命令でクリアレジスタ12に書き込むデータの第2フィールドを0x0とすることで、比較器14は一致を検出し、一致信号S2を出力して、ウォッチドッグタイマ11のカウント値がクリアされる。A番地のクリア命令の書き込みデータの第1フィールドを0x1とし、B番地のクリア命令の書き込みデータの第2フィールドを0x1とすることで、B番地のクリア命令の実行時に、比較器14は一致を検出し、一致信号S2を出力して、ウォッチドッグタイマ11のカウント値がクリアされる。 When a clear instruction is inserted into the program, the data to be written to the clear register 12 is determined so that the data written to the first field by the previous clear instruction matches the data written to the second field by the current clear instruction. To do. Hereinafter, a case where there is no third field will be described. For example, a program is created so that data is written to the clear register 12 as shown in FIG. However, both the first field and the second field are 4 bits, and the initial value of the save register 13 is 0x0. By setting the second field of data to be written to the clear register 12 by the clear instruction at address A executed first to 0x0, the comparator 14 detects a match and outputs a match signal S2, and the watchdog timer 11 The count value is cleared. By setting the first field of the write data for the clear instruction at address A to 0x1 and the second field of the write data for the clear instruction at address B to 0x1, the comparator 14 matches when executing the clear instruction at address B. Detecting and outputting the coincidence signal S2, the count value of the watchdog timer 11 is cleared.
 プログラムの変更・修正でクリア命令が増減する場合、修正箇所の前後におけるクリアレジスタ12への書き込みデータを考慮して、変更・修正に係るクリアレジスタ12への書き込みデータを修正する。例えば、図2のプログラムのC番地とD番地の間のX番地およびY番地にクリア命令を挿入するには、図3に示したようにプログラム変更すればよい。まず、C番地のクリア命令で第1フィールドに0x3が書き込まれることから、X番地のクリア命令で第2フィールドに0x3が書き込まれるようにする。X番地のクリア命令で第1フィールドに書き込まれるデータは任意であり、例えば0x5とする。次に、Y番地のクリア命令で第2フィールドに書き込まれるデータは、X番地のクリア命令で第1フィールドに書き込まれる0x5を設定する。そして、D番地のクリア命令で第2フィールドに書き込まれるデータが0x3であることから、Y番地のクリア命令で第1フィールドに書き込まれるデータは0x3に設定する。 When the clear command increases / decreases due to program change / correction, the write data to the clear register 12 related to the change / correction is corrected in consideration of the write data to the clear register 12 before and after the correction part. For example, in order to insert a clear instruction at addresses X and Y between addresses C and D in the program of FIG. 2, the program may be changed as shown in FIG. First, since 0x3 is written in the first field by the clear instruction at address C, 0x3 is written in the second field by the clear instruction at address X. The data written to the first field by the clear instruction at address X is arbitrary, for example, 0x5. Next, the data written in the second field by the clear instruction at address Y is set to 0x5 written in the first field by the clear instruction at address X. Since the data written to the second field by the clear instruction at address D is 0x3, the data written to the first field by the clear instruction at address Y is set to 0x3.
 以上のように、本実施形態によれば、クリアレジスタ12にデータが書き込まれる前の第1フィールドのデータと当該データが書き込まれた後の第2フィールドのデータと一致したときにのみウォッチドッグタイマ11のクリアが可能になる。したがって、暴走によってクリア命令が無限ループで実行されると第1フィールドのデータと第2フィールドのデータとが一致しなくなり、暴走を検出することができる。また、ウォッチドッグタイマ11のクリア命令の増減に伴うプログラムの変更・修正が容易である。さらに、暴走時に誤って想定よりも長いオーバーフロー周期が設定されたとしても暴走検出が可能となる。 As described above, according to the present embodiment, only when the data in the first field before the data is written to the clear register 12 matches the data in the second field after the data is written, 11 can be cleared. Therefore, when the clear instruction is executed in an infinite loop due to runaway, the data in the first field and the data in the second field do not match, and the runaway can be detected. In addition, it is easy to change or modify the program in accordance with the increase / decrease of the watchdog timer 11 clear command. Furthermore, even if an overflow period longer than expected is set by mistake during runaway, runaway detection is possible.
 なお、ウォッチドッグタイマ11はアンダーフローによって異常状態検出信号S1を出力するものであってもよい。また、クリア命令で第1フィールドと第2フィールドに同じデータが書き込まれるような場合には、クリアレジスタ12の記憶内容を更新しなくてもよい。これにより、暴走で誤って第1フィールドと第2フィールドが同じデータとなるようなクリア命令が繰り返し実行された場合でも、一致信号S1が出力されず暴走を検出することができる。 Note that the watchdog timer 11 may output an abnormal state detection signal S1 due to underflow. Further, when the same data is written to the first field and the second field by the clear instruction, the stored contents of the clear register 12 need not be updated. As a result, even when a clear instruction that repeatedly causes the first field and the second field to be the same data due to runaway is repeatedly executed, the coincidence signal S1 is not output and the runaway can be detected.
 (第2の実施形態)
 図4は、第2の実施形態に係る暴走検出装置の構成を示す。クリアレジスタ12は、アクセスするためのアドレスを複数もったレジスタ、すなわち、複数のアドレスでアクセス可能なレジスタである。図5は、クリアレジスタ12の具体例を示す。クリアレジスタ12は、特定のアドレスを検出するアドレス検出回路121を複数備えており、これらアドレス検出回路121の出力の論理和がレジスタ122の書き込み制御信号となる。このような構成により、複数のアドレスでアクセス可能となる。
(Second Embodiment)
FIG. 4 shows the configuration of the runaway detection device according to the second embodiment. The clear register 12 is a register having a plurality of addresses for access, that is, a register accessible by a plurality of addresses. FIG. 5 shows a specific example of the clear register 12. The clear register 12 includes a plurality of address detection circuits 121 that detect a specific address, and the logical sum of the outputs of these address detection circuits 121 becomes a write control signal for the register 122. With such a configuration, it is possible to access with a plurality of addresses.
 図4に戻り、デコーダ16は、クリアレジスタ12へのアクセスに係るアドレスから互いに重複しない識別番号を生成して出力する。アクセス順記憶装置17は、クリアレジスタ12へのアクセスの際に用いられるアドレスの入力順番、つまりクリアレジスタ12へのアクセス順を記憶する記憶手段である。具体的には、アクセス順記憶装置17は、識別番号格納部171と、個数記憶部172と、カウンタ173とを備えている。識別番号格納部171にはデコーダ16によって生成されるべき複数の識別番号が格納される。個数記憶部172には有効な識別番号の個数が格納される。カウンタ173は、個数記憶部172の値の範囲内でカウント動作を繰り返す。識別番号格納部171は、カウンタ173によって指定された番号に対応する識別番号を順次出力する。例えば、識別番号格納部171に格納される識別番号の個数が8個の場合には、個数記憶部172には7が設定される。したがって、識別番号格納部171の7番目にエントリーされた識別番号の次は0番目にエントリーされた識別番号が出力される。 Returning to FIG. 4, the decoder 16 generates and outputs identification numbers that do not overlap each other from the address related to the access to the clear register 12. The access order storage device 17 is a storage unit that stores an input order of addresses used when accessing the clear register 12, that is, an access order to the clear register 12. Specifically, the access order storage device 17 includes an identification number storage unit 171, a number storage unit 172, and a counter 173. The identification number storage unit 171 stores a plurality of identification numbers to be generated by the decoder 16. The number storage unit 172 stores the number of valid identification numbers. The counter 173 repeats the counting operation within the value range of the number storage unit 172. The identification number storage unit 171 sequentially outputs identification numbers corresponding to the numbers designated by the counter 173. For example, when the number of identification numbers stored in the identification number storage unit 171 is 8, 7 is set in the number storage unit 172. Therefore, the identification number entered in the 0th entry is output after the 7th entry in the identification number storage section 171.
 ウォッチドッグタイマ11および暴走検出周期設定部15は既に説明したとおりである。ただし、本実施形態では、暴走検出周期設定部15は、一致信号S2を受けたとき、クリアレジスタ12のデータをオーバーフロー周期に変換してウォッチドッグタイマ11に設定する。その作用効果については既に説明したとおりである。暴走検出周期設定部15は省略可能である。 The watchdog timer 11 and the runaway detection cycle setting unit 15 are as described above. However, in this embodiment, the runaway detection period setting unit 15 converts the data in the clear register 12 into an overflow period and sets it in the watchdog timer 11 when receiving the coincidence signal S2. The operational effects are as already described. The runaway detection cycle setting unit 15 can be omitted.
 本実施形態では、図示しないマイコンの起動時に、プログラムが正常動作した場合にアクセスされるアドレスの識別番号が、アクセスされる順番通りに識別番号格納部171に格納される。また、使用される識別番号の個数が個数記憶部172に格納される。なお、識別番号格納部171および個数記憶部172の記憶内容は、図示しないマイコンを起動するたびに更新される。 In this embodiment, when a microcomputer (not shown) is activated, the identification numbers of addresses accessed when the program operates normally are stored in the identification number storage unit 171 in the order of access. Further, the number of identification numbers to be used is stored in the number storage unit 172. The contents stored in the identification number storage unit 171 and the number storage unit 172 are updated every time a microcomputer (not shown) is activated.
 クリア命令によってクリアレジスタ12にアクセスがあると、デコーダ16はそのアクセスに係るアドレスをデコードして識別番号を出力する。このアクセスは、クリアレジスタ12に対するデータの書き込み、データの読み出し、シフト操作などいずれであってもよい。比較器14はデコーダ16から出力される識別番号と、アクセス順記憶装置17から出力される識別番号とを比較し、両者が一致するとき一致信号S2を出力する。なお、アクセス順記憶装置17は、一致信号S2を受けたとき次の識別番号を出力するようにすることが好ましい。これにより、比較時に、カウンタ173のカウント動作が先に進んで間違った識別番号が出力されることを回避することができる。 When the clear register 12 is accessed by the clear instruction, the decoder 16 decodes an address related to the access and outputs an identification number. This access may be any of writing data to the clear register 12, reading data, and a shift operation. The comparator 14 compares the identification number output from the decoder 16 with the identification number output from the access order storage device 17, and outputs a match signal S2 when the two match. The access order storage device 17 preferably outputs the next identification number when receiving the coincidence signal S2. As a result, it is possible to avoid an erroneous identification number being output due to the counting operation of the counter 173 proceeding at the time of comparison.
 プログラムにクリア命令を挿入する場合、クリア命令を追加する前の一連の識別番号に、今回追加するクリア命令によってアクセスされるアドレスに対応する識別番号を該当箇所に挿入し、そうして更新された一連の識別番号を、マイコン起動時に識別番号格納部17に格納するようにする。 When a clear instruction is inserted into the program, an identification number corresponding to the address accessed by the clear instruction to be added this time is inserted into the corresponding part of the series of identification numbers before the clear instruction is added, and updated accordingly. A series of identification numbers is stored in the identification number storage unit 17 when the microcomputer is activated.
 以上のように、本実施形態によれば、クリアレジスタ12へのアクセス順が正しい場合にのみウォッチドッグタイマ11のクリアが可能になる。したがって、暴走によってクリア命令が無限ループで実行されるとクリアレジスタ12へのアクセス順が狂うため、暴走を検出することができる。また、ウォッチドッグタイマ11のクリア命令の増減があってもプログラムの他の部分については基本的に修正不要である。さらに、暴走時に誤って想定よりも長いオーバーフロー周期が設定されたとしても暴走検出が可能となる
 なお、クリアレジスタ12へのアクセスの際に用いられるアドレスをそのまま識別番号として識別番号格納部171に格納してもよい。この場合、識別番号格納のためのビット数が多くなるが、デコーダ16を省略することができるというメリットがある。
As described above, according to the present embodiment, the watchdog timer 11 can be cleared only when the access order to the clear register 12 is correct. Therefore, when the clear instruction is executed in an infinite loop due to runaway, the access order to the clear register 12 is out of order, so that runaway can be detected. Further, even if the clear instruction of the watchdog timer 11 is increased or decreased, the other parts of the program basically need not be corrected. Furthermore, even if an overflow period longer than expected is accidentally set during runaway, runaway detection is possible. The address used when accessing the clear register 12 is stored in the identification number storage unit 171 as an identification number as it is. May be. In this case, although the number of bits for storing the identification number increases, there is an advantage that the decoder 16 can be omitted.
 本発明に係る暴走検出装置は従来は検出できなかった暴走を検出することができるため、特に安全性や安定性が求められるような用途向け、例えば自動車制御用途向けのマイコンに特に有用である。 Since the runaway detection device according to the present invention can detect a runaway that could not be detected in the past, it is particularly useful for a microcomputer that is particularly required for safety or stability, for example, an automotive control application.
11 ウォッチドッグタイマ(タイマ)
12 クリアレジスタ(第1のレジスタ、レジスタ)
13 第1フィールド退避レジスタ(第2のレジスタ)
14 比較器
15 暴走検出周期設定部
16 デコーダ
17 アクセス順記憶装置
11 Watchdog timer (timer)
12 Clear register (first register, register)
13 First field save register (second register)
14 Comparator 15 Runaway Detection Period Setting Unit 16 Decoder 17 Access Order Storage Device

Claims (8)

  1.  第1フィールドおよび第2フィールドを有する第1のレジスタと、
     前記第1のレジスタの記憶内容が更新される前に前記第1フィールドのデータを格納する第2のレジスタと、
     前記第2フィールドのデータと前記第2のレジスタの記憶内容とを比較し、両者が一致するとき一致信号を出力する比較器と、
     所定時間を計時するタイマであって前記一致信号を受けてリセットされるタイマと、を備えている
    ことを特徴とする暴走検出装置。
    A first register having a first field and a second field;
    A second register for storing the data of the first field before the stored content of the first register is updated;
    A comparator that compares the data in the second field with the stored contents of the second register and outputs a match signal when they match;
    A runaway detection device comprising: a timer for measuring a predetermined time, and resetting upon receiving the coincidence signal.
  2.  前記第1のレジスタは、さらに、第3フィールドを有するものであり、
     前記一致信号を受けたとき前記第3フィールドのデータに基づいて前記タイマの前記所定時間を変更する暴走検出周期設定部をさらに備えている
    ことを特徴とする請求項1の暴走検出装置。
    The first register further includes a third field;
    2. The runaway detection device according to claim 1, further comprising a runaway detection period setting unit that changes the predetermined time of the timer based on data of the third field when the match signal is received.
  3.  前記第2のレジスタは、前記一致信号を受けたとき前記第1フィールドのデータを格納する
    ことを特徴とする請求項1の暴走検出装置。
    2. The runaway detection device according to claim 1, wherein the second register stores the data of the first field when the coincidence signal is received.
  4.  前記比較器は、前記第2フィールドのデータと前記第2のレジスタの記憶内容とが一致しないとき不一致信号を出力する
    ことを特徴とする請求項1の暴走検出装置。
    2. The runaway detection device according to claim 1, wherein the comparator outputs a mismatch signal when the data of the second field does not match the stored contents of the second register.
  5.  複数のアドレスでアクセス可能なレジスタと、
     前記レジスタへのアクセスに係るアドレスから互いに重複しない識別番号を生成して出力するデコーダと、
     前記デコーダによって生成されるべき複数の識別番号を保持し、これら識別番号を所定の順序で出力するアクセス順記憶装置と、
     前記デコーダから出力された識別番号と前記アクセス順記憶装置から出力された識別番号とを比較し、両者が一致するとき一致信号を出力する比較器と、
     所定時間を計時するタイマであって前記一致信号を受けてリセットされるタイマと、を備えている
    ことを特徴とする暴走検出装置。
    Registers accessible at multiple addresses;
    A decoder that generates and outputs an identification number that does not overlap each other from an address related to access to the register;
    An access order storage device that holds a plurality of identification numbers to be generated by the decoder and outputs the identification numbers in a predetermined order;
    A comparator that compares the identification number output from the decoder with the identification number output from the access order storage device, and outputs a match signal when the two match.
    A runaway detection device comprising: a timer for measuring a predetermined time, and resetting upon receiving the coincidence signal.
  6.  前記一致信号を受けたとき前記レジスタの記憶内容に基づいて前記タイマの前記所定時間を変更する暴走検出周期設定部をさらに備えている
    ことを特徴とする請求項5の暴走検出装置。
    6. The runaway detection device according to claim 5, further comprising a runaway detection cycle setting unit that changes the predetermined time of the timer based on the stored contents of the register when the match signal is received.
  7.  前記アクセス順記憶装置は、前記一致信号を受けたとき次の識別番号を出力する
    ことを特徴とする請求項5の暴走検出装置。
    6. The runaway detection device according to claim 5, wherein the access order storage device outputs a next identification number when receiving the coincidence signal.
  8.  前記比較器は、前記デコーダから出力された識別番号と前記アクセス順記憶装置から出力された識別番号とが一致しないとき不一致信号を出力する
    ことを特徴とする請求項5の暴走検出装置。
    6. The runaway detection apparatus according to claim 5, wherein the comparator outputs a mismatch signal when the identification number output from the decoder does not match the identification number output from the access order storage device.
PCT/JP2009/002474 2009-02-25 2009-06-02 Runaway detection device WO2010097844A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2009-042366 2009-02-25
JP2009042366 2009-02-25

Publications (1)

Publication Number Publication Date
WO2010097844A1 true WO2010097844A1 (en) 2010-09-02

Family

ID=42665072

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2009/002474 WO2010097844A1 (en) 2009-02-25 2009-06-02 Runaway detection device

Country Status (1)

Country Link
WO (1) WO2010097844A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52106655A (en) * 1976-03-05 1977-09-07 Nippon Telegr & Teleph Corp <Ntt> Micro-program abnormality detecting device
JPS62130434A (en) * 1985-12-03 1987-06-12 Mitsubishi Electric Corp Program error detecting circuit
JPH01140350A (en) * 1987-11-27 1989-06-01 Nec Corp Circuit for detecting runway of program in microcomputer
JPH02114339A (en) * 1988-10-24 1990-04-26 Nec Corp Cpu monitoring device
JPH04111138A (en) * 1990-08-31 1992-04-13 Fujitsu Ltd Detection system for software fault
JPH06324914A (en) * 1993-05-13 1994-11-25 Fuji Electric Co Ltd Runaway detecting method for computer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52106655A (en) * 1976-03-05 1977-09-07 Nippon Telegr & Teleph Corp <Ntt> Micro-program abnormality detecting device
JPS62130434A (en) * 1985-12-03 1987-06-12 Mitsubishi Electric Corp Program error detecting circuit
JPH01140350A (en) * 1987-11-27 1989-06-01 Nec Corp Circuit for detecting runway of program in microcomputer
JPH02114339A (en) * 1988-10-24 1990-04-26 Nec Corp Cpu monitoring device
JPH04111138A (en) * 1990-08-31 1992-04-13 Fujitsu Ltd Detection system for software fault
JPH06324914A (en) * 1993-05-13 1994-11-25 Fuji Electric Co Ltd Runaway detecting method for computer

Similar Documents

Publication Publication Date Title
US8327100B2 (en) Execute only access rights on a Von Neuman architectures
US9026866B2 (en) Method and system for realtime detection of stack frame corruption during nested procedure calls
US6553512B1 (en) Method and apparatus for resolving CPU deadlocks
US9176739B2 (en) System and method for checking run-time consistency for sequentially and non-sequentially fetched instructions
US7904771B2 (en) Self-diagnostic circuit and self-diagnostic method for detecting errors
KR20160145503A (en) Circuitry and method for testing an error-correction capability
US10108469B2 (en) Microcomputer and microcomputer system
JP4893427B2 (en) Microcomputer system
JP5292706B2 (en) Computer system
US20080148016A1 (en) Multiprocessor system for continuing program execution upon detection of abnormality
KR100521110B1 (en) Event handling
JP2006344087A (en) Task management device for controller and task management method for controller
WO2010097844A1 (en) Runaway detection device
US8032720B2 (en) Memory access monitoring apparatus and related method
US6990569B2 (en) Handling problematic events in a data processing apparatus
US9256495B2 (en) Processing unit and error processing method
JP6332134B2 (en) Memory diagnostic circuit
CN116700786B (en) Microcontroller and method for preventing Flash of microcontroller from being erased by mistake
KR20080044652A (en) Method for debugging by using stack of cpu
JP3616588B2 (en) Micro program check system
RU2615314C1 (en) Method for increasing microcomputer reliability
JP4842036B2 (en) Semiconductor device and abnormality detection method of timing control circuit
JP6221110B2 (en) Apparatus and method for determining and resolving errors in a processing apparatus
WO2016042751A1 (en) Memory diagnosis circuit
CN117312137A (en) Interrupt driver-oriented atomic violation defect detection method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09840698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09840698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP