JPH07135688A - Data communication method and information processing system - Google Patents

Data communication method and information processing system

Info

Publication number
JPH07135688A
JPH07135688A JP28154993A JP28154993A JPH07135688A JP H07135688 A JPH07135688 A JP H07135688A JP 28154993 A JP28154993 A JP 28154993A JP 28154993 A JP28154993 A JP 28154993A JP H07135688 A JPH07135688 A JP H07135688A
Authority
JP
Japan
Prior art keywords
data
comparison target
target data
information processing
old
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
JP28154993A
Other languages
Japanese (ja)
Inventor
Masao Fujikawa
昌男 藤川
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP28154993A priority Critical patent/JPH07135688A/en
Publication of JPH07135688A publication Critical patent/JPH07135688A/en
Pending legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PURPOSE:To store newest data in a memory by detecting whether or not specific digital information from a serial data communication channel has change during data reception and informing the presence of the change to a central processing unit. CONSTITUTION:The system is provided with a CPU 1, a bus 2, a memory 3, a communication control circuit 5 having a conversion circuit 51 and a register 52, a comparator 7 comprising a register 71 and a comparator circuit 72, an address counter 8 and a write circuit 9. While receiving serial bit string data 6 with tap information from a communication channel L, data of a corresponding old data block 3k stored in the memory 3 based on the tag information are latched in the register 71. Furthermore, the data received by the conversion circuit 51 are latched in the register 52 and both data are compared by the use of the comparator circuit 72 and when dissident, the data in the memory are rewritten.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、通信路で接続される情
報処理装置間で、周期的に送受信される複数の特定のデ
ジタル情報を対象に、それらの情報に変化があったかど
うかをデータ受信中に検知し、変化有りを中央処理装置
に知らせ、メモリには最新データを記憶保持するように
したデータ通信方法および情報処理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is directed to a plurality of specific digital information which is periodically transmitted and received between information processing devices connected by a communication path and receives data whether or not the information is changed. The present invention relates to a data communication method and an information processing system in which the central processing unit is informed of the change by being detected therein and the latest data is stored and held in a memory.

【0002】[0002]

【従来の技術】近年の情報処理システムは、より高機能
化と、高信頼性を求めて、益々、分散化が押し進められ
ている。各機能分割された情報処理装置は、通信路で接
続され、個々のデジタル情報は個別の情報処理装置から
得られるが、このデジタル情報の内、そのシステムで予
め定められた特定なデジタル情報は、上記の上位間通信
路を介して、情報処理装置間で周期的に交信され、シス
テムとして共通なデジタル情報として、各情報処理装置
に共有化され、活用されている。
2. Description of the Related Art In recent years, information processing systems have been increasingly decentralized in order to achieve higher functionality and higher reliability. The information processing devices divided into respective functions are connected by a communication path, and individual digital information is obtained from individual information processing devices. Among the digital information, specific digital information predetermined in the system is The information processing apparatuses periodically communicate with each other via the above-mentioned communication path between upper layers, and are shared and utilized as digital information common to the system by each information processing apparatus.

【0003】また、近年の情報処理装置のシステム化
は、センサの領域にまで広く及び、現場(フィールド)
に設置された機器やセンサからは、フィールドバスを介
して、デジタル情報が送受信される。多くの場合、フィ
ールドバスを介して、現場から情報処理装置へのデジタ
ル情報は、周期的に送信されてくる。上述のような情報
処理システムに接続される情報処理装置において、従来
装置では、新しく受信したデータ、あるいはそのデータ
の集合体としてのデータブロックは、受信したデータ全
体を一旦メモリに書き込み、記憶保持した上で、中央処
理装置(CPU) がその新比較対象データブロックの新比較
対象データと、前回以前に受信してメモリに格納されて
いる対応する旧比較対象データブロックの旧比較対象デ
ータをメモリ上からバスを介して読出して比較処理を行
ない、新比較対象データと旧比較対象データとが不一致
のとき、旧比較対象データを新比較対象データで書換え
ていた。
In recent years, the systematization of information processing apparatuses has spread widely to the area of sensors, and field (field)
Digital information is transmitted and received from devices and sensors installed in the field via the field bus. In many cases, digital information from the site to the information processing device is periodically transmitted via the field bus. In the information processing apparatus connected to the information processing system as described above, in the conventional apparatus, the newly received data or the data block as an aggregate of the data is stored in the memory by temporarily storing the entire received data. In the above, the central processing unit (CPU) stores in the memory the new comparison target data of the new comparison target data block and the old comparison target data of the corresponding old comparison target data block received and stored in the memory before the previous time. When the new comparison target data and the old comparison target data do not match, the old comparison target data is rewritten with the new comparison target data.

【0004】図4は従来技術における情報処理システム
の上位間通信路の概略構成図を示す。図4において、情
報処理装置のシステム構成は、情報処理装置(図示例で
は、A〜D)とシリアルデータ通信路Lとから構成さ
れ、各情報処理装置A〜Dはそれぞれの役割分担した機
能(ディスプレイ機能、監視・制御、データロギングな
ど)を実行し、また、システムとして共有・活用される
データ群は、予め定められた複数種類の特定デジタル情
報のデータブロック(31〜3n)として定め、シリアルデ
ータ通信路Lを介して、情報処理装置間で周期的に送受
信が行われデータの共用化が図られている。
FIG. 4 is a schematic diagram of a communication path between upper layers of an information processing system in the prior art. In FIG. 4, the system configuration of the information processing apparatus includes an information processing apparatus (A to D in the illustrated example) and a serial data communication path L, and each information processing apparatus A to D has a function assigned to each role ( Display functions, monitoring / control, data logging, etc.) are performed, and the data group shared / used as a system is defined as a plurality of predetermined types of specific digital information data blocks (31 to 3n) and serialized. Data is shared by periodically transmitting and receiving between the information processing devices via the data communication path L.

【0005】各情報処理装置A〜Dは、中央処理装置(C
PU) 1と、内部バス2と、メモリ3、4と、通信制御回
路5とから構成され、通信制御回路5を介してシリアル
データ通信路Lに接続されている。図示例では情報処理
装置Bから情報処理装置Aへ、新比較対象データブロッ
クのデータがシリアルビット列データ6として送信され
ているときを示す。メモリ3には、前回以前に受信した
最新のデータが、予め定められた複数種類の特定デジタ
ル情報のデータブロック(31〜3n)に分類されて、記憶
保持されている。情報処理装置Bから新たに送信されて
きた新比較対象データブロックのシリアルビット列デー
タ6は、一旦メモリ4に書き込まれ、新データブロック
として記憶保持された上で、中央処理装置(CPU) 1が、
メモリ4の新データブロックの新比較対象データと、前
回以前に受信してメモリ3に格納され、メモリ4の新比
較対象データブロックに対応する旧比較対象データブロ
ック(例えば、3k)の旧比較対象データと、を内部バス
2を介して順次読出し、比較処理を行ない、新比較対象
データと旧比較対象データとが不一致のとき、データに
変化ありとして、旧比較対象データを新比較対象データ
で書換えていた。
Each of the information processing devices A to D has a central processing unit (C
PU) 1, an internal bus 2, memories 3, 4, and a communication control circuit 5 are connected to the serial data communication path L via the communication control circuit 5. In the illustrated example, the data of the new comparison target data block is transmitted from the information processing apparatus B to the information processing apparatus A as the serial bit string data 6. In the memory 3, the latest data received before the previous time is classified and stored in a plurality of predetermined data blocks (31 to 3n) of specific digital information. The serial bit string data 6 of the new comparison target data block newly transmitted from the information processing apparatus B is once written in the memory 4, stored and held as a new data block, and then the central processing unit (CPU) 1
The new comparison target data of the new data block of the memory 4 and the old comparison target of the old comparison target data block (for example, 3k) received before the previous time and stored in the memory 3 and corresponding to the new comparison target data block of the memory 4 Data and data are sequentially read out through the internal bus 2 and comparison processing is performed. When the new comparison target data and the old comparison target data do not match, the data is changed and the old comparison target data is rewritten with the new comparison target data. Was there.

【0006】[0006]

【発明が解決しようとする課題】上述の様に、従来の技
術では、通信路から受信する新比較対象データブロック
のデータは、一旦メモリに格納してから、次に、メモリ
上にある旧比較対象データブロックのデータ内容と比較
処理を行っている。このため、通信路からデータの受信
を開始し、新・旧データ比較によるデータ変化を検出す
るまでに、新・旧データの比較処理時間分の時間遅れが
必然的に生じると共に、内部バスの占有時間も増加し、
中央処理装置(CPU) の処理能力に制約が生じる。
As described above, according to the conventional technique, the data of the new comparison target data block received from the communication path is first stored in the memory and then the old comparison data in the memory is stored. The comparison processing is performed with the data content of the target data block. For this reason, a time delay corresponding to the new / old data comparison processing time will inevitably occur until the data change is detected by the new / old data comparison after starting data reception from the communication path, and occupying the internal bus. Time also increases,
There is a restriction on the processing capacity of the central processing unit (CPU).

【0007】即ち、通信路から新データを受信すると
き、受信途上で、新・旧データの比較が行われていない
ため、実際上は旧比較対象データから変化していない新
比較対象データも、通信路からのデータは、全て一旦新
データとして内部バスを介してメモリに書き込み、ま
た、一旦メモリに内部バスを介して格納された新比較対
象データブロックのデータを、比較のために内部バスを
介して再度読み出すことが必要であり、このため、内部
バスを介しての読み出し、書き込みのために内部バスが
余分に占有されること、及び、上記中央処理装置(CPU)
による比較処理が存在することによって中央処理装置(C
PU) の動作時間が消費されていた。
That is, when new data is received from the communication channel, since new and old data are not compared during reception, new comparison target data that has not actually changed from the old comparison target data, All data from the communication path is once written as new data to the memory via the internal bus, and the data of the new comparison target data block once stored in the memory via the internal bus is transferred to the internal bus for comparison. It is necessary to read again via the internal bus, so that the internal bus is additionally occupied for reading and writing via the internal bus, and the central processing unit (CPU) described above is used.
The presence of the comparison processing by the central processing unit (C
PU) operating time was consumed.

【0008】本発明は上記の点にかんがみてなされたも
のであり、その目的は前記した課題を解決して、中央処
理装置(CPU) の比較処理時間と、内部バスの占有時間を
削減し、より高機能な作業分担が可能な、データ通信方
法および情報処理システムを提供することにある。
The present invention has been made in view of the above points, and an object thereof is to solve the above-mentioned problems and reduce the comparison processing time of the central processing unit (CPU) and the occupation time of the internal bus. An object of the present invention is to provide a data communication method and an information processing system capable of sharing work with higher functionality.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本願請求項1による発明においては、データ通信路
を介して接続された複数の情報処理装置間でデータの交
信を行い、各情報処理装置は受信した新比較対象データ
を既に記憶されている旧比較対象データと比較して不一
致であれば旧比較対象データを新比較対象データに書き
換えるようにしたデータ通信方法において、各情報処理
装置には、交信するデータの内、周期的に送信/受信さ
れるデータを1または複数種類のデータブロックに区分
し、旧比較対象データとしてメモリに記憶保持してお
き、送信を行う情報処理装置は、送信する新比較対象デ
ータのデータブロックの先頭に、このデータブロックの
種類を特定できるタグ情報を付加して送信を行い、受信
を行う情報処理装置は、前記タグ情報を受信すると、該
タグ情報にて特定されるデータブロックの旧比較対象デ
ータを前記メモリから読出し、読出した旧比較対象デー
タと受信した新比較対象データとを受信と並行して比較
し、比較結果が不一致の場合にのみ読出した旧比較対象
データを受信した新比較対象データに書き換えて前記メ
モリに記憶保持させるものとする。
In order to achieve the above-mentioned object, in the invention according to claim 1 of the present application, data communication is performed between a plurality of information processing devices connected via a data communication path, and each information is transmitted. In the data communication method, the processing device compares the received new comparison target data with the already stored old comparison target data and, if they do not match, rewrites the old comparison target data with the new comparison target data. Among the data to be communicated, data to be transmitted / received periodically is divided into one or a plurality of types of data blocks, and is stored and held in a memory as old comparison target data, and An information processing apparatus for transmitting and receiving by adding tag information that can identify the type of this data block to the beginning of the data block of the new comparison target data to be transmitted When the tag information is received, the old comparison target data of the data block specified by the tag information is read from the memory, and the read old comparison target data and the received new comparison target data are compared in parallel with the reception. Then, only when the comparison results do not match, the old comparison target data read out is rewritten to the received new comparison target data and stored in the memory.

【0010】また、本願請求項2による発明において
は、データ通信路を介して接続された複数の情報処理装
置間でデータの交信を行うようにした情報処理システム
において、前記情報処理装置は、交信するデータの内、
周期的に送信/受信されるデータを1または複数種類の
データブロックに区分し、旧比較対象データとして記憶
保持するメモリと、送信する新比較対象データのデータ
ブロックの先頭に、このデータブロックの種類を特定で
きるタグ情報を付加して送信を行う送信手段と、他の情
報処理装置から送信されてくるタグ情報を受信し、該タ
グ情報にて特定されるデータブロックの旧比較対象デー
タを前記メモリから読み出す読出手段と、該読出手段に
て前記メモリから読み出された旧比較対象データと受信
した新比較対象データとを受信と並行して比較する比較
手段と、該比較手段による比較結果が不一致の場合にの
み受信した新比較対象データを前記メモリの旧比較対象
データの記憶箇所に書き込む書き込み手段と、を備える
ものとする。
Further, in the invention according to claim 2 of the present application, in the information processing system for communicating data between a plurality of information processing devices connected via a data communication path, the information processing device is a communication device. Of the data to
The data that is periodically transmitted / received is divided into one or more types of data blocks, and the memory that stores and holds the old comparison target data and the type of this data block at the beginning of the data block of the new comparison target data that is transmitted And a transmitting unit that transmits by adding tag information that can identify the tag information that is transmitted from another information processing apparatus, and stores the old comparison target data of the data block identified by the tag information in the memory. The reading means for reading from the reading means, the comparing means for comparing the old comparison target data read from the memory by the reading means with the received new comparison target data in parallel with the reception, and the comparison result by the comparing means do not match. And a writing unit that writes the new comparison target data received only in the above case to the storage location of the old comparison target data of the memory.

【0011】[0011]

【作用】上記構成により、本発明においては、送信側の
情報処理装置で送信する新比較対象データブロックの先
頭にタグ情報を付加することで、受信側の情報処理装置
でそのタグ情報に基づき比較対象となる旧比較対象デー
タブロックが格納されているメモリ上の位置を特定し、
メモリ上の旧比較対象データブロック内の最初のデータ
を比較器に送り込む。一方、同時並行して、受信中の新
比較対象データブロック内の最初のデータは、上記比較
器に送り込まれた旧比較対象データブロックのデータと
比較される。比較の結果、新旧データが等しくない時の
み、メモリ上の旧比較対象データを新たに受信した新比
較対象データによって上書きし、等しい場合は上書きを
行わない。
With the above structure, in the present invention, the tag information is added to the head of the new comparison target data block transmitted by the information processing device on the transmitting side, so that the information processing device on the receiving side performs comparison based on the tag information. Specify the memory location where the old data block to be compared is stored,
The first data in the old comparison target data block on the memory is sent to the comparator. On the other hand, in parallel, the first data in the new comparison target data block being received is compared with the data of the old comparison target data block sent to the comparator. As a result of the comparison, the old comparison target data on the memory is overwritten by the newly received new comparison target data only when the new and old data are not equal, and when they are equal, the overwrite is not performed.

【0012】この後、旧比較対象データブロックの次デ
ータを読出し、比較器に送り込む。そして、受信中の新
比較対象データブロックの次のデータとの比較動作が同
様に継続され、旧比較対象データブロック内のデータ
と、受信処理中の新比較対象データブロックの全データ
が、先頭データから始まってブロックの最終データま
で、順次比較される。
After this, the next data of the old data block to be compared is read and sent to the comparator. Then, the comparison operation with the next data of the new comparison target data block being received is similarly continued, and the data in the old comparison target data block and all the data of the new comparison target data block being received are processed as the first data. The data is sequentially compared from the beginning to the end data of the block.

【0013】このように、データブロックの先頭にタグ
情報を付加する機構を有することで、比較対象となる旧
比較対象データブロックのメモリ上の位置を特定するこ
とができ、新旧データが等しくない時のみメモリ上の旧
データを上書きする機構を有することで、受信する新比
較対象データブロック全体をメモリ上に一旦格納するこ
となしに、新比較対象データブロックの比較対象データ
を受信中に、対応する旧比較対象データブロック内の比
較対象データを読出し、比較処理を行い、データ通信路
からのデータの受信処置と新旧データの比較処理とを同
時並行処理することができ、かつ、最新の比較対象デー
タブロックの内容をメモリ上に記憶保持できる。
As described above, by providing the mechanism for adding the tag information to the head of the data block, the position on the memory of the old comparison target data block to be compared can be specified, and when the old and new data are not equal. Only by having a mechanism to overwrite the old data in the memory, it is possible to respond while receiving the comparison target data of the new comparison target data block without temporarily storing the entire received new comparison target data block in the memory. The comparison target data in the old comparison target data block can be read, the comparison processing can be performed, and the data reception processing from the data communication path and the comparison processing of the old and new data can be simultaneously processed in parallel, and the latest comparison target data can be processed. The contents of the block can be stored and held in the memory.

【0014】[0014]

【実施例】図1は本発明による一実施例の通信データの
高速比較を行う情報処理システムの全体構成図、図2は
実施例の情報処理装置のブロック構成図、図3は通信デ
ータの高速比較動作を行うシーケンス図を示し、図4に
対応する同一部材には同じ符号が付してある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an overall configuration diagram of an information processing system for performing high speed comparison of communication data according to an embodiment of the present invention, FIG. 2 is a block configuration diagram of an information processing device of an embodiment, and FIG. 3 is a high speed communication data. The sequence diagram which performs a comparison operation is shown, and the same code | symbol is attached | subjected to the same member corresponding to FIG.

【0015】図1において、情報処理装置のシステム構
成は、情報処理装置(図示例では、A〜D)とシリアル
データ通信路Lとから構成され、各情報処理装置A〜D
はそれぞれの役割分担した機能(ディスプレイ機能、監
視・制御、データロギングなど)を実行し、また、シス
テムとして少なくとも2つ以上の装置で共有・活用され
るデータ群は、予め定められた複数種類の特定デジタル
情報のデータブロック(31〜3n)として定め、シリアル
データ通信路Lを介して、情報処理装置間で周期的に送
受信が行われデータの共用化が図られている。
In FIG. 1, the system configuration of the information processing apparatus comprises an information processing apparatus (A to D in the illustrated example) and a serial data communication path L, and each information processing apparatus A to D.
Perform functions assigned to respective roles (display function, monitoring / control, data logging, etc.), and the data group shared / utilized by at least two or more devices as a system is a plurality of predetermined types. It is defined as a data block (31 to 3n) of specific digital information, and is periodically transmitted and received between the information processing devices via the serial data communication path L to share the data.

【0016】各情報処理装置A〜Dは、中央処理装置(C
PU) 1と、内部バス2と、メモリ3と、通信制御回路5
とから構成され、通信制御回路5を介してシリアルデー
タ通信路Lに接続されている。図示例では情報処理装置
Bから情報処理装置Aへ、新比較対象データブロックの
データが送信されているときを示し、このときのシリア
ルビット列データ6は、新比較対象データブロックの先
頭に、格納されている旧比較対象データブロックを特定
できるタグ情報が情報処理装置Bで付加されて送信され
ている。情報処理装置Aのメモリ3には、前回以前に受
信したデータの内、最新データが予め定められた複数種
類の特定デジタル情報のデータブロック(31〜3n)に分
類されて、記憶保持されている。
Each of the information processing devices A to D has a central processing unit (C
PU) 1, internal bus 2, memory 3, communication control circuit 5
And is connected to the serial data communication path L via the communication control circuit 5. The illustrated example shows the case where the data of the new comparison target data block is transmitted from the information processing device B to the information processing device A, and the serial bit string data 6 at this time is stored at the head of the new comparison target data block. The information processing apparatus B adds and transmits the tag information that can identify the old comparison target data block. In the memory 3 of the information processing apparatus A, among the data received before the previous time, the latest data is classified and stored in a plurality of predetermined data blocks (31 to 3n) of specific digital information. .

【0017】上記構成において、情報処理装置Bから新
たに送信されてきたタグ情報付き新比較対象データブロ
ックのシリアルビット列データ6は、情報処理装置Aで
受信される。情報処理装置Aでは、この新比較対象デー
タブロックのシリアルビット列データ6と、この新比較
対象データブロックに対応する旧比較対象データブロッ
クの旧比較対象データと、の比較をシリアルビット列デ
ータ6の受信中に行ない、新・旧比較対象データが等し
くないときのみ旧データを新比較対象データで書換える
と共に、新・旧データが不一致であることを中央処理装
置(CPU) に通知し、情報処理装置に所定の情報処理を効
率的に行わせる。
In the above configuration, the serial bit string data 6 of the new comparison target data block with tag information newly transmitted from the information processing apparatus B is received by the information processing apparatus A. The information processing apparatus A is receiving the serial bit string data 6 for comparison between the serial bit string data 6 of the new comparison object data block and the old comparison object data of the old comparison object data block corresponding to the new comparison object data block. The old data is rewritten with the new comparison target data only when the new and old comparison target data are not equal, and the central processing unit (CPU) is notified that the new and old data do not match, and the information processing device is notified. Efficiently perform predetermined information processing.

【0018】図2は、情報処理装置Aの内部ブロック構
成図である。図2において、情報処理装置Aは、中央処
理装置(CPU) 1と内部バス2とメモリ3と通信制御回路
5と、および本発明の対象となる比較器7とアドレスカ
ウンタ8とライト回路9と、から構成され、他の情報処
理装置B〜Dとは、通信制御回路5を介してシリアルデ
ータ通信路Lを経由して、接続されている。なお、通信
制御回路5は簡単化のため、ここでは受信側機能のみを
図示し、送信側機能は省略してある。
FIG. 2 is an internal block diagram of the information processing apparatus A. In FIG. 2, an information processing apparatus A includes a central processing unit (CPU) 1, an internal bus 2, a memory 3, a communication control circuit 5, a comparator 7, an address counter 8 and a write circuit 9 which are objects of the present invention. , And is connected to the other information processing apparatuses B to D via the communication control circuit 5 and the serial data communication path L. For simplification, the communication control circuit 5 is illustrated here with only the receiving side function, and omits the transmitting side function.

【0019】次に動作を説明する。シリアルビット列デ
ータ6は、送信を始める情報処理装置Bの送信側機能に
よって、当該データブロックがシリアルビット列データ
に変換され、このシリアルビット列データにタグ情報を
付加して、タグ情報+新比較対象データブロック6とし
て、シリアルデータ通信路Lを経由して情報処理装置A
に送信される。このタグ情報付き新比較対象データブロ
ックのシリアルビット列データ6は、通信制御回路5の
シリアル入力データ・パラレル出力データ変換回路51で
パラレルデータに変換される。先ず最初に、シリアルビ
ット列データ6の先頭に付加されたタグ情報が変換さ
れ、以下、順次、データ1、データ2‥‥が変換回路51
でパラレルデータに変換される。
Next, the operation will be described. In the serial bit string data 6, the data block is converted into serial bit string data by the transmitting side function of the information processing apparatus B which starts transmission, tag information is added to this serial bit string data, and tag information + new comparison target data block 6, the information processing device A via the serial data communication path L
Sent to. The serial bit string data 6 of the new comparison target data block with tag information is converted into parallel data by the serial input data / parallel output data conversion circuit 51 of the communication control circuit 5. First, the tag information added to the head of the serial bit string data 6 is converted, and thereafter, the data 1, data 2, ...
Is converted into parallel data.

【0020】変換回路51でパラレルデータに変換された
タグ情報は、データ線22を介してアドレスカウンタ8に
設定される。この設定されたタグ情報により、メモリ3
に格納された該当するデータブロックの先頭アドレスが
選択され、アドレス線23を介して、メモリ3のメモリ空
間(ここでは、旧データブロックk)の先頭アドレスが
設定される。
The tag information converted into parallel data by the conversion circuit 51 is set in the address counter 8 via the data line 22. According to the tag information thus set, the memory 3
The start address of the corresponding data block stored in is selected, and the start address of the memory space of the memory 3 (here, the old data block k) is set via the address line 23.

【0021】このアドレス設定により、メモリ3から、
旧データブロックkに格納されている最初のデータ1が
バス2、データ線24を経由して、レジスタ71に設定され
る。一方、この間に、通信路Lを経由して、入力される
最初のデータ1は、所定のビット幅相当時間経過後、変
換回路51でパラレルデータに変換され、レジスタ52でラ
ッチされ、レジスタ71のデータとレジスタ52の両データ
が比較回路72で比較される。
By this address setting, from the memory 3,
The first data 1 stored in the old data block k is set in the register 71 via the bus 2 and the data line 24. On the other hand, during this period, the first data 1 input via the communication path L is converted into parallel data by the conversion circuit 51 after a lapse of a predetermined bit width equivalent time, latched by the register 52, and stored in the register 71. The data and both data in the register 52 are compared by the comparison circuit 72.

【0022】両データが不一致のときは、制御線25を経
由してライト回路9に出力され、ライト回路9はこの指
令に基づき、制御線26を介して、レジスタ52上にラッチ
されたデータをデータ線27、バス2を介してメモリ3の
該当する旧データブロックk上の該当位置に書き込む。
また、比較回路72で比較され、両データが不一致のとき
は、同時に、中央処理装置(CPU) に割込み制御線28を介
して割り込み通知を行い、データに変化有りを知らせる
ことにより、情報処理装置に所定の情報処理を効率的に
行わせることができる。
When the two data do not match, the data is output to the write circuit 9 via the control line 25. Based on this command, the write circuit 9 outputs the data latched in the register 52 via the control line 26. The data is written to the corresponding position on the corresponding old data block k of the memory 3 via the data line 27 and the bus 2.
Further, when the data is compared by the comparison circuit 72 and the two data do not match, at the same time, an interrupt notification is sent to the central processing unit (CPU) via the interrupt control line 28 to notify that there is a change in the data. Can efficiently perform predetermined information processing.

【0023】また、両データが一致のときは、制御線2
5、28の処理は行われず、次のデータ比較のための準備
動作を行う。即ち、制御線22よりアドレスカウンタ8を
インクリメントし、上述のメモリ3の旧データブロック
kのアドレスデータをカウントアップし、次の受信ビッ
ト幅データの比較処理に移行する。以下、通信路Lから
新比較対象データブロックのシリアルビット列データ6
を受信しながら、順次一定のビット幅データ毎に新旧デ
ータの比較処理を行い、両データが不一致のときは、旧
比較対象データに新比較対象データを上書きと、中央処
理装置(CPU) に割り込み通知を行い、該当の新比較対象
データブロックの全データについて比較処理を行った上
で、データに変化が有る箇所のみ、メモリ3の該当デー
タが書き換えられる。なお、図2の点線は、上述の説明
のデータの流れを示す。
If the two data match, the control line 2
The processes of 5 and 28 are not performed, and the preparatory operation for the next data comparison is performed. That is, the address counter 8 is incremented from the control line 22, the address data of the old data block k of the memory 3 is counted up, and the process proceeds to the comparison process of the next received bit width data. Hereinafter, the serial bit string data 6 of the new comparison target data block from the communication path L
While receiving the new data, the new data and the old data are compared in sequence for each constant bit width data.If the two data do not match, the old comparison target data is overwritten with the new comparison target data and the central processing unit (CPU) is interrupted. After notifying and comparing all the data of the corresponding new comparison target data block, the corresponding data in the memory 3 is rewritten only in the portion where the data is changed. The dotted line in FIG. 2 indicates the data flow described above.

【0024】図3は通信データの高速比較動作を行うシ
ーケンス図を示し、横軸に左から右へ時間軸の流れを、
縦軸に受信シリアルビットデータ列、比較対象データの
レジスタ52への設定、アドレスカウンタ8の設定、レジ
スタ71への旧比較対象データの送り込み、比較結果不一
致時の新データの上書き、および中央処理装置(CPU)の
各要素での動作タイミング状態を述べる。
FIG. 3 shows a sequence diagram for performing a high speed comparison operation of communication data, in which the horizontal axis shows the time axis flow from left to right.
Received serial bit data string on vertical axis, setting of comparison target data to register 52, setting of address counter 8, sending of old comparison target data to register 71, overwriting of new data when comparison result does not match, and central processing unit The operation timing state of each element of (CPU) is described.

【0025】図3において、受信シリアルビットデータ
列は、左から右へ時間軸の流れに従い、この図示例で
は、8ビット単位のビット幅で、タグ情報、データ1、
データ2、データ3、‥‥のデータがシーケンス0、
1、2、3‥‥に対応して継続受信される。以下、図2
と併用して受信・比較動作を説明する。シーケンス0の
期間は、Step1として、シリアル通信路Lからのシリア
ルビット列データ6のタグ情報部分がシリアル入力デー
タ・パラレル出力データ変換回路51で受信され、パラレ
ルデータに変換され、タグ情報が生成される期間であ
る。
In FIG. 3, the received serial bit data string follows the flow on the time axis from left to right, and in the illustrated example, the tag information, data 1,
The data of data 2, data 3, ... Is sequence 0,
It is continuously received corresponding to 1, 2, 3 ... Below, FIG.
The reception / comparison operation will be described together with. During the period of the sequence 0, in Step 1, the tag information portion of the serial bit string data 6 from the serial communication path L is received by the serial input data / parallel output data conversion circuit 51 and converted into parallel data to generate tag information. It is a period.

【0026】次に、シーケンス1の期間に入ると、先
ず、Step3として、上記生成されたタグ情報がデータ線
22を介して、アドレスカウンタ8に設定される。このア
ドレスカウンタ8の設定データにより、通信路Lから伝
送されてくる当該データブロックが格納されているメモ
リ3の先頭アドレスデータが選択され、この設定された
先頭アドレスデータにより、メモリ3から該当する旧デ
ータブロック3kの先頭データ1が呼び出され、Step41で
このデータ1がレジスタ71にラッチされる。一方、Step
21として、通信路Lを経由して入力される当該データブ
ロックの最初のデータ1は、所定のビット幅(8ビット)
相当時間経過後(シーケンス1の最後の時間)、変換回
路51でパラレルデータ1に変換される。
Next, in the period of sequence 1, first, in step 3, the tag information generated above is added to the data line.
The address counter 8 is set via 22. The setting data of the address counter 8 selects the head address data of the memory 3 in which the data block transmitted from the communication path L is stored, and the set head address data sets the corresponding old address from the memory 3. The top data 1 of the data block 3k is called, and this data 1 is latched in the register 71 in step 41. On the other hand, Step
As 21, the first data 1 of the data block input via the communication path L has a predetermined bit width (8 bits).
After a lapse of a considerable time (the last time of sequence 1), the conversion circuit 51 converts the data into parallel data 1.

【0027】次に、シーケンス2の期間に入りと、Step
21で変換回路51でパラレルデータに変換された新比較対
象データ1は、Step5でレジスタ52にラッチされ、Step
6で既にStep41でレジスタ71にラッチされた旧比較対象
データ1と比較される。図示例では、ここでは、この比
較結果が不一致のときを示し、この場合では、Step7で
ライト回路9が比較結果不一致のデータを受け、レジス
タ52にラッチされたデータを新比較対象データ1の内容
として、メモリ3の旧比較対象データ1上に上書きし、
最新のデータとして記憶保持する。そして、Step9に移
行して、アドレスカウンタ8を次の旧比較対象データを
指すアドレスにインクリメントし、Step42として、メモ
リ3から次の旧比較対象データ2をレジスタ71にラッチ
する。また、同時に、Step8として、中央処理装置(CP
U) に割込み通知を行い、データに変化有りを知らせる
ことにより、情報処理装置に所定の情報処理を効率的に
行わせる。一方、Step22として、通信路Lを経由して入
力される新比較対象データ2は、8ビット相当時間経過
後、変換回路51でパラレルデータに変換される。
Next, when the period of Sequence 2 is entered, Step
The new comparison target data 1 converted into parallel data by the conversion circuit 51 in 21 is latched in the register 52 in Step 5,
In step 6, it is compared with the old comparison target data 1 already latched in the register 71 in step 41. In the illustrated example, the case where the comparison result does not match is shown here. In this case, the write circuit 9 receives the data of the comparison result mismatch in Step 7, and the data latched in the register 52 is set as the content of the new comparison target data 1. As the overwriting on the old comparison target data 1 in the memory 3,
Store and hold the latest data. Then, in Step 9, the address counter 8 is incremented to the address indicating the next old comparison target data, and in Step 42, the next old comparison target data 2 is latched in the register 71 from the memory 3. At the same time, as Step 8, the central processing unit (CP
By making an interrupt notification to U) and notifying that there is a change in the data, the information processing device can efficiently perform the predetermined information processing. On the other hand, in Step 22, the new comparison target data 2 input via the communication path L is converted into parallel data by the conversion circuit 51 after the time corresponding to 8 bits has elapsed.

【0028】続いて、シーケンス3の期間に入り、前の
Step22で変換回路51でパラレルデータに変換され、前回
と同様に、Step5でレジスタ52にラッチされた新比較対
象データ2と、既にStep42でレジスタ71にラッチされた
旧比較対象データ2と、がStep6で比較される。この図
示例では、この比較結果が一致したときを示し、この場
合は、メモリ3および中央処理装置(CPU) への処理は行
われず、Step9に移行して、アドレスカウンタ8をイン
クリメントし、Step43で、メモリ3から次の旧比較対象
データ3をレジスタ71にラッチする。一方、Step23とし
て、通信路Lを経由して、入力される新比較対象データ
3は、同様に変換回路51でパラレルデータに変換され
る。
Then, the period of sequence 3 is entered, and the previous
In step 22, the conversion circuit 51 converts the data into parallel data, and similarly to the previous time, the new comparison target data 2 latched in the register 52 in step 5 and the old comparison target data 2 already latched in the register 71 in step 42 are step 6 Compared with. In this illustrated example, it is shown that the comparison results match. In this case, the processing to the memory 3 and the central processing unit (CPU) is not performed, the process proceeds to Step 9, the address counter 8 is incremented, and in Step 43. , The next old comparison target data 3 from the memory 3 is latched in the register 71. On the other hand, in Step 23, the new comparison target data 3 input via the communication path L is similarly converted into parallel data by the conversion circuit 51.

【0029】以下、同様にシーケンス4、シーケンス5
‥‥と継続して処理が行われ、シーケンス4では、シー
ケンス3と同様に新旧比較対象データ3が一致している
場合を示し、ここで行われる処理はシーケンス3と同じ
であり、また、シーケンス5では、シーケンス2と同様
に新旧比較対象データ5が不一致の場合を示し、ここで
行われる処理はシーケンス2と同じである。
Hereinafter, similarly, sequence 4 and sequence 5
.. are continuously performed, and the sequence 4 shows the case where the old and new comparison target data 3 are the same as the sequence 3, and the process performed here is the same as the sequence 3. 5 shows the case where the old and new comparison target data 5 do not match as in the sequence 2, and the processing performed here is the same as that in the sequence 2.

【0030】シリアルデータ通信路Lを経由して、シリ
アルビット列データ6の形で入力される新比較対象デー
タブロックは、順次受信されながら、前回以前に受信さ
れた最新の旧比較対象データブロックと比較され、異な
るデータ箇所のみが書換えられ、その都度データ変化有
りの情報が中央処理装置(CPU) に通知され、この比較動
作は比較対象データブロック全体の処理が終了するまで
実行される。この結果、シリアルビット列データ6を全
て受信処理した時点で、新比較対象データブロックと旧
比較対象データブロックとの内容の違いは全て検出さ
れ、メモリ上の旧比較対象データブロックの内容は、新
比較対象データブロックの内容に置き換わって記憶保持
されており、この後での中央処理装置(CPU) による比較
処理は必要でない。
The new comparison target data block input in the form of the serial bit string data 6 via the serial data communication path L is sequentially received and compared with the latest old comparison target data block received before the previous time. Then, only the different data portion is rewritten, the information that the data has changed is notified to the central processing unit (CPU) each time, and this comparison operation is executed until the processing of the entire comparison target data block is completed. As a result, when all the serial bit string data 6 are received and processed, any difference in contents between the new comparison target data block and the old comparison target data block is detected, and the contents of the old comparison target data block in the memory are compared with the new comparison target data block. It is stored and held in place of the contents of the target data block, and subsequent comparison processing by the central processing unit (CPU) is not necessary.

【0031】以上の結果、新旧データブロックの比較の
ために、新データブロックのデータをメモリからの読み
出さなくてすむこと、および、旧データから変化してい
ない新データをメモリ上に書き込まなくてすむことによ
り、上述のバスの占有時間を削減でき、また、中央処理
装置(CPU) による比較処理を不要にすることができ、中
央処理装置(CPU) の動作時間の消費を軽減することがで
きる。
As a result, it is not necessary to read the data of the new data block from the memory and to write the new data unchanged from the old data in the memory for comparing the old and new data blocks. As a result, the above-mentioned bus occupation time can be reduced, the comparison processing by the central processing unit (CPU) can be eliminated, and the consumption of the operating time of the central processing unit (CPU) can be reduced.

【0032】[0032]

【発明の効果】以上述べたように本発明の構成によれ
ば、データブロックの先頭にタグ情報を付加し、比較対
象となる旧比較対象データブロックのメモリ上の位置を
特定し、アドレスカウンタと比較器とのハードウエアを
備え、新旧データが不一致のときのみメモリ上の旧デー
タを上書きする機構を有することで、情報処理装置は、
通信路からの新データを受信するとき、新データをメモ
リに格納する前に、新データの受信と同時並行に、前回
以前にメモリに格納された最新の旧データと比較して、
変化があれば、旧データを新データで書換えて格納する
ことにより、中央処理装置(CPU) の比較処理時間と、内
部バスの占有時間を削減し、より高機能な作業分担が可
能な、通信データの高速比較を行うことができる。
As described above, according to the configuration of the present invention, the tag information is added to the head of the data block, the position on the memory of the old comparison target data block to be compared is specified, and the address counter is used. The information processing device is equipped with the hardware of the comparator and has the mechanism of overwriting the old data on the memory only when the old and new data do not match.
When receiving new data from the communication path, before storing the new data in the memory, at the same time as receiving the new data, comparing with the latest old data stored in the memory before the last time,
If there is a change, the old data is rewritten with the new data and stored, which reduces the comparison processing time of the central processing unit (CPU) and the occupied time of the internal bus, enabling higher-performance work sharing. High-speed comparison of data can be performed.

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

【図1】本発明による一実施例の通信データの高速比較
を行う情報処理システムの全体構成図
FIG. 1 is an overall configuration diagram of an information processing system for performing high-speed comparison of communication data according to an embodiment of the present invention

【図2】実施例の情報処理装置のブロック構成図FIG. 2 is a block configuration diagram of an information processing apparatus according to an embodiment.

【図3】通信データの高速比較動作を行うシーケンス図FIG. 3 is a sequence diagram for performing a high speed comparison operation of communication data.

【図4】従来技術の情報処理システムの全体構成図FIG. 4 is an overall configuration diagram of a conventional information processing system.

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

1 中央処理装置 2 バス 3、4 メモリ 31,32,33…3k,3n 旧データブロック 5 通信制御回路 51 変換回路 52、71 レジスタ 6 シリアルビット列データ 7 比較器 72 比較回路 8 アドレスカウンタ 9 ライト回路 21,22,23,24,27 データ線 25,26,28 制御線 A〜D 情報処理装置 L シリアルデータ通信路 1 central processing unit 2 bus 3, 4 memory 31,32,33 ... 3k, 3n old data block 5 communication control circuit 51 conversion circuit 52, 71 register 6 serial bit string data 7 comparator 72 comparison circuit 8 address counter 9 write circuit 21 , 22,23,24,27 Data line 25,26,28 Control line A to D Information processing device L Serial data communication path

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】データ通信路を介して接続された複数の情
報処理装置間でデータの交信を行い、各情報処理装置は
受信した新比較対象データを既に記憶されている旧比較
対象データと比較して不一致であれば旧比較対象データ
を新比較対象データに書き換えるようにしたデータ通信
方法において、 各情報処理装置には、交信するデータの内、周期的に送
信/受信されるデータを1または複数種類のデータブロ
ックに区分し、旧比較対象データとしてメモリに記憶保
持しておき、 送信を行う情報処理装置は、送信する新比較対象データ
のデータブロックの先頭に、このデータブロックの種類
を特定できるタグ情報を付加して送信を行い、受信を行
う情報処理装置は、前記タグ情報を受信すると、該タグ
情報にて特定されるデータブロックの旧比較対象データ
を前記メモリから読出し、読出した旧比較対象データと
受信した新比較対象データとを受信と並行して比較し、
比較結果が不一致の場合にのみ読出した旧比較対象デー
タを受信した新比較対象データに書き換えて前記メモリ
に記憶保持させる、 ことを特徴とするデータ通信方法。
1. A data communication is performed between a plurality of information processing apparatuses connected via a data communication path, and each information processing apparatus compares the received new comparison target data with the already stored old comparison target data. In the data communication method in which the old comparison target data is rewritten to the new comparison target data if they do not match, each information processing device has one or more periodically transmitted / received data among the data to be communicated. The information processing device that divides the data block into a plurality of types of data blocks, stores and retains the old comparison target data in the memory, and transmits the new comparison target data is identified at the beginning of the data block of the new comparison target data to be transmitted. When receiving the tag information, the information processing apparatus that transmits by adding the tag information that can be transmitted and receives the tag information has an old ratio of the data block specified by the tag information. Reading target data from said memory, in parallel with the receiving and the new comparison target data received with the read old comparison target data compared,
A data communication method, characterized in that the old comparison target data read out is rewritten to the received new comparison target data only when the comparison results do not match, and is stored and held in the memory.
【請求項2】データ通信路を介して接続された複数の情
報処理装置間でデータの交信を行うようにした情報処理
システムにおいて、 前記情報処理装置は、 交信するデータの内、周期的に送信/受信されるデータ
を1または複数種類のデータブロックに区分し、旧比較
対象データとして記憶保持するメモリと、 送信する新比較対象データのデータブロックの先頭に、
このデータブロックの種類を特定できるタグ情報を付加
して送信を行う送信手段と、 他の情報処理装置から送信されてくるタグ情報を受信
し、該タグ情報にて特定されるデータブロックの旧比較
対象データを前記メモリから読み出す読出手段と、 該読出手段にて前記メモリから読み出された旧比較対象
データと受信した新比較対象データとを受信と並行して
比較する比較手段と、 該比較手段による比較結果が不一致の場合にのみ受信し
た新比較対象データを前記メモリの旧比較対象データの
記憶箇所に書き込む書き込み手段と、 を備えることを特徴とする情報処理システム。
2. An information processing system in which data is communicated between a plurality of information processing devices connected via a data communication path, wherein the information processing device periodically transmits data to be communicated. / A memory that divides the received data into one or more types of data blocks and stores and holds it as the old comparison target data, and the beginning of the data block of the new comparison target data to be transmitted,
An old comparison of the data block specified by the transmitting means for adding the tag information capable of specifying the type of this data block and transmitting it and the tag information transmitted from another information processing device. A reading means for reading the target data from the memory; a comparing means for comparing the old comparison target data read from the memory by the reading means with the received new comparison target data in parallel with the reception; An information processing system, comprising: a writing unit that writes the new comparison target data received only when the comparison result according to 1. is in the storage location of the old comparison target data of the memory.
JP28154993A 1993-11-11 1993-11-11 Data communication method and information processing system Pending JPH07135688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28154993A JPH07135688A (en) 1993-11-11 1993-11-11 Data communication method and information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28154993A JPH07135688A (en) 1993-11-11 1993-11-11 Data communication method and information processing system

Publications (1)

Publication Number Publication Date
JPH07135688A true JPH07135688A (en) 1995-05-23

Family

ID=17640735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28154993A Pending JPH07135688A (en) 1993-11-11 1993-11-11 Data communication method and information processing system

Country Status (1)

Country Link
JP (1) JPH07135688A (en)

Similar Documents

Publication Publication Date Title
US5978890A (en) External storage control device and data transfer method between external storage control devices
EP0330475A2 (en) Configuration control system
KR870004365A (en) Channel data transmission device with serial transmission line and transmission method thereof
US3967246A (en) Digital computer arrangement for communicating data via data buses
US4631668A (en) Storage system using comparison and merger of encached data and update data at buffer to cache to maintain data integrity
JPS58502027A (en) Peripherals adapted to monitor low data rate serial input/output interfaces
JPH05265943A (en) Serial data transfer equipment
US5343557A (en) Workstation controller with full screen write mode and partial screen write mode
JPH07135688A (en) Data communication method and information processing system
JP3137437B2 (en) Data transmission system
US6907503B2 (en) Dual port RAM communication protocol
US6591326B1 (en) Method and information processing apparatus controlling information transfer among a plurality of processors
US4959843A (en) Content induced transaction overlap (CITO) block transmitter
JPH0115900B2 (en)
JPH0140432B2 (en)
JP2000040057A (en) Computer system, buffer controller and transferring method
JPS6240736B2 (en)
JP2000132498A (en) Dma transfer controller
JPS6138665B2 (en)
JPS61150056A (en) Direct memory access controller
KR910003497A (en) Data processing unit reduces internal bus lines
JP2531207B2 (en) Channel device
JP2616490B2 (en) Shared data storage method
JP2595808B2 (en) Memory device for distributed processing
JPS6294042A (en) Communication control equipment