JP2017050734A - Serial communication device, communication system, and communication method - Google Patents

Serial communication device, communication system, and communication method Download PDF

Info

Publication number
JP2017050734A
JP2017050734A JP2015173182A JP2015173182A JP2017050734A JP 2017050734 A JP2017050734 A JP 2017050734A JP 2015173182 A JP2015173182 A JP 2015173182A JP 2015173182 A JP2015173182 A JP 2015173182A JP 2017050734 A JP2017050734 A JP 2017050734A
Authority
JP
Japan
Prior art keywords
data
code
length
unit
head
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.)
Pending
Application number
JP2015173182A
Other languages
Japanese (ja)
Inventor
宜之 夏川
Nobuyuki Natsukawa
宜之 夏川
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 JP2015173182A priority Critical patent/JP2017050734A/en
Priority to US15/238,482 priority patent/US10044535B2/en
Publication of JP2017050734A publication Critical patent/JP2017050734A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/02Details ; arrangements for supplying electrical power along data transmission lines
    • H04L25/14Channel dividing arrangements, i.e. in which a single bit stream is divided between several baseband channels and reassembled at the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Communication Control (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To simplify detection of the terminal of effective data in a receiving device to suppress power consumption.SOLUTION: There is disclosed a serial communication device comprising: an addition part that adds, to the head of data, a start code indicating the head of the data and a length code indicating the length of the data; a transmission part that converts the data to which the start code and length code are added into serial form data and transmits the resulting serial data; a receiving part that receives the data from the transmission part; and a processing part that detects, from the received data, the start code and length code, specifies the position of the head of the data on the basis of the detected start code, specifies the position of the terminal of the data on the basis of the start code and length code, and processes the data on the basis of the specified positions of the head and terminal of the data.SELECTED DRAWING: Figure 1

Description

本発明は、シリアル通信装置、通信システム及び通信方法に関する。   The present invention relates to a serial communication device, a communication system, and a communication method.

画像データの先頭及び末端に制御コードを付加して高速シリアル通信する技術がある。   There is a technique for performing high-speed serial communication by adding a control code to the beginning and end of image data.

例えば、送信側で画像データの先頭に複数の開始コードを付加し、画像データの末端に複数の終端コードを付加してデータ転送を行い、受信側で開始コードと終端コードとを検出することで画像データを抽出する(例えば、特許文献1)。   For example, by adding a plurality of start codes to the beginning of the image data on the transmitting side, adding a plurality of end codes to the end of the image data, performing data transfer, and detecting the start code and the end code on the receiving side Image data is extracted (for example, Patent Document 1).

しかしながら、従来の技術では、デシリアライズする際は、開始コードと終端コードとの双方を除去するためのバッファ領域を受信装置に設けるため、受信装置の回路規模が増大し、消費電力が大きくなる。特に、フレーム除去処理で終端コードが冗長となり、高周波で動作する回路の増大と消費電力の増大の原因となる。   However, in the conventional technology, when deserialization is performed, a buffer area for removing both the start code and the end code is provided in the receiving device, so that the circuit scale of the receiving device increases and the power consumption increases. In particular, the termination code becomes redundant in the frame removal process, which causes an increase in circuits operating at high frequencies and an increase in power consumption.

そこで、開示の技術では、受信装置側での有効データの終端検出を簡素化し、消費電力を抑えることを目的とする。   Therefore, the disclosed technique aims to simplify the detection of the end of valid data on the receiving device side and suppress power consumption.

実施形態では、データの先頭を示す開始コードと前記データの長さを示す長さコードとを前記データの先頭に付加する付加部と、前記開始コードと前記長さコードを付加したデータを、シリアル形式に変換して送信する送信部と、前記送信部から前記データを受信する受信部と、前記受信したデータから前記開始コードと前記長さコードとを検出し、前記検出した開始コードに基づいて前記データの先頭の位置を特定し、前記開始コード及び前記長さコードに基づいて前記データの末端の位置を特定し、前記特定したデータの先頭及び末端の位置に基づいてデータを処理する処理部とを有するシリアル通信装置が開示される。   In the embodiment, an addition unit for adding a start code indicating the start of data and a length code indicating the length of the data to the start of the data, and data including the start code and the length code are serially A transmitting unit that converts the data into a format and transmits; a receiving unit that receives the data from the transmitting unit; and detects the start code and the length code from the received data, and based on the detected start code A processing unit that identifies the position of the beginning of the data, identifies the position of the end of the data based on the start code and the length code, and processes the data based on the position of the beginning and end of the identified data A serial communication device is disclosed.

受信装置側での有効データの終端検出を簡素化し、消費電力を抑えることができる。   It is possible to simplify the detection of the end of valid data on the receiving device side and to suppress power consumption.

シリアル転送を行うシリアル通信装置の構成の例を示す図である。It is a figure which shows the example of a structure of the serial communication apparatus which performs serial transfer. 可変長コードの第1の例を示す。The 1st example of a variable-length code is shown. 制御コード用の変換テーブルの一例を示す図である。It is a figure which shows an example of the conversion table for control codes. デシリアライザの回路構成の第1の例を示す図である。It is a figure which shows the 1st example of a circuit structure of a deserializer. バッファの動作を説明するための図である。It is a figure for demonstrating operation | movement of a buffer. デシリアライザの回路構成の第2の例を示す図である。It is a figure which shows the 2nd example of the circuit structure of a deserializer. デシリアライザによる受信処理フローの例を示す図である。It is a figure which shows the example of the reception processing flow by a deserializer. 可変長コードの第2の例を示す。The 2nd example of a variable-length code is shown. 通信システムの構成の例を示す図である。It is a figure which shows the example of a structure of a communication system.

以下、本発明の実施形態について添付の図面を参照しながら説明する。なお、本明細書及び図面において、実質的に同一の機能構成を有する構成要素については、同一の符号を付することによって重複した説明を省く。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In addition, in this specification and drawing, about the component which has substantially the same function structure, the duplicate description is abbreviate | omitted by attaching | subjecting the same code | symbol.

(実施形態1)
図1は、シリアル転送を行うシリアル通信装置1の例を示す図である。シリアル通信装置1は、シリアライザ(SER:Serializer)20と、デシリアライザ(DES:Deserializer)10とを有する。図1の例では、シリアル通信装置1は、画像データをシリアルデータに変換して、シリアライザ20からデシリアライザ10へ2つの通信レーンを介して転送する。シリアライザ20は、エンコード部22aと、エンコード部22bと、送信インターフェース(以下、TXIF部という)23と、シリアル送信部25aと、シリアル送信部25bを有する。シリアル送信部25aは、P/S(Parallel / Serial)変換部21aと、ドライバ5aとを有する。シリアル送信部25bは、P/S変換部21bと、ドライバ5bとを有する。
(Embodiment 1)
FIG. 1 is a diagram illustrating an example of a serial communication device 1 that performs serial transfer. The serial communication device 1 includes a serializer (SER: Serializer) 20 and a deserializer (DES: Deserializer) 10. In the example of FIG. 1, the serial communication device 1 converts image data into serial data, and transfers the serial data from the serializer 20 to the deserializer 10 via two communication lanes. The serializer 20 includes an encoding unit 22a, an encoding unit 22b, a transmission interface (hereinafter referred to as a TXIF unit) 23, a serial transmission unit 25a, and a serial transmission unit 25b. The serial transmission unit 25a includes a P / S (Parallel / Serial) conversion unit 21a and a driver 5a. The serial transmission unit 25b includes a P / S conversion unit 21b and a driver 5b.

また、デシリアライザ10は、レシーバ6aと、レシーバ6bと、クロックデータリカバリ(以下、CDR部(Clock Data Recovery)という)11aと、CDR部11bと、デコード部12aと、デコード部12bと、受信インターフェース(以下、RXIF部という)13とを有する。また、RXIF部13は、バッファ15aと、バッファ15bとを有する。   The deserializer 10 includes a receiver 6a, a receiver 6b, a clock data recovery (hereinafter referred to as a CDR unit (Clock Data Recovery)) 11a, a CDR unit 11b, a decoding unit 12a, a decoding unit 12b, and a receiving interface ( (Hereinafter referred to as RXIF section) 13. The RXIF unit 13 includes a buffer 15a and a buffer 15b.

シリアル通信装置1が適用される例としては、例えば、MFP(Multifunction Printer)等の多機能画像形成装置のスキャナ部にシリアライザ20が配置され、印刷部にデシリアライザ10が配置される。この場合、スキャナ部と印刷部と間でシリアル転送が行われる。なお、図1の構成は、MFP以外の様々な装置及びシステムに適用できる。   As an example to which the serial communication device 1 is applied, for example, a serializer 20 is arranged in a scanner unit of a multifunction image forming apparatus such as an MFP (Multifunction Printer), and a deserializer 10 is arranged in a printing unit. In this case, serial transfer is performed between the scanner unit and the printing unit. The configuration of FIG. 1 can be applied to various apparatuses and systems other than the MFP.

TXIF部23は、シリアル転送を行う場合のインターフェースである。TXIF部23は、8ビットのパラレルデータ(画像データ)の先端に複数の制御コードを付加することで可変長コードを生成する。例えば、画像データにブラック、マゼンタ、シアン、イエローの4色の色データが含まれる場合、TXIF部23は、は、ブラック及びマゼンタの色データに係る可変長コードを生成する。また、TXIF部23は、シアン及びイエローの色データに係る可変長コードを生成する。なお、TXIF部23は、さらにスキュー調整機能を備えてもよい。   The TXIF unit 23 is an interface for performing serial transfer. The TXIF unit 23 generates a variable length code by adding a plurality of control codes to the tip of 8-bit parallel data (image data). For example, when the image data includes four color data of black, magenta, cyan, and yellow, the TXIF unit 23 generates a variable length code related to the black and magenta color data. Further, the TXIF unit 23 generates a variable length code relating to cyan and yellow color data. The TXIF unit 23 may further have a skew adjustment function.

制御コードは、COMコード、長さコード及び開始コードで構成される。画像データの先頭に付加される複数の制御コードをSTPフレームという。なお、実施形態1では、画像データの末端にENDコードを付加しなくてもよい。   The control code includes a COM code, a length code, and a start code. A plurality of control codes added to the head of the image data are called STP frames. In the first embodiment, it is not necessary to add an END code to the end of the image data.

図2は、可変長コードの第1の例を示す。例えば、可変長コードαは、STPフレーム31と画像データ32との組み合わせにより構成される。なお、実施形態1においては、画像データ32の末端にENDコード(終端コード)を付加しなくてもよい。   FIG. 2 shows a first example of a variable length code. For example, the variable length code α is configured by a combination of the STP frame 31 and the image data 32. In the first embodiment, an END code (end code) may not be added to the end of the image data 32.

COMコード33は、可変長コードαと、可変長コードαに隣接する他の可変長コードとの間に格納される。STPフレーム31は、COMコード、長さコード(図3では「Length」と表記)及びSTPコードの組み合わせにより構成される。COMコードは、他のSTPコード及び長さコードとの境界に格納される。これにより、隣接するSTPコード及び長さコードとの間に距離を設け、STPコード及び長さコードを検出しやすくしている。   The COM code 33 is stored between the variable length code α and another variable length code adjacent to the variable length code α. The STP frame 31 is composed of a combination of a COM code, a length code (indicated as “Length” in FIG. 3), and an STP code. The COM code is stored at the boundary with other STP codes and length codes. Thus, a distance is provided between the adjacent STP code and length code to facilitate detection of the STP code and length code.

長さコードは、転送すべきデータ(例えば、画像データ32)のデータ長を示す。STPコードは、転送すべきデータ(例えば、画像データ32)の先頭の位置を示す。なお、STPフレーム31に含まれるCOMコード、長さコード(Length)及びSTPコードの組み合わせ数が4つの例について説明したが、組み合わせ数は5つ以上であってもよく、3つ以下であってもよい。   The length code indicates the data length of data to be transferred (for example, image data 32). The STP code indicates the head position of data to be transferred (for example, image data 32). In addition, although the example in which the number of combinations of the COM code, the length code (Length), and the STP code included in the STP frame 31 is four has been described, the number of combinations may be five or more, and may be three or less. Also good.

図1に戻る。エンコード部22aは、所定の変換テーブルに基づいて可変長コードに係る8ビットのパラレルデータを10ビットのパラレルデータに変換する。例えば、エンコード部22aは、後述する図2の変換テーブルを用いて8ビットの制御コード(例えば、STPコード、COMコード等)を10ビットの制御コードに変換し、データ用の公知の変換テーブル(不図示)を用いて8ビットの画像データを10ビットの画像データに変換する。エンコード部22bは、エンコード部22aと同様に、所定の変換テーブルに基づいて可変長コードの8ビットのパラレルデータを10ビットのパラレルデータに変換する。   Returning to FIG. The encoding unit 22a converts 8-bit parallel data related to the variable-length code into 10-bit parallel data based on a predetermined conversion table. For example, the encoding unit 22a converts an 8-bit control code (for example, STP code, COM code, etc.) into a 10-bit control code using a conversion table shown in FIG. Is used to convert 8-bit image data into 10-bit image data. Similar to the encoding unit 22a, the encoding unit 22b converts the 8-bit parallel data of the variable length code into the 10-bit parallel data based on a predetermined conversion table.

なお、実施形態1では、8B/10B変換を使用する場合の例について説明するが、エンコード方法はこれに限定されない。64B/66B、64B/67B、128B/130B、TMDS(Transition Minimized Differential Signaling)等の他のエンコード方法を用いてもよい。   In the first embodiment, an example in which 8B / 10B conversion is used will be described. However, the encoding method is not limited to this. Other encoding methods such as 64B / 66B, 64B / 67B, 128B / 130B, TMDS (Transition Minimized Differential Signaling) may be used.

図3は、制御コード用の変換テーブルの一例を示す図である。「Symbol Name」は、シンボルコードの種別を示す。シンボルコードは、12種類用意されており、1種類のCOMコード、5種類のSTPコード(STP1〜5)及び5種類のENDコード(END1〜5)のそれぞれにシンボルコードが割り当てられる。なお、STPコードは、開始コードに対応し、ENDコードは、終端コードに対応する。COMコードは、画像データ間の境界に格納されるコードである。COMコードには、0又は1のビットが5回連続する「K28.5」を割り当てることで、隣接する他の可変長コードとの境界を検出しやすくしている。「Data Byte Name」は、シンボルコードの名称を示す。「Data Byte Value(hex)」は、8ビットのシンボルコードを16進数で表したものである。「8Bコード」は、8ビットのシンボルコードを示す。「10Bコード」は、8ビットのシンボルコードに対応する極性RD+(ランニングディスパリティ)及び極性RD−の10ビットのシンボルコードである。エンコード部22a及び22bは、所定の規則に基づいて8ビットのシンボルコードに対して、極性RD+又は極性RD−の10ビットのシンボルコードを割り当てる。極性RD−は、極性RD+のビット列をビット反転させたシンボルコードである。   FIG. 3 is a diagram illustrating an example of a conversion table for control codes. “Symbol Name” indicates the type of symbol code. Twelve types of symbol codes are prepared, and a symbol code is assigned to each of one type of COM code, five types of STP codes (STP1 to 5), and five types of END codes (END1 to 5). The STP code corresponds to the start code, and the END code corresponds to the end code. The COM code is a code stored at the boundary between image data. By assigning “K28.5” in which a 0 or 1 bit is continued five times to the COM code, it is easy to detect a boundary with another adjacent variable length code. “Data Byte Name” indicates the name of the symbol code. “Data Byte Value (hex)” represents an 8-bit symbol code in hexadecimal. “8B code” indicates an 8-bit symbol code. The “10B code” is a 10-bit symbol code of polarity RD + (running disparity) and polarity RD− corresponding to the 8-bit symbol code. The encoding units 22a and 22b assign a 10-bit symbol code of polarity RD + or polarity RD− to the 8-bit symbol code based on a predetermined rule. The polarity RD− is a symbol code obtained by bit-inverting the bit string of the polarity RD +.

例えば、エンコード部22aは、極性RD+又は極性RD−のシンボルコードを交互に割り当てることで、0又は1のビットが所定回数以上(例えば5回)連続するのを避け、シリアル通信を安定させる。なお、エンコード部22aは、1つのシンボルコードで0又は1のビットが5回連続しているSTP5等のシンボルコードを割り当てないようにしてもよい。   For example, the encoding unit 22a alternately assigns symbol codes of polarity RD + or polarity RD−, thereby avoiding that 0 or 1 bits continue for a predetermined number of times (for example, 5 times) and stabilizes serial communication. Note that the encoding unit 22a may not assign a symbol code such as STP5 in which one or more 0 or 1 bits are consecutive in one symbol code.

また、エンコード部22bは、エンコード部22aと同様に、極性RD+又は極性RD−のシンボルコードを交互に割り当てる。画像データ(Dコード)についても、STPコード、COMコード等の制御コード(Kコード)と同様に、正及び負の極性のシンボルコードを交互に割り当ててもよい。   In addition, the encoding unit 22b alternately assigns symbol codes of polarity RD + or polarity RD− similarly to the encoding unit 22a. Also for image data (D code), symbol codes having positive and negative polarities may be alternately assigned in the same manner as control codes (K codes) such as STP codes and COM codes.

図1に戻る。P/S変換部21aは、可変長コードαに係る各々の10ビットのパラレルデータを1ビットずつに分け、10ビットのシリアルデータに変換する。例えば、画像データにブラック、マゼンタ、シアン、イエローの4色の色データが含まれる場合、P/S変換部21aは、ブラック及びマゼンタの各々の10ビットのパラレルデータを1ビットずつに分け、10ビットのシリアルデータに変換する。また、P/S変換部21bは、シアン及びイエローの各々の10ビットのパラレルデータを1ビットずつに分け、10ビットのシリアルデータに変換する。なお、P/S変換部21a及び21bは、シリアルデータに対してエンファシス処理を行ってもよい。   Returning to FIG. The P / S conversion unit 21a divides each 10-bit parallel data related to the variable-length code α into 1-bit data and converts it into 10-bit serial data. For example, when the image data includes four color data of black, magenta, cyan, and yellow, the P / S converter 21a divides the 10-bit parallel data of each of black and magenta into 1 bit. Convert to bit serial data. Further, the P / S conversion unit 21b divides cyan and yellow 10-bit parallel data into 1-bit data and converts them into 10-bit serial data. Note that the P / S converters 21a and 21b may perform an emphasis process on the serial data.

続いて、P/S変換部21aは、ドライバ5aからLane0を介してデシリアライザ10に、シリアルデータを転送する。P/S変換部21bは、ドライバ5bからLane1を介してデシリアライザ10にシリアルデータを転送する。   Subsequently, the P / S converter 21a transfers serial data from the driver 5a to the deserializer 10 via Lane0. The P / S converter 21b transfers serial data from the driver 5b to the deserializer 10 via Lane1.

なお、ドライバ5aは、シリアルデータとこのシリアルデータの位相を反転させた逆位相のデータとをLane0で送信する。ドライバ5bも同様の送信方式でシリアルデータを送信する。P/S変換部21aとドライバ5aとを合わせてシリアル送信部25aとして用いてもよい。また、P/S変換部21bとドライバ5bとを合わせてシリアル送信部25bとして用いてもよい。   Note that the driver 5a transmits serial data and data having an opposite phase obtained by inverting the phase of the serial data using Lane0. The driver 5b also transmits serial data using the same transmission method. The P / S conversion unit 21a and the driver 5a may be combined and used as the serial transmission unit 25a. Further, the P / S conversion unit 21b and the driver 5b may be combined and used as the serial transmission unit 25b.

デシリアライザ10においてCDR部11aは、Lane0を介してレシーバ6aで受信した差動信号に基づいてシリアルデータを再生し、シリアルデータに埋め込まれたクロック信号を抽出してクロックデータとシリアルデータを分離する。   In the deserializer 10, the CDR unit 11a reproduces serial data based on the differential signal received by the receiver 6a via Lane0, extracts the clock signal embedded in the serial data, and separates the clock data from the serial data.

CDR部11bは、CDR部11aと同様に、抽出したクロック信号と送信データとをデコード部12に供給する。   The CDR unit 11b supplies the extracted clock signal and transmission data to the decoding unit 12 in the same manner as the CDR unit 11a.

デコード部12aは、シリアルデータをパラレルデータに変換する。続いて、デコード部12aは、所定の変換テーブルに基づいて可変長コードαに係る10ビットのパラレルデータを8ビットのパラレルデータに変換する。デコード部12aは、図2の変換テーブルに基づいて可変長コードαに係る10ビットのパラレルデータを8ビットのパラレルデータに変換してもよい。続いて、デコード部12aは、復号された8ビットのパラレルデータ(可変長コードα)をバッファ15aに出力する。   The decoding unit 12a converts serial data into parallel data. Subsequently, the decoding unit 12a converts the 10-bit parallel data related to the variable-length code α into 8-bit parallel data based on a predetermined conversion table. The decoding unit 12a may convert 10-bit parallel data related to the variable-length code α into 8-bit parallel data based on the conversion table of FIG. Subsequently, the decoding unit 12a outputs the decoded 8-bit parallel data (variable length code α) to the buffer 15a.

デコード部12bは、デコード部12aと同様にシリアルデータを処理し、8ビットのパラレルデータをバッファ15bに出力する。   The decoding unit 12b processes serial data in the same manner as the decoding unit 12a, and outputs 8-bit parallel data to the buffer 15b.

RXIF部13は、バッファ15a及び15bを有する。RXIF部13は、STPフレーム31に格納されたSTPコードを検出し、STPコードに基づいて画像データの先頭の位置を特定する。また、RXIF部13は、さらに長さコードを検出し、STPコードと、検出した長さコードとに基づいて画像データの末端の位置を特定する。例えば、RXIF部13は、STPコードにより特定される画像データの先頭のアドレスに、長さコードによって示される画像データのデータ長を加算することにより、画像データの末端のアドレスを算出する。続いて、RXIF部13は、可変長コードαからSTPフレームを除去するフレーム除去処理を行う。続いて、RXIF部13は、画像データをバッファ15a及び15bに出力する。   The RXIF unit 13 includes buffers 15a and 15b. The RXIF unit 13 detects the STP code stored in the STP frame 31, and specifies the start position of the image data based on the STP code. Further, the RXIF unit 13 further detects the length code, and specifies the position of the end of the image data based on the STP code and the detected length code. For example, the RXIF unit 13 calculates the end address of the image data by adding the data length of the image data indicated by the length code to the head address of the image data specified by the STP code. Subsequently, the RXIF unit 13 performs a frame removal process for removing the STP frame from the variable length code α. Subsequently, the RXIF unit 13 outputs the image data to the buffers 15a and 15b.

RXIF部13は、所定数以上のSTPコードと長さコードとが検出されたことを条件に、画像データの先頭及び末端を検出する。あるいは、全てのSTPコードと長さコードとが検出されたことを条件に、画像データの先頭及び末端を検出することにしてもよい。   The RXIF unit 13 detects the beginning and end of the image data on condition that a predetermined number or more of STP codes and length codes are detected. Alternatively, the head and end of the image data may be detected on condition that all STP codes and length codes have been detected.

RXIF部13は、検出した画像データの末端を、バッファ15a又は15bに出力した際に、バッファ15a及び15bのリード処理を開始する。RXIF部13は、バッファ15a及び15bに格納されている画像データを、クロック単位で同期化した状態で不図示の後段の画像処理部に送信する。   The RXIF unit 13 starts read processing of the buffers 15a and 15b when the end of the detected image data is output to the buffer 15a or 15b. The RXIF unit 13 transmits the image data stored in the buffers 15a and 15b to a subsequent image processing unit (not shown) in a synchronized state in units of clocks.

また、RXIF部13は、画像データの先頭の位置にリードポインタ(rptr)を設定し、画像データの末端の位置にライトポインタ(wptr)を設定する。RXIF部13は、rptrのアドレスとwptrのアドレスとの差分を算出することによりバッファ格納サイズを取得する。RXIF部13は、バッファ格納サイズが所定値以上となった場合、画像データの末端をバッファ15a又は15bに出力する前であっても、バッファ15a又は15bのリード処理を先に開始してもよい。   The RXIF unit 13 sets a read pointer (rptr) at the head position of the image data and sets a write pointer (wptr) at the end position of the image data. The RXIF unit 13 obtains the buffer storage size by calculating the difference between the rptr address and the wptr address. The RXIF unit 13 may start read processing of the buffer 15a or 15b first, even before the end of the image data is output to the buffer 15a or 15b, when the buffer storage size becomes a predetermined value or more. .

RXIF部13は、Lane0及びLane1間で遅延が発生している場合等には、デスキュー調整を行う。また、RXIF部13は、Lane0及びLane1間で周波数に偏差が発生している場合、周波数の偏差を補正する。   The RXIF unit 13 performs deskew adjustment when there is a delay between Lane0 and Lane1. Further, the RXIF unit 13 corrects the frequency deviation when a frequency deviation occurs between Lane 0 and Lane 1.

図4は、デシリアライザ10の回路構成の第1の例を示す図である。デシリアライザ10は、CDR部11aと、CDR部11bと、デコード部12aと、デコード部12bと、RXIF部13と、スキュー値測定回路14と、バッファ15aと、バッファ15bと、レジスタ16とを有する。   FIG. 4 is a diagram illustrating a first example of the circuit configuration of the deserializer 10. The deserializer 10 includes a CDR unit 11a, a CDR unit 11b, a decoding unit 12a, a decoding unit 12b, an RXIF unit 13, a skew value measurement circuit 14, a buffer 15a, a buffer 15b, and a register 16.

CDR部11aは、レシーバ6aで受信されたシリアルデータからクロックと送信データとを抽出して、デコード部12aにシリアルデータを供給する。CDR部11bは、CDR部11aと同様の処理を行い、デコード部12aにシリアルデータを送信する。   The CDR unit 11a extracts a clock and transmission data from the serial data received by the receiver 6a, and supplies the serial data to the decoding unit 12a. The CDR unit 11b performs the same processing as the CDR unit 11a, and transmits serial data to the decoding unit 12a.

デコード部12は、それぞれシリアルデータをパラレルデータに変換する。また、デコード部12aは、デシリアライザ10で使用される信号周波数のロック状態を検出する周波数ロック検出の処理、また各制御コード及び各データコードの境界を検出するシンボル境界検出の処理などを行う。続いて、デコード部12aは、図2の変換テーブル等に基づいて10ビットのパラレルデータを8ビットのパラレルデータに変換し、RXIF部13に出力する。   Each decoding unit 12 converts serial data into parallel data. Further, the decoding unit 12a performs a frequency lock detection process for detecting the lock state of the signal frequency used in the deserializer 10, a symbol boundary detection process for detecting the boundary between each control code and each data code, and the like. Subsequently, the decoding unit 12 a converts 10-bit parallel data into 8-bit parallel data based on the conversion table of FIG. 2 and the like, and outputs the converted data to the RXIF unit 13.

RXIF部13は、STPフレームに含まれる開始コード及び長さコードにより、画像データの末端を特定する。続いて、RXIF部13は、可変長コードαからSTPフレームを除去して画像データとした後に、画像データをバッファ15a及び15bに蓄積させる。   The RXIF unit 13 identifies the end of the image data based on the start code and length code included in the STP frame. Subsequently, the RXIF unit 13 removes the STP frame from the variable length code α to obtain image data, and then accumulates the image data in the buffers 15a and 15b.

RXIF部13は、バッファ15a又は15bのバッファ格納サイズが所定値以上となった場合、リード処理を開始する。また、RXIF部13は、画像データの末端を検出した場合、リード処理を開始する。また、Lane0及びLane1間で遅延が発生しているため、デスキューを要する場合、リード処理を開始する。なお、リード処理をするタイミングに関しては後述する。なお、バッファ15a及び15bのバッファのバッファ格納サイズは、スキュー値測定回路14によって測定される。   The RXIF unit 13 starts the read process when the buffer storage size of the buffer 15a or 15b becomes equal to or larger than a predetermined value. Further, the RXIF unit 13 starts the read process when detecting the end of the image data. In addition, since a delay occurs between Lane 0 and Lane 1, read processing is started when deskew is required. The read processing timing will be described later. The buffer storage sizes of the buffers 15a and 15b are measured by the skew value measurement circuit 14.

続いて、RXIF部13は、バッファ15a及び15bからリードした画像データを後段の画像処理部へ送信する。   Subsequently, the RXIF unit 13 transmits the image data read from the buffers 15a and 15b to the subsequent image processing unit.

図5は、バッファ15の動作を説明するための図である。上段がバッファ15aを示し、下段がバッファ15bを示す。バッファ15a及びバッファ15b内のマス目は、バッファ段数を示す。バッファ段数とは、所定容量ごとにバッファの記憶容量を区分したものである。バッファ15a及びバッファ15bに画像データがライトされると、右側のマス目から順に画像データが格納される。例えば、Lane1を介して送信された画像データがバッファ15bにライトされたことで、#0〜#4までのバッファ段数に画像データが格納されている。   FIG. 5 is a diagram for explaining the operation of the buffer 15. The upper row shows the buffer 15a, and the lower row shows the buffer 15b. The squares in the buffer 15a and the buffer 15b indicate the number of buffer stages. The buffer stage number is obtained by dividing the storage capacity of the buffer for each predetermined capacity. When image data is written to the buffer 15a and the buffer 15b, the image data is stored in order from the right square. For example, the image data transmitted via Lane 1 is written to the buffer 15b, so that the image data is stored in the number of buffer stages from # 0 to # 4.

バッファ15bの右端には、rptrが設定され、#4の末尾には、wptrが設定される。RXIF部13は、rptrのアドレスとwptrのアドレスとの差分値を算出することにより、バッファ格納サイズを取得する。RXIF部13は、バッファ格納サイズが所定値以上となった場合、リード処理を開始する。   Rptr is set at the right end of the buffer 15b, and wptr is set at the end of # 4. The RXIF unit 13 obtains the buffer storage size by calculating a difference value between the address of rptr and the address of wptr. The RXIF unit 13 starts the read process when the buffer storage size is equal to or larger than the predetermined value.

また、RXIF部13は、画像データの末端のバッファ15a及び15bへの出力を検出した場合、リード処理を開始する。具体的には、RXIF部13は、可変長コードαに含まれる長さコードに基づいて、画像データの末端が格納された場合のバッファ段数を設定し、設定した段数まで画像データが格納されたことを検出することで、画像データの末端がバッファ15a及び15bへ出力されたことを検出してもよい。   Further, when the RXIF unit 13 detects the output of the end of the image data to the buffers 15a and 15b, it starts the read process. Specifically, the RXIF unit 13 sets the number of buffer stages when the end of the image data is stored based on the length code included in the variable length code α, and the image data is stored up to the set number of stages. By detecting this, it may be detected that the end of the image data has been output to the buffers 15a and 15b.

例えば、RXIF部13は、可変長コードαに含まれる長さコードを用いて、画像データの末端が格納された場合のバッファ段数「5」を算出する。続いて、RXIF部13は、画像データが#5まで格納されたことにより、画像データの末端がバッファ15a及び15bへ出力されたことを検出する。   For example, the RXIF unit 13 uses the length code included in the variable length code α to calculate the buffer stage number “5” when the end of the image data is stored. Subsequently, the RXIF unit 13 detects that the end of the image data is output to the buffers 15a and 15b by storing the image data up to # 5.

なお、RXIF部13は、画像データの末端を検出する前であっても、バッファ格納サイズが所定値以上となった場合、リード処理を開始してもよい。かかる場合は、RXIF部13は、リード処理と共に、画像データの末端を検出するまでライト処理を並行して行う。   Note that the RXIF unit 13 may start the read process even when the end of the image data is detected, when the buffer storage size is equal to or larger than the predetermined value. In such a case, the RXIF unit 13 performs the write process in parallel with the read process until the end of the image data is detected.

また、RXIF部13は、バッファ15a及びバッファ15b間で時間遅延が発生している場合には、リード処理が開始されたバッファに合わせて、他方のバッファがリード処理を開始してもよい。例えば、バッファ15aの#5が画像データの末端である場合、RXIF部13は、バッファ15aのリード処理を開始する。さらに、バッファ15bで画像データの末端が検出される前であっても、RXIF部13は、バッファ15aのリード処理が開始されたクロックと同じクロックで、バッファ15bのリード処理を開始してもよい。これにより、RXIF部13は、バッファ15a及びバッファ15bの画像データを、クロック単位で同期させることができる。なお、バッファ15bにおいては、リード処理に並行してライト処理が実行される。   Further, in the case where a time delay occurs between the buffer 15a and the buffer 15b, the RXIF unit 13 may start the read process by the other buffer in accordance with the buffer from which the read process has been started. For example, when # 5 of the buffer 15a is the end of the image data, the RXIF unit 13 starts the read process of the buffer 15a. Further, even before the end of the image data is detected by the buffer 15b, the RXIF unit 13 may start the read process of the buffer 15b with the same clock as the clock at which the read process of the buffer 15a is started. . Thereby, the RXIF unit 13 can synchronize the image data of the buffer 15a and the buffer 15b in units of clocks. In the buffer 15b, the write process is executed in parallel with the read process.

図6は、デシリアライザ10の回路構成の第2の例を示す図である。デシリアライザ10は、CDR部11aと、CDR部11bと、デコード部12aと、デコード部12bと、デスクランブル処理部17aと、デスクランブル処理部17bと、インタリーブ処理部18aと、インタリーブ処理部18bと、RSDec処理部19aと、RSDec処理部19bと、RXIF部13と、レジスタ16とを有する。また、RXIF部13は、バッファ15aと、バッファ15bとを有する。   FIG. 6 is a diagram illustrating a second example of the circuit configuration of the deserializer 10. The deserializer 10 includes a CDR unit 11a, a CDR unit 11b, a decoding unit 12a, a decoding unit 12b, a descrambling processing unit 17a, a descrambling processing unit 17b, an interleaving processing unit 18a, an interleaving processing unit 18b, It has an RSDec processing unit 19a, an RSDec processing unit 19b, an RXIF unit 13, and a register 16. The RXIF unit 13 includes a buffer 15a and a buffer 15b.

CDR部11aは、レシーバ6aで受信されたシリアルデータからクロックと送信データとを抽出して、デコード部12aにシリアルデータを供給する。続いて、デコード部12aは、シリアルデータをパラレルデータに変換する。続いて、デスクランブル処理部17aは、シリアライザ20の図示されないスクランブラによって、スクランブル処理されたデータを解除(デスクランブル)する。続いて、インタリーブ処理部18aは、バーストエラーを防ぐために、シリアライザ20によりデータの順序が並び替えられて出力されたデータを元の順序に戻す。続いて、RSDec処理部19aは、可変長コードαに付加されている誤り訂正符号を用いて誤り訂正を行った後、誤り訂正符号を削除する。続いて、RSDec処理部19aは、可変長符号をRXIF部13に出力する。   The CDR unit 11a extracts a clock and transmission data from the serial data received by the receiver 6a, and supplies the serial data to the decoding unit 12a. Subsequently, the decoding unit 12a converts serial data into parallel data. Subsequently, the descramble processing unit 17a releases (descrambles) the scrambled data by a scrambler (not shown) of the serializer 20. Subsequently, the interleave processing unit 18a restores the data that has been output after the data order is rearranged by the serializer 20 in order to prevent a burst error. Subsequently, the RSDec processing unit 19a performs error correction using the error correction code added to the variable length code α, and then deletes the error correction code. Subsequently, the RSDec processing unit 19 a outputs the variable length code to the RXIF unit 13.

また、CDR部11b、デコード部12b、デスクランブル処理部17b、インタリーブ処理部18b及びRSDec処理部19bも、上記と同様の処理を実行する。   The CDR unit 11b, the decoding unit 12b, the descrambling processing unit 17b, the interleaving processing unit 18b, and the RSDec processing unit 19b also execute the same processing as described above.

なお、デシリアライザ10が図6の構成をとる場合、シリアライザ20は、不図示のスクランブル処理部と、インタリーブ処理部とを有する。   When the deserializer 10 has the configuration shown in FIG. 6, the serializer 20 includes a scramble processing unit (not shown) and an interleave processing unit.

図7は、デシリアライザ10による受信処理のフローの例を示す図である。デシリアライザ10は、受信したシリアルデータをパラレルデータに変換し、所定の変換テーブルに基づいて10ビットのパラレルデータを8ビットのパラレルデータに変換する(ステップS10)。続いて、デシリアライザ10は、Lane毎にSTPコード及び長さコードを検出する(ステップS11)。これにより、デシリアライザ10は、画像データの先頭及び末端を検出する。なお、デシリアライザ10は、STPフレームに含まれるSTPコード及び長さコードを所定回数以上検出することを条件として画像データの先頭及び末端を検出してもよい。また、デシリアライザ10は、全てのSTPコード及び長さコードを検出することを条件として画像データの先頭及び末端を検出してもよい。   FIG. 7 is a diagram illustrating an example of a flow of reception processing by the deserializer 10. The deserializer 10 converts the received serial data into parallel data, and converts 10-bit parallel data into 8-bit parallel data based on a predetermined conversion table (step S10). Subsequently, the deserializer 10 detects the STP code and the length code for each Lane (Step S11). Thereby, the deserializer 10 detects the head and the end of the image data. Note that the deserializer 10 may detect the head and the end of the image data on condition that the STP code and the length code included in the STP frame are detected a predetermined number of times or more. Further, the deserializer 10 may detect the head and the end of the image data on condition that all STP codes and length codes are detected.

デシリアライザ10は、Lane毎に可変長コードαからSTPフレームを除去した後、バッファ15a及び15bに画像データを転送する(ステップS12)。   The deserializer 10 removes the STP frame from the variable length code α for each Lane, and then transfers the image data to the buffers 15a and 15b (Step S12).

続いて、デシリアライザ10は、バッファ15a及び15b内の画像データの蓄積量が規定量以上か否かを判定する(ステップS13)。デシリアライザ10は、バッファ15a及び15b内のバッファ格納サイズが規定量以上となった場合(ステップS13Yes)、ステップS16の処理に移行する。一方、デシリアライザ10は、バッファ15a及び15b内のバッファ格納サイズが規定量未満の場合(ステップS13No)、ステップS14の処理に移行する。なお、バッファ格納サイズは、画像データの先頭を示すポインタrptrのアドレスと終端を示すポインタwptrのアドレスとの差分により算出される。   Subsequently, the deserializer 10 determines whether or not the amount of image data stored in the buffers 15a and 15b is equal to or greater than a specified amount (step S13). When the buffer storage size in the buffers 15a and 15b is equal to or larger than the specified amount (step S13 Yes), the deserializer 10 proceeds to the process of step S16. On the other hand, when the buffer storage size in the buffers 15a and 15b is less than the specified amount (No in step S13), the deserializer 10 proceeds to the process in step S14. The buffer storage size is calculated from the difference between the address of the pointer rptr indicating the head of the image data and the address of the pointer wptr indicating the end.

ステップS14において、デシリアライザ10は、データの末端を検出した場合(ステップS14Yes)、ステップS16の処理に移行する。一方、デシリアライザ10は、データの末端を検出していない場合(ステップS14No)、バッファ15a及び15bへのライト処理を継続し(ステップS15)、ステップS13に戻る。   In step S14, when the deserializer 10 detects the end of the data (step S14 Yes), the process proceeds to step S16. On the other hand, when the deserializer 10 has not detected the end of the data (No in step S14), the deserializer 10 continues the write process to the buffers 15a and 15b (step S15), and returns to step S13.

なお、デシリアライザ10は、ステップS14において、ライトされた画像データのバッファ段数と、画像データの末端に対応するバッファ段数であるend_ptr値とを比較する。デシリアライザ10は、ライトされた画像データのバッファ段数とend_ptr値とが等しい場合に、データの末端を検出したと判定する。   In step S14, the deserializer 10 compares the number of buffer stages of the written image data with the end_ptr value that is the number of buffer stages corresponding to the end of the image data. The deserializer 10 determines that the end of the data has been detected when the number of buffer stages of the written image data is equal to the end_ptr value.

上記データの末端の検出方法は、一例である。例えば、デシリアライザ10は、バッファ15a及び15bにライトされた画像データの末端位置のアドレスと、ライトを開始した位置のアドレスに画像データのデータ長を加算した位置のアドレスとの比較に基づいて、データ末端を検出してもよい。   The method for detecting the end of the data is an example. For example, the deserializer 10 determines the data based on the comparison between the address of the end position of the image data written to the buffers 15a and 15b and the address of the position obtained by adding the data length of the image data to the address of the position where writing is started. The end may be detected.

ステップS16において、デシリアライザ10は、バッファ15a及び15bからリード処理を開始する(ステップS16)。続いて、デシリアライザ10は、バッファ15a及び15bへのライト処理が完了したか否かを判定する(ステップS17)。デシリアライザ10は、ライト処理が完了した場合(ステップS17Yes)、ステップS19の処理に移行する。一方、デシリアライザ10は、ライト処理が完了していない場合(ステップS17No)、データ末端を検出するまでバッファ15a及び15bにライト処理を行い(ステップS18)、ステップS16に戻る。   In step S16, the deserializer 10 starts read processing from the buffers 15a and 15b (step S16). Subsequently, the deserializer 10 determines whether or not the write processing to the buffers 15a and 15b has been completed (step S17). When the write process is completed (Yes at Step S17), the deserializer 10 proceeds to the process at Step S19. On the other hand, when the write process is not completed (No at Step S17), the deserializer 10 performs the write process on the buffers 15a and 15b until the end of the data is detected (Step S18), and returns to Step S16.

なお、デシリアライザ10は、ライトされた画像データのバッファ段数とend_ptr値とが等しい場合に、データの末端までライト処理したと判定する。   The deserializer 10 determines that the write processing has been performed up to the end of the data when the number of buffer stages of the written image data is equal to the end_ptr value.

ステップS19において、デシリアライザ10は、データ末端検出までの段数管理のため、STPコード及び長さコードに基づいて、データ末端を検出したバッファ段数をend_ptr値として保持する(ステップS19)。   In step S19, the deserializer 10 holds, as an end_ptr value, the number of buffer stages from which the data end has been detected based on the STP code and the length code in order to manage the number of stages until the data end is detected (step S19).

なお、デシリアライザ10は、ステップS14及びステップS18において、ステップS19で保持されたend_ptr値を用いてデータ末端を検出するようにしてもよい。例えば、ステップS18において、デシリアライザ10は、データ末端に対応するバッファ段数が5であった場合、end_ptr値を5とする。ステップS18において、デシリアライザ10は、ライトされた画像データのバッファ段数≧5となるまで、ライト処理行う。   Note that the deserializer 10 may detect the end of the data using the end_ptr value held in step S19 in step S14 and step S18. For example, in step S18, when the number of buffer stages corresponding to the data end is 5, the deserializer 10 sets the end_ptr value to 5. In step S <b> 18, the deserializer 10 performs a write process until the number of buffer stages of the written image data ≧ 5.

デシリアライザ10は、バッファ15a及び15bからのリード処理が完了するまでに、リードした画像データを画像処理部へ転送する(ステップS21)。続いて、デシリアライザ10は、画像データの画像処理部への転送を完了させると(ステップS21)、処理を終了させる。   The deserializer 10 transfers the read image data to the image processing unit until the read processing from the buffers 15a and 15b is completed (step S21). Subsequently, when the deserializer 10 completes the transfer of the image data to the image processing unit (step S21), the deserializer 10 ends the process.

デシリアライザ10は、全ての画像データの転送が完了するまでステップS10〜S21の処理を実行する。   The deserializer 10 executes the processes of steps S10 to S21 until the transfer of all the image data is completed.

ステップS15で行われるライト処理と、ステップS18で行われるライト処理とを具体例を挙げて説明する。   The write process performed in step S15 and the write process performed in step S18 will be described with specific examples.

例えば、デシリアライザ10は、バッファ15a又は15bにおいてデータ末端を検出するまでは、ステップS15のライト処理を継続して行う。   For example, the deserializer 10 continues the write process in step S15 until the end of the data is detected in the buffer 15a or 15b.

デシリアライザ10は、バッファ15aにおいてデータ末端を検出した場合、バッファ15aのリード処理を開始(ステップS16)するとともにバッファ15bのリード処理を開始(ステップS16)する。   When the deserializer 10 detects the end of the data in the buffer 15a, the deserializer 10 starts the read process of the buffer 15a (step S16) and starts the read process of the buffer 15b (step S16).

デシリアライザ10は、バッファ15aのライト処理が完了しているので、バッファ15aに関してはステップS19の処理に移行する。一方、デシリアライザ10は、バッファ15bのライト処理は完了していないので、ステップS16のリード処理を行いつつ、ステップS18のライト処理を実行する。デシリアライザ10は、バッファ15bに対するステップS18のライト処理を、データ末端を検出するまで実行する。   Since the deserializer 10 has completed the write process of the buffer 15a, the deserializer 10 proceeds to the process of step S19 for the buffer 15a. On the other hand, since the write processing of the buffer 15b is not completed, the deserializer 10 performs the write processing of step S18 while performing the read processing of step S16. The deserializer 10 executes the write process in step S18 for the buffer 15b until the end of the data is detected.

以上、実施態様1に示したように制御コードを除去する際に使用するバッファの容量を小さくすることができるので、デシリアライザ10における消費電力を抑えることができる。   As described above, since the capacity of the buffer used when removing the control code can be reduced as described in the first embodiment, power consumption in the deserializer 10 can be suppressed.

(実施形態2)
デシリアライザ10は、画像データの末端にENDコードを有する可変長コードに基づいて画像データの末端の位置を特定してもよい。ENDコードは、有効データの終わりを示す制御コード(Kコード)である。
(Embodiment 2)
The deserializer 10 may specify the position of the end of the image data based on a variable length code having an END code at the end of the image data. The END code is a control code (K code) indicating the end of valid data.

この場合、ENDコードは実施形態1の方法によるデータ末端検出の補助あるいは精度向上のために用いられる。なお、シリアル通信装置1の構成は、実施形態1と同様であるので説明を省略する。   In this case, the END code is used for assisting data end detection by the method of Embodiment 1 or for improving accuracy. Note that the configuration of the serial communication device 1 is the same as that of the first embodiment, and thus the description thereof is omitted.

図8は、可変長コードの第2の例を示す。可変長コードαは、STPフレーム41と画像データ42と、ENDコード44との組み合わせにより構成される。COMコード43は、可変長コードα間に格納される。   FIG. 8 shows a second example of the variable length code. The variable length code α is configured by a combination of an STP frame 41, image data 42, and an END code 44. The COM code 43 is stored between the variable length codes α.

STPフレーム41は、COMコード、長さコード(図8では「Length」と表記)及びSTPコードの組み合わせにより構成される。COMコードは、他のSTPコード及び長さコードとの境界に格納される。長さコードは、画像データ42のデータ長を示す。STPコードは、画像データ42の先頭の位置を示す。なお、STPフレーム41に含まれるCOMコード、長さコード及びSTPコードの組み合わせ数が4つの例について説明したが、組み合わせ数は5以上であってもよく、3以下であってもよい。   The STP frame 41 includes a combination of a COM code, a length code (indicated as “Length” in FIG. 8), and an STP code. The COM code is stored at the boundary with other STP codes and length codes. The length code indicates the data length of the image data 42. The STP code indicates the start position of the image data 42. In addition, although the example in which the number of combinations of the COM code, the length code, and the STP code included in the STP frame 41 is four has been described, the number of combinations may be 5 or more, or 3 or less.

各々のSTPコードは、それぞれ画像データ42の先端の位置を示しており、デシリアライザ10のRXIF部13は、先端の位置に長さデータが示すデータ長を加算することで画像データの末端の位置を取得することができる。RXIF部13は、画像データの末端の位置にENDコード44があるか否かを判定する。画像データの末端の位置にENDコード44があることを条件として、RXIF部13は、画像データ42の末端の位置を特定する。   Each STP code indicates the position of the tip of the image data 42, and the RXIF unit 13 of the deserializer 10 adds the data length indicated by the length data to the position of the tip, thereby determining the position of the end of the image data. Can be acquired. The RXIF unit 13 determines whether or not the END code 44 exists at the end position of the image data. The RXIF unit 13 specifies the position of the end of the image data 42 on condition that the end position of the image data has the END code 44.

なお、RXIF部13は、検出した複数の長さコードが全て同じ値であることを追加の条件として画像データ42の末端の位置を特定するようにしてもよい。   Note that the RXIF unit 13 may specify the position of the end of the image data 42 on the condition that all of the detected length codes have the same value.

このように、画像データの末端の位置でENDコードを検出することを条件として画像データの末端を検出することで、画像データ末端の検出の信頼性を高めることができる。   Thus, by detecting the end of the image data on condition that the END code is detected at the end position of the image data, the reliability of detection of the end of the image data can be improved.

また、画像データの末端に付加するENDコードは、1つのみでもよく、可変長コードαのデータ長を短くすることができるため、制御コードを除去する際に使用するバッファの容量を小さくすることができ、消費電力を抑えることができる。   In addition, only one END code may be added to the end of the image data, and the data length of the variable length code α can be shortened, so that the capacity of the buffer used when removing the control code is reduced. Power consumption can be reduced.

また、シリアライザ20は、ENDコードの前後に巡回符号、誤り訂正符号等を付加し、デシリアライザ10は、付加された巡回符号、誤り訂正符号等を検出し、処理できる構成としてもよい。   The serializer 20 may add a cyclic code, an error correction code, and the like before and after the END code, and the deserializer 10 may detect and process the added cyclic code, error correction code, and the like.

以上、シリアル通信装置を実施形態により説明したが、本発明は上記実施形態に限定されるものではなく、本発明の範囲内で種々の変形及び改良が可能である。   The serial communication device has been described above by way of the embodiment. However, the present invention is not limited to the above embodiment, and various modifications and improvements can be made within the scope of the present invention.

実施形態1及び2に記載のシリアル転送は、複数の装置を含む通信システムにも適用できる。実施形態1及び2に記載のシリアル転送を通信システムに適用する例について説明する。   The serial transfer described in the first and second embodiments can be applied to a communication system including a plurality of devices. An example in which the serial transfer described in the first and second embodiments is applied to a communication system will be described.

図9は、通信システム2の構成の例を示す図である。通信システム2は、プリンタサーバ3とスキャナ4とを有する。プリンタサーバ3は、デシリアライザ10を含む。また、スキャナ4は、シリアライザ20を含む。このように、装置間の通信に実施形態1及び2に記載のシリアル転送を適用してもよい。   FIG. 9 is a diagram illustrating an example of the configuration of the communication system 2. The communication system 2 includes a printer server 3 and a scanner 4. The printer server 3 includes a deserializer 10. The scanner 4 includes a serializer 20. As described above, the serial transfer described in the first and second embodiments may be applied to communication between apparatuses.

また、実施形態1では、シリアル転送の経路を2つとし、バッファを2つ用いたが、これに限定されず、経路及びバッファを1つとしてもよく、4リンク、8リンク等にしてもよい。   In the first embodiment, two serial transfer paths and two buffers are used. However, the present invention is not limited to this. One path and buffer may be used, and four links, eight links, and the like may be used. .

また、実施形態1において、画像データの後方に巡回符号、誤り訂正符号を付加する構成としてもよい。   In the first embodiment, a cyclic code and an error correction code may be added behind the image data.

なお、本実施形態において、バッファ15は、記憶領域の一例である。RXIF部13は、処理部の一例である。TXIF部23は、付加部の一例である。シリアル送信部25は、送信部の一例である。画像データは、受信データの一例である。STPコードは、開始コードの一例である。ENDコードは、終端コードの一例である。   In the present embodiment, the buffer 15 is an example of a storage area. The RXIF unit 13 is an example of a processing unit. The TXIF unit 23 is an example of an adding unit. The serial transmission unit 25 is an example of a transmission unit. Image data is an example of received data. The STP code is an example of a start code. The END code is an example of a termination code.

1 シリアル通信装置
2 通信システム
6a,6b レシーバ(受信部)
10 デシリアライザ
11a,11b CDR部
12a,12b デコード部
13 RXIF部(処理部)
15a,15b バッファ
20 シリアライザ
21a,21b P/S変換部
22a,22b エンコード部
23 TXIF部(付加部)
25 シリアル送信部
DESCRIPTION OF SYMBOLS 1 Serial communication apparatus 2 Communication system 6a, 6b Receiver (reception part)
10 Deserializer 11a, 11b CDR unit 12a, 12b Decoding unit 13 RXIF unit (processing unit)
15a, 15b Buffer 20 Serializers 21a, 21b P / S conversion units 22a, 22b Encoding unit 23 TXIF unit (addition unit)
25 Serial transmitter

特開2010−114762号公報JP 2010-114762 A

Claims (8)

データの先頭を示す開始コードと前記データの長さを示す長さコードとを前記データの先頭に付加する付加部と、
前記開始コードと前記長さコードを付加したデータを、シリアル形式に変換して送信する送信部と、
前記送信部から前記データを受信する受信部と、
前記受信したデータから前記開始コードと前記長さコードとを検出し、前記検出した開始コードに基づいて前記データの先頭の位置を特定し、前記開始コード及び前記長さコードに基づいて前記データの末端の位置を特定し、前記特定したデータの先頭及び末端の位置に基づいてデータを処理する処理部とを有するシリアル通信装置。
An adding unit for adding a start code indicating the head of data and a length code indicating the length of the data to the head of the data;
A transmission unit that converts the data added with the start code and the length code into a serial format and transmits the data;
A receiver that receives the data from the transmitter;
The start code and the length code are detected from the received data, a head position of the data is specified based on the detected start code, and the start of the data is determined based on the start code and the length code. A serial communication apparatus comprising: a processing unit that specifies a terminal position and processes data based on the head and terminal positions of the specified data.
前記処理部は、受信した前記データを、前記特定した先端の位置から順に記憶領域に蓄積させ、該記憶領域に蓄積されたデータを前記先端の位置から前記末端の位置まで読み取る請求項1に記載のシリアル通信装置。   2. The processing unit according to claim 1, wherein the processing unit accumulates the received data in a storage area in order from the identified tip position, and reads the data stored in the storage area from the tip position to the end position. Serial communication device. 前記付加部は、複数の前記開始コードと複数の前記長さコードとを前記データに付加し、
前記処理部は、複数の前記長さコードと、該長さコードに対応する開始コードとを検出た場合に前記末端の位置を特定する請求項1または2に記載のシリアル通信装置。
The adding unit adds a plurality of the start codes and a plurality of the length codes to the data,
The serial communication device according to claim 1, wherein the processing unit identifies the position of the terminal when detecting a plurality of the length codes and a start code corresponding to the length codes.
前記処理部は、2以上の同じ値を有する前記長さコードが検出されたときに、前記末端の位置を特定する請求項1又は2に記載のシリアル通信装置。   The serial communication device according to claim 1, wherein the processing unit specifies the position of the end when the length code having the same value of 2 or more is detected. 前記付加部は、前記データの末端に少なくとも1つの終端コードを付加し、
前記処理部は、前記終端コードが検出されたときに前記末端の位置を特定する請求項3又は4に記載のシリアル通信装置。
The adding unit adds at least one end code to the end of the data;
The serial communication device according to claim 3, wherein the processing unit specifies the position of the terminal when the terminal code is detected.
前記処理部は、前記特定されたデータの末端位置まで記憶領域に蓄積された場合又は前記記憶領域内に所定量以上のデータが格納された場合に、データの読み取りを開始する請求項1乃至5のいずれか1項に記載のシリアル通信装置。   The processing unit starts reading data when it is accumulated in a storage area up to the end position of the specified data or when a predetermined amount or more of data is stored in the storage area. The serial communication device according to any one of the above. 送信装置によってシリアル形式に変換されたデータを受信装置が受信する通信システムにおいて、
前記送信装置は、
前記データの先頭を示す開始コードと前記データの長さを示す長さコードとを前記データの先頭に付加する付加部と、
前記データをシリアル形式に変換して前記受信装置に送信する送信部と、を有し、
前記受信装置は、
前記送信装置から前記データを受信する受信部と、
前記受信したデータをパラレル形式に変換してから記憶領域に蓄積させ、前記データの先頭に付加された、前記データの先頭を示す開始コードと前記データの長さを示す長さコードとを検出し、前記検出した開始コードに基づいて前記データの先頭の位置を特定し、前記開始コード及び前記長さコードに基づいて前記データの末端の位置を特定し、前記特定したデータの先頭及び末端の位置に基づいてデータを処理する処理部と、
を有する通信システム。
In a communication system in which a receiving device receives data converted into a serial format by a transmitting device,
The transmitter is
An adding unit for adding a start code indicating the head of the data and a length code indicating the length of the data to the head of the data;
A transmission unit that converts the data into a serial format and transmits the data to the receiving device;
The receiving device is:
A receiver for receiving the data from the transmitter;
The received data is converted into a parallel format and then stored in a storage area, and a start code indicating the head of the data and a length code indicating the length of the data added to the head of the data are detected. The start position of the data is specified based on the detected start code, the end position of the data is specified based on the start code and the length code, and the start and end positions of the specified data are specified. A processing unit for processing data based on
A communication system.
データの先頭を示す開始コードと前記データの長さを示す長さコードとを前記データの先頭に付加し、
前記開始コードと前記長さコードを付加したデータを、シリアル形式に変換して送信し、
前記送信されたデータを受信し、
前記受信したデータをパラレル形式に変換してから記憶領域に記憶させ、
前記データの先頭に付加された、前記データの先頭を示す開始コードと前記データの長さを示す長さコードとを検出し、
前記検出した開始コードに基づいて前記データの先頭の位置を特定し、
前記開始コード及び前記長さコードに基づいて前記データの末端の位置を特定し、
前記特定したデータの先頭及び末端の位置に基づいてデータを抽出する処理をシリアル通信装置が実行する通信方法。
Adding a start code indicating the beginning of data and a length code indicating the length of the data to the beginning of the data;
The data with the start code and the length code added is converted into a serial format and transmitted,
Receiving the transmitted data;
The received data is converted into a parallel format and then stored in a storage area,
Detecting a start code indicating the head of the data and a length code indicating the length of the data, which is added to the head of the data;
Identifying the start position of the data based on the detected start code;
Locating the end of the data based on the start code and the length code;
A communication method in which a serial communication apparatus executes a process of extracting data based on the start and end positions of the specified data.
JP2015173182A 2015-09-02 2015-09-02 Serial communication device, communication system, and communication method Pending JP2017050734A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015173182A JP2017050734A (en) 2015-09-02 2015-09-02 Serial communication device, communication system, and communication method
US15/238,482 US10044535B2 (en) 2015-09-02 2016-08-16 Serial communication apparatus, communication system, and method for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015173182A JP2017050734A (en) 2015-09-02 2015-09-02 Serial communication device, communication system, and communication method

Publications (1)

Publication Number Publication Date
JP2017050734A true JP2017050734A (en) 2017-03-09

Family

ID=58096956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015173182A Pending JP2017050734A (en) 2015-09-02 2015-09-02 Serial communication device, communication system, and communication method

Country Status (2)

Country Link
US (1) US10044535B2 (en)
JP (1) JP2017050734A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021019291A (en) * 2019-07-19 2021-02-15 株式会社リコー Serial communication device, communication control method and program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862210B (en) * 2019-03-26 2020-12-25 中国科学院长春光学精密机械与物理研究所 Acquisition and receiving system for multi-path and multi-spectral-band serial image data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5217919B2 (en) 2008-11-07 2013-06-19 株式会社リコー Serial communication device, communication control method, communication control program
JP5936030B2 (en) * 2011-12-09 2016-06-15 ソニー株式会社 Information processing apparatus, information processing method, and program
KR101217607B1 (en) * 2012-04-18 2013-01-02 현대인프라코어 주식회사 Industrial controller device capable of high speed serial communication with ultra low error rate and operation method thereof
JP2015146525A (en) 2014-02-03 2015-08-13 株式会社リコー Communication device, image forming apparatus, communication method, and program
JP6363889B2 (en) * 2014-07-01 2018-07-25 キヤノン株式会社 Image pickup device, image pickup apparatus, and control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021019291A (en) * 2019-07-19 2021-02-15 株式会社リコー Serial communication device, communication control method and program
JP7334519B2 (en) 2019-07-19 2023-08-29 株式会社リコー SERIAL COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM

Also Published As

Publication number Publication date
US10044535B2 (en) 2018-08-07
US20170063521A1 (en) 2017-03-02

Similar Documents

Publication Publication Date Title
US10997016B2 (en) Method of encoding data
JP5233165B2 (en) Data transmission device
KR101266067B1 (en) Method for serial communicationn using signal embedded clock and apparatus thereof
WO2013001631A1 (en) Transmission device, transmission circuit, transmission system, and method for controlling transmission device
US8103942B2 (en) Data transmission apparatus, data transmission device, data reception device and data transmission system
US8572300B2 (en) Physical coding sublayer (PCS) architecture for synchronizing data between different reference clocks
US10129371B2 (en) Serial communication device and serial communication method
JP5531655B2 (en) Serial data receiving circuit device and serial data receiving method
JP5936030B2 (en) Information processing apparatus, information processing method, and program
JP2009182577A (en) Communication system
US6385319B1 (en) Encoding circuit and method of detecting block code boundary and establishing synchronization between scrambler and descrambler
JP5217919B2 (en) Serial communication device, communication control method, communication control program
JP2017050734A (en) Serial communication device, communication system, and communication method
US20220053053A1 (en) Transmission device, transmission method, reception device, reception method, and transmission-reception device
EP1320208A2 (en) Serial communications system and method
JP5761551B2 (en) Transmission device, transmission method, reception device, reception method, program, and transmission system
JP5369524B2 (en) Clock data recovery circuit
US11930296B2 (en) Transmission device, reception device, and transmission system with padding code insertion
US20120144257A1 (en) Receiving apparatus, data transfer apparatus, data receiving method and non-transitory computer readable recording medium
CN110519602B (en) Method and device for data stream transmission
JP5204851B2 (en) Data transmission method
JP5257532B1 (en) Receiving apparatus and communication system
US20220166598A1 (en) Transmission apparatus, reception apparatus, and transmission system
JP6922259B2 (en) Image transfer system, image transfer device, and image transfer method
KR101605181B1 (en) Method for correction of error code included in control signal of hdmi/mhl