AN ARRANGEMENT FOR CAPTURING DATA

Abstract: An arrangement for capturing data from a data stream of a predetermined data transfer rate by means of a flip-flop (I2), comprises a symmetrical multi-phase clock generator (I3) that is adapted to be locked to a reference clock which in turn is adapted to generate a reference clock signal at the data transfer rate or at a fraction thereof, the multi-phase clock generator (I3) being adapted to generate n clock signals mutually shifted 360 °/n from each other, and a selector (I7) that is conneced to the clock generator (I3) to receive the n clock signals, the selector (I7) being adapted to select one of these n clock signals as the system clock signal in response to a control signal from a clock phase counter (I8), the clock phase counter (I8) being controlled to count up or down in response to the phase of the system clock signal when a predetermined number of data transitions have occurred in the data stream, said flip-flop (I2) being adapted to be controlled by the opposite phase of the system clock signal to capture said data from the data stream.

Description: AN ARRA GEMENT FOR CAPTURING DATA TECHNICAL FIELD The invention relates generally to data reception and more specifically to the capture and resynchronization of data from a high-speed data stream. BACKGROUND OF THE INVENTION Today, i.a. the below techniques are used to capture data from a data stream. Clock recovery using a phase-locked loop steered by the data. The disadvantage of this technique is that it depends on that data transitions occur at regular intervals. To guarantee this in an arbitrary data stream, extra coding bits must be added which reduces the bandwidth of the real information that can be transmitted in the data stream. Multiple sampling of the data signal as it passes through a delay line. The disadvantage of this technique is that the realization circuitry is complex. Transmission of matched clock and data signals. The disadvantage of this technique is that it places heavy demands on making both the clock path and the data path identical as well as on the transmission medium except when the transmission distances are very short. The known techniques are unsuited for use in connection with high-speed data streams. SUMMARY OF THE INVENTION The object of the invention is to bring about an arrangement that is suitable for use in connection with high-speed data streams. This is attained by means of the arrangement according to the invention for capturing data from a data stream of a predetermined data transfer rate, comprising a first flip-flop that is adapted to receive the data stream on its data input and a system clock signal on its clock input for clocking captured data to its output, a symmetrical multiphase clock generator that is adapted to be locked to a reference clock which in turn is adapted to generate a reference clock signal at the data transfer rate or at a fraction thereof, the multiphase clock generator being adapted to generate n clock signals mutually shifted in phase 360°/n from each other, a selector that is connected with its input to the multiphase clock generator to receive the n clock signals, the selector being adapted to select, in response to a control signal, one of these n clock signals to be the system clock signal to be supplied to the clock input of the first flip-flop, a dual edge triggered second flip-flop that is connected with its data input to the clock input of the first flip-flop and with its clock input to the data input of the first flip-flop to sample the selected system clock signal by means of the incoming data stream on every data transition thereof to generate on its output a retard clock signal that is high if the selected system clock signal is high when sampled and that is low if the selected system clock signal is low when sampled, a divider that is connected with its input to the data input of the first flip-flop and that is adapted to generate a counter clock signal on its output every time a predetermined number of data transitions has occurred in the data stream, and a clock phase counter that is connected with its input to the output of the dual edge triggered second flip-flop, with its clock input to the output of the divider, and with its output to the selector to control the selector to select another one of said n clock signals to be the system clock signal in response to the retard clock signal being high or low. Preferably, said counter clock signal is generated every time at least two data transitions has occurred in the data stream. The arrangement according to the invention synchronizes a clock system to a high-speed input data stream and can be used e.g. when high-speed synchronous data is to be sent between two circuits. BRIEF DESCRIPTION OF THE DRAWING The invention will be described more in detail below with reference to the appended drawing on which Fig. 1 is a block diagram of an embodiment of an arrangement according to the invention, and Figs. 2a-f are pulse diagrams showing the arrangement in Fig. 1 going into lock mode from various conditions. DESCRIPTION OF THE INVENTION In the embodiment illustrated in Fig. 1, a stream of data D to be captured is received on an input connected to the data input of a flip-flop 12. The data stream at the input is shown in Fig. 2a. The incoming data D is illustrated to have a ' 1010... ' pattern in this embodiment as apparent from Fig. 2a. Below, the description of the embodiment in Fig. 1 is divided into three sections, namely multi-phase clock generation, system clock adjustment, and clock demultiplexer control. Multi-phase clock generation To capture the incoming data by means of the flip-flop 12, a reference clock C is provided to generate clock pulses either at the data transfer rate, i.e. the pulse rate of the incoming data D, or at a sub-multiple thereof. The reference clock C is connected to a symmetrical multi-phase clock generator that in the embodiment in Fig. 1 is comprised of a voltage controlled ring oscillator (VCRO) 13 with seven stages. Generally, the VCRO 13 can have any number n of stages. The number of stages is chosen to give a suitable resolution. The VCRO 13 is designed to generate pulses at a pulse rate corresponding to the pulse rate of the incoming data through being adjusted by the reference clock C as described below. The stages of the VCRO 13 consist of identical voltage controlled delay elements. Each delay element in the VCRO 13 is tapped, whereby seven different clock phases are provided, each subsequent phase shifted from the previous phase by 360°/7. If the pulse rate of the reference clock C is a sub-multiple of the required clock rate, then a divider 16 is interconnected in the feedback loop from the VCRO 13 to the phase detector 15 to get the correct pulse rate for the VCRO 13 in the conventional manner. A phase comparator 15 and a filter 14 are interconnected between the clock C and the VCRO 13 to lock the pulse rate of the VCRO 13 to the pulse rate of the reference clock C or to a multiple thereof in the conventional manner. The taps of the VCRO 13 are connected to a phase selector in the form of a clock demultiplexer 17 in Fig. 1 that is adapted to pick one of these seven phases to be the system clock signal SC shown in Figs. 2b and 2d. Any phase delays in the generation of the system clock pulses SC to this point are not important to the system performance. The only requirement is that the system clock can generate pulses at the required pulse rate. System Clock Adjustment In accordance with the invention, the system clock signal SC in Fig. 2b or 2d is controlled such that its negative transition occurs on a data transition. The positive transition of the system clock pulse is used to clock the data into the data flip-flop 12. This gives maximum set-up and hold times for the data flip-flop 12 within the resolution of the VCRO B. A dual edge triggered flip-flop II is provided to sample the system clock signal SC in Fig. 2b or 2d on each transition of the incoming data D. Depending if the system clock signal SC is high or low when a data transition occurs, a retard clock signal RC shown in Figs. 2c and 2e as outputted by the flip-flop II becomes high (system clock signal is high) or low (system clock signal is low) when a data transition occurs. In the embodiment in Fig. 1, a divider 19 is provided to generate a counter clock signal CC on every third data transition as shown in Fig. 2f. This signal CC is used to clock a phase counter 18 that in this embodiment is a modulo 7 up/down counter. Every third data transition is used in order to allow the clock loop to settle before it is subsequently adjusted. The third transition is unimportant, the number could be two or higher. However using an odd number allows any mismatch between odd and even data transitions to be averaged out. Thus, in the embodiment in Fig. 1, the up/down counter 18 counts up or down on every third data transition, depending if the retard clock signal RC is high (count down) or low (count up). The output signal of the up/down counter 18 controls the clock demultiplexer 17 as described later. The incoming data D is continuously sampled by the data flip-flop 12 on the positive transition of the system clock signal SC. The captured data CD (not shown) that is outputted by the flip-flop 12 is now synchronized to the system clock and is ready for use in the rest of the system. The final "locked" position of the arrangement in Fig. 1 is that the negative transition of the system clock signal SC comes just before or just after a data transition. Within the resolution of the VCRO 13, this will give maximum set-up and hold times for the data flip-flop 12. The arrangement according to the invention can be used to synchronize a clock system to a high-speed input data stream. It can be used when high-speed synchronous data is to be sent between two circuits. The speed of the data channel and the delay in the transmission medium make it impractical to use conventional synchronous techniques. A reference clock pulse rate, which is the same as the data transfer rate or is a sub- multiple thereof, must be available at both the transmitter and the receiver. The performance of this circuit depends only on the matching of the set-up and hold characteristics between the two flip-flops II and 12. This matching can be very well controlled. All other delays in the system are unimportant providing they meet the pulse rate requirement. The system locks after only a few data bits have been sent and thereafter does not depend on the content of the data being sent or on a particular data pattern to remain in lock. The system remains in lock even when no data is sent providing the transmitter and receiver clocks remain the same. Clock Demultiplexer Control For the sake of simplicity, the data D in Fig. 2a is shown to have a transition every cycle. If this is not the case, the counter clock signal cycle is extended and no modification takes place to the system clock signal SC until three data transitions have occurred. Figs. 2b and 2c, illustrating the system clock signal SC and the retard clock signal RC, respectively, show what takes place when the system is trying to synchronize. In this case, the system clock signal SC is too advanced. Consequently, the retard clock signal RC is high and on the positive edge of the counter clock signal CC, the clock phase counter 18 counts down. In its turn, the clock demultiplexer 17 is controlled to choose an earlier clock phase from the VCRO 13. This is illustrated by the shortened system clock pulse denoted A in Fig. 2b. The same thing happens at the next positive edge of the counter clock signal CC and the clock phase counter 18 again counts down. When the system clock phase eventually becomes too retarded with respect to the incoming data, the retard clock signal RC goes low and the clock phase counter 18 counts up as illustrated by the lengthened system clock pulse denoted B in Fig. 2d. Figs. 2d and 2e, illustrating the system clock signal SC and the retard clock signal RC, respectively, show what takes place when the system is in synchronization. The change of state of the clock phase counter 18 alternatively increases and reduces the system clock pulse length as indicated by a pulses B and A, respectively.

Claims: CLAIMS 1. An arrangement for capturing data from a data stream of a predetermined data transfer rate, comprising - a first flip-flop (12) that is adapted to receive the data stream on its data input and a system clock signal on its clock input for clocking captured data to its output, - a symmetrical multiphase clock generator (13) that is adapted to be locked to a reference clock which in turn is adapted to generate a reference clock signal at the data transfer rate or at a fraction thereof, the multiphase clock generator (13) being adapted to generate n clock signals mutually shifted in phase 360 n from each other, and - a selector (17) that is connected with its input to the multiphase clock generator (13) to receive the n clock signals, the selector (17) being adapted to select, in response to a control signal, one of these n clock signals to be the system clock signal to be supplied to the clock input of the first flip-flop (12), characterized in that the arrangement comprises - a dual edge triggered second flip-flop (II) that is connected with its data input to the clock input of the first flip-flop (12) and with its clock input to the data input of the first flip-flop (12) to sample the selected system clock signal (SC) by means of the incoming data stream (D) on every data transition thereof to generate on its output a retard clock signal (RC) that is high if the selected system clock signal (SC) is high when sampled and that is low if the selected system clock signal (SC) is low when sampled, - a divider (19) that is connected with its input to the data input of the first flip-flop (12) and that is adapted to generate a counter clock signal (CC) on its output every time a predetermined number of data transitions has occurred in the data stream, and - a clock phase counter (18) that is connected with its input to the output of the dual edge triggered second flip-flop (II), with its clock input to the output of the divider (19), and with its output to the selector (17) to control the selector (17) to select another one of said n clock signals to be the system clock signal in response to the retard clock signal (RC) being high or low. 2. The arrangement according to claim 1, characterized in that said predetermined number is > 2.

Inventors: FYVIE CLIFFORD D, FYVIE, CLIFFORD, D.
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET LM ERICSSON (PUBL)
Application year: 2001
Main classification: H04L7
IPC codes: H03L7, H04L7