JPH0644201A - Monitor device for computer system using shared memory - Google Patents

Monitor device for computer system using shared memory

Info

Publication number
JPH0644201A
JPH0644201A JP4057839A JP5783992A JPH0644201A JP H0644201 A JPH0644201 A JP H0644201A JP 4057839 A JP4057839 A JP 4057839A JP 5783992 A JP5783992 A JP 5783992A JP H0644201 A JPH0644201 A JP H0644201A
Authority
JP
Japan
Prior art keywords
signal
shared memory
generated
time
ready
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
JP4057839A
Other languages
Japanese (ja)
Inventor
Chiharu Matsumura
千春 松村
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP4057839A priority Critical patent/JPH0644201A/en
Publication of JPH0644201A publication Critical patent/JPH0644201A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To analytically detect abnormality of the computer system which uses the shared memory by monitoring a CPU's access request and the response state of the shared memory. CONSTITUTION:This device is equipped with a means which sets a 1st flag 13 when no delay signal is generated even a set time T1 after a chip select signal is generated and a use right acquisition signal is generated and a means which sets a 2nd flag 16 when a ready signal and the use right acquisition signal are generated even a 2nd set time T2 longer than the time T1 is elapsed after the chip select signal is generated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、共有メモリを用いた
コンピュータシステムにおいて、共有メモリに正常にア
クセスすることができない状態を分析的に監視する監視
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a monitoring system for analytically monitoring a state in which a shared memory cannot be normally accessed in a computer system using the shared memory.

【0002】[0002]

【従来の技術】マイクロプロセッサを中心とした各種の
コンピュータでは、プログラムにしたがってCPUが他
のデバイス(主メモリや外部メモリなど)にアクセスす
ることでさまざまな処理を実行しているわけだが、プロ
グラムの開発段階では、デバッグ中にプログラムの何ら
かのミスによってCPUを暴走させてしまうことが起き
やすい。プログラムミスをチェックするには、各命令を
逐一追って不正なアドレスなどが出力されていないか確
認しながら動作試験を行わなければならない。
2. Description of the Related Art In various computers such as microprocessors, a CPU accesses various devices (main memory, external memory, etc.) according to a program to perform various processes. In the development stage, it is easy for the CPU to run away due to some mistake in the program during debugging. In order to check a program error, it is necessary to perform an operation test while checking each instruction step by step to check whether an illegal address is output.

【0003】[0003]

【発明が解決しようとする課題】CPUを暴走させてし
まうと、リセット信号を入力して再び同じプログラムを
不正なアドレスが出力されていないか確認しながら実行
し、プログラムリストを追いながらデバッグを繰り返さ
なければならない。この方法では、シングルステップな
どの手段でプログラムを実行させて確認することになる
ので、たいへんな時間がかかり、作業効率が非常に悪か
った。その原因のひとつは、CPUが暴走したときに、
暴走したという結果しか分からないことにある。したが
ってプログラム作成者にすべてまかせて暴走の原因を解
析してもらうしかない。
When the CPU is runaway, a reset signal is input and the same program is executed again while checking whether an illegal address is output, and debugging is repeated while following the program list. There must be. With this method, the program is executed by means such as a single step for confirmation, so it takes a lot of time and the work efficiency is very poor. One of the causes is that when the CPU goes out of control,
The only thing that is known is the result of a runaway. Therefore, we have no choice but to ask the program creator to analyze the cause of the runaway.

【0004】CPUがどのデバイスにアクセスしようと
したときに暴走したのかが分かれば、デバッグは相当簡
単になる。しかし、そのための適切なツールはなかっ
た。特に、複数のシステム(CPU)で共通のメモリに
アクセスすることができるようにした場合、共有メモリ
にアクセスしようとしたときに暴走したとすると、その
ことを発見するのは非常に難しくなり、デバッグがいっ
そう面倒になるという問題があった。
Debugging can be fairly simple if you know which device the CPU was trying to access when it went out of control. But there was no suitable tool for that. In particular, if it is possible to access a common memory in multiple systems (CPUs), and if a runaway occurs when trying to access the shared memory, it will be very difficult to discover that, and debug There was a problem that was even more troublesome.

【0005】この発明は前述した従来の問題点に鑑みな
されたもので、その目的は、共有メモリを用いたコンピ
ュータシステムにおいて、CPUのアクセス要求と共有
メモリの応答状況を監視して、その異常を分析的に検出
することができるようにした監視装置を提供することに
ある。
The present invention has been made in view of the above-mentioned conventional problems. An object of the present invention is to monitor an access request of a CPU and a response status of the shared memory in a computer system using the shared memory to detect an abnormality. It is to provide a monitoring device capable of being detected analytically.

【0006】[0006]

【課題を解決するための手段】この発明の監視装置は、
CPUが共有メモリにアクセスしようとするときにアド
レスデコーダから発生するチップ選択信号と、このチッ
プ選択信号に応答してレディ回路から所定時間後に発生
するレディ信号と、前記チップ選択信号に応答して前記
共有メモリの状態に応じて調停回路から出力される使用
権獲得信号とを入力とし、前記チップ選択信号が発生し
てから設定時間T1を経過しても前記レディ信号が発生
せず、かつその時点で前記使用権獲得信号が発生してい
る場合に第1のフラグをセットする手段と、前記チップ
選択信号が発生してから前記時間T1より長い第2の設
定時間T2を経過しても前記レディ信号および前記使用
権獲得信号が発生しない場合に第2のフラグをセットす
る手段とを備えたものである。
The monitoring device of the present invention comprises:
A chip select signal generated from the address decoder when the CPU attempts to access the shared memory, a ready signal generated after a predetermined time from the ready circuit in response to the chip select signal, and the chip select signal in response to the chip select signal. The use right acquisition signal output from the arbitration circuit according to the state of the shared memory is used as an input, and the ready signal is not generated even when the set time T1 has elapsed after the chip selection signal was generated, and at that time point. Means for setting the first flag when the usage right acquisition signal is generated, and the ready even after the second set time T2 longer than the time T1 has elapsed since the chip selection signal was generated. Signal and means for setting a second flag when the usage right acquisition signal does not occur.

【0007】[0007]

【作用】前記チップ選択信号が出力されてから所定時間
経過しているのに前記レディ信号が出力されない状態は
何らかの異常事態と考えられるが、共有メモリに関して
は、メモリを共用する他のシステムによるアクセス状態
を考慮しないと、単純に一定時間異常レディ信号が発生
しないことで異常とは決めることができない。前記のよ
うに構成されたこの発明の監視装置では、共有メモリの
使用権を獲得している場合と獲得していない場合それぞ
れ合せて、異常監視のための設定時間をT1とT2の2
種類用意している。そして、それぞれの状態にてレディ
信号の異常が検出されたなら、前記の第1または第2の
フラグで両者を区別して記憶する。
The state in which the ready signal is not output even though the predetermined time has elapsed after the chip selection signal is output is considered to be an abnormal situation. However, the shared memory is accessed by another system that shares the memory. If the state is not taken into consideration, the abnormality cannot be determined simply because the abnormality ready signal is not generated for a certain period of time. In the monitoring device of the present invention configured as described above, the set time for abnormality monitoring is set to 2 of T1 and T2 depending on whether the right to use the shared memory is acquired or not.
Kind prepared. Then, if an abnormality of the ready signal is detected in each state, both are distinguished and stored by the above-mentioned first or second flag.

【0008】[0008]

【実施例】図1はこの発明の監視装置1を備えたコンピ
ュータシステムの一実施例を示している。この例では、
2つのシステムAとBが共有メモリ(デュアルポートメ
モリ)2に対してアクセスすることができる。システム
AのCPU3が共有メモリ2にアクセスしようとする
と、アドレスデコーダ5がアドレス信号からそのことを
検出し、共有メモリ2に対するチップ選択信号が出力さ
れる。このチップ選択信号を受けてアクセス制御回路9
は、共有メモリ2の調停回路4にリクエスト信号を供給
する。調停回路4は、2つのシステムAとBによる共有
メモリ2のアクセス状態を管理しており、状況に応じて
システムAまたはBに使用権獲得信号を与える。また、
アドレスデコーダ5からのチップ選択信号に応答して、
レディ回路6は所定時間後にCPU3に対してレディ信
号を供給する。このレディ信号を受けてCPU3は、ア
ドレスバッファ7、データバッファ8、アクセス制御回
路9を介して共有メモリ2にアクセスする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an embodiment of a computer system equipped with a monitoring device 1 of the present invention. In this example,
Two systems A and B can access the shared memory (dual port memory) 2. When the CPU 3 of the system A tries to access the shared memory 2, the address decoder 5 detects this from the address signal, and the chip selection signal for the shared memory 2 is output. Upon receiving this chip selection signal, the access control circuit 9
Supplies a request signal to the arbitration circuit 4 of the shared memory 2. The arbitration circuit 4 manages the access state of the shared memory 2 by the two systems A and B, and gives a usage right acquisition signal to the system A or B depending on the situation. Also,
In response to the chip selection signal from the address decoder 5,
The ready circuit 6 supplies a ready signal to the CPU 3 after a predetermined time. Upon receiving this ready signal, the CPU 3 accesses the shared memory 2 via the address buffer 7, the data buffer 8 and the access control circuit 9.

【0009】前記のシステム構成において、監視装置1
は、アドレスデコーダ5からのチップ選択信号と、調停
回路4からの使用権獲得信号と、レディ回路6からのレ
ディ信号とに基づいて、以下のように動作する。
In the above system configuration, the monitoring device 1
Operates as follows based on the chip selection signal from the address decoder 5, the usage right acquisition signal from the arbitration circuit 4, and the ready signal from the ready circuit 6.

【0010】図2は監視装置1の具体的な構成例を示し
ている。図2において、タイマ回路11は、チップ選択
信号がオンになった時点からカウントを開始し、レディ
信号がオンになった時点でクリヤされる。タイマ回路1
1の計時値が設定時間T1になると、T1経過信号が出
力され、さらに計時値が設定時間T2になると、タイム
アップ信号が出力される。もちろんT1はT2より小さ
い値である。
FIG. 2 shows a specific example of the configuration of the monitoring device 1. In FIG. 2, the timer circuit 11 starts counting when the chip selection signal is turned on, and is cleared when the ready signal is turned on. Timer circuit 1
When the time value of 1 reaches the set time T1, the T1 elapsed signal is output, and when the time value reaches the set time T2, the time-up signal is output. Of course, T1 is a value smaller than T2.

【0011】チップ選択信号がオンになってからT1時
間経過してもレディ信号が出力されないと、T1経過信
号が出力される。このとき使用権獲得信号がオンになっ
ていると、アンドゲート12の出力がオンになり、第1
のフラグ(フリップフロップ)13がセットされる。
If the ready signal is not output even after the elapse of T1 time from the turning on of the chip selection signal, the T1 elapse signal is output. At this time, if the usage right acquisition signal is turned on, the output of the AND gate 12 is turned on, and
Flag (flip-flop) 13 is set.

【0012】また、チップ選択信号がオンになってから
T2時間経過してもレディ信号が出力されないと、タイ
ムアップ信号が出力される。このとき使用権獲得信号が
オンになっていなければ、アンドゲート15の出力がオ
ンになり、第2のフラグ16がセットされる。
Further, if the ready signal is not output even after T2 time has elapsed after the chip selection signal is turned on, a time-up signal is output. At this time, if the usage right acquisition signal is not turned on, the output of the AND gate 15 is turned on and the second flag 16 is set.

【0013】以上のように、チップ選択信号に対してT
1内に共有メモリ2の使用権が獲得できた場合は、T1
までにレディ信号が発せられないと何らかの異常と判断
し、第1のフラグ13をセットする。T1内に使用権獲
得信号がオンにならない場合は、レディ信号がT1内に
発生しなくても異常とは見なさない。共有メモリ2の使
用権が得られないままT2時間経過し、しかもそれまで
レディ信号が発せられないと何らかの異常と判断し、第
2のフラグ16をセットする。
As described above, the T
If the right to use the shared memory 2 can be obtained within 1, T1
If no ready signal is issued by then, it is determined that there is some abnormality, and the first flag 13 is set. If the usage right acquisition signal does not turn on within T1, it is not considered abnormal even if the ready signal does not occur within T1. If the time T2 has elapsed without obtaining the right to use the shared memory 2 and no ready signal has been issued until then, it is determined that there is something abnormal and the second flag 16 is set.

【0014】[0014]

【発明の効果】以上詳細に説明したように、この発明の
監視装置によれば、共有メモリを用いたコンピュータシ
ステムにおいて共有メモリのアクセスに関わる異常の発
生を共有メモリの使用権の獲得状況に応じて適切に検出
することができるので、プログラムのデバッグの際にC
PUの暴走が起きたとき、共有メモリに対する不正な操
作があったか否かが簡単に分かり、暴走の原因解析作業
が非常に簡単になる。
As described in detail above, according to the monitoring apparatus of the present invention, in a computer system using a shared memory, occurrence of an abnormality relating to access to the shared memory is determined according to the acquisition status of the right to use the shared memory. Can be detected properly by using C
When a PU runaway occurs, it is easy to know whether or not there is an illegal operation on the shared memory, and the task of analyzing the cause of the runaway becomes very easy.

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

【図1】この発明の監視装置を備えたコンピュータシス
テムの概略構成図
FIG. 1 is a schematic configuration diagram of a computer system including a monitoring device of the present invention.

【図2】図1における監視装置の具体的な回路例を示す
ブロック図
FIG. 2 is a block diagram showing a specific circuit example of the monitoring device in FIG.

【符号の説明】[Explanation of symbols]

1 監視装置 2 共有メモリ 13 第1のフラグ 16 第2のフラグ 1 Monitoring Device 2 Shared Memory 13 First Flag 16 Second Flag

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 CPUが共有メモリにアクセスしようと
するときにアドレスデコーダから発生するチップ選択信
号と、このチップ選択信号に応答してレディ回路から所
定時間後に発生するレディ信号と、前記チップ選択信号
に応答して前記共有メモリの状態に応じて調停回路から
出力される使用権獲得信号とを入力とし、前記チップ選
択信号が発生してから設定時間T1を経過しても前記レ
ディ信号が発生せず、かつその時点で前記使用権獲得信
号が発生している場合に第1のフラグをセットする手段
と、前記チップ選択信号が発生してから前記時間T1よ
り長い第2の設定時間T2を経過しても前記レディ信号
および前記使用権獲得信号が発生しない場合に第2のフ
ラグをセットする手段とを備えたことを特徴とする共有
メモリを用いたコンピュータシステムの監視装置。
1. A chip select signal generated from an address decoder when a CPU attempts to access a shared memory, a ready signal generated after a predetermined time from a ready circuit in response to the chip select signal, and the chip select signal. In response to the state of the shared memory, the right-of-use acquisition signal output from the arbitration circuit is used as an input, and the ready signal is not generated even when the set time T1 has elapsed since the chip selection signal was generated. And a second setting time T2 longer than the time T1 has elapsed since the chip select signal was generated, when the usage right acquisition signal is generated at that time. Even if the ready signal and the usage right acquisition signal are not generated, a means for setting a second flag is provided, and a controller using a shared memory is provided. Computer monitoring system.
JP4057839A 1992-03-16 1992-03-16 Monitor device for computer system using shared memory Pending JPH0644201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4057839A JPH0644201A (en) 1992-03-16 1992-03-16 Monitor device for computer system using shared memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4057839A JPH0644201A (en) 1992-03-16 1992-03-16 Monitor device for computer system using shared memory

Publications (1)

Publication Number Publication Date
JPH0644201A true JPH0644201A (en) 1994-02-18

Family

ID=13067138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4057839A Pending JPH0644201A (en) 1992-03-16 1992-03-16 Monitor device for computer system using shared memory

Country Status (1)

Country Link
JP (1) JPH0644201A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6069754A (en) * 1983-09-26 1985-04-20 Hitachi Ltd Computer system abnormality detection method and device
JPS63174158A (en) * 1987-01-14 1988-07-18 Nissin Electric Co Ltd Multiprocessor system
JPH01286070A (en) * 1988-05-13 1989-11-17 Nec Corp Data processing system
JPH03220661A (en) * 1990-01-26 1991-09-27 Nec Ibaraki Ltd System for communication between processors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6069754A (en) * 1983-09-26 1985-04-20 Hitachi Ltd Computer system abnormality detection method and device
JPS63174158A (en) * 1987-01-14 1988-07-18 Nissin Electric Co Ltd Multiprocessor system
JPH01286070A (en) * 1988-05-13 1989-11-17 Nec Corp Data processing system
JPH03220661A (en) * 1990-01-26 1991-09-27 Nec Ibaraki Ltd System for communication between processors

Similar Documents

Publication Publication Date Title
EP1588260B1 (en) Hot plug interfaces and failure handling
EP0702297B1 (en) A data processor with breakpoint circuit
RU2137182C1 (en) Execution of data processing instruction
US12007875B2 (en) Chip having debug memory interface and debug method thereof
US5678003A (en) Method and system for providing a restartable stop in a multiprocessor system
US6985980B1 (en) Diagnostic scheme for programmable logic in a system on a chip
US6968410B2 (en) Multi-threaded processing of system management interrupts
JPH0644201A (en) Monitor device for computer system using shared memory
JPS58181160A (en) Controlling system of emergency operation
JP2737645B2 (en) Program debug device
JP2006185365A (en) Semiconductor device and debugging method
US7404120B1 (en) Verification of event handling
JPS6051141B2 (en) Program runaway detection method
JPH0149975B2 (en)
JP2569694B2 (en) Disk controller
US20030233407A1 (en) Control device
JP2008152665A (en) Operation analysis method of semiconductor integrated circuit
JPH0822441A (en) Information processor and its communication error detecting method
JPS6111855A (en) Function diagnosing method of data processor
JPH10340250A (en) Method and load device for evaluating bus conflict operation
JPH0675825A (en) Computer system
JPH04182835A (en) Bus monitor device for multiprocessor system
JPS62100845A (en) Test system for information processor
JPH03252831A (en) Method for collecting ras information by dma transfer
JPH0315949A (en) Debugging system