JP2012182718A - Data transfer unit - Google Patents
Data transfer unit Download PDFInfo
- Publication number
- JP2012182718A JP2012182718A JP2011045035A JP2011045035A JP2012182718A JP 2012182718 A JP2012182718 A JP 2012182718A JP 2011045035 A JP2011045035 A JP 2011045035A JP 2011045035 A JP2011045035 A JP 2011045035A JP 2012182718 A JP2012182718 A JP 2012182718A
- Authority
- JP
- Japan
- Prior art keywords
- address
- register
- data
- access request
- previous
- 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.)
- Withdrawn
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
Description
この発明は、アドレス参照でデータ転送を行い、かつ、誤り検出機能を持つ既存のプロトコルに則ってデータ転送を行うデータ転送装置に関する。 The present invention relates to a data transfer apparatus that performs data transfer by referring to an address and performs data transfer according to an existing protocol having an error detection function.
誤り検出機能があるデータ通信では、転送パケットの誤りを検出した際、再送することで、パケットの到達性を実現する。
これに対し、例えば特許文献1に示されたデータ通信方法では、専用の信号線を設けること無く、送信側において、受信側が受信できたかどうかを確認できる手段を提供している。この文献に示されたデータ通信方法では、パケットのヘッダに再送表示フラグという情報を付加し、これを操作することで、送信側で受信側が受信できたかどうかを確認している。
In data communication having an error detection function, packet reachability is realized by retransmitting when an error of a transfer packet is detected.
On the other hand, for example, the data communication method disclosed in Patent Document 1 provides a means for confirming whether or not the receiving side has received data on the transmitting side without providing a dedicated signal line. In the data communication method shown in this document, information called a retransmission display flag is added to the header of a packet, and by operating this information, it is confirmed whether or not the receiving side has been able to receive on the transmitting side.
しかしながら、上記従来のデータ通信方法では、パケットのヘッダに情報を埋め込む必要があった。このため、埋め込みに対する拡張性を持つプロトコルでしか利用できないという問題があった。例えば、アドレス参照で読み書きを行うプロトコルでは、ヘッダとボディの両方の形式が規定されおり、情報を埋め込むことができず、このようなプロトコルを用いるデータ転送では適用することができない。 However, in the conventional data communication method, it is necessary to embed information in the header of the packet. For this reason, there is a problem that it can be used only by a protocol having extensibility for embedding. For example, in a protocol that reads and writes by address reference, both header and body formats are defined, information cannot be embedded, and cannot be applied to data transfer using such a protocol.
他の方法として、送信側にアドレス参照可能なフラグを用意し、受信側が受信できた際に受信側がこのフラグに書き込むことで、受信確認とする方法も考えられる。しかし、この方法では、別途データ転送を行う必要があり、通信負荷が増加するという問題点を有していた。 As another method, a method is also conceivable in which a reception-ready flag is prepared on the transmission side, and when the reception side has received data, the reception side writes into this flag to confirm reception. However, this method has a problem in that it is necessary to perform data transfer separately and the communication load increases.
この発明は上記のような課題を解決するためになされたもので、アドレス参照でデータ転送するプロトコルにおいて、パケットの形式を変えず、かつ、通信負荷を増すこと無く、受信確認が行えるデータ転送装置を得ることを目的とする。 The present invention has been made to solve the above-described problems, and in a protocol for transferring data by referring to an address, a data transfer apparatus capable of confirming reception without changing the packet format and increasing the communication load. The purpose is to obtain.
この発明に係るデータ転送装置は、一方の装置から他方の装置のメモリまたはレジスタに対してデータアクセス要求を行う場合、メモリまたはレジスタをアドレスによって指定し、他方の装置は、指定されたアドレスに基づいてメモリまたはレジスタへのデータアクセスを行うデータ転送装置において、メモリまたはレジスタのアドレスとして複数のアドレス空間のアドレスを設定し、一方の装置は、前回のアクセス要求に対して正常なデータアクセスが行えた場合は、次のアクセス要求で異なるアドレス空間のアドレスを使用し、前回のアクセス要求に対して正常なデータアクセスが行えなかった場合は、次のアクセス要求で前回と同じアドレス空間のアドレスを使用するアクセス要求手段を備え、他方の装置は、一方の装置からアクセス要求を受けた場合、アクセス要求が前回のアクセス要求時のアドレス空間のアドレスであるか否かを判定し、異なるアドレス空間のアドレスであった場合は前回のアクセス要求に対してデータアクセスが正常終了したと判定し、前回のアクセス要求時と同じアドレス空間のアドレスであった場合は、前回のアクセス要求に対してデータアクセスが正常終了していないと判定する受信確認手段を備えたものである。 In the data transfer device according to the present invention, when a data access request is made from one device to the memory or register of the other device, the memory or register is designated by an address, and the other device is based on the designated address. In the data transfer device that performs data access to the memory or register, the address of the plurality of address spaces is set as the memory or register address, and one device can perform normal data access in response to the previous access request. If the next access request uses an address in a different address space, and normal data access cannot be performed for the previous access request, the next access request uses the same address space address as the previous one. Access request means is provided, and the other device accesses from one device. When the request is received, it is determined whether or not the access request is an address in the address space at the time of the previous access request, and if it is an address in a different address space, the data access is normally completed with respect to the previous access request. If there is an address in the same address space as that of the previous access request, a reception confirmation unit is provided for determining that the data access has not been normally terminated with respect to the previous access request.
この発明のデータ転送装置は、前回のアクセス要求に対して正常なデータアクセスが行えた場合は、次のアクセス要求で異なるアドレス空間のアドレスを使用し、前回のアクセス要求に対して正常なデータアクセスが行えなかった場合は、次のアクセス要求で前回と同じアドレス空間のアドレスを使用するようにしたので、アドレス参照でデータ転送するプロトコルにおいても、パケットの形式を変えることなく、かつ、通信負荷を増すこと無く、受信確認を行うことができる。 In the data transfer device according to the present invention, when normal data access can be performed with respect to the previous access request, the address of a different address space is used for the next access request, and normal data access is performed with respect to the previous access request. If this is not possible, the next access request uses the address in the same address space as the previous time, so even in the protocol for data transfer by address reference, the communication load is reduced without changing the packet format. Reception confirmation can be performed without increasing.
実施の形態1.
図1は、この発明の実施の形態1によるデータ転送装置を示す構成図である。
図1に示すデータ転送装置は、マスタ(一方の装置)10とスレーブ(他方の装置)20が信号線30を介して接続されることで構成されている。このデータ転送装置は、マスタ10からスレーブ20のメモリまたはレジスタに対してデータアクセス要求を行う場合、そのメモリまたはレジスタをアドレスによって指定し、スレーブ20は、指定されたアドレスに基づいてメモリまたはレジスタへのデータアクセスを行うよう構成されている。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a data transfer apparatus according to Embodiment 1 of the present invention.
The data transfer device shown in FIG. 1 is configured by connecting a master (one device) 10 and a slave (the other device) 20 via a
また、実施の形態1のデータ転送装置では、スレーブ20側でデータ転送の対象となるレジスタやメモリに転送用のアドレスを割り振る。これを「本来のアドレス」、または、「第1アドレス」と呼ぶ。その上で、転送用のアドレスとして、同じレジスタやメモリを指定できる別のアドレスを割り振る。これを「ミラーアドレス」、または、「第2アドレス」と呼ぶ。図2は、これらのアドレス空間を示す説明図である。
In the data transfer apparatus according to the first embodiment, the
図1に戻り、マスタ10は、データ転送でデータを参照/更新する装置であり、制御モジュール11と送受信モジュール12とを備えている。制御モジュール11は、マスタ10におけるデータ通信の制御を行うモジュールであり、アクセス要求手段13を備えている。このアクセス要求手段13は、前回のアクセス要求に対して正常なデータアクセスが行えた場合は、次のアクセス要求で異なるアドレス空間のアドレスを使用し、前回のアクセス要求に対して正常なデータアクセスが行えなかった場合は、次のアクセス要求で前回と同じアドレス空間のアドレスを使用する手段である。送受信モジュール12は、制御モジュール11からのアクセス要求を元にパケットを生成してスレーブ20に送信すると共に、スレーブ20からのパケットを受け取ってその誤り検出を行い、誤りを検出した場合はこれを破棄し、誤りが無ければ、パケットを分解し、読み出し結果を制御モジュール11に渡す機能を有している。
Returning to FIG. 1, the
スレーブ20は、データ転送でそのデータを保有する装置であり、送受信モジュール21と受信確認手段22を備えている。送受信モジュール21は、マスタ10からのパケットを受け取ってその誤り検出を行い、誤りを検出した場合はこれを破棄し、誤りが無ければパケットに示すアクセス要求に従ってメモリまたはレジスタにアクセスを行い、その結果に基づいてパケットを生成してマスタ10宛に送信する機能を有している。受信確認手段22は、スレーブ20が返信したパケットの受信状況を判定する手段である。即ち、受信確認手段22は、マスタ10からアクセス要求を受けた場合、そのアクセス要求が前回のアクセス要求時のアドレス空間のアドレスであるか否かを判定し、異なるアドレス空間のアドレスであった場合は前回のアクセス要求に対してデータアクセスが正常終了したと判定し、前回のアクセス要求時と同じアドレス空間のアドレスであった場合は、前回のアクセス要求に対してデータアクセスが正常終了していないと判定するよう構成されている。
The
次に、このように構成された実施の形態1のデータ転送装置の動作について説明する。
先ず、データ転送装置における基本動作として、マスタ10がスレーブ20のレジスタを参照する例について説明する。
●制御モジュール11のアクセス要求手段13は、対象レジスタを第1アドレスで指定し、送受信モジュール12に読み出しを要求する。
●送受信モジュール12は、読み出し要求を元にパケットを生成し、信号線30を介してスレーブ20へ送る。
●スレーブ20の送受信モジュール21は、マスタ10からのパケットを受け取り、誤り検出を行い、誤りを検出した場合はこれを破棄する。誤りが無ければ、パケットに示す読み出し要求に従ってレジスタの値を読み出す。
●受信確認手段22は、パケットで指定されたアドレスを記憶する。
●送受信モジュール21は、読み出したレジスタの値を元にパケットを生成し、信号線30を介してマスタ10へ送る。
Next, the operation of the data transfer apparatus according to the first embodiment configured as described above will be described.
First, an example in which the
The access request means 13 of the
The transmission /
The transmission /
The
The transmission /
●送受信モジュール12は、パケットを受け取り、誤り検出を行い、誤りを見つけた場合は、これを破棄する。誤りが無ければ、パケットを分解し、読み出し結果を制御モジュール11に渡す。
尚、マスタ10の送受信モジュール12は、パケット送信後、一定時間以上スレーブ20からの返信が無いと、送信したパケットを再送する。
The transmission /
Note that the transmission /
以上の基本動作により、信号線の増加や、転送時のパケットの形式変更を行うこと無く、スレーブ20側において、マスタ10側で受信に成功したかどうかを知ることができる。
なお、ここではレジスタの読み出しを例としたが、レジスタへの書き込みも同様である。また、メモリへのデータアクセスであっても同様である。
With the above basic operation, it is possible to know whether or not the reception on the
Note that, here, reading of a register is taken as an example, but writing to a register is the same. The same applies to data access to the memory.
次に、図3に示すように、同じレジスタを2回読み出す例を用いて、データ転送における誤り検出と再送の動作について説明する。
先ず、ケースAは、転送時に誤りが生じないケースである。この場合、マスタ10側がパケットを受信したのを確認するまでの流れは、次のようになる。
●マスタ10が「第1アドレスを使用した読出要求#1」を送信する。
●スレーブ20が「第1アドレスを使用した読出要求#1」を受信する。
●スレーブ20が「読出結果#1」を返信する。
●マスタ10が「読出結果#1」を受信する。
●マスタ10が「第2アドレスを使用した読出要求#2」を送信する。
●スレーブ20が「読出結果#1」をマスタ10が受信できたことを確認する。即ち、受信確認手段22は、指定されているアドレスが第1と第2で異なるので、受信できたと判断する。
Next, as shown in FIG. 3, the error detection and retransmission operations in data transfer will be described using an example in which the same register is read twice.
First, Case A is a case where no error occurs during transfer. In this case, the flow until the
The
●
●
The
● The
次に、ケースBは、マスタ10が送信する際に1度誤りが生じたケースである。この場合の流れは、次のようになる。
●マスタ10が「第1アドレスを使用した読出要求#1」を送信する。
●スレーブ20が「第1アドレスを使用した読出要求#1」を受信するが、送受信モジュール21は誤りを検出したので破棄する。
●マスタ10がスレーブ20からの返信が無いので「第1アドレスを使用した読出要求#1」を再送する。
●スレーブ20が「第1アドレスを使用した読出要求#1」を受信する。
●スレーブ20が「読出結果#1」を返信する。
●マスタ10が「読出結果#1」を受信する。
●マスタ10が「第2アドレスを使用した読出要求#2」を送信する。
●スレーブ20が「読出結果#1」をマスタ10が受信できたことを確認する。即ち、受信確認手段22は指定されているアドレスが第1と第2で異なるので、受信できたと判断する。
Next, Case B is a case where an error has occurred once when the
The
The
-Since there is no reply from the
●
●
The
● The
最後に、ケースCは、スレーブが返信する際に1度誤りが生じたケースである。この場合の流れは、次のようになる。
●マスタ10が「第1アドレスを使用した読出要求#1」を送信する。
●スレーブ20が「第1アドレスを使用した読出要求#1」を受信する。
●スレーブ20が「読出結果#1」を返信する。
●マスタ10が「読出結果#1」を受信するが、誤りを検出したので破棄する。
●マスタ10がスレーブ20からの返信が無い(受信したパケットを破棄した)ので、「第1アドレスを使用した読出要求#1」を再送する。
●スレーブ20が「第1アドレスを使用した読出要求#1」を受信する。
●スレーブ20が「読出結果#1」をマスタ1が“受信できなかったこと”を確認する。即ち、受信確認手段22は指定されているアドレスが共に第1アドレスで同じなので、受信できなかったと判断する。
Finally, Case C is a case where an error has occurred once when the slave sends a reply. The flow in this case is as follows.
The
●
The
Since the
● The
●スレーブ20が「読出結果#1’」を返信する。ここで、読出結果#1’とは1回目の読出要求#1から時間が経過し、2回目の読出要求#1を受けた時点でのレジスタの値である。例えばマスタ10が読み出すのが、発生したエラーを保持するレジスタであるとした場合、「読出結果#1」は1回目の読出要求時の値で、「読出結果#1’」は2回目の読出要求時の値である。この2回の読出要求の間に新たなエラーが発生していれば、この「読出結果#1」と「読出結果#1’」は、発生したエラーの分、異なる値となる。新たなエラーが発生していなければ両者は同じ値となる。
●マスタ10が「読出結果#1’」を受信する。
●マスタ10が「第2アドレスを使用した読出要求#2」を送信する。
●スレーブ20が「読出結果#1’」をマスタ10が“受信できたことを”確認する。即ち、受信確認手段22は指定されているアドレスが第1と第2で異なるので、受信できたと判断する。
● The
●
The
● The
このように、スレーブ20の受信確認手段22は、1回目のアドレスと2回目のアドレスを比較することで、マスタ10が1回目の受信に成功したかどうかを確認することができる。
Thus, the reception confirmation means 22 of the
以上説明したように、実施の形態1のデータ転送装置によれば、一方の装置から他方の装置のメモリまたはレジスタに対してデータアクセス要求を行う場合、メモリまたはレジスタをアドレスによって指定し、他方の装置は、指定されたアドレスに基づいてメモリまたはレジスタへのデータアクセスを行うデータ転送装置において、メモリまたはレジスタのアドレスとして複数のアドレス空間のアドレスを設定し、一方の装置は、前回のアクセス要求に対して正常なデータアクセスが行えた場合は、次のアクセス要求で異なるアドレス空間のアドレスを使用し、前回のアクセス要求に対して正常なデータアクセスが行えなかった場合は、次のアクセス要求で前回と同じアドレス空間のアドレスを使用するアクセス要求手段を備え、他方の装置は、一方の装置からアクセス要求を受けた場合、アクセス要求が前回のアクセス要求時のアドレス空間のアドレスであるか否かを判定し、異なるアドレス空間のアドレスであった場合は前回のアクセス要求に対してデータアクセスが正常終了したと判定し、前回のアクセス要求時と同じアドレス空間のアドレスであった場合は、前回のアクセス要求に対してデータアクセスが正常終了していないと判定する受信確認手段を備えたので、アドレス参照でデータ転送するプロトコルにおいても、パケットの形式を変えることなく、かつ、通信負荷を増すこと無く、受信確認を行うことができる。 As described above, according to the data transfer device of the first embodiment, when a data access request is made from one device to the memory or register of the other device, the memory or register is designated by an address, In a data transfer device that performs data access to a memory or register based on a specified address, the device sets addresses of a plurality of address spaces as memory or register addresses, and one device responds to a previous access request. If normal data access is possible, an address in a different address space is used in the next access request. If normal data access cannot be performed in response to the previous access request, the next access request Access request means using an address in the same address space as the other device When an access request is received from one device, it is determined whether or not the access request is an address in the address space at the time of the previous access request. A reception confirmation means for determining that the data access has not been completed normally in response to the previous access request. Thus, even in a protocol for transferring data by referring to an address, reception confirmation can be performed without changing the packet format and without increasing the communication load.
実施の形態2.
図4は、実施の形態2のデータ転送装置を示す構成図である。
実施の形態2におけるデータ転送装置は、マスタ10、スレーブ20a及び信号線30からなり、マスタ10及び信号線30の構成は実施の形態1と同様であるため、マスタ10側の内部構成については省略している。
Embodiment 2. FIG.
FIG. 4 is a configuration diagram illustrating the data transfer apparatus according to the second embodiment.
The data transfer apparatus according to the second embodiment includes a
スレーブ20aは、送受信モジュール21、受信確認手段22、状態レジスタ23を備えている。送受信モジュール21及び受信確認手段22は、実施の形態1と同様の構成である。状態レジスタ23は、データ転送でマスタ10が参照するレジスタであり、レジスタ本体24とレジスタバックアップ25を備えている。レジスタ本体24は、エラー要因など、各種一過性の信号をラッチし、その要因の発生の有無を保持するレジスタである。レジスタバックアップ25は、状態レジスタ23としてのバックアップを行うためのレジスタである。
The
次に、実施の形態2のデータ転送装置の動作について説明する。
先ず、基本的な動作としてマスタ10がスレーブ20aの状態レジスタ23を参照する例を説明する。
●マスタ10は、状態レジスタ23を第1アドレスで指定し、読み出し要求を送出する。
●送受信モジュール21は、パケットを受け取り、誤り検出を行い、誤りを見つけた場合は、これを破棄する。誤りが無ければ、パケットが示す読み出し要求に従って、状態レジスタ23の値を読み出す。
●状態レジスタ23は、読み出し要求があった際、以下のように動作する。
・レジスタ本体24とレジスタバックアップ25の論理和をレジスタバックアップ25に代入する。
・レジスタ本体24を0クリアする。
・このレジスタバックアップ25の値を状態レジスタ23の値として送受信モジュール21に返す。
Next, the operation of the data transfer apparatus according to the second embodiment will be described.
First, an example in which the
The
The transmission /
The
The logical sum of the
• Clear the
Return the value of this
●送受信モジュール21は、受け取った値を元に、パケットを生成し、マスタ10へ読み出し結果を返す。
●マスタ10は、読み出し結果を受け取る。
●マスタ10は、別の読み出し要求(または書き込み要求)を出す。この時、対象を指定するアドレスとして、第2アドレスを指定する。
●送受信モジュール21は、パケットを受け取り、誤り検出を行い、誤りを見つけた場合は、これを破棄する。誤りが無ければ、パケットが示す要求に従う。
●受信確認手段22は、前回記憶したアドレスと、今回指定されたアドレスを比較する。
比較の結果、アドレスの第1・第2が切り替わっていれば、前回マスタ10へ送信したパケットがマスタ10側で受信できたと判断する。逆に、切り替わってなければ、前回マスタ10へ送信したパケットは、受信されなかったと判断する。前回記憶したアドレスで、状態レジスタ23が指定されており、かつ、受信できたと判断した場合は、受信確認信号を状態レジスタ23に送る。
●状態レジスタ23は、受信確認手段22から受信確認信号を受け取った際、レジスタバックアップ25の値を0クリアする。なお、マスタ10が今回も状態レジスタ23の読み出しを指定している場合、このレジスタクリアが最初に行われるものとする。前述の論理和によるレジスタ更新は、この後に行われるものとする。
The transmission /
● The
The
The transmission /
The
If the first and second addresses are switched as a result of the comparison, it is determined that the previous packet transmitted to the
The
図3のケースCを例に、実施の形態2のデータ転送装置の動作について更に説明する。
●マスタ10が、状態レジスタ23への読出要求#1を送信する。
●スレーブ20aが、状態レジスタ23の読出要求#1を受信する。
●スレーブ20aが、状態レジスタ23の読出結果#1を送信する。
この時、状態レジスタ23においては、レジスタ本体24の値は0クリアされる。また、レジスタバックアップ25には、読出結果#1と同じ値が保持されている。
●マスタ10が、読出結果#1の受信に失敗する(誤りを検出する)。
●マスタ10が、再度、状態レジスタ23への読出要求#1を送信する。
●スレーブ20aが、状態レジスタ23の読出要求#1を受信する。
この時、受信確認手段22は、マスタ10側が受信に失敗していることを検出する。このため、受信に成功したことを示す信号は送られず、状態レジスタ23では、レジスタバックアップ25の0クリアは行われない。
●スレーブ20aが、状態レジスタ23の読出結果#1’を送信する。
この時、レジスタ本体24の値は、また0クリアされる。また、レジスタバックアップ25には、読出結果#1’と同じ値が保持されている。この読出結果#1’は、読出結果#1に、読出結果#1を送信した後、新たにレジスタ本体24へセットされた値を加えたものになっている。もし、レジスタ本体24の値をそのまま返すと、読出要求#1で読み出されるはずだった値が取りこぼしとなる。
The operation of the data transfer apparatus according to the second embodiment will be further described by taking case C in FIG. 3 as an example.
The
The
● The
At this time, in the
The
The
At this time, the reception confirmation means 22 detects that the
● The
At this time, the value of the
●マスタ10が、状態レジスタ23の読出結果#1’を受信する。
●マスタ10が、状態レジスタ23への読出要求#2を送信する。
●スレーブ20aが、状態レジスタ23の読出要求#2を受信する。
この時、受信確認手段22は、マスタ10側が受信に成功したことを検出し、状態レジスタ23に信号を送る。これにより、レジスタバックアップ25は、0クリアされる。
●スレーブ20aが、状態レジスタ23の読出結果#2を送信する。
この時、レジスタ本体24の値は0クリアされる。また、レジスタバックアップ25には、読出結果#2と同じ値が保持されている。この読出結果#2は、読出結果#1’を送信した後、新たにレジスタ本体24へセットされた値が入る。
●マスタ10が、読出結果#2を受信する。
The
The
The
At this time, the
The
At this time, the value of the
●
以上の動作により、状態レジスタ23の値は、マスタ10側が読み出す毎にクリアされる。また、その際、値を取りこぼすことも、重複して読むことも無い。また、マスタ10は、読み出し要求に対する返信が届かない場合、読み出し要求を必ずしも再送する必要は無い。その時の読み出しを諦め、他のアクセスを行い、状態レジスタ23の参照を次の読み出しタイミングに先送りすることもできる。即ち、マスタ10はスレーブ20aに保持されているエラーの定期的な読み出しといったアクセスを行うため、次の読み出しタイミングであっても、最初に読み出し要求を行った時点の値を必ず取得することができる。
With the above operation, the value of the
実施の形態2のデータ転送装置では、読み出したレジスタの値を自動でクリアすることができるため、明示的にレジスタをクリアする書き込みをマスタ10側から行う必要が無い。これにより、マスタ−スレーブ間でのデータ転送回数を減らすことができる。
In the data transfer device according to the second embodiment, the read register value can be automatically cleared, so that it is not necessary to write from the
以上説明したように、実施の形態2のデータ転送装置によれば、他方の装置は、レジスタとして、前回のデータアクセス時のデータと、それ以降の新たなデータとを保持するレジスタバックアップを有し、受信確認手段が正常終了であると判定した場合はレジスタバックアップのデータをクリアし、正常終了していないと判定した場合はレジスタバックアップのデータを一方の装置への応答データとする状態レジスタを備えたので、アクセス要求を行った時点の値を確実に得ることができる共に、装置間でのデータ転送回数を減らすことができる。 As described above, according to the data transfer apparatus of the second embodiment, the other apparatus has a register backup that holds data at the time of the previous data access and new data after that as a register. If the reception confirmation means determines that the end is normal, the register backup data is cleared. If it is determined that the reception end does not end normally, a status register is provided that uses the register backup data as response data to one device. Therefore, the value at the time when the access request is made can be surely obtained, and the number of times of data transfer between devices can be reduced.
実施の形態3.
実施の形態1、2では、データ転送用のアドレスとして、全てのレジスタやメモリにミラー領域を設けていたが、アドレスのミラー領域を用意する対象をレジスタのみとする等、一部に限定することもでき、実施の形態3はこのような例である。
図5は、レジスタに対してのみミラー領域を設けた例である。
実施の形態3において、データ転送装置としての図面上の構成は実施の形態1または実施の形態2に示すものと同様であるため、各部の構成の説明は省略する。
図5におけるレジスタの領域(第1アドレス)とレジスタのミラー領域(第2アドレス)は、実施の形態2における状態レジスタ23(参照後、自動でクリアするレジスタ)に対して割り当てるか、あるいは、状態レジスタ23を含む一部のアドレスにのみ割り当ててもよい。
Embodiment 3 FIG.
In the first and second embodiments, all registers and memories have mirror areas as data transfer addresses. However, only a part of the address mirror area should be prepared, such as registers. Embodiment 3 is such an example.
FIG. 5 shows an example in which a mirror area is provided only for a register.
In the third embodiment, the configuration of the data transfer apparatus on the drawing is the same as that shown in the first or second embodiment, and thus the description of the configuration of each unit is omitted.
The register area (first address) and the mirror area (second address) in FIG. 5 are allocated to the status register 23 (register that is automatically cleared after reference) in the second embodiment, or the status You may allocate only to the one part address containing the register |
例えば、レジスタが50個あり、そのうちの4個だけ状態レジスタ23であるとする。ここで、アドレスの0〜49番地をこの50個のレジスタに割り当てるだけなら、ミラー領域がない、通常の割り当てと同様である。これに対し、50〜53番地を状態レジスタ23にアクセスできるミラー領域として設定するというのが、第1の方法である。また、第2の方法として、状態レジスタ23を48〜51番地に割り当て、その上で、48〜55番地のミラー領域として56〜63番地を割り当てることもできる。この場合、48〜55番地は、状態レジスタ23を一部に含むアドレスであり、56〜63番地は、このミラー領域になる。この割り当てでは、アドレスの割り当てを変えずに、状態レジスタ23を4つ追加することができる。
このように、一部だけミラー領域がある方式では、64個の番地があればよく、アドレスは、6bitで足りるが、全部にミラー領域を用意した場合は、100個の番地を使うことになり、アドレスは、7bit必要になる。
For example, assume that there are 50 registers, and only four of them are status registers 23. Here, if only the addresses 0 to 49 are allocated to the 50 registers, it is the same as the normal allocation with no mirror area. In contrast, the first method is to set addresses 50 to 53 as mirror areas that can access the
As described above, in the method having only a part of the mirror area, 64 addresses are sufficient, and an address of 6 bits is sufficient. However, when the mirror area is prepared for all, 100 addresses are used. The address needs 7 bits.
以上説明したように、実施の形態3のデータ転送装置によれば、一方の装置から他方の装置のメモリまたはレジスタに対してデータアクセス要求を行う場合、メモリまたはレジスタをアドレスによって指定し、他方の装置は、指定されたアドレスに基づいてメモリまたはレジスタへのデータアクセスを行うデータ転送装置において、レジスタのアドレスとして複数のアドレス空間のアドレスを設定し、一方の装置は、前回のアクセス要求に対して正常なデータアクセスが行えた場合は、次のアクセス要求で異なるアドレス空間のアドレスを使用し、前回のアクセス要求に対して正常なデータアクセスが行えなかった場合は、次のアクセス要求に前回と同様のアドレス空間のアドレスを使用するアクセス要求手段を備え、他方の装置は、一方の装置からアクセス要求を受けた場合、アクセス要求が前回のアクセス要求時のアドレス空間のアドレスであるか否かを判定し、異なるアドレス空間のアドレスであった場合は前回のアクセス要求に対してデータアクセスが正常終了したと判定し、前回のアクセス要求時と同じアドレス空間のアドレスであった場合は、前回のアクセス要求に対してデータアクセスが正常終了していないと判定する受信確認手段と、前回のデータアクセス時のデータと、それ以降の新たなデータとを保持するレジスタバックアップを有し、受信確認手段が正常終了であると判定した場合はレジスタバックアップのデータをクリアし、正常終了していないと判定した場合はレジスタバックアップのデータを一方の装置への応答データとする状態レジスタをレジスタとして備えたので、必要とするアドレス空間を大幅に削減することができる。 As described above, according to the data transfer device of the third embodiment, when a data access request is made from one device to the memory or register of the other device, the memory or register is designated by an address, In a data transfer device that performs data access to a memory or a register based on a specified address, the device sets addresses in a plurality of address spaces as register addresses, and one device responds to a previous access request. If normal data access is possible, the next access request uses an address in a different address space. If normal data access cannot be performed for the previous access request, the next access request is the same as the previous one. Access request means using addresses in the other address space, and the other device When an access request is received from a device, it is determined whether the access request is an address space address at the time of the previous access request. If the access request is an address of a different address space, data access is performed with respect to the previous access request. If the address is in the same address space as the previous access request, the reception confirmation means for determining that the data access has not ended normally with respect to the previous access request, If there is a register backup that holds data at the time of data access and new data after that, and if it is determined that the reception confirmation means is normal end, the register backup data is cleared and it is not normal end If it is determined, register the status register that uses the register backup data as the response data to one device. Since to provided, it is possible to greatly reduce the address space that need.
尚、本願発明はその発明の範囲内において、各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。 In the present invention, within the scope of the invention, the embodiments can be freely combined, any component of each embodiment can be modified, or any component can be omitted in each embodiment. .
10 マスタ、11 制御モジュール、12,21 送受信モジュール、13 アクセス要求手段、20,20a スレーブ、22 受信確認手段、23 状態レジスタ、24 レジスタ本体、25 レジスタバックアップ。 10 master, 11 control module, 12, 21 transceiver module, 13 access request means, 20, 20a slave, 22 reception confirmation means, 23 status register, 24 register body, 25 register backup.
Claims (3)
前記メモリまたはレジスタのアドレスとして複数のアドレス空間のアドレスを設定し、
前記一方の装置は、
前回のアクセス要求に対して正常なデータアクセスが行えた場合は、次のアクセス要求で異なるアドレス空間のアドレスを使用し、前回のアクセス要求に対して正常なデータアクセスが行えなかった場合は、次のアクセス要求で前回と同じアドレス空間のアドレスを使用するアクセス要求手段を備え、
前記他方の装置は、
前記一方の装置からアクセス要求を受けた場合、当該アクセス要求が前回のアクセス要求時のアドレス空間のアドレスであるか否かを判定し、異なるアドレス空間のアドレスであった場合は前回のアクセス要求に対してデータアクセスが正常終了したと判定し、前回のアクセス要求時と同じアドレス空間のアドレスであった場合は、前回のアクセス要求に対してデータアクセスが正常終了していないと判定する受信確認手段を備えたことを特徴とするデータ転送装置。 When a data access request is made from one device to the memory or register of the other device, the memory or register is designated by an address, and the other device accesses the memory or register based on the designated address. In a data transfer device that performs data access,
Set addresses of multiple address spaces as addresses of the memory or register,
The one device is
If normal data access can be performed for the previous access request, an address in a different address space is used for the next access request. If normal data access is not performed for the previous access request, the next Access request means that uses the same address space address as the previous access request,
The other device is
When an access request is received from the one device, it is determined whether or not the access request is an address in the address space at the time of the previous access request. On the other hand, if it is determined that the data access has been normally completed and the address is in the same address space as the previous access request, the reception confirmation means determines that the data access has not been normally completed with respect to the previous access request. A data transfer device comprising:
前回のデータアクセス時のデータと、それ以降の新たなデータとを保持するレジスタバックアップを有し、受信確認手段が正常終了であると判定した場合は前記レジスタバックアップのデータをクリアし、正常終了していないと判定した場合は前記レジスタバックアップのデータを一方の装置への応答データとする状態レジスタを備えたことを特徴とする請求項1記載のデータ転送装置。 The other device is a register
It has a register backup that holds the data at the time of the previous data access and new data after that, and when it is determined that the reception confirmation means is normal end, the register backup data is cleared and the normal end is completed. 2. The data transfer apparatus according to claim 1, further comprising a status register that uses the register backup data as response data to one apparatus when it is determined that the data is not stored.
前記レジスタのアドレスとして複数のアドレス空間のアドレスを設定し、
前記一方の装置は、
前回のアクセス要求に対して正常なデータアクセスが行えた場合は、次のアクセス要求で異なるアドレス空間のアドレスを使用し、前回のアクセス要求に対して正常なデータアクセスが行えなかった場合は、次のアクセス要求に前回と同様のアドレス空間のアドレスを使用するアクセス要求手段を備え、
前記他方の装置は、
前記一方の装置からアクセス要求を受けた場合、当該アクセス要求が前回のアクセス要求時のアドレス空間のアドレスであるか否かを判定し、異なるアドレス空間のアドレスであった場合は前回のアクセス要求に対してデータアクセスが正常終了したと判定し、前回のアクセス要求時と同じアドレス空間のアドレスであった場合は、前回のアクセス要求に対してデータアクセスが正常終了していないと判定する受信確認手段と、
前回のデータアクセス時のデータと、それ以降の新たなデータとを保持するレジスタバックアップを有し、前記受信確認手段が正常終了であると判定した場合は前記レジスタバックアップのデータをクリアし、正常終了していないと判定した場合は前記レジスタバックアップのデータを一方の装置への応答データとする状態レジスタを前記レジスタとして備えたことを特徴とするデータ転送装置。 When a data access request is made from one device to the memory or register of the other device, the memory or register is designated by an address, and the other device accesses the memory or register based on the designated address. In a data transfer device that performs data access,
A plurality of address space addresses are set as the register addresses;
The one device is
If normal data access can be performed for the previous access request, an address in a different address space is used for the next access request. If normal data access is not performed for the previous access request, the next Access request means that uses the same address space address as the previous access request,
The other device is
When an access request is received from the one device, it is determined whether or not the access request is an address in the address space at the time of the previous access request. On the other hand, if it is determined that the data access has been normally completed and the address is in the same address space as the previous access request, the reception confirmation means determines that the data access has not been normally completed with respect to the previous access request. When,
It has a register backup that holds the data at the time of the previous data access and the new data after that, and when it is determined that the reception confirmation means is completed normally, the register backup data is cleared and the process ends normally. A data transfer device comprising a status register as the register that uses the register backup data as response data to one device when it is determined that the register backup is not performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011045035A JP2012182718A (en) | 2011-03-02 | 2011-03-02 | Data transfer unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011045035A JP2012182718A (en) | 2011-03-02 | 2011-03-02 | Data transfer unit |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012182718A true JP2012182718A (en) | 2012-09-20 |
Family
ID=47013524
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011045035A Withdrawn JP2012182718A (en) | 2011-03-02 | 2011-03-02 | Data transfer unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012182718A (en) |
-
2011
- 2011-03-02 JP JP2011045035A patent/JP2012182718A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101876963B (en) | PCI.Express communication system and communication method thereof | |
JP3305769B2 (en) | Communication device | |
US6470391B2 (en) | Method for transmitting data via a network in a form of divided sub-packets | |
CN101645766B (en) | Method, device and system for realizing data packet retransmission | |
CN102098212B (en) | Apparatus for processing peripheral component interconnect express protocol | |
EP0762705A2 (en) | Method for transmitting data via a network | |
US20030009432A1 (en) | Access assurance for remote memory access over network | |
US6965571B2 (en) | Precise error reporting | |
US9071525B2 (en) | Data receiving apparatus, data receiving method, and program storage medium | |
CN103248467A (en) | In-chip connection management-based RDMA communication method | |
TW201137612A (en) | Memory mirroring and migration at home agent | |
US20100169526A1 (en) | Slave and communicating method between a master and the same | |
US8291301B2 (en) | Data transfer method capable of saving memory for storing packet in USB protocol and apparatus thereof | |
JP2006190257A (en) | Data transfer device and its method | |
WO2017185322A1 (en) | Storage network element discovery method and device | |
US11715337B2 (en) | Controller diagnostic device and method thereof | |
WO2019047573A1 (en) | Downlink data transmission cache method, terminal, and base station | |
US8438445B2 (en) | Methods and systems for error detection of data transmission | |
US8433952B2 (en) | Memory access control device, memory access control method and memory access control program | |
CN111752881A (en) | Inter-module communication method and system | |
JP2010092336A (en) | Storage system and communication method | |
JP4411328B2 (en) | Data communication system and data communication method | |
JP2012182718A (en) | Data transfer unit | |
CN111104060A (en) | Cache maintenance operations in a data processing system | |
JP4690271B2 (en) | Data transfer buffer control device and data transfer control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140513 |