JP2013055502A - Serial communication circuit - Google Patents

Serial communication circuit Download PDF

Info

Publication number
JP2013055502A
JP2013055502A JP2011192243A JP2011192243A JP2013055502A JP 2013055502 A JP2013055502 A JP 2013055502A JP 2011192243 A JP2011192243 A JP 2011192243A JP 2011192243 A JP2011192243 A JP 2011192243A JP 2013055502 A JP2013055502 A JP 2013055502A
Authority
JP
Japan
Prior art keywords
symbol
circuit
lanes
symbols
skew
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2011192243A
Other languages
Japanese (ja)
Inventor
Yoshinori Shimosakota
義則 下迫田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2011192243A priority Critical patent/JP2013055502A/en
Publication of JP2013055502A publication Critical patent/JP2013055502A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to perform skew adjustment with the use of the received symbols at the time of return from a low power consumption mode, and to perform a quick return to a normal communication state.SOLUTION: A serial communication circuit comprises: a physical layer receiving circuit which reproduces a clock from a serial reception signal of a plurality of coded lanes, reproduces a reception symbol for every lane, converts the reception symbols of the plurality of lanes decoded after byte align and SP conversion into the reception symbols synchronized with the same clock, and outputs the converted symbols; and an inter-lane skew adjustment circuit which adjusts a symbol skew among lanes relative to the reception symbols of the plurality of lanes. The serial communication circuit detects a prescribed detection reference symbol from the reception symbol for every lane, starts counting of a detection signal in response to the detection signal by a counter circuit, and adjusts an inter-lane symbol skew by delaying the reception symbols of the plurality of lanes output from the physical layer receiving circuit by a delay amount corresponding to a selection signal of a count value.

Description

本発明は、例えば、PCI Express規格などの高速シリアル通信回路に適用されるシリアル通信回路に関する。   The present invention relates to a serial communication circuit applied to, for example, a high-speed serial communication circuit such as a PCI Express standard.

例えば、特許文献1において、PCI Express規格に準拠したシリアル通信回路におけるバイトスキュー補償方法及びこのための物理階層受信機が開示されている。特許文献1に開示されたバイトスキュー補償方法は、受信されるデータがトレーニングシーケンスであるかの可否を判断する段階、受信されるデータがトレーニングシーケンスである場合、トレーニングシーケンスを用いてコンマシンボルを基準としてレーンのそれぞれに対して整列ポイントを設定する段階、及び受信されるデータがトレーニングシーケンスではない場合、レーンのそれぞれに対してスキップシンボルの付加又は削除によって整列ポイントをシフトする段階を含む。従って、スキップシンボルの付加又は削除にもかかわらず、効果的にバイトスキューを補償することができる。   For example, Patent Document 1 discloses a byte skew compensation method in a serial communication circuit compliant with the PCI Express standard and a physical layer receiver for this. The byte skew compensation method disclosed in Patent Document 1 determines whether or not received data is a training sequence. When the received data is a training sequence, a reference to a comma symbol is used using the training sequence. Setting alignment points for each of the lanes and, if the received data is not a training sequence, shifting the alignment points by adding or deleting skip symbols for each of the lanes. Therefore, it is possible to effectively compensate for the byte skew despite the addition or deletion of the skip symbol.

また、例えば、特許文献2において、シンボルの個数が各々のレーン毎に異なる場合であっても、簡単な処理によって、各々のレーンに対応する分割データ列の間のスキュー調整を行うことができる受信装置が開示されている。特許文献2において開示された受信装置は、複数のレーンのそれぞれに対応して、受信した分割データ列のシンボルの個数を1個以上に調整する処理を行って処理済み分割データ列を生成する弾性バッファと、処理済み分割データ列の間のスキュー調整を行うスキュー調整回路とを備え、スキュー調整回路は、複数のレーンのそれぞれに対応して設けられて処理済み分割データ列内の第1のシンボルを判別する判別回路を有し、判別回路の判別結果に基づいて、それぞれの処理済み分割データ列におけるシンボルの終了を検出し、終了を検出したタイミングに基づいて処理済み分割データ列の間のスキュー調整を行うことを特徴としている。   Further, for example, in Patent Document 2, even when the number of symbols differs for each lane, reception that can perform skew adjustment between divided data strings corresponding to each lane by simple processing. An apparatus is disclosed. The receiving device disclosed in Patent Document 2 is an elastic device that generates a processed divided data sequence by performing a process of adjusting the number of symbols of the received divided data sequence to one or more corresponding to each of a plurality of lanes. A buffer and a skew adjustment circuit that adjusts a skew between the processed divided data strings, and the skew adjustment circuit is provided corresponding to each of the plurality of lanes and is a first symbol in the processed divided data string And determining the end of the symbol in each processed divided data sequence based on the determination result of the determination circuit, and the skew between the processed divided data sequences based on the timing at which the end is detected It is characterized by making adjustments.

PCI Express規格などに準拠し、高速シリアルデータを複数レーンに分けて転送するシリアル通信方式において、転送レーンの遅延にスキューが発生するため、受信側ではスキューを調整する必要がある。   In a serial communication system that conforms to the PCI Express standard and transfers high-speed serial data divided into a plurality of lanes, a skew occurs in the delay of the transfer lane, and therefore the receiver needs to adjust the skew.

図7(a)は、特許文献1において開示された従来技術に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、図7(b)はそのスキュー調整後のタイミングチャートである。特許文献1においては、リンクトレーニング時や通常通信時におけるスキュー調整方法が実施されているが、図7に示すように、低消費電力モードなどにおいて一時的に通信が停止した状態から復帰時スキューの再調整が必要になった場合、上記手法だけでは誤調整の可能性があり、そのような状態になった時、受信エラー、再送を繰り返しその後復帰となるため、復帰時間に時間がかかるという問題点があった。   FIG. 7A is a timing chart before skew adjustment in the conventional high-speed serial communication circuit disclosed in Patent Document 1, and FIG. 7B is a timing chart after skew adjustment. In Patent Document 1, a skew adjustment method at the time of link training or normal communication is carried out. As shown in FIG. 7, the skew at the time of return from a state in which communication is temporarily stopped in a low power consumption mode or the like. When readjustment is necessary, there is a possibility of misadjustment with the above method alone. When such a situation occurs, it takes a long time to return because it repeats reception errors and retransmissions and then returns. There was a point.

図10(a)は、特許文献2において開示された従来技術に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、図10(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。また、図14(a)は当該従来技術に係る高速シリアル通信回路においてカウンタ値のみで制御したときのスキュー調整前のタイミングチャートであり、図14(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。特許文献2に係る方法は、内部状態によらずスキュー調整可能な方法であるが、図10及び図14に示すように、スキュー調整後、後段の回路に有効データ(オーダード・セットでないシンボル)を重複出力してしまう可能性があるという問題点があった。   FIG. 10A is a timing chart before skew adjustment in the conventional high-speed serial communication circuit disclosed in Patent Document 2, and FIG. 6 is a timing chart when the inter-lay skew adjustment is performed using the current skew adjustment value after the inter-skew adjustment. FIG. 14A is a timing chart before skew adjustment when only the counter value is controlled in the high-speed serial communication circuit according to the related art, and FIG. 14B is a skew adjustment previously performed in that case. FIG. 10 is a timing chart when the inter-lay skew adjustment is performed using the current skew adjustment value after the inter-lay skew adjustment is performed. FIG. The method according to Patent Document 2 is a method capable of skew adjustment regardless of the internal state. However, as shown in FIGS. 10 and 14, after skew adjustment, effective data (symbols not in an ordered set) is stored in a subsequent circuit. There was a problem that there was a possibility of duplicate output.

本発明の目的は以上の問題点を解決し、低消費電力モードから復帰時にその受信シンボルでスキュー調整を実施することができ、通常通信状態への迅速な復帰を行うことができるシリアル通信回路を提供することにある。   An object of the present invention is to provide a serial communication circuit that solves the above-described problems, can perform skew adjustment with the received symbol when returning from the low power consumption mode, and can quickly return to the normal communication state. It is to provide.

本発明に係るシリアル通信回路は、
所定の符号化方式で符号化された複数のレーンのシリアル受信信号からクロックの再生を行い、再生されたクロックを用いて上記シリアル受信信号から受信シンボルを各レーン毎に再生し、再生された各レーン毎の受信シンボルに対してバイトアライン及びシリアル/パラレル変換後、上記符号化方式に対応する復号化方式で復号化してエラスティックバッファに格納し、上記エラスティックバッファにより複数のレーンの受信シンボルを同一のクロックに同期した受信シンボルに変換して出力する物理層受信回路と、
上記物理層受信回路から出力される複数のレーンの受信シンボルに対してレーン間のシンボルスキューを調整するレーン間スキュー調整回路とを備えたシリアル通信回路であって、
上記レーン間スキュー調整回路は、
制御ステートにより変更可能な所定の検出基準シンボルを上記受信シンボルからレーン毎に検出し、検出信号を出力する検出回路と、
上記検出信号に応答して上記検出信号の計数を開始し、当該計数のカウンタ値を出力し、全てのレーンで上記検出信号を検出したとき計数を停止するカウンタ回路と、
上記カウンタ回路から出力されるカウンタ値を選択信号とし、当該選択信号に対応する遅延量だけ、上記物理層受信回路から出力される複数のレーンの受信シンボルに対して遅延させることによりレーン間のシンボルスキューを調整する信号遅延選択回路とを備えたことを特徴とする。
Serial communication circuit according to the present invention,
A clock is recovered from serial received signals of a plurality of lanes encoded by a predetermined encoding method, and received symbols are recovered from the serial received signal for each lane using the recovered clock. After byte alignment and serial / parallel conversion for the received symbols for each lane, the received symbols are decoded by a decoding method corresponding to the above encoding method and stored in an elastic buffer, and the received symbols of a plurality of lanes are stored by the elastic buffer. A physical layer receiving circuit that converts the received symbol synchronized with the same clock and outputs the received symbol;
A serial communication circuit comprising an inter-lane skew adjustment circuit that adjusts a symbol skew between lanes for received symbols of a plurality of lanes output from the physical layer reception circuit,
The inter-lane skew adjustment circuit is
A detection circuit that detects a predetermined detection reference symbol that can be changed according to a control state for each lane from the received symbol, and outputs a detection signal;
A counter circuit that starts counting the detection signal in response to the detection signal, outputs a counter value of the count, and stops counting when the detection signal is detected in all lanes;
The counter value output from the counter circuit is used as a selection signal, and symbols between lanes are delayed by a delay amount corresponding to the selection signal with respect to the reception symbols of a plurality of lanes output from the physical layer reception circuit. And a signal delay selection circuit for adjusting skew.

本発明に係るシリアル通信回路によれば、制御ステートにおける検出シンボルが変更できるため、そのステートにおける最適なスキュー調整方法が可能となり、例えば、低消費電力モードから復帰時にその受信シンボルでスキュー調整を実施することができ、通常通信状態への迅速な復帰を行うことができる。特に、省電力モードから復帰時スキュー再調整が必要である場合、リンク再トレーニングをすることなく高速にスキュー調整可能である。   According to the serial communication circuit of the present invention, since the detected symbol in the control state can be changed, an optimum skew adjustment method in that state becomes possible. For example, the skew adjustment is performed on the received symbol when returning from the low power consumption mode. And can quickly return to the normal communication state. In particular, when it is necessary to readjust the skew when returning from the power saving mode, the skew can be adjusted at high speed without performing link retraining.

本発明の第1の実施形態に係る高速シリアル通信回路の受信部の物理層全体の構成を示すブロック図である。It is a block diagram which shows the structure of the whole physical layer of the receiving part of the high-speed serial communication circuit which concerns on the 1st Embodiment of this invention. 図1のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a circuit configuration for one lane of the inter-lane skew adjustment circuit 6 of FIG. 1. 本発明の第2の実施形態に係る高速シリアル通信回路内のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。It is a block diagram which shows the circuit structure for 1 lane of the skew adjustment circuit 6 between lanes in the high-speed serial communication circuit based on the 2nd Embodiment of this invention. 本発明の第3の実施形態に係る高速シリアル通信回路内のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。It is a block diagram which shows the circuit structure for 1 lane of the skew adjustment circuit 6 between lanes in the high-speed serial communication circuit based on the 3rd Embodiment of this invention. 本発明の第4の実施形態に係る高速シリアル通信回路内のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。It is a block diagram which shows the circuit structure for 1 lane of the skew adjustment circuit 6 between lanes in the high-speed serial communication circuit based on the 4th Embodiment of this invention. 本発明の各実施形態に係る高速シリアル通信回路において用いるFTSオーダード・セットを示す図である。It is a figure which shows the FTS ordered set used in the high-speed serial communication circuit which concerns on each embodiment of this invention. 本発明の各実施形態に係る高速シリアル通信回路において用いるSKPオーダード・セットを示す図である。It is a figure which shows the SKP ordered set used in the high-speed serial communication circuit which concerns on each embodiment of this invention. (a)は従来技術に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、(b)はそのスキュー調整後のタイミングチャートである。(A) is a timing chart before skew adjustment in the conventional high-speed serial communication circuit, and (b) is a timing chart after the skew adjustment. (a)は第1の実施形態に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、(b)はその場合において連続するFTS、COM、SKP基準でのスキュー調整後のタイミングチャートである。(A) is a timing chart before skew adjustment in the high-speed serial communication circuit according to the first embodiment, and (b) is a timing chart after skew adjustment based on continuous FTS, COM, and SKP standards in that case. . 本発明の各実施形態に係る高速シリアル通信回路において用いる、PCI Express規格に準拠した制御ステートマシン10(LTSSM(Link Training and Status Machine))の状態遷移図である。It is a state transition diagram of the control state machine 10 (LTSMSM (Link Training and Status Machine)) based on the PCI Express standard used in the high-speed serial communication circuit according to each embodiment of the present invention. (a)は従来技術に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。(A) is a timing chart before skew adjustment in the high-speed serial communication circuit according to the prior art, and (b) in this case, after skew adjustment between the skews with the previously skew-adjusted value, this time skew-adjusted value 6 is a timing chart when adjusting skew between the rows. (a)は第1の実施形態に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。(A) is a timing chart before skew adjustment in the high-speed serial communication circuit according to the first embodiment, and (b) is a skew of this time after skew adjustment with a previously skew adjusted value in that case. FIG. 10 is a timing chart when adjusting the inter-lay skew with the adjusted value. FIG. (a)は第2の実施形態に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。(A) is a timing chart before skew adjustment in the high-speed serial communication circuit according to the second embodiment, and (b) is a skew of the current time after adjusting skew between lays with a previously skew adjusted value in that case. FIG. 10 is a timing chart when adjusting the inter-lay skew with the adjusted value. FIG. (a)は第3の実施形態に係る高速シリアル通信回路においてカウンタ値のみで制御したときのスキュー調整前のタイミングチャートであり、(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。(A) is a timing chart before skew adjustment when the high-speed serial communication circuit according to the third embodiment is controlled only by a counter value, and (b) is a timing chart between skews with a previously skew-adjusted value in that case. FIG. 10 is a timing chart when the inter-lay skew adjustment is performed using the current skew adjustment value after the skew adjustment. FIG. (a)は第3の実施形態に係る高速シリアル通信回路において検出信号及びカウンタ値で制御したときのスキュー調整前のタイミングチャートであり、(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。(A) is a timing chart before skew adjustment when controlled by a detection signal and a counter value in the high-speed serial communication circuit according to the third embodiment, and (b) is a value obtained by previously adjusting skew in that case. FIG. 10 is a timing chart when the inter-lay skew adjustment is performed using the skew adjustment value of this time after the inter-lay skew adjustment. FIG. (a)は従来技術に係る高速シリアル通信回路においてカウンタ値のみで制御したときのスキュー調整前のタイミングチャートであり、(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。(A) is a timing chart before skew adjustment when only the counter value is controlled in the high-speed serial communication circuit according to the prior art, and (b) is an inter-lay skew adjustment with a previously skew-adjusted value in that case. 9 is a timing chart when the inter-lay skew adjustment is performed using the current skew adjustment value. 第1の実施形態に係る高速シリアル通信回路の受信部の動作を示すスキュー調整処理を示すフローチャートである。It is a flowchart which shows the skew adjustment process which shows operation | movement of the receiving part of the high-speed serial communication circuit which concerns on 1st Embodiment. 第2の実施形態に係る高速シリアル通信回路の受信部の動作を示すスキュー調整処理を示すフローチャートである。10 is a flowchart showing a skew adjustment process showing the operation of the receiving unit of the high-speed serial communication circuit according to the second embodiment. 第3の実施形態に係る高速シリアル通信回路の受信部の動作を示すスキュー調整処理を示すフローチャートである。10 is a flowchart showing a skew adjustment process showing the operation of the receiving unit of the high-speed serial communication circuit according to the third embodiment. 図4のマルチプレクサ34の選択テーブルであって、選択信号に対する選択データを示す表である。5 is a selection table of the multiplexer 34 in FIG. 4, showing selection data for a selection signal.

以下、本発明に係る実施形態について図面を参照して説明する。なお、以下の各実施形態において、同様の構成要素については同一の符号を付している。   Hereinafter, embodiments according to the present invention will be described with reference to the drawings. In addition, in each following embodiment, the same code | symbol is attached | subjected about the same component.

第1の実施形態.
図1は本発明の第1の実施形態に係る高速シリアル通信回路の受信部の物理層全体の構成を示すブロック図である。図1において、本実施形態に係る高速シリアル通信回路の受信部は、特に、低消費電力モードから復帰時にその受信シンボルでスキュー調整を実施することができ、通常通信状態への迅速な復帰を行うためにレーン間スキュー調整回路6を備えたことを特徴としている。
First embodiment.
FIG. 1 is a block diagram showing the configuration of the entire physical layer of the receiving unit of the high-speed serial communication circuit according to the first embodiment of the present invention. In FIG. 1, the receiving unit of the high-speed serial communication circuit according to the present embodiment can perform skew adjustment with the received symbol when returning from the low power consumption mode, and quickly returns to the normal communication state. For this purpose, an inter-lane skew adjustment circuit 6 is provided.

図1において、本実施形態に係る高速シリアル通信回路の受信部は、物理層受信回路50と、レーン間スキュー調整回路6とを備えて構成される。ここで、物理層受信回路50は、
(a)例えば4つのレーンの差動信号伝送路を介して受信される8B10B符号化されたシリアル差動受信信号を受信して増幅した後、シングルエンド信号に変換して出力する受信信号レシーバ1−1〜1−4と、
(b)変換されたシングルエンド信号からクロックを再生するとともに、再生されたクロックに基づいて高速データの受信シンボルを再生して出力するクロック再生回路2−1〜2−4と、
(c)高速データの受信シンボルに対して再生クロックを用いてバイト単位でアラインしかつシリアル/パラレル変換してパラレルの受信シンボルを出力するバイトアラインSP(シリアルパラレル)変換器3−1〜3−4と、
(d)パラレルの受信シンボルに対して再生クロックを用いて10B8B復号化変換して変換後のパラレルの受信シンボルを出力する10B8B変換器4−1〜4−4と、
(e)変換後のパラレルの受信シンボルを一時的に格納して、クロックレートを再生クロックから同一の処理部クロックに変換して、当該処理部クロックに同期したパラレルデータの受信シンボルをレーン間スキュー調整回路6に出力するエラスティックバッファ5−1〜5−4とを備えて構成される。
また、レーン間スキュー調整回路6は、制御ステートマシン10からのステート情報に基づいて、低消費電力モードから復帰時にその受信シンボルでスキュー調整を実施し、通常通信状態への迅速な復帰を行う。
In FIG. 1, the reception unit of the high-speed serial communication circuit according to the present embodiment includes a physical layer reception circuit 50 and an inter-lane skew adjustment circuit 6. Here, the physical layer receiving circuit 50
(A) For example, a received signal receiver 1 that receives and amplifies an 8B10B-encoded serial differential reception signal received via a differential signal transmission path of four lanes, converts the amplified signal into a single-ended signal, and outputs the signal. -1 to 1-4,
(B) a clock recovery circuit 2-1 to 2-4 for recovering a clock from the converted single-ended signal and for recovering and outputting a received symbol of high-speed data based on the recovered clock;
(C) Byte-aligned SP (serial parallel) converters 3-1 to 3- that align the received symbols of high-speed data in units of bytes using a recovered clock and perform serial / parallel conversion to output parallel received symbols. 4 and
(D) 10B8B converters 4-1 to 4-4 for performing 10B8B decoding conversion on the parallel received symbols using the recovered clock and outputting the converted parallel received symbols;
(E) Temporarily storing the parallel received symbols after conversion, converting the clock rate from the recovered clock to the same processing unit clock, and converting the received symbols of parallel data synchronized with the processing unit clock to inter-lane skew Elastic buffers 5-1 to 5-4 for outputting to the adjustment circuit 6 are provided.
Further, the inter-lane skew adjustment circuit 6 performs skew adjustment on the received symbol when returning from the low power consumption mode based on the state information from the control state machine 10 and quickly returns to the normal communication state.

図2は図1のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。図2において、レーン間スキュー調整回路6の1レーン分の回路は、
(a)制御ステートマシン10からのステート情報に基づいて、例えば8ビットの受信シンボルから、詳細後述する所定の基準シンボルを検出しその検出信号を、カウンタ回路13及び全レーン検出判定回路12のアンドゲートの入力端子に出力する基準シンボル検出回路11と、
(b)当該レーンの検出信号及び他のすべてのレーンの検出信号に対して論理積を行って、その結果信号を全レーンの検出完了信号としてカウンタ回路13に出力するアンドゲートを備えた全レーン検出判定回路12と、
(c)当該レーンの検出信号を計数して、全レーンの検出完了信号の発生時においてそのカウンタ値を、全レーン検出完了時カウンタ値として選択信号発生器14に出力するカウンタ回路13と、
(d)全レーン検出完了時カウンタ値を所定期間格納遅延して選択信号としてマルチプレクサ26に出力する遅延型フリップフロップを備えた選択信号発生器14と、
(e)例えば8ビットの受信シンボルを、所定の複数の遅延時間のうち上記選択信号で示される遅延時間だけ遅延させて出力する信号遅延選択回路20とを備えて構成される。
FIG. 2 is a block diagram showing a circuit configuration for one lane of the inter-lane skew adjustment circuit 6 of FIG. In FIG. 2, the circuit for one lane of the inter-lane skew adjustment circuit 6 is
(A) Based on the state information from the control state machine 10, for example, a predetermined reference symbol, which will be described later in detail, is detected from an 8-bit received symbol, and the detection signal is used as the AND of the counter circuit 13 and all-lane detection determination circuit 12. A reference symbol detection circuit 11 for outputting to the input terminal of the gate;
(B) All lanes provided with AND gates that perform a logical product on the detection signals of the lane and the detection signals of all other lanes and output the result signals to the counter circuit 13 as detection completion signals of all lanes. A detection determination circuit 12;
(C) a counter circuit 13 that counts the detection signals of the lane and outputs the counter value to the selection signal generator 14 as the counter value when all lane detection is completed when the detection completion signal is generated for all lanes;
(D) a selection signal generator 14 provided with a delay type flip-flop that delays storage of the counter value at the completion of detection of all lanes for a predetermined period and outputs it to the multiplexer 26 as a selection signal;
(E) For example, the signal delay selection circuit 20 is configured to output an 8-bit reception symbol after delaying a delay time indicated by the selection signal among a plurality of predetermined delay times.

信号遅延選択回路20は、入力される受信シンボルを遅延させるために、互いに従属接続された5個の遅延型フリップフロップ21〜25と、上記選択信号に基づいて、入力される受信シンボル(データd0)及び各遅延型フリップフロップ21〜25からの各出力シンボル(データd1〜d5)のうちいずれか1つのシンボルを選択して出力するマルチプレクサ26とを備えて構成される。ここで、データd0〜d5の間で遅延時間が互いに異なる。   The signal delay selection circuit 20 delays an input received symbol, and includes five delay flip-flops 21 to 25 connected in cascade with each other and an input received symbol (data d0) based on the selection signal. And a multiplexer 26 that selects and outputs one of the output symbols (data d1 to d5) from each of the delay flip-flops 21 to 25. Here, the delay times differ between the data d0 to d5.

図9は本発明の各実施形態に係る高速シリアル通信回路において用いる、PCI Express規格に準拠した制御ステートマシン10(例えば、LTSSM(Link Training and Status Machine)を用いる。)の状態遷移図である(例えば、非特許文献1及び2参照。)。LTSSMは、リンクの初期化やトレーニング、エラーからの復旧といった状態管理を行うステートマシンであり、図9に示す各状態を有して、図9のごとく状態遷移する。   FIG. 9 is a state transition diagram of a control state machine 10 (for example, using LTSSM (Link Training and Status Machine)) conforming to the PCI Express standard used in the high-speed serial communication circuit according to each embodiment of the present invention ( For example, refer nonpatent literature 1 and 2.). The LTSSM is a state machine that performs state management such as link initialization, training, and recovery from an error. The state machine has each state shown in FIG. 9 and changes state as shown in FIG.

図6Aは本発明の各実施形態に係る高速シリアル通信回路において用いるFTSオーダード・セットを示す図である。図6Aに示すように、FTSオーダード・セットは、1個のCOM(comma)シンボルと、3個のFTS(Fast Training Sequence)シンボルとから構成される。ここで、COMシンボルは、各オーダード・セットの先頭に使用され、受信側はCOMシンボルによりオーダード・セットを検出できる。また、FTSオーダード・セットは、省電力モード(低消費電力モード)のL0sステート(一時的にシリアル通信が停止した状態をいう。)からフルオンのL0ステートに遷移させるときに使用する。   FIG. 6A is a diagram showing an FTS ordered set used in the high-speed serial communication circuit according to each embodiment of the present invention. As shown in FIG. 6A, the FTS ordered set is composed of one COM (comma) symbol and three FTS (Fast Training Sequence) symbols. Here, the COM symbol is used at the head of each ordered set, and the receiving side can detect the ordered set by the COM symbol. The FTS ordered set is used when a transition is made from the L0s state in the power saving mode (low power consumption mode) (which means a state in which serial communication is temporarily stopped) to the full-on L0 state.

図6Bは本発明の各実施形態に係る高速シリアル通信回路において用いるSKPオーダード・セットを示す図である。図6Bに示すように、SKPオーダード・セットは、1個のCOMシンボルと、3個のSKP(skip)シンボルとから構成される。ここで、SKPオーダード・セットはクロックの周波数差を吸収する目的で使用される。   FIG. 6B is a diagram showing an SKP ordered set used in the high-speed serial communication circuit according to each embodiment of the present invention. As shown in FIG. 6B, the SKP ordered set is composed of one COM symbol and three SKP (skip) symbols. Here, the SKP ordered set is used for the purpose of absorbing a clock frequency difference.

図8(a)は第1の実施形態に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、図8(b)はその場合において連続するFTS、COM、SKP基準でのスキュー調整後のタイミングチャートである。図2のレーン間スキュー調整回路6において、基準シンボル検出回路11は、制御ステートマシン10からのステート情報に基づいて検出シンボルを変更する。例えば、省電力モードのL0sステートから復帰シーケンスにおいて受信するFTSオーダード・セット(図6A)、SKPオーダード・セット(図6B)内の「FTSシンボル」、「COMシンボル」、「SKPシンボル」の連続を検出する。これらのシンボルを連続的に検出したら、検出信号を出力する。これに対して、カウンタ回路13は入力される検出信号の計数を開始し、サイクル毎にカウントアップし、全てのレーンの検出が終わったら(全レーンの検出完了信号の受信)その計数を停止し、そのカウンタ値を選択信号発生器14により蓄積しておき、信号遅延選択回路20の選択信号として用いる。例えば、図8に示すように、その動作により全てレーンのスキュー調整が完了する   FIG. 8A is a timing chart before skew adjustment in the high-speed serial communication circuit according to the first embodiment, and FIG. 8B is a diagram after skew adjustment based on continuous FTS, COM, and SKP standards in that case. It is a timing chart. In the inter-lane skew adjustment circuit 6 of FIG. 2, the reference symbol detection circuit 11 changes the detected symbol based on the state information from the control state machine 10. For example, the FTS ordered set (FIG. 6A) received in the return sequence from the L0s state in the power saving mode, the “FTS symbol”, the “COM symbol”, and the “SKP symbol” in the SKP ordered set (FIG. 6B). Detect continuity. When these symbols are continuously detected, a detection signal is output. On the other hand, the counter circuit 13 starts counting the input detection signal, counts up every cycle, and stops detecting when all the lanes are detected (reception of the detection completion signal for all the lanes). The counter value is accumulated by the selection signal generator 14 and used as a selection signal of the signal delay selection circuit 20. For example, as shown in FIG. 8, the lane skew adjustment is completed by the operation.

図11(a)は第1の実施形態に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、図11(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。図11に示すように、各レーンでFTSシンボル、COMシンボル、SKPシンボルを検出後、検出信号を立上げ、全てのレーンで検出できたら立下げる。検出信号がハイレベル(以下、Hレベルという。)の時はカウンタ回路13の計数をアップさせる。図11の波形ではレーン0の選択信号(スキュー調整のための遅延量を選択)が全レーンで検出完了(図11のタイミングt11)で2から3へ変化している。そのため、SKPシンボルが繰り返されているが、後段の処理ではSKPシンボルは無視されるため、特に影響はない。   FIG. 11A is a timing chart before skew adjustment in the high-speed serial communication circuit according to the first embodiment, and FIG. 11B is a graph after skew adjustment is performed with a previously skew adjusted value in that case. FIG. 6 is a timing chart when the skew adjustment between the lays is performed using the skew adjustment value of this time. As shown in FIG. 11, after detecting the FTS symbol, the COM symbol, and the SKP symbol in each lane, the detection signal is raised, and when it is detected in all the lanes, it is lowered. When the detection signal is at a high level (hereinafter referred to as H level), the count of the counter circuit 13 is increased. In the waveform of FIG. 11, the selection signal for lane 0 (selecting the delay amount for skew adjustment) changes from 2 to 3 upon completion of detection in all lanes (timing t11 in FIG. 11). For this reason, the SKP symbol is repeated, but the SKP symbol is ignored in the subsequent processing, so there is no particular influence.

図15は第1の実施形態に係る高速シリアル通信回路の受信部の動作を示すスキュー調整処理を示すフローチャートである。図15に示すように、ステップS1で制御ステートがリンクトレーニング中ならCOMシンボルを検出基準シンボルとし(ステップS2)、省電力モードのL0sステートから復帰ステートならFTS,COM,SKPを検出基準シンボルとする(ステップS3)。ステップS4で基準シンボルを検出したら、検出信号を立上げ出力し、カウンタ回路13のカウンタ値CNTを0に初期化した後スタートさせる。当該レーンで基準シンボルを検出したらカウンタ回路13のカウンタ値CNTを1だけインクリメントし(ステップS7)、全てのレーンで基準シンボルを検出できたら(ステップS6でYES)全てのレーンのカウンタ回路13を停止してそのカウンタ値を選択信号としてロードし(ステップS8)選択信号によりレーンの遅延値を変更し(ステップS9)、信号遅延選択回路20からスキュー調整後の受信シンボルを出力してスキュー調整が完了する(ステップS10)。   FIG. 15 is a flowchart showing a skew adjustment process showing the operation of the receiving unit of the high-speed serial communication circuit according to the first embodiment. As shown in FIG. 15, if the control state is link training in step S1, the COM symbol is set as a detection reference symbol (step S2), and if it is the return state from the L0s state in the power saving mode, FTS, COM, and SKP are set as detection reference symbols. (Step S3). When the reference symbol is detected in step S4, the detection signal is raised and output, the counter value CNT of the counter circuit 13 is initialized to 0, and then started. When the reference symbol is detected in the lane, the counter value CNT of the counter circuit 13 is incremented by 1 (step S7), and when the reference symbol is detected in all lanes (YES in step S6), the counter circuits 13 of all lanes are stopped. Then, the counter value is loaded as a selection signal (step S8), the delay value of the lane is changed by the selection signal (step S9), and the received symbol after skew adjustment is output from the signal delay selection circuit 20 to complete the skew adjustment. (Step S10).

従来技術では、省電力モードのL0sステートから復帰時に誤スキュー調整の可能性や、有効データが重複して後段の処理回路に出力する可能性(それによる通信遮断の可能性)があったが、より早い段階での受信シンボルを基準としてスキュー調整しているのでその可能性はなくなる。すなわち、制御ステートにおける検出シンボルが変更できるため、その制御ステートにおける最適なスキュー調整方法が可能となる。   In the prior art, there was a possibility of incorrect skew adjustment when returning from the L0s state in the power saving mode, and there was a possibility that valid data would be duplicated and output to the processing circuit in the subsequent stage (possibility of communication interruption thereby). Since the skew is adjusted based on the received symbol at an earlier stage, the possibility is eliminated. That is, since the detected symbol in the control state can be changed, an optimum skew adjustment method in the control state is possible.

第2の実施形態.
図3は本発明の第2の実施形態に係る高速シリアル通信回路内のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。なお、図1の回路構成については第2の実施形態でも同様である。第2の実施形態は、図2の第1の実施形態に比較して、基準シンボル検出回路11は、制御ステートマシン10からのステート情報に基づいて、例えば8ビットの受信シンボルから、所定の基準シンボルを検出しその検出信号を発生することに加えて、シンボルの増減情報を発生してカウンタ回路13に出力することを特徴としている。
Second embodiment.
FIG. 3 is a block diagram showing a circuit configuration for one lane of the inter-lane skew adjustment circuit 6 in the high-speed serial communication circuit according to the second embodiment of the present invention. The circuit configuration in FIG. 1 is the same as in the second embodiment. In the second embodiment, compared to the first embodiment of FIG. 2, the reference symbol detection circuit 11 is based on the state information from the control state machine 10, for example, from a received symbol of 8 bits. In addition to detecting a symbol and generating a detection signal, it is characterized in that symbol increase / decrease information is generated and output to the counter circuit 13.

図3において、基準シンボル検出回路11は制御ステートマシン10からのステート情報に基づいて検出基準シンボルを変更できる。例えば、省電力モードL0sステートから復帰する時は「FTSシンボル」、「COMシンボル」、「SKPシンボル」の連続を検出する。これらのシンボルの連続を検出したら、検出信号を出力する。また、COMシンボルとSKPシンボルの連続SKPオーダード・セットなので、送受信デバイスのクロック周波数差吸収のためにエラスティックバッファ5−1〜5−4において、SKPシンボルが追加、もしくは削除されることがあり、その情報はPIPE(PHY Interface for the PCI Express Architecture)インターフェース(物理層LSIと上位層(例えばMAC層)とのインターフェースを定めたものである。)を使用していれば、COMシンボルを受信するタイミングと同時にSKPシンボル増減情報が送られてくるので、その情報をカウンタ回路13に出力する。カウンタ回路13は検出信号でカウントを開始する。このとき、SKPシンボルが削除されていれば+1、SKPシンボルが追加されていれば、−1だけ加算した(すなわち、+1だけ減算した)初期値でサイクル毎にカウントアップし、全てのレーンの検出が終わったら停止し、そのカウンタ値を蓄積しておき、遅延選択回路の選択信号として用いる。その動作により全てレーンのスキュー調整が完了する。   In FIG. 3, the reference symbol detection circuit 11 can change the detection reference symbol based on the state information from the control state machine 10. For example, when returning from the power saving mode L0s state, a sequence of “FTS symbol”, “COM symbol”, and “SKP symbol” is detected. When the continuation of these symbols is detected, a detection signal is output. Further, since the SKP ordered set of COM symbols and SKP symbols is used, the SKP symbols may be added or deleted in the elastic buffers 5-1 to 5-4 in order to absorb the clock frequency difference of the transmitting and receiving devices. If the information uses a PIPE (PHY Interface for the PCI Express Architecture) interface (which defines an interface between a physical layer LSI and an upper layer (for example, a MAC layer)), a COM symbol is received. Since the SKP symbol increase / decrease information is sent simultaneously with the timing, the information is output to the counter circuit 13. The counter circuit 13 starts counting with the detection signal. At this time, if the SKP symbol is deleted, +1 is added. If the SKP symbol is added, -1 is added (that is, +1 is subtracted), and the count is incremented for each cycle to detect all lanes. Is stopped, the counter value is accumulated and used as a selection signal for the delay selection circuit. This operation completes the lane skew adjustment.

図12(a)は第2の実施形態に係る高速シリアル通信回路においてスキュー調整前のタイミングチャートであり、図12(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。図12から明らかなように、レーン0でSKPシンボルの削除が起こっているため、検出信号が立ち上がった後のカウンタ値は+1からスタートしてカウントしている。   FIG. 12A is a timing chart before skew adjustment in the high-speed serial communication circuit according to the second embodiment, and FIG. 12B is a graph after skew adjustment is performed using the previously skew-adjusted value in that case. FIG. 6 is a timing chart when the skew adjustment between the lays is performed using the skew adjustment value of this time. As apparent from FIG. 12, since the SKP symbol is deleted in lane 0, the counter value after the detection signal rises starts from +1 and starts counting.

図16は第2の実施形態に係る高速シリアル通信回路の受信部の動作を示すスキュー調整処理を示すフローチャートである。図16において、ステップS1で制御ステートがリンクトレーニング中ならCOMシンボルを検出基準シンボルとし、省電力モードのL0sステートから復帰ステートならFTS,COM,SKPを検出基準シンボルとする。それ以外のときはSKPオーダード・セットのシンボル増減情報による調整のみ実施する(ステップS11)。ステップS4で基準シンボルを検出したら、検出信号を出力しカウンタ回路13の計数をスタートさせる。そのとき、SKP削除があればカウンタ値CNTの初期値を+1だけ加算し(ステップS14)、SKP追加があれば初期値を−1だけ加算し(すなわち、1だけ減算し)開始する。全てのレーンで基準シンボルを検出できたら(ステップS6)、全てのレーンのカウンタ回路13を停止してその値を選択信号としてロードし(ステップS8)、選択信号によりレーンの遅延利を変更し(ステップS9)信号遅延選択回路20からスキュー調整後の受信シンボルを出力して当該スキュー調整を完了する(ステップS10)。   FIG. 16 is a flowchart showing a skew adjustment process showing the operation of the receiving unit of the high-speed serial communication circuit according to the second embodiment. In FIG. 16, if the control state is link training in step S1, the COM symbol is used as a detection reference symbol, and if it is the return state from the L0s state in the power saving mode, FTS, COM, and SKP are used as detection reference symbols. In other cases, only adjustment based on the symbol increase / decrease information of the SKP ordered set is performed (step S11). When the reference symbol is detected in step S4, a detection signal is output and counting of the counter circuit 13 is started. At that time, if there is SKP deletion, the initial value of the counter value CNT is incremented by +1 (step S14), and if there is SKP addition, the initial value is incremented by -1 (that is, subtracted by 1) and started. When the reference symbols have been detected in all lanes (step S6), the counter circuits 13 of all lanes are stopped and the values are loaded as selection signals (step S8), and the delay interest of the lanes is changed by the selection signals ( Step S9) The received symbol after skew adjustment is output from the signal delay selection circuit 20, and the skew adjustment is completed (Step S10).

従来技術では、省電力モードのL0sステートから復帰時に誤スキュー調整の可能性や有効データを重複して後段の処理回路に出力する可能性があったが、より早い段階での受信シンボルを基準としてスキュー調整しているのでその可能性はなくなる。さらに、図1の物理層受信回路のエラスティックバッファ5−1〜5−4においてシンボル追加又は削除の調整があった場合でも、SKPシンボルの増減に対応し、従来技術に比較してより高精度でスキュー調整することができる。   In the prior art, there is a possibility of erroneous skew adjustment and a possibility of valid data being duplicated and output to a subsequent processing circuit when returning from the L0s state in the power saving mode, but the received symbol at an earlier stage is used as a reference. Since the skew is adjusted, the possibility disappears. Furthermore, even when the addition or deletion of symbols is adjusted in the elastic buffers 5-1 to 5-4 of the physical layer receiving circuit in FIG. 1, it corresponds to the increase / decrease of the SKP symbols, and is more accurate than the prior art. You can adjust skew.

第3の実施形態.
図4は本発明の第3の実施形態に係る高速シリアル通信回路内のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。なお、図1の回路構成については第3の実施形態でも同様である。第3の実施形態は、図3の第2の実施形態に比較して、信号遅延選択回路20に代えて、受信された2シンボル(16ビット)を1シンボル(8ビット)×2列に分割して信号の遅延選択を行う信号遅延選択回路30を備えたことを特徴としている。すなわち、本実施形態では、2シンボル(16ビット)を同時に物理層受信回路50とインターフェースをとることを特徴としており、上述のPIPEインターフェースでも規定されている。すなわち、物理層受信回路50は1サイクルに2シンボルの受信シンボルを出力するように構成され、レーン間スキュー調整回路6は当該受信シンボルに対してスキュー調整する。
Third embodiment.
FIG. 4 is a block diagram showing a circuit configuration for one lane of the inter-lane skew adjustment circuit 6 in the high-speed serial communication circuit according to the third embodiment of the present invention. Note that the circuit configuration of FIG. 1 is the same in the third embodiment. Compared to the second embodiment of FIG. 3, the third embodiment divides received two symbols (16 bits) into one symbol (8 bits) × 2 columns instead of the signal delay selection circuit 20. And a signal delay selection circuit 30 for performing signal delay selection. In other words, this embodiment is characterized in that two symbols (16 bits) are simultaneously interfaced with the physical layer receiving circuit 50, and is also defined in the above-described PIPE interface. That is, the physical layer reception circuit 50 is configured to output two reception symbols in one cycle, and the inter-lane skew adjustment circuit 6 performs skew adjustment on the reception symbols.

図4において、信号遅延選択回路30は、入力される2列の受信シンボルを遅延させるために、互いに従属接続された3個の遅延型フリップフロップ31〜33と、互いに従属接続された3個の遅延型フリップフロップ41〜43と、上記選択信号に基づいて、入力される受信シンボル(データd00,d05)及び各遅延型フリップフロップ31〜43からの各出力シンボル(データd10,d15;データd20,d25;データd30,d35)のうちいずれか1対のシンボルを選択して出力するマルチプレクサ34とを備えて構成される。ここで、各1対のデータd00,d05と、データd10,d15と、データd20,d25と、データd30,d35との間で遅延時間が互いに異なる。   In FIG. 4, the signal delay selection circuit 30 includes three delay flip-flops 31 to 33 that are cascade-connected to each other and three that are cascade-connected to each other to delay two input received symbols. Based on the delay flip-flops 41 to 43 and the selection signal, the received symbols (data d00, d05) to be input and the output symbols (data d10, d15; data d20, d20) from the delay flip-flops 31 to 43 are input. d25; data d30, d35) and a multiplexer 34 that selects and outputs any one pair of symbols. Here, each pair of data d00 and d05, data d10 and d15, data d20 and d25, and data d30 and d35 have different delay times.

図4において、基準シンボル検出回路11は、省電力モードのL0sステートから復帰するときに、受信するFTSシンボル、COMシンボル、SKPシンボルの連続を検出する。これらのシンボルの連続的に検出したら、検出信号を出力する。また、COMシンボルとSKPシンボルの連続SKPオーダード・セットなので、送受信デバイスのクロック周波数差吸収のためにエラスティックバッファ5−1〜5−4において、SKPシンボルが追加、もしくは削除されることがあり、その情報は上述のPIPEインターフェースを使用していれば、COMシンボルを受信するタイミングと同時にSKPシンボル増減情報が送られてくるので、その情報をカウンタ回路13に出力する。カウンタ回路13は当該検出信号でカウントを開始する。このとき、SKPシンボルが削除されていればカウンタ値CNTを+0.5だけ加算し、SKPシンボルが追加されていれば−0.5だけ加算した(すなわち、+0.5だけ減算した)初期値でサイクル毎にカウントアップし、全てのレーンの検出が終わったら停止し、そのカウンタ値を選択信号発生器14により蓄積しておき、信号遅延選択回路30の選択信号として用いる。   In FIG. 4, the reference symbol detection circuit 11 detects the continuity of the received FTS symbol, COM symbol, and SKP symbol when returning from the L0s state in the power saving mode. When these symbols are continuously detected, a detection signal is output. Further, since the SKP ordered set of COM symbols and SKP symbols is used, the SKP symbols may be added or deleted in the elastic buffers 5-1 to 5-4 in order to absorb the clock frequency difference of the transmitting and receiving devices. If the above PIPE interface is used, the information is sent to the counter circuit 13 because the SKP symbol increase / decrease information is sent simultaneously with the timing of receiving the COM symbol. The counter circuit 13 starts counting with the detection signal. At this time, if the SKP symbol is deleted, the counter value CNT is incremented by +0.5, and if the SKP symbol is added, it is incremented by −0.5 (ie, subtracted by +0.5). It counts up every cycle and stops when detection of all the lanes is completed. The counter value is accumulated by the selection signal generator 14 and used as a selection signal of the signal delay selection circuit 30.

図18は図4のマルチプレクサ34の選択テーブルであって、選択信号に対する選択データを示す表である。図18において、例えば、選択信号が1.0であれば、データd10及びd15を選択して出力することを示している。図18から明らかなように、本実施形態では、選択信号の単位が0.5になり、データの選択方法は図18に示す通りであり、その動作により全てレーンのスキュー調整が完了する。   FIG. 18 is a selection table of the multiplexer 34 of FIG. 4 and shows selection data for the selection signal. In FIG. 18, for example, if the selection signal is 1.0, the data d10 and d15 are selected and output. As is apparent from FIG. 18, in this embodiment, the unit of the selection signal is 0.5, and the data selection method is as shown in FIG. 18, and the lane skew adjustment is completed by the operation.

図13A(a)は第3の実施形態に係る高速シリアル通信回路においてカウンタ値のみで制御したときのスキュー調整前のタイミングチャートであり、図13A(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。また、図13B(a)は第3の実施形態に係る高速シリアル通信回路において検出信号及びカウンタ値で制御したときのスキュー調整前のタイミングチャートであり、図13B(b)はその場合において、以前にスキュー調整した値でレー間スキュー調整した後、今回のスキュー調整した値でレー間スキュー調整をしたときのタイミングチャートである。図13A及び図13Bから明らかなように、レーン0ではFTS,COM,SKPの連続検出は2シンボルの切れ目で検出できており、SKPオーダード・セットでSKPシンボルが削除されて入力されているため、カウンタ値は+0.5だけアップした値から計数が開始され、サイクル毎にカウントアップする。図13Bのタイミングt13で全てのレーンの検出信号が出力されているので、そのカウンタ値を選択信号として信号遅延選択回路30のマルチプレクサ34にロードする。   FIG. 13A (a) is a timing chart before skew adjustment when only the counter value is controlled in the high-speed serial communication circuit according to the third embodiment, and FIG. 13A (b) is a graph in which skew adjustment has been performed previously. FIG. 10 is a timing chart when the inter-lay skew adjustment is performed using the current skew adjustment value after the inter-lay skew adjustment is performed. FIG. FIG. 13B (a) is a timing chart before skew adjustment when controlled by the detection signal and the counter value in the high-speed serial communication circuit according to the third embodiment, and FIG. 13B (b) 6 is a timing chart when the inter-lay skew adjustment is performed using the current skew adjustment value after the inter-lay skew adjustment is performed using the skew adjustment value. As apparent from FIGS. 13A and 13B, in lane 0, continuous detection of FTS, COM, and SKP can be detected at two symbol breaks, and the SKP symbol is deleted and input in the SKP ordered set. The counter value starts counting from a value increased by +0.5, and counts up every cycle. Since the detection signals of all the lanes are output at timing t13 in FIG. 13B, the counter value is loaded into the multiplexer 34 of the signal delay selection circuit 30 as a selection signal.

図17は第3の実施形態に係る高速シリアル通信回路の受信部の動作を示すスキュー調整処理を示すフローチャートである。図17において、ステップS1で制御ステートがリンクトレーニング中ならCOMシンボルを検出基準シンボルとし、省電力モードのL0sステートから復帰ステートならFTS,COM,SKPを検出基準シンボルとする。それ以外のときはSKPオーダード・セットのシンボル増減情報による調整のみ実施する(ステップS11)。基準シンボルを検出したら(ステップS4でYES)、検出信号を出力しカウンタ回路13の計数をスタートさせる。ステップS15で検出最終位置が1シンボル目(途中で端数あり)であればカウンタ値CNTを+0.5だけ加算し(ステップS16)、そのときにさらに、ステップS17でSKPシンボルの増減についてチェックして、SKPシンボルの削除があればカウンタ値CNTの初期値を+0.5だけ加算し(ステップS19)、SKPシンボルの追加があれば−0.5だけ加算し(すなわち、+0.5だけ減算し)して(ステップS18)計数を開始する。全てのレーンで基準シンボルを検出できたら(ステップS6でYES)、全てのカウンタ回路13を停止してその値を選択信号としてロードし(ステップS8)、選択信号によりレーンの遅延利を変更し(ステップS9)信号遅延選択回路20からスキュー調整後の受信シンボルを出力して当該スキュー調整を完了する(ステップS10)。   FIG. 17 is a flowchart showing a skew adjustment process showing the operation of the receiving unit of the high-speed serial communication circuit according to the third embodiment. In FIG. 17, if the control state is link training in step S1, the COM symbol is set as a detection reference symbol, and if it is the return state from the L0s state in the power saving mode, FTS, COM, and SKP are set as detection reference symbols. In other cases, only adjustment based on the symbol increase / decrease information of the SKP ordered set is performed (step S11). When the reference symbol is detected (YES in step S4), a detection signal is output and counting of the counter circuit 13 is started. In step S15, if the final detection position is the first symbol (there is a fraction in the middle), the counter value CNT is incremented by +0.5 (step S16). At that time, the increase / decrease of the SKP symbol is checked in step S17. If the SKP symbol is deleted, the initial value of the counter value CNT is added by +0.5 (step S19). If the SKP symbol is added, -0.5 is added (that is, +0.5 is subtracted). (Step S18) and counting is started. When the reference symbols have been detected in all the lanes (YES in step S6), all the counter circuits 13 are stopped and the values are loaded as selection signals (step S8), and the delay interest of the lanes is changed by the selection signals ( Step S9) The received symbol after skew adjustment is output from the signal delay selection circuit 20, and the skew adjustment is completed (Step S10).

従来技術では物理層受信回路が1シンボルインターフェースを用いて構成されたが、本実施形態のごとく、2シンボルインターフェースで構成してもよい。この場合において、第1及び第2の実施形態と同様に、より早い段階での受信シンボルを基準としてスキュー調整しているので、誤調整や図14の重複出力の可能性はなくなる。すなわち、制御ステートにおける検出シンボルが変更できるため、その制御ステートにおける最適なスキュー調整方法が可能となる。また、本実施形態では、物理層受信回路50と1サイクルで2シンボルでインターフェースをとる場合もスキュー調整可能であり、外部受信信号の受信レートが同じであれば、1サイクルのデータが2倍なので、インターフェースの周波数を1/2にできるので回路実装上も容易になる。   In the prior art, the physical layer receiving circuit is configured using a 1-symbol interface, but may be configured using a 2-symbol interface as in the present embodiment. In this case, as in the first and second embodiments, the skew adjustment is performed based on the received symbol at an earlier stage, so there is no possibility of erroneous adjustment or duplicate output in FIG. That is, since the detected symbol in the control state can be changed, an optimum skew adjustment method in the control state is possible. In the present embodiment, skew adjustment is also possible when the physical layer receiving circuit 50 is interfaced with two symbols in one cycle. If the reception rate of the external reception signal is the same, data in one cycle is doubled. Since the interface frequency can be halved, it is easy to mount the circuit.

第3の実施形態については、第2の実施形態に対して適用しているが、本発明はこれに限らず、第1の実施形態に対して適用してもよい。   The third embodiment is applied to the second embodiment, but the present invention is not limited to this, and may be applied to the first embodiment.

第4の実施形態.
図5は本発明の第4の実施形態に係る高速シリアル通信回路内のレーン間スキュー調整回路6の1レーン分の回路の構成を示すブロック図である。なお、図1の回路構成については第4の実施形態でも同様である。第4の実施形態は、第2の実施形態と比較して、基準シンボル検出回路11は、CPUのレジスタ10Aからの検出基準シンボルに基づいて、受信シンボルに対して検出することを特徴としている。その他の構成及び動作については第2の実施形態と同様である。本実施形態では、第2の実施形態と同様に作用効果を有するとともに、検出基準シンボルをCPUにより任意に設定変更可能であるため、CPUから動的に変更すればより詳細にスキュー調整可能になる。特に、任意のシンボル又はシンボル列でスキュー調整可能である。また、同じハードウエアで異なる規格の通信方式に対応することも可能となる。なお、第4の実施形態の構成は、第1〜第3の実施形態の構成に適用することができる。
Fourth embodiment.
FIG. 5 is a block diagram showing a circuit configuration of one lane of the inter-lane skew adjustment circuit 6 in the high-speed serial communication circuit according to the fourth embodiment of the present invention. Note that the circuit configuration of FIG. 1 is the same in the fourth embodiment. Compared to the second embodiment, the fourth embodiment is characterized in that the reference symbol detection circuit 11 detects a received symbol based on the detection reference symbol from the register 10A of the CPU. Other configurations and operations are the same as those in the second embodiment. In this embodiment, the same effects as in the second embodiment are obtained, and the detection reference symbol can be arbitrarily set and changed by the CPU. Therefore, the skew can be adjusted in more detail by dynamically changing from the CPU. . In particular, skew adjustment is possible with an arbitrary symbol or symbol string. It is also possible to support different standard communication systems with the same hardware. The configuration of the fourth embodiment can be applied to the configurations of the first to third embodiments.

以上の実施形態においては、シリアル信号を送信するときに、8B10B符号化変換を行って送信し、受信側で10B8B復号化変換を行っているが、高速シリアル通信のための他の符号化及び復号化変換方式を用いてよい。   In the above embodiment, when transmitting a serial signal, 8B10B encoding conversion is performed and transmitted, and 10B8B decoding conversion is performed on the receiving side. However, other encoding and decoding for high-speed serial communication are performed. A conversion method may be used.

また、第3及び第4の実施形態においては、カウンタ回路13は検出信号及びシンボル増減情報に基づいて計数しているが、本発明はこれに限らず、検出信号のみに基づいて計数してもよい。   In the third and fourth embodiments, the counter circuit 13 counts based on the detection signal and the symbol increase / decrease information. However, the present invention is not limited to this, and the counter circuit 13 may count based only on the detection signal. Good.

以上詳述したように、本発明に係るシリアル通信回路によれば、制御ステートにおける検出シンボルが変更できるため、そのステートにおける最適なスキュー調整方法が可能となり、例えば、低消費電力モードから復帰時にその受信シンボルでスキュー調整を実施することができ、通常通信状態への迅速な復帰を行うことができる。特に、省電力モードから復帰時スキュー再調整が必要である場合、リンク再トレーニングをすることなく高速にスキュー調整可能である。   As described above in detail, according to the serial communication circuit according to the present invention, since the detected symbol in the control state can be changed, an optimum skew adjustment method in that state is possible, for example, when returning from the low power consumption mode. Skew adjustment can be performed on the received symbol, and quick return to the normal communication state can be performed. In particular, when it is necessary to readjust the skew when returning from the power saving mode, the skew can be adjusted at high speed without performing link retraining.

1−1〜1−4…受信信号レシーバ、
2−1〜2−4…クロック再生回路、
3−1〜3−4…バイトアラインSP(シリアルパラレル)変換器、
4−1〜4−4…10B8B変換器、
5−1〜5−4…エラスティックバッファ、
6…レーン間スキュー調整回路、
10…制御ステートマシン、
10A…CPUのレジスタ、
11…基準シンボル検出回路、
12…全レーン検出判定回路、
13…カウンタ回路、
14…選択信号発生器、
20,30…信号遅延選択回路、
21〜25,31〜33,41〜43…遅延型フリップフロップ、
26,34…マルチプレクサ、
50…物理層受信回路。
1-1 to 1-4: Received signal receiver,
2-1 to 2-4 ... clock recovery circuit,
3-1 to 3-4 Byte-aligned SP (serial parallel) converter,
4-1 to 4-4... 10B8B converter,
5-1 to 5-4. Elastic buffer,
6 ... Inter-lane skew adjustment circuit,
10: Control state machine,
10A: CPU register,
11: Reference symbol detection circuit,
12 ... All-lane detection determination circuit,
13: Counter circuit,
14 ... Selection signal generator,
20, 30... Signal delay selection circuit,
21-25, 31-33, 41-43 ... delay type flip-flops,
26, 34 ... Multiplexer,
50: Physical layer receiving circuit.

特開2006−202281号公報JP 2006-202281 A 特開2008−172657号公報JP 2008-172657 A

PCI-SIG, "PCI Express Base Specification Revision 2.0", PCI-SIG, December 2006.PCI-SIG, "PCI Express Base Specification Revision 2.0", PCI-SIG, December 2006. 荒井信隆ほか著,「改訂新版PCIExpress入門講座,高速シリアルインタフェースの基礎知識と実際」,電波新聞社,2008年6月20日Arai Nobutaka et al., “Introduction to Revised PCI Express, Basic Knowledge and Practice of High-Speed Serial Interface”, Denpa Shimbun, June 20, 2008

Claims (9)

所定の符号化方式で符号化された複数のレーンのシリアル受信信号からクロックの再生を行い、再生されたクロックを用いて上記シリアル受信信号から受信シンボルを各レーン毎に再生し、再生された各レーン毎の受信シンボルに対してバイトアライン及びシリアル/パラレル変換後、上記符号化方式に対応する復号化方式で復号化してエラスティックバッファに格納し、上記エラスティックバッファにより複数のレーンの受信シンボルを同一のクロックに同期した受信シンボルに変換して出力する物理層受信回路と、
上記物理層受信回路から出力される複数のレーンの受信シンボルに対してレーン間のシンボルスキューを調整するレーン間スキュー調整回路とを備えたシリアル通信回路であって、
上記レーン間スキュー調整回路は、
制御ステートにより変更可能な所定の検出基準シンボルを上記受信シンボルからレーン毎に検出し、検出信号を出力する検出回路と、
上記検出信号に応答して上記検出信号の計数を開始し、当該計数のカウンタ値を出力し、全てのレーンで上記検出信号を検出したとき計数を停止するカウンタ回路と、
上記カウンタ回路から出力されるカウンタ値を選択信号とし、当該選択信号に対応する遅延量だけ、上記物理層受信回路から出力される複数のレーンの受信シンボルに対して遅延させることによりレーン間のシンボルスキューを調整する信号遅延選択回路とを備えたことを特徴とするシリアル通信回路。
A clock is recovered from serial received signals of a plurality of lanes encoded by a predetermined encoding method, and received symbols are recovered from the serial received signal for each lane using the recovered clock. After byte alignment and serial / parallel conversion for the received symbols for each lane, the received symbols are decoded by a decoding method corresponding to the above encoding method and stored in an elastic buffer, and the received symbols of a plurality of lanes are stored by the elastic buffer. A physical layer receiving circuit that converts the received symbol synchronized with the same clock and outputs the received symbol;
A serial communication circuit comprising an inter-lane skew adjustment circuit that adjusts a symbol skew between lanes for received symbols of a plurality of lanes output from the physical layer reception circuit,
The inter-lane skew adjustment circuit is
A detection circuit that detects a predetermined detection reference symbol that can be changed according to a control state for each lane from the received symbol, and outputs a detection signal;
A counter circuit that starts counting the detection signal in response to the detection signal, outputs a counter value of the count, and stops counting when the detection signal is detected in all lanes;
The counter value output from the counter circuit is used as a selection signal, and symbols between lanes are delayed by a delay amount corresponding to the selection signal with respect to the reception symbols of a plurality of lanes output from the physical layer reception circuit. A serial communication circuit comprising a signal delay selection circuit for adjusting skew.
上記検出回路はさらに、上記受信シンボルからシンボル増減情報を検出して上記カウンタ回路に出力し、
上記カウンタ回路は、上記検出信号に応答して上記検出信号の計数を開始し、上記シンボル増減情報に基づいて当該計数のカウンタ値を増減した後、当該計数のカウンタ値を出力し、全てのレーンで上記検出信号を検出したとき計数を停止することを特徴とする請求項1記載のシリアル通信回路。
The detection circuit further detects symbol increase / decrease information from the received symbol and outputs it to the counter circuit,
The counter circuit starts counting the detection signal in response to the detection signal, increases / decreases the count value of the count based on the symbol increase / decrease information, and then outputs the count value of the count to all lanes. 2. The serial communication circuit according to claim 1, wherein the counting is stopped when the detection signal is detected.
上記レーン間スキュー調整回路は、一時的に通信が停止した状態である低消費電力モードの状態から復帰時において、復帰シーケンスにおいて上記レーン間のシンボルスキューを調整することを特徴とする請求項1又は2記載のシリアル通信回路。   The inter-lane skew adjustment circuit adjusts the symbol skew between the lanes in a return sequence when returning from a low power consumption mode state in which communication is temporarily stopped. 2. The serial communication circuit according to 2. 上記低消費電力モードの状態は、PCI Express規格に規定するL0sステートであり、上記レーン間スキュー調整回路は、復帰シーケンスにおいて受信するFTSオーダード・セット、SKPオーダード・セット内の「FTSシンボル」「COMシンボル」「SKPシンボル」の連続を基準にレーン間のシンボルスキューを調整することを特徴とする請求項3記載のシリアル通信回路。   The state of the low power consumption mode is the L0s state defined in the PCI Express standard, and the inter-lane skew adjustment circuit receives the “FTS symbol” in the FTS ordered set and SKP ordered set received in the return sequence. 4. The serial communication circuit according to claim 3, wherein a symbol skew between lanes is adjusted based on a series of “COM symbols” and “SKP symbols”. 上記レーン間スキュー調整回路は、SKPオーダード・セットでSKPシンボルの付加がある場合においてレーン間のシンボルスキューを調整することを特徴とする請求項4記載のシリアル通信回路。   5. The serial communication circuit according to claim 4, wherein the inter-lane skew adjustment circuit adjusts the symbol skew between lanes when an SKP symbol is added in an SKP ordered set. 上記レーン間スキュー調整回路は、SKPオーダード・セットでSKPシンボルの削除がある場合においてレーン間のシンボルスキューを調整することを特徴とする請求項4記載のシリアル通信回路。   5. The serial communication circuit according to claim 4, wherein the inter-lane skew adjustment circuit adjusts symbol skew between lanes when SKP symbols are deleted in an SKP ordered set. 上記物理層受信回路は1サイクルに2シンボルの受信シンボルを出力するように構成され、上記レーン間スキュー調整回路は、上記受信シンボルに対してスキュー調整することを特徴とする請求項1乃至6のうちのいずれか1つに記載のシリアル通信回路。   7. The physical layer receiving circuit is configured to output two symbols of received symbols in one cycle, and the inter-lane skew adjusting circuit adjusts skew with respect to the received symbols. The serial communication circuit as described in any one of them. 上記検出基準シンボルを任意に設定する手段をさらに備えたことを特徴とする請求項1乃至7のうちのいずれか1つに記載のシリアル通信回路。   The serial communication circuit according to any one of claims 1 to 7, further comprising means for arbitrarily setting the detection reference symbol. 上記符号化方式は、8B10B符号化変換方式であることを特徴とする請求項1乃至8のうちのいずれか1つに記載のシリアル通信回路。   The serial communication circuit according to claim 1, wherein the encoding method is an 8B10B encoding / conversion method.
JP2011192243A 2011-09-05 2011-09-05 Serial communication circuit Withdrawn JP2013055502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011192243A JP2013055502A (en) 2011-09-05 2011-09-05 Serial communication circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011192243A JP2013055502A (en) 2011-09-05 2011-09-05 Serial communication circuit

Publications (1)

Publication Number Publication Date
JP2013055502A true JP2013055502A (en) 2013-03-21

Family

ID=48132122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011192243A Withdrawn JP2013055502A (en) 2011-09-05 2011-09-05 Serial communication circuit

Country Status (1)

Country Link
JP (1) JP2013055502A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014216981A (en) * 2013-04-30 2014-11-17 富士通株式会社 Receiving device, information processing device, and data receiving method
JP2015186185A (en) * 2014-03-26 2015-10-22 株式会社メガチップス Data receiving apparatus
JP2018513603A (en) * 2015-04-22 2018-05-24 イズメディア カンパニー リミテッド Automatic skew correction method and apparatus
JP2021145215A (en) * 2020-03-11 2021-09-24 アンリツ株式会社 Pattern synchronizing circuit, error rate measuring device employing the same, and pattern synchronizing method
JP2022530591A (en) * 2019-04-29 2022-06-30 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Descue method for physical layer interface on multi-chip module

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014216981A (en) * 2013-04-30 2014-11-17 富士通株式会社 Receiving device, information processing device, and data receiving method
JP2015186185A (en) * 2014-03-26 2015-10-22 株式会社メガチップス Data receiving apparatus
JP2018513603A (en) * 2015-04-22 2018-05-24 イズメディア カンパニー リミテッド Automatic skew correction method and apparatus
JP2022530591A (en) * 2019-04-29 2022-06-30 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Descue method for physical layer interface on multi-chip module
JP7359854B2 (en) 2019-04-29 2023-10-11 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Deskew method for physical layer interface on multi-chip module
JP2021145215A (en) * 2020-03-11 2021-09-24 アンリツ株式会社 Pattern synchronizing circuit, error rate measuring device employing the same, and pattern synchronizing method
JP7026154B2 (en) 2020-03-11 2022-02-25 アンリツ株式会社 Pattern synchronization circuit, error rate measuring device using it, and pattern synchronization method

Similar Documents

Publication Publication Date Title
JP4870435B2 (en) PCI express byte skew compensation method and PCI express physical layer receiver for the same
JP6433973B2 (en) Multi-wire single-ended push-pull link with data symbol transition-based clocking
US8286022B2 (en) Intra-pair differential skew compensation method and apparatus for high-speed cable data transmission systems
JP6461089B2 (en) Multi-wire open drain link with data symbol transition based clock synchronization
US7307554B2 (en) Parallel data transmission method and parallel data transmission system
US10714051B1 (en) Driving apparatus and driving signal generating method thereof
KR100894811B1 (en) Deserializer of serdes and data deserializing method thereof
US9673961B2 (en) Multi-lane N-factorial (N!) and other multi-wire communication systems
US9735948B2 (en) Multi-lane N-factorial (N!) and other multi-wire communication systems
JP2013055502A (en) Serial communication circuit
CN101551968A (en) Display
CN101551990A (en) A data receiving device
JP5971113B2 (en) Differential signal skew adjustment method and transmission circuit
KR20150090860A (en) Method and apparatus for valid encoding
US9319178B2 (en) Method for using error correction codes with N factorial or CCI extension
JP4917901B2 (en) Receiver
US7796063B2 (en) Data transmission circuits and data transceiver systems
JP5217919B2 (en) Serial communication device, communication control method, communication control program
KR102423645B1 (en) Apparatus for transmitting and receiving a signal, source driver for receiving a status information signal and display device having the same
US20190215094A1 (en) Digital bus noise suppression
KR102520096B1 (en) Encoded multi-lane N-factorial and other multi-wire communication systems
US20230087104A1 (en) Signal processing circuit and reception device
US20230128574A1 (en) Method for data transmission
JP6360578B1 (en) Deskew circuit and deskew method
KR20060059615A (en) Multi channel skew removal device for pci express protocol

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141202