JP2000114987A - Error detecting device - Google Patents

Error detecting device

Info

Publication number
JP2000114987A
JP2000114987A JP10294496A JP29449698A JP2000114987A JP 2000114987 A JP2000114987 A JP 2000114987A JP 10294496 A JP10294496 A JP 10294496A JP 29449698 A JP29449698 A JP 29449698A JP 2000114987 A JP2000114987 A JP 2000114987A
Authority
JP
Japan
Prior art keywords
unit
frame
crc
error detection
error
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.)
Granted
Application number
JP10294496A
Other languages
Japanese (ja)
Other versions
JP3263671B2 (en
Inventor
Takayuki Sugitani
孝幸 杉谷
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP29449698A priority Critical patent/JP3263671B2/en
Publication of JP2000114987A publication Critical patent/JP2000114987A/en
Application granted granted Critical
Publication of JP3263671B2 publication Critical patent/JP3263671B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an error detecting device capable of accelerating processing and appropriately performing processing, especially even if dummy data is attached when a receiving side performs error detection of transmission data to which the frame CRC in every frame and the two-level error detection code of a unit CRC about the whole plural frames are attached. SOLUTION: A transmitting side attaches an NG-CRC when a dummy frame is attached, and when a receiver A detects the NG-CRC, the effect is transmitted to a unit assembling part 14 and a unit CRC generating part 18. The unit assembling part 14 annuls a corresponding frame. Also, the calculation halfway value of the unit CRC to each frame is stored by a calculation halfway value storing part 20 and when the NG-CRC is detected, the value stored in the part 20 is loaded. Then, a calculated unit CRC and a unit CRC received by a unit CRC deciding part 22 are compared and decided.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、誤り検出装置に関
するものであり、特に、CRC方式の誤り検出符号の判
定装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error detection apparatus, and more particularly to an apparatus for determining an error detection code of a CRC system.

【0002】[0002]

【従来の技術】従来より複数のフレームからなるユニッ
トについて、各フレームについて誤り検出符号を付加す
るとともに、ユニット全体についても誤り検出符号を付
加して送信用ユニットを構成して受信側に送信すること
が行われている。すなわち、二階層誤り検出符号を付加
することが行われている。
2. Description of the Related Art Conventionally, an error detection code is added to each frame of a unit composed of a plurality of frames, and an error detection code is added to the entire unit to form a transmission unit and transmit it to a receiving side. Has been done. That is, a two-layer error detection code is added.

【0003】すなわち、データソースから送信された各
送信データは、フレーム単位で制御され、複数のフレー
ムを1つのユニットに構成して、受信側に送信を行う。
その際、各フレームの末尾にはフレームCRCという誤
り検出符号を付加するとともに、1ユニット分の送信デ
ータが揃った時点でユニットCRCという誤り検出符号
をユニットの末尾に付加して送信を行う。
[0003] That is, each transmission data transmitted from the data source is controlled on a frame basis, and a plurality of frames are formed into one unit and transmitted to the receiving side.
At this time, an error detection code called a frame CRC is added to the end of each frame, and when one unit of transmission data is completed, an error detection code called a unit CRC is added to the end of the unit for transmission.

【0004】すなわち、図5を例に取ると、データソー
スから送信された送信データは1フレーム分のデータが
揃った時点でフレームCRCを付加して、送信フレーム
を構成する。ここで、送信データとしてのユニットは、
図4に示すように、フレームF1〜Fnにより構成さ
れ、各フレームはデータD1〜Dnにより構成されてい
るものとする。すなわち、図5に示すように、フレーム
F1の後には、フレームCRCが付加される。同じよう
に、次の1フレーム分のデータが揃った時点でそのフレ
ームについてのフレームCRCが付加される。フレーム
CRCが付加されると、その都度伝送路に送信される。
つまり、伝送路への送信は、送信フレーム単位ごとに行
われる。そして、1ユニット分のデータF1〜Fnが揃
った時点で、その1ユニット分についてのユニットCR
Cを算出して、このユニットCRCをユニットの末尾、
すなわち、フレームFnの末尾に付加する。つまり、最
後の送信フレームについては、送信データとしてのフレ
ームFnと上記ユニットCRCの両方についてフレーム
CRCが算出されて末尾に付加される。
That is, taking the example of FIG. 5 as an example, the transmission data transmitted from the data source adds a frame CRC when one frame of data is completed to form a transmission frame. Here, the unit as transmission data is
As shown in FIG. 4, it is assumed that the frame is composed of frames F1 to Fn, and each frame is composed of data D1 to Dn. That is, as shown in FIG. 5, a frame CRC is added after the frame F1. Similarly, when data for the next one frame is completed, a frame CRC for that frame is added. Each time the frame CRC is added, it is transmitted to the transmission path each time.
That is, transmission to the transmission path is performed for each transmission frame. When the data F1 to Fn for one unit are collected, the unit CR for the one unit is obtained.
C is calculated, and this unit CRC is added to the end of the unit,
That is, it is added to the end of the frame Fn. That is, for the last transmission frame, the frame CRC is calculated for both the frame Fn as the transmission data and the unit CRC, and is added to the end.

【0005】なお、送信時には送信タイミングが一定に
なるように制御を行うが、送信すべきタイミングまでに
1フレーム分のデータが揃わなかった場合には、代わり
にダミーフレームを送信する。このダミーフレームに
は、正常なフレームと区別できるように判定結果がNG
となるようなCRCが付加される。その場合のデータ構
成は図6に示すようになる。
[0005] At the time of transmission, control is performed so that the transmission timing is constant. However, if one frame of data is not prepared before the timing of transmission, a dummy frame is transmitted instead. The judgment result is NG for this dummy frame so that it can be distinguished from a normal frame.
Is added. The data structure in that case is as shown in FIG.

【0006】一方、送信側から送られた各送信フレーム
を受信した受信側においては、各フレームごとにフレー
ムCRCを算出し、該フレームに付加されたフレームC
RCとの比較を行うことによりフレームごとのCRCチ
ェックを行う。ここで、エラーが検出された場合には、
再送要求等を行う。さらに、該CRCチェックによりエ
ラーが検出されなかったフレームをユニットに組み立て
る。つまり、図4のように組み立てる。その後、該ユニ
ットによりユニットCRCを算出し、最終フレームの送
信データFnの後に付加されたユニットCRCと比較を
行ってユニット単位でのCRCチェックを行う。このユ
ニット単位でのCRCチェックによりエラーが検出され
なかった場合には、その後の処理に付される。なお、ダ
ミーフレームの場合には、付加されたCRCによりダミ
ーフレームであることが分かるので、ダミーフレームと
判定された場合には、このダミーフレームはユニットに
組み立てる際には使用しない。
On the other hand, on the receiving side receiving each transmission frame sent from the transmitting side, a frame CRC is calculated for each frame, and the frame C added to the frame is calculated.
A CRC check is performed for each frame by comparing with the RC. Here, if an error is detected,
A retransmission request or the like is performed. Further, a frame in which no error is detected by the CRC check is assembled into a unit. That is, they are assembled as shown in FIG. Then, the unit CRC is calculated by the unit, and the unit CRC is compared with the unit CRC added after the transmission data Fn of the last frame to perform a CRC check on a unit basis. If no error is detected by this unit-based CRC check, the subsequent processing is performed. In the case of a dummy frame, the added CRC indicates that the frame is a dummy frame. Therefore, if the dummy frame is determined, the dummy frame is not used when assembling into a unit.

【0007】[0007]

【発明が解決しようとする課題】しかし、上記従来の方
法においては、フレームごとのCRCチェックを行って
ユニットを組み立てた後に、ユニット単位でのCRCチ
ェックを行うことから、処理の高速化を図ることができ
ないという問題があった。特に、上記のように送信時に
ダミーフレームを付加して送信する場合があるため、従
来の方法では、ユニットに組み立てた後でないとユニッ
ト単位でのチェックを行うことができないという問題が
あった。そこで、本発明は、上記のような二階層誤り検
出符号が付加された送信データに対して受信側で誤り検
出を行う際に、処理の高速化を図ることができ、特に、
ダミーデータが付加された送信データであっても適切に
処理を行うことができる誤り検出装置を提供することを
目的とするものである。
However, in the above-mentioned conventional method, the CRC is checked for each frame, and after assembling the units, the CRC is checked for each unit. There was a problem that can not be. In particular, since a dummy frame is sometimes added at the time of transmission as described above, the conventional method has a problem that it is not possible to perform a check on a unit basis only after assembling the unit. Therefore, the present invention can speed up the processing when performing error detection on the reception side for transmission data to which the two-layer error detection code is added as described above, and in particular,
An object of the present invention is to provide an error detection device that can appropriately perform processing even on transmission data to which dummy data has been added.

【0008】[0008]

【課題を解決するための手段】本発明は上記問題点を解
決するために創作されたものであって、第1には、複数
のデータからなるフレームの複数と、各フレームに付加
された誤り検出符号であるフレーム誤り検出符号と、上
記複数のフレーム全体についての誤り検出符号であるユ
ニット誤り検出符号とを有するデータ群に対して誤り検
出を行う誤り検出装置であって、上記フレーム誤り検出
符号に基づき誤りを検出するフレーム誤り検出手段と、
上記データ群から上記複数のフレームと、上記ユニット
誤り検出符号とを抽出する抽出手段と、上記抽出手段に
おいて得られた複数のフレームのデータに基づきユニッ
ト誤り検出符号を算出するユニット誤り検出符号生成手
段と、上記ユニット誤り検出符号生成手段が各フレーム
について算出を終えた際の計算途中値を保持するための
計算途中値保持手段と、上記ユニット誤り検出符号生成
手段が算出したユニット誤り検出符号と、上記抽出手段
から送られた上記ユニット誤り検出符号とを比較して誤
り検出を行うユニット誤り検出手段と、を有し、上記フ
レーム誤り検出手段が、誤りを検出した場合に、その旨
を上記ユニット誤り検出符号生成手段に送信し、ユニッ
ト誤り検出符号生成手段は、上記誤りが検出された旨の
送信を受けた場合には、上記計算途中値保持手段に保持
された計算途中値を読み出して算出すべきユニット誤り
検出符号の計算途中値とすることを特徴とする。この第
1の構成の誤り検出装置においては、複数のフレーム
と、フレーム誤り検出符号と、ユニット誤り検出符号と
を有するデータ群を受信すると、まず、フレーム誤り検
出手段が、上記フレーム誤り検出符号に基づき誤りを検
出する。そして、該フレーム誤り検出手段が、誤りを検
出した場合に、その旨を上記ユニット誤り検出符号生成
手段に送信する。一方、抽出手段は、上記データ群から
上記複数のフレームと、上記ユニット誤り検出符号とを
抽出する。そして、ユニット誤り検出符号生成手段が、
上記抽出手段において得られた複数のフレームのデータ
に基づきユニット誤り検出符号を算出する。なお、その
際、計算途中値保持手段は、上記ユニット誤り検出符号
生成手段が所定のフレームまで算出を終えた際の計算途
中値を保持する。そして、ユニット誤り検出符号生成手
段が算出したユニット誤り検出符号と上記抽出手段から
送られた上記ユニット誤り検出符号とを比較して誤り検
出を行う。一方、ユニット誤り検出符号生成手段は、上
記誤りが検出された旨の送信を受けた場合には、上記計
算途中値保持手段に保持された計算途中値を読み出して
算出すべきユニット誤り検出符号の計算途中値とする。
以上のようにして、フレーム単位での誤り検出とユニッ
ト単位での誤り検出とを並列して行うので、処理の高速
化を図ることができ、特に、所定のフレームがダミーフ
レームである場合等フレームに誤りが検出された場合に
は、ユニット誤り検出符号の算出においても、計算途中
値保持手段を設けることにより当該フレームを考慮しな
い状態に戻すことができるので、フレームに誤りが検出
された場合でも適切に処理を行うことができる。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and firstly, a plurality of frames consisting of a plurality of data and an error added to each frame. An error detection device for performing error detection on a data group having a frame error detection code that is a detection code and a unit error detection code that is an error detection code for the plurality of frames as a whole, wherein the frame error detection code Frame error detection means for detecting an error based on
Extraction means for extracting the plurality of frames and the unit error detection code from the data group, and unit error detection code generation means for calculating a unit error detection code based on the data of the plurality of frames obtained by the extraction means And, the unit error detection code generation means for calculating the intermediate value when holding the calculation intermediate value when the calculation is completed for each frame, and the unit error detection code calculated by the unit error detection code generation means, Unit error detection means for performing error detection by comparing the unit error detection code sent from the extraction means, and when the frame error detection means has detected an error, the The error detection code generation unit transmits the error detection code generation unit, and the unit error detection code generation unit receives the transmission indicating that the error has been detected. It is characterized in that the computation middle value of the unit error detecting code to be calculated by reading the held during calculation value in the intermediate calculation value holding means. In the error detection device having the first configuration, upon receiving a data group having a plurality of frames, a frame error detection code, and a unit error detection code, first, the frame error detection means An error is detected based on the error. Then, when the frame error detection means detects an error, the frame error detection means transmits the fact to the unit error detection code generation means. On the other hand, the extracting means extracts the plurality of frames and the unit error detection code from the data group. Then, the unit error detection code generation means,
A unit error detection code is calculated based on the data of the plurality of frames obtained by the extraction means. At this time, the intermediate calculation value holding unit holds the intermediate calculation value when the unit error detection code generation unit has completed the calculation up to a predetermined frame. Then, error detection is performed by comparing the unit error detection code calculated by the unit error detection code generation means with the unit error detection code sent from the extraction means. On the other hand, when the unit error detection code generation unit receives the transmission indicating that the error has been detected, the unit error detection code generation unit reads out the intermediate calculation value held in the intermediate calculation value holding unit and calculates the unit error detection code to be calculated. The value is calculated during the calculation.
As described above, the error detection in the frame unit and the error detection in the unit unit are performed in parallel, so that the processing can be speeded up, especially when the predetermined frame is a dummy frame. When an error is detected in the frame, the unit error detection code can be returned to a state in which the frame is not taken into consideration by providing the intermediate calculation value holding means even when the error is detected in the frame. Appropriate processing can be performed.

【0009】また、第2には、上記第1の構成におい
て、上記誤り検出装置が、さらに、上記データ群におけ
る複数のフレームを、連続したデータ列としてユニット
に組み立てる組立手段であって、上記フレーム誤り検出
手段により誤りが検出された場合に、対応するフレーム
を上記ユニットには使用しないでユニットを組み立てる
組立手段と、上記ユニット誤り検出手段により誤りが検
出されなかった場合に、上記組立手段で組み立てられた
ユニットを出力する出力手段と、を有することを特徴と
する。これにより、フレームに誤りが検出された場合に
は、そのフレームをユニット組立て使用せず、正常なユ
ニットを生成することができ、また、ユニット誤り検出
手段により誤りが検出されなかった場合に、上記出力手
段が、上記組立手段で組み立てられたユニットを出力す
るので、二階層で誤り検出されたデータを出力すること
ができる。
Secondly, in the first configuration, the error detecting device is an assembling means for assembling a plurality of frames in the data group into a unit as a continuous data string, Assembling means for assembling the unit without using the corresponding frame for the unit when an error is detected by the error detecting means; and assembling by the assembling means when the error is not detected by the unit error detecting means. Output means for outputting the obtained unit. Thus, when an error is detected in a frame, a normal unit can be generated without using the frame in a unit assembly, and when an error is not detected by the unit error detection means, Since the output means outputs the unit assembled by the above-described assembling means, it is possible to output data in which errors are detected in two layers.

【0010】また、第3には、上記第1又は第2の構成
において、上記フレーム誤り検出手段が、対応するフレ
ームはダミーフレームであることを示す誤り検出符号に
基づいて誤りを検出することを特徴とする。よって、送
信側においてダミーフレームを付加して送信した場合で
も、処理の高速化を図るとことができる。また、第4に
は、上記第1から第3までのいずれかの構成において、
上記誤り検出符号が、CRCであることを特徴とする。
また、第5には、上記第1から第4までのいずれかの構
成において、上記ユニット誤り検出符号生成手段は、シ
フトレジスタとゲート回路とを有し、上記計算途中値保
持手段は、上記シフトレジスタに格納されたデータをパ
ラレルに保持するレジスタにより構成されていることを
特徴とする。
Thirdly, in the first or second configuration, the frame error detection means detects an error based on an error detection code indicating that a corresponding frame is a dummy frame. Features. Therefore, even when a dummy frame is added and transmitted on the transmitting side, the processing can be speeded up. Fourth, in any of the above-described first to third configurations,
The error detection code is a CRC.
Fifth, in any one of the first to fourth configurations, the unit error detection code generation means has a shift register and a gate circuit, and the calculation intermediate value holding means has It is characterized by being constituted by a register which holds data stored in the register in parallel.

【0011】[0011]

【発明の実施の形態】本発明の実施の形態としての実施
例を図面を利用して説明する。本実施例の誤り検出装置
としての受信装置Aは、図1に示すように、受信制御部
10と、フレームCRC判定部12と、ユニット組立部
14と、分離部16と、ユニットCRC生成部18と、
計算途中値保持部20と、ユニットCRC判定部22
と、データインターフェース24とを有している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings. As shown in FIG. 1, a receiving apparatus A as an error detecting apparatus according to the present embodiment includes a receiving control unit 10, a frame CRC determining unit 12, a unit assembling unit 14, a separating unit 16, and a unit CRC generating unit 18. When,
Calculation intermediate value holding unit 20 and unit CRC determination unit 22
And a data interface 24.

【0012】ここで、上記受信制御部10は送信側から
送信された送信データの受信を制御するものである。ま
た、上記フレームCRC判定部12は、各フレームごと
にCRCを算出し、該算出されたCRCと、該フレーム
に付加されたフレームCRCとを比較して、エラー判定
を行う。つまり、これにより、あるフレームに付加され
ているフレームCRCがNG−CRCでないか否かを判
定することができる。このNG−CRCは、ダミーフレ
ームである場合に付加される。この判定結果は、上記ユ
ニット組立部14やユニットCRC生成部18に送られ
る。このフレームCRC判定部12は、上記フレーム誤
り検出手段として機能する。
Here, the reception control section 10 controls reception of transmission data transmitted from the transmission side. The frame CRC determination unit 12 calculates a CRC for each frame, compares the calculated CRC with a frame CRC added to the frame, and performs an error determination. That is, this makes it possible to determine whether or not the frame CRC added to a certain frame is not an NG-CRC. This NG-CRC is added when the frame is a dummy frame. This determination result is sent to the unit assembling unit 14 and the unit CRC generation unit 18. The frame CRC determination unit 12 functions as the frame error detection unit.

【0013】また、上記組立手段としての上記ユニット
組立部14は、受信した各送信フレームにおけるフレー
ムをユニットに組み立てる処理を行う。このユニット組
立部14において組み立てられたユニットには、ダミー
フレームやフレームCRC、ユニットCRCは含まれな
い。また、上記分離部16は、受信制御部10で受信さ
れた各送信フレームのうち、フレームとユニットCRC
のみを分離してユニットCRC生成部18に送る。つま
り、分離部16では、各送信フレームからフレームCR
Cを除去する処理が行われる。また、この分離部16
は、受信制御部10で受信された各送信フレームのう
ち、フレームのみを分離してユニット組立部14に送信
する機能をも有している。この分離部16は、上記抽出
手段として機能する。
Further, the unit assembling section 14 as the assembling means performs a process of assembling a frame of each received transmission frame into a unit. The units assembled in the unit assembling section 14 do not include the dummy frame, the frame CRC, and the unit CRC. Further, the separating unit 16 includes, among the transmission frames received by the reception control unit 10, a frame and a unit CRC.
Only and is sent to the unit CRC generator 18. That is, the separating unit 16 converts the frame CR from each transmission frame.
A process for removing C is performed. In addition, the separation unit 16
Has a function of separating only the frames among the transmission frames received by the reception control unit 10 and transmitting the separated frames to the unit assembling unit 14. This separating section 16 functions as the above-mentioned extracting means.

【0014】また、ユニットCRC生成部18は、分離
部16から送られたフレームのデータによりユニットC
RCを算出する。このユニットCRC生成部18は、実
際には図2に示すようにシフトレジスタとゲート回路に
より構成することができる。なお、図2における計算途
中値保持部20以外の部分はユニットCRC生成部18
を示すものとする。このユニットCRC生成部18は、
各フレームにおいてユニットCRCの計算を終了した際
の計算途中値を計算途中値保持部20に保持する。最終
のフレーム以外のフレームについてユニットCRCの計
算を終了した際の値は、ユニット全体についてのユニッ
トCRCからすると計算途中値になる。また、このユニ
ットCRC生成部18は、フレームCRC判定部12か
らNG−CRCであるとの判定結果を得ると、計算途中
値保持部20に保持されている値を読み出して、NG−
CRCが付加されたフレーム、すなわち、ダミーフレー
ムが入力される前の状態に戻す処理を行う。このユニッ
トCRC生成部18は、上記ユニット誤り検出符号生成
手段として機能する。
Further, the unit CRC generator 18 determines the unit C based on the frame data transmitted from the separator 16.
Calculate RC. The unit CRC generator 18 can be actually configured by a shift register and a gate circuit as shown in FIG. The parts other than the calculation intermediate value holding unit 20 in FIG.
Shall be shown. This unit CRC generation unit 18
The intermediate calculation value at the end of the calculation of the unit CRC in each frame is held in the intermediate calculation value holding unit 20. The value obtained when the calculation of the unit CRC is completed for frames other than the last frame is a mid-calculation value based on the unit CRC for the entire unit. Further, when the unit CRC generation unit 18 obtains a determination result indicating that the frame is an NG-CRC from the frame CRC determination unit 12, the unit CRC generation unit 18 reads the value held in the intermediate calculation value holding unit 20, and reads the NG-CR-
A process is performed to return to the state before the frame to which the CRC is added, that is, the dummy frame is input. The unit CRC generator 18 functions as the unit error detection code generator.

【0015】また、計算途中値保持部20は、ユニット
CRC生成部18で算出されるユニットCRCの計算途
中値を保持するものであり、各フレームごとに計算して
得られた値が保持される。この計算途中値保持部20
は、図2に示すように、レジスタにより構成され、ユニ
ットCRC生成部18で計算された途中値がパラレルで
複写して保持される。この計算途中値保持部20は、上
記計算途中値保持手段として機能する。また、ユニット
CRC判定部22は、最終フレームまで計算して得られ
たユニットCRCと最終フレームに付加されているユニ
ットCRCとを比較してエラーが検出されないか否かを
判定する。この判定結果は、データインターフェース2
4に送られる。このユニットCRC判定部22は、上記
ユニット誤り検出手段として機能する。
The mid-calculation value holding unit 20 holds the mid-calculation value of the unit CRC calculated by the unit CRC generation unit 18, and holds the value obtained by calculation for each frame. . This intermediate value holding unit 20
As shown in FIG. 2, is constituted by a register, and the intermediate value calculated by the unit CRC generator 18 is copied and held in parallel. The mid-calculation value holding unit 20 functions as the mid-calculation value holding means. Further, the unit CRC determination unit 22 compares the unit CRC obtained by calculating up to the last frame with the unit CRC added to the last frame to determine whether an error is detected. The result of this determination is the data interface 2
4 The unit CRC determination unit 22 functions as the unit error detection unit.

【0016】上記出力手段としての上記データインター
フェース24は、ユニットCRC判定部22での判定に
おいてエラーが検出されなかった場合には、ユニット組
立部14で組み立てられたユニットを出力して後段の処
理に付する。
The data interface 24 as the output means outputs the unit assembled by the unit assembling section 14 when no error is detected in the judgment by the unit CRC judging section 22 and performs the subsequent processing. Attached.

【0017】一方、上記受信装置Aに対してデータを送
信する送信装置Bは、図3に示すように構成される。す
なわち、送信装置Bは、データソース入力部40と、フ
レーム組立部42と、ユニット制御部44と、タイミン
グ制御部46と、ダミーフレーム出力部48と、フレー
ムCRC付加部50と、送信制御部52とを有してい
る。
On the other hand, a transmitting device B for transmitting data to the receiving device A is configured as shown in FIG. That is, the transmitting apparatus B includes a data source input unit 40, a frame assembling unit 42, a unit control unit 44, a timing control unit 46, a dummy frame output unit 48, a frame CRC addition unit 50, a transmission control unit 52 And

【0018】ここで、上記データソース入力部40は、
送信データをフレーム組立部42とユニット制御部44
に対して送信する。また、フレーム組立部42は、デー
タソース入力部40から送られたデータが1フレームの
データ分揃った時点でタイミング制御部46にデータを
送信する。また、最終フレームについては、データソー
ス入力部40から送られるデータとユニット制御部44
から送られるユニットCRCとによりフレームを組み立
てる。また、上記ユニット制御部44は、データソース
入力部40から送信されたデータに従い1ユニット分の
データが揃った時点でそのデータに対応するユニットC
RCを生成する。このユニットCRCがユニット誤り検
出符号に相当する。
Here, the data source input unit 40
The transmission data is transmitted to the frame assembler 42 and the unit controller 44.
Send to Further, the frame assembling unit 42 transmits the data to the timing control unit 46 when the data sent from the data source input unit 40 is completed for one frame of data. For the last frame, the data sent from the data source input unit 40 and the unit control unit 44
And a unit CRC sent from the company. In addition, when the unit control unit 44 prepares one unit of data in accordance with the data transmitted from the data source input unit 40, the unit C corresponding to the data is transmitted.
Generate RC. This unit CRC corresponds to a unit error detection code.

【0019】また、タイミング制御部46は、送信タイ
ミングが一定になるように制御を行い、所定のタイミン
グでフレームごとに出力を行う。なお、送信すべき所定
のタイミングまでに1フレーム分のデータが揃わない場
合には、ダミーフレーム出力部48からダミーフレーム
を受け取りダミーフレームを出力する。また、上記ダミ
ーフレーム出力部48は、ダミーとなるフレームをタイ
ミング制御部46に出力し、ダミーフレームを出力した
場合には、CRC誤り指示をフレームCRC付加部50
に送信する。このダミーフレームは、例えば、ランダム
信号により構成する。
The timing control unit 46 controls the transmission timing so as to be constant, and outputs a signal at a predetermined timing for each frame. If data for one frame is not prepared by a predetermined timing to be transmitted, a dummy frame is received from the dummy frame output unit 48 and the dummy frame is output. The dummy frame output unit 48 outputs a dummy frame to the timing control unit 46, and outputs a CRC error instruction to the frame CRC adding unit 50 when the dummy frame is output.
Send to This dummy frame is composed of, for example, a random signal.

【0020】また、フレームCRC付加部50は、送信
された1フレーム分のデータにより上記フレーム誤り検
出符号としてのフレームCRCを算出して各フレームに
付加して、送信フレームを生成する。また、このフレー
ムCRC付加部50は、ダミーフレーム出力部48から
CRC誤り指示が送られた場合には、フレームの判定結
果がNG(エラー)となるようにNG−CRCをフレー
ムに付加する。つまり、ダミーフレーム出力部48から
CRC誤り指示が送られた場合には、タイミング制御部
46から送られたフレームはダミーフレームであるの
で、他の正常なフレームと区別できるように、NG−C
RCをフレームに付加する。具体的には、該フレームC
RC付加部50は、タイミング制御部46から送られた
ダミーフレームのデータに従いCRCを算出するが、上
記CRC誤り指示が送られるので、このCRC誤り指示
に従い、算出されたCRCにおける1又は複数のビット
を反転させて、フレームCRC判定部12における判定
結果がエラーとなるようにする。ここで、この算出され
たCRCにおける1又は複数のビットを反転させたもの
が上記NG−CRCとなる。また、最終フレームについ
ては、送信データとユニットCRCにより1つのフレー
ムが構成されているので、フレームCRC付加部50
は、このフレームから算出されたフレームCRCを付加
することになる。また、上記送信制御部52は、以上の
ように構成された送信フレームを受信側に送信するため
の制御を行う。つまり、フレームCRC付加部50から
フレームにフレームCRCを付加するごとに送信される
ので、これを伝送路に送信する制御を行う。
The frame CRC adding section 50 calculates a frame CRC as the above-mentioned frame error detection code from the transmitted data of one frame and adds the frame CRC to each frame to generate a transmission frame. Also, when a CRC error instruction is sent from the dummy frame output unit 48, the frame CRC adding unit 50 adds an NG-CRC to the frame so that the frame determination result is NG (error). In other words, when the CRC error instruction is sent from the dummy frame output unit 48, the frame sent from the timing control unit 46 is a dummy frame, so that the NG-C can be distinguished from other normal frames.
RC is added to the frame. Specifically, the frame C
The RC adding unit 50 calculates the CRC according to the data of the dummy frame transmitted from the timing control unit 46. Since the CRC error instruction is transmitted, one or more bits in the calculated CRC are calculated according to the CRC error instruction. Is inverted so that the determination result in the frame CRC determination unit 12 becomes an error. Here, the NG-CRC is obtained by inverting one or a plurality of bits in the calculated CRC. As for the last frame, one frame is composed of the transmission data and the unit CRC.
Will add the frame CRC calculated from this frame. Further, the transmission control unit 52 performs control for transmitting the transmission frame configured as described above to the reception side. That is, each time a frame CRC is added to a frame from the frame CRC adding unit 50, the frame CRC is transmitted.

【0021】上記構成の送信装置B及び受信装置Aの動
作について説明する。まず、送信装置Bの動作について
説明する。データソース入力部40から順次入力される
送信データは、フレーム組立部42とユニット制御部4
4とに送られる。フレーム組立部42では、1フレーム
分のデータが揃った時点で該1フレーム分のデータをタ
イミング制御部46に送る。例えば、図4〜図6に示す
例では、フレームF1分のデータが揃った時点でそのデ
ータをタイミング制御部46に送信する。タイミング制
御部46は所定のタイミングで1フレーム分のデータを
フレームCRC付加部50に送信する。フレームCRC
付加部50は、送信されたフレームF1のデータを受信
すると、そのデータに基づきフレームCRCを算出して
フレームF1の後に付加する。上記のような処理を後の
フレームF2等についても行う。フレームCRC付加部
50は、フレームにフレームCRCを付加するごとに送
信制御部52にフレームにフレームCRCを付加した送
信フレームを送る。
The operation of the transmitting device B and the receiving device A having the above configurations will be described. First, the operation of the transmitting device B will be described. Transmission data sequentially input from the data source input unit 40 is transmitted to the frame assembling unit 42 and the unit control unit 4.
4 and sent to. The frame assembler 42 sends the data for one frame to the timing controller 46 when the data for one frame is ready. For example, in the examples shown in FIGS. 4 to 6, the data is transmitted to the timing control unit 46 when the data for the frame F1 is completed. The timing control unit 46 transmits one frame of data to the frame CRC adding unit 50 at a predetermined timing. Frame CRC
Upon receiving the transmitted data of the frame F1, the adding unit 50 calculates a frame CRC based on the data and adds the frame CRC after the frame F1. The above processing is also performed for the subsequent frame F2 and the like. The frame CRC adding unit 50 sends a transmission frame obtained by adding the frame CRC to the frame to the transmission control unit 52 every time the frame CRC is added to the frame.

【0022】そして、最終フレームについては、1フレ
ームにおいてユニットCRCのデータ分を残したデータ
量のデータを受信した時点でユニット制御部44は、そ
れまでに受信したデータに基づきユニットCRCを算出
してフレーム組立部42に送信する。つまりフレームF
1〜Fnまでのデータを受信した時点でこのフレームF
1〜Fnまでのデータに基づきユニットCRCを算出し
て、フレーム組立部42に送る。フレーム組立部42で
は、最終フレームのデータFnとユニットCRCとが揃
った時点でタイミング制御部46に送る。タイミング制
御部46から所定のタイミングで該最終フレームを受信
したフレームCRC付加部50は、このデータFnとユ
ニットCRCとで構成されるフレームに基づきフレーム
CRCを算出し、このフレームCRCを付加した状態で
送信制御部52に送る。送信制御部52は、フレームC
RCを付加した状態のフレーム(又はフレーム及びユニ
ットCRC)を受け取ると、伝送路に送信する制御を行
う。
At the time of receiving the data of the last frame, the data having the data amount of the unit CRC remaining in one frame, the unit control unit 44 calculates the unit CRC based on the data received so far. It is transmitted to the frame assembling unit 42. That is, frame F
This frame F is received when data of 1 to Fn is received.
A unit CRC is calculated based on the data from 1 to Fn and sent to the frame assembling unit 42. The frame assembling unit 42 sends the data to the timing control unit 46 when the data Fn of the last frame and the unit CRC are completed. The frame CRC adding unit 50, which has received the final frame at a predetermined timing from the timing control unit 46, calculates a frame CRC based on the frame composed of the data Fn and the unit CRC, and in a state where the frame CRC is added. It is sent to the transmission control unit 52. The transmission control unit 52 sets the frame C
When a frame (or a frame and a unit CRC) to which an RC is added is received, control for transmitting the frame to the transmission path is performed.

【0023】一方、タイミング制御部46が所定の送信
すべきタイミングまでに1フレーム分のデータを受信で
きなかった場合には、ダミーフレーム出力部48にダミ
ーフレームの出力を指示する。すると、ダミーフレーム
出力部48は、ダミーフレームをタイミング制御部46
に送信するとともに、CRC誤り指示をフレームCRC
付加部50に送る。タイミング制御部46からダミーフ
レームを受信したフレームCRC付加部50は、ダミー
フレーム出力部48からのCRC誤り指示に従いダミー
フレームにNG−CRCを付加する。例えば、タイミン
グ制御部46が、フレームF1のデータを受け取った後
に、次のフレーム分のデータがフレーム組立部42から
送られてこない場合には、フレームF1の次のフレーム
はダミーフレームとなるので、送信されるデータの順序
としては、図6に示すようになる。一方、ダミーフレー
ムが存在しない場合には、図5に示すようなデータの順
序で送信制御部52から受信側に送信されることにな
る。
On the other hand, if the timing control unit 46 cannot receive one frame of data by the predetermined transmission timing, it instructs the dummy frame output unit 48 to output a dummy frame. Then, the dummy frame output unit 48 outputs the dummy frame to the timing control unit 46.
And sends a CRC error indication to the frame CRC
It is sent to the addition unit 50 The frame CRC adding unit 50 that has received the dummy frame from the timing control unit 46 adds an NG-CRC to the dummy frame according to the CRC error instruction from the dummy frame output unit 48. For example, if the timing control unit 46 receives the data of the frame F1 and does not receive the data of the next frame from the frame assembling unit 42, the next frame of the frame F1 is a dummy frame. The order of the transmitted data is as shown in FIG. On the other hand, when there is no dummy frame, the data is transmitted from the transmission control unit 52 to the receiving side in the order of data as shown in FIG.

【0024】次に、受信側装置Aの動作について説明す
る。受信装置Aでは、まず、受信制御部10が送信装置
Bから送信された各送信フレームを受信すると、これを
フレームCRC判定部12、分離部16に送る。例え
ば、図5に示すデータ構成の場合には、受信制御部10
は、フレームF1のデータ、フレームF1についてのフ
レームCRC、フレームF2のデータ、フレームF2の
フレームCRC・・・という順に順次出力していく。
Next, the operation of the receiving device A will be described. In the receiving device A, first, when the receiving control unit 10 receives each transmission frame transmitted from the transmitting device B, it sends it to the frame CRC determining unit 12 and the separating unit 16. For example, in the case of the data configuration shown in FIG.
Sequentially outputs the data of the frame F1, the frame CRC of the frame F1, the data of the frame F2, the frame CRC of the frame F2, and so on.

【0025】フレームCRC判定部12では、フレーム
F1から順次データを読み取りながらCRCを算出し、
付加されたフレームCRCと比較してエラー判定を行
う。NG−CRCの場合には、比較結果が一致せずエラ
ーの判定結果となるので、これによりNG−CRCの判
定が可能となる。そして、NG−CRCと判定された場
合には、その判定結果をユニット組立部14とユニット
CRC生成部18に送る。
The frame CRC determination unit 12 calculates the CRC while reading data sequentially from the frame F1,
An error determination is made by comparing with the added frame CRC. In the case of NG-CRC, the comparison results do not match and result in an error determination, so that the NG-CRC can be determined. When it is determined that the NG-CRC is detected, the determination result is sent to the unit assembling unit 14 and the unit CRC generating unit 18.

【0026】一方、上記分離部16は、受信制御部10
で受信された各送信フレームのうち、フレームのみを分
離してユニット組立部14に送信するので、ユニット組
立部14は、ユニットを組み立てる処理を行う。つま
り、各フレームのデータのみを組み立てて、図4に示す
ようなユニットを生成する。その際、あるフレームがダ
ミーフレームの場合には、NG−CRCであるとの判定
結果がフレームCRC判定部12から送られるので、そ
の場合には、そのフレームをユニットに組み立てる際の
データには使用せずに破棄する。
On the other hand, the separating section 16
Since only the frames among the transmission frames received in step (1) are separated and transmitted to the unit assembling unit 14, the unit assembling unit 14 performs a process of assembling the units. That is, only the data of each frame is assembled to generate a unit as shown in FIG. At this time, if a certain frame is a dummy frame, a determination result indicating that the frame is an NG-CRC is sent from the frame CRC determination unit 12, and in that case, the frame is used as data when assembling the frame into a unit. Discard without doing.

【0027】また、上記分離部16においては、各フレ
ームのデータとユニットCRCとを抽出して、順次ユニ
ットCRC生成部18に送信する。つまり、フレームC
RCを除去した状態でユニットCRC生成部18に送信
する。図5に示す場合には、フレームF1のデータ、フ
レームF2のデータ・・・フレームFnのデータ、ユニ
ットCRCという順にユニットCRC生成部18に送ら
れる。ダミーフレームがある送信フレームについても、
そのダミーフレームも送信されることになる。
The separating section 16 extracts the data of each frame and the unit CRC and sequentially transmits the data to the unit CRC generating section 18. That is, frame C
The data is transmitted to the unit CRC generator 18 with the RC removed. In the case shown in FIG. 5, the data of the frame F1, the data of the frame F2,..., The data of the frame Fn, and the unit CRC are sent to the unit CRC generator 18 in this order. For transmission frames with dummy frames,
The dummy frame will also be transmitted.

【0028】ユニットCRC生成部18は、送られた各
フレームのデータに基づいてユニットCRCを計算して
いくが、各フレームごとに計算の途中値を計算途中値保
持部20に保持させる。例えば、フレームF1の最後の
データをユニットCRC生成部18における最後部のレ
ジスタに入力し終わった時点でフレームF1の最後まで
のユニットCRCの計算途中値が算出されるので、その
値を計算途中値保持部20に保持させる。保持の仕方に
ついては、ユニットCRC生成部18のシフトレジスタ
18aの各値を、パラレルに計算途中値保持部20とし
てのレジスタに複写する。そして、次のフレームのデー
タをさらに順次ユニットCRC生成部18に入力してい
き、そのフレームについて計算が終わった際にも、その
値に計算途中値保持部20の値を書き換える。よって、
フレームF2までの計算が終わった時点では、その時の
シフトレジスタ18aの値をレジスタ20におきかえ
る。つまり、計算途中値保持部20に保持される値は、
最初のフレームから該当するフレームまで計算を行った
際の値となる。例えば、フレームF2までの計算が終わ
った時点で保持される値は、フレームF1からフレーム
F2までによりユニットCRCを計算した値である。
The unit CRC generator 18 calculates the unit CRC based on the data of each frame sent, and causes the intermediate calculation value holding unit 20 to hold the intermediate value of the calculation for each frame. For example, when the last data of the frame F1 has been input to the last register of the unit CRC generation unit 18, the intermediate calculation value of the unit CRC up to the end of the frame F1 is calculated. It is held by the holding unit 20. As for the way of holding, the respective values of the shift register 18a of the unit CRC generation unit 18 are copied in parallel to the register as the calculation intermediate value holding unit 20. Then, the data of the next frame is sequentially input to the unit CRC generation unit 18, and when the calculation is completed for the frame, the value of the intermediate calculation value holding unit 20 is rewritten to the value. Therefore,
When the calculation up to the frame F2 is completed, the value of the shift register 18a at that time is replaced with the register 20. That is, the value held in the intermediate calculation value holding unit 20 is
This is the value when the calculation is performed from the first frame to the corresponding frame. For example, the value held when the calculation up to the frame F2 is completed is a value obtained by calculating the unit CRC from the frame F1 to the frame F2.

【0029】ここで、送信フレームにダミーフレームが
ある場合には、ダミーフレームにおける最後のデータを
ユニットCRC生成部18に入力し終わった際には、該
ダミーフレームについてのNG−CRCがフレームCR
C判定部12に読み込まれ、NG−CRCであることが
判定されて、その判定結果がユニットCRC生成部18
に送られる。すると、ユニットCRC生成部18はシフ
トレジスタ18aにある値を計算途中値保持部20に複
写せずに、逆に、計算途中値保持部20に保持されてい
る値をユニットCRC生成部18のシフトレジスタ18
aにロードする。すなわち、ダミーフレームの前のフレ
ームまでの計算途中値にシフトレジスタ18aの値を戻
す。例えば、図6に示す場合には、ダミーフレームの最
後のデータがシフトレジスタ18aに入力された時点で
ダミーフレームまでの計算途中値がシフトレジスタ18
aに存在することになるが、フレームCRC判定部12
からNG−CRCであるとの判定結果が送られるので、
計算途中値保持部20に保持されていたフレームF1ま
での計算途中値をシフトレジスタ18aに複写してフレ
ームF1までの計算値に戻す。そして、その値から次の
フレームの処理を行う。つまり、図6の例では、次にフ
レームF2のデータを入力して順次計算を行っていくの
である。そして、フレームFnの最後のデータがシフト
レジスタ18aに入力し終わったら図2におけるスイッ
チ18bを出力側に切り換えて、所定ビット数のデータ
をユニットCRC判定部22に送る。ユニットCRC判
定部22では、ユニットCRC生成部18から送られた
計算値と、ユニットCRCの値とを比較してこれらが一
致していればエラーはないと判定され、一致していない
場合にはエラーと判定される。
Here, when the transmission frame includes a dummy frame, when the last data in the dummy frame has been input to the unit CRC generation unit 18, the NG-CRC for the dummy frame is changed to the frame CR.
C is read by the C determination unit 12 and is determined to be NG-CRC, and the determination result is transmitted to the unit CRC generation unit 18.
Sent to Then, the unit CRC generation unit 18 does not copy the value in the shift register 18a to the intermediate calculation value holding unit 20, but conversely shifts the value held in the intermediate calculation value holding unit 20 to the shift value of the unit CRC generation unit 18. Register 18
Load to a. That is, the value of the shift register 18a is returned to the intermediate value of the calculation up to the frame before the dummy frame. For example, in the case shown in FIG. 6, when the last data of the dummy frame is input to the shift register 18a, the intermediate values calculated up to the dummy frame are stored in the shift register 18a.
a, the frame CRC determination unit 12
Since the determination result indicating that the data is NG-CRC is sent from
The intermediate calculation value up to the frame F1 held in the intermediate calculation value holding unit 20 is copied to the shift register 18a and returned to the calculated value up to the frame F1. Then, the next frame is processed based on the value. That is, in the example of FIG. 6, the data of the frame F2 is input and the calculation is sequentially performed. When the last data of the frame Fn has been input to the shift register 18a, the switch 18b in FIG. 2 is switched to the output side, and data of a predetermined number of bits is sent to the unit CRC determination unit 22. The unit CRC determination unit 22 compares the calculated value sent from the unit CRC generation unit 18 with the value of the unit CRC and determines that there is no error if they match, and if not, it determines An error is determined.

【0030】次に、データインターフェース24は、該
ユニットCRC判定部22の判定結果に従い処理を行
う。つまり、データインターフェース24は、ユニット
CRC判定部22においてエラーでないと判定された場
合には、ユニット組立部14で組み立てられたユニット
を出力して後段の処理に付する。一方、エラーと判定さ
れた場合には、送信側へ再送要求等の処理を行う。
Next, the data interface 24 performs processing in accordance with the result of the judgment by the unit CRC judgment section 22. That is, when the unit CRC determination unit 22 determines that there is no error, the data interface 24 outputs the unit assembled by the unit assembling unit 14 and performs the subsequent processing. On the other hand, if it is determined that an error has occurred, processing such as a retransmission request to the transmitting side is performed.

【0031】以上のように、本実施例の受信装置Aによ
れば、フレーム単位でのCRCの判定と、ユニット単位
でのCRCの判定とを2系統で並列に行うので、処理の
高速化を図ることができる。つまり、フレーム単位での
CRC判定回路(フレームCRC判定部12)とユニッ
ト単位でのCRC判定回路(分離部16、ユニットCR
C生成部18、計算途中値保持部20、ユニットCRC
判定部22)とを並列に設けて処理を並列に行うので、
処理の高速化を図ることができる。特に、各フレームに
おいてユニットCRCの計算途中値を保持しておくの
で、ダミーフレームがあってもその前のフレームまでの
計算途中値に戻すことができ、並列処理によっても支障
なく誤り検出処理を行うことができる。
As described above, according to the receiving apparatus A of the present embodiment, the CRC determination for each frame and the CRC determination for each unit are performed in parallel by two systems, so that the processing can be speeded up. Can be planned. That is, a CRC determination circuit for each frame (frame CRC determination unit 12) and a CRC determination circuit for each unit (separation unit 16, unit CR
C generation unit 18, calculation intermediate value holding unit 20, unit CRC
Since the determination unit 22) is provided in parallel and the processing is performed in parallel,
The processing can be speeded up. In particular, since the intermediate calculation value of the unit CRC is held in each frame, even if there is a dummy frame, it can be returned to the intermediate calculation value up to the previous frame, and the error detection processing can be performed without any trouble even by the parallel processing. be able to.

【0032】なお、上記の説明では、フレームCRC判
定部12は、フレームCRCがNG−CRCであること
によりエラーと判定する場合を説明したが、これには限
られず、伝送路における通信障害等により、算出された
CRCとフレームCRCとが一致せずにエラーと判定さ
れることもある。その場合も、そのフレームはユニット
の組立てには使用されず、ユニットCRC生成部18に
おける計算途中値もその前のフレームまでの計算途中値
に戻されることになる。また、そのような状況によりエ
ラーであるとの判定結果があったとしても、各フレーム
に設けられたタグで、継続フレームであることを示すタ
グから前のフレームの次のフレームであることが分かる
場合には、その判定結果を無視するようにしてもよい。
In the above description, the case where the frame CRC determination unit 12 determines that an error has occurred due to the fact that the frame CRC is an NG-CRC is not limited thereto. In some cases, the calculated CRC does not match the frame CRC and an error is determined. Also in that case, the frame is not used for assembling the unit, and the intermediate calculation value in the unit CRC generator 18 is also returned to the intermediate calculation value up to the previous frame. In addition, even if there is a determination result of an error due to such a situation, it can be seen that the tag provided for each frame indicates that the frame is the frame following the previous frame from the tag indicating that it is a continuous frame. In such a case, the determination result may be ignored.

【0033】[0033]

【発明の効果】本発明に基づく誤り検出装置によれば、
フレーム単位での誤り検出とユニット単位での誤り検出
とを並列して行うので、処理の高速化を図ることがで
き、特に、所定のフレームがダミーフレームである場合
等フレームに誤りが検出された場合には、ユニット誤り
検出符号の算出においても、計算途中値保持手段を設け
ることにより当該フレームを考慮しない状態に戻すこと
ができるので、フレームに誤りが検出された場合でも適
切に処理を行うことができる。
According to the error detection apparatus according to the present invention,
Since the error detection in the frame unit and the error detection in the unit unit are performed in parallel, the processing can be speeded up. In particular, when the predetermined frame is a dummy frame, an error is detected in the frame. In this case, even in the calculation of the unit error detection code, it is possible to return to a state in which the frame is not taken into account by providing the intermediate calculation value holding means, so that even if an error is detected in the frame, appropriate processing is performed. Can be.

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

【図1】本発明の実施例に基づく受信装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a receiving device based on an embodiment of the present invention.

【図2】本発明の実施例に基づく受信装置のユニットC
RC生成部と、計算途中値保持部の詳しい構成を示す回
路図である。
FIG. 2 shows a unit C of a receiving apparatus according to an embodiment of the present invention.
FIG. 4 is a circuit diagram illustrating a detailed configuration of an RC generation unit and a calculation intermediate value holding unit.

【図3】送信装置の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a transmission device.

【図4】送信データの構成を示す説明図である。FIG. 4 is an explanatory diagram showing a configuration of transmission data.

【図5】ユニットの送受信時のデータ構成を示す説明図
である。
FIG. 5 is an explanatory diagram showing a data configuration at the time of transmission and reception of a unit.

【図6】ユニットの送受信時のデータ構成で、ダミーフ
レームを付加した場合のデータ構成を示す説明図であ
る。
FIG. 6 is an explanatory diagram showing a data configuration when a dummy frame is added in a data configuration at the time of transmission and reception of a unit.

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

A 受信装置 B 送信装置 10 受信制御部 12 フレームCRC判定部 14 ユニット組立部 16 分離部 18 ユニットCRC生成部 20 計算途中値保持部 22 ユニットCRC判定部 24 データインターフェース Reference Signs List A receiving device B transmitting device 10 reception control unit 12 frame CRC determination unit 14 unit assembling unit 16 separation unit 18 unit CRC generation unit 20 calculation intermediate value holding unit 22 unit CRC determination unit 24 data interface

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータからなるフレームの複数
と、各フレームに付加された誤り検出符号であるフレー
ム誤り検出符号と、上記複数のフレーム全体についての
誤り検出符号であるユニット誤り検出符号とを有するデ
ータ群に対して誤り検出を行う誤り検出装置であって、 上記フレーム誤り検出符号に基づき誤りを検出するフレ
ーム誤り検出手段と、 上記データ群から、上記複数のフレームと、上記ユニッ
ト誤り検出符号とを抽出する抽出手段と、 上記抽出手段において得られた複数のフレームのデータ
に基づきユニット誤り検出符号を算出するユニット誤り
検出符号生成手段と、 上記ユニット誤り検出符号生成手段が各フレームについ
て算出を終えた際の計算途中値を保持するための計算途
中値保持手段と、 上記ユニット誤り検出符号生成手段が算出したユニット
誤り検出符号と、上記抽出手段から送られた上記ユニッ
ト誤り検出符号とを比較して誤り検出を行うユニット誤
り検出手段と、を有し、 上記フレーム誤り検出手段が、誤りを検出した場合に、
その旨を上記ユニット誤り検出符号生成手段に送信し、
ユニット誤り検出符号生成手段は、上記誤りが検出され
た旨の送信を受けた場合には、上記計算途中値保持手段
に保持された計算途中値を読み出して算出すべきユニッ
ト誤り検出符号の計算途中値とすることを特徴とする誤
り検出装置。
1. A plurality of frames consisting of a plurality of data, a frame error detection code which is an error detection code added to each frame, and a unit error detection code which is an error detection code for the plurality of frames as a whole. An error detection device for performing error detection on a data group having the frame error detection means for detecting an error based on the frame error detection code, from the data group, the plurality of frames, and the unit error detection code Extracting means for extracting a plurality of frames, a unit error detecting code generating means for calculating a unit error detecting code based on data of a plurality of frames obtained by the extracting means, and a unit error detecting code generating means for calculating each frame. Means for holding an intermediate calculation value for holding the intermediate calculation value at the time of completion; A unit error detecting means for comparing the unit error detecting code calculated by the generating means with the unit error detecting code sent from the extracting means to perform error detection; and Is detected,
The effect is transmitted to the unit error detection code generation means,
The unit error detection code generating means, when receiving the transmission indicating that the error has been detected, reads out the intermediate calculation value held in the intermediate calculation value holding means and calculates the unit error detection code to be calculated. An error detection device characterized by a value.
【請求項2】 上記誤り検出装置が、さらに、上記デー
タ群における複数のフレームを、連続したデータ列とし
てユニットに組み立てる組立手段であって、上記フレー
ム誤り検出手段により誤りが検出された場合に、対応す
るフレームを上記ユニットには使用しないでユニットを
組み立てる組立手段と、 上記ユニット誤り検出手段により誤りが検出されなかっ
た場合に、上記組立手段で組み立てられたユニットを出
力する出力手段と、を有することを特徴とする請求項1
に記載の誤り検出装置。
2. The error detecting apparatus further comprises: assembling means for assembling a plurality of frames in the data group into a unit as a continuous data string, wherein when the frame error detecting means detects an error, Assembling means for assembling the unit without using the corresponding frame for the unit, and output means for outputting the unit assembled by the assembling means when no error is detected by the unit error detecting means. 2. The method according to claim 1, wherein
An error detection device according to claim 1.
【請求項3】 上記フレーム誤り検出手段が、対応する
フレームはダミーフレームであることを示す誤り検出符
号に基づいて誤りを検出することを特徴とする請求項1
又は2に記載の誤り検出装置。
3. The apparatus according to claim 1, wherein said frame error detecting means detects an error based on an error detection code indicating that a corresponding frame is a dummy frame.
Or the error detection device according to 2.
【請求項4】 上記誤り検出符号が、CRCであること
を特徴とする請求項1又は2又は3に記載の誤り検出装
置。
4. The error detection device according to claim 1, wherein the error detection code is a CRC.
【請求項5】 上記ユニット誤り検出符号生成手段は、
シフトレジスタとゲート回路とを有し、上記計算途中値
保持手段は、上記シフトレジスタに格納されたデータを
パラレルに保持するレジスタにより構成されていること
を特徴とする請求項1又は2又は3又は4に記載の誤り
検出装置。
5. The unit error detection code generation means,
4. The apparatus according to claim 1, further comprising a shift register and a gate circuit, wherein the calculation intermediate value holding means is configured by a register for holding data stored in the shift register in parallel. 5. The error detection device according to 4.
JP29449698A 1998-09-30 1998-09-30 Error detection device Expired - Fee Related JP3263671B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29449698A JP3263671B2 (en) 1998-09-30 1998-09-30 Error detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29449698A JP3263671B2 (en) 1998-09-30 1998-09-30 Error detection device

Publications (2)

Publication Number Publication Date
JP2000114987A true JP2000114987A (en) 2000-04-21
JP3263671B2 JP3263671B2 (en) 2002-03-04

Family

ID=17808526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29449698A Expired - Fee Related JP3263671B2 (en) 1998-09-30 1998-09-30 Error detection device

Country Status (1)

Country Link
JP (1) JP3263671B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2821219A1 (en) * 2001-02-19 2002-08-23 Samsung Electronics Co Ltd METHOD AND APPARATUS FOR TRANSMITTING A SPECIALIZED PHYSICAL DATA CHANNEL SIGNAL
JP2003234738A (en) * 2002-02-12 2003-08-22 Nippon Telegr & Teleph Corp <Ntt> Security communication device and method
JP2010531613A (en) * 2007-07-12 2010-09-24 サムスン エレクトロニクス カンパニー リミテッド Method and apparatus for calculating CRC for multiple code blocks in a communication system
US8161349B2 (en) 2007-08-01 2012-04-17 Samsung Electronics Co., Ltd. Data parallelizing receiver
WO2013061396A1 (en) * 2011-10-24 2013-05-02 トヨタ自動車 株式会社 Communication device, communication system and communication method
EP2129029A3 (en) * 2008-05-28 2014-01-01 NEC Corporation Control information transmission in a radio communication system
US8875004B2 (en) 2007-07-10 2014-10-28 Mitsubishi Electric Corporation Transmitting apparatus and communication system
JP2015135647A (en) * 2014-01-20 2015-07-27 大日本印刷株式会社 Method of generating data with error detection code and error detection method
JP2017055153A (en) * 2015-09-07 2017-03-16 富士通株式会社 Receiver, reception control method and reception control program

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2373969A (en) * 2001-02-19 2002-10-02 Samsung Electronics Co Ltd Outer loop power control in a CDMA communication system
GB2373969B (en) * 2001-02-19 2003-02-12 Samsung Electronics Co Ltd DPCH multiplexing apparatus and method for outer loop power control in a W-CDMA communication system
US7408893B2 (en) 2001-02-19 2008-08-05 Samsung Electronics Co., Ltd DPCH multiplexing apparatus and method for outer loop power control in a W-CDMA communication system
US7609667B2 (en) 2001-02-19 2009-10-27 Samsung Electronics Co., Ltd DPCH multiplexing apparatus and method for outer loop power control in a W-CDMA communication system
FR2821219A1 (en) * 2001-02-19 2002-08-23 Samsung Electronics Co Ltd METHOD AND APPARATUS FOR TRANSMITTING A SPECIALIZED PHYSICAL DATA CHANNEL SIGNAL
JP2003234738A (en) * 2002-02-12 2003-08-22 Nippon Telegr & Teleph Corp <Ntt> Security communication device and method
US8875004B2 (en) 2007-07-10 2014-10-28 Mitsubishi Electric Corporation Transmitting apparatus and communication system
JP2010531613A (en) * 2007-07-12 2010-09-24 サムスン エレクトロニクス カンパニー リミテッド Method and apparatus for calculating CRC for multiple code blocks in a communication system
US8386878B2 (en) 2007-07-12 2013-02-26 Samsung Electronics Co., Ltd. Methods and apparatus to compute CRC for multiple code blocks
US8862958B2 (en) 2007-07-12 2014-10-14 Samsung Electronics Co., Ltd. Methods and apparatus to compute CRC for multiple code blocks
US8161349B2 (en) 2007-08-01 2012-04-17 Samsung Electronics Co., Ltd. Data parallelizing receiver
EP2129029A3 (en) * 2008-05-28 2014-01-01 NEC Corporation Control information transmission in a radio communication system
WO2013061396A1 (en) * 2011-10-24 2013-05-02 トヨタ自動車 株式会社 Communication device, communication system and communication method
JP2015135647A (en) * 2014-01-20 2015-07-27 大日本印刷株式会社 Method of generating data with error detection code and error detection method
JP2017055153A (en) * 2015-09-07 2017-03-16 富士通株式会社 Receiver, reception control method and reception control program

Also Published As

Publication number Publication date
JP3263671B2 (en) 2002-03-04

Similar Documents

Publication Publication Date Title
US6212660B1 (en) Methods and apparatuses for identification of the position of data packets which are located in a serial received data stream
JP2003174479A (en) Packet communication method and device therefor
JP3263671B2 (en) Error detection device
KR101069356B1 (en) Method, module and apparatus for receiving data packet frames
JP2008112224A (en) Error detection device and error detection method
EP1515235A1 (en) Error decoding circuit, data bus control method and data bus system
US6363514B1 (en) Sound reproducing system and method capable of decoding audio data even in case of failure of detecting syncword
JP3263307B2 (en) Parity bit match adjustment method and apparatus
JP2019169877A (en) Monitoring system, monitoring method, and computer program
US7168015B2 (en) TF-determination apparatus, and TF-determination method as well as program to be executed for implementing the TF-determination method
JP2002259216A (en) Method for detecting electronic file alteration, method for describing electronic file for the same and communication equipment
JP2007532992A (en) Error detection method and control system during data processing in processing system
JPH11136138A (en) Redundant code generator, error detection encoder, error detector, redundant code generation method, error detection method and information recording medium
JP3164996B2 (en) Serial data receiving device
CN111937353B (en) Method for operating network participant and network participant
JPS61283241A (en) Data communication receiver
JP2867942B2 (en) Demultiplexing signal monitoring method
JP4455738B2 (en) Multiplexing method and apparatus
JPH02179043A (en) Communication error detection system
JP2009278394A (en) Message transmitting circuit and semiconductor integrated circuit
JP2006261948A (en) Communication system, transmission device, and receiving device
JPH0795263A (en) Fault detection circuit
JP2000115287A (en) Test controller and test control method
JPH0738608A (en) Voice packet receiver
JPS583340A (en) Transmission failure reduction system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees