This invention relates to a circuit composed of a serial-to-parallel converter/FIFO (First In First Out)/parallel-to-serial converter and which may be conveniently applied to e.g. an interface circuit.
The phase interpolator 104 outputs multi-phase clocks, each phase of which corresponds to the phase obtained by internal division of the phase difference between the associated input clock signals. The multi-phase clocks output from the phase interpolator 104 are supplied to a sample circuit 105.
The sample circuit 105 includes a plurality of flip-flops, not shown, connected in parallel. The flip-flops, which receive the output signal (received data) of the input buffer 101 at data terminals thereof, and receives, as sampling clocks, corresponding ones of multi-phase clocks from the phase interpolator 104 at clock terminals thereof, latch and output the received data responsive to the respective sampling clocks.
A CDR (clock and data recovery) control circuit 106 includes an up/down counter receiving an output of a flip-flop, not shown, of the sample circuit 105, and counting up and down when an output of the flip-flop is logic 0 or logic 1, respectively. The CDR control circuit also includes a filter, not shown, for time averaging an output of the up/down counter, and a control circuit, not shown, receiving and decoding an output of the filter and transmitting a phase controlling signal (ratio of internal division of the phase interpolator 104) to the phase interpolator 104. The divider 103, phase interpolator 104, sample circuit 105 and the CDR control circuit 106 compose a clock and data recovery circuit. The clock and data recovery circuit generates and outputs received data and a recovered clock signal. Regarding the detail of the clock and data recovery circuit, reference may be made to e.g. Patent Document 1.
Out of a plural number (four in
The serial data signal output from the sample circuit 105 of the clock and data recovery circuit is written in a FIFO 115. More specifically, the serial data signal is written in a register 118 of the FIFO 115, with an output of the counter 117 as a write address. 2-bit data, read out from the register 118, with an output of the counter 116 as a read address, are supplied to a serial-to-parallel converter 109 via selector 108. The serial-to-parallel converter 109 executes serial-to-parallel conversion (2:10 serial-to-parallel conversion), based on an output of the counter 110, to output 10-bit parallel received data RXDAT [9:0] to an internal circuit, not shown. A divided clock signal obtained on dividing an output of a selector 107 by the counter 110 is supplied to serial-to-parallel converter 109 as a clock signal for the serial-to-parallel conversion. This counter may, for example, be a Johnson counter. The selector 107 selects either the divided clock signal of the divider 103 or output clock signal of the phase interpolator 104, based on a selection signal Sel1, and supplies the selected signal to the counter 110. In case wherein the output clock signal of the phase interpolator 104 is supplied to the counter 110, the selector 107 may be omitted. The selector 108 selects either received serial data from the sample circuit 105 of the clock and data recovery circuit, or received serial data, transiently stored in the FIFO 115, based on the selection signal Sel1, and outputs the selected data.
A serialization circuit includes a parallel-to-serial converter 114 for converting 10-bit parallel transmission data TXDAT [9:0] into two streams of serial data, a selector 119 and a multiplexer 113 receiving an output (even and odd bits) from the selector 119 to multiplex the data by 2:1. The serialization circuit also includes a pre-emphasis circuit 112 for enhancing the signal amplitude (pre-emphasis) at each signal change point, and a differential output buffer 111 for differentially outputting the transmission signal. The selector 119 selects either the transmission serial data, output from the parallel-to-serial converter 114, for example odd/even data of two bits, or received serial data from the selector 108, for example, odd/even data of two bits, based on a selection signal (interrupt enable signal) Sel2. For example, the selector 119 selects and outputs received serial data from the selector 108, during the pass-through time, while selecting and outputting an output of the parallel-to-serial converter 114 for the merge operation, that is, in case of the selection signal Sel2 indicating interrupt enable. It is noted that the merge operation means merging the frames of the received data and the transmission data and serially transmitting the so merged frames.
In the configuration of
In contrast thereto, in the configuration shown in
Meanwhile, in Patent Document 2, there is disclosed, as a serial-to-parallel converter for transforming serial data into n-bit parallel data, a configuration including a FIFO having n-bit flip-flops and supplied with a serial data signal and a flip-flop for buffering an output of the FIFO, whereby the number of circuit elements in use may be reduced without detracting from the function.
Japanese Patent Kokai Publication No.JP-P2002-190724A
Japanese Patent Kokai Publication No. JP-P2005-33681A
In the interface circuits, described with reference to
The interface circuits also suffer from the problem that, in case of making changeover between an output of the serial-to-parallel converter 114 (frame being supplied) and an output of the FIFO 115 (frame received) by the selector 119, difficulties are met in timing adjustment.
The invention disclosed in the present application may be summarized as follows:
A converter circuit in accordance with one aspect of the present invention includes: a register for receiving plural items of data serially and for sampling the received data to output plural items of the sampled data in parallel; a selector for receiving said plural items of data output in parallel from said register and for selecting one of said plural items of data in accordance with a control signal; and a circuit for generating said control signal to be supplied to said selector so that said plural items of data are serially output from said selector in the sequence corresponding to the sequence in which said plural items of data have been serially received by said register.
Preferably, in the present invention, a parallel output is obtained from the register, so that the function of serial-to-parallel conversion is achieved.
Preferably, in the present invention, the plural items of data from the selector are serially output in the sequence in which the plural items of data have been serially received by the register, so that the function as FIFO and the function of parallel-to-serial conversion may be achieved.
Preferably, in the present invention, there are provided a first counter for generating a control signal for said register to sample said plural items of data serially; and a second counter for generating said control signal for said selector. The first counter being operated by a first clock signal; and the second counter is operated by a second clock signal so that change-over is performed from clocking by said first clock signal to clocking by said second clock signal.
According to the present invention, second parallel data may supplied to the selector. When the selection signal has selected the second parallel data, the second parallel data is serially output.
According to the present invention, the selector includes a plurality of switches arranged in parallel for receiving relevant ones of a plurality of bit data forming the plural items of data. The output ends of the switches are connected in common. The switches receive relevant ones of multi-phase clock signals from the first counter, and are turned on to output bit data supplied thereto when the relevant ones of the clock signals are of a first value, while being turned off when the relevant ones of the clock signals are of a second value.
An interface circuit in accordance with another aspect of the present invention includes a pre-emphasis circuit receiving serial data output from the selector and enhancing the amplitude of the serial data by way of pre-emphasis to output the resulting data.
The interface circuit according to the present invention includes an input buffer to which are entered received data, and a clock and data recovery circuit for receiving the received data from the input buffer and an internal clock signal for recovering clocks and data. The second clock signal is supplied from the clock and data recovery circuit, while the first clock signal is the internal clock signal.
The meritorious effects of the present invention are summarized as follows.
According to the present invention, a serial-to-parallel converter, parallel-to-serial converter and FIFO are functionally incorporated in one to contribute to the reduction of circuit size and power consumption and to the increase of operation speed.
Still other features and advantages of the present invention will become readily apparent to those skilled in this art from the following detailed description in conjunction with the accompanying drawings wherein only the preferred embodiments of the invention are shown and described, simply by way of illustration of the best mode contemplated of carrying out this invention. As will be realized, the invention is capable of other and different embodiments, and its several details are capable of modifications in various obvious respects, all without departing from the invention. Accordingly, the drawing and description are to be regarded as illustrative in nature, and not as restrictive.
Reference will now be made to the accompanying drawings for further detailed description of the present invention. Initially, the configuration and the operating principle of the invention will be described.
The four bit data signals 15, output from the register 1, are supplied to the selector 2. The selector 2 selects data in time-division in order, in accordance with a control signal 14 from the counter 4, so as to be output as serial data 12. The control signal 14 from the counter 4 is made up of divided-by-four/four-phase clocks. With one clock cycle tCLK2 of the clock signal CLK2, the first to fourth phase clocks, forming the control signal 14, are phase-shifted from each other by tCLK2, with the high level period being tCLK2. Based on the first to four phase clocks of the control signal 14, supplied from the counter 4, the selector 2 selects and outputs corresponding one of the four data signals 15, during the time when the first to fourth phase clocks are at a HIGH level, as an example. In this manner, plural items of serial output data 12 are output in the sequence in which plural items of serial input data 11 have been supplied to the register 1, thus achieving the FIFO function. The change-over of clocking from the FIFO write clock CLK1 to the FIFO read clock CLK2 is performed by the FIFO. The above-described configuration may, of course, be applied to a LIFO (Last In First Output).
According to the present invention, the circuit may be reduced in size by incorporating a serial-to-parallel converter, a parallel-to-serial converter and a FIFO in one, thereby contributing to the reduction of power dissipation and to high operation speed. An example of the present invention, in which the present invention is applied to an interface circuit having a serialization/deserialization circuit (SerDes circuit), will now be described.
Two serial data signals from the sample circuit 105 of the clock and data recovery circuit is supplied to the register 120 and sampled by clock signals from the counter 122. Although no limitations are imposed on the clock signals from the counter 122, it may, for example, be five phase clocks of an even phase and five phase clocks of an odd phase of divided-by-10 ten phase clocks. The register 120 converts each of two serial data received from the sample circuit 105 into five-bit parallel data to output ten-bit parallel data RXDAT [9:0].
The ten-bit data from the register 120 are supplied to the selector 121 and selected during the pass-through time under control by the selection signal SEL2. The selector 121 selects the received ten-bit data, using outputs of the counter 123 as a selection signal to output two serial data. The outputs of the counter 123 may, for example, be five even phase clocks and five odd phase clocks of the divided-by 10 ten phase clocks. The serial data output may be odd bits and even bits. The two serial data from the selector 121 are supplied to the multiplexer 113. The multiplexer 113 multiplexes the two streams of serial data signals into one stream serial data which then is supplied to the pre-emphasis circuit 112.
Meanwhile, during the merge operation, that is, during the interrupt enable time, the selector 121 selects the ten-bit parallel transmission data TXDATA [9:0], under control by the selection signal SEL2. In this case, the selector 121 outputs two streams of serial data, using an output of the counter 123 as a selection signal. The outputs of the counter 123 may, for example, be five even phase clocks and five odd phase clocks of the divided-by-10 ten phase clocks. The two streams of serial data output from the selector 121 may be a stream of odd bits and a stream of even bits of the ten-bit parallel transmission data TXDAT [9:0]. That is, the selector 121 provides for 10:2 parallel-to-serial conversion on the transmission data TXDAT [9:0].
During the pass-through time, the selector 121 outputs the two streams of serial data in the sequence in which the two streams of serial data from the sample circuit 105 of the clock and data recovery circuit have been received by the register 120, thereby implementing the FIFO function, along with the register 120. Meanwhile, if the selector 107 selects, as a read clock of the FIFO (a clock supplied to the counter 123), an output of the divider 103, that is, a clock obtained on dividing the output clock of the PLL circuit 102, based on the selection signal Sel1, the change-over of the clock is performed. The interface circuit shown in
Although the present invention has so far been explained with reference to the preferred embodiments, the present invention is not limited to the particular configurations of these embodiments. It will be appreciated that the present invention may encompass various changes or corrections such as may readily be arrived at by those skilled in the art within the scope and the principle of the invention.
It should be noted that other objects, features and aspects of the present invention will become apparent in the entire disclosure and that modifications may be done without departing the gist and scope of the present invention as disclosed herein and claimed as appended herewith.
Also it should be noted that any combination of the disclosed and/or claimed elements, matters and/or items may fall under the modifications aforementioned.
Number | Date | Country | Kind |
---|---|---|---|
2005-219344 | Jul 2005 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4620180 | Carlton | Oct 1986 | A |
4674064 | Vaughn | Jun 1987 | A |
5134702 | Charych et al. | Jul 1992 | A |
5398241 | Witchey | Mar 1995 | A |
6198415 | Yoshikawa et al. | Mar 2001 | B1 |
6266799 | Lee et al. | Jul 2001 | B1 |
6693986 | Nemoto | Feb 2004 | B2 |
6753712 | Saeki | Jun 2004 | B2 |
7336754 | Aoyama | Feb 2008 | B2 |
20020079938 | Saeki | Jun 2002 | A1 |
20050135527 | Masui et al. | Jun 2005 | A1 |
Number | Date | Country |
---|---|---|
62-233931 | Oct 1987 | JP |
2-89424 | Mar 1990 | JP |
4-286422 | Oct 1992 | JP |
9-135237 | May 1997 | JP |
2000-151568 | May 2000 | JP |
2002-190724 | Jul 2002 | JP |
2003-333021 | Nov 2003 | JP |
2003-347941 | Dec 2003 | JP |
2005-5999 | Jan 2005 | JP |
2005-033681 | Feb 2005 | JP |
2001-244917 | Jul 2005 | JP |
2005-192192 | Jul 2005 | JP |
Number | Date | Country | |
---|---|---|---|
20070073943 A1 | Mar 2007 | US |