JP5855165B2 - Frame data processing method and frame data processing apparatus - Google Patents

Frame data processing method and frame data processing apparatus Download PDF

Info

Publication number
JP5855165B2
JP5855165B2 JP2014115495A JP2014115495A JP5855165B2 JP 5855165 B2 JP5855165 B2 JP 5855165B2 JP 2014115495 A JP2014115495 A JP 2014115495A JP 2014115495 A JP2014115495 A JP 2014115495A JP 5855165 B2 JP5855165 B2 JP 5855165B2
Authority
JP
Japan
Prior art keywords
data
frame
crc calculation
length information
procedure
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.)
Active
Application number
JP2014115495A
Other languages
Japanese (ja)
Other versions
JP2015231082A (en
Inventor
智晴 仙北
智晴 仙北
順司 所
順司 所
亮介 唐沢
亮介 唐沢
輝彦 井上
輝彦 井上
常夫 松村
常夫 松村
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.)
NTT Electronics Corp
Original Assignee
NTT Electronics 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 NTT Electronics Corp filed Critical NTT Electronics Corp
Priority to JP2014115495A priority Critical patent/JP5855165B2/en
Publication of JP2015231082A publication Critical patent/JP2015231082A/en
Application granted granted Critical
Publication of JP5855165B2 publication Critical patent/JP5855165B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Error Detection And Correction (AREA)

Description

本発明は、送受信フレームのデータをCRC(Cyclic Redundancy Check)演算を行うフレームデータ処理方法及びフレームデータ処理装置に関する。   The present invention relates to a frame data processing method and a frame data processing apparatus for performing CRC (Cyclic Redundancy Check) operation on transmission / reception frame data.

送受信フレームをメモリ等に格納するシステムにおいては、信頼性向上のため、メモリ内でのデータの書き変わり等のソフトエラーの発生を検知する機能を備える必要がある。CRC演算は、データの転送や格納時にデータのエラーを検出するチェックサムとして一般的に使用されている(例えば、特許文献1参照。)。   In a system for storing a transmission / reception frame in a memory or the like, it is necessary to have a function of detecting the occurrence of a soft error such as data rewrite in the memory in order to improve reliability. The CRC calculation is generally used as a checksum for detecting a data error during data transfer or storage (see, for example, Patent Document 1).

図1は、入力フレームのデータをCRC演算する場合のタイミングチャートを示す。11はシステムのクロック、12は入力フレームデータの有効領域を示す信号、13は入力フレームデータ、14は入力フレーム長、15はCRC演算時間を示す。   FIG. 1 shows a timing chart when CRC calculation is performed on data of an input frame. 11 is a system clock, 12 is a signal indicating an effective area of input frame data, 13 is input frame data, 14 is an input frame length, and 15 is a CRC calculation time.

入力フレーム長14はnサイクルクロック分のデータを有する。CRC演算は、入力されたフレームデータに対して逐次演算を実施して結果を求めるため、演算時間は入力フレーム長14に依存する。ここで、最終のCRC演算結果が得られる時間(CRC演算結果時間)を式1に示す。
(数1)
T×n+TCRC (1)
式1においてTは1サイクル時間、TCRCは1〜nのデータのCRC演算時間15を示す。システムによっては、入力フレームの入力完了後に書き換えデータが確定し、その確定データを入力フレームに対して、書き換えるような場合がある。例えばパケット信号をメモリに格納するようなシステムがあげられる。
The input frame length 14 has data for n cycle clocks. Since the CRC calculation sequentially calculates the input frame data and obtains the result, the calculation time depends on the input frame length 14. Here, the time (CRC calculation result time) at which the final CRC calculation result is obtained is shown in Equation 1.
(Equation 1)
T x n + T CRC (1)
In Equation 1, T represents one cycle time, and T CRC represents a CRC calculation time 15 of data 1 to n. Depending on the system, there is a case where the rewritten data is confirmed after the input of the input frame is completed, and the confirmed data is rewritten to the input frame. For example, there is a system that stores a packet signal in a memory.

次に、メモリにフレームデータを格納する時にフレームデータを書き換える必要がある例について説明する。図2及び図3はフレーム長情報19の取得タイミングと読み出し制御(リードイネーブル17)信号のタイムチャートを示す。   Next, an example in which frame data needs to be rewritten when frame data is stored in a memory will be described. 2 and 3 are timing charts of the acquisition timing of the frame length information 19 and the read control (read enable 17) signal.

図2は、フレームデータの書き換えがない場合のフレームデータを読み出す場合であり、フレームにフレームデータ長がなく、フレームの末尾でフレーム長がわかった場合のタイムチャートを示す。11はシステムのクロック、16は読み出し要求信号、17はリードイネーブル信号、18はリードデータ、19はフレーム長情報を示す。この場合、リードイネーブル信号17はフレーム長がわかった時点からオフ(読み出し不可)とするため、余分のリードイネーブル信号17を出力しているアンダフロー状態(書き込みデータ以上に読み出す状態)となる。このような状態では無効データを読み出すことで、誤認識、誤りデータを送信する等の誤動作を招く可能性がある。   FIG. 2 shows a case where the frame data is read when there is no rewriting of the frame data, and shows a time chart when the frame has no frame data length and the frame length is known at the end of the frame. 11 is a system clock, 16 is a read request signal, 17 is a read enable signal, 18 is read data, and 19 is frame length information. In this case, since the read enable signal 17 is turned off (cannot be read) from the time when the frame length is known, the read enable signal 17 is in an underflow state (a state in which more than the write data is read) in which an extra read enable signal 17 is output. In such a state, reading invalid data may cause erroneous operations such as erroneous recognition and transmission of erroneous data.

図3は、フレームデータの書き換えがある場合のフレームデータを読み出す場合であり、フレームの先頭にフレーム長情報19がある場合のタイムチャートを示す。この場合、フレームの先頭に読み出し時にフレームの長さがわかるので、リードイネーブル信号17はフレーム長に対応するクロック分の長さでオフとすることができる。従ってメモリにフレームデータを格納するときにフレームの先頭にフレーム長情報19を書き換えることにより、メモリからフレームを読み出す時に、フレームの長さに応じてリードイネーブル信号17の出力期間を制御することができ、上記図2のような問題を解消することができる。   FIG. 3 shows a time chart when the frame data is read when the frame data is rewritten, and when the frame length information 19 is present at the head of the frame. In this case, since the length of the frame is known at the beginning of the frame at the time of reading, the read enable signal 17 can be turned off with a length corresponding to the clock corresponding to the frame length. Therefore, when the frame data is stored in the memory, the output period of the read enable signal 17 can be controlled according to the length of the frame when the frame is read from the memory by rewriting the frame length information 19 at the head of the frame. The problem as shown in FIG. 2 can be solved.

図4は入力フレームに対してデータの書き換えがある場合のCRC演算のタイミングチャートを示す。11はシステムのクロック、12は入力フレームデータの有効領域を示す信号、13は入力フレームデータ、21は書き換え後の入力フレームデータ、14は入力フレーム長、15はCRC演算時間、19はフレーム長情報であるLenを示す。入力フレームデータ13のデータ読み出し後にフレーム長情報19を示すLenが確定し、入力フレームデータ13の先頭のプリアンブルをフレーム長情報19を示すLenに書き換えて、メモリに格納する。この場合における、最終のCRC演算結果が得られる時間(CRC演算結果時間)の算出式を式2に示す。
(数2)
T×2n+TCRC (2)
式2に示す書き換え後の入力フレームデータ21に対するCRC演算結果時間はフレーム長の2倍の時間とCRC演算時間TCRCとを要する。
FIG. 4 shows a timing chart of CRC calculation when data is rewritten with respect to an input frame. 11 is a system clock, 12 is a signal indicating an effective area of input frame data, 13 is input frame data, 21 is input frame data after rewriting, 14 is an input frame length, 15 is a CRC calculation time, and 19 is frame length information. Len is shown. After the data of the input frame data 13 is read, Len indicating the frame length information 19 is determined, and the leading preamble of the input frame data 13 is rewritten to Len indicating the frame length information 19 and stored in the memory. In this case, a formula for calculating the time (CRC calculation result time) for obtaining the final CRC calculation result is shown in Formula 2.
(Equation 2)
T × 2n + T CRC (2)
The CRC calculation result time for the rewritten input frame data 21 shown in Expression 2 requires twice the frame length and a CRC calculation time T CRC .

特開2002−135355号公報JP 2002-135355 A

関連技術では、送受信入力フレームを書き換えてメモリ内に格納して、メモリ内の入力フレームに対してCRC演算をする場合、フレーム長の2倍の時間とCRC演算時間TCRCがかかるという課題があった。 In the related art, when the transmission / reception input frame is rewritten and stored in the memory and the CRC calculation is performed on the input frame in the memory, there is a problem that it takes twice the frame length and the CRC calculation time T CRC. It was.

前記課題を解決するために、本発明は、入力フレームデータの書き換える領域と書き換えない領域を分離させ、書き換えない領域のCRC演算は入力に対して逐次演算で実施し、書き換える領域のCRC演算は書換え入力完成後に実施する。その後、書き換える領域と書き換えない領域のCRC演算結果を合わせて再度CRC演算を行うことを目的とする。   In order to solve the above-mentioned problems, the present invention separates an area in which input frame data is to be rewritten from an area that is not to be rewritten. Perform after input completion. Thereafter, the CRC calculation is performed again by combining the CRC calculation results of the area to be rewritten and the area not to be rewritten.

上記目的を達成するため、本発明では、入力フレームにおいて、書き換える領域又は書き換えない領域に分離し、CRC演算を行う。   In order to achieve the above object, in the present invention, in the input frame, a CRC calculation is performed by separating the area into a region to be rewritten or a region not to be rewritten.

具体的には、本発明に係るフレームデータ処理方法は
予め定められた領域を有するフレーム内のデータのうち、データを書き換える可変領域と、データを書き換えない不変領域とに、データを分離するフレームデータ分離手順と、
前記フレームデータ分離手順で分離した前記フレームのフレーム長情報を取得するフレーム長情報取得手順と、
前記フレームデータ分離手順で分離した前記不変領域のデータに対しCRC(Cyclic Redundancy Check)演算を行う第一のCRC演算手順と、
前記フレーム長情報取得手順で取得した前記フレーム長情報を前記可変領域のデータに割当てるフレーム長情報割当て手順と、
前記フレーム長情報割当て手順で前記フレーム長情報を割当てた可変領域のデータに対しCRC演算を行う第二のCRC演算手順と、
前記第一のCRC演算手順の算出結果と、前記第二のCRC演算手順の算出結果とに対してCRC演算を行う第三のCRC演算手順と、を行う。
Specifically, the frame data processing method according to the present invention includes frame data that separates data into a variable area in which data is rewritten and an invariant area in which data is not rewritten out of data in a frame having a predetermined area. A separation procedure;
A frame length information acquisition procedure for acquiring frame length information of the frame separated by the frame data separation procedure;
A first CRC calculation procedure for performing a CRC (Cyclic Redundancy Check) operation on the data of the invariant area separated by the frame data separation procedure;
A frame length information allocation procedure for allocating the frame length information acquired in the frame length information acquisition procedure to the data in the variable region;
A second CRC calculation procedure for performing CRC calculation on the data in the variable area to which the frame length information is assigned in the frame length information assignment procedure;
A third CRC calculation procedure for performing CRC calculation on the calculation result of the first CRC calculation procedure and the calculation result of the second CRC calculation procedure is performed.

本発明に係るフレームデータ処理方法では、
前記第一のCRC演算手順及び前記第二のCRC演算手順を同一クロック内で行われてもよい。
In the frame data processing method according to the present invention,
The first CRC calculation procedure and the second CRC calculation procedure may be performed within the same clock.

具体的には、本発明に係るフレームデータ処理装置は
予め定められた領域を有するフレーム内のデータのうち、データを書き換える可変領域と、データを書き換えない不変領域とに、データを分離するフレームデータ分離回路と、
前記フレームのフレーム長情報を取得するフレーム長情報取得回路と、
前記不変領域のデータに対しCRC演算を行う第一のCRC演算回路と、
前記フレーム長情報を前記可変領域のデータに割当てるフレーム長情報割当て回路と、
前記フレーム長情報割当て回路で前記フレーム長情報を割当てた可変領域のデータに対しCRC演算を行う第二のCRC演算回路と、
前記第一のCRC演算回路の算出結果と、前記第二のCRC演算回路の算出結果とに対してCRC演算を行う第三のCRC演算回路と、を備える。
Specifically, the frame data processing apparatus according to the present invention is a frame data that separates data into a variable area in which data is rewritten and an invariant area in which data is not rewritten out of data in a frame having a predetermined area. A separation circuit;
A frame length information acquisition circuit for acquiring frame length information of the frame;
A first CRC calculation circuit for performing CRC calculation on the data of the invariant area;
A frame length information allocation circuit for allocating the frame length information to the data in the variable region;
A second CRC calculation circuit that performs a CRC calculation on the variable area data to which the frame length information is allocated by the frame length information allocation circuit;
A third CRC calculation circuit that performs a CRC calculation on the calculation result of the first CRC calculation circuit and the calculation result of the second CRC calculation circuit;

なお、上記各発明は、可能な限り組み合わせることができる。   The above inventions can be combined as much as possible.

本発明によれば、入力フレームデータの書き換える領域と書き換えない領域を分離し、書き換えない領域のCRC演算は入力に対して逐次演算で実施し、書き換える領域のCRC演算は書換え入力完成後に演算を実施する。その後、書き換える領域と書き換えない領域のCRC演算結果を合わせて再度CRC演算するため、本発明では、関連技術に比べCRC演算結果時間を約1/2に短縮することができる。   According to the present invention, the area for rewriting the input frame data is separated from the area not to be rewritten, the CRC operation for the area not to be rewritten is performed on the input sequentially, and the CRC operation for the area to be rewritten is performed after the rewrite input is completed To do. After that, since the CRC calculation result of the area to be rewritten and the CRC calculation result of the area not to be rewritten is combined, the CRC calculation result time can be shortened to about ½ compared with the related art.

関連技術に係るCRC演算におけるタイミングチャートの一例を示す。An example of the timing chart in the CRC calculation which concerns on related technology is shown. 関連技術に係るフレームデータの書き換えがない場合のタイミングチャートの一例を示す。An example of a timing chart when there is no rewriting of the frame data which concerns on related technology is shown. 関連技術に係るフレームデータを書き換えがある場合のタイミングチャートの一例を示す。An example of a timing chart when there is rewriting of frame data according to related technology is shown. 関連技術に係るフレームデータの書き換えがある場合におけるCRC演算のタイミングチャートの一例を示す。An example of a timing chart of CRC calculation when there is rewriting of frame data according to related technology is shown. 本実施形態に係るフレームデータ処理装置の構成の一例を示す。1 shows an exemplary configuration of a frame data processing apparatus according to the present embodiment. 本実施形態に係るCRC演算におけるタイミングチャートの一例を示す。An example of the timing chart in the CRC calculation which concerns on this embodiment is shown. 本実施形態に係るCRC演算におけるフローチャートの一例を示す。An example of the flowchart in the CRC calculation which concerns on this embodiment is shown.

以下、本発明の実施形態について、図面を参照しながら詳細に説明する。なお、本発明は、以下に示す実施形態に限定されるものではない。これらの実施の例は例示に過ぎず、本発明は当業者の知識に基づいて種々の変更、改良を施した形態で実施することができる。なお、本明細書及び図面において符号が同じ構成要素は、相互に同一のものを示すものとする。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited to embodiment shown below. These embodiments are merely examples, and the present invention can be implemented in various modifications and improvements based on the knowledge of those skilled in the art. In the present specification and drawings, the same reference numerals denote the same components.

(実施形態1)
図5は、本実施形態に係るフレームデータ処理装置31の構成の一例を示す。本実施形態に係るフレームデータ処理装置31は、フレームデータ分離回路32と、フレーム長情報取得回路33と、第一のCRC演算回路34と、フレーム長情報割当て回路35と、第二のCRC演算回路36と、第三のCRC演算・付与回路37と、を備える。
(Embodiment 1)
FIG. 5 shows an example of the configuration of the frame data processing device 31 according to the present embodiment. The frame data processing device 31 according to the present embodiment includes a frame data separation circuit 32, a frame length information acquisition circuit 33, a first CRC calculation circuit 34, a frame length information allocation circuit 35, and a second CRC calculation circuit. 36 and a third CRC calculation / assignment circuit 37.

本実施形態に係るフレームデータ処理方法では、フレームデータ分離手順と、フレーム長情報取得手順と、第一のCRC演算手順と、第二のCRC演算手順と、第三のCRC演算手順と、を行う。フレーム長情報取得手順及び第一のCRC演算手順の順序はこれに限定されない。例えば、第一のCRC演算手順の後にフレーム長情報取得手順を行ってもよい。また、第一のCRC演算手順及びフレーム長情報取得手順を同時に行ってもよい。   In the frame data processing method according to the present embodiment, a frame data separation procedure, a frame length information acquisition procedure, a first CRC calculation procedure, a second CRC calculation procedure, and a third CRC calculation procedure are performed. . The order of the frame length information acquisition procedure and the first CRC calculation procedure is not limited to this. For example, the frame length information acquisition procedure may be performed after the first CRC calculation procedure. Further, the first CRC calculation procedure and the frame length information acquisition procedure may be performed simultaneously.

本実施形態に係るフレームデータ処理装置31における、フレームデータ分離回路32は、予め定められた領域を有するフレーム内のデータのうち、データを書き換える可変領域と、データを書き換えずデータの領域に対して不変である不変領域とに、データを分離する。フレーム長情報取得回路33は、フレームのフレーム長情報を取得する。第一のCRC演算回路34は、不変領域のデータに対しCRC演算を行う。   In the frame data processing device 31 according to the present embodiment, the frame data separation circuit 32 applies to a variable area in which data is rewritten and a data area without rewriting data among data in a frame having a predetermined area. Separate data into immutable areas that are immutable. The frame length information acquisition circuit 33 acquires frame length information of the frame. The first CRC calculation circuit 34 performs CRC calculation on the data in the invariant area.

また、本実施形態に係るフレームデータ処理装置31における、フレーム長情報割当て回路35は、フレーム長情報を可変領域のデータに割当てる。第二のCRC演算回路36は、フレーム長情報割当て回路35でフレーム長情報を割当てた可変領域のデータに対しCRC演算を行う。第三のCRC演算・付与回路37は、第一のCRC演算回路34の算出結果と、第二のCRC演算回路36の算出結果とに対してCRC演算を行う。   In addition, the frame length information allocation circuit 35 in the frame data processing device 31 according to the present embodiment allocates frame length information to variable area data. The second CRC calculation circuit 36 performs CRC calculation on the variable area data to which the frame length information is allocated by the frame length information allocation circuit 35. The third CRC calculation / assignment circuit 37 performs a CRC calculation on the calculation result of the first CRC calculation circuit 34 and the calculation result of the second CRC calculation circuit 36.

本実施形態に係るフレームデータ処理方法では、フレームデータ分離手順と、フレーム長情報取得手順と、第一のCRC演算手順と、第二のCRC演算手順と、第三のCRC演算手順と、を行う。本実施形態に係るフレームデータの処理方法の一例を図6に示す。図6では、11はシステムのクロック、12は入力フレームデータの有効領域を示す信号、13は入力フレームデータ、21は領域Bにおける書き換え後のフレームデータ、14は入力フレーム長、19はフレーム長情報Lenを示す。   In the frame data processing method according to the present embodiment, a frame data separation procedure, a frame length information acquisition procedure, a first CRC calculation procedure, a second CRC calculation procedure, and a third CRC calculation procedure are performed. . An example of the frame data processing method according to the present embodiment is shown in FIG. In FIG. 6, 11 is a system clock, 12 is a signal indicating an effective area of input frame data, 13 is input frame data, 21 is frame data after rewriting in area B, 14 is an input frame length, and 19 is frame length information. Len is shown.

図6に示したフレームデータ処理方法の各手順を以下に説明する。図6では、ステップ501は書き換え無の領域AのCRC演算時間を算出する手順、ステップ502は書き換え有りの領域BのCRC演算時間15を算出する手順、ステップ503はフレーム全体のCRC演算時間15を算出する手順を示す。ここで、以下にフレームデータの処理方法について図7のフローチャートを用いてさらに説明する。   Each procedure of the frame data processing method shown in FIG. 6 will be described below. In FIG. 6, step 501 is a procedure for calculating the CRC calculation time for the area A without rewriting, step 502 is a procedure for calculating the CRC calculation time 15 for the area B with rewriting, and step 503 is the CRC calculation time 15 for the entire frame. The procedure to calculate is shown. Here, the frame data processing method will be further described below with reference to the flowchart of FIG.

(1)本実施形態に係るフレームデータ処理方法では、入力フレームデータ13を読み出すとともに、書き換え無の領域AのCRC演算を行う(ステップ101)。
(2)フレーム長情報取得回路33でフレーム長情報取得手順を実行する。具体的には、入力フレームデータ13の読み出し後、フレーム長情報19を取得する(ステップ102)。
(3)フレーム長情報割当て回路35が書き換え有りの領域Bに対し、書き換え後のデータのCRC演算を行う(ステップ103)。
(4)フレーム長情報19を書き換えた、書き換え後のデータのCRC演算を行う(ステップ104)。
(5)最後に、書き換えられた入力フレームデータ13のCRC演算を、書き換え無しの領域AのCRC演算結果と書き換え後の領域BのCRC演算結果を用いて行う(ステップ105)。ここで、本実施形態に係る各CRC演算では、例えば、第一のCRC演算〜第三のCRC演算では、それぞれ同一の生成多項式を用いてCRC演算してもよい。
(1) In the frame data processing method according to the present embodiment, the input frame data 13 is read, and CRC calculation is performed on the area A that is not rewritten (step 101).
(2) The frame length information acquisition circuit 33 executes a frame length information acquisition procedure. Specifically, after the input frame data 13 is read, the frame length information 19 is acquired (step 102).
(3) The frame length information allocation circuit 35 performs a CRC calculation on the rewritten data for the area B with rewriting (step 103).
(4) CRC calculation is performed on the rewritten data with the frame length information 19 rewritten (step 104).
(5) Finally, the CRC calculation of the rewritten input frame data 13 is performed using the CRC calculation result of the area A without rewriting and the CRC calculation result of the area B after rewriting (step 105). Here, in each CRC calculation according to the present embodiment, for example, in the first CRC calculation to the third CRC calculation, the CRC calculation may be performed using the same generator polynomial.

上述のフレームデータ処理方法では、書き換える領域である可変領域と、書き換えない領域である不変領域とに分けることで、CRC演算を分離して演算処理が可能となるよう、フレームデータ分離手順で、予め定められた領域を有するフレーム内のデータのうち、データを書き換える可変領域と、データを書き換えない不変領域とに、データを分離する。具体的には、フレームデータ分離手順では、フレームデータの有効領域を示す信号12が“1”の期間をカウントし、カウント数に応じて領域を分離する。例えば、カウント数が0の場合は可変領域とし、1〜8の場合は不変領域というように分けることで可変領域及び不変領域に分離することを実現できる。   In the frame data processing method described above, the frame data separation procedure is performed in advance so that the CRC processing can be performed separately by dividing the variable region, which is a rewritten region, and the invariable region, which is a non-rewritten region. Of the data in the frame having a predetermined area, the data is separated into a variable area where data is rewritten and an invariable area where data is not rewritten. Specifically, in the frame data separation procedure, the period in which the signal 12 indicating the effective area of the frame data is “1” is counted, and the areas are separated according to the count number. For example, it is possible to realize separation into a variable area and an invariable area by dividing the variable area into a variable area when the count number is 0, and an invariant area when 1 to 8.

図5では、本実施形態に係るフレームデータ処理装置31及びフレームデータ受信装置41の構成の一例を示す。フレームデータ処理装置31は、フレームデータ分離回路32と、フレーム長情報取得回路33と、第一のCRC演算回路34と、フレーム長情報割当て回路35と、第二のCRC演算回路36と、第三のCRC演算・付与回路37と、を備える。一方、フレームデータ受信装置41では、フレームデータ受信装置41側において、フレームデータ分離回路42と、第一のCRC演算回路43と、第二のCRC演算回路44と、第三のCRC演算・チェック回路45と、を備える。また、フレームデータは、メモリ40を介して処理装置31からフレームデータ受信装置41に送出される。   FIG. 5 shows an example of the configuration of the frame data processing device 31 and the frame data receiving device 41 according to the present embodiment. The frame data processing device 31 includes a frame data separation circuit 32, a frame length information acquisition circuit 33, a first CRC calculation circuit 34, a frame length information allocation circuit 35, a second CRC calculation circuit 36, and a third CRC calculation / assignment circuit 37. On the other hand, in the frame data receiving apparatus 41, on the frame data receiving apparatus 41 side, the frame data separating circuit 42, the first CRC calculating circuit 43, the second CRC calculating circuit 44, and the third CRC calculating / checking circuit are provided. 45. The frame data is sent from the processing device 31 to the frame data receiving device 41 via the memory 40.

具体的には、フレームデータ受信装置41側では、フレームデータ分離回路42は、メモリ40から送出されたフレームデータを書き換える領域及び書き換えない領域に分離し、書き換えない領域に分離したデータを第一のCRC演算回路43に送出し、書き換える領域データに分離したデータを第二のCRC演算回路44に送出する。第一のCRC演算回路43は書き換えない領域に分離したデータをCRC演算し、第二のCRC演算回路44は書き換える領域に分離したデータをCRC演算する。第三のCRC演算・チェック回路45は、第一のCRC演算回路43及び第二のCRC演算回路44で演算したCRC演算結果をチェックする。   Specifically, on the frame data receiving device 41 side, the frame data separation circuit 42 separates the frame data sent from the memory 40 into a rewrite area and a non-rewrite area, and the data separated into the non-rewrite area is the first data. Data sent to the CRC calculation circuit 43 and data separated into the area data to be rewritten are sent to the second CRC calculation circuit 44. The first CRC calculation circuit 43 performs CRC calculation on the data separated in the area not to be rewritten, and the second CRC calculation circuit 44 performs CRC calculation on the data separated in the area to be rewritten. The third CRC calculation / check circuit 45 checks the CRC calculation result calculated by the first CRC calculation circuit 43 and the second CRC calculation circuit 44.

図5におけるフレームデータ処理装置31及びフレームデータ受信装置41の構成例では、メモリ40においてフレームデータを取得した際、当該メモリ40で発生するソフトエラーを検知する場合がある。そこで、フレームデータ処理装置31は、フレームをライトする時に予めCRCを付与しておき、フレームデータ受信装置41でフレームをリードする際に、第三のCRC演算・チェック回路45でチェックする。ここで、フレームデータ受信装置41でフレームをリードする場合、フレーム長の情報が必要となり、フレームデータの書き換えが必要となる。本実施形態では、上述した書き換えが発生するような場合において、CRC演算を短縮することができる。
(数3)
T×n+T×2+TCRC (3)
上記式3の演算処理により、CRC演算時間15を約1/2に短縮することができる(入力フレーム長14に対して、書き換え有りの領域Bが十分小さい場合。)。
In the configuration example of the frame data processing device 31 and the frame data receiving device 41 in FIG. 5, when frame data is acquired in the memory 40, a soft error that occurs in the memory 40 may be detected. Therefore, the frame data processing device 31 assigns a CRC in advance when writing the frame, and checks with the third CRC calculation / check circuit 45 when the frame data receiving device 41 reads the frame. Here, when the frame data receiving apparatus 41 reads a frame, information on the frame length is required, and the frame data needs to be rewritten. In the present embodiment, the CRC calculation can be shortened when the above-described rewriting occurs.
(Equation 3)
Txn + Tx2 + T CRC (3)
The CRC calculation time 15 can be shortened to about ½ by the calculation process of the above expression 3 (when the rewritten area B is sufficiently small with respect to the input frame length 14).

また、書き換え領域Bを増やすことにより、フレーム長情報19以外の情報も書き換えることができる。例えば領域Bをmクロック分とすると、この場合のCRC演算結果時間を以下の式4に示す。
(数4)
T×n+T×(m+1)+TCRC (4)
上記式4の演算処理により、CRC演算結果時間を低減することができる((式2)及び(式4)の(m+1)がnより小さい場合。)。なお、10GのPONシステムにおけるnは、約64〜2000である。
Further, by increasing the rewriting area B, information other than the frame length information 19 can be rewritten. For example, assuming that the area B is m clocks, the CRC calculation result time in this case is shown in the following Expression 4.
(Equation 4)
T × n + T × (m + 1) + T CRC (4)
The CRC calculation result time can be reduced by the calculation process of Expression 4 (when (m + 1) in (Expression 2) and (Expression 4) is smaller than n). Note that n in the 10G PON system is approximately 64-2000.

本発明は情報通信産業に適用することができる。   The present invention can be applied to the information communication industry.

11:クロック
12:有効領域信号
13:入力フレームデータ
14:入力フレーム長
15:CRC演算時間
16:読み出し要求信号
17:リードイネーブル信号
18:リードデータ
19:フレーム長情報
21:書き換え後フレームデータ
31:フレームデータ処理装置
32、42:フレームデータ分離回路
33:フレーム長情報取得回路
34、43:第一のCRC演算回路
35:フレーム長情報割当て回路
36、44:第二のCRC演算回路
37:第三のCRC演算・付与回路
40:メモリ
41:フレームデータ受信装置
45:第三のCRC演算・チェック回路
11: Clock 12: Valid area signal 13: Input frame data 14: Input frame length 15: CRC calculation time 16: Read request signal 17: Read enable signal 18: Read data 19: Frame length information 21: Rewritten frame data 31: Frame data processing devices 32, 42: Frame data separation circuit 33: Frame length information acquisition circuit 34, 43: First CRC calculation circuit 35: Frame length information allocation circuit 36, 44: Second CRC calculation circuit 37: Third CRC calculation / grant circuit 40: Memory 41: Frame data receiver 45: Third CRC calculation / check circuit

Claims (3)

予め定められた領域を有するフレーム内のデータのうち、データを書き換える可変領域と、データを書き換えない不変領域とに、データを分離するフレームデータ分離手順と、
前記フレームデータ分離手順で分離した前記フレームのフレーム長情報を取得するフレーム長情報取得手順と、
前記フレームデータ分離手順で分離した前記不変領域のデータに対しCRC(Cyclic Redundancy Check)演算を行う第一のCRC演算手順と、
前記フレーム長情報取得手順で取得した前記フレーム長情報を前記可変領域のデータに割当てるフレーム長情報割当て手順と、
前記フレーム長情報割当て手順で前記フレーム長情報を割当てた可変領域のデータに対しCRC演算を行う第二のCRC演算手順と、
前記第一のCRC演算手順の算出結果と、前記第二のCRC演算手順の算出結果とに対してCRC演算を行う第三のCRC演算手順と、を
行うことを特徴とするフレームデータ処理方法。
Of the data in a frame having a predetermined area, a frame data separation procedure for separating data into a variable area where data is rewritten and an invariant area where data is not rewritten,
A frame length information acquisition procedure for acquiring frame length information of the frame separated by the frame data separation procedure;
A first CRC calculation procedure for performing a CRC (Cyclic Redundancy Check) operation on the data of the invariant area separated by the frame data separation procedure;
A frame length information allocation procedure for allocating the frame length information acquired in the frame length information acquisition procedure to the data in the variable region;
A second CRC calculation procedure for performing CRC calculation on the data in the variable area to which the frame length information is assigned in the frame length information assignment procedure;
A frame data processing method comprising: performing a third CRC calculation procedure for performing a CRC calculation on the calculation result of the first CRC calculation procedure and the calculation result of the second CRC calculation procedure.
前記第一のCRC演算手順及び前記第二のCRC演算手順を同一クロック内で
行うことを特徴とする請求項1に記載のフレームデータ処理方法。
The frame data processing method according to claim 1, wherein the first CRC calculation procedure and the second CRC calculation procedure are performed within the same clock.
予め定められた領域を有するフレーム内のデータのうち、データを書き換える可変領域と、データを書き換えない不変領域とに、データを分離するフレームデータ分離回路と、
前記フレームのフレーム長情報を取得するフレーム長情報取得回路と、
前記不変領域のデータに対しCRC演算を行う第一のCRC演算回路と、
前記フレーム長情報を前記可変領域のデータに割当てるフレーム長情報割当て回路と、
前記フレーム長情報割当て回路で前記フレーム長情報を割当てた可変領域のデータに対しCRC演算を行う第二のCRC演算回路と、
前記第一のCRC演算回路の算出結果と、前記第二のCRC演算回路の算出結果とに対してCRC演算を行う第三のCRC演算回路と、を
備えることを特徴とするフレームデータ処理装置。
A frame data separation circuit that separates data into a variable area in which data is rewritten, and an invariant area in which data is not rewritten, among data in a frame having a predetermined area;
A frame length information acquisition circuit for acquiring frame length information of the frame;
A first CRC calculation circuit for performing CRC calculation on the data of the invariant area;
A frame length information allocation circuit for allocating the frame length information to the data in the variable region;
A second CRC calculation circuit that performs a CRC calculation on the variable area data to which the frame length information is allocated by the frame length information allocation circuit;
A frame data processing apparatus comprising: a third CRC calculation circuit that performs a CRC calculation on the calculation result of the first CRC calculation circuit and the calculation result of the second CRC calculation circuit.
JP2014115495A 2014-06-04 2014-06-04 Frame data processing method and frame data processing apparatus Active JP5855165B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014115495A JP5855165B2 (en) 2014-06-04 2014-06-04 Frame data processing method and frame data processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014115495A JP5855165B2 (en) 2014-06-04 2014-06-04 Frame data processing method and frame data processing apparatus

Publications (2)

Publication Number Publication Date
JP2015231082A JP2015231082A (en) 2015-12-21
JP5855165B2 true JP5855165B2 (en) 2016-02-09

Family

ID=54887683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014115495A Active JP5855165B2 (en) 2014-06-04 2014-06-04 Frame data processing method and frame data processing apparatus

Country Status (1)

Country Link
JP (1) JP5855165B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6820233B2 (en) * 2000-07-14 2004-11-16 Telefonaktiebolaget Lm Ericsson Re-use of static checksum information in header compression/decompression applications

Also Published As

Publication number Publication date
JP2015231082A (en) 2015-12-21

Similar Documents

Publication Publication Date Title
CN101937724B (en) Method for performing copy back operations and flash storage device
US8042023B2 (en) Memory system with cyclic redundancy check
US7769935B2 (en) Communication system with master and slave exchanging control data in predetermined communication period
CN114328316B (en) DMA controller, SOC system and data carrying method based on DMA controller
US20170123892A1 (en) Parity check circuit and memory device including the same
US9891986B2 (en) System and method for performing bus transactions
CN110597744A (en) Data synchronous transmission method, system and computer equipment
WO2011155096A1 (en) Data transfer control device, integrated circuit of same, data transfer control method of same, data transfer completion notification device, integrated circuit of same, data transfer completion notification method of same, and data transfer control system
JP5855165B2 (en) Frame data processing method and frame data processing apparatus
US20130329952A1 (en) Apparatus and method for processing asynchronous event information
CN108512735B (en) Data transmission method and device
US20220045778A1 (en) Communication system
US11012195B2 (en) Method, sensor, and controller for transmitting a data packet from a sensor to a controller
US10599439B2 (en) Method and device for allocating a VLIW instruction based on slot information stored in a database by a calculation allocation instruction
US20170142677A1 (en) Sequence detection method and apparatus, and computer storage medium
JP2010186390A (en) Wireless tag reader/writer
CN115941792B (en) Method and device for processing data blocks of flexible Ethernet and storage medium
JP7279556B2 (en) Communication device, method and program
JP6412785B2 (en) Data transmitting apparatus, data receiving apparatus, and data communication system
US9798491B2 (en) Semiconductor system and operating method thereof
US20150220384A1 (en) Information processing apparatus, information processing system, and failure detection method
JP6292740B2 (en) Data receiver
US20160117218A1 (en) Monitoring data error status in a memory
JP2008258763A (en) Serial communication apparatus, test device thereof and method for testing serial communication apparatus
JP7012520B2 (en) Data writing method and storage device

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20151201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151208

R150 Certificate of patent or registration of utility model

Ref document number: 5855165

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250