JPH02245941A - Address inspection device - Google Patents

Address inspection device

Info

Publication number
JPH02245941A
JPH02245941A JP1068489A JP6848989A JPH02245941A JP H02245941 A JPH02245941 A JP H02245941A JP 1068489 A JP1068489 A JP 1068489A JP 6848989 A JP6848989 A JP 6848989A JP H02245941 A JPH02245941 A JP H02245941A
Authority
JP
Japan
Prior art keywords
address
microprocessor
output
signal
cycle
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
JP1068489A
Other languages
Japanese (ja)
Inventor
So Akai
赤井 創
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1068489A priority Critical patent/JPH02245941A/en
Publication of JPH02245941A publication Critical patent/JPH02245941A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To improve the reliability of a microprocessor by adding a simple inspecting circuit outside the microprocessor and detecting the trouble of the address output of the microprocessor speedily. CONSTITUTION:The microprocessor 1 outputs an address which increases, one by one, from its address bus as long as its operation is normal except during the fetching of a jump instruction, an interruption acknowledge cycle, and resetting. An address comparison part 2 compares the address of a last cycle with a current address under conditions where a function code indicates a program fetch so that the address output is normal when the both match each other and abnormal when not. Thus, the trouble of the address output or address bus is securely detected to stop the operation of the microprocessor immediately. Consequently, the reliability of the operation of the microprocessor 1 can be improved.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、マイクロプロセッサが搭載されたカードの故
障の検査を行う検査装置に関し、更に詳しくは、マイク
ロプロセッサのアドレス出力またはアドレスバスの故障
を検出するアドレス故障検出装置に関する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to an inspection device for inspecting a card equipped with a microprocessor for failure, and more specifically, for inspecting a failure in the address output or address bus of a microprocessor. The present invention relates to an address failure detection device.

〈従来の技術〉 マイクロプロセッサはデータバスを介してメモリや各種
の!10に接続され、制御や演算などの各種の仕事を処
理する。このようなマイクロプロセッサを搭載したプロ
セッサカードでは、メモリやデータバスの故障を検出す
るために、パリティビット等を付加してチエツクするこ
とがよく行われている。
<Conventional technology> A microprocessor uses a data bus to access memory and various types of data. 10 and handles various tasks such as control and calculation. In a processor card equipped with such a microprocessor, a parity bit or the like is often added and checked in order to detect failures in the memory or data bus.

これにより、メモリの故障は勿論データバスのトライバ
/レシーバ、レジスタ等の故障が検出できる。また、マ
イクロプロセッサのデータ出力部については、パリティ
ビットが付加されていないために、ハードウェアの検査
は簡単にはできないが、特定番地に書き込んだデータを
読み返し、比較照合など行うことで検査は可能である。
As a result, not only memory failures but also failures in the data bus driver/receiver, registers, etc. can be detected. Furthermore, since a parity bit is not added to the data output section of the microprocessor, it is not possible to easily test the hardware, but it is possible to test the data by reading back the data written to a specific address and comparing and verifying it. It is.

一方、マイクロプロセッサのアドレス出力については、
プログラムメモリが含まれている場合を除いて、故障し
た場合に直ちにプログラムの実行自体が誤動作するため
、いずれは無応答領域のアクセスでのバスエラーや、ウ
オッチドックタイマ−のタイムアツプ等が発生し、故障
を検出することができる。
On the other hand, regarding the address output of the microprocessor,
Unless program memory is included, the program execution itself will malfunction immediately in the event of a failure, resulting in bus errors when accessing unresponsive areas, watchdog timer time-ups, etc. Failures can be detected.

〈発明が解決しようとする課題〉 しかしながら、マイクロプロセッサのアドレス出力の故
障は、その故障が検出されるまでは誤動作による誤った
データを外部に出力する危険が高いという問題点がある
<Problems to be Solved by the Invention> However, a problem with a malfunction in the address output of a microprocessor is that there is a high risk of outputting erroneous data to the outside due to malfunction until the malfunction is detected.

本発明は、この様な点に鑑みてなされたものであって、
マイクロプロセッサの外部に簡単な検査回路を付加する
ことによって、マイクロプロセッサのアドレス出力の故
障を迅速に検出できるようにし、マイクロプロセッサの
信頼性を高めることを目的とする。
The present invention has been made in view of these points, and
The purpose of this invention is to quickly detect failures in the address output of a microprocessor by adding a simple test circuit to the outside of the microprocessor, thereby increasing the reliability of the microprocessor.

く課題を解決するための手段〉 前記した課題を解決する本発明は、 内部にはプログラムメモリが含まれておらず、少なくと
もプログラムフェッチかそれ以外かの動作状態を示すコ
ードを出力するマイクロブロセ・ソサにおけるアドレス
出力の故障検出装置であって、マイクロプロセッサから
の動作状態を示すコードがプログラムフェッチを示す時
、前サイクルのアドレスと今回サイクルのアドレスを比
較し、それが1つだけ増加しているとき正常、それ以外
はエラーを示す信号を出力するアドレス比較部と、マイ
クロプロセッサのジャンプ命令のフェッチ、割り込みア
クノリッジサイクルの実行、リセット中を検知し、その
後一定時間前記アドレス比較部の出力をマスクするマス
ク機能部と を設けて構成される。
Means for Solving the Problems> The present invention solves the above problems by using a microprocessor that does not include a program memory inside and outputs a code indicating at least the operating state of program fetch or something else.・This is a failure detection device for the address output in SOSA, and when the code indicating the operating status from the microprocessor indicates a program fetch, it compares the address of the previous cycle and the address of the current cycle, and detects if the address is incremented by one. There is an address comparator that outputs a signal that indicates normality when the error is present, and an error signal otherwise, and detects when the microprocessor is fetching a jump instruction, executing an interrupt acknowledge cycle, or resetting, and then masks the output of the address comparator for a certain period of time. It is configured by providing a mask function section to

く作用〉 マイクロプロセッサは、ジャンプ命令のフェッチ、割り
込みアクノリッジサイクルの実行、リセット中を除いて
、その動作が正常であればアドレスバスからは順次、1
づつ増加するアドレスを出力している。
Function> If the microprocessor is operating normally, except for fetching jump instructions, executing interrupt acknowledge cycles, and during reset, the microprocessor will sequentially receive one message from the address bus.
It outputs an address that increases by increments.

アドレス比較部は、ファンクションコードがプログラム
フェッチを示す条件で前サイクルのアドレスと今回アド
レスとを比較し、両者が一致していればアドレス出力が
正常とし、不一致の場合異常とする。
The address comparison unit compares the address of the previous cycle with the current address under the condition that the function code indicates program fetch, and if they match, the address output is determined to be normal, and if they do not match, it is determined to be abnormal.

〈実施例〉 以下図面を用いて、本発明の実施例を詳細に説明する。<Example> Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は、本発明の一実施例を示す構成ブロック図であ
る。図において、1はマイクロプロセッサで、ここから
は少なくとも、プログラムフェッチかそれ以外かの動作
状態を示すコード(ファンクションコード)FCを出力
するもので、内部にはプログラムメモリが含まれていな
いものとする。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a microprocessor that outputs at least a code (function code) FC that indicates the operating status of program fetch or something else, and it is assumed that no program memory is included inside. .

2はマイクロプロセッサ1からの動作状態を示すコード
FCがプログラムフェッチを示す時、前サイクルのアド
レスも今回サイクルのアドレスを比較し、それが1つだ
け増加しているとき正常、それ以外はエラーを示す信号
ADERRを出力するアドレス比較部である。
2 is a code indicating the operating status from microprocessor 1. When FC indicates a program fetch, the address of the previous cycle is compared with the address of the current cycle, and if it increases by one, it is normal, otherwise it is an error. This is an address comparator section that outputs a signal ADERR indicating the address.

3はマイクロプロセッサ1のジャンプ命令のフェッチ、
割り込みアクノリッジサイクルの実行、リセット中を検
知し、その後一定時間アドレス比較部2の出力をマスク
するマスク機能部である。
3 is the fetch of the jump instruction of microprocessor 1,
This is a mask function section that detects execution of an interrupt acknowledge cycle and during reset, and then masks the output of the address comparison section 2 for a certain period of time.

4はマイクロプロセッサ1にアドレスバスABとデータ
バスDBを介して結合するメモリ及びメモリアクセス用
タイミング制御部である。
Reference numeral 4 denotes a memory and memory access timing control unit coupled to the microprocessor 1 via an address bus AB and a data bus DB.

アドレス比較部2は、マイクロプロセッサ1からのアド
レス信号A1マイクロプロセッサの動作状態を示すファ
ンクションコードFCを入力すると共に、アドレス信号
のラッチタイミングを得るため、マイクロプロセッサ1
からの制御信号CTLSIGの中のアドレスストローブ
を人力している。また、ここから出力されるアドレスエ
ラー信号ADERRは、この例ではマイクロプロセッサ
1のHALT端子に印加されており、エラー発生時には
マイクロプロセッサ1の動作を直ちに停止するように構
成しである。
The address comparator 2 inputs the address signal A1 from the microprocessor 1 and the function code FC indicating the operating state of the microprocessor, and also inputs the address signal A1 from the microprocessor 1 to obtain the latch timing of the address signal.
The address strobe in the control signal CTLSIG is manually controlled. Further, the address error signal ADERR output from this is applied to the HALT terminal of the microprocessor 1 in this example, and the configuration is such that the operation of the microprocessor 1 is immediately stopped when an error occurs.

マスク機能部3は、マイクロプロセッサ1からのファン
クションコードFC,データ信号り、命令フェッチ時の
メモリ4からのデータをラッチするタイミングを得るた
め、制御信号中のデータストローブDS、データトラン
スアクノリッジDTAC,リード/ライト信号を入力し
ており、これらに加え、割り込みアクノリッジサイクル
を示す信号IACK、  リセット信号RESETを入
力しており、ここからのマスク信号はアドレス比較部2
に出力している。このマスク機能部3は、マイクロプロ
セッサ1におけるジャンプ命令のフェッチ、割り込みア
クノリッジサイクルの実行、リセット中を検出しており
、これらを検出後一定時間マスク信号をアクチブ(ロー
レベル)にするように構成されている。
The mask function unit 3 uses the function code FC from the microprocessor 1, the data signal, and the data strobe DS, data trans acknowledge DTAC, and read in the control signals in order to obtain the timing to latch the data from the memory 4 when fetching the instruction. /write signal is input, and in addition to these, the signal IACK indicating the interrupt acknowledge cycle and the reset signal RESET are input, and the mask signal from this is input to the address comparator 2.
It is output to. This mask function unit 3 detects the fetching of a jump instruction, the execution of an interrupt acknowledge cycle, and the resetting in the microprocessor 1, and is configured to make the mask signal active (low level) for a certain period of time after detecting these. ing.

第2図は、第1図においてアドレス比較部2の内部構成
の一例を示すブロック図である。
FIG. 2 is a block diagram showing an example of the internal configuration of the address comparator 2 in FIG. 1.

この図において、21はマイクロプロセッサ1からのア
ドレス信号Aを保持するnビットレジスタ、22はnビ
ットレジスタ21で保持されたアドレス信号に1を加え
、これを保持するnビットカウンタ、23はレジスタ2
1からの今回のアドレス信号とカウンタ22に保持され
ているアドレス信号との一致を判定する一致判定手段、
24は一致判定手段23からの判定結果を保持するフリ
ップフロップである。
In this figure, 21 is an n-bit register that holds address signal A from microprocessor 1, 22 is an n-bit counter that adds 1 to the address signal held in n-bit register 21 and holds this, and 23 is register 2.
a coincidence determination means for determining coincidence between the current address signal from 1 and the address signal held in the counter 22;
24 is a flip-flop that holds the judgment result from the coincidence judgment means 23.

なお、25.26はアドレスストローブASを一定時間
遅らせるためのデイレイ回路である。
Note that 25 and 26 are delay circuits for delaying the address strobe AS for a certain period of time.

このように構成した回路の動作を説明すれば以下の通り
である。
The operation of the circuit configured in this way will be explained as follows.

マイクロプロセッサ1からのアドレス信号Aは、アドレ
スバスを介してメモリ4及びアドレス比較部2に印加さ
れている。アドレス比較部2において、レジスタ21は
、ファンクションコードFCが命令フェッチを示してい
る時、アドレスストローブASがアクティブとなるエツ
ジでアドレス信号Aをラッチする。ここで前回ラッチし
た前サイクルのアドレスは、アドレスストローブASが
インアクティブの期間に、カウンタ22にロードされて
おり、アドレスストローブがアクティブになった時点か
ら一定のタイミングをとってカウントアツプする。
Address signal A from microprocessor 1 is applied to memory 4 and address comparator 2 via an address bus. In the address comparator 2, the register 21 latches the address signal A at the edge where the address strobe AS becomes active when the function code FC indicates an instruction fetch. Here, the address of the previous cycle latched last time is loaded into the counter 22 while the address strobe AS is inactive, and counts up at a constant timing from the time the address strobe becomes active.

一致判定手段23は、その後カウンタ22の出力と、レ
ジスタ21にラッチされたアドレスとを比較し、その結
果を、アドレスストローブASのデイレイ信号でフリッ
プフロップ24にラッチする。ここで、不一致が検出さ
れた時には、フリップフロップ24はセットされ、アド
レスエラー信号ADERRをアクティブにする。フリッ
プフロップ24は、マスク機能部3から出力されるマス
ク信号(ローアクティブ)がローレベルになると、リセ
ットされる。
The coincidence determining means 23 then compares the output of the counter 22 with the address latched in the register 21, and latches the result in the flip-flop 24 using the delay signal of the address strobe AS. Here, when a mismatch is detected, the flip-flop 24 is set and makes the address error signal ADERR active. The flip-flop 24 is reset when the mask signal (low active) output from the mask function section 3 becomes low level.

一方、マスク機能部3は、そこに入力されている各信号
の状態を監視しており、 (a)ファンクションコードFCが命令フェッチを示す
時に、プログラムメモリから読み出されるデータを傍受
し、データトランスファアクノリジDATCKがアクテ
ィブとなるエツジで、内部に取り込み(データストロー
ブDSがアクティブ。
On the other hand, the mask function unit 3 monitors the status of each signal input thereto, and (a) intercepts the data read from the program memory when the function code FC indicates an instruction fetch and sends a data transfer acknowledge signal. At the edge where rigid DATCK becomes active, it is captured internally (data strobe DS is active).

リード/ライトがリードであることが条件)、命令がジ
ャンプ系(ジャンプ、ブランチ、ジャンプサブルーチン
など)の命令であることを判断するか、 (b)マイクロプロセッサ1からの割り込みアクノリジ
サイクルを示す信号IACKがアクティブとなることを
検出(割り込みアクノリジサイクルであることを知る)
したときか、 (C)リセット信号RESTがアクティブからインアク
ティブになったことを検出したときに一定時間だけ、マ
スク信号をローレベル(アクティブ)にする。
(b) A signal indicating an interrupt acknowledge cycle from microprocessor 1. Detects that IACK becomes active (knows that it is an interrupt acknowledge cycle)
(C) When it is detected that the reset signal REST changes from active to inactive, the mask signal is set to low level (active) for a certain period of time.

マイクロプロセッサ1は、前記した(a)〜(C)の場
合を除いて、正常な動作時には1づつ増加するアドレス
信号を出力しており、アドレス出力が正常であれば、ア
ドレス比較部2において、一致判定手段23に印加され
る2つの信号は一致したものとなる。
Except for the cases (a) to (C) mentioned above, the microprocessor 1 outputs an address signal that increases by 1 during normal operation, and if the address output is normal, the address comparator 2 The two signals applied to the coincidence determining means 23 match.

これに対して、アドレス出力あるいはアドレスバスに故
障が生ずると、その規則的な動作が乱れることとなるの
で、一致判定手段23に印加される2つの信号は異なる
ものとなり、これらの故障が検出される。この結果、ア
ドレスエラー信号がマイクロプロセッサ1に印加され、
マイクロプロセッサ1の動作を直ちに停止することがで
きる。
On the other hand, if a failure occurs in the address output or the address bus, the regular operation will be disrupted, so the two signals applied to the coincidence determination means 23 will be different, and these failures will not be detected. Ru. As a result, an address error signal is applied to the microprocessor 1,
The operation of the microprocessor 1 can be stopped immediately.

〈発明の効果〉 アドレス出力またはアドレスバスが故障すると、マイク
ロプロセッサの動作は全く予想もできない危険な状態に
なる。
<Effects of the Invention> If the address output or address bus fails, the operation of the microprocessor will be in a completely unpredictable and dangerous state.

本発明によればアドレス出力あるいはアドレスバスの故
障を、確実に検出してマイクロプロセッサの動作を直ち
に停止させることができるもので、マイクロプロセッサ
の動作の信頼性を格段に向上できる。
According to the present invention, it is possible to reliably detect a failure in the address output or the address bus and immediately stop the operation of the microprocessor, thereby significantly improving the reliability of the operation of the microprocessor.

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

第1図は本発明の一実施例を示す構成ブロック図、第2
図は第1図においてアドレス比較部の内部構成の一例を
示すブロック図である。 1・・・マイクロプロセッサ 2・・・アドレス比較部  3・・・マスク機能部4・
・・メモリ及びタイミング制御部 筒 図
FIG. 1 is a configuration block diagram showing one embodiment of the present invention, and FIG.
This figure is a block diagram showing an example of the internal configuration of the address comparison section in FIG. 1. 1...Microprocessor 2...Address comparison section 3...Mask function section 4.
・・Memory and timing control section diagram

Claims (1)

【特許請求の範囲】 内部にはプログラムメモリが含まれておらず、少なくと
もプログラムフェッチかそれ以外かの動作状態を示すコ
ードを出力するマイクロプロセッサにおけるアドレス出
力の故障検出装置であって、マイクロプロセッサからの
動作状態を示すコードがプログラムフェッチを示す時、
前サイクルのアドレスと今回サイクルのアドレスを比較
し、それが1つだけ増加しているとき正常、それ以外は
エラーを示す信号を出力するアドレス比較部と、マイク
ロプロセッサのジャンプ命令のフェッチ、割り込みアク
ノリッジサイクルの実行、リセット中を検知し、その後
一定時間前記アドレス比較部の出力をマスクするマスク
機能部と を設けたことを特徴とするアドレス検査装置。
[Claims] A failure detection device for address output in a microprocessor that does not include a program memory and outputs a code indicating at least the operating status of program fetch or other operation, the device comprising: When the code indicating the operating status of indicates a program fetch,
An address comparison section that compares the address of the previous cycle with the address of the current cycle, and outputs a signal indicating that it is normal if it has increased by one, otherwise an error, and fetches the microprocessor's jump instruction and acknowledges the interrupt. An address inspection device comprising: a mask function section that detects when a cycle is being executed or during a reset, and then masks the output of the address comparison section for a certain period of time.
JP1068489A 1989-03-20 1989-03-20 Address inspection device Pending JPH02245941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1068489A JPH02245941A (en) 1989-03-20 1989-03-20 Address inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1068489A JPH02245941A (en) 1989-03-20 1989-03-20 Address inspection device

Publications (1)

Publication Number Publication Date
JPH02245941A true JPH02245941A (en) 1990-10-01

Family

ID=13375157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1068489A Pending JPH02245941A (en) 1989-03-20 1989-03-20 Address inspection device

Country Status (1)

Country Link
JP (1) JPH02245941A (en)

Similar Documents

Publication Publication Date Title
US6880113B2 (en) Conditional hardware scan dump data capture
EP1224548B1 (en) System and method improving fault isolation and diagnosis in computers
US5987585A (en) One-chip microprocessor with error detection on the chip
US8255769B2 (en) Control apparatus and control method
JP3711871B2 (en) PCI bus failure analysis method
JPH02245941A (en) Address inspection device
JPH0314148A (en) Program breakdown detecting device
JP2011232910A (en) Memory diagnosis system
JP2559531B2 (en) Redundant system error check circuit
JPH0333939A (en) Microprocessor
JPH0675801A (en) Information processor
JPH03186937A (en) Cpu bus data diagnostic device
JPS5920052A (en) Interruption control circuit of microcomputer system
JPH05289946A (en) Memory control system
JPH07152594A (en) Retry control system for control processor
JPH04182835A (en) Bus monitor device for multiprocessor system
JPH05250192A (en) Instruction code reading retrial circuit
JPS638956A (en) Memory diagnosing circuit
JPS592050B2 (en) Signal bus failure detection method
JPS6029849A (en) Prevention system against malfunction of detecting circuit for processor malfunction
JPH0498326A (en) Microprocessor
JPH07281961A (en) Memory fault detector and computer
JP2005267349A (en) Processing module and control method thereof
JPH09152980A (en) Procedure step processing method
JPS63193249A (en) Microprogram controller