CN111817726A - Serial system - Google Patents

Serial system Download PDF

Info

Publication number
CN111817726A
CN111817726A CN202010661472.7A CN202010661472A CN111817726A CN 111817726 A CN111817726 A CN 111817726A CN 202010661472 A CN202010661472 A CN 202010661472A CN 111817726 A CN111817726 A CN 111817726A
Authority
CN
China
Prior art keywords
data
clock
sampling
circuit
clk
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
CN202010661472.7A
Other languages
Chinese (zh)
Inventor
邓玉林
马新闻
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.)
Shanghai Zhaoxin Integrated Circuit Co Ltd
Original Assignee
Shanghai Zhaoxin Integrated Circuit 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 Shanghai Zhaoxin Integrated Circuit Co Ltd filed Critical Shanghai Zhaoxin Integrated Circuit Co Ltd
Priority to CN202010661472.7A priority Critical patent/CN111817726A/en
Publication of CN111817726A publication Critical patent/CN111817726A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M9/00Parallel/series conversion or vice versa

Abstract

A serial system includes a logical physical layer and an electrical physical layer. The logical physical layer provides a first clock and parallel data. The electrical physical layer provides a second clock, and comprises a clock phase tracking circuit and a transmitting end. The clock phase tracking circuit includes a shift register, a phase detection circuit, and a selection circuit. The shift register samples the parallel data according to a first clock to generate first sample data, second sample data and third sample data. The phase detection circuit generates a detection signal according to the phase difference between the first clock and the second clock. The selection circuit selects one set from the first sample data, the second sample data, and the third sample data as output data in accordance with the detection signal. The transmitting end serializes the output data to generate serial data.

Description

Serial system
Technical Field
The present invention relates to a serial system.
Background
Generally, a serial system includes a logical Physical Layer (LPHY) and an Electrical Physical Layer (EPHY). When the operation clocks of the logical physical layer and the electrical physical layer are not synchronized, the electrical physical layer cannot recognize the data output by the logical physical layer.
Disclosure of Invention
The invention provides a serial system, which comprises a logical physical layer and an electrical physical layer. The logical physical layer provides a first clock and parallel data. The electrical physical layer provides a second clock, and comprises a clock phase tracking circuit and a transmitting end. The clock phase tracking circuit includes a shift register, a phase detection circuit, and a selection circuit. The shift register samples the parallel data according to a first clock to generate first sample data, second sample data and third sample data. The phase detection circuit generates a detection signal according to a phase difference between the first clock and the second clock. The selection circuit selects one set from the first sample data, the second sample data, and the third sample data as output data in accordance with the detection signal. The transmitting end serializes the output data to generate serial data.
Drawings
FIG. 1 is a schematic diagram of a serial system of the present invention.
FIG. 2 is a schematic diagram of the interior of a channel of the electro-physical layer of the present invention.
FIG. 3A is a block diagram of a shift register according to an embodiment of the present invention.
FIG. 3B is a diagram of another exemplary embodiment of a shift register unit.
FIG. 4A is a schematic diagram of a selection circuit according to an embodiment of the present invention.
FIG. 4B is a schematic diagram of a selection circuit according to an embodiment of the present invention.
Fig. 5A is a schematic diagram of a phase detection circuit according to an embodiment of the invention.
Fig. 5B is a schematic diagram of another exemplary embodiment of a phase detection circuit.
Fig. 6A is a schematic diagram of a phase frequency detector according to an embodiment of the invention.
Fig. 6B is a schematic operation diagram of the phase frequency detector of fig. 6A.
Detailed Description
In order to make the objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. The present description provides various examples to illustrate the technical features of various embodiments of the present invention. The arrangement of the components in the embodiments is for illustration and not for limiting the invention. In the embodiments, the reference numerals are partially repeated to simplify the description, and do not indicate the relationship between the different embodiments.
FIG. 1 is a diagram of a serial system 100 according to the present invention. As shown, the serial system 100 includes a logical Physical L (logical Physical L)an eye; LPHY)110 and an Electrical Physical Layer (Electrical Physical Layer; EPHY) 120. The logical physical layer 110 comprises a controller 111 and a plurality of channels LL1~LLn. Controller 111 passes through channel LL1~LLnIn communication with the electrophysical layer 120. Among other things, the serial system shown in fig. 1 may be used in a Serializer/Deserializer (SerDes) system to perform serial operations in the Serializer/Deserializer system.
By channel LL1For example, channel LL1Output clock LP1CLK and parallel data LP1_TCAD<19:0>To the electrophysical layer 120. In one possible embodiment, the clock LP1CLK and parallel data LP1_TCAD<19:0>Is generated by the controller 111. In addition, channel LL1Also receives a clock EP from the Electrical physical layer 1201CLK and parallel data EP1_RCAD<19:0>. In one possible embodiment, the controller 111 is based on the clock EP1CLK and parallel data EP1_RCAD<19:0>And (6) acting.
In the present embodiment, the EPL 120 includes a Phase-Locked Loop (PLL) 121 and a plurality of channels EL1~ELn. The phase-locked loop 121 is used to generate the clock PLL _ CLK to the channel EL1~ELn
Channel EL1~ELnReceiving clock LP1_CLK~LPnCLK and parallel data LP1_TCAD<19:0>~LPn_TCAD<19:0>. In the present embodiment, the channel EL1~ELnFurther providing a clock EP1_CLK~EPnCLK and parallel data EP1_RCAD<19:0>~EPn_RCAD<19:0>Channel LL to logical physical layer 1101~LLn
In the present embodiment, the channel EL1~ELnEach of which comprises a frequency divider, a clock phase tracking circuit, a transmitting end and a receiving end. By channel EL1For example, channel EL1Including a divider 125, a clock phase tracking circuit 122, a transmit terminal 123, and a receive terminal 124. Frequency divider 125Dividing the clock PLL _ CLK to generate the clock TPLL1CLK. Clock phase tracking circuit 122 based on clock TPLL1CLK, sample parallel data LP1_TCAD<19:0>To generate a plurality of sampling data, and according to a clock TPLL1CLK and LP clocks1The CLK phase difference, selects appropriate sample data and outputs the selected sample data to the transmitting terminal 123.
According to an embodiment of the invention, the clock TPLL depends on the architecture of the serializing circuit in the initiator 1231CLK and LP clocks1CLK is different in most serial systems, but clock TPLL1Frequency of CLK and clock LP1The frequency of CLK is the same. When i1 channels use the same communication protocol, the clock LP1_CLK~LPi1CLK is the same, clock TPLL1_CLK~TPLLi1CLK is the same, clock LP1_CLK~LPi1CLK and clock TPLL1_CLK~TPLLi1The frequency of CLK is the same. When (i2-i1) of the remaining lanes employ another communication protocol, the clock LPi1_CLK~LPi2CLK is the same as the clock LP1_CLK~LPi1Different from CLK, clock TPLLi1_CLK~TPLLi2CLK is the same as the clock TPLL1_CLK~TPLLi1Different from CLK, clock LPi1_CLK~LPi2CLK and clock TPLLi1_CLK~TPLLi2CLK has the same frequency as the clock LP1_CLK~LPiThe frequency of CLK is different, wherein 1<=i1<=i2<=n。
The transmitter 123 serializes the sampled data output from the clock phase tracking circuit 122 according to the clock PLL _ CLK to generate and output serial data SO1And _DTto external circuitry (not shown). In one possible embodiment, the serial data SO1DT is a differential signal. The present invention does not limit the circuit architecture of the transmitting terminal 123. Any circuit that can serialize parallel data into serial data can be used as the transmitting terminal 123.
The receiving end 124 receives the serial data SI1And (4) DT. Serial data SI1DT may be a differential signal. In one possible embodiment, the receiver 124 processesSerial data SI1DT for slave serial data SI1Recover clock and data from _ DT. In this example, the receiving end 124 provides parallel data EP1_RCAD<19:0>And a clock EP1CLK to channel LL1. The present invention does not limit the circuit architecture of the receiver 124. Any circuit that can convert serial data into parallel data can be used as the receiving end 124.
FIG. 2 is a schematic diagram of the interior of a channel of the electro-physical layer of the present invention. Channel EL due to the Electrical physical layer 1201~ELnThe same structure, so FIG. 2 only shows the channel EL1The internal architecture of (1). As shown, channel EL1Including a divider 125, a clock phase tracking circuit 122, a transmit terminal 123, and a receive terminal 124.
The clock phase tracking circuit 122 includes a shift register 211, a phase detection circuit 212, and a selection circuit 213. The shift register 211 is based on the clock LP1CLK sample parallel data LP1_TCAD<19:0>For generating sampling data SP1<19:0>~SP3<19:0>. The phase detection circuit 212 is based on the clock LP1CLK and clock TPLL1The phase difference of CLK generates the detection signal SD. The selection circuit 213 selects the sampling data SP based on the detection signal SD1<19:0>~SP3<19:0>As output data OT<19:0>。
For example, when the clock LP1CLK and clock TPLL1When the phase difference of CLK is within a predetermined range, the phase detecting circuit 212 instructs the selecting circuit 213 to select the sampling data SP according to the detection signal SD2<19:0>. Therefore, the selection circuit 213 samples the data SP2<19:0>As output data OT<19:0>. However, when the clock LP1CLK leads clock TPLL1CLK, and clock LP1CLK and clock TPLL1When the phase difference between CLK is not within the predetermined range, the phase detecting circuit 212 instructs the selecting circuit 213 to select the sampling data SP based on the detection signal SD3<19:0>As output data OT<19:0>. In other embodiments, the clock LP1CLK hysteresisIn clock TPLL1CLK, and clock LP1CLK and clock TPLL1When the phase difference between CLK is not within a predetermined range, the phase detecting circuit 212 instructs the selecting circuit 213 to select the sampling data SP based on the detection signal SD1<19:0>As output data OT<19:0>。
Since the phase detection circuit 212 is based on the clock LP1CLK and clock TPLL1The CLK phase difference instructs the selection circuit 213 to select the proper sampling data, so that the data output by the phy 120 can be ensured to be synchronized with the clock PLL CLK. Furthermore, the clock phase tracking circuit 122 is open-circuited, so that the stability is high and the circuit design is simple. In addition, the clock phase tracking circuit 122 has the advantages of low power consumption and small area.
The present invention does not limit the number of sets of sample data. In the present embodiment, the number of groups of sample data is odd. The present invention is not limited to the structure of the phase detection circuit 212. Any circuit that can generate an appropriate detection signal SD and select appropriate sample data from a plurality of sets of sample data by the selection circuit 213 may be used as the phase detection circuit 212.
For example, when the shift register 211 generates three sets of sampling data, such as SP1<19:0>~SP3<19:0>The detection signal SD generated by the phase detection circuit 212 includes at least two detection signals UP and DN, so that the selection circuit 213 selects the sample data SP from the two detection signals UP and DN of the detection signal SD1<19:0>~SP3<19:0>One group of which is selected as the output data OT<19:0>. In another embodiment, when the shift register 211 may generate five sets of sampling data (e.g., SP)1<19:0>~SP5<19:0>). In this case, the phase detection circuit 212 needs to generate at least four detection signals UP1、UP2、DN1、DN2The detection signal SD of (1). In this example, the selection circuit 213 selects four detection signals UP according to the detection signal SD1、UP2、DN1、DN2From sampled data SP1<19:0>~SP5<19:0>Selection inSelect a set as output data OT<19:0>. Wherein, the detection signal SD includes (k-1) detection signals, k is the number of groups of sampling data generated by the shift register 211, and the (k-1) detection signals include UP1~UP(k-1)/2And DN1~DN(k-1)/2
The transmit terminal 123 includes a serializing circuit 221 and a driver 222. The serializing circuit 221 serializes the parallel data LP according to the clock PLL _ CLK1_TCAD<19:0>For generating serial data SO1And (4) DT. The present invention does not limit the architecture of the serializing circuit 221. In one embodiment, the serializing circuit 221 includes at least one data receiving unit (not shown). In this case, the data receiving unit may be a buffer (buffer), a D flip-flop, a register (register), or a latch (latch).
In this example, the driver 222 is used for outputting the serial data SO according to the clock PLL _ CLK1And (4) DT is provided for an external circuit. In addition, in other embodiments, driver 222 modulates the signal to meet the electrical specifications required by a particular protocol, such as to meet the requirements of the particular protocol for output impedance, signal amplitude, slew rate, equalization granularity, equalization amplitude, ESD specifications, short circuit current, and so forth.
The receiving end 124 includes a receiver 231 and a Clock Data Recovery (CDR) circuit 232. The receiver 231 receives the serial data SI1And (4) DT. Clock data recovery circuit 232 analyzes serial data SI1DT for slave serial data SI1And recovering the clock and the data in the _ DT. In the present embodiment, the clock data recovery circuit 232 generates the clock EP1CLK and parallel data EP1_RCAD<19:0>。
Fig. 3A is a shift register 211 according to an embodiment of the invention. As shown in FIG. 3A, the shift register 211 includes a shift buffer unit SR0~SR19. The number of shift register units is not limited in the present invention. In the present embodiment, LP is performed due to parallel data1_TCAD<19:0>Has 20 bits (bit), so the shift register 211 correspondingly includes 20 shift buffer units.
Shift buffer unit SR0~SR19According to the clock LP1CLK sample parallel data LP1_TCAD<19:0>. For example, the shift register unit SR0Sampling parallel data LP1_TCAD<19:0>Least Significant Bit (LSB) of the bit line, the next called bit data LP1_TCAD<0>. Shift buffer unit SR1Sampling parallel data LP1_TCAD<19:0>Is adjacent to the least significant bit, the lower nominal bit data LP1_TCAD<1>. Shift buffer unit SR18Sampling parallel data LP1_TCAD<19:0>Adjacent bit of Most Significant Bit (MSB), referred to as bit data LP1_TCAD<18>. Shift buffer unit SR19Sampling parallel data LP1_TCAD<19:0>Is most significant bit of, the next called bit data LP1_TCAD<19>。
Due to the shift of the buffer unit SR0~SR19The circuit structures of the shift register units are the same, so that only the shift register unit SR is described below0The circuit architecture of (1). In the embodiment, the shift buffer unit SR0 Including sampling circuits 310, 320, and 330. The invention is not limited to the shift buffer unit SR0The number of middle sampling circuits. When the number of the sampling circuits is larger, the shift buffer unit SR0The more sampled data may be provided. In one embodiment, the number of sampling circuits of each shift buffer unit is an odd number.
The sampling circuit 310 is based on the clock LP1First falling edge of CLK, sample bit data LP1_TCAD<0>For generating the first data Q1. In the present embodiment, the first data Q1 is used as the sampling data SP1<19:0>Is the least significant bit SP of1<0>. The present invention is not limited to the architecture of the sampling circuit 310. In the present embodiment, the sampling circuit 310 includes a D flip-flop 311. In this example, data input terminal D of D flip-flop 311 receives bit data LP1_TCAD<0>The clock input Clk of the D flip-flop 311 receives the clock LP1CLK, the output terminal Q of the D flip-flop 311 outputs the first data Q1.
The sampling circuit 320 is based on the clock LP1The first rising edge of CLK samples the first data Q1 to generate the second data Q2, which isThe first rising edge is the first rising edge after the first falling edge. In the present embodiment, the second data Q2 is used as the sampling data SP2<19:0>Is the least significant bit SP of2<0>. The present invention is not limited to the architecture of the sampling circuit 320. In the present embodiment, the sampling circuit 320 includes a D flip-flop 321. In this example, the data input terminal D of the D flip-flop 321 receives the first data Q1, and the clock input terminal Clk of the D flip-flop 321 receives the clock LP1CLK, the output terminal Q of the D flip-flop 321 outputs the second data Q2. In other embodiments, sampling circuit 320 includes a latch 321.
The sampling circuit 330 is based on the clock LP1The second data Q2 is sampled at a second falling edge of CLK to generate third data Q3, wherein the second falling edge is the first falling edge after the first rising edge. In the present embodiment, the third data Q3 is used as the sampling data SP3<19:0>Is the least significant bit SP of3<0>. The present invention is not limited to the architecture of the sampling circuit 330. In the present embodiment, the sampling circuit 330 includes a D flip-flop 331. In this example, the data input terminal D of the D flip-flop 331 receives the second data Q2, and the clock input terminal Clk of the D flip-flop 331 receives the clock LP1CLK, the output terminal Q of the D flip-flop 331 outputs the third data Q3. In other embodiments, sampling circuit 320 includes a latch 331.
In the embodiment, the shift buffer unit SR0~SR19The respectively generated first data Q1 constitute sample data SP1<19:0>And the second data Q2 constitute the sample data SP2<19:0>And the third data Q3 constitute the sample data SP3<19:0>. In other embodiments, the reset terminal R of the D flip- flops 311, 321, and 331 receives the reset signal RST. In this example, when the reset signal RST is enabled, the output terminals Q of the D flip- flops 311, 321, and 331 return to a predetermined level, for example, a low level.
FIG. 3B is a diagram of a shift register unit according to another embodiment of the present invention. Due to the shift of the buffer unit SR0~SR19The structures are the same, so FIG. 3B only shows the shift register unit SR0. In this embodimentIn, shift buffer unit SR0Sampling circuits 340 and 350 are also included.
The sampling circuit 340 is based on the clock LP1The third data Q3 is sampled at a second rising edge of CLK to generate a fourth data Q4, wherein the second rising edge is the first rising edge after the second falling edge. In the present embodiment, the fourth data Q4 is the sample data SP4<19:0>Is the least significant bit SP of4<0>. The present invention is not limited to the architecture of the sampling circuit 324. In the present embodiment, the sampling circuit 340 includes a D flip-flop 341. In this example, the data input terminal D of the D flip-flop 341 receives the third data Q3, and the clock input terminal Clk of the D flip-flop 341 receives the clock LP1CLK, output Q of D flip-flop 341 provides fourth data Q4. In other embodiments, sampling circuit 340 includes latch 341.
The sampling circuit 350 operates according to the clock LP1The fourth data Q4 is sampled at a third falling edge of CLK to generate fifth data Q5, wherein the third falling edge is the first falling edge after the second rising edge. In the present embodiment, the fifth data Q5 is the sampling data SP5<19:0>Is the least significant bit SP of5<0>. The present invention is not limited to the architecture of the sampling circuit 350. In the present embodiment, the sampling circuit 350 includes a D flip-flop 351. In this example, the data input terminal D of the D flip-flop 351 receives the fourth data Q4, and the clock input terminal Clk of the D flip-flop 351 receives the clock LP1CLK, the output Q of the D flip-flop 351 provides the fifth data Q5. In other embodiments, sampling circuit 350 includes latch 351.
Fig. 4A is a schematic diagram of a selection circuit 213A according to an embodiment of the invention. As shown in FIG. 4A, the selection circuit 213A includes a decoder 410A and a selector SA0~SA19. The decoder 410A decodes the detection signal SD to generate the switching signal SWA. In the present embodiment, the detection signal SD includes detection signals UP and DN.
Selector SA0~SA19Selecting the sampling data SP according to the switching signal SWA1<19:0>~SP3<19:0>As output data OT<19:0>. The invention is not limited to the selector SA0~SA19The kind of (2). In the present embodiment, the selector SA0~SA19Is a multiplexer. The number of selectors is not limited in the present invention. In one possible embodiment, the number of selectors and the parallel data LP1_TCAD<19:0>The number of bits is the same.
The invention is not limited to the selector SA0~SA19How to select the sample data SP according to the switching signal SWA1<19:0>~SP3<19:0>One group of (1). In one possible embodiment, when the detection signals UP and DN are both at the first level, e.g. both low levels, it indicates that the clock LP1CLK and clock TPLL1The phase difference between CLK is within a predetermined range. Thus, decoder 410A commands selector SA by switching signal SWA0~SA19Selecting sample data SP2<19:0>As output data OT<19:0>. When the UP signal is at the second level, e.g., high level, and the DN signal is at the first level, e.g., low level, it indicates the LP clock1CLK lags behind clock TPLL1CLK and clock LP1CLK and clock TPLL1The phase difference between CLK is not within a preset range. Accordingly, the decoder 410A commands the selector SA according to the switching signal SWA0~SA19Selecting sample data SP1<19:0>As output data OT<19:0>. When the UP signal is at a first level, e.g., low level, and the DN signal is at a second level, e.g., high level, it indicates the LP clock1CLK may lead clock TPLL1CLK and clock LP1CLK and clock TPLL1The phase difference between CLK is not within a preset range. Accordingly, the decoder 410A commands the selector SA according to the switching signal SWA0~SA19Selecting sample data SP3<19:0>As output data OT<19:0>。
Fig. 4B is a schematic diagram of another possible embodiment 213B of the selection circuit 213 of the present invention. As shown in FIG. 4B, the selection circuit 213A includes a decoder 410B and a selector SB0~SB19. In the present embodiment, it is preferred that,the detection signal SD includes a detection signal UP1、UP2、DN1And DN2. In this example, decoder 410B is responsive to detection signal UP1、UP2、DN1And DN2Adjusts the switching signal SWB to select the sampling data SP1<19:0>~SP5<19:0>As output data OT<19:0>. Specifically, when the signal UP is detected1、UP2、DN1、DN2All at a first level, e.g., low level, decoder 410B commands selector SB in response to switching signal SWB0~SB19Selecting sample data SP3<19:0>As output data OT<19:0>. When detecting signal UP1、UP2、DN1、DN2Middle detection signal UP1When the decoder 410B is at the second level, e.g. high, and the rest are at the first level, e.g. low, the selector SB is commanded according to the switching signal SWB0~SB19Selecting sample data SP2<19:0>As output data OT<19:0>. When detecting signal UP1、UP2、DN1、DN2Middle detection signal UP1、UP2When the decoder 410B is at the second level, e.g. high, and the rest are at the first level, e.g. low, the selector SB is commanded according to the switching signal SWB0~SB19Selecting sample data SP1<19:0>As output data OT<19:0>. When detecting signal UP1、UP2、DN1、DN2Middle detection signal DN1When the decoder 410B is at the second level, e.g. high, and the rest are at the first level, e.g. low, the selector SB is commanded according to the switching signal SWB0~SB19Selecting sample data SP4<19:0>As output data OT<19:0>. When detecting signal UP1、UP2、DN1、DN2Middle detection signal DN1、DN2When the decoder 410B is at the second level, e.g. high, and the rest are at the first level, e.g. low, the selector SB is commanded according to the switching signal SWB0~SB19Selecting sample data SP5<19:0>As output data OT<19:0>。
Fig. 5A is a schematic diagram of a phase detection circuit 212 according to an embodiment 212A of the invention. In the present embodiment, the phase detection circuit 212A includes a Phase Frequency Detector (PFD) 510A, a Low Pass Filter (LPF) 520A, a comparison circuit 530A, and a synchronization circuit 540A.
Phase frequency detector 510A detects clock LP1CLK and clock TPLL1A phase difference of CLK, and according to clock LP1CLK and clock TPLL1A phase difference of CLK to generate a pulse signal PS1And PS2. In one possible embodiment, the clock LP1CLK and clock TPLL1When the phase difference of CLK exceeds the linear range of phase frequency detector 510A, the pulse signal PS1And PS2Cannot reflect the clock TPLL1CLK and LP clocks1-the actual phase difference between CLK. In this case, a phase frequency detector with a higher linear range can be used, or the clock LP can be used1CLK and clock TPLL1And (4) dividing CLK frequency and detecting.
The present invention does not limit the kind of the phase frequency detector 510A. In one possible embodiment, the type of phase frequency detector 510A is related to the number of samples. For example, when the shift register 211 provides 3 sets of sample data, the linear range of the phase frequency detector 510A must be between-pi and + pi. When the shift register 211 provides 5 sets of sample data, the linear range of the phase frequency detector 510A must be between-2 pi and +2 pi. Wherein, when the number of the sampling data groups is k, the linear range of the phase frequency detector 510A must be between- (k-1) pi/2 to + (k-1) pi/2, and the linear range is such that the DC signal (hereinafter, the filtered signal FT) in the output signal of the phase frequency detector 510A1And FT2) Clock LP whose voltage can maintain continuous linearity1CLK and clock TPLL1Range of phase difference between CLK.
The low pass filter 520A filters the pulse signal PS1And PS2For generating a direct current filtered signal FT1And FT2. In this embodiment, the dc signal after filtering the high frequency signal, i.e. the filtered signal FT1And FT2And the pulse signal PS1And PS2Is proportional to the pulse width of (c), and also represents the clock LP1CLK and clock TPLL1The magnitude of the phase difference CLK.
The comparison circuit 530A will filter the signal FT1Comparing with reference signal VREF to generate comparison result CP1And the filtered signal FT is2Comparing with reference signal VREF to generate comparison result CP2. In the present embodiment, the comparing circuit 530A includes comparators 531 and 532. As shown in FIG. 5A, the inverting input of the comparator 531 receives the reference signal VREF, and the non-inverting input of the comparator 531 receives the filtered signal FT1. The inverting input terminal of the comparator 532 receives the reference signal VREF, and the non-inverting input terminal of the comparator 532 receives the filtered signal FT2
Synchronization circuit 540A is based on clock TPLL1CLK, synchronous comparison result CP1And CP2For generating a detection signal SD. In the present embodiment, the detection signal SD includes detection signals UP and DN. In this example, the detection signals UP and DN are used to represent the clock LP1CLK and clock TPLL1-phase difference between CLK. The present invention is not limited to the architecture of the synchronization circuit 540A. In one embodiment, the synchronization circuit 540A includes D flip- flops 541 and 542. In this example, D flip-flop 541 is based on clock TPLL1CLK, sample comparison result CP1For generating the detecting signal UP. D flip-flop 542 is based on clock TPLL1CLK, sample comparison result CP2For generating a detection signal DN.
In other embodiments, phase detection circuit 212A also includes voltage generation circuit 550A. The voltage generating circuit 550A is used for generating a reference signal VREF. In one possible embodiment, the reference signal VREF is approximately VDD of 1/4, where VDD is the operating voltage of phase frequency detector 510A.
Fig. 5B is a schematic diagram of another possible embodiment 212B of the phase detection circuit 212 according to the present invention. In the present embodiment, the detection signal SD generated by the phase detection circuit 212B has the detection signal UP1、UP2、DN1And DN2For selecting one of the five sets of sample data. As shown in fig. 5B, phase detection circuit 212B includes a phase frequency detector 510B, a low pass filter 520B, a comparison circuit 530B, and a synchronization circuit 540B. Since the characteristics of the phase frequency detector 510B and the low pass filter 520B are similar to those of the phase frequency detector 510A and the low pass filter 520A in fig. 5A, further description is omitted.
In the present embodiment, the comparison circuit 530B includes comparators 533 to 536. The inverting input terminal of the comparator 533 receives the reference signal VREF1The non-inverting input of the comparator 533 receives the filtered signal FT1The output terminal of the comparator 533 provides the comparison result CP3. The inverting input of the comparator 534 receives the reference signal VREF1The non-inverting input terminal of the comparator 534 receives the filtered signal FT2The output of the comparator 534 provides the comparison result CP4. The inverting input of the comparator 535 receives the reference signal VREF2The non-inverting input of the comparator 535 receives the filtered signal FT1The output of the comparator 535 provides the comparison result CP5. The inverting input of comparator 536 receives the reference signal VREF2The non-inverting input of comparator 536 receives the filtered signal FT2The output of the comparator 536 provides the comparison result CP6
Synchronization circuit 540B is based on clock TPLL1CLK, synchronous comparison result CP3~CP6For generating a detection signal SD. In the present embodiment, the detection signal SD includes the detection signal UP1、UP2、DN1And DN2. The present invention is not limited to the architecture of the synchronization circuit 540B. In one embodiment, the synchronization circuit 540B includes D flip-flops 543-546.
D flip-flop 543 according to clock TPLL1CLK, sample comparison result CP3For generating a detecting signal UP1. D flip-flop 544 according to clock TPLL1CLK, sample comparison result CP4For generating a detection signal DN1. D flip-flop 545 based on clock TPLL1CLK, sample comparison result CP5For generating a detection signalUP2. D flip-flop 546 is based on clock TPLL1CLK, sample comparison result CP6For generating a detection signal DN2
In the present embodiment, the phase detection circuit 212B further includes a voltage generation circuit 550B. The voltage generating circuit 550B is used for generating a reference signal VREF1And VREF2. In one embodiment, the reference signal VREF1VDD of about 1/4, and reference signal VREF2And VDD of about 3/4, where VDD is the operating voltage of phase frequency detector 510B.
In other embodiments, the detection signal SD comprises more detection signals for selecting the appropriate sample data from more sample data. For example, when each shift buffer unit has 7 sampling circuits, the detection signal SD includes 6 detection signals. In this example, the voltage generation circuit provides 3 reference signals, where the first reference signal is VDD of 1/6, the second reference signal is 3/6, i.e., VDD of 1/2, and the third reference signal is VDD of 5/6. In another embodiment, when each shift buffer unit has 9 sampling circuits, the detection signal SD has 8 detection signals. In this example, the voltage generation circuit provides 4 reference signals, where the first reference signal is VDD of 1/8, the second reference signal is VDD of 3/8, the third reference signal is VDD of 5/8, and the fourth reference signal is VDD of 7/8. When the number of the sampling circuits is k, the shift buffer unit may generate k groups of sampling signals, where the detection signal SD includes (k-1) detection signals, and the voltage generation circuit is required to provide (k-1)/2 reference signals, where the reference signals VREF are sequentially taken as VDD of m/(k-1), where VDD is the operating voltage of the phase frequency detector 510B, and m is each odd number in the interval [1, k), which may also be expressed as m being 1, 3 … k-4, and k-2.
Fig. 6A is a schematic diagram of a phase frequency detector according to an embodiment of the invention. As shown, the phase frequency detector 600 includes a D flip-flop 610, a D flip-flop 620, and a logic gate 630. The data input terminal D of the D flip-flop 610 receives the operating voltage VDD, and the clock input terminal Clk of the D flip-flop 610 receives the clock LP1CLK, output Q of D flip-flop 610 outputs pulse signal PS1The reset terminal R of the D flip-flop 610 is coupled to a logicAn output of the edit gate 630. The data input terminal D of the D flip-flop 620 receives the operating voltage VDD, and the clock input terminal Clk of the D flip-flop 620 receives the clock TPLL1CLK, output Q of D flip-flop 620 outputs pulse signal PS2The reset terminal R of the D flip-flop 620 is coupled to the output terminal of the logic gate 630. The logic gate 630 receives the pulse signal PS1And PS2. In the present embodiment, the logic gate 630 is an AND gate (AND gate).
Fig. 6B is a waveform diagram of the phase frequency detector 600 of fig. 6A. When the clock LP1When CLK rises from low to high, the pulse signal PS1And goes high. When clock TPLL1When CLK rises from low to high, the pulse signal PS2And goes high. When the pulse signal PS1And PS2When high, the logic gate 630 resets the D flip- flops 610 and 620, so that the pulse signal PS is asserted1And PS2From high to low.
FIG. 6B shows clock TPLL1CLK _ CLK is formed by LP1LP in case of CLK _ Flip1CLK leads clock TPLL1CLK state. Pulse signal PS1And a pulse signal PS2The pulse width difference of (a) represents the clock LP1CLK and clock TPLL1-phase difference between CLK. For example, when the clock LP1CLK and clock TPLL1The larger the phase difference between CLK becomes, the pulse signal PS1And a pulse signal PS2The larger the difference in pulse width.
Unless otherwise defined, all terms (including technical and scientific terms) used herein are to be interpreted as commonly understood by one of ordinary skill in the art to which this invention belongs. Moreover, unless expressly stated otherwise, the definition of a term in a general dictionary shall be construed as being consistent with its meaning in the context of the relevant art and shall not be construed as an idealized or overly formal definition.
While the invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art will recognize that many changes may be made thereto without departing from the spirit and scope of the present invention. For example, the systems, devices, or methods described in the embodiments of the present invention may be implemented in hardware, software, or a combination of hardware and software. Therefore, the scope of the present invention is defined by the appended claims.

Claims (10)

1. A serial system, comprising:
a logical physical layer providing a first clock and parallel data; and
an electrical physical layer providing a second clock, comprising:
a clock phase tracking circuit comprising:
a shift register for sampling the parallel data according to the first clock to generate first, second and third sampling data;
a phase detection circuit for generating a detection signal according to a phase difference between the first clock and the second clock; and
a selection circuit for selecting one of the first sample data, the second sample data and the third sample data as output data according to the detection signal; and
the transmitting end serializes the output data to generate serial data.
2. The serial system of claim 1, wherein the selection circuit selects the second sampled data as the output data when the phase difference is within a preset range; when the first clock leads the second clock and the phase difference is not within the preset range, the selection circuit selects the third sampling data as the output data; when the first clock lags behind the second clock and the phase difference is not within the preset range, the selection circuit selects the first sampling data as the output data.
3. The serial system as recited in claim 1, wherein the shift register comprises a plurality of shift buffer units, each of the shift buffer units comprising a plurality of sampling circuits, the number of the plurality of sampling circuits being odd.
4. The serial system as recited in claim 3, wherein each of said shift register units comprises:
a first sampling circuit for sampling a bit of the parallel data according to a first falling edge of the first clock to generate first data;
a second sampling circuit for sampling the first data according to a first rising edge of the first clock to generate second data; and
a third sampling circuit for sampling the second data according to a second falling edge of the first clock to generate third data,
the first sample data includes a plurality of first data generated by the plurality of shift buffer units, the second sample data includes a plurality of second data generated by the plurality of shift buffer units, and the third sample data includes a plurality of third data generated by the plurality of shift buffer units.
5. The serial system of claim 4, wherein the first sampling circuit, the second sampling circuit, the third sampling circuit comprise flip-flops.
6. The serial system of claim 4, wherein the first sampling circuit comprises a flip-flop, and the second sampling circuit and the third sampling circuit comprise latches.
7. The serial system of claim 1, wherein the phase detection circuit comprises:
the phase frequency detector generates a first pulse signal and a second pulse signal according to the phase difference of the first clock and the second clock;
a low-pass filter for processing the first pulse signal and the second pulse signal to generate a first filtered signal and a second filtered signal;
a comparison circuit for comparing the first filtered signal with a reference signal to generate a first comparison result, and for comparing the second filtered signal with the reference signal to generate a second comparison result; and
and a synchronization circuit for synchronizing the first and second comparison results according to the second clock to generate the detection signal.
8. The serial system of claim 7, wherein the synchronization circuit comprises:
a first flip-flop, sampling the first comparison result according to the second clock, for generating a first detection signal; and
a second flip-flop for sampling the second comparison result according to the second clock to generate a second detection signal,
the detection signal includes the first detection signal and the second detection signal.
9. The serial system of claim 8, wherein the selection circuit comprises:
a decoder for decoding the detection signal to generate a switching signal; and
and the selector selects one group of the first sampling data, the second sampling data and the third sampling data as the output data according to the switching signal.
10. The serial system of claim 1, wherein the transmitting end comprises:
a serializing circuit for serializing the output data to generate the serial data; and
the driver is used for outputting the serial data.
CN202010661472.7A 2020-07-10 2020-07-10 Serial system Pending CN111817726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010661472.7A CN111817726A (en) 2020-07-10 2020-07-10 Serial system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010661472.7A CN111817726A (en) 2020-07-10 2020-07-10 Serial system

Publications (1)

Publication Number Publication Date
CN111817726A true CN111817726A (en) 2020-10-23

Family

ID=72841920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010661472.7A Pending CN111817726A (en) 2020-07-10 2020-07-10 Serial system

Country Status (1)

Country Link
CN (1) CN111817726A (en)

Similar Documents

Publication Publication Date Title
EP1962426B1 (en) Clock data recovery with selectable phase control
US7545190B2 (en) Parallel multiplexing duty cycle adjustment circuit with programmable range control
JP5066121B2 (en) Apparatus and method for transmitting clock information and data
US7913104B1 (en) Method and apparatus for receive channel data alignment with minimized latency variation
US7138837B2 (en) Digital phase locked loop circuitry and methods
US8634509B2 (en) Synchronized clock phase interpolator
JPH0856240A (en) High-speed series link for all-data communication
US20060255848A1 (en) Jitter producing circuitry and methods
JP2007067573A (en) Clock and data recovery circuit
US20210111859A1 (en) Clock data recovery circuit with improved phase interpolation
US20190273639A1 (en) Hybrid half/quarter-rate dfe
JP2014140100A (en) Phase comparison circuit and data reception device
US9455725B2 (en) Phase detector and associated phase detecting method
US20170244416A1 (en) Reference-less clock and data recovery circuit
KR20110132864A (en) Phase interpolation circuit for use in wide range frequency inputs and output securing method thereof
US9438272B1 (en) Digital phase locked loop circuitry and methods
JP3415891B2 (en) Packet data playback system
US10135605B2 (en) Clock data recovery circuit and receiver including the same
US7194057B2 (en) System and method of oversampling high speed clock/data recovery
US20070230646A1 (en) Phase recovery from forward clock
US7750711B2 (en) Phase select circuit with reduced hysteresis effect
JP2008219813A (en) Lvds receiver, lvds receiving method, lvds data transmission system, and semiconductor device
KR101470599B1 (en) Apparatus of receiving data transmitted by using recovered clock
CN111817726A (en) Serial system
US7660364B2 (en) Method of transmitting serial bit-stream and electronic transmitter for transmitting a serial bit-stream

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 301, 2537 Jinke Road, Zhangjiang High Tech Park, Pudong New Area, Shanghai 201203

Applicant after: Shanghai Zhaoxin Semiconductor Co.,Ltd.

Address before: Room 301, 2537 Jinke Road, Zhangjiang hi tech park, Shanghai 201203

Applicant before: VIA ALLIANCE SEMICONDUCTOR Co.,Ltd.