JPH03260859A - Trace data recording system for inter-cpu communication - Google Patents

Trace data recording system for inter-cpu communication

Info

Publication number
JPH03260859A
JPH03260859A JP2060552A JP6055290A JPH03260859A JP H03260859 A JPH03260859 A JP H03260859A JP 2060552 A JP2060552 A JP 2060552A JP 6055290 A JP6055290 A JP 6055290A JP H03260859 A JPH03260859 A JP H03260859A
Authority
JP
Japan
Prior art keywords
data
interface
cpu
storage device
communication
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
JP2060552A
Other languages
Japanese (ja)
Inventor
Hiroichi Toyama
遠山 博一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2060552A priority Critical patent/JPH03260859A/en
Publication of JPH03260859A publication Critical patent/JPH03260859A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To easily isolate a fault occurrence area by using the data equal to that sent onto a bus as the trace data and leaving this trace data in a transmission system RAM. CONSTITUTION:The input side of a 2nd interface 60 is connected to the output side of a 1st interface 40 and the output side of the interface 60 is connected to a 2nd storage 50. When a CPU 11 performs the inter-CPU communication to a reception system 2, a direct memory access controller DMAC 31 sends the data on a 1st storage 20 to a bus via the interface 40 with an instruction of the CPU 11. Under such conditions, the interface 60 fetches the data equal to that sent to the bus via the output side of the interface 40 and writes it into the storage 50. Thus it is possible to keep the data equal to that sent to the system 2 as the trace data and then to effectively isolate a fault occurrence area.

Description

【発明の詳細な説明】 〔概 要〕 CPU間通信障害時にバスの内容をトレースするための
トレースデータの記録方式に関し、CPU間通信におい
て、障害が発生したときに効率的に障害発生個所の切り
分けを行うために、相手CPUに送信したと同じデータ
を自記憶装置に書き込むことができるCPU間通信のト
レースデータ記録方式を提供することを目的とし、デー
タ処理及びCPU間通信を行うCPUと、送信データを
記憶している第1の記憶装置と、第1の記憶装置のデー
タを受信システムへ送信するダイレクトメモリアクセス
コントローラと、受信システムとのインタフェースをと
る第1のインタフェースと、送信データを書き込む第2
の記憶装置よりなる送信システムにおいて、受信システ
ムに送信したと同じデータを第2の記憶装置に書き込む
ための第2のインタフェースを設け、ダイレクトメモリ
アクセスコントローラが送信する第1の記憶装置のデー
タを、第1のインタフェースの出力側から第2のインタ
フェースに取り込み、該データを第2の記憶装置に書き
込むように構成する。
[Detailed Description of the Invention] [Summary] Regarding a trace data recording method for tracing the contents of a bus when a communication failure occurs between CPUs, it is possible to efficiently isolate the location where the failure occurs when a failure occurs in communication between CPUs. The purpose is to provide a trace data recording method for inter-CPU communication that can write the same data sent to the other CPU into its own storage device in order to perform data processing and inter-CPU communication. a first storage device that stores data; a direct memory access controller that sends data in the first storage device to a receiving system; a first interface that interfaces with the receiving system; and a first storage device that writes data to be sent. 2
In a transmission system consisting of a storage device, a second interface is provided for writing the same data transmitted to the reception system into the second storage device, and the data of the first storage device transmitted by the direct memory access controller is The data is configured to be input from the output side of the first interface to the second interface and written to the second storage device.

機器の高速化や多機能化に伴いCPUによる高速な処理
が要求されている。
As devices become faster and more multifunctional, high-speed processing by CPUs is required.

このために、複数のCPUを使用することにより高速化
を図っているが、この複数のCPU間で同じデータが必
要となる場合があり、CPU間通間通量うことにより複
数のCPUに同一のデータを持たせている。
For this purpose, we aim to increase speed by using multiple CPUs, but there are cases where the same data is required between these multiple CPUs. It has data of.

かかるCPU間通間通量いて、障害が発生したときに、
どちらのCPUが障害となったかを知るために効率的に
障害個所を切り分けることが必要であり、相手システム
に送信したと同じデータをトレースデータとして、記憶
装置に書き込んでおく記録方式が要求されている。
When a failure occurs during communication between such CPUs,
In order to know which CPU caused the failure, it is necessary to efficiently isolate the failure location, and a recording method is required that writes the same data sent to the other system as trace data to the storage device. There is.

〔産業上の利用分野〕[Industrial application field]

本発明は、CPU間通信障害時にバスの内容をトレース
するためのトレースデータの記録方式に関する。
The present invention relates to a trace data recording method for tracing the contents of a bus when a communication failure occurs between CPUs.

近年の通信機器、電子機器の進展に伴い広い範囲でCP
Uが使用されるようになっており、更に〔従来の技術〕 第4図は従来例を説明するブロック図、第5図は従来例
の送受信データを説明する図をそれぞれ示す。
With the recent development of communication equipment and electronic equipment, CP is widely used.
[Prior Art] FIG. 4 is a block diagram illustrating a conventional example, and FIG. 5 is a diagram illustrating transmitted and received data in the conventional example.

第4図に示す従来例の送信システムIAは、データ処理
及びCPU間通間通量うCPUIIと、受信システム2
Aに送信するデータを記憶しているランダムアクセスメ
モリ(以下RAMと称する)21と、 CPUIIからの指示により、RAM21のデータを送
信するダイレクトメモリアクセスコントローラ(以下D
MACと称する)31と、受信システム2とのインタフ
ェースをとる通信用LSI41Aと、 RAM21内の送信データを書き込むRAM51から構
成されており、 受信システム2Aは、送信システムIAと同じ構成であ
り、CPU12、RAM22、DMA C32、通信用
LS I 42A、RAM52から構成されている。
The conventional transmitting system IA shown in FIG.
A random access memory (hereinafter referred to as RAM) 21 stores data to be sent to A, and a direct memory access controller (hereinafter referred to as D
(referred to as MAC) 31, a communication LSI 41A that interfaces with the reception system 2, and a RAM 51 that writes the transmission data in the RAM 21. The reception system 2A has the same configuration as the transmission system IA, and has a CPU 12, It is composed of RAM22, DMA C32, communication LSI 42A, and RAM52.

この構成においては、通信用LSI41A、42Aはそ
れぞれ1チヤンネルの送信チャンネル、受信チャンネル
で接続されている。
In this configuration, the communication LSIs 41A and 42A are connected through one transmission channel and one reception channel, respectively.

第5図は、第4図に示す従来例における送受信データを
示し、(1)は、CPUIIより受信システム2Aに送
信するデータであり、(2)は、送信データをトレース
データとして、CPUII経出でRAM51に書き込ん
だデータであり、(3)は、受信システムが通信用LS
 I 42Aを経由してRAM52に書き込んだ受信し
たデータであり、送信システムl内の通信用LSI41
Aの中で、データ化けが発生したものとする。
FIG. 5 shows the transmitted and received data in the conventional example shown in FIG. (3) is the data written to the RAM 51 by the receiving system in the communication LS
This is the received data written to the RAM 52 via the I 42A, and is the communication LSI 41 in the transmission system I.
Assume that data garbled occurs in A.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述の従来例で、通信用LSI41Aの誤動作によるデ
ータ化けが発生したときでも、RAM51には、CPU
IIにより書き込んだRAM21の正しい内容が書き込
まれているので、送信システムIA側でバグが発生した
のに、RAM51上には正常に処理を行ったというトレ
ースデータが残ることになる。
In the conventional example described above, even when data is garbled due to a malfunction of the communication LSI 41A, the CPU
Since the correct contents of RAM 21 written by II have been written, trace data indicating that processing was performed normally remains in RAM 51 even though a bug occurred on the sending system IA side.

本発明は、CPU間通間通量いて、障害が発生したとき
に効率的に障害発生個所の切り分けを行うために、相手
CPUに送信したと同じデータを自記憶装置に書き込む
ことができるCPU間通間通量レースデータ記録方式を
提供することを目的とする。
The present invention provides communication between CPUs that can write the same data sent to the other CPU in its own storage device in order to efficiently isolate the location of the failure when a failure occurs. The purpose is to provide a continuous race data recording method.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発期の原理を説明するブロック図を示す。 FIG. 1 shows a block diagram illustrating the principle of this initiation.

第1図に示す本発明の原理ブロック図の1は送信システ
ムを説明する図であり、図中の11は、データ処理及び
CPU間通信を行うCPUであり、20は、CPUII
に接続され送信データを記憶している第1の記憶装置で
あり、31は、CPU11に接続され、該CPUIIの
指示により第1の記憶装置20のデータを受信システム
2へ送信するダイレクトメモリアクセスコントローラで
ある。
1 in the principle block diagram of the present invention shown in FIG. 1 is a diagram for explaining a transmission system, 11 in the figure is a CPU that performs data processing and communication between CPUs, and 20 is a CPU II
31 is a direct memory access controller that is connected to the CPU 11 and transmits data in the first storage device 20 to the receiving system 2 according to instructions from the CPU II. It is.

また、40は、受信システム2に接続され、インタフェ
ースをとる第1のインタフェースであり、50は、送信
データを書き込む第2の記憶装置であり、60は、受信
システム2に送信したと同じデータを第2の記憶装置5
0に書き込むための、第1のインタフェース40の出力
側に接続されたの第2のインタフェースである。
Further, 40 is a first interface that is connected to the receiving system 2 and serves as an interface, 50 is a second storage device into which the transmitted data is written, and 60 is a second storage device which writes the same data transmitted to the receiving system 2. Second storage device 5
A second interface connected to the output side of the first interface 40 for writing to zero.

CPUIIが、受信システム2とCPU間通信を行うと
きに、ダイレクトメモリアクセスコントローラ31が送
信する第1の記憶装置20のデータを、第1のインタフ
ェース40の出力側から第2のインタフェース60に取
り込み、該データを第2の記憶装置50に書き込むよう
に構成することにより本課題を解決するための手段とす
る。
When the CPU II performs inter-CPU communication with the receiving system 2, it takes in the data of the first storage device 20 transmitted by the direct memory access controller 31 from the output side of the first interface 40 to the second interface 60, This problem is solved by configuring the data to be written to the second storage device 50.

〔作 用〕[For production]

第2のインタフェース60の入力側を、第1のインタフ
ェース40の出力側に接続し、出力側は第2の記憶装置
50に接続する。
The input side of the second interface 60 is connected to the output side of the first interface 40, and the output side is connected to the second storage device 50.

この構成で、CPUIIが、受信システム2と間でCP
U間通信を行うときに、DMAC31はCPUIIの指
示により、第1の記憶手段20のデータを第1のインタ
フェース40を経由してバス上に送出する。
In this configuration, the CPU II communicates with the receiving system 2 via the CP
When performing inter-U communication, the DMAC 31 sends the data in the first storage means 20 onto the bus via the first interface 40 according to instructions from the CPU II.

このとき第2のインタフェース60は、バス上に送出し
たと同じデータを、第1のインタフェース40の出力側
を経由して取り込み、第2の記憶装置50に書き込むこ
とにより、受信システム2に送信したと同じデータをト
レースデータとして残しておくことがことが可能となる
At this time, the second interface 60 takes in the same data sent out on the bus via the output side of the first interface 40 and writes it to the second storage device 50, thereby transmitting it to the receiving system 2. It becomes possible to leave the same data as trace data.

〔実施例〕〔Example〕

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

第2図は本発明の詳細な説明するブロック図、第3図は
本発明の実施例の送受信データを説明する図をそれぞれ
示す。なお、全図を通じて同一符号は同一対象物を示す
FIG. 2 is a block diagram illustrating the present invention in detail, and FIG. 3 is a diagram illustrating transmitted and received data in an embodiment of the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

第2図に示す本発明の実施例は、送信システム11受信
システム2より構成している。
The embodiment of the invention shown in FIG. 2 consists of a transmitting system 11 and a receiving system 2.

送信システムlは、データ処理及びCPU間通信を行う
CPUIIと、 相手CPU12にデータを送信するDMAC31と、 第1図で説明した第1の記憶装置としてRAM21゜ 第2の記憶装置としてRAM51、 第1のインタフェース40及び第2のインタフェース6
0として、送受信チャンネルをそれぞれ2チヤンネル内
蔵する通信用LSI41から構成した例である。
The transmission system 1 includes a CPU II that performs data processing and communication between CPUs, a DMAC 31 that transmits data to the other CPU 12, a RAM 21 as the first storage device explained in FIG. interface 40 and second interface 6
0, this is an example of a communication LSI 41 having two built-in transmitting and receiving channels.

受信システム2も送信システム1と同じ構成であり、C
PU12、RAM22、DMAC32、通信用LSI4
2、RAM52より構成している。
The receiving system 2 also has the same configuration as the transmitting system 1, and C
PU12, RAM22, DMAC32, communication LSI4
2. Consists of RAM 52.

通信用LSI41は、パラレルデータのシリアルデータ
への変換、CPUIIからの指示に従って通信相手先の
設定等を行うものであり、送受信チャンネルをそれぞれ
2チヤンネル内蔵している。
The communication LSI 41 converts parallel data into serial data, sets a communication partner according to instructions from the CPU II, and has two built-in transmission and reception channels.

この通信用LSI41の送信チャンネルを受信チャンネ
ルに接続しておき、CPU間通信を行うときに、CPU
IIにより、受信先をRAM51と、受信システム2に
設定してデータを送信することにより、バス上に送出し
たと同じデータをトレースデータとして、RAM51に
残しておくことが可能となり、バグ発生時には、受信シ
ステム2が受信したデータとトレースデータを比較する
ことにより、障害発生個所を特定することが容易になる
The transmission channel of this communication LSI 41 is connected to the reception channel, and when performing communication between CPUs,
II, by setting the receiving destination to RAM 51 and receiving system 2 and transmitting data, it is possible to leave the same data sent on the bus as trace data in RAM 51, and when a bug occurs, By comparing the data received by the receiving system 2 with the trace data, it becomes easy to identify the location where the failure has occurred.

第2図においては、1を送信システム、2を受信システ
ムとしているが、l、2は同じ構成であるので、lが受
信システム、2が送信システムとなり得ることは勿論で
ある。
In FIG. 2, 1 is a transmitting system and 2 is a receiving system, but since l and 2 have the same configuration, it goes without saying that l can be a receiving system and 2 can be a transmitting system.

第3図は送受信データの例であり、(1)は送信データ
、(2)はRAM51に書き込んだトレースデータ、(
3)は受信システム2が受信しRAM52に書き込んだ
受信データであり、送信システムlの通信用LSI41
の中でデータ化けが発生したときには、(2)のトレー
スデータ、(3)の受信データとは一致しているが、送
信データ(1)とは一致していない。したがって、送信
システムl側でバグが発生しており、更に送信データと
トレースデータの内容を比較して解析するとDθビット
が欠けていることが分かるので、これをキーにして障害
探索を行うことにより、障害発生個所の特定を容易に行
うことができる。
Figure 3 shows an example of transmitted and received data, where (1) is the transmitted data, (2) is the trace data written to the RAM 51, and (
3) is the reception data received by the reception system 2 and written into the RAM 52, and is the data received by the communication LSI 41 of the transmission system 1.
When garbled data occurs in the data, the trace data in (2) and the received data in (3) match, but they do not match the transmitted data (1). Therefore, a bug has occurred on the transmitting system l side, and if you further compare and analyze the contents of the transmitted data and trace data, you will find that the Dθ bit is missing. , the location of the failure can be easily identified.

〔発明の効果] 以上のような本発明によれば、バス上に送出したと同じ
データをトレースデータとして、送信システムのRAM
に残しておくので、CPU間通信においてバクが発生し
たときに、そのトレースデータと受信データを比較する
ことにより、障害発生個所の切り分けを容易に行うこと
のできるCPU間通信のトレースデータ記録方式を提供
することができる。
[Effects of the Invention] According to the present invention as described above, the same data sent on the bus is stored in the RAM of the transmission system as trace data.
Therefore, when a bug occurs in inter-CPU communication, we have developed a trace data recording method for inter-CPU communication that allows you to easily isolate the location of the failure by comparing the trace data with the received data. can be provided.

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

第1図は本発明の詳細な説明するブロック図、第2図は
本発明の詳細な説明するブロック図、第3図は本発明の
実施例の送受信データを説明する図、 第4図は従来例を説明するブロック図、第5図は従来例
の送受信データを説明する図、をそれぞれ示す。 図において、 L IAは送信システム、 2.2Aは受信システム、 1112はCPU 20は第1の記憶装置、 21.22.51,52はRAM。 31.32はDMAC1 40は第1のインタフェース、 41.42.41A、42Aは通信用LSI、50は第
2の記憶装置、 60は第2のインタフェース、 をそれぞれ示す。 受信システムへ 本発明の詳細な説明するブロンク図 第1図 本発明の詳細な説明するブロック図 従来例を説明するブロック図 第4図 (1)送信データ (2) トレースデータ (3)受信データ 第5図
FIG. 1 is a block diagram explaining the present invention in detail, FIG. 2 is a block diagram explaining the present invention in detail, FIG. 3 is a diagram explaining transmitted and received data in an embodiment of the present invention, and FIG. 4 is a conventional block diagram. FIG. 5 is a block diagram explaining an example, and FIG. 5 is a diagram explaining transmitted and received data in a conventional example. In the figure, LIA is a transmitting system, 2.2A is a receiving system, 1112 is a CPU, 20 is a first storage device, and 21, 22, 51, and 52 are RAMs. 31.32 is a DMAC1, 40 is a first interface, 41.42.41A and 42A are communication LSIs, 50 is a second storage device, and 60 is a second interface. Figure 1: Block diagram explaining the present invention in detail Figure 4: Block diagram explaining the conventional example Figure 4: (1) Transmission data (2) Trace data (3) Reception data Figure 5

Claims (1)

【特許請求の範囲】 CPU間通信障害時にバスの内容をトレースするための
データの記録方式であって、 データ処理及びCPU間通信を行うCPU(11)と、
送信データを記憶している第1の記憶装置(20)と、
前記第1の記憶装置(20)のデータを受信システム(
2)へ送信するダイレクトメモリアクセスコントローラ
(31)と、前記受信システム(2)とのインタフェー
スをとる第1のインタフェース(40)と、送信データ
を書き込む第2の記憶装置(50)よりなる送信システ
ム(1)において、 前記受信システム(2)に送信したと同じデータを前記
第2の記憶装置(50)に書き込むための第2のインタ
フェース(60)を設け、 前記CPU(11)が、前記受信システム(2)とCP
U間通信を行うときに、前記ダイレクトメモリアクセス
コントローラ(31)が送信する前記第1の記憶装置(
20)のデータを、前記第1のインタフェース(40)
の出力側から前記第2のインタフェース(60)に取り
込み、該データを前記第2の記憶装置(50)に書き込
むことを特徴とするCPU間通信のトレースデータ記録
方式。
[Claims] A data recording method for tracing the contents of a bus in the event of an inter-CPU communication failure, comprising: a CPU (11) that performs data processing and inter-CPU communication;
a first storage device (20) storing transmission data;
The data in the first storage device (20) is received by a system (
2) a direct memory access controller (31) for transmitting data to the receiving system (2); a first interface (40) for interfacing with the receiving system (2); and a second storage device (50) for writing transmission data. In (1), a second interface (60) is provided for writing the same data transmitted to the receiving system (2) into the second storage device (50), and the CPU (11) System (2) and CP
When performing inter-U communication, the direct memory access controller (31) sends the first storage device (
20) to the first interface (40).
A trace data recording method for inter-CPU communication, characterized in that the data is captured from the output side of the CPU to the second interface (60), and the data is written to the second storage device (50).
JP2060552A 1990-03-12 1990-03-12 Trace data recording system for inter-cpu communication Pending JPH03260859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2060552A JPH03260859A (en) 1990-03-12 1990-03-12 Trace data recording system for inter-cpu communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2060552A JPH03260859A (en) 1990-03-12 1990-03-12 Trace data recording system for inter-cpu communication

Publications (1)

Publication Number Publication Date
JPH03260859A true JPH03260859A (en) 1991-11-20

Family

ID=13145565

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2060552A Pending JPH03260859A (en) 1990-03-12 1990-03-12 Trace data recording system for inter-cpu communication

Country Status (1)

Country Link
JP (1) JPH03260859A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030074866A (en) * 2002-03-14 2003-09-22 엘지산전 주식회사 Device for Controlling a Line Defect of a Switching for Automatic Power Distribution

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030074866A (en) * 2002-03-14 2003-09-22 엘지산전 주식회사 Device for Controlling a Line Defect of a Switching for Automatic Power Distribution

Similar Documents

Publication Publication Date Title
US9952963B2 (en) System on chip and corresponding monitoring method
CN107066413B (en) A method for processing data of multiple bus devices and its bus system
US11928007B2 (en) Monitoring processors operating in lockstep
CN115454705A (en) Fault processing method, related device, computer device, medium, and program
WO2012081085A1 (en) Interrupt source management device and interrupt processing system
CN106372019B (en) A system bus device response timeout processing method and timeout processing device
JPH03260859A (en) Trace data recording system for inter-cpu communication
KR20050080704A (en) Apparatus and method of inter processor communication
JPS6359042A (en) Communication interface equipment
JP3750467B2 (en) USB simulation apparatus and storage medium
CN107770228B (en) 1-Wire communication system and method based on CPCI master control
JPH04108242A (en) Data transfer system for communication controller
JPH08123770A (en) Data communication controller
JP2000231539A (en) Data transfer system and data transfer method
CN106547719A (en) A method for synchronizing system communication and control processing
CN206479978U (en) A kind of bus system for being used to handle multiple bus apparatus data
US9858221B2 (en) Producer/consumer remote synchronization
JP2584903B2 (en) External device control method
CN121501590A (en) A method, system, device, and storage medium for SOC serial port log storage
JPH0744509A (en) Method for inter-cpu communication
JPS6130300B2 (en)
JP2002189704A (en) Shared memory with block transfer function
JPS59221131A (en) Data transmission station
JPH05158904A (en) Multiprocessor system
JPH02299004A (en) Programmable controller monitoring method