JP5802488B2 - Receiver - Google Patents

Receiver Download PDF

Info

Publication number
JP5802488B2
JP5802488B2 JP2011189453A JP2011189453A JP5802488B2 JP 5802488 B2 JP5802488 B2 JP 5802488B2 JP 2011189453 A JP2011189453 A JP 2011189453A JP 2011189453 A JP2011189453 A JP 2011189453A JP 5802488 B2 JP5802488 B2 JP 5802488B2
Authority
JP
Japan
Prior art keywords
bit
pattern
bits
comparison
range
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.)
Expired - Fee Related
Application number
JP2011189453A
Other languages
Japanese (ja)
Other versions
JP2013051613A (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.)
MegaChips Corp
Original Assignee
MegaChips 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 MegaChips Corp filed Critical MegaChips Corp
Priority to JP2011189453A priority Critical patent/JP5802488B2/en
Publication of JP2013051613A publication Critical patent/JP2013051613A/en
Application granted granted Critical
Publication of JP5802488B2 publication Critical patent/JP5802488B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、既知のビットパターン(特定パターン)を含むシリアルデータ(シリアルパターン)を受信し、特定パターンを含むシリアルデータが受信されたことを検出する受信装置に関するものである。   The present invention relates to a receiving apparatus that receives serial data (serial pattern) including a known bit pattern (specific pattern) and detects that serial data including the specific pattern has been received.

高速シリアル通信技術で採用されている多くの通信プロトコル(規約)が特定パターンの検出処理を前提としている。最も一般的なシリアルパターンの構成は、図22に示すように、プリアンブル(Preamble)+スタートデリミタ(StartDelimiter)+ペイロード(Payload)+エンドオブバースト(EOB)(もしくは、エンドデリミタ(EndDelimiter))となっており、データ格納領域であるペイロード以外はそれぞれの通信プロトコルにおいて特定ビット数の特定パターンとして規定されている。   Many communication protocols (rules) adopted in high-speed serial communication technology are premised on a specific pattern detection process. As shown in FIG. 22, the most common serial pattern configuration is preamble + start delimiter + payload + end of burst (EOB) (or end delimiter). Other than the payload, which is the data storage area, each communication protocol defines a specific pattern with a specific number of bits.

図23は、従来の受信装置の構成を表す一例の概念図である。同図に示す受信装置80は、受信したシリアルデータを所定ビット幅のパラレルデータに変換する、シリアルパラレル変換回路82と、受信パターン格納レジスタ84とだけを表したものである。   FIG. 23 is a conceptual diagram illustrating an example of a configuration of a conventional receiving apparatus. The receiving device 80 shown in the figure represents only a serial / parallel conversion circuit 82 and a reception pattern storage register 84 that convert received serial data into parallel data having a predetermined bit width.

受信装置80では、例えば、受信した10Gbpsの高速シリアルデータが、シリアルパラレル変換回路82により、受信したシリアルデータから再生したシリアルクロックを分周したパラレルクロックに同期して、312.5MHz、32ビットのパラレルデータに変換される。シリアルパラレル変換回路82からは、変換された32ビット幅のパラレルデータDATAnと、パラレルクロックが出力される。   In the receiving device 80, for example, the received 10 Gbps high-speed serial data is synchronized with a parallel clock obtained by dividing the serial clock reproduced from the received serial data by the serial-parallel conversion circuit 82, 312.5 MHz, 32 bits. Converted to parallel data. The serial-parallel conversion circuit 82 outputs the converted 32-bit width parallel data DATAn and the parallel clock.

受信パターン格納レジスタ84は、3個の、32ビットのフリップフロップ(FF)86を直列に接続して構成されている。受信パターン格納レジスタ84により、パラレルシリアル変換回路82から入力された32ビット幅のパラレルデータDATAnが、パラレルクロックに同期して、順次後段のFF86にシフトされる。受信パターン格納レジスタ84からは、常に、最新(最後)の所定周期分のパラレルデータDATA1〜nが出力される。   The reception pattern storage register 84 is configured by connecting three 32-bit flip-flops (FF) 86 in series. The reception pattern storage register 84 sequentially shifts the 32-bit width parallel data DATAn input from the parallel-serial conversion circuit 82 to the subsequent FF 86 in synchronization with the parallel clock. The reception pattern storage register 84 always outputs the latest (last) predetermined period of parallel data DATA1 to n.

ここで、受信装置は、有効なシリアルデータだけではなく、さまざまな雑音も受信する。そこで、有効データを見分けるため、前述のように、シリアルデータの先頭に、プリアンブルと呼ばれる既知のビットパターン(特定パターン)を有する部分が付加されている。プリアンブルを受信装置で検出することにより、有効なシリアルデータを雑音と区別して受信できるようになっている。   Here, the receiving apparatus receives not only valid serial data but also various noises. Therefore, in order to distinguish valid data, as described above, a portion having a known bit pattern (specific pattern) called a preamble is added to the head of serial data. By detecting the preamble by the receiving device, it is possible to receive effective serial data separately from noise.

一般的な特定パターンの検出方法は以下の通りである。すなわち、図24に示すように、例えば、特定パターンのビット長が64ビットであり、シリアルパラレル変換回路82によって変換されるパラレルデータのビット幅が32ビットである場合、パラレルデータDATA1〜3のうち、特定パターンが現れる可能性のある32通りの格納パターンのそれぞれと、特定パターンとを比較することにより、特定パターンの検出が行われる。   A general method for detecting a specific pattern is as follows. That is, as shown in FIG. 24, for example, when the bit length of the specific pattern is 64 bits and the parallel data converted by the serial / parallel conversion circuit 82 has a bit width of 32 bits, The specific pattern is detected by comparing each of the 32 stored patterns in which the specific pattern may appear with the specific pattern.

ここで、特定パターンが現れる可能性のある32通りのパターンとは、受信パターン格納レジスタ84に格納されたパラレルデータDATA1〜3を構成するビットの、シリアルデータとして受信した順に連続する32ビットの範囲(図24の例では、パラレルデータDATA1のビット0〜31までの32ビット)のそれぞれのビットを先頭とする64ビットの部分(32通りの格納パターン)である。   Here, the 32 patterns in which the specific pattern may appear are a range of 32 bits that are consecutive in the order received in the serial data of the bits constituting the parallel data DATA1 to 3 stored in the reception pattern storage register 84. (In the example of FIG. 24, it is a 64-bit portion (32 storage patterns) starting from each bit of the parallel data DATA1 of 32 bits from 0 to 31).

なお、図中のパラレルデータDATA1〜3のビットの並びは、左側が最下位ビット(ビット0)であり、シリアルデータの先頭側のビットである。これ以外の図についても同様である。   In the arrangement of the bits of the parallel data DATA1 to DATA3 in the figure, the leftmost bit is the least significant bit (bit 0), which is the first bit of the serial data. The same applies to other figures.

上記のようにして特定パターンの検出を行う理由は以下の通りである。すなわち、
(1)特定パターンがパラレルデータのビット幅よりも長いため、1周期(サイクル)のデータでは不足する。図24では、特定パターンが64ビットであるのに対し、パラレルデータは32ビットであるため、最低でも2周期分、さらに、次の理由(2)を考慮すると3周期分のデータを保持する必要がある。
(2)連続する32ビットの範囲のうちのどの先頭位置の格納パターンで特定パターンが検出されるか不明であるため、32通りの格納パターンの全てについて特定パターンとの一致を検出する必要がある。
The reason why the specific pattern is detected as described above is as follows. That is,
(1) Since the specific pattern is longer than the bit width of parallel data, one cycle (cycle) of data is insufficient. In FIG. 24, the specific pattern is 64 bits while the parallel data is 32 bits. Therefore, it is necessary to hold data for at least two cycles, and also for three cycles considering the following reason (2). There is.
(2) Since it is unclear which storage pattern at which the head position is detected in the continuous 32-bit range, it is necessary to detect a match with the specific pattern for all 32 storage patterns. .

次に、受信装置の具体例を挙げて説明する。   Next, a specific example of the receiving device will be described.

図25は、従来の受信装置の構成を表す一例の回路図である。同図に示す受信装置90は、上記のように、特定パターンのビット長が64ビットであり、シリアルパラレル変換回路によって変換されるパラレルデータのビット幅が32ビットである場合の構成を表したものであって、シリアルパラレル変換回路82と、受信パターン格納レジスタ84Aと、パターン比較回路88Aとを備えている。   FIG. 25 is a circuit diagram illustrating an example of a configuration of a conventional receiving apparatus. The receiver 90 shown in the figure represents the configuration when the bit length of the specific pattern is 64 bits and the bit width of the parallel data converted by the serial / parallel converter circuit is 32 bits as described above. In addition, a serial-parallel conversion circuit 82, a reception pattern storage register 84A, and a pattern comparison circuit 88A are provided.

3周期分のパラレルデータDATA1〜3に含まれる32通りの格納パターンのそれぞれと、特定パターンとを一度に比較するために、受信パターン格納レジスタ84Aとして、直列に接続された2段の32ビットのFF86Aが設けられている。   In order to compare each of the 32 storage patterns included in the parallel data DATA1 to 3 cycles of the three periods with the specific pattern at a time, the reception pattern storage register 84A has two stages of 32 bits connected in series. FF86A is provided.

また、両者を比較するための32個の比較器(比較器0〜31)92Aが設けられている。それぞれの比較器92Aには、32通りの格納パターンのそれぞれと、特定パターンが入力されており、比較器92Aからは、両者の比較結果である32個のパターン一致フラグ[31:0]が出力される。   Also, 32 comparators (comparators 0 to 31) 92A for comparing the two are provided. Each of the storage patterns and specific patterns are input to each comparator 92A, and 32 pattern matching flags [31: 0], which are the comparison results of both, are output from the comparator 92A. Is done.

図26は、比較器の構成を表す一例の回路図である。同図に示す比較器92Aは、64個のEXOR(排他的論理和)回路94Aと、1つのNOR回路96Aとによって構成されている。   FIG. 26 is a circuit diagram illustrating an example of the configuration of the comparator. The comparator 92A shown in the figure is composed of 64 EXOR (exclusive OR) circuits 94A and one NOR circuit 96A.

それぞれのEXOR回路94Aにより、格納パターンと特定パターンの各々対応するビットが比較され、その比較結果として、両者が一致する場合に“0”、不一致の場合に“1”が出力される。その結果、NOR回路96Aからは、パターン一致フラグとして、両者の全てのビットが一致する場合、つまり、格納パターンと特定パターンとが一致する場合に“1”、1ビットでも不一致が検出された場合には“0”が出力される。   Each EXOR circuit 94A compares the corresponding bits of the storage pattern and the specific pattern, and as a result of the comparison, “0” is output when the two match, and “1” is output when they do not match. As a result, from the NOR circuit 96A, when all the bits match as the pattern match flag, that is, when the storage pattern and the specific pattern match, “1”, even if one bit does not match. "0" is output in the.

なお、高速通信においては、ある程度の通信誤り(格納パターンと特定パターンとの間で一致しないビットの数)を許して特定パターンを検出する必要がある。   In high-speed communication, it is necessary to detect a specific pattern while allowing a certain amount of communication error (the number of bits that do not match between the storage pattern and the specific pattern).

図27は、従来の受信装置の構成を表す別の例の回路図である。同図に示す受信装置100は、所定数の通信誤りを許容する機能を備えるものである。パターン比較回路88Bを構成するそれぞれの比較器92Bには、最大許容不一致ビット数が入力されている。   FIG. 27 is a circuit diagram of another example showing the configuration of a conventional receiving apparatus. The receiving apparatus 100 shown in the figure has a function that allows a predetermined number of communication errors. The maximum number of allowable mismatch bits is input to each comparator 92B constituting the pattern comparison circuit 88B.

図28は、比較器の構成を表す一例の回路図である。同図に示す比較器92Bは、64個のEXOR回路94Aと、加算器98Bと、大小比較回路102Bとによって構成されている。   FIG. 28 is a circuit diagram illustrating an example of the configuration of the comparator. The comparator 92B shown in the figure is composed of 64 EXOR circuits 94A, an adder 98B, and a magnitude comparison circuit 102B.

この比較器92Bでは、加算器98Bにより、64個のEXOR回路94Aからの比較結果が加算される。加算器98Bは、4ビットの加算器であり、加算結果が15未満であれば加算結果をそのまま出力し、15以上であれば15を出力する。つまり、加算器98Bは、通信誤り数が14までの場合に対応する。そして、加算結果、すなわち、通信誤り数が、最大許容不一致ビット数の15未満である場合には、大小比較回路102Bにより、一致が検出されたと見なされ、パターン一致フラグが“1”となる。   In the comparator 92B, the comparison results from the 64 EXOR circuits 94A are added by the adder 98B. The adder 98B is a 4-bit adder that outputs the addition result as it is if the addition result is less than 15, and outputs 15 if it is 15 or more. That is, the adder 98B corresponds to the case where the number of communication errors is up to 14. If the addition result, that is, the number of communication errors is less than the maximum allowable mismatch bit number 15, it is considered that a match is detected by the magnitude comparison circuit 102B, and the pattern match flag is set to “1”.

ここで、本発明に関連性のある先行技術文献には、特許文献1〜3がある。   Here, Patent Documents 1 to 3 are related to prior art documents relevant to the present invention.

特許文献1には、直列データをnビットの並列データに変換し、nビットの並列データを受け取ってn+m−1ビット(mは特定パターンのビット長)の並列データをレジスタに記憶し、N個のMビット比較器により、レジスタに記憶されたn+m−1ビットのデータの開始ビットを1ビットずつずらして、N通りの連続するmビットのデータのそれぞれと、mビットの特定パターンとの一致検出を並列に行うことが記載されている。   In Patent Document 1, serial data is converted into n-bit parallel data, n-bit parallel data is received, and n + m−1 bits (m is a bit length of a specific pattern) is stored in a register. The M bit comparator shifts the start bit of the n + m-1 bit data stored in the register by 1 bit, and detects the coincidence between each of the N consecutive m bit data and the m bit specific pattern. Are described in parallel.

特許文献2および3には、並列データと特定パターンとをビット毎に比較し、伝送線路の影響により、両者の間でビットの値が一致しないビット誤りが含まれていても、その数が規定数以下であれば特定パターンに一致すると判定することが記載されている。   In Patent Documents 2 and 3, parallel data and a specific pattern are compared for each bit, and even if a bit error in which the bit value does not match between both is included due to the influence of the transmission line, the number is defined. It is described that if it is less than or equal to the number, it is determined that the pattern matches the specific pattern.

特開平7−202865号公報JP-A-7-202865 特開2005−260500号公報JP 2005-260500 A 特開平8−65294号公報JP-A-8-65294

従来の受信装置では、特定パターン検出時に通信誤りを許さない場合でも、パターン比較回路は、64×32=2048個のEXOR回路で構成されており、比較回路としてはあまりにも大きいと言える。また、組合せ回路だけでこのような大規模な回路を構成すると、レイアウト時に配線が困難になる、タイミング収束が難しくなるなどの問題が発生することが考えられる。   In the conventional receiving apparatus, even when a communication error is not allowed when a specific pattern is detected, the pattern comparison circuit is composed of 64 × 32 = 2048 EXOR circuits, and it can be said that the comparison circuit is too large. In addition, if such a large-scale circuit is configured with only combinational circuits, problems such as difficulty in wiring during layout and difficulty in timing convergence may occur.

本発明の目的は、パターン検出回路の回路規模を削減し、コストダウンすることができる受信装置を提供することにある。   An object of the present invention is to provide a receiving apparatus capable of reducing the circuit scale of a pattern detection circuit and reducing the cost.

上記目的を達成するために、本発明は、Mビット長の既知のビットパターンを有する検出対象部分を含むシリアルデータを受信する受信装置であって、
受信したシリアルデータを構成する各ビットのデータを、受信した順に並べてNビット(N<M)幅のパラレルデータを生成するシリアルパラレル変換回路と、
前記シリアルパラレル変換回路が生成したNビット幅のパラレルデータが格納される第1のレジスタ、および、該第1のレジスタに格納されたパラレルデータが、順次、パラレルクロックに同期してシフトされて格納される1つもしくは複数の第2のレジスタとからなるレジスタ群と、
前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの、前記シリアルデータとして受信した順に連続するNビットの範囲のそれぞれのビットを先頭とするLビット(N≦L<M)の部分と、前記既知のビットパターンの対応する部分とを比較する比較回路と、
前記比較回路が、前記パラレルクロックの第1の周期内において、そのときに前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納されているパラレルデータを構成するビットの前記連続するNビットの範囲の先頭からKビット目(K=0〜N−1)を先頭とするLビットの部分と、前記既知のビットパターンの先頭からLビットの部分との一致を検出し、さらに、L/Nの商をq、余りをrとして、K、N、q、rによって決まる前記パラレルクロックの特定の周期内において、そのときに前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納されているパラレルデータを構成するビットの、前記連続するNビットの範囲およびK、N、rによって決まる特定のビットを先頭とするJビット(J≦M−L)の部分と、前記既知のビットパターンのL+1ビット目からJビットの部分との一致を検出したことを条件として、前記シリアルデータの受信を検出する検出回路とを備えることを特徴とする受信装置を提供するものである。
In order to achieve the above object, the present invention provides a receiving apparatus for receiving serial data including a detection target portion having a known bit pattern having an M bit length,
A serial-parallel conversion circuit that generates parallel data of N bits (N <M) width by arranging the data of each bit constituting the received serial data in the order of reception;
A first register storing N-bit parallel data generated by the serial-parallel conversion circuit, and the parallel data stored in the first register are sequentially shifted and stored in synchronization with a parallel clock. A group of registers comprising one or more second registers to be
Each bit in the range of N bits consecutive in the order received as the serial data of the bits constituting the plurality of parallel data stored in the first register and the one or more second registers is set as the head. A comparison circuit for comparing a portion of L bits (N ≦ L <M) to be compared with a corresponding portion of the known bit pattern;
The comparison circuit, the Oite the first cycle of the parallel clock, said bits forming the parallel data stored in said first register and said one or more second register at that time A match between an L-bit portion starting from the K-th bit (K = 0 to N−1) from the beginning of a range of consecutive N bits and an L-bit portion from the beginning of the known bit pattern is detected; Furthermore, the quotient of L / N q, the remainder as r, K, N, q, Oite within a particular period of the parallel clock determined by r, the first register and the one or more at that time the two bits constituting the parallel data stored in the register, the range of N bits, wherein the successive and K, N, J bits (J ≦ M to start a specific bit determined by r of L) and a detection circuit for detecting reception of the serial data on condition that a match between the L + 1 bit and the J bit portion from the (L + 1) th bit of the known bit pattern is detected. A device is provided.

ここで、前記特定の周期が前記パラレルクロックの第1の周期からq周期後の周期であり、前記特定のビットが、
(1A)K<N−rである場合には、前記連続するNビットの範囲の先頭からK+rビット目のビットであり、
(2B)N−r≦Kである場合には、前記連続するNビットの範囲の直後のrビットの範囲の先頭からK+r−Nビット目のビットである、
もしくは、
前記特定の周期が前記パラレルクロックの第1の周期からq+1周期後の周期であり、前記特定のビットが、
(1B)K<N−rである場合には、前記連続するNビットの範囲の直前のN−rビットの範囲の、先頭からKビット目のビットであり、
(2A)N−r≦Kである場合には、前記連続するNビットの範囲の先頭からK+r−Nビット目のビットであることが好ましい。
Here, the specific cycle is a cycle after q cycles from the first cycle of the parallel clock, and the specific bit is:
(1A) If K <N−r, it is the K + rth bit from the beginning of the range of consecutive N bits,
(2B) If N−r ≦ K, the K + r−N-th bit from the beginning of the r-bit range immediately after the continuous N-bit range.
Or
The specific period is a period after q + 1 period from the first period of the parallel clock, and the specific bit is:
(1B) If K <N−r, it is the Kth bit from the beginning of the range of Nr bits immediately before the range of consecutive N bits,
(2A) When N−r ≦ K, it is preferable that the bit is the (K + r−N) th bit from the beginning of the range of the consecutive N bits.

また、前記比較回路が、
前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うN個の第1の比較器を備えるとともに、
前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲の直後のrビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うr個の第2の比較器と、前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲の直前のN−rビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うN−r個の第3の比較器と、の少なくとも一方を備え、
前記検出回路が、
前記特定の周期を前記第1の周期からq周期後の周期とし、
(1A)K<N−rである場合には、前記第1の比較器のうちの、前記連続するNビットの範囲の先頭からK+rビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+rビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
(2B)N−r≦Kである場合には、前記第2の比較器のうちの、前記連続するNビットの範囲の直後のrビットの範囲の先頭からK+r−Nビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該Kビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビットからJビットの部分との、
一致を検出したことを条件として前記シリアルデータの受信を検出するか、
もしくは、
前記特定の周期を前記第1の周期からq+1周期後の周期とし、
(1B)K<N−rである場合には、前記第3の比較器のうちの、前記連続するNビットの範囲の直前のN−rビットの範囲の先頭からKビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該Kビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
(2A)N−r≦Kである場合には、前記第1の比較器のうちの、前記連続するNビットの範囲の先頭からK+r−Nビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+r−Nビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
一致を検出したことを条件として前記シリアルデータの受信を検出することが好ましい。
Further, the comparison circuit includes:
A portion starting from each bit in the range of the consecutive N bits of the bits constituting a plurality of parallel data stored in the first register and the one or more second registers and the known bit Comprising N first comparators for comparison with corresponding parts of the pattern;
Each bit in the range of r bits immediately after the range of consecutive N bits of the bits constituting the plurality of parallel data stored in the first register and the one or more second registers is set as the head. R second comparators for comparing a portion to be matched with a corresponding portion of the known bit pattern, and a plurality of parallels stored in the first register and the one or more second registers N-r comparisons are made between a portion starting with each bit in the range of Nr bits immediately before the range of consecutive N bits of the bits constituting the data and a corresponding portion of the known bit pattern. And at least one of the third comparator,
The detection circuit comprises:
The specific cycle is a cycle after q cycles from the first cycle,
(1A) If K <N−r, the portion of the first comparator starting with the K + r-th bit from the beginning of the continuous N-bit range and the known bit pattern Comparing with a corresponding portion of the J bit portion starting from the K + r bit and the L + 1 bit to J bit portion of the known bit pattern,
(2B) If N−r ≦ K, the K + r−N-th bit from the beginning of the r-bit range immediately after the continuous N-bit range in the second comparator And a comparator that compares the corresponding portion of the known bit pattern with the J bit portion starting from the K-th bit and the L + 1 bit to J bit portion of the known bit pattern. With,
Detecting reception of the serial data on condition that a match is detected,
Or
The specific period is a period after q + 1 period from the first period,
(1B) When K <N−r, the Kth bit from the beginning of the Nr bit range immediately before the continuous N bit range in the third comparator And a comparator for comparing the corresponding portion of the known bit pattern with the J bit portion starting from the K bit and the (L + 1) th bit of the known bit pattern With part,
(2A) When N−r ≦ K, the portion of the first comparator starting from the head of the K + r−N bits from the head of the continuous N-bit range and the known A comparator that performs a comparison with a corresponding portion of the bit pattern includes a J bit portion starting from the K + r-N bit and a L bit from the L + 1 bit to the J bit portion of the known bit pattern.
It is preferable to detect reception of the serial data on condition that a match is detected.

また、(1A)K<N−rである場合には、前記特定の周期が前記パラレルクロックの第1の周期からq周期後の周期であり、前記特定のビットが前記連続するNビットの範囲の先頭からK+rビット目のビットであり、
(2A)N−r≦Kである場合には、前記特定の周期が前記パラレルクロックの第1の周期からq+1周期後の周期であり、前記特定のビットが前記連続するNビットの範囲の先頭からK+r−Nビット目のビットであることが好ましい。
If (1A) K <N−r, the specific period is a period after q periods from the first period of the parallel clock, and the specific bits are in a range of the consecutive N bits. The K + rth bit from the beginning of
(2A) When N−r ≦ K, the specific cycle is a cycle after q + 1 cycles from the first cycle of the parallel clock, and the specific bit is the head of the range of the consecutive N bits. To the (K + r−N) th bit.

また、前記比較回路が、前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うN個の比較器を備え、
前記検出回路が、
(1A)K<N−rである場合には、前記N個の比較器のうちの、前記連続するNビットの範囲の先頭からK+rビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+rビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
(2A)N−r≦Kである場合には、前記N個の比較器のうちの、前記連続するNビットの範囲の先頭からK+r−Nビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+r−Nビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
一致を検出したことを条件として、前記シリアルデータの受信を検出することが好ましい。
Further, the comparison circuit starts with each bit in the range of the consecutive N bits of the bits constituting the plurality of parallel data stored in the first register and the one or more second registers. N comparators for comparing a portion to be matched with a corresponding portion of the known bit pattern,
The detection circuit comprises:
(1A) When K <N−r, a portion of the N comparators beginning with the K + r-th bit from the head of the continuous N-bit range and the known bit pattern Comparing with a corresponding portion of the J bit portion starting from the K + r bit and the L + 1 bit to J bit portion of the known bit pattern,
(2A) If N−r ≦ K, a portion of the N comparators starting from the head of the K + r−N-th bit from the head of the continuous N-bit range and the known A comparator that performs a comparison with a corresponding portion of the bit pattern includes a J bit portion starting from the K + r-N bit and a L bit from the L + 1 bit to the J bit portion of the known bit pattern.
It is preferable to detect reception of the serial data on condition that a match is detected.

また、M=I・L(Iは2以上の整数)であり、J=Lであることが好ましい。   Further, it is preferable that M = I · L (I is an integer of 2 or more), and J = L.

また、前記比較回路が、所定のビット数の不一致を許して一致を検出することが好ましい。   Further, it is preferable that the comparison circuit detects a match by allowing a predetermined number of bits to be mismatched.

本発明では、比較器を構成するEXOR回路の個数を削減することができるので、受信装置の回路規模を小さくすることができる。これにより、本発明によれば、回路規模削減により、チップコスト削減、レイアウト容易性向上などの効果を得ることができる。   In the present invention, since the number of EXOR circuits constituting the comparator can be reduced, the circuit scale of the receiving apparatus can be reduced. Thus, according to the present invention, effects such as chip cost reduction and layout easiness improvement can be obtained by reducing the circuit scale.

本発明の受信装置の構成を表す第1の実施形態の回路図である。It is a circuit diagram of a 1st embodiment showing composition of a receiving device of the present invention. 比較器の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a comparator. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. 受信装置の動作を表す一例のタイミング図である。It is an example timing diagram showing operation | movement of a receiver. 本発明の受信装置の構成を表す第2の実施形態の回路図である。It is a circuit diagram of 2nd Embodiment showing the structure of the receiver of this invention. パターン検出回路の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a pattern detection circuit. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. 本発明の受信装置の構成を表す第3の実施形態の回路図である。It is a circuit diagram of 3rd Embodiment showing the structure of the receiver of this invention. 比較器の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a comparator. 比較パターン選択部の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a comparison pattern selection part. パターン検出回路の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a pattern detection circuit. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. 本発明の受信装置の構成を表す第4の実施形態の回路図である。It is a circuit diagram of 4th Embodiment showing the structure of the receiver of this invention. 比較器の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a comparator. 本発明の受信装置の構成を表す第5の実施形態の回路図である。It is a circuit diagram of a 5th embodiment showing the composition of the receiving device of the present invention. 比較器の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a comparator. パターン検出回路の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a pattern detection circuit. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. シリアルパターンの構成を表す一例の概念図である。It is a conceptual diagram of an example showing the structure of a serial pattern. 従来の受信装置の構成を表す一例の概念図である。It is a conceptual diagram of an example showing the structure of the conventional receiver. 格納パターンと特定パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a specific pattern. 従来の受信装置の構成を表す一例の回路図である。It is an example circuit diagram showing the structure of the conventional receiver. 比較器の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a comparator. 従来の受信装置の構成を表す別の例の回路図である。It is a circuit diagram of another example showing the structure of the conventional receiver. 比較器の構成を表す一例の回路図である。It is an example circuit diagram showing the composition of a comparator. 従来の受信装置の構成を表す一例の回路図である。It is an example circuit diagram showing the structure of the conventional receiver. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern. 従来の受信装置の構成を表す一例の回路図である。It is an example circuit diagram showing the structure of the conventional receiver. 格納パターンと比較パターンとの関係を表す一例の概念図である。It is a conceptual diagram of an example showing the relationship between a storage pattern and a comparison pattern.

以下に、添付の図面に示す好適実施形態に基づいて、本発明の受信装置を詳細に説明する。   Hereinafter, a receiving apparatus of the present invention will be described in detail based on a preferred embodiment shown in the accompanying drawings.

図1は、本発明の受信装置の構成を表す第1の実施形態の回路図である。同図に示す受信装置10は、Mビット長の既知のビットパターン(特定パターン)を有する検出対象部分を含むシリアルデータを受信し、特定パターンを含むシリアルデータが受信されたことを検出するものであって、シリアルパラレル変換回路12と、受信パターン格納レジスタ14と、パターン比較回路16と、パターン検出回路18とによって構成されている。   FIG. 1 is a circuit diagram of a first embodiment showing a configuration of a receiving apparatus of the present invention. The receiving apparatus 10 shown in the figure receives serial data including a detection target portion having a known bit pattern (specific pattern) having an M bit length, and detects that serial data including the specific pattern has been received. The serial-parallel conversion circuit 12, the reception pattern storage register 14, the pattern comparison circuit 16, and the pattern detection circuit 18 are configured.

本発明の受信装置は、N通り(N<M)の、Mビット長の格納パターンのそれぞれと、Mビット長の特定パターンとを1周期で一度に比較するのではなく、複数回に分けて複数の周期で比較する。受信装置10は、M=64,N=32の場合の例であり、図2に示すように、後述する、32通り(N通り)の、64ビット長(Mビット長)の格納パターンのそれぞれと、64ビット長(Mビット長)の特定パターンとを、前半と後半の32ビット(Lビット(N≦L<M)およびJビット(J≦M−L))ずつ、2回に分けて2周期で比較する。   The receiving apparatus of the present invention does not compare each of the N (N <M) M-bit length storage patterns with the M-bit specific pattern at a time, but in a plurality of times. Compare multiple cycles. The receiving apparatus 10 is an example in the case of M = 64 and N = 32, and as shown in FIG. 2, each of 32 (N) 64 bit length (M bit length) storage patterns described later. And the specific pattern of 64 bits length (M bit length) is divided into two parts, 32 bits (L bit (N ≦ L <M) and J bit (J ≦ ML)) in the first half and the second half. Compare in two cycles.

シリアルデータは、図22に示すように、プリアンブル+スタートデリミタ+ペイロード+エンドオブバーストの順序で受信装置10に入力される。プリアンブルが、前述のMビット長の特定パターンを有する。   As shown in FIG. 22, the serial data is input to the receiving apparatus 10 in the order of preamble + start delimiter + payload + end of burst. The preamble has the specific pattern having the M bit length described above.

シリアルパラレル変換回路12は、例えば、32ビット(Nビット)のレジスタによって構成され、連続して受信したシリアルデータを構成する各ビットのデータを、シリアルクロックに同期して、受信した順にレジスタに並べて32ビット幅(Nビット幅)のパラレルデータを生成する。シリアルパラレル変換回路12からは、32ビット幅のパラレルデータDATA2と、受信したシリアルデータからリカバリされたシリアルクロックを分周したパラレルクロックが出力される。   The serial-parallel conversion circuit 12 is configured by, for example, a 32-bit (N-bit) register, and arranges the data of each bit constituting serial data received continuously in the register in the order received in synchronization with the serial clock. Parallel data having a 32-bit width (N-bit width) is generated. The serial / parallel conversion circuit 12 outputs parallel data DATA2 having a 32-bit width and a parallel clock obtained by dividing the serial clock recovered from the received serial data.

なお、シリアルパラレル変換回路12は、シリアルデータを構成する各ビットのデータを、レジスタの最下位ビット側から最上位ビット側に向かって並べてパラレルデータを生成してもよいし、その逆向きに並べてパラレルデータを生成してもよい。   Note that the serial-parallel conversion circuit 12 may generate parallel data by arranging the data of each bit constituting the serial data from the least significant bit side to the most significant bit side of the register, or in the opposite direction. Parallel data may be generated.

続いて、受信パターン格納レジスタ14は、シリアルパラレル変換回路12から入力された32ビット幅のパラレルデータDATA2を、パラレルクロックに同期して32ビット(Nビット)単位でシフトして、常に、最新(最後)の所定周期分のパラレルデータを格納する。   Subsequently, the reception pattern storage register 14 shifts the 32-bit width parallel data DATA2 input from the serial-parallel conversion circuit 12 in units of 32 bits (N bits) in synchronization with the parallel clock, and always updates the latest ( The last parallel data for a predetermined period is stored.

受信パターン格納レジスタ14は、例えば、シリアルパラレル変換回路12が生成した32ビット幅のパラレルデータが格納される第1のレジスタ、および、第1のレジスタに格納されたパラレルデータが、順次、パラレルクロックに同期してシフトされて格納される1つもしくは複数の第2のレジスタとを備えるパイプライン構造のレジスタ群で構成される。   The reception pattern storage register 14 includes, for example, a first register that stores 32-bit width parallel data generated by the serial-parallel conversion circuit 12, and parallel data stored in the first register in parallel, And a register group having a pipeline structure including one or a plurality of second registers that are shifted and stored in synchronization with each other.

受信パターン格納レジスタ14は、シリアルパラレル変換回路12を構成するレジスタとは別に、第1のレジスタを備えていてもよいし、あるいは、シリアルパラレル変換回路12を構成するレジスタを第1のレジスタとして利用することもできる。   The reception pattern storage register 14 may include a first register separately from the register constituting the serial / parallel conversion circuit 12, or the register constituting the serial / parallel conversion circuit 12 may be used as the first register. You can also

図1に示す受信パターン格納レジスタ14は、シリアルパラレル変換回路12のレジスタを第1のレジスタとするものであり、シリアルパラレル変換回路12から入力された32ビット幅のパラレルデータDATA2を、パラレルクロックに同期して保持するとともに、パラレルデータDATA1として出力する1つの32ビットのFF(第2のレジスタ)20によって構成されている。つまり、シリアルパラレル変換回路12のレジスタに格納されたパラレルデータDATA2が、FF20に順次シフトされる。シリアルパラレル変換回路12からは受信したシリアルデータから生成した最新(最後)のパラレルデータDATA2が、FF20からは、1つ前のパラレルデータDATA1が出力される。   The reception pattern storage register 14 shown in FIG. 1 uses the register of the serial / parallel conversion circuit 12 as the first register, and converts the parallel data DATA2 having a 32-bit width input from the serial / parallel conversion circuit 12 into a parallel clock. It is configured by one 32-bit FF (second register) 20 that holds the data in synchronization and outputs it as parallel data DATA1. That is, the parallel data DATA2 stored in the register of the serial / parallel conversion circuit 12 is sequentially shifted to the FF20. The serial / parallel conversion circuit 12 outputs the latest (last) parallel data DATA2 generated from the received serial data, and the FF 20 outputs the previous parallel data DATA1.

ここで、受信パターン格納レジスタ14内への64ビット長の特定パターンの格納状態について説明する。   Here, the storage state of a specific pattern having a 64-bit length in the reception pattern storage register 14 will be described.

図3の上側には、受信パターン格納レジスタ14の第2のレジスタ20に格納された32ビット幅のパラレルデータDATA1と、受信パターン格納レジスタ14の第1のレジスタとして利用されるシリアルパラレル変換回路12のレジスタに格納された32ビット幅のパラレルデータDATA2とに、64ビット長(Mビット長)の特定パターンの前半の32ビットの部分が格納される32通りの状態を示す。それぞれのパラレルデータDATA1,DATA2の左端が最下位ビット、右端が最上位ビットである。従って、シリアルパラレル変換回路12が受信したシリアルデータのビットを最下位ビット側から最上位ビット側に向かって並べてパラレルデータを生成した場合、DATA1の左端からDATA2の右端に向けて、パラレルデータを構成するビットが、シリアルデータとして受信した順に並ぶ。   On the upper side of FIG. 3, the 32-bit width parallel data DATA1 stored in the second register 20 of the reception pattern storage register 14 and the serial-parallel conversion circuit 12 used as the first register of the reception pattern storage register 14 are shown. The 32-bit width parallel data DATA2 stored in the first register indicates the 32 states in which the 32-bit portion of the first half of the specific pattern of 64-bit length (M-bit length) is stored. The left end of each parallel data DATA1, DATA2 is the least significant bit, and the right end is the most significant bit. Therefore, when parallel data is generated by arranging the serial data bits received by the serial / parallel conversion circuit 12 from the least significant bit to the most significant bit, the parallel data is configured from the left end of DATA1 to the right end of DATA2. Are arranged in the order received as serial data.

シリアルデータの64ビット長の特定パターンの前半の32ビット(Lビット)の部分は、このDATA1,DATA2内の任意の位置に格納される可能性がある。しかし、パラレルデータが32ビット(Nビット)幅である場合、連続する32ビット(Nビット)の範囲のそれぞれのビットを先頭とする32種類(N種類)の格納位置を考慮すればよい。図3の上側は、64ビット長の特定パターンの前半の32ビットが格納される可能性のある、0番目、1番目、2番目、...30番目、31番目の全部で32通りの格納位置が、横長の長方形で示されている。図示された例では、DATA1の0ビット目から31ビット目までの連続する32ビットの範囲のそれぞれのビットを先頭とする32種類の格納位置が示されている。例えば、格納位置0では、特定パターンの32ビットの前半部分が、DATA1の0ビット目から31ビット目までに格納される。格納位置31では、DATA1の31ビット目からDATA2の30ビット目までに格納される。   There is a possibility that the first 32 bits (L bits) of the 64-bit specific pattern of serial data is stored in any position in DATA1 and DATA2. However, when the parallel data has a width of 32 bits (N bits), 32 types (N types) of storage positions starting from each bit in the range of consecutive 32 bits (N bits) may be considered. The upper side of FIG. 3 shows the 0th, 1st, 2nd,..., In which the first 32 bits of a 64-bit specific pattern may be stored. . . The thirty-second and thirty-first thirty-two storage positions are indicated by horizontally long rectangles. In the illustrated example, 32 types of storage positions starting from the respective bits in the range of 32 bits continuous from the 0th bit to the 31st bit of DATA1 are shown. For example, at storage position 0, the first half of the 32 bits of the specific pattern is stored from the 0th bit to the 31st bit of DATA1. In the storage location 31, data is stored from the 31st bit of DATA1 to the 30th bit of DATA2.

特定パターンの前半の32ビットの部分は、これらの32種類の格納位置に加えて、例えば、格納位置31の次の位置、すなわち、DATA2の0ビット目から31ビット目までに格納されることも考えられる。しかし、この位置に格納された前半部分の32ビットは、パラレルクロックの次のクロック周期内には、格納位置0にシフトして格納される。従って、32ビット長のパターンが32ビット幅の2つのレジスタ内に格納される位置としては、連続する32ビットの範囲のそれぞれのビットを先頭とする32種類の格納位置、例えば、図3に示される0から31までの32通りの格納位置を考えればよい。なお、ここでは、連続する32ビットの範囲の先頭側からKビット目(K=0〜N−1)を先頭とする32ビットの格納パターン#n(n=0〜31)を、#n=Kと定義している。   In addition to these 32 types of storage positions, the 32-bit portion of the first half of the specific pattern may be stored, for example, at the next position after the storage position 31, that is, from the 0th bit to the 31st bit of DATA2. Conceivable. However, the first 32 bits stored in this position are shifted to the storage position 0 and stored in the next clock cycle of the parallel clock. Therefore, as the positions at which 32-bit length patterns are stored in two registers having a 32-bit width, 32 types of storage positions starting from each bit in a continuous 32-bit range, for example, as shown in FIG. It is only necessary to consider 32 storage positions from 0 to 31. Here, a 32-bit storage pattern #n (n = 0 to 31) starting from the K-th bit (K = 0 to N−1) from the beginning of a continuous 32-bit range is represented by # n = K is defined.

続いて、パターン比較回路16は、前述の32通り(N通り)の、32ビット長(Lビット長)の格納パターンのそれぞれと、あらかじめ設定された64ビット長(Mビット長)の特定パターンの対応する32ビット長の部分(Lビット長の比較パターン)とを、各々対応するビット毎に比較し、その比較結果となる32個(N個)のパターン一致フラグ[31:0]を出力する。   Subsequently, the pattern comparison circuit 16 stores each of the 32 (N) 32-bit (L-bit length) storage patterns described above and a specific pattern having a preset 64-bit length (M-bit length). The corresponding 32-bit portion (L-bit comparison pattern) is compared for each corresponding bit, and 32 (N) pattern match flags [31: 0] are output as the comparison result. .

ここで、N>Lでは、つまり、一度に比較するビット幅がパラレルデータのビット幅よりも狭い場合には、1パラレルクロック周期内に2回の比較を行うことが必要になる場合がある。これを避けるために、N≦Lである必要があり、本実施形態では、前述のように、N≦L<Mとしている。   Here, if N> L, that is, if the bit width to be compared at one time is narrower than the bit width of the parallel data, it may be necessary to perform the comparison twice within one parallel clock cycle. In order to avoid this, it is necessary to satisfy N ≦ L. In this embodiment, as described above, N ≦ L <M.

図示例のパターン比較回路16は、32個(N個)の比較器(比較器0〜31)22と、比較パターン選択部となる32個(N個)のマルチプレクサ24とを備えている。それぞれの比較器0〜31には、受信パターン格納レジスタ14の対応する格納位置に格納された格納パターンのそれぞれのビットが入力されるとともに、この格納パターンと比較される比較パターンが、マルチプレクサ24から入力される。   The pattern comparison circuit 16 in the illustrated example includes 32 (N) comparators (comparators 0 to 31) 22 and 32 (N) multiplexers 24 serving as comparison pattern selection units. Each of the comparators 0 to 31 receives the respective bits of the storage pattern stored in the corresponding storage position of the reception pattern storage register 14, and the comparison pattern to be compared with this storage pattern is sent from the multiplexer 24. Entered.

マルチプレクサ24は、後述する比較パターン選択信号に応じて、64ビット長の特定パターンの中から、前半の32ビット長(Lビット長)もしくは後半の32ビット長(Jビット長)の比較パターンを出力する。   The multiplexer 24 outputs a comparison pattern of the first 32-bit length (L-bit length) or the second-half 32-bit length (J-bit length) from the specific pattern of 64-bit length in response to a comparison pattern selection signal described later. To do.

ここで、比較器0〜31に各々対応するマルチプレクサを、マルチプレクサ0〜31と表記すると、マルチプレクサ0〜31の入力端子0には、特定パターン[31:0]が、また、入力端子1には、特定パターン[63:32]が共通に入力され、選択端子には、比較パターン選択信号[0:31]のそれぞれのビットが入力される。そして、各々のマルチプレクサからは、比較パターン選択信号が“0”の場合に前半の比較パターンとなる特定パターン[31:0]が出力され、比較パターン選択信号が“1”の場合に後半の比較パターンとなる特定パターン[63:32]が出力される。   Here, when the multiplexers corresponding to the comparators 0 to 31 are expressed as multiplexers 0 to 31, a specific pattern [31: 0] is input to the input terminal 0 of the multiplexers 0 to 31, and the input terminal 1 is connected to the input terminal 1. The specific pattern [63:32] is commonly input, and each bit of the comparison pattern selection signal [0:31] is input to the selection terminal. Each multiplexer outputs a specific pattern [31: 0] that is the first half comparison pattern when the comparison pattern selection signal is “0”, and the second half comparison when the comparison pattern selection signal is “1”. A specific pattern [63:32] as a pattern is output.

それぞれの比較器22は、図2に示すように、32個のEXOR回路26と、1つのNOR回路28とによって構成されている。   As shown in FIG. 2, each comparator 22 includes 32 EXOR circuits 26 and one NOR circuit 28.

受信パターン格納レジスタ14から入力された格納パターン[31:0]と、マルチプレクサ24から入力された比較パターン[31:0]とは、EXOR回路26によって、各々対応するビット毎に比較される。EXOR回路26の出力信号である比較結果は、各々対応するビットが一致する場合に“0”、不一致の場合に“1”となる。そして、全ての比較結果[31:0]が“0”の場合、つまり、格納パターンと比較パターンとが一致する場合に、NOR回路28の出力信号であるパターン一致フラグが“1”となる。そして、32個の比較器0〜31が生成するパターン一致フラグがまとめられて、比較器22のパターン一致フラグ[31:0]として出力される。   The storage pattern [31: 0] input from the reception pattern storage register 14 and the comparison pattern [31: 0] input from the multiplexer 24 are compared by the EXOR circuit 26 for each corresponding bit. The comparison result, which is an output signal of the EXOR circuit 26, is “0” when the corresponding bits match each other and “1” when they do not match. When all the comparison results [31: 0] are “0”, that is, when the storage pattern matches the comparison pattern, the pattern match flag that is the output signal of the NOR circuit 28 becomes “1”. Then, the pattern match flags generated by the 32 comparators 0 to 31 are collected and output as the pattern match flag [31: 0] of the comparator 22.

この図に示すように、比較器22は、32ビットのデータ同士の比較ができればよいので、EXOR回路26の個数が32個であり、図26に示す従来の比較器92Aよりも削減することができる。また、本実施形態では一度に比較するデータのビット数を32ビットとしているが、一度に比較するデータのビット数を減らすことにより、例えば、16ビット、8ビットとすることにより、EXOR回路26の個数をさらに削減することも可能である。   As shown in this figure, the comparator 22 only needs to be able to compare 32-bit data, so the number of EXOR circuits 26 is 32, which can be reduced compared to the conventional comparator 92A shown in FIG. it can. In this embodiment, the number of bits of data to be compared at a time is 32 bits. However, by reducing the number of bits of data to be compared at a time, for example, 16 bits or 8 bits, the EXOR circuit 26 It is also possible to further reduce the number.

続いて、パターン検出回路18は、パターン比較回路16が、パラレルクロックの第1の周期内に、受信パターン格納レジスタ14に格納されたパラレルデータを構成するビットの、連続する32ビット(Nビット)の範囲の先頭からKビット目(K=0〜N−1)を先頭とする32ビット(Lビット)の格納パターンと、64ビット長(Mビット長)の特定パターンの先頭から32ビット(Lビット)の比較パターンとの一致を検出し、さらに、L/Nの商をq、余りをr(図3の例では、q=1,r=0)として、K、N、q、rによって決まるパラレルクロックの特定の周期内に、受信パターン格納レジスタ14に格納されたパラレルデータを構成するビットの、連続する32ビット(Nビット)の範囲およびK、N、rによって決まる特定のビットを先頭とする32ビット(Jビット)の格納パターンと、64ビット長の特定パターンの33ビット目(L+1ビット目)から32ビット(Jビット)の比較パターンとの一致を検出したことを条件として、64ビット長の特定パターンを含むシリアルデータの受信を検出する。   Subsequently, the pattern detection circuit 18 includes 32 consecutive bits (N bits) of the bits constituting the parallel data stored in the reception pattern storage register 14 within the first period of the parallel clock by the pattern comparison circuit 16. Storage pattern of 32 bits (L bits) starting from the Kth bit (K = 0 to N-1) from the beginning of the range and 32 bits (L from the beginning of a specific pattern of 64 bits (M bits)) Bit) and a comparison pattern is detected, and the quotient of L / N is q and the remainder is r (q = 1, r = 0 in the example of FIG. 3), and K, N, q, r Within a specific period of the determined parallel clock, it is determined by the range of consecutive 32 bits (N bits) and K, N, and r constituting the parallel data stored in the reception pattern storage register 14. Detecting a match between a 32-bit (J-bit) storage pattern starting from a specific bit and a comparison pattern from the 33rd bit (L + 1 bit) to the 32-bit (J bit) of the 64-bit specific pattern As a condition, reception of serial data including a specific pattern having a 64-bit length is detected.

図示例のパターン検出回路18は、AND回路30と、FF32と、AND回路34とを備えている。図示を省略しているが、AND回路30、FF32およびAND回路34は、32個のパターン一致フラグ[31:0]に対応する32セットの回路が設けられている。   The pattern detection circuit 18 in the illustrated example includes an AND circuit 30, an FF 32, and an AND circuit 34. Although not shown, the AND circuit 30, the FF 32, and the AND circuit 34 are provided with 32 sets of circuits corresponding to 32 pattern matching flags [31: 0].

対応する比較器0〜31において、格納パターンと比較パターンとの一致が検出されていないとき、つまり、パターン一致フラグが“0”のとき、AND回路30の出力信号は“0”となる。AND回路30の出力信号は、パラレルクロックに同期してFF32に保持されるため、FF32の出力信号である比較パターン選択信号は次の周期で“0”となる。従って、AND回路34の出力信号である検出信号も“0”となる。   In the corresponding comparators 0 to 31, when the coincidence between the storage pattern and the comparison pattern is not detected, that is, when the pattern coincidence flag is “0”, the output signal of the AND circuit 30 becomes “0”. Since the output signal of the AND circuit 30 is held in the FF 32 in synchronization with the parallel clock, the comparison pattern selection signal that is the output signal of the FF 32 becomes “0” in the next cycle. Therefore, the detection signal which is the output signal of the AND circuit 34 is also “0”.

対応する比較器0〜31において一致が検出され、パターン一致フラグが“1”になると、AND回路30の出力信号は“1”となり、パラレルクロックに同期して、比較パターン選択信号は次の周期で“1”となる。FF32の出力信号が“1”になると、AND回路30の出力信号は“0”となるため、パラレルクロックに同期して、比較パターン選択信号はそのまた次の周期で“0”に戻る。   When a match is detected in the corresponding comparators 0 to 31 and the pattern match flag becomes “1”, the output signal of the AND circuit 30 becomes “1”, and the comparison pattern selection signal is synchronized with the parallel clock in the next cycle. Becomes “1”. When the output signal of the FF 32 becomes “1”, the output signal of the AND circuit 30 becomes “0”, so that the comparison pattern selection signal returns to “0” in the next cycle in synchronization with the parallel clock.

すなわち、比較パターン選択信号は、パターン一致フラグが“1”になる、つまり、格納パターンと前半の比較パターンとの一致が検出されると、次の周期で“1”となり、2周期後の周期で“0”に戻るワンショット信号となる。また、検出信号は、パターン一致フラグが連続する2周期で“1”になる、つまり、格納パターンと前半および後半の比較パターンとの一致が連続して検出されると“1”となり、その次の周期で“0”に戻るワンショット信号となる。   That is, the comparison pattern selection signal becomes “1” in the next cycle when the pattern match flag becomes “1”, that is, when a match between the stored pattern and the first half comparison pattern is detected. The one-shot signal returns to “0”. Further, the detection signal becomes “1” in two consecutive periods of the pattern matching flag, that is, “1” when the coincidence between the storage pattern and the comparison pattern in the first half and the second half is detected in succession. It becomes a one-shot signal that returns to “0” in the period of

上記のように、比較パターン選択信号は、パターン一致フラグが“1”になる、つまり、格納パターンと比較パターンとの一致が検出されると“1”になる。そのため、格納パターンと前半の比較パターンとの一致が検出されると、後半の比較パターンが、その次の周期で前述のマルチプレクサ24から出力され、比較器22により、格納パターンと後半の比較パターンとの比較が行われる。   As described above, the comparison pattern selection signal becomes “1” when the pattern matching flag becomes “1”, that is, when a match between the storage pattern and the comparison pattern is detected. Therefore, when a match between the storage pattern and the first half comparison pattern is detected, the second half comparison pattern is output from the above-described multiplexer 24 in the next cycle, and the comparator 22 compares the storage pattern with the second half comparison pattern. A comparison is made.

また、格納パターンと後半の比較パターンとの比較が行われると、両者の一致が検出されたかどうかに関係なく、次の周期では格納パターンと前半の比較パターンとの比較が行われる。これにより、格納パターンと後半の比較パターンとの比較によって一致が検出されなかったときに、すぐ次の周期から格納パターンと前半の比較パターンとの比較を再開することができる。   When the comparison between the storage pattern and the latter half comparison pattern is performed, the comparison between the storage pattern and the first half comparison pattern is performed in the next cycle regardless of whether or not a match between them is detected. As a result, when no match is detected by comparing the storage pattern with the latter half comparison pattern, the comparison between the storage pattern and the first half comparison pattern can be resumed from the next cycle.

次に、受信装置10の動作について説明する。   Next, the operation of the receiving device 10 will be described.

受信装置10では、受信したシリアルデータの各ビットのデータが、シリアルパラレル変換回路12により、シリアルクロックに同期して、受信した順にレジスタに並べられて32ビット幅(Nビット幅)のパラレルデータDATA2が生成される。   In the receiving device 10, each bit data of the received serial data is arranged in a register in the order of reception in synchronization with the serial clock by the serial / parallel conversion circuit 12, and parallel data DATA 2 having a 32-bit width (N-bit width). Is generated.

32ビット幅のパラレルデータDATA2は、受信パターン格納レジスタ14に、パラレルクロックに同期して、32ビット単位(Nビット単位)でシフトされ、32ビット幅(Nビット幅)のパラレルデータDATA1として格納される。これにより、受信パターン格納レジスタ14には、図3に示すように、パラレルクロックに同期して、常に、パラレルデータDATA1,DATA2からなる最新の2周期分のデータが格納される。   The parallel data DATA2 having a 32-bit width is shifted to the reception pattern storage register 14 in units of 32 bits (N bits) in synchronization with the parallel clock, and stored as parallel data DATA1 having a 32-bit width (N bits). The Thereby, as shown in FIG. 3, the latest two cycles of data consisting of parallel data DATA1 and DATA2 are always stored in the reception pattern storage register 14 in synchronization with the parallel clock.

パターン比較回路16の比較器22のそれぞれ(比較器0〜31)には、受信パターン格納レジスタ14から、対応する格納パターンが入力される。すなわち、DATA1、DATA2の対応する範囲のビットが入力される。比較器22のそれぞれには、さらに、対応するマルチプレクサ24から比較パターンが入力される。受信装置10にシリアルデータが受信されない状態では、いずれの比較器22も一致を検出せず、“0”の一致フラグを出力する。このため、全ての比較パターン選択信号が“0”になり、全てのマルチプレクサ24から、64ビット長(Mビット長)の特定パターンのうちの前半の32ビット長(Lビット長)の比較データが入力される。そして、比較器22により、32通りの格納パターンのそれぞれと、前半の比較パターンとが、各々対応するビット毎に比較される。その結果、シリアルデータが受信されると、前半の比較パターンとの一致が検出された格納パターンに対応するパターン一致フラグが“1”となる。   A corresponding storage pattern is input from the reception pattern storage register 14 to each of the comparators 22 (comparators 0 to 31) of the pattern comparison circuit 16. That is, the bits in the range corresponding to DATA1 and DATA2 are input. A comparison pattern is further input to each comparator 22 from the corresponding multiplexer 24. When no serial data is received by the receiving device 10, none of the comparators 22 detects a match and outputs a match flag of “0”. For this reason, all the comparison pattern selection signals are set to “0”, and the comparison data of the first 32 bits length (L bit length) of the specific pattern of 64 bits length (M bit length) is sent from all the multiplexers 24. Entered. Then, the comparator 22 compares each of the 32 storage patterns with the first half comparison pattern for each corresponding bit. As a result, when serial data is received, the pattern match flag corresponding to the storage pattern in which a match with the comparison pattern in the first half is detected becomes “1”.

ここで、図3の上側に示すように、例えば、32通りの格納パターンのうちの、パラレルデータDATA1の先頭から2ビット目(Kビット目)を先頭とする格納パターン2と、前半の比較パターンとの一致が、ある周期で検出されたとする。このとき、前半の比較パターンとの一致が検出された64ビットの特定パターンの前半の32ビットの部分に続く、後半の32ビットの部分は、格納パターン2の格納位置であるDATA1の2ビット目からDATA2の1ビット目までに続く、DATA2の2ビット目からの格納位置に格納されていると期待される。ただし、この周期では、まだ、後半部分の32ビットの最後の2ビットはDATA2内に格納されていない。   Here, as shown in the upper side of FIG. 3, for example, of the 32 storage patterns, the storage pattern 2 starting from the second bit (K bit) from the top of the parallel data DATA1, and the first comparison pattern Is detected in a certain cycle. At this time, the 32-bit portion of the latter half following the 32-bit portion of the first half of the 64-bit specific pattern in which a match with the comparison pattern of the first half is detected is the second bit of DATA1, which is the storage position of the storage pattern 2. To the first bit of DATA2, and is expected to be stored in the storage position from the second bit of DATA2. However, in this cycle, the last 2 bits of the 32 bits in the latter half are not stored in DATA2.

図3の下側には、このように格納パターン2と前半の比較パターンとの一致が検出された周期の、次の周期内に行われる、格納パターンと比較パターンとの比較を示す。図3の上側において前半の比較パターンとの一致が検出された、格納パターン2の32ビットの部分に続く後半の32ビットの部分は、次の周期内には、格納位置2にシフトされて格納されていると期待される。そこで、次の周期内にこの後半部分を検出するため、パターン検出回路18では、格納パターン2に対応するパターン一致フラグ[2]が“1”になると、格納パターン2に対応する比較パターン選択信号[2]だけが次の周期で“1”となる。   The lower side of FIG. 3 shows a comparison between the storage pattern and the comparison pattern performed within the next period of the period in which the coincidence between the storage pattern 2 and the first half comparison pattern is detected in this way. In the upper part of FIG. 3, the latter 32-bit portion following the 32-bit portion of storage pattern 2 in which a match with the first-half comparison pattern is detected is shifted to storage location 2 and stored within the next cycle. Expected to be. Therefore, in order to detect the latter half in the next cycle, the pattern detection circuit 18 detects the comparison pattern selection signal corresponding to the storage pattern 2 when the pattern matching flag [2] corresponding to the storage pattern 2 becomes “1”. Only [2] becomes “1” in the next cycle.

比較パターン選択信号[2]が“1”になると、パターン比較回路16では、格納パターン2に対応するマルチプレクサ2から、後半の32ビット長(Jビット長)の比較データが出力される。これによって、パターン比較回路16の、格納パターン2に対応する比較器2が、特定パターンの後半の32ビットの部分が格納されていると期待される格納パターン2と、後半の32ビットの比較データとを比較する。一致が検出されると、対応するパターン一致フラグ[2]が“1”になる。   When the comparison pattern selection signal [2] becomes “1”, the pattern comparison circuit 16 outputs the comparison data of the latter half 32 bits (J bits) from the multiplexer 2 corresponding to the storage pattern 2. Thereby, the comparator 2 corresponding to the storage pattern 2 of the pattern comparison circuit 16 is expected to store the latter 32 bits of the specific pattern and the latter 32 bits of comparison data. And compare. When a match is detected, the corresponding pattern match flag [2] becomes “1”.

パターン検出回路18では、後半の比較パターンとの一致が検出された格納パターン2に対応するパターン一致フラグ[2]が“1”になると、つまり、ある周期で前半の比較パターンとの一致が検出され、続いて、その次の周期で後半の比較パターンとの一致が検出されると、格納パターン2に対応する検出信号[2]だけが次の周期で“1”となり、格納パターン2の位置で特定パターンを含むシリアルデータが受信されたことが検出される。   In the pattern detection circuit 18, when the pattern match flag [2] corresponding to the storage pattern 2 in which a match with the latter comparison pattern is detected becomes “1”, that is, a match with the first comparison pattern is detected in a certain cycle. Then, when a match with the latter half comparison pattern is detected in the next cycle, only the detection signal [2] corresponding to the storage pattern 2 becomes “1” in the next cycle, and the position of the storage pattern 2 It is detected that serial data including a specific pattern has been received.

一方、比較器2が後半部分との一致を検出しなかった場合には、パターン一致フラグ[2]は“1”にならず、検出信号も“1”にならない。すなわち、前の周期での前半部分との一致の検出は雑音等による誤検出であると考えられるため、シリアルデータを受信したとは判断しない。なお、比較器2が後半の比較パターンとの比較を行う周期内において、比較器2を除く比較器0〜1、3〜31には、前半の比較パターンが入力され、それぞれの格納パターンとの比較が行われる。このため、いずれかの格納パターンと前半部分との一致が検出された場合、次の周期内には、後半部分との比較が行われる。これにより、格納パターン2について前半部分の誤検出が発生した直後にシリアルデータを受信した場合にも、2以外の格納パターンで特定パターンの前半部分を格納できた場合には、検出可能である。   On the other hand, when the comparator 2 does not detect a match with the latter half, the pattern match flag [2] is not “1”, and the detection signal is not “1”. That is, detection of coincidence with the first half part in the previous cycle is considered to be erroneous detection due to noise or the like, so it is not determined that serial data has been received. In the period in which the comparator 2 performs comparison with the latter comparison pattern, the first half comparison pattern is input to the comparators 0 to 1 and 3 to 31 except the comparator 2, and the comparison patterns with the respective storage patterns. A comparison is made. Therefore, when a match between any storage pattern and the first half is detected, the comparison with the second half is performed within the next cycle. Thus, even when serial data is received immediately after the first half of the storage pattern 2 is erroneously detected, it can be detected if the first half of the specific pattern can be stored with a storage pattern other than 2.

2以外の格納パターンと前半の比較パターンとの一致が検出された場合にも、同様に、次の周期で、特定パターンの後半部分の検出を行い、シリアルデータの受信を検出することができる。   Similarly, when a match between a storage pattern other than 2 and the comparison pattern in the first half is detected, the second half of the specific pattern can be detected in the next cycle to detect the reception of serial data.

図3に示すように、特定パターンをそれぞれ32ビット、すなわち、パラレルデータ幅と等しい部分に分けて検出する場合、パラレルクロックの第1の周期内に、ある格納パターンと前半の比較パターンとの一致が検出されたときに、その次に、後半の比較パターンとの一致を検出する必要がある特定パターンの後半部分は、パラレルクロックの次の周期内に、前半の比較パターンとの一致が検出された格納パターンと同一の格納位置に格納される。   As shown in FIG. 3, when a specific pattern is detected in 32 bits, that is, divided into portions equal to the parallel data width, the storage pattern matches the comparison pattern in the first half within the first period of the parallel clock. Next, the second half of the specific pattern that needs to be matched with the latter comparison pattern is detected with the first comparison pattern within the next period of the parallel clock. Stored in the same storage location as the storage pattern.

なお、ある格納パターンと前半の比較パターンとの一致が検出されたときに、その次に、後半の比較パターンとの一致を検出する必要がある格納パターン、および、前半の比較パターンとの一致が検出されてから、その次に、後半の比較パターンとの一致を検出する必要があるパラレルクロック周期までの周期数は、連続するNビットの範囲、K、N、q、rに応じて変化する。   When a match between a storage pattern and the first half comparison pattern is detected, a match between the second half comparison pattern and the first half comparison pattern needs to be detected next. The number of periods from the detection to the next parallel clock period where it is necessary to detect the coincidence with the comparison pattern in the latter half changes according to the range of consecutive N bits, K, N, q, r. .

すなわち、前半の比較パターンと一致する格納パターンが検出されたときに、その次に、後半の比較パターンとの一致を検出する必要がある格納パターンの格納状態には規則性があり、連続するNビットの範囲、K、N、rによって1通りに決定される。また、特定パターンと一致する格納パターンが検出されてから、その次に、特定パターンとの一致を検出する必要がある格納パターンが受信パターン格納レジスタ14内に格納されるまでの周期数にも規則性があり、K、N、q、rによって一意に決定される。   That is, when a storage pattern that matches the comparison pattern in the first half is detected, the storage state of the storage pattern that needs to be detected as a match with the comparison pattern in the second half is regular, and there are consecutive N It is determined in one way by the bit range, K, N, r. Further, the number of cycles from when a storage pattern that matches a specific pattern is detected until the next storage pattern that needs to be detected to match the specific pattern is stored in the reception pattern storage register 14 is also regulated. And is uniquely determined by K, N, q, and r.

以下、図4のタイミング図を参照して、具体的に説明する。   This will be specifically described below with reference to the timing chart of FIG.

同図に示すタイミング図では、まず、比較器2により、3周期目で格納パターン2と前半の比較パターンとの一致が検出され、パターン一致フラグ[2]が“1”になっている。そのため、続く4周期目で比較パターン選択信号[2]が“1”になる。また、同じ4周期目で次の格納パターンと後半の比較パターンとの一致が連続して検出され、パターン一致フラグ2が2周期連続で“1”を維持している。そのため、同じ4周期目で検出信号[2]が“1”になる。これにより、特定パターンを含むシリアルデータが受信されたことが検出される。   In the timing chart shown in the figure, first, the comparator 2 detects the coincidence between the storage pattern 2 and the first half comparison pattern in the third period, and the pattern coincidence flag [2] is “1”. Therefore, the comparison pattern selection signal [2] becomes “1” in the subsequent fourth period. In addition, the coincidence between the next storage pattern and the latter comparison pattern is continuously detected in the same fourth period, and the pattern coincidence flag 2 maintains “1” for two consecutive periods. Therefore, the detection signal [2] becomes “1” in the same fourth period. Thereby, it is detected that serial data including the specific pattern is received.

次に、比較器29により、10周期目で格納パターン29と前半の比較パターンとの一致が検出され、パターン一致フラグ[29]が“1”になっているため、続く11周期目で比較パターン選択信号[29]は“1”になる。しかし、同じ11周期目で次の格納パターンと後半の比較パターンとの一致が検出されていないため、パターン一致フラグ[29]は2周期連続で“1”に維持されていない。従って、同じ11周期目で格納パターン[29]に対応する比較結果[29]は“0”に戻っている。   Next, the comparator 29 detects a match between the storage pattern 29 and the first half comparison pattern in the tenth cycle, and the pattern match flag [29] is “1”. The selection signal [29] becomes “1”. However, since the coincidence between the next storage pattern and the latter comparison pattern is not detected in the same 11th cycle, the pattern match flag [29] is not maintained at “1” for 2 consecutive cycles. Accordingly, the comparison result [29] corresponding to the storage pattern [29] returns to “0” in the same eleventh cycle.

次に、比較器0により、12周期目で格納パターン0と前半の比較パターンとの一致が検出されているが、続く13周期目では次の格納パターンと後半の比較パターンとの一致が検出されていない。そのため、13周期目では比較パターン選択信号[0]が“1”になっているが、同じ13周期目で検出結果[0]は“0”のままである。   Next, the comparator 0 detects the coincidence between the storage pattern 0 and the first half comparison pattern in the 12th cycle, but the next 13th cycle detects the coincidence between the next storage pattern and the second half comparison pattern. Not. Therefore, the comparison pattern selection signal [0] is “1” in the thirteenth period, but the detection result [0] remains “0” in the same thirteenth period.

最後に、比較器31により、13周期目で格納パターン31と前半の比較パターンとの一致が検出され、続く14周期目で次の格納パターン31と後半の比較パターンとの一致が連続して検出されている。そのため、検出結果[31]は“1”になっている。   Finally, the comparator 31 detects a match between the storage pattern 31 and the first half comparison pattern in the thirteenth cycle, and continuously detects a match between the next storage pattern 31 and the second half comparison pattern in the fourteenth cycle. Has been. Therefore, the detection result [31] is “1”.

このように、同じ周期でも、全ての比較器0〜31が、32通りの格納パターンのそれぞれと、前半の比較パターンもしくは後半の比較パターンとを比較しているわけではなく、1周期前の比較結果に応じて、それぞれの比較器が、32通りの格納パターンのそれぞれと、前半の比較パターンもしくは後半の比較パターンとを比較している。   As described above, even in the same cycle, all the comparators 0 to 31 do not compare each of the 32 stored patterns with the first half comparison pattern or the second half comparison pattern. Depending on the result, each comparator compares each of the 32 stored patterns with the first half comparison pattern or the second half comparison pattern.

以下、本発明の受信装置が、特定パターンのビット長M、および、パラレルデータのビット幅Nの値に関係なく適用可能であることを説明する。   Hereinafter, it will be described that the receiving apparatus of the present invention is applicable regardless of the value of the bit length M of the specific pattern and the bit width N of the parallel data.

まず、特定パターンのビット長Mが、パラレルデータのビット幅Nの整数倍でない場合、例えば、M=66,N=32の場合を説明する。   First, a case where the bit length M of the specific pattern is not an integral multiple of the bit width N of the parallel data, for example, a case where M = 66 and N = 32 will be described.

図29は、従来の受信装置の構成を表す一例の回路図である。同図に示す受信装置110は、図25に示す従来の受信装置90と比較して、受信パターン格納レジスタ84Cが、直列に接続された3段の32ビットのFF86Cで構成されている点を除いて、同様の構成を備えるものである。   FIG. 29 is a circuit diagram illustrating an example of a configuration of a conventional receiving apparatus. The receiving apparatus 110 shown in the figure is different from the conventional receiving apparatus 90 shown in FIG. 25 except that the reception pattern storage register 84C is configured by three stages of 32-bit FFs 86C connected in series. The same configuration is provided.

受信装置110の受信パターン格納レジスタ84Cは、シリアルパラレル変換回路82のレジスタを第1のレジスタとして利用して、常に、最新の4周期分のパラレルデータDATA1〜4を格納する。受信パターン格納レジスタ84Cには、図30に示すように、パラレルデータDATA1の最下位ビットから、シリアルデータとして受信した順に連続する32ビットの範囲のそれぞれのビットを先頭とする、32通りの、66ビットの格納位置に、特定パターンが格納される可能性がある。   The reception pattern storage register 84 </ b> C of the reception device 110 always stores the latest four cycles of parallel data DATA <b> 1 to 4 using the register of the serial / parallel conversion circuit 82 as the first register. In the reception pattern storage register 84C, as shown in FIG. 30, there are 32 types of 66 bits starting from the least significant bit of the parallel data DATA1 in the range of 32 bits consecutive in the order received as serial data. There is a possibility that a specific pattern is stored in the bit storage position.

この受信装置110では、32個の比較器(比較器0〜31)92Aにより、4周期分のパラレルデータDATA1〜4内の、32通りの格納位置に格納された66ビット長の格納パターンのそれぞれと、66ビット長の特定パターンとが一度に比較される。   In this receiving apparatus 110, 32 comparators (comparators 0 to 31) 92A each of 66-bit length storage patterns stored in 32 storage positions in the parallel data DATA1 to 4 for four cycles. And a 66-bit specific pattern are compared at a time.

続いて、図5は、本発明の受信装置の構成を表す第2の実施形態の回路図である。同図に示す受信装置40は、同様に、シリアルパラレル変換回路12と、受信パターン格納レジスタ14Aと、パターン比較回路16Aと、パターン検出回路18Aとを備えている。   Next, FIG. 5 is a circuit diagram of the second embodiment showing the configuration of the receiving apparatus of the present invention. Similarly, the receiving apparatus 40 shown in FIG. 1 includes a serial / parallel conversion circuit 12, a reception pattern storage register 14A, a pattern comparison circuit 16A, and a pattern detection circuit 18A.

シリアルパラレル変換回路12は、図1に示す受信装置10と同じものである。   The serial-parallel conversion circuit 12 is the same as the receiving device 10 shown in FIG.

受信パターン格納レジスタ14Aは、シリアルパラレル変換回路12のレジスタを第1のレジスタとして利用し、第2のレジスタとして、直列に接続された2段の32ビット(Nビット)のFF20A1,20A2を有している。受信パターン格納レジスタ14は、常に、最新の3周期分のパラレルデータDATA1〜3を格納する。受信パターン格納レジスタ14Aからは、図7に示すように、パラレルデータDATA1の最下位ビット(DATA[0])から、シリアルデータとして受信した順に連続する32ビット(Nビット)の範囲のそれぞれのビットを先頭とする、32通り(N通り)の格納位置0〜31に格納された、33ビット(Lビット)の格納パターン0〜31が出力される。これに加えて、受信パターン格納レジスタ14Aからは、連続する32ビットの範囲に続く32ビット目を先頭とする格納位置32に格納された、33ビットの格納パターン32も出力される。   The reception pattern storage register 14A uses the register of the serial-parallel conversion circuit 12 as a first register, and has two stages of 32-bit (N-bit) FFs 20A1 and 20A2 connected in series as the second register. ing. The reception pattern storage register 14 always stores the latest three periods of parallel data DATA1 to DATA3. As shown in FIG. 7, each bit in the range from the least significant bit (DATA [0]) of the parallel data DATA1 to 32 bits (N bits) consecutive in the order received as serial data is received from the reception pattern storage register 14A. 33-bit (L-bit) storage patterns 0-31 stored in 32 (N-way) storage positions 0-31 starting from the top are output. In addition, the reception pattern storage register 14A also outputs a 33-bit storage pattern 32 stored in the storage position 32 starting from the 32nd bit following the continuous 32-bit range.

パターン比較回路16Aは、33個(N+1個)の比較器(比較器0〜32)22と、31個(N−1個)のマルチプレクサ24とを備えている。   The pattern comparison circuit 16 </ b> A includes 33 (N + 1) comparators (comparators 0 to 32) 22 and 31 (N−1) multiplexers 24.

比較器22のそれぞれの比較器0〜32の構成は、EXOR回路の個数が33個であることを除いて、図2に示すものと同じである。   The configurations of the comparators 0 to 32 of the comparator 22 are the same as those shown in FIG. 2 except that the number of EXOR circuits is 33.

ここで、比較器1〜31に各々対応するマルチプレクサを、マルチプレクサ1〜31と表記すると、マルチプレクサ1〜31は、それぞれ、比較パターン選択信号[1:31]の対応するビットに応じて、66ビット長の特定パターン[65:0]の中から、前半の33ビット長(Lビット長)の比較パターン、もしくは、後半の33ビット長(Jビット長)の比較パターンを出力する。   Here, when the multiplexers corresponding to the comparators 1 to 31 are expressed as multiplexers 1 to 31, the multiplexers 1 to 31 each have 66 bits according to the corresponding bits of the comparison pattern selection signal [1:31]. From the long specific pattern [65: 0], the first half 33-bit length (L-bit length) comparison pattern or the second half 33-bit length (J-bit length) comparison pattern is output.

マルチプレクサ1〜31の入力端子0には、特定パターン[32:0]が、入力端子1には、特定パターン[65:33]が全てのマルチプレクサ1〜31に共通に入力され、選択端子には、比較パターン選択信号[1:31]のそれぞれのビットが、対応するマルチプレクサ1〜31に入力されている。そして、マルチプレクサ1〜31のそれぞれからは、比較パターン選択信号が“0”の場合に、前半の比較パターン[32:0]となる特定パターン[32:0]が出力され、比較パターン選択信号が“1”の場合に、後半の比較パターン[32:0]となる特定パターン[65:33]が出力される。   The specific pattern [32: 0] is input to the input terminals 0 of the multiplexers 1 to 31 and the specific pattern [65:33] is input to the input terminals 1 in common to all the multiplexers 1 to 31 and the selection terminals are connected to the selection terminals. The respective bits of the comparison pattern selection signal [1:31] are input to the corresponding multiplexers 1 to 31. Each of the multiplexers 1 to 31 outputs a specific pattern [32: 0] that is the first comparison pattern [32: 0] when the comparison pattern selection signal is “0”. In the case of “1”, the specific pattern [65:33] that is the latter comparison pattern [32: 0] is output.

なお、比較器0には、常に、前半の比較パターン[32:0]となる特定パターン[32:0]が入力され、比較器32には、常に、後半の比較パターン[32:0]となる特定パターン[65:33]が入力される。   The comparator 0 always receives the specific pattern [32: 0] as the first half comparison pattern [32: 0], and the comparator 32 always receives the second half comparison pattern [32: 0]. The specific pattern [65:33] is input.

パターン検出回路18Aは、図6に示すように、図1に示すものと同様に、比較器0〜31に対応する32セットの、AND回路30と、FF32と、AND回路34とを備えている。なお、比較器32に対応する回路は設けられていない(不要である)。検出信号[n]を出力するAND回路34には、比較パターン選択信号[n+1]と、パターン一致フラグ[n+1]が入力されている。   As shown in FIG. 6, the pattern detection circuit 18 </ b> A includes 32 sets of AND circuits 30, FFs 32, and AND circuits 34 corresponding to the comparators 0 to 31 as shown in FIG. 1. . Note that a circuit corresponding to the comparator 32 is not provided (unnecessary). The AND circuit 34 that outputs the detection signal [n] receives the comparison pattern selection signal [n + 1] and the pattern match flag [n + 1].

なお、比較器0では、常に、格納パターン0と前半の比較パターンとの比較が行われ、比較器32では、常に、格納パターン32と後半の比較パターンとの比較が行われる。そのため、マルチプレクサ24の選択信号として、比較パターン選択信号[0]および[32]は不要である。ただし、比較パターン選択信号[0]は生成されていないが、比較パターン選択信号[32]は生成されており、パターン検出回路18Aの内部で使用されている。   The comparator 0 always compares the storage pattern 0 with the first half comparison pattern, and the comparator 32 always compares the storage pattern 32 with the second half comparison pattern. Therefore, the comparison pattern selection signals [0] and [32] are not necessary as selection signals for the multiplexer 24. However, the comparison pattern selection signal [0] is not generated, but the comparison pattern selection signal [32] is generated and is used inside the pattern detection circuit 18A.

検出信号[n]は、比較パターン選択信号[n+1]が“1”、つまり、1周期前の格納パターンと前半の比較パターンとの比較結果が一致であり、かつ、パターン一致フラグ[n+1]が“1”、つまり、現在の周期の格納パターンと後半の比較パターンとの比較結果が一致である場合、すなわち、連続する2周期で一致、つまり、特定パターン全体が検出された場合に“1”となる。   In the detection signal [n], the comparison pattern selection signal [n + 1] is “1”, that is, the comparison result between the storage pattern one cycle before and the first half comparison pattern is coincident, and the pattern coincidence flag [n + 1] is set. “1”, that is, when the comparison result between the storage pattern of the current period and the comparison pattern of the second half is coincident, that is, coincidence in two consecutive periods, that is, “1” when the entire specific pattern is detected It becomes.

次に、受信装置40の動作について説明する。   Next, the operation of the receiving device 40 will be described.

受信パターン格納レジスタ14に、最新の3周期分のパラレルデータDATA1〜3が格納されるまでの動作は同様である。   The operation until the latest three cycles of parallel data DATA1 to DATA3 are stored in the reception pattern storage register 14 is the same.

パターン比較回路16Aでは、まず、全ての比較パターン選択信号が“0”になり、全てのマルチプレクサ24から、前半の比較データが出力される。そして、比較器22により、格納パターン0〜31のそれぞれと前半の比較パターンとが、各々対応するビット毎に比較される。その結果、シリアルデータが受信されると、一致が検出された格納パターン#nに対応するパターン一致フラグ[n]が“1”となる。   In the pattern comparison circuit 16A, all comparison pattern selection signals are first set to “0”, and the first half comparison data is output from all the multiplexers 24. Then, the comparator 22 compares each of the storage patterns 0 to 31 with the first half comparison pattern for each corresponding bit. As a result, when the serial data is received, the pattern match flag [n] corresponding to the storage pattern #n where the match is detected becomes “1”.

ここで、図7の上側に示すように、ある周期で、パラレルデータDATA1の先頭から2ビット目(Kビット目)を先頭とする格納位置に格納された格納パターン2と前半の比較パターンとの一致が検出され、パターン一致フラグ[2]が“1”になったとする。格納位置2はDATA1の2ビット目からDATA2の2ビット目までの範囲である。この格納範囲に格納された特定パターンの前半の33ビットに続く後半の33ビットの部分は、同じパラレルクロック周期内には、DATA2の3ビット目からDATA3の3ビット目までの範囲に格納されている。そして、パラレルクロックの次の周期内には、DATA1の3ビット目からDATA2の3ビット目までの格納位置、すなわち格納位置3に格納されることが期待される。このように、それぞれの格納位置に格納する特定パターンの前半部分のビット長33が、パラレルデータのビット幅32に比較して1だけ大きいため、後半部分は、1だけ大きい番号の格納位置に格納される。   Here, as shown in the upper side of FIG. 7, the storage pattern 2 stored in the storage position starting from the second bit (K bit) from the head of the parallel data DATA1 in a certain cycle and the comparison pattern of the first half Assume that a match is detected and the pattern match flag [2] becomes “1”. Storage position 2 is a range from the second bit of DATA1 to the second bit of DATA2. The 33 bits of the latter half following the 33 bits of the first half of the specific pattern stored in this storage range are stored in the range from the third bit of DATA2 to the third bit of DATA3 within the same parallel clock period. Yes. In the next cycle of the parallel clock, it is expected to be stored in the storage position from the third bit of DATA1 to the third bit of DATA2, that is, storage position 3. In this way, since the bit length 33 of the first half part of the specific pattern stored in each storage position is one larger than the bit width 32 of the parallel data, the second half part is stored in the storage position with a number larger by one. Is done.

この後半部分を検出するため、パターン検出回路18Aでは、パターン一致フラグ[2]が“1”になると、比較パターン選択信号[3]だけが次の周期で“1”とする。   In order to detect the latter half, in the pattern detection circuit 18A, when the pattern match flag [2] becomes “1”, only the comparison pattern selection signal [3] is set to “1” in the next cycle.

比較パターン選択信号[3]が“1”になると、パターン比較回路16Aでは、マルチプレクサ3から、後半の32ビット長(Jビット長)の比較データが出力されこれ以外のマルチプレクサ1〜2,4〜31からは、前半の比較パターンが出力される。   When the comparison pattern selection signal [3] becomes “1”, in the pattern comparison circuit 16A, the latter half 32-bit length (J-bit length) comparison data is output from the multiplexer 3, and the other multiplexers 1-2, 4- From 31, the first half comparison pattern is output.

そして、同図上側の状態から1周期後の状態を同図下側に示すように、格納パターン3については、比較器3により、後半の比較パターンとの比較が行われる。一方、格納パターン3以外の格納パターン0〜2,4〜31については、比較器0〜2,4〜31により、前半の比較パターンとの比較が引き続き行われる。   Then, the storage pattern 3 is compared with the comparison pattern of the latter half by the comparator 3 as shown in the lower side of the figure after one cycle from the upper side of the figure. On the other hand, for the storage patterns 0 to 2 and 4 to 31 other than the storage pattern 3, the comparison with the comparison pattern of the first half is continued by the comparators 0 to 2 and 4 to 31.

パターン検出回路18Aでは、格納パターン3に対応するパターン一致フラグ[3]が“1”になると、つまり、ある周期で前半の比較パターンとの一致が検出され、続いて、その次の周期で後半の比較パターンとの一致が検出されると、検出信号[2]だけが次の周期で“1”となり、格納パターン2の位置から特定パターンを含むシリアルデータが受信されたことが検出される。2以外の格納パターンと前半の比較パターンとの一致が検出された場合にも、同様に、次の周期で、特定パターンの後半部分の検出を行い、シリアルデータの受信を検出することができる。   In the pattern detection circuit 18A, when the pattern match flag [3] corresponding to the storage pattern 3 becomes “1”, that is, a match with the comparison pattern in the first half is detected in a certain cycle, and then the latter half in the next cycle. When a match with the comparison pattern is detected, only the detection signal [2] becomes “1” in the next cycle, and it is detected that serial data including the specific pattern is received from the position of the storage pattern 2. Similarly, when a match between a storage pattern other than 2 and the comparison pattern in the first half is detected, the second half of the specific pattern can be detected in the next cycle to detect the reception of serial data.

一方、図8の上側に示すように、ある周期で、パラレルデータDATA1の先頭から31ビット目(Kビット目)を先頭とする格納パターン31と前半の比較パターンとの一致が検出され、パターン一致フラグ[31]が“1”になったとする。特定パターンの前半部分の33ビットが、DATA1の31ビット目からDATA2の31ビット目までの格納位置31に格納された場合、それに続く後半部分の33ビットは、同じパラレルクロック周期内には、DATA3の0ビット目から格納されている。この後半部分は、パラレルクロックの次の周期内には、DATA2の0ビット目からDATA3の1ビット目までの格納位置32に格納されると期待される。   On the other hand, as shown in the upper side of FIG. 8, a match between the storage pattern 31 starting from the 31st bit (Kth bit) from the top of the parallel data DATA1 and the first half comparison pattern is detected in a certain cycle, and the pattern match Assume that the flag [31] becomes “1”. When 33 bits of the first half part of the specific pattern are stored in the storage position 31 from the 31st bit of DATA1 to the 31st bit of DATA2, the 33 bits of the latter half part are transferred to DATA3 within the same parallel clock period. From the 0th bit. This second half is expected to be stored in the storage location 32 from the 0th bit of DATA2 to the 1st bit of DATA3 within the next period of the parallel clock.

パターン検出回路18Aでは、パターン一致フラグ[31]が“1”になると、比較パターン選択信号[32]だけが次の周期で“1”となる。パターン選択信号[32]は、パターン比較回路16Aのマルチプレクサ1〜31の制御には利用されない。このため、比較器0〜31には、特定パターンの前半部分が比較パターンとして供給される。しかし、比較器32は常に特定パターンの後半部分の33ビットが比較パターンとして供給される。   In the pattern detection circuit 18A, when the pattern match flag [31] becomes “1”, only the comparison pattern selection signal [32] becomes “1” in the next cycle. The pattern selection signal [32] is not used for controlling the multiplexers 1 to 31 of the pattern comparison circuit 16A. For this reason, the first half of the specific pattern is supplied to the comparators 0 to 31 as a comparison pattern. However, the comparator 32 always supplies the 33 bits of the latter half of the specific pattern as a comparison pattern.

そして、同図上側の状態から1周期後の状態を同図下側に示すように、格納パターン32については、比較器32により、後半の比較パターンとの比較が行われる。   Then, the storage pattern 32 is compared with the comparison pattern in the latter half by the comparator 32 as shown in the lower side of the figure after a state one cycle after the upper side of the figure.

パターン検出回路18Aでは、格納パターン32に対応するパターン一致フラグ[32]が“1”になると、つまり、ある周期で前半の比較パターンとの一致が検出され、続いて、その次の周期で後半の比較パターンとの一致が検出されると、検出信号[31]だけが次の周期で“1”となり、格納パターン31の位置で特定パターンを含むシリアルデータが受信されたことが検出される。   In the pattern detection circuit 18A, when the pattern match flag [32] corresponding to the storage pattern 32 becomes “1”, that is, a match with the first half comparison pattern is detected in a certain cycle, and then the second half in the next cycle. When a match with the comparison pattern is detected, only the detection signal [31] becomes “1” in the next cycle, and it is detected that serial data including the specific pattern is received at the position of the storage pattern 31.

図5の受信装置40では、パラレルクロックのある周期で格納パターン31と前半の比較パターンとの一致が検出されたときに、次の周期内で後半の比較パターンとの一致を検出するために、33個目の比較器32を備える構成とした。これは、格納パターン31と前半の比較パターンとの一致が検出された場合、パラレルクロックの次の周期内において、特定パターンの後半部分が、格納位置32に格納されると期待されるためである。従って、格納パターン0〜31と比較パターンとの比較を行うために設けた比較器0〜31とは別に、比較器32を設ける必要がある。また、受信パターン格納レジスタ14Aは、格納位置32に格納される33ビット長の後半部分の全体を格納することが可能なように、第2の格納レジスタとして、2つのFF20A1,20A2を備える構成とした。   In the receiving apparatus 40 of FIG. 5, when a match between the storage pattern 31 and the first half comparison pattern is detected in a certain cycle of the parallel clock, in order to detect a match with the second half comparison pattern in the next cycle, The 33rd comparator 32 is provided. This is because when the coincidence between the storage pattern 31 and the first half comparison pattern is detected, the second half of the specific pattern is expected to be stored in the storage position 32 within the next period of the parallel clock. . Therefore, it is necessary to provide the comparator 32 separately from the comparators 0 to 31 provided for comparing the storage patterns 0 to 31 with the comparison pattern. Further, the reception pattern storage register 14A includes two FFs 20A1 and 20A2 as the second storage register so that the entire second half of the 33-bit length stored in the storage location 32 can be stored. did.

なお、次の周期内において格納位置32に格納されると期待される後半部分は、さらにその次の周期内においては、格納位置0に格納されることが期待される。従って、格納パターン31と前半の比較パターンとの一致が検出された場合に、パラレルクロックの2周期後に、比較器0を使って格納パターン0と後半の比較パターンとの比較を行うことにより、後半部分との一致を検出することが可能である。しかし、格納パターン0〜30と前半の比較パターンとの一致が検出された場合には、比較器1〜31を利用して、パラレルクロックの次の周期内に後半部分との一致を検出することができるのに対して、格納位置31で前半部分との一致が検出された場合のみ、異なる周期内に後半部分との一致を検出するためには、複雑な制御を必要とする。これを避けるため、図5の受信装置40では、比較器32を追加することにより、0〜31の32種類の格納パターンのいずれと前半の比較パターンとの一致が検出されたときに、パラレルクロックの同一周期内、すなわち、次の周期内に、後半部分との一致を検出することを可能にした。   Note that the latter half portion expected to be stored in the storage location 32 within the next cycle is expected to be stored at storage location 0 within the next cycle. Therefore, when a match between the storage pattern 31 and the first comparison pattern is detected, the comparison between the storage pattern 0 and the second comparison pattern is performed using the comparator 0 after two cycles of the parallel clock. It is possible to detect a match with a part. However, when a match between the storage patterns 0 to 30 and the comparison pattern in the first half is detected, a match with the latter half is detected within the next cycle of the parallel clock using the comparators 1 to 31. On the other hand, only when the coincidence with the first half part is detected at the storage position 31, in order to detect the coincidence with the second half part in different periods, complicated control is required. In order to avoid this, in the receiving apparatus 40 of FIG. 5, by adding the comparator 32, when a match between any of the 32 types of storage patterns 0 to 31 and the comparison pattern of the first half is detected, In the same period, that is, in the next period, it is possible to detect a coincidence with the latter half.

上記のように、本発明の受信装置は、M=66,N=32の場合に限らず、特定パターンのビット長Mが、パラレルデータのビット幅Nの整数倍、もしくは、整数倍でない、どのような組合せの場合であっても正しく動作する。   As described above, the receiving apparatus of the present invention is not limited to the case of M = 66 and N = 32, and the bit length M of the specific pattern is an integer multiple of the bit width N of the parallel data or any integer multiple. Even in such a combination, it operates correctly.

次に、パラレルデータのビット幅Nが32ビットでない場合、例えば、M=64,N=16の場合を説明する。   Next, a case where the bit width N of the parallel data is not 32 bits, for example, a case where M = 64 and N = 16 will be described.

図31に示す受信装置120のように、パラレルデータのビット幅Nが16ビットの場合、例えば、受信した10Gbpsのシリアルデータが、シリアルパラレル変換回路82Dにより、625MHz、16ビットのパラレルデータに変換される。   When the bit width N of the parallel data is 16 bits as in the receiving device 120 shown in FIG. 31, for example, the received serial data of 10 Gbps is converted into 625 MHz, 16-bit parallel data by the serial / parallel conversion circuit 82D. The

そして、受信パターン格納レジスタ84Dは、常に、最新の5周期分のパラレルデータDATA1〜5を格納する。受信パターン格納レジスタ84D内には、64ビット長の特定パターンが図32に示すように、例えばパラレルデータDATA1の最下位ビットから、シリアルデータとして受信した順に連続する16ビットの範囲のそれぞれのビットを先頭とする、16通りの格納位置に格納される可能性がある。   The reception pattern storage register 84D always stores the latest five cycles of parallel data DATA1 to DATA5. In the reception pattern storage register 84D, as shown in FIG. 32, a 64-bit specific pattern includes, for example, each bit in a 16-bit range that is consecutive in the order received as serial data from the least significant bit of the parallel data DATA1. There is a possibility that the data is stored in 16 storage positions, which are the head.

この受信装置では、16個の比較器により、5周期分のパラレルデータDATA1〜5に含まれる、16通りの、64ビット幅の格納パターンのそれぞれと、64ビット長の特定パターンとが一度に比較される。   In this receiving apparatus, each of 16 types of 64-bit width storage patterns included in parallel data DATA1 to 5 for five cycles and a specific pattern of 64-bit length are compared at a time by 16 comparators. Is done.

続いて、図9は、本発明の受信装置の構成を表す第3の実施形態の回路図である。同図に示す受信装置50は、同様に、シリアルパラレル変換回路12Bと、受信パターン格納レジスタ14Bと、パターン比較回路16Bと、パターン検出回路18Bとを備えている。第3の実施形態の受信装置50は、16通り(N通り)の、64ビット幅(Mビット幅)の格納パターンのそれぞれと、64ビット長(Mビット長)の特定パターンとを、16ビット(LビットないしJビット)ずつ、4回に分けて4周期で比較する。   Next, FIG. 9 is a circuit diagram of a third embodiment showing the configuration of the receiving apparatus of the present invention. Similarly, the receiving device 50 shown in FIG. 1 includes a serial / parallel conversion circuit 12B, a reception pattern storage register 14B, a pattern comparison circuit 16B, and a pattern detection circuit 18B. The receiving apparatus 50 according to the third embodiment includes 16 (N), 64-bit (M-bit width) storage patterns, and a 64-bit (M-bit length) specific pattern, 16 bits. Compare (L bit or J bit) in 4 cycles in 4 cycles.

シリアルパラレル変換回路12Bは、図1に示す受信装置10と同様のものであって、16ビット幅(Nビット幅)のパラレルデータDATA2を生成する。   The serial-parallel conversion circuit 12B is the same as the receiving apparatus 10 shown in FIG. 1, and generates parallel data DATA2 having a 16-bit width (N-bit width).

受信パターン格納レジスタ14Bは、図1に示す受信装置14と同様のものであって、シリアルパラレル変換回路12Bのレジスタを第1のレジスタとして利用するとともに、第2のレジスタとして16ビット(Nビット)のFF20Bを備える。   The reception pattern storage register 14B is the same as the reception device 14 shown in FIG. 1, and uses the register of the serial / parallel conversion circuit 12B as the first register and 16 bits (N bits) as the second register. FF20B is provided.

パターン比較回路16Bは、16個(N個)の比較器(比較器0〜15)22Bと、比較パターン選択部36とを備えている。   The pattern comparison circuit 16 </ b> B includes 16 (N) comparators (comparators 0 to 15) 22 </ b> B and a comparison pattern selection unit 36.

比較器22のそれぞれの比較器0〜15は、図2に示す比較器と同様のものであって、図10に示すように、格納パターンと比較パターンとを比較する16個のEXOR回路26Bと、NOR回路28Bとを備えている。   Each comparator 0-15 of the comparator 22 is the same as the comparator shown in FIG. 2, and as shown in FIG. 10, there are 16 EXOR circuits 26B for comparing the storage pattern and the comparison pattern. And a NOR circuit 28B.

比較パターン選択部36は、図11に示すマルチプレクサ24Bを16個備えている。各々のマルチプレクサ24Bは、比較パターン選択信号[n]に応じて、64ビット長の特定パターン[63:0]の中から、第1の比較パターンとなる16ビット長(Lビット長)の特定パターン[15:0]、第2の比較パターンとなる16ビット長(Jビット長)の特定パターン[31:16]、第3の比較パターンとなる16ビット長(Jビット長)の特定パターン[47:32]、もしくは、第4の比較パターンとなる16ビット長(Jビット長)の特定パターン[63:48]を出力する。   The comparison pattern selection unit 36 includes 16 multiplexers 24B shown in FIG. Each multiplexer 24B, in response to the comparison pattern selection signal [n], selects a 16-bit specific pattern (L-bit length) as a first comparison pattern from the 64-bit specific pattern [63: 0]. [15: 0], 16-bit specific pattern [31:16] as the second comparison pattern, 16-bit specific pattern (J-bit length) as the third comparison pattern [47 : 32] or a specific pattern [63:48] having a 16-bit length (J-bit length) to be the fourth comparison pattern.

パターン検出回路18Bは、図12に示すように、比較器0〜15に対応する16セットの、マルチプレクサ38と、FF32と、加算器(+1)42と、比較器(=3)44と、AND回路34とを備えている。   As shown in FIG. 12, the pattern detection circuit 18B includes 16 sets of multiplexers 38, FFs 32, an adder (+1) 42, a comparator (= 3) 44, an AND corresponding to the comparators 0 to 15. Circuit 34.

パターン検出回路18Bでは、パターン一致フラグ[n]が“0”のとき、マルチプレクサ38の出力信号は“0”となり、これが、パラレルクロックに同期してFF32に保持される。そのため、FF32の出力信号である比較パターン選択信号[n]は“0”となり、加算器42の出力信号は“1”となる。また、パターン一致フラグ[n]が“0”であるから、AND回路34の出力信号である検出信号[n]も“0”となる。   In the pattern detection circuit 18B, when the pattern match flag [n] is “0”, the output signal of the multiplexer 38 becomes “0”, and this is held in the FF 32 in synchronization with the parallel clock. Therefore, the comparison pattern selection signal [n] that is the output signal of the FF 32 is “0”, and the output signal of the adder 42 is “1”. Further, since the pattern match flag [n] is “0”, the detection signal [n] that is the output signal of the AND circuit 34 is also “0”.

パターン一致フラグ[n]が“1”になると、マルチプレクサ38の出力信号は“1”となり、これが次の周期でFF32に保持されるため、比較パターン選択信号[n]は“1”となり、加算器42の出力信号は“2”となる。比較器44は、比較パターン選択信号[n]が“3”であるかどうかを検出するものであり、この時、比較器44の出力信号は“0”となるから、検出信号[n]は“0”となる。   When the pattern match flag [n] becomes “1”, the output signal of the multiplexer 38 becomes “1”, and this is held in the FF 32 in the next cycle, so that the comparison pattern selection signal [n] becomes “1” and the addition is performed. The output signal of the device 42 is “2”. The comparator 44 detects whether or not the comparison pattern selection signal [n] is “3”. At this time, since the output signal of the comparator 44 is “0”, the detection signal [n] is It becomes “0”.

以下同様にして、パターン一致フラグ[n]が連続して4周期の間“1”になると、比較パターン選択信号[n]は“3”となり、比較器44の出力信号が“1”となって、検出信号[n]は“1”となる。なお、パターン一致フラグ[n]が、4周期の間で一度でも“0”になると、マルチプレクサ38の出力信号が“0”となり、これが次の周期でFF32に保持されて、比較パターン選択信号[n]、および、検出信号[n]は“0”となる。   Similarly, when the pattern match flag [n] is continuously “1” for four periods, the comparison pattern selection signal [n] is “3” and the output signal of the comparator 44 is “1”. Thus, the detection signal [n] is “1”. When the pattern match flag [n] becomes “0” even once during the four cycles, the output signal of the multiplexer 38 becomes “0”, and this is held in the FF 32 in the next cycle, and the comparison pattern selection signal [ n] and the detection signal [n] are “0”.

比較パターン選択信号[n]は、2ビットの信号であり、パターン一致フラグ[n]が連続してi回(i=1〜4)“1”になる、つまり、格納パターンと比較パターンとが連続してi回路一致すると、その次の周期で、“i”となる。また、検出信号[n]は、パターン一致フラグ[n]が連続して4回“1”になる、つまり、格納パターンと比較パターンとが連続して4回一致すると、“1”になる。   The comparison pattern selection signal [n] is a 2-bit signal, and the pattern match flag [n] is continuously set to “1” i times (i = 1 to 4), that is, the storage pattern and the comparison pattern are different. When the i circuits continuously match, “i” is obtained in the next cycle. Further, the detection signal [n] becomes “1” when the pattern matching flag [n] is continuously “4” four times, that is, when the storage pattern and the comparison pattern are continuously matched four times.

次に、受信装置50の動作について説明する。   Next, the operation of the receiving device 50 will be described.

受信パターン格納レジスタ14に、最新の2周期分のパラレルデータDATA1〜2が格納されるまでの動作は同様である。   The operation until the latest two cycles of parallel data DATA1-2 are stored in the reception pattern storage register 14 is the same.

パターン比較回路16Bでは、まず、全ての比較パターン選択信号が“0”になり、比較パターン選択部36の全てのマルチプレクサ24Bから、第1の比較パターンが出力される。そして、比較器22により、格納パターン0〜15のそれぞれと第1の比較パターンとが、各々対応するビット毎に比較される。その結果、シリアルデータが受信されると、一致が検出された格納パターン#nに対応するパターン一致フラグ[n]が“1”となる。   In the pattern comparison circuit 16B, all the comparison pattern selection signals are first set to “0”, and the first comparison pattern is output from all the multiplexers 24B of the comparison pattern selection unit 36. Then, the comparator 22 compares each of the storage patterns 0 to 15 with the first comparison pattern for each corresponding bit. As a result, when the serial data is received, the pattern match flag [n] corresponding to the storage pattern #n where the match is detected becomes “1”.

ここで、図13の上側に示すように、DATA1の0ビットから連続する16ビットの範囲のそれぞれのビットを先頭とする16通りの格納位置0から15を考える。そして、ある周期で、パラレルデータDATA1の先頭から2ビット目(Kビット目)を先頭とする格納パターン2と第1の比較パターン(図13では、第1〜第4の比較パターンを、それぞれ、比較パターン1/4、比較パターン2/4、比較パターン3/4、比較パターン4/4と表記している。)との一致が検出され、パターン一致フラグ[2]が“1”になったとする。   Here, as shown on the upper side of FIG. 13, 16 storage positions 0 to 15 starting from each bit in a range of 16 bits continuous from 0 bits of DATA1 are considered. Then, in a certain cycle, the storage pattern 2 and the first comparison pattern (in FIG. 13, the first to fourth comparison patterns) starting from the second bit (K bit) from the top of the parallel data DATA1, Comparison pattern 1/4, comparison pattern 2/4, comparison pattern 3/4, and comparison pattern 4/4) are detected, and the pattern match flag [2] is set to “1”. To do.

この場合、パターン検出回路18Bでは、パターン一致フラグ[2]が“1”になると、比較パターン選択信号[2]が次の周期で“1”になる。   In this case, in the pattern detection circuit 18B, when the pattern matching flag [2] becomes “1”, the comparison pattern selection signal [2] becomes “1” in the next cycle.

比較パターン選択信号[2]が“1”になると、パターン比較回路16Bでは、比較器2にはマルチプレクサ24Bから、第2の比較データが入力される。これ以外の比較器0〜1,3〜15には、第1の比較パターンが入力される。   When the comparison pattern selection signal [2] becomes “1”, the second comparison data is input to the comparator 2 from the multiplexer 24B in the pattern comparison circuit 16B. The first comparison pattern is input to the other comparators 0 to 1 and 3 to 15.

そして、同図上側の状態から1周期後の状態を同図下側に示すように、格納パターン2については、比較器22により、第2の比較パターンとの比較が行われる。一方、格納パターン2以外の格納パターン0〜1,3〜15については、比較器22により、第1の比較パターンとの比較が引き続き行われる。   Then, the storage pattern 2 is compared with the second comparison pattern by the comparator 22 for the storage pattern 2 as shown in the lower side of the figure after the state on the upper side of the figure. On the other hand, for the storage patterns 0 to 1 to 3 to 15 other than the storage pattern 2, the comparator 22 continues to compare with the first comparison pattern.

以下順に、パターン一致フラグ[2]が2周期連続で“1”になると、比較パターン選択信号[2]がさらに次の周期で“2”となって、マルチプレクサ24Bから、第3の比較データが出力され、同図下側の状態から1周期後の状態を図14上側に示すように、格納パターン2と第3の比較パターンとの比較が行われる。また、パターン一致フラグ[2]が3周期連続で“1”になると、比較パターン選択信号[2]がさらに次の周期で“3”となって、マルチプレクサ24Bから、第4の比較データが出力され、同図上側の状態から1周期後の状態を同図下側に示すように、格納パターン2と第4の比較パターンとの比較が行われる。   In the following order, when the pattern match flag [2] becomes “1” for two consecutive cycles, the comparison pattern selection signal [2] further becomes “2” in the next cycle, and the third comparison data is sent from the multiplexer 24B. The stored pattern 2 is compared with the third comparison pattern as shown in the upper side of FIG. 14 after one cycle from the lower side of the figure. When the pattern match flag [2] becomes “1” for three consecutive cycles, the comparison pattern selection signal [2] becomes “3” in the next cycle, and the fourth comparison data is output from the multiplexer 24B. Then, the storage pattern 2 is compared with the fourth comparison pattern, as shown in the lower side of the figure after one cycle from the upper side of the figure.

そして、パターン一致フラグ[2]が4周期連続で“1”になると、つまり、ある周期で、格納パターン2と第1の比較パターンとの一致が検出され、その後、3周期連続して、格納パターン2と第2〜第4の比較パターンとの一致が検出されると、検出信号[2]が次の周期で“1”となり、特定パターンを含むシリアルデータが受信されたことが検出される。   When the pattern match flag [2] becomes “1” for 4 consecutive cycles, that is, a match between the storage pattern 2 and the first comparison pattern is detected in a certain cycle, and then stored for 3 consecutive cycles. When a match between the pattern 2 and the second to fourth comparison patterns is detected, the detection signal [2] becomes “1” in the next cycle, and it is detected that serial data including the specific pattern has been received. .

また、格納パターン0〜1,3〜15に対応するパターン一致フラグ[n]が“1”になった場合には、“1”のパターン一致フラグ[n]に対応する比較パターン選択信号[n]が次の周期で“1”となり、以後、前述の動作が繰り返される。   When the pattern match flag [n] corresponding to the storage patterns 0 to 1, 3 to 15 is “1”, the comparison pattern selection signal [n] corresponding to the pattern match flag [n] of “1” is stored. ] Becomes “1” in the next cycle, and then the above-described operation is repeated.

上記のように、本発明の受信装置は、M=64,N=16の場合に限らず、パラレルデータのビット幅Nがどのような値の場合であっても正しく動作する。   As described above, the receiving apparatus of the present invention is not limited to the case where M = 64 and N = 16, and operates correctly regardless of the value of the bit width N of parallel data.

次に、通信誤りを許す場合について説明する。   Next, a case where a communication error is allowed will be described.

従来の受信装置において、通信誤りを許す場合の構成は、既に説明したように、図27および図28の通りである。   In the conventional receiving apparatus, the configuration for allowing a communication error is as shown in FIGS. 27 and 28 as described above.

すなわち、この受信装置100では、それぞれの比較器92B(比較器0〜31)において、加算器98Bにより、64個のEXOR回路94Aからの比較結果を加算し、加算結果が15未満であれば加算結果をそのまま出力し、15以上であれば15を出力する。そして、加算結果である通信誤り数が、最大許容不一致ビット数の15未満である場合には、大小比較回路102Bにより、一致が検出されたと見なされ、パターン一致フラグが“1”となる。   That is, in this receiving apparatus 100, in each comparator 92B (comparators 0 to 31), the adder 98B adds the comparison results from 64 EXOR circuits 94A. The result is output as it is, and if it is 15 or more, 15 is output. When the number of communication errors as a result of addition is less than the maximum allowable mismatch bit number 15, it is considered that a match is detected by the magnitude comparison circuit 102B, and the pattern match flag becomes “1”.

続いて、図15は、本発明の受信装置の構成を表す第4の実施形態の回路図である。同図に示す受信装置60は、図1に示す第1の実施形態の受信装置10と比較して、パターン比較回路16Cのそれぞれの比較器(比較器0〜31)22Cに最大許容不一致ビット数(1ブロックの特定パターンを検出する間に許容される最大の通信誤り数)が入力されている点を除いて、同様の構成のものである。   Next, FIG. 15 is a circuit diagram of the fourth embodiment showing the configuration of the receiving apparatus of the present invention. The receiving device 60 shown in the figure is compared with the receiving device 10 of the first embodiment shown in FIG. 1 in each comparator (comparators 0 to 31) 22C of the pattern comparison circuit 16C with the maximum allowable number of mismatch bits. The configuration is the same except that (the maximum number of communication errors allowed while detecting a specific pattern of one block) is input.

比較器22Cのそれぞれは、図16に示すように、32個のEXOR回路26で構成される点と、1ビット右シフト回路46を備える点とを除いて、図28に示す比較器92Bと同様の構成のものである。この比較器22Cでは、最大許容不一致ビット数が、1ビット右シフト回路46により、右側(最下位ビット側)に1ビットだけシフトされて、その値が1/2とされ、大小比較回路52により、加算器48の出力信号である通信誤り数と最大許容不一致ビット数の1/2の値との比較が行われる。   Each of the comparators 22C is the same as the comparator 92B shown in FIG. 28 except that it includes 32 EXOR circuits 26 and a 1-bit right shift circuit 46 as shown in FIG. Of the configuration. In this comparator 22C, the maximum allowable mismatch bit number is shifted by 1 bit to the right (the least significant bit side) by the 1-bit right shift circuit 46, the value is halved, and the magnitude comparison circuit 52 A comparison is made between the number of communication errors, which is the output signal of the adder 48, and a value that is ½ of the maximum allowable mismatch bit number.

この受信装置60では、32通りの、64ビット幅の格納パターンのそれぞれと、64ビット長の特定パターンとを、前半と後半の32ビットずつ、2回に分けて2周期で比較する。そのため、最大許容不一致ビット数を1/2として、1回の比較で、最大許容不一致ビット数の半分までの通信誤りを許容している。これにより、2回の比較で、通信誤り数が最大許容不一致ビット数以下であれば、特定パターンとの一致が検出されたと見なすことを保証している。   In this receiving device 60, each of 32 types of 64-bit width storage patterns and a 64-bit specific pattern are compared in two cycles, divided into two parts, 32 bits for the first half and the second half. Therefore, the maximum allowable mismatch bit number is halved and communication errors up to half of the maximum allowable mismatch bit number are allowed in one comparison. As a result, if the number of communication errors is less than or equal to the maximum allowable mismatch bit number in two comparisons, it is guaranteed that a match with a specific pattern is detected.

上記のように、本発明の受信装置は、2回に分けて2周期で比較する場合に限らず、n回に分けてn周期で比較する場合でも、最大許容不一致ビット数を1/nとすることにより、正しく動作する。   As described above, the receiving apparatus of the present invention is not limited to the case where the comparison is performed in two cycles divided into two times, and the maximum allowable mismatch bit number is 1 / n even when the comparison is performed in n cycles divided into n times. Will work correctly.

なお、上記第4の実施形態の受信装置60では、最大許容不一致ビット数の検査が厳しすぎる場合がある。つまり、n回に分けてn周期で比較する場合に、各周期での通信誤り数にばらつきがある場合である。例えば、1回目の比較で最大許容不一致ビット数の1/2を超える通信誤り数があったが、2回目の比較では、通信誤り数が0の場合である。この場合、2回の比較での通信誤り数の合計は、最大許容不一致ビット数を下回るが、特定パターン未検出と判定されてしまう。   Note that in the receiving device 60 of the fourth embodiment, the inspection of the maximum allowable mismatch bit number may be too strict. That is, when the comparison is made in n cycles divided into n times, the number of communication errors in each cycle varies. For example, the number of communication errors exceeds 1/2 of the maximum allowable mismatch bit number in the first comparison, but the number of communication errors is zero in the second comparison. In this case, the total number of communication errors in the two comparisons is less than the maximum allowable mismatch bit number, but it is determined that the specific pattern has not been detected.

この問題に対応するものが、第5の実施形態である。以下、第5の実施形態について説明する。   The fifth embodiment corresponds to this problem. The fifth embodiment will be described below.

図17は、本発明の受信装置の構成を表す第5の実施形態の回路図である。同図に示す受信装置70は、図1に示す第1の実施形態の受信装置10と比較して、パターン比較回路16Dのそれぞれの比較器22D(比較器0〜31)と、パターン検出回路18Dの構成が異なる点を除いて、同様の構成のものである。   FIG. 17 is a circuit diagram of the fifth embodiment showing the configuration of the receiving apparatus of the present invention. Compared with the receiving apparatus 10 of the first embodiment shown in FIG. 1, the receiving apparatus 70 shown in FIG. 1 includes each of the comparators 22D (comparators 0 to 31) of the pattern comparison circuit 16D and the pattern detection circuit 18D. The configuration is the same except that the configuration is different.

それぞれの比較器22Dは、図18に示すように、図2に示す比較器22と比較して、NOR回路28の代わりに、加算器48を備えている。加算器48により、全てのEXOR回路26の出力信号が加算され、加算器48からは、その加算結果である4ビットの通信誤り数が出力される。   As shown in FIG. 18, each comparator 22D includes an adder 48 instead of the NOR circuit 28 as compared with the comparator 22 shown in FIG. The adder 48 adds the output signals of all the EXOR circuits 26, and the adder 48 outputs a 4-bit communication error number as a result of the addition.

パターン検出回路18Dは、図19に示すように、FF54と、加算器56と、第1の大小比較回路58と、AND回路30と、FF32と、第2の大小比較回路62とを備えている。図示を省略しているが、これらは、32個のパターン一致フラグ[31:0]に対応する32セットの回路が設けられている。   As shown in FIG. 19, the pattern detection circuit 18D includes an FF 54, an adder 56, a first magnitude comparison circuit 58, an AND circuit 30, an FF 32, and a second magnitude comparison circuit 62. . Although not shown, these are provided with 32 sets of circuits corresponding to 32 pattern matching flags [31: 0].

まず、パターン比較回路16Dにおいて、比較器22Dにより、32通りの格納パターンのそれぞれと、前半の比較パターンとの比較(1回目の比較)が行われる。その結果、それぞれの比較器22Dから、1回目の通信誤り数が出力される。   First, in the pattern comparison circuit 16D, the comparator 22D compares each of the 32 stored patterns with the first half comparison pattern (first comparison). As a result, the first communication error number is output from each comparator 22D.

パターン検出回路22Dでは、第1の大小比較回路58により、1回目の通信誤り数と最大許容不一致ビット数との比較が行われる。その結果、1回目の通信誤り数が、最大許容不一致ビット数未満であれば、1回目の比較で一致が検出されたと見なされて、第1の大小比較回路58の出力信号が“1”となり、パラレルクロックに同期して、次の周期でFF32の出力信号である比較パターン選択信号が“1”となる。   In the pattern detection circuit 22D, the first size comparison circuit 58 compares the first communication error number with the maximum allowable mismatch bit number. As a result, if the first communication error number is less than the maximum allowable mismatch bit number, it is considered that a match has been detected in the first comparison, and the output signal of the first magnitude comparison circuit 58 becomes “1”. In synchronization with the parallel clock, the comparison pattern selection signal, which is the output signal of the FF 32, becomes “1” in the next cycle.

続いて、パターン比較回路16Dでは、1回目の比較の結果、比較パターン選択信号が“1”となったマルチプレクサ24から後半の比較パターンが出力される。そして、後半の比較パターンが入力された比較器22Dにより、格納パターンと後半の比較パターンとの比較が行われる。その結果、後半の比較パターンが入力された比較器22Dからは、2回目の通信誤り数が出力される。   Subsequently, in the pattern comparison circuit 16D, the comparison pattern in the latter half is output from the multiplexer 24 in which the comparison pattern selection signal is “1” as a result of the first comparison. Then, the comparator 22D to which the latter half comparison pattern is inputted compares the stored pattern with the latter half comparison pattern. As a result, the second communication error number is output from the comparator 22D to which the latter comparison pattern is input.

パターン検出回路18Dでは、同じく、第1の大小比較回路58により、2回目の通信誤り数と最大許容不一致ビット数との比較が行われる。しかし、前述のように、比較パターン選択信号はワンショット信号であるため、1回目の比較の結果、“1”となった比較パターン選択信号は、第1の大小比較回路58の出力信号、つまり、2回目の比較結果に値に関係なく、次の周期で“0”に戻る。   Similarly, in the pattern detection circuit 18D, the first magnitude comparison circuit 58 compares the second communication error number with the maximum allowable mismatch bit number. However, as described above, since the comparison pattern selection signal is a one-shot signal, the comparison pattern selection signal that is “1” as a result of the first comparison is the output signal of the first magnitude comparison circuit 58, that is, Regardless of the value of the second comparison result, it returns to “0” in the next cycle.

また、パターン検出回路18Dでは、比較器22Dから1回目の通信誤り数が出力されたとき、次の周期には、1回目の通信誤り数がFF54に保持される。そして、同じ次の周期で、比較器22Dから2回目の通信誤り数が出力されると、加算器56により、FF54の出力信号である1回目の通信誤り数と、比較器22Dから出力された2回目の通信誤り数とが加算され、加算器56から、1回目と2回目の合計の通信誤り数が出力される。なお、加算器56の出力信号は、4ビットの通信誤り数同士の加算の際に桁上がりが発生することを考慮して、5ビットの信号となる。   In the pattern detection circuit 18D, when the first communication error number is output from the comparator 22D, the first communication error number is held in the FF 54 in the next cycle. When the second communication error number is output from the comparator 22D in the same next cycle, the adder 56 outputs the first communication error number that is the output signal of the FF 54 and the comparator 22D. The second communication error number is added and the adder 56 outputs the total communication error number for the first and second times. Note that the output signal of the adder 56 is a 5-bit signal in consideration of the occurrence of a carry when the numbers of 4-bit communication errors are added.

そして、第2の大小比較回路62により、加算器56の出力信号である、1回目と2回目の合計の通信誤り数と、最大許容不一致ビット数との比較が行われる。その結果、1回目と2回目の合計の通信誤り数が、最大許容不一致ビット数未満であれば、2回目の比較、つまり、1回目と2回目の比較の両方で一致が検出されたと見なされ、第2の大小比較回路62の出力信号である検出信号が“1”になる。   Then, the second magnitude comparison circuit 62 compares the total number of first and second communication errors, which is the output signal of the adder 56, with the maximum allowable mismatch bit number. As a result, if the total number of communication errors for the first time and the second time is less than the maximum allowable number of mismatch bits, it is considered that a match has been detected in the second comparison, that is, both the first and second comparisons. The detection signal that is the output signal of the second magnitude comparison circuit 62 becomes “1”.

このように、第5の実施形態の受信装置70であれば、n回に分けてn周期で比較する場合に、各周期での通信誤り数にばらつきがある場合でも、1回目と2回目の合計の通信誤り数が、最大許容不一致ビット数を下回っていれば、一致が検出されたと見なされる。そのため、通信誤りを許す場合でも、通信誤り数を正しく判定しつつ、特定パターンを検出することができる。   As described above, in the case of the receiving device 70 of the fifth embodiment, when the comparison is performed in n cycles divided into n times, even if the number of communication errors in each cycle varies, the first and second times. If the total number of communication errors is below the maximum allowable number of mismatch bits, it is considered that a match has been detected. Therefore, even when a communication error is allowed, the specific pattern can be detected while correctly determining the number of communication errors.

以上のように、本発明により、比較器のEXOR回路の個数を削減することができるので、受信装置の回路規模を小さくすることができる。例えば、特定パターンの検出において通信誤りを許さない場合でも、本発明の受信装置と従来の受信装置とを比較すると、例えば、M=64,N=32,L=32,J=32の場合、本発明の受信装置では、EXOR回路を1000個程度削減することができる。これにより、本発明によれば、回路規模削減により、チップコスト削減、レイアウト容易性向上などの効果がある。   As described above, according to the present invention, the number of EXOR circuits of the comparator can be reduced, so that the circuit scale of the receiving apparatus can be reduced. For example, even when a communication error is not allowed in detection of a specific pattern, when the receiving apparatus of the present invention is compared with a conventional receiving apparatus, for example, when M = 64, N = 32, L = 32, and J = 32, In the receiving apparatus of the present invention, about 1000 EXOR circuits can be reduced. Thus, according to the present invention, there are effects such as chip cost reduction and layout easiness improvement by reducing the circuit scale.

本発明の受信装置では、前半の比較パターンと後半の比較パターンとを切り換えるために、マルチプレクサ等の回路を追加する必要があるが、EXOR回路の削減効果の方が大きい。   In the receiving apparatus of the present invention, it is necessary to add a circuit such as a multiplexer in order to switch between the first half comparison pattern and the second half comparison pattern, but the effect of reducing the EXOR circuit is greater.

なお、M,N,L,J、受信パターン格納レジスタ14に格納されるパラレルデータのビット幅、連続するNビットの範囲、ならびに、ビット誤り許容数などは特に限定されない。   Note that the bit width of the parallel data stored in the reception pattern storage register 14, the range of consecutive N bits, the allowable number of bit errors, and the like are not particularly limited.

上記各実施形態では、1回目と2回目、もしくは、1〜4回目の比較において、L=Jとしている。すなわち、M=I・L(Iは2以上の整数)である。しかし、これも限定されず、例えば、特定パターン全体のビット長Mが奇数の場合等、両者の値が異なる場合もある。また、2回の比較で終了する場合も、3回目以降の比較が必要な場合も同様であり、3回以降の比較が必要な場合には、例えば、最後の比較のときにLとJが異なるように設定してもよい。   In each of the above embodiments, L = J in the first and second comparisons or the first to fourth comparisons. That is, M = I · L (I is an integer of 2 or more). However, this is not limited. For example, when the bit length M of the entire specific pattern is an odd number, both values may be different. In addition, the case where the comparison is completed by the second time is the same as the case where the third and subsequent comparisons are necessary. When the third and subsequent comparisons are necessary, for example, L and J are set at the time of the last comparison. It may be set differently.

本発明の受信装置は、プリアンブルに限らず、エンドオブバーストなどのように、あらかじめ設定された所定ビット長の特定パターンを含むシリアルデータから、特定パターンを検出することができる。   The receiving apparatus of the present invention can detect a specific pattern from serial data including a specific pattern having a predetermined bit length set in advance, such as an end of burst, as well as a preamble.

また、第2の実施形態の受信装置の場合には、前半の比較パターンとの一致が検出されたときに、いずれの格納パターンとの一致が検出された場合にも、その次の周期で、後半の比較パターンとの一致を検出しているが、これも限定されない。   Further, in the case of the receiving apparatus of the second embodiment, when a match with any of the storage patterns is detected when a match with the comparison pattern in the first half is detected, in the next cycle, Although the coincidence with the comparison pattern in the latter half is detected, this is not limited.

例えば、M=66,N=32,L=33,q=1,r=1の場合、図20の上側に示すように、連続する32ビット(Nビット)の範囲のそれぞれのビットを先頭とする格納パターン0〜31のそれぞれで前半の比較パターンとの一致が検出された場合に、前半の33ビット(Lビット)の部分に続く特定パターンの後半の33ビットの部分は、パラレルクロックの次の周期内には、同図の下側に示すように、それぞれ1〜32の格納位置に格納されると期待される。この内、格納パターン1〜31は、前半の一致検出において格納パターン1〜31と前半の比較パターンとの比較に利用した比較器1〜31を利用して、後半の比較パターンとの一致を検出することが可能である。一方、格納パターン32は、前半の一致検出に利用した比較器0〜31のいずれを利用しても、後半の比較パターンとの一致を検出することはできない。   For example, when M = 66, N = 32, L = 33, q = 1, and r = 1, as shown in the upper side of FIG. 20, each bit in the range of consecutive 32 bits (N bits) is set as the head. When a match with the first half comparison pattern is detected in each of the storage patterns 0 to 31 to be performed, the latter 33 bits of the specific pattern following the first 33 bits (L bits) In this period, as shown on the lower side of FIG. Among these, the storage patterns 1 to 31 are detected by using the comparators 1 to 31 used for comparing the storage patterns 1 to 31 and the comparison pattern of the first half in the first half of the match detection. Is possible. On the other hand, the storage pattern 32 cannot detect the coincidence with the comparison pattern in the second half, regardless of which of the comparators 0 to 31 used for the coincidence detection in the first half.

しかし、さらに1周期待つと、図20の一番下に破線で示すように、格納パターン32は格納位置0にシフトする。この周期内には、前半の一致検出において格納パターン0と前半の比較パターンとの比較に利用した比較器0を利用して、後半の比較パターンとの一致を検出することができる。これにより、後半の一致を検出する周期を前半の一致を検出した格納パターンに応じて変化させる制御は必要になるが、比較器33の追加は不要である。   However, when one more cycle is waited, the storage pattern 32 shifts to the storage position 0 as shown by the broken line at the bottom of FIG. Within this period, it is possible to detect a match with the latter comparison pattern by using the comparator 0 used for comparing the storage pattern 0 and the first comparison pattern in the first half match detection. This makes it necessary to control the period for detecting the second half match according to the storage pattern in which the first half match is detected, but the addition of the comparator 33 is not necessary.

また、M=120,N=32,L=60,q=1,r=28の場合、図21の上側に示すように、DATA1の4ビット目から連続する32ビットの範囲のそれぞれのビットを先頭とする60ビットの部分を格納位置4〜35とし、この格納位置のそれぞれに格納される格納パターン4〜35を、120ビット長の特定パターンの前半の60ビットの比較パターンと比較することができる。この場合、格納パターン4〜35のそれぞれと前半の比較パターンとの一致が検出されたときに、特定パターンの後半の60ビットの部分は、パラレルクロックの2周期後には、図21の下側に実線で示すように、DATA1の0ビット目から連続する32ビットの範囲のそれぞれのビットを先頭とする格納位置0から31に格納されると期待される。   When M = 120, N = 32, L = 60, q = 1, and r = 28, as shown on the upper side of FIG. 21, each bit in the range of 32 bits continuous from the fourth bit of DATA1 is set. The first 60-bit part is set as storage positions 4 to 35, and the storage patterns 4 to 35 stored in the respective storage positions can be compared with the first 60-bit comparison pattern of the 120-bit specific pattern. it can. In this case, when a match between each of the storage patterns 4 to 35 and the comparison pattern of the first half is detected, the latter half of the 60 bits of the specific pattern is moved to the lower side of FIG. 21 after two cycles of the parallel clock. As indicated by the solid line, the data is expected to be stored in storage positions 0 to 31 starting from each bit in the range of 32 bits continuous from the 0th bit of DATA1.

この内、格納パターン4〜31は、前半の比較パターンとの一致検出に利用した比較器4〜31を利用して、後半の比較パターンとの一致を検出することができる。しかし、格納パターン0〜3は、前半の一致検出に利用した比較器4〜35のいずれを利用しても、後半の比較パターンとの一致を検出することができない。そこで、これらの格納パターン0〜4と比較パターンとの一致を検出するために、4個の比較器0〜3を追加することも可能である。   Among these, the storage patterns 4 to 31 can detect a match with the latter comparison pattern by using the comparators 4 to 31 used for the match detection with the first comparison pattern. However, the stored patterns 0 to 3 cannot detect a match with the comparison pattern in the latter half even if any of the comparators 4 to 35 used for the match detection in the first half is used. Therefore, four comparators 0 to 3 can be added in order to detect coincidence between these storage patterns 0 to 4 and the comparison pattern.

しかし、前半の一致が検出された周期の2周期後から、1つ前の周期、すなわち、前半の一致が検出された周期の1周期後には、図21の下側に破線で示すように、特定パターンの後半の60ビットの部分は、格納位置32〜35に格納されると期待される。これらの格納位置32〜35に格納された格納パターンは、前半の検出において格納パターン32〜35と前半の比較パターンとの一致検出に利用した比較器32〜35を利用して、後半の比較パターンとの一致を検出することができる。これにより、後半の一致を検出する周期を前半の一致を検出した格納パターンに応じて変化させる制御は必要になるが、比較器0〜3の追加は不要である。   However, from two cycles after the cycle in which the first-half match is detected, as shown by a broken line at the lower side of FIG. 21, one cycle before the cycle in which the first-half match is detected, The 60-bit portion of the latter half of the specific pattern is expected to be stored in storage locations 32-35. The storage patterns stored in the storage positions 32 to 35 are obtained by using the comparators 32 to 35 used for detecting the coincidence between the storage patterns 32 to 35 and the first comparison pattern in the first half detection. A match can be detected. This makes it necessary to control the period for detecting the second half match according to the storage pattern in which the first half match is detected, but does not require the addition of the comparators 0 to 3.

一般的に、パラレルクロックのビット幅Nよりも多数の比較器を用意して、前半の一致が検出された格納パターンの先頭位置(K値)によらず、後半の比較を行うクロック周期を同一にすることが可能である。すなわち、パラレルクロックの第1の周期内に、連続するNビットの範囲の先頭からKビット目(K=0〜N−1)を先頭とするLビットの部分と、特定パターンの先頭からLビットの部分との一致が検出されたときに、L/Nの商をq、あまりをrとして、第1の周期からq周期後の周期内に、特定パターンのL+1ビット目からJビットの部分との一致を検出することが可能である。具体的には、K<N−rである場合には、連続するNビットの範囲の先頭からK+rビット目を先頭とするJビットの部分と、特定パターンのL+1ビット目からJビットの部分との一致を検出する。N−r≦Kである場合には、連続するNビットの範囲の直後のrビットの範囲の先頭からK+r−Nビット目を先頭とするJビットの部分と、特定パターンのL+1ビット目からJビットの部分との一致を検出する。このために、パターン比較回路16は、連続するNビットの範囲のそれぞれのビットを先頭とする格納パターンと比較パターンとの比較を行うN個の第1の比較器を備えるとともに、連続するNビットの範囲の直後のrビットの範囲のそれぞれのビットを先頭とする格納パターンと比較パターンとの比較を行うr個の第2の比較器を備える。そして、パターン検出回路18は、第1の周期内での一致の検出に続いて、第1の周期からq周期後の周期内に、K<N−rである場合には、第1の比較器のうちの、連続するNビットの範囲の先頭からK+rビット目のビットを先頭とする格納パターンと比較パターンとの比較を行う比較器が一致を検出したことを条件として、特定パターンを含むシリアルデータの受信を検出する。N−r≦Kである場合には、第2の比較器のうちの、連続するNビットの範囲の直後のrビットの範囲の先頭からK+r−Nビット目のビットを先頭とする格納パターンと比較パターンとの比較を行う比較器が一致を検出したことを条件として、特定パターンを含むシリアルデータの受信を検出する。   In general, a larger number of comparators than the parallel clock bit width N are prepared, and the clock cycle for comparing the latter half is the same regardless of the head position (K value) of the storage pattern where the first half match is detected. It is possible to That is, within the first period of the parallel clock, the L bit part starting from the Kth bit (K = 0 to N−1) from the beginning of the range of consecutive N bits and the L bit from the beginning of the specific pattern When a coincidence with the portion is detected, the quotient of L / N is q, and too much is r, and within the cycle after q cycles from the first cycle, It is possible to detect a match. Specifically, when K <N−r, a J bit portion starting from the K + r bit from the beginning of the range of consecutive N bits, a J bit portion from the L + 1 bit of the specific pattern, and Find a match. When N−r ≦ K, the J bit portion starting from the K + r−N bit from the beginning of the r bit range immediately after the continuous N bit range and the L + 1 bit from the L + 1 bit of the specific pattern Detects a match with the bit part. For this purpose, the pattern comparison circuit 16 includes N first comparators for comparing the comparison pattern with the storage pattern starting with each bit in the range of consecutive N bits, and the consecutive N bits. R second comparators for comparing the storage pattern starting with each bit in the r-bit range immediately after the range and the comparison pattern. Then, following the detection of coincidence within the first period, the pattern detection circuit 18 performs the first comparison when K <N−r within the period after q periods from the first period. Serial data including a specific pattern on the condition that the comparator for comparing the comparison pattern with the storage pattern starting with the K + rth bit from the beginning of the range of consecutive N bits in the range has detected a match. Detect receipt of data. If N−r ≦ K, the storage pattern of the second comparator starting with the K + r−N-th bit from the beginning of the r-bit range immediately after the continuous N-bit range; The reception of serial data including the specific pattern is detected on the condition that the comparator that performs comparison with the comparison pattern has detected a match.

もしくは、第1の周期からq+1周期後の周期内に、特定パターンのL+1ビット目からJビットの部分との一致を検出することも可能である。具体的には、K<N−rである場合には、連続するNビットの範囲の直前のN−rビットの範囲の、先頭からKビット目を先頭とするJビットの部分と、特定パターンのL+1ビット目からJビットの部分との一致を検出する。N−r≦Kである場合には、連続するNビットの範囲の先頭からK+r−Nビット目を先頭とするJビットの部分と、特定パターンのL+1ビット目からJビットの部分との一致を検出する。このために、パターン比較回路16は、連続するNビットの範囲のそれぞれのビットを先頭とする格納パターンと比較パターンとの比較を行うN個の第1の比較器を備えるとともに、連続するNビットの範囲の直前のN−rビットの範囲のそれぞれのビットを先頭とする格納パターンと比較パターンとの比較を行うN−r個の第3の比較器を備える。そして、パターン検出回路18は、第1の周期内での一致の検出に続いて、q+1周期後の周期内に、K<N−rである場合には、第3の比較器のうちの、連続するNビットの範囲の直前のN−rビットの範囲の先頭からKビット目のビットを先頭とする格納パターンと比較パターンとの比較を行う比較器が一致を検出したことを条件として、特定パターンを含むシリアルデータの受信を検出する。N−r≦Kである場合には、第1の比較器のうちの、連続するNビットの範囲の先頭からK+r−Nビット目のビットを先頭とする格納パターンと比較パターンとの比較を行う比較器が一致を検出したことを条件として、特定パターンを含むシリアルデータの受信を検出する。   Alternatively, it is also possible to detect the coincidence with the portion of the J + 1 bit from the (L + 1) th bit of the specific pattern within the cycle after q + 1 cycle from the first cycle. Specifically, when K <N−r, the J-bit portion starting from the K-th bit in the Nr-bit range immediately before the continuous N-bit range and the specific pattern The coincidence with the J bit portion from the (L + 1) th bit is detected. When N−r ≦ K, the J bit portion starting from the K + r−N bit from the beginning of the range of consecutive N bits is matched with the J bit portion from the L + 1 bit of the specific pattern. To detect. For this purpose, the pattern comparison circuit 16 includes N first comparators for comparing the comparison pattern with the storage pattern starting with each bit in the range of consecutive N bits, and the consecutive N bits. Nr third comparators for comparing the storage pattern starting with each bit in the range of Nr bits immediately before the range and the comparison pattern. Then, following the detection of coincidence within the first period, the pattern detection circuit 18, when K <N−r, within the period after q + 1 period, of the third comparator, Identified on the condition that the comparator that compares the comparison pattern with the storage pattern starting with the Kth bit from the beginning of the Nr bit range immediately before the range of consecutive N bits has detected a match Detection of reception of serial data including a pattern. If N−r ≦ K, the comparison pattern is compared with the storage pattern of the first comparator starting with the K + r−Nth bit from the beginning of the range of consecutive N bits. The reception of serial data including a specific pattern is detected on condition that the comparator detects a match.

ここで、追加する第2もしくは第3の比較器の個数を少なくするために、図20に示した例のようにrがN/2に比較して小さい場合には、q周期後の周期内にJビットの部分との一致を検出することが好ましい。一方、図21に示した例のようにrがN/2に比較して大きい場合には、q+1周期後の周期内にJビットの部分との一致を検出することが好ましい。   Here, in order to reduce the number of second or third comparators to be added, when r is smaller than N / 2 as in the example shown in FIG. It is preferable to detect a match with the J bit portion. On the other hand, when r is larger than N / 2 as in the example shown in FIG. 21, it is preferable to detect the coincidence with the J-bit portion within the period after q + 1 period.

また、一般的に、後半の比較を行うパラレルクロック周期を必要に応じて変化させることにより、必要とする比較器の個数をN個に制限することも可能である。パラレルクロックの第1の周期内に、連続するNビットの範囲の先頭からKビット目を先頭とするLビットの部分と、特定パターンの先頭からLビットの部分との一致が検出されたときに、K<N−rである場合には、第1の周期からq周期後の周期内に、連続するNビットの範囲の先頭からK+rビット目のビットを先頭とするJビットの部分と、特定パターンのL+1ビット目からJビットの部分との一致を検出する。N−r≦Kである場合には、第1の周期からq+1周期後の周期内に、連続するNビットの範囲の先頭からK+r−Nビット目のビットを先頭とするJビットの部分と、特定パターンのL+1ビット目からJビットの部分との一致を検出する。そして、パターン比較回路が、連続するNビットの範囲のそれぞれのビットを先頭とする格納パターンと比較パターンとの比較を行うN個の比較器を備え、パターン検出回路は、第1の周期内の一致の検出に続いて、K<N−rである場合には、第1の周期からq周期後の周期内に、N個の比較器のうちの連続するNビットの範囲の先頭からK+rビット目のビットを先頭とする格納パターンと比較パターンとの比較を行う比較器が一致を検出したことを条件として、特定パターンを含むシリアルデータの受信を検出する。N−r≦Kである場合には、第1の周期からq+1周期後の周期内に、N個の比較器のうちの連続するNビットの範囲の先頭からK+r−Nビット目のビットを先頭とする格納パターンと比較パターンとの比較を行う比較器が一致を検出したことを条件として、特定パターンを含むシリアルデータの受信を検出する。   In general, it is also possible to limit the number of required comparators to N by changing the parallel clock period for performing the latter half comparison as necessary. When a match is detected between the L-bit portion starting from the beginning of the K-th bit in the range of consecutive N bits and the L-bit portion from the beginning of the specific pattern within the first period of the parallel clock , If K <N−r, within the period after q period from the first period, specify the J bit part starting with the K + r bit from the beginning of the range of consecutive N bits A match with the J bit portion from the (L + 1) th bit of the pattern is detected. If N−r ≦ K, within a period after q + 1 period from the first period, a portion of J bits starting from the K + r−Nth bit from the beginning of the range of consecutive N bits, A match with the portion of the J bit from the (L + 1) th bit of the specific pattern is detected. The pattern comparison circuit includes N comparators for comparing the comparison pattern with the storage pattern starting with each bit in the range of consecutive N bits, and the pattern detection circuit includes the first comparator within the first cycle. Following the detection of coincidence, if K <N−r, K + r bits from the beginning of the range of consecutive N bits of the N comparators within a period after q periods from the first period. The reception of serial data including the specific pattern is detected on the condition that the comparator that compares the storage pattern starting with the bit of the eye and the comparison pattern detects a match. If N−r ≦ K, within the period after q + 1 period from the first period, the K + r−Nth bit from the beginning of the range of consecutive N bits of the N comparators The reception of the serial data including the specific pattern is detected on the condition that the comparator that compares the stored pattern and the comparison pattern detects a match.

この場合、パターン比較回路は、例えば、受信パターン格納レジスタに格納されたパラレルデータを構成するビットの、連続するNビットの範囲のそれぞれのビットを先頭とする格納パターンと、特定パターンの対応する比較パターンとの比較を行うN個の比較器を備える。   In this case, the pattern comparison circuit, for example, compares the storage pattern starting with each bit in the range of consecutive N bits of the bits constituting the parallel data stored in the reception pattern storage register and the specific pattern. N comparators for comparing with the pattern are provided.

本発明は、基本的に以上のようなものである。
以上、本発明について詳細に説明したが、本発明は上記実施形態に限定されず、本発明の主旨を逸脱しない範囲において、種々の改良や変更をしてもよいのはもちろんである。
The present invention is basically as described above.
Although the present invention has been described in detail above, the present invention is not limited to the above-described embodiment, and it is needless to say that various improvements and modifications may be made without departing from the gist of the present invention.

10,40,50,60,70,80,90,110,120 受信装置
12,12B,82,82D シリアルパラレル変換回路
14,14A、14B、84,84A、84C、84D 受信パターン格納レジスタ
16,16A,16B、16C、16D、88A、88B パターン比較回路
18,18A,18B、18D パターン検出回路
20,20A1,20A2,20B、32,54,86,86A、86C フリップフロップ(FF)
22,22B、22C、22D、44,92A、92B 比較器
24,24B、38 マルチプレクサ
26,26B、94A EXOR回路
28,28B、96A NOR回路
30,34 AND回路
36 比較パターン選択部
42,48,56,98B 加算器
46 1ビット右シフト回路
52,58,62,102B 大小比較回路
10, 40, 50, 60, 70, 80, 90, 110, 120 Receiving device 12, 12B, 82, 82D Serial to parallel conversion circuit 14, 14A, 14B, 84, 84A, 84C, 84D Reception pattern storage register 16, 16A , 16B, 16C, 16D, 88A, 88B Pattern comparison circuit 18, 18A, 18B, 18D Pattern detection circuit 20, 20A1, 20A2, 20B, 32, 54, 86, 86A, 86C Flip-flop (FF)
22, 22B, 22C, 22D, 44, 92A, 92B Comparator 24, 24B, 38 Multiplexer 26, 26B, 94A EXOR circuit 28, 28B, 96A NOR circuit 30, 34 AND circuit 36 Comparison pattern selection unit 42, 48, 56 , 98B Adder 46 1-bit right shift circuit 52, 58, 62, 102B Size comparison circuit

Claims (7)

Mビット長の既知のビットパターンを有する検出対象部分を含むシリアルデータを受信する受信装置であって、
受信したシリアルデータを構成する各ビットのデータを、受信した順に並べてNビット(N<M)幅のパラレルデータを生成するシリアルパラレル変換回路と、
前記シリアルパラレル変換回路が生成したNビット幅のパラレルデータが格納される第1のレジスタ、および、該第1のレジスタに格納されたパラレルデータが、順次、パラレルクロックに同期してシフトされて格納される1つもしくは複数の第2のレジスタとからなるレジスタ群と、
前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの、前記シリアルデータとして受信した順に連続するNビットの範囲のそれぞれのビットを先頭とするLビット(N≦L<M)の部分と、前記既知のビットパターンの対応する部分とを比較する比較回路と、
前記比較回路が、前記パラレルクロックの第1の周期内において、そのときに前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納されているパラレルデータを構成するビットの前記連続するNビットの範囲の先頭からKビット目(K=0〜N−1)を先頭とするLビットの部分と、前記既知のビットパターンの先頭からLビットの部分との一致を検出し、さらに、L/Nの商をq、余りをrとして、K、N、q、rによって決まる前記パラレルクロックの特定の周期内において、そのときに前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納されているパラレルデータを構成するビットの、前記連続するNビットの範囲およびK、N、rによって決まる特定のビットを先頭とするJビット(J≦M−L)の部分と、前記既知のビットパターンのL+1ビット目からJビットの部分との一致を検出したことを条件として、前記シリアルデータの受信を検出する検出回路とを備えることを特徴とする受信装置。
A receiving apparatus for receiving serial data including a detection target portion having a known bit pattern having an M bit length,
A serial-parallel conversion circuit that generates parallel data of N bits (N <M) width by arranging the data of each bit constituting the received serial data in the order of reception;
A first register storing N-bit parallel data generated by the serial-parallel conversion circuit, and the parallel data stored in the first register are sequentially shifted and stored in synchronization with a parallel clock. A group of registers comprising one or more second registers to be
Each bit in the range of N bits consecutive in the order received as the serial data of the bits constituting the plurality of parallel data stored in the first register and the one or more second registers is set as the head. A comparison circuit for comparing a portion of L bits (N ≦ L <M) to be compared with a corresponding portion of the known bit pattern;
The comparison circuit, the Oite the first cycle of the parallel clock, said bits forming the parallel data stored in said first register and said one or more second register at that time A match between an L-bit portion starting from the K-th bit (K = 0 to N−1) from the beginning of a range of consecutive N bits and an L-bit portion from the beginning of the known bit pattern is detected; Furthermore, the quotient of L / N q, the remainder as r, K, N, q, Oite within a particular period of the parallel clock determined by r, the first register and the one or more at that time the two bits constituting the parallel data stored in the register, the range of N bits, wherein the successive and K, N, J bits (J ≦ M to start a specific bit determined by r of L) and a detection circuit for detecting reception of the serial data on condition that a match between the L + 1 bit and the J bit portion from the (L + 1) th bit of the known bit pattern is detected. apparatus.
前記特定の周期が前記パラレルクロックの第1の周期からq周期後の周期であり、前記特定のビットが、
(1A)K<N−rである場合には、前記連続するNビットの範囲の先頭からK+rビット目のビットであり、
(2B)N−r≦Kである場合には、前記連続するNビットの範囲の直後のrビットの範囲の先頭からK+r−Nビット目のビットである、
もしくは、
前記特定の周期が前記パラレルクロックの第1の周期からq+1周期後の周期であり、前記特定のビットが、
(1B)K<N−rである場合には、前記連続するNビットの範囲の直前のN−rビットの範囲の、先頭からKビット目のビットであり、
(2A)N−r≦Kである場合には、前記連続するNビットの範囲の先頭からK+r−Nビット目のビットである、
ことを特徴とする請求項1記載の受信装置。
The specific cycle is a cycle after q cycles from the first cycle of the parallel clock, and the specific bit is:
(1A) If K <N−r, it is the K + rth bit from the beginning of the range of consecutive N bits,
(2B) If N−r ≦ K, the K + r−N-th bit from the beginning of the r-bit range immediately after the continuous N-bit range.
Or
The specific period is a period after q + 1 period from the first period of the parallel clock, and the specific bit is:
(1B) If K <N−r, it is the Kth bit from the beginning of the range of Nr bits immediately before the range of consecutive N bits,
(2A) If N−r ≦ K, it is the K + r−Nth bit from the beginning of the range of the consecutive N bits.
The receiving apparatus according to claim 1.
前記比較回路が、
前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うN個の第1の比較器を備えるとともに、
前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲の直後のrビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うr個の第2の比較器と、前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲の直前のN−rビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うN−r個の第3の比較器と、の少なくとも一方を備え、
前記検出回路が、
前記特定の周期を前記第1の周期からq周期後の周期とし、
(1A)K<N−rである場合には、前記第1の比較器のうちの、前記連続するNビットの範囲の先頭からK+rビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+rビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
(2B)N−r≦Kである場合には、前記第2の比較器のうちの、前記連続するNビットの範囲の直後のrビットの範囲の先頭からK+r−Nビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該Kビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビットからJビットの部分との、
一致を検出したことを条件として前記シリアルデータの受信を検出するか、
もしくは、
前記特定の周期を前記第1の周期からq+1周期後の周期とし、
(1B)K<N−rである場合には、前記第3の比較器のうちの、前記連続するNビットの範囲の直前のN−rビットの範囲の先頭からKビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該Kビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
(2A)N−r≦Kである場合には、前記第1の比較器のうちの、前記連続するNビットの範囲の先頭からK+r−Nビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+r−Nビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
一致を検出したことを条件として前記シリアルデータの受信を検出することを特徴とする請求項2記載の受信装置。
The comparison circuit is
A portion starting from each bit in the range of the consecutive N bits of the bits constituting a plurality of parallel data stored in the first register and the one or more second registers and the known bit Comprising N first comparators for comparison with corresponding parts of the pattern;
Each bit in the range of r bits immediately after the range of consecutive N bits of the bits constituting the plurality of parallel data stored in the first register and the one or more second registers is set as the head. R second comparators for comparing a portion to be matched with a corresponding portion of the known bit pattern, and a plurality of parallels stored in the first register and the one or more second registers N-r comparisons are made between a portion starting with each bit in the range of Nr bits immediately before the range of consecutive N bits of the bits constituting the data and a corresponding portion of the known bit pattern. And at least one of the third comparator,
The detection circuit comprises:
The specific cycle is a cycle after q cycles from the first cycle,
(1A) If K <N−r, the portion of the first comparator starting with the K + r-th bit from the beginning of the continuous N-bit range and the known bit pattern Comparing with a corresponding portion of the J bit portion starting from the K + r bit and the L + 1 bit to J bit portion of the known bit pattern,
(2B) If N−r ≦ K, the K + r−N-th bit from the beginning of the r-bit range immediately after the continuous N-bit range in the second comparator And a comparator that compares the corresponding portion of the known bit pattern with the J bit portion starting from the K-th bit and the L + 1 bit to J bit portion of the known bit pattern. With,
Detecting reception of the serial data on condition that a match is detected,
Or
The specific period is a period after q + 1 period from the first period,
(1B) When K <N−r, the Kth bit from the beginning of the Nr bit range immediately before the continuous N bit range in the third comparator And a comparator for comparing the corresponding portion of the known bit pattern with the J bit portion starting from the K bit and the (L + 1) th bit of the known bit pattern With part,
(2A) When N−r ≦ K, the portion of the first comparator starting from the head of the K + r−N bits from the head of the continuous N-bit range and the known A comparator that performs a comparison with a corresponding portion of the bit pattern includes a J bit portion starting from the K + r-N bit and a L bit from the L + 1 bit to the J bit portion of the known bit pattern.
The receiving apparatus according to claim 2, wherein reception of the serial data is detected on condition that a match is detected.
(1A)K<N−rである場合には、前記特定の周期が前記パラレルクロックの第1の周期からq周期後の周期であり、前記特定のビットが前記連続するNビットの範囲の先頭からK+rビット目のビットであり、
(2A)N−r≦Kである場合には、前記特定の周期が前記パラレルクロックの第1の周期からq+1周期後の周期であり、前記特定のビットが前記連続するNビットの範囲の先頭からK+r−Nビット目のビットである、
ことを特徴とする請求項1記載の受信装置。
(1A) When K <N−r, the specific cycle is a cycle after q cycles from the first cycle of the parallel clock, and the specific bit is the head of the continuous N-bit range. To the K + rth bit from
(2A) When N−r ≦ K, the specific cycle is a cycle after q + 1 cycles from the first cycle of the parallel clock, and the specific bit is the head of the range of the consecutive N bits. To (K + r−N) th bit,
The receiving apparatus according to claim 1.
前記比較回路が、前記第1のレジスタおよび前記1つもしくは複数の第2のレジスタに格納された複数のパラレルデータを構成するビットの前記連続するNビットの範囲のそれぞれのビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行うN個の比較器を備え、
前記検出回路が、
(1A)K<N−rである場合には、前記N個の比較器のうちの、前記連続するNビットの範囲の先頭からK+rビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+rビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
(2A)N−r≦Kである場合には、前記N個の比較器のうちの、前記連続するNビットの範囲の先頭からK+r−Nビット目のビットを先頭とする部分と前記既知のビットパターンの対応する部分との比較を行う比較器が、該K+r−Nビット目のビットを先頭とするJビットの部分と前記既知のビットパターンのL+1ビット目からJビットの部分との、
一致を検出したことを条件として、前記シリアルデータの受信を検出することを特徴とする請求項4記載の受信装置。
A portion in which the comparison circuit starts with each bit in the range of the consecutive N bits of the bits constituting the plurality of parallel data stored in the first register and the one or more second registers. And N comparators for comparing the corresponding portion of the known bit pattern with
The detection circuit comprises:
(1A) When K <N−r, a portion of the N comparators beginning with the K + r-th bit from the head of the continuous N-bit range and the known bit pattern Comparing with a corresponding portion of the J bit portion starting from the K + r bit and the L + 1 bit to J bit portion of the known bit pattern,
(2A) If N−r ≦ K, a portion of the N comparators starting from the head of the K + r−N-th bit from the head of the continuous N-bit range and the known A comparator that performs a comparison with a corresponding portion of the bit pattern includes a J bit portion starting from the K + r-N bit and a L bit from the L + 1 bit to the J bit portion of the known bit pattern.
The receiving apparatus according to claim 4, wherein reception of the serial data is detected on condition that a match is detected.
M=I・L(Iは2以上の整数)であり、J=Lであることを特徴とする請求項1ないし5のいずれかに記載の受信装置。   6. The receiving apparatus according to claim 1, wherein M = I · L (I is an integer of 2 or more) and J = L. 前記比較回路が、所定のビット数の不一致を許して一致を検出することを特徴とする請求項1ないし6のいずれかに記載の受信装置。   The receiving device according to claim 1, wherein the comparison circuit detects a match by allowing a predetermined number of bits to be mismatched.
JP2011189453A 2011-08-31 2011-08-31 Receiver Expired - Fee Related JP5802488B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011189453A JP5802488B2 (en) 2011-08-31 2011-08-31 Receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011189453A JP5802488B2 (en) 2011-08-31 2011-08-31 Receiver

Publications (2)

Publication Number Publication Date
JP2013051613A JP2013051613A (en) 2013-03-14
JP5802488B2 true JP5802488B2 (en) 2015-10-28

Family

ID=48013333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011189453A Expired - Fee Related JP5802488B2 (en) 2011-08-31 2011-08-31 Receiver

Country Status (1)

Country Link
JP (1) JP5802488B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108702224B (en) * 2016-03-09 2021-05-25 皇家飞利浦有限公司 Method and apparatus for start of packet detection in a digital communication system
CN116455530B (en) * 2023-06-20 2023-11-03 中星联华科技(北京)有限公司 Error code instrument, code pattern generation method and device, electronic equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5081654A (en) * 1989-05-12 1992-01-14 Alcatel Na Network Systems Corp. Parallel bit detection circuit for detecting frame synchronization information imbedded within a serial bit stream and method for carrying out same
JPH0442630A (en) * 1990-06-08 1992-02-13 Fujitsu Ltd Synchronizing state identification circuit
JPH05252154A (en) * 1992-03-05 1993-09-28 Fujitsu Ltd Coincidence detection circuit
JPH0637744A (en) * 1992-07-16 1994-02-10 Fujitsu Ltd Parallel pattern detection circuit

Also Published As

Publication number Publication date
JP2013051613A (en) 2013-03-14

Similar Documents

Publication Publication Date Title
JP5965219B2 (en) Receiver
RU2009108263A (en) SERIAL CODER WITH DOUBLE DATA TRANSMISSION SPEED AND SMALL DEFAULT OUTPUT
JP5633636B2 (en) Transmission delay difference correction method, communication apparatus, and communication system
US8401138B2 (en) Serial data receiver circuit apparatus and serial data receiving method
JP5802488B2 (en) Receiver
US20110154159A1 (en) Cyclic redundancy check code generating circuit and cyclic redundancy check code generating method
US7528748B2 (en) Serial data receiving circuit and serial data receiving method
US8861582B2 (en) Decision feedback equalizer, receiving circuit, and decision feedback equalization processing method
JP4336860B2 (en) Serial interface circuit and serial receiver
US5408476A (en) One bit error correction method having actual data reproduction function
US8432995B2 (en) Algorithmic matching of a deskew channel
JP3579039B2 (en) Error correction circuit using cyclic code
JP5550413B2 (en) CRC calculation circuit
JP4743456B2 (en) Data generator
JP2013070184A (en) Serial synchronization detection method and synchronization detection method
KR100439225B1 (en) A circuit of error inspection for high rate data
KR100667546B1 (en) Test device and method of serial data link
JP2009117883A (en) Calculation processing device
JPH03135240A (en) Cell synchronous circuit
JP2008077125A (en) Interface circuit
JP2003174436A (en) Code inspecting method and circuit
JP3279243B2 (en) Digital comparator
JP2008076382A (en) Serial encoder data conversion circuit, and servo drive system
JP2008071221A (en) Synchronization circuit
KR20110060349A (en) Method and circuit for synchronization, and data synchronization apparatus having the same

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20130430

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20130531

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20130531

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140707

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150619

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150721

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: 20150811

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150831

R150 Certificate of patent or registration of utility model

Ref document number: 5802488

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

LAPS Cancellation because of no payment of annual fees