主权项 |
1. A reception circuit that receives data in serial communications through a plurality of lanes, comprising:
a plurality of buffers that each stores data received through corresponding lane, one buffer of the plurality of buffers provided for each of the plurality of lanes; a multilane control circuit that detects the skew between the lanes by detecting a deskew pattern at each buffer's read data of the plurality of lanes, that outputs, according to the detected skew, a first signal, which does not increment a read address of each of the plurality of buffers and which is for eliminating the skew between the lanes, to a plurality of address control circuits other than an address control circuit corresponding to a lane that is a last to receive the deskew pattern, and that outputs a deskew information indicating that a skew adjustment between which buffer the lanes is to be performed; the plurality of address control circuits that each transmits the first signal to a corresponding buffer when receiving the deskew information, one address control circuit of the plurality of address control circuits provided for each of the plurality of lanes; a plurality of address controllers that each starts writing and reading to the corresponding buffer by detecting a boundary, and constantly increments a write address by one after starting the writing; and a plurality of flip-flops that are provided between each of the plurality of address control circuits and the multilane control circuit, wherein each of the plurality of buffers that have received the first signal adjusting its read address, the plurality of buffers each outputs a difference information indicating whether a difference between a write address and a read address is larger or smaller than a predetermined value, the multilane control circuit outputs the first signal that does not increment the read address and a second signal, which increments the read address by two, to all the plurality of address control circuits, according to a plurality of difference information at predetermined timing after adjusting skew between lanes, the plurality of address control circuits each output the first signal and the second signal to the corresponding buffer corresponding the lane of which skew is adjusted by the multilane control circuit, and the predetermined timing is any timing between detection of one symbol subsequent to a head symbol in a clock frequency difference compensation pattern and detection of one symbol prior to an end symbol in the clock frequency difference compensation pattern in each read data read from each of the plurality of buffers, the predetermined timing depending on a number of the plurality of flip-flops. |