WO2021104516A1 - Method and apparatus for clock data recovery, phase detector and storage medium - Google Patents

Method and apparatus for clock data recovery, phase detector and storage medium Download PDF

Info

Publication number
WO2021104516A1
WO2021104516A1 PCT/CN2020/132691 CN2020132691W WO2021104516A1 WO 2021104516 A1 WO2021104516 A1 WO 2021104516A1 CN 2020132691 W CN2020132691 W CN 2020132691W WO 2021104516 A1 WO2021104516 A1 WO 2021104516A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
sampling
sampling signal
reference symbol
error component
Prior art date
Application number
PCT/CN2020/132691
Other languages
French (fr)
Chinese (zh)
Inventor
陆小凡
张玉龙
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2021104516A1 publication Critical patent/WO2021104516A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/1675Temporal synchronisation or re-synchronisation of redundant processing components
    • G06F11/1679Temporal synchronisation or re-synchronisation of redundant processing components at clock signal level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • G06F15/7814Specially adapted for real time processing, e.g. comprising hardware timers

Definitions

  • This application relates to the field of communications, such as a clock data recovery method, device, phase detector and storage medium.
  • Clock Data Recovery is an important part of the communication system receiver.
  • the CDR is set to process the sampled data signal and recover the correct sampling clock phase to ensure the correctness of the received data signal.
  • most data signals are modulated in N-level Pulse Amplitude Modulation-N (PAM-N) mode.
  • PAM-N Pulse Amplitude Modulation-N
  • the phase detector does not provide training sequences.
  • the phase discrimination interval will gradually decrease as the value of N increases.
  • the present application provides a clock data recovery method, device, phase detector and storage medium, which can ensure the size of the phase discrimination interval, broaden the lock capture range, reduce the phase capture time, and improve the performance of the clock data recovery circuit.
  • An embodiment of the present application provides a clock data recovery method, including:
  • the sampled signal is the first sampled signal
  • the reference symbol corresponding to the first sampled signal is the first reference symbol
  • the error component corresponding to the first sampling signal is the first error component
  • the sampling signal is the second sampling signal
  • the reference symbol corresponding to the second sampling signal is the second reference symbol
  • the error component corresponding to the second sampling signal is the first Two error components, the first sampling signal and the second sampling signal are continuous in time sequence;
  • the embodiment of the application provides a clock data recovery device, including: a signal sampling module, a signal processing module, a logic generation module, and a phase judgment module;
  • the signal sampling module is set to obtain the sampling signal
  • the signal processing module is configured to process the sampled signal to obtain the reference symbol and error component corresponding to the sampled signal.
  • the sampled signal is the first sampled signal
  • the reference symbol corresponding to the first sampled signal is the first reference symbol
  • the error component corresponding to the first sampling signal is the first error component
  • the sampling signal is the second sampling signal
  • the reference symbol corresponding to the second sampling signal is the second reference symbol
  • the error component corresponding to the second sampling signal is The second error component, the first sampling signal and the second sampling signal are continuous in time sequence;
  • a logic generation module configured to generate a logic relationship based on the first reference symbol, the first error component, the second reference symbol, and the second error component;
  • the phase judgment module is set to confirm the phase state of the sampling point according to the calculation result of the logical relationship.
  • the embodiment of the present application provides a phase detector, including a processor, and the processor is configured to implement the method of any of the foregoing embodiments when a computer program is executed.
  • the embodiments of the present application also provide a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the method of any of the foregoing embodiments is implemented.
  • FIG. 1 is a schematic flowchart of a clock data recovery method provided by an embodiment
  • FIG. 2 is a micro-architecture diagram of a logical relationship provided by an embodiment
  • FIG. 3 is a simulation result of the phase detector corresponding to FIG. 2 provided by an embodiment
  • FIG. 4 is a schematic flowchart of another method for clock data recovery provided by an embodiment
  • FIG. 5 is a diagram of another logical relationship micro-architecture provided by an embodiment
  • FIG. 6 is a simulation result of the phase detector corresponding to FIG. 5 provided by an embodiment
  • FIG. 7 is a schematic structural diagram of a clock data recovery device provided by an embodiment
  • Fig. 8 is a schematic structural diagram of a phase detector provided by an embodiment.
  • CDR In communication systems (such as high-speed serial (optical) communication serializers and deserializers (SERializer/DESerializer, SerDes) system (hereinafter referred to as SerDes system)), CDR is a very important module, and CDR is set to The data signal sampled by the analog-to-digital converter (ADC) of the receiver is processed and the correct sampling clock phase is recovered to ensure the correctness of the received data signal. Therefore, the performance of CDR is very important to the link quality of the SerDes system.
  • the core of the CDR is the phase detector. The performance of the phase detector is mainly affected by the sampling rate of the ADC, the size of the phase detector interval, the linearity of the phase detector and the magnitude of the phase detector gain.
  • the embodiments of the present application provide a clock data recovery method, device, phase detector, and storage medium, which can ensure the size of the phase detection interval, broaden the lock capture range, reduce the phase capture time, and improve the performance of the clock data recovery circuit. performance.
  • system and “network” in this application are often used interchangeably in this application.
  • first, “second”, etc. in the specification, claims, and drawings of this application are used to distinguish different objects, rather than to limit a specific order.
  • the following embodiments of the present application can be executed individually, and the various embodiments can also be implemented in combination with each other, which is not limited by the embodiments of the present application.
  • FIG. 1 shows a schematic flow chart of a clock data recovery method provided by an embodiment.
  • the method provided in this embodiment is suitable for a phase detector (such as a Mueller-Muller phase detector), and the method includes Steps S110 to S130.
  • a phase detector such as a Mueller-Muller phase detector
  • the phase detector is a device that can identify the phase difference of the input signal (ie, the sampling signal), and is a circuit that makes the output voltage and the phase difference between the two input signals have a definite relationship. Therefore, when acquiring the sampling signal, at least two sampling signals can be acquired, and the at least two sampling signals can be processed to obtain the reference symbols and error components corresponding to the two sampling signals.
  • the sampled signal is expressed in the form of twos complement code to ensure that the 0 or 1 obtained by the following symbol decision is the correct value that needs to be used for logic calculation.
  • the method of processing the sampled signal to obtain the reference symbol and the error component corresponding to the sampled signal may include two steps of step 1 and step 2.
  • Step 1 Perform symbol decision on the sampled signal Sig(n) to obtain the reference symbol S[n] corresponding to the sampled signal Sig(n).
  • the value of the reference symbol S[n] is 0 or 1.
  • the reference symbol has only two possible values, which greatly reduces the probability of misjudgment of the reference symbol.
  • Step 2 Obtain the error component corresponding to the sampling signal Sig(n) according to the sampling signal Sig(n) and the reference symbol S[n] corresponding to the sampling signal Sig(n).
  • the method for obtaining the error component corresponding to the sampled signal in step 2 may include the following two steps of cyclically executing n times:
  • Step a): Eliminate the symbolic components of Sig(i) to obtain Sig(i-1), where Sig(i-1) Sig(i)+(2*S[i]-1)*A/2 ( ni) ;
  • n is the smallest integer greater than or equal to log 2 N
  • N is the number of PAM levels
  • A is the average value of the absolute value of the sampled signal amplitude.
  • the two sampling signals are the first sampling signal and the second sampling signal. Then, when the sampling signal is the first sampling signal, the reference symbol corresponding to the first sampling signal is the first sampling signal. Reference symbol, the error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is The second error component, the first sampling signal and the second sampling signal are continuous in time sequence. It can be understood that the first sampling signal may be located before the second sampling signal in time sequence, or may be located after the second sampling signal. The following embodiments are performed based on the first sampling signal being located before the second sampling signal in time sequence.
  • the sequence number of the first sampled signal is k-1, and the sequence number of the second sampled signal is k). If the first sampling signal is behind the second sampling signal in time sequence, the sequence number of the second sampling signal should be k-1, and the sequence number of the first sampling signal should be k.
  • the error component process includes:
  • the process of processing the second sampling signal to obtain the second reference symbol and the second error component corresponding to the second sampling signal includes:
  • S120 Generate a logical relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component.
  • the generated logical relationship is as shown in formula (1):
  • is the "exclusive OR” logic operation
  • & is the “AND” logic operation
  • is the continuous OR operation
  • k-1 is the serial number of the first sampled signal
  • k is The sequence number of the second sampling signal, where n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and i is an integer from n-1 to 0 respectively.
  • the logic relationship is realized by logic operation, which reduces the realization sequence to approximately That is, the time complexity is log 2 (log 2 N). among them t ⁇ , t & , t
  • the amplitude distribution of the sampled PAM-N signal is symmetrical about 0 (that is, the statistical average of the amplitude is 0).
  • the four reference level amplitudes corresponding to the sampled signal are ⁇ -1, -1/3, +1/3, +1 ⁇ , that is, the average value of the absolute value of the sampled signal amplitude is 2/3, and the sampled signal adopts Represented in two's complement form.
  • Step 1 Process the first sampled signal.
  • First sampling signal (2) k-1 is represented by Sig, the first sampling signal Sig (2) k-1 symbol decision performed to obtain a first sampling signal Sig (2) k-1 corresponding to the first reference symbol S [ 2] k-1 .
  • the first reference symbol of the first sampling signal is S[2] k-1
  • the first error component of the first sampling signal is ⁇ S[1] k-1 , S[0] k-1 ⁇ .
  • Step 2 Process the second sampled signal.
  • Second sampling signal (2) k is represented by Sig, a second sampling signal Sig (2) k for symbol decision, the second reference symbol to obtain a second sampling signal Sig (2) k corresponding to S [2] k.
  • the second reference symbol of the second sampling signal is S[2] k
  • the second error component of the second sampling signal is ⁇ S[1] k , S[0] k ⁇ .
  • Step 3 Generate logical relationships.
  • the first reference symbol of the first sampled signal is S[2] k-1
  • the first error component of the first sampled signal is ⁇ S[1] k-1 , S[0 ] k-1 ⁇
  • the second reference symbol of the second sampling signal is S[2] k
  • the second error component of the second sampling signal is ⁇ S[1] k ,S[0] k ⁇ , referring to equation (1 )Available:
  • FIG. 2 shows a logical relationship micro-architecture diagram provided by an embodiment.
  • Step 4 Confirm the phase status of the sampling point.
  • Fig. 3 shows a simulation result of the phase detector corresponding to Fig. 2 provided by an embodiment. It is a comparison chart of phase discrimination curves obtained through numerical simulation in the presence of phase noise with the same standard deviation.
  • the dotted line is the phase detection curve of the traditional Mueller-Muller (MM) phase detector
  • the solid line is the phase detection curve of the phase detector corresponding to Figure 2
  • the horizontal axis represents the phase difference
  • the unit is send/ The unit interval (Unit Interval, UI) of receiving the sampled signal
  • the vertical axis represents the relative value of the average output value of the phase detector under the corresponding phase difference, where the slope of the line between the point on the curve and the origin is the phase detector gain Relative value, the relative value of the phase discrimination gain is used to compare the relative magnitude of different phase discrimination gains.
  • UI Unit Interval
  • the implementation of the clock data recovery method provided by the embodiment of the application has nothing to do with the circuit process, and does not require sampling at 2 times the baud rate, and the value of N changes, and the phase discrimination interval can be maintained between - ⁇ + ⁇ .
  • the phase point starts to capture.
  • the phase detection gain changes more smoothly in the effective phase detection interval, which broadens the lock capture range, reduces the phase capture time, and significantly improves the performance of the clock data recovery circuit.
  • the traditional numerical calculation method is improved and simplified into a digital logic method, which reduces the complexity and power consumption of the hardware.
  • FIG. 4 shows a schematic flowchart of another clock data recovery method provided by an embodiment.
  • the method provided by this embodiment is suitable for a phase detector (such as a Mueller-Muller phase detector).
  • a phase detector such as a Mueller-Muller phase detector.
  • the process of processing the sampled signal can be simplified, and the symbol decision of the sampled signal is no longer necessary. And the operation of eliminating symbolic components.
  • the method includes steps S210 to S230.
  • the phase detector is a device that can identify the phase difference of the input signal (ie, the sampling signal), and is a circuit that makes the output voltage and the phase difference between the two input signals have a definite relationship. Therefore, when acquiring the sampling signal, at least two sampling signals can be acquired, and the at least two sampling signals can be processed to obtain the reference symbols and error components corresponding to the two sampling signals.
  • the sampled signal is expressed in the form of twos complement to ensure that the expression form 0 or 1 is the correct value that needs to be used for logic calculation.
  • the sampling signal needs to meet the following requirements: the sampling signal starts from the bit representing the real signal with an amplitude of 2 j , and the number of bits included after the bit with the amplitude of 2 j is greater than or equal to n-1. Otherwise, the n bits cannot be taken out for logical inversion as the error component corresponding to the sampling signal.
  • the two sampling signals are the first sampling signal and the second sampling signal. Then, when the sampling signal is the first sampling signal, the reference symbol corresponding to the first sampling signal is the first sampling signal. Reference symbol, the error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is The second error component, the first sampling signal and the second sampling signal are continuous in time sequence. It can be understood that the first sampling signal may be located before the second sampling signal in time sequence, or may be located after the second sampling signal.
  • the most significant bit of the first sampling signal as a first sampling signal corresponding to the first reference symbol S [4] k-1, and represents the magnitude of the real signal is 2 j bits 4 bits starting with 1 (1100 ) Respectively logically inverted as the first error component corresponding to the first sampling signal ⁇ S[3] k-1 ,S[2] k-1 ,S[1] k-1 ,S[0] k-1 ⁇ .
  • S220 Generate a logical relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component.
  • the generated logical relationship is as shown in formula (2):
  • is the "exclusive OR” logic operation
  • & is the “AND” logic operation
  • is the continuous OR operation
  • k-1 is the serial number of the first sampled signal
  • k is The sequence number of the second sampling signal, where n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and i is an integer from n-1 to 0 respectively.
  • the logic relationship is realized by logic operation, which reduces the realization sequence to approximately That is, the time complexity is log 2 (log 2 N). among them t ⁇ , t & , t
  • the amplitude distribution of the sampled PAM-N signal is symmetrical about 0 (that is, the statistical average of the amplitude is 0).
  • Step 1 Process the first sampled signal.
  • a k-1, m-2 indicates that the amplitude of the real signal is 1/2, that is , count 3 bits backward from a k-1, m-2 , and respectively compare a k-1, m-2 , a K-1, m-3 and a k-1, m-4 are logically inverted to obtain S[2] k-1 , S[1] k-1 and S[0] k-1 .
  • the first reference symbol of the first sampling signal is a k-1, m-1
  • the first error component of the first sampling signal is ⁇ a k-1, m-2 , a k-1, m- 3 ,a k-1,m-4 ⁇ .
  • Step 2 Process the second sampled signal.
  • the twos complement form of the received second sampling signal has m bits, where m should be at least 4, and the form is a k,m-1 a k,m-2 ...a k,1 a k,0 ,
  • a k, m-2 indicates that the amplitude of the real signal is 1/2, that is, 3 bits count backward from a k, m-2 , and a k, m-2 , a k, m-3 and The logic of a k, m-4 is inverted, and S[2] k , S[1] k and S[0] k are obtained .
  • the second reference symbol of the second sampling signal is a k, m-1
  • the second error component of the second sampling signal is ⁇ a k, m-2 , a k, m-3 , a k, m -4 ⁇ .
  • Step 3 Generate logical relationships.
  • the first reference symbol of the first sampled signal is a k-1, m-1
  • the first error component of the first sampled signal is ⁇ a k-1, m-2 , a k-1,m-3 , ak-1,m-4 ⁇
  • the second reference symbol of the second sampled signal is ak,m-1
  • the second error component of the second sampled signal is ⁇ ak,m -2 , a k, m-3 , a k, m-4 ⁇
  • FIG. 5 shows another logical relationship micro-architecture diagram provided by an embodiment.
  • Step 4 Confirm the phase status of the sampling point.
  • Fig. 6 shows a simulation result of the phase detector corresponding to Fig. 5 provided by an embodiment. It is a comparison chart of phase discrimination curves obtained through numerical simulation in the presence of phase noise with the same standard deviation.
  • the dotted line is the phase detection curve of the traditional MM phase detector
  • the solid line is the phase detection curve of the phase detector corresponding to Figure 5
  • the horizontal axis represents the phase difference
  • the unit is the unit of sending/receiving sampled signals.
  • Unit Interval (UI) Unit Interval
  • the vertical axis represents the relative value of the average output value of the phase detector under the corresponding phase difference.
  • the slope of the line between the point on the curve and the origin is the relative value of the phase detector gain.
  • the relative value of phase gain is used to compare the relative magnitude of different phase discrimination gains.
  • the implementation of the clock data recovery method provided by the embodiment of the application has nothing to do with the circuit process, and does not require sampling at 2 times the baud rate, and the value of N changes, and the phase discrimination interval can be maintained between - ⁇ + ⁇ .
  • the phase point starts to capture.
  • the phase detection gain changes more smoothly in the effective phase detection interval, which broadens the lock capture range, reduces the phase capture time, and significantly improves the performance of the clock data recovery circuit.
  • the traditional numerical calculation method is improved and simplified into a digital logic method, which reduces the complexity and power consumption of the hardware.
  • the process of processing the sampled signal can be simplified, and it is no longer necessary to perform symbol judgment and remove symbol components of the sampled signal.
  • FIG. 7 is a schematic structural diagram of a clock data recovery device provided by an embodiment.
  • the clock data recovery device can be configured in a phase detector, as shown in FIG. 7, comprising: a signal sampling module 10, a signal processing module 11, and logic The generation module 12 and the phase judgment module 13.
  • the signal sampling module 10 is set as a sampling signal.
  • the signal processing module 11 is configured to process the sampled signal to obtain the reference symbol and error component corresponding to the sampled signal, where, when the sampled signal is the first sampled signal, the reference symbol corresponding to the first sampled signal is the first reference symbol, The error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is the second error Component, the first sampling signal and the second sampling signal are continuous in time sequence.
  • the logic generating module 12 is configured to generate a logic relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component.
  • the phase judgment module 13 is configured to confirm the phase state of the sampling point according to the calculation result of the logical relationship.
  • the clock data recovery device provided in this embodiment implements the clock data recovery method of the foregoing embodiment, and the implementation principle of the clock data recovery device provided in this embodiment is similar, and will not be repeated here.
  • the signal processing module 11 is configured to perform symbol decision on the sampled signal Sig(n) to obtain the reference symbol S[n] corresponding to the sampled signal Sig(n); according to the sampled signal Sig(n) and the sample The reference symbol S[n] corresponding to the signal is used to obtain the error component corresponding to the sampled signal.
  • N is the level number of the pulse amplitude modulation PAM
  • A is the average value of the absolute value of the amplitude of the sampled signal.
  • the signal processing module 11 when the average value of the absolute value of the sampled signal amplitude is 2 j ; the signal processing module 11 is set to use the highest bit of the sampled signal as the reference symbol S[n] corresponding to the sampled signal, It means that the n bits starting from the bit whose amplitude of the real signal is 2 j are logically inverted and used as the error component corresponding to the sampled signal ⁇ S[n-1],S[n-2],...,S[0] ⁇ ; Among them, n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and j is an integer.
  • the logical relationship is:
  • is the "exclusive OR” logic operation
  • & is the “AND” logic operation
  • is the continuous OR operation
  • k-1 is the serial number of the first sampled signal
  • k is The sequence number of the second sampling signal, where n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and i is an integer from n-1 to 0 respectively.
  • the sampled signal is represented in the form of twos complement.
  • FIG. 8 is a schematic structural diagram of a phase detector provided by an embodiment.
  • the phase detector includes a processor 60, a memory 61, and a communication interface 62; the number of processors 60 in the phase detector may be At least one, one processor 60 is taken as an example in FIG. 8; the processor 60, the memory 61, and the communication interface 62 in the phase detector may be connected by a bus or other methods.
  • the connection by a bus is taken as an example.
  • the bus represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure among multiple bus structures.
  • the memory 61 can be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present application.
  • the processor 60 executes at least one functional application and data processing of the phase detector by running the software programs, instructions, and modules stored in the memory 61, that is, realizes the above-mentioned clock data recovery method.
  • the memory 61 may include a storage program area and a storage data area.
  • the storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the phase detector, and the like.
  • the memory 61 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 61 may include a memory remotely provided with respect to the processor 60, and these remote memories may be connected to the phase detector through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the communication interface 62 can be configured to receive and send data.
  • the embodiment of the present application also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer storage medium of the embodiment of the present application may adopt any combination of at least one computer-readable medium.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • Computer-readable storage media include (non-exhaustive list): electrical connections with at least one wire, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM) ), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage devices, Magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and the computer-readable program code is carried in the data signal. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
  • suitable medium including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
  • the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination of multiple programming languages.
  • the programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, Ruby, Go also includes conventional procedural programming languages-such as "C" language or similar programming languages.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network-including Local Area Network (LAN) or Wide Area Network (WAN)-or it can be connected to an external computer (for example, use an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • user terminal encompasses any suitable type of wireless user equipment, such as a mobile phone, a portable data processing device, a portable web browser, or a vehicle-mounted mobile station.
  • the various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof.
  • some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, although the present application is not limited thereto.
  • Computer program instructions can be assembly instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or written in any combination of one or more programming languages Source code or object code.
  • ISA Instruction Set Architecture
  • the block diagram of any logic flow in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions.
  • the computer program can be stored on the memory.
  • the memory can be of any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical storage devices and systems (digital multi-function optical discs) (Digital Versatile Disc, DVD) or CD disc) etc.
  • Computer-readable media may include non-transitory storage media.
  • the data processor can be any type suitable for the local technical environment, such as but not limited to general-purpose computers, special-purpose computers, microprocessors, digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (ASICs) ), programmable logic devices (Field-Programmable Gate Array, FGPA), and processors based on multi-core processor architecture.
  • DSP Digital Signal Processing
  • ASICs application specific integrated circuits
  • FGPA programmable logic devices

Abstract

Disclosed by the present application are a method and apparatus for clock data recovery, a phase detector and a storage medium. The method comprises: acquiring a sampling signal and processing the sampling signal to obtain a reference symbol and an error component corresponding to the sampling signal, wherein when the sampling signal is a first sampling signal, the reference symbol and error component corresponding to the first sampling signal are a first reference symbol and a first error component respectively, when the sampling signal is a second sampling signal, the reference symbol and error component corresponding to the second sampling signal are a second reference symbol and a second error component respectively, and the first sampling signal and the second sampling signal are continuous in a time sequence; generating a logic relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component; and confirming the phase state of a sampling point according to a calculation result of the logic relationship.

Description

一种时钟数据恢复方法、装置,鉴相器及存储介质Method and device for clock data recovery, phase detector and storage medium
本申请要求在2019年11月29日提交中国专利局、申请号为201911205457.5的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with application number 201911205457.5 on November 29, 2019. The entire content of this application is incorporated into this application by reference.
技术领域Technical field
本申请涉及通信领域,例如涉及一种时钟数据恢复方法、装置,鉴相器及存储介质。This application relates to the field of communications, such as a clock data recovery method, device, phase detector and storage medium.
背景技术Background technique
时钟数据恢复(Clock Data Recovery,CDR)是通信系统接收机的重要组成部分,CDR设置为对采样到的数据信号进行处理并恢复出正确的采样时钟相位,保证接收到的数据信号的正确性。目前数据信号大多采用N电平的脉冲幅度调制(Pulse Amplitude Modulation-N,PAM-N)模式进行调制,然而,随着数据信号传输速率的不断提高,鉴相器在不提供训练序列的情况下,其鉴相区间会随着N值的不断增大而逐渐减小。Clock Data Recovery (CDR) is an important part of the communication system receiver. The CDR is set to process the sampled data signal and recover the correct sampling clock phase to ensure the correctness of the received data signal. At present, most data signals are modulated in N-level Pulse Amplitude Modulation-N (PAM-N) mode. However, as the transmission rate of data signals continues to increase, the phase detector does not provide training sequences. , The phase discrimination interval will gradually decrease as the value of N increases.
发明内容Summary of the invention
本申请提供一种时钟数据恢复方法、装置,鉴相器及存储介质,能够保证鉴相区间的大小,拓宽了锁定捕获范围,减小了相位捕获时间,从而提升时钟数据恢复电路的性能。The present application provides a clock data recovery method, device, phase detector and storage medium, which can ensure the size of the phase discrimination interval, broaden the lock capture range, reduce the phase capture time, and improve the performance of the clock data recovery circuit.
本申请实施例提供一种时钟数据恢复方法,包括:An embodiment of the present application provides a clock data recovery method, including:
获取采样信号,并对采样信号进行处理,得到采样信号对应的参考符号和误差成分,其中,在采样信号为第一采样信号的情况下,第一采样信号对应的参考符号为第一参考符号,第一采样信号对应的误差成分为第一误差成分;在采样信号为第二采样信号的情况下,第二采样信号对应的参考符号为第二参考符号,第二采样信号对应的误差成分为第二误差成分,第一采样信号和第二采 样信号在时序上连续;Obtain the sampled signal and process the sampled signal to obtain the reference symbol and error component corresponding to the sampled signal. In the case where the sampled signal is the first sampled signal, the reference symbol corresponding to the first sampled signal is the first reference symbol, The error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is the first Two error components, the first sampling signal and the second sampling signal are continuous in time sequence;
根据第一参考符号、第一误差成分、第二参考符号和第二误差成分,生成逻辑关系;Generate a logical relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component;
根据逻辑关系的计算结果,确认采样点的相位状态。According to the calculation result of the logical relationship, confirm the phase state of the sampling point.
本申请实施例提供一种时钟数据恢复装置,包括:信号采样模块,信号处理模块,逻辑生成模块和相位判断模块;The embodiment of the application provides a clock data recovery device, including: a signal sampling module, a signal processing module, a logic generation module, and a phase judgment module;
信号采样模块,设置为获取采样信号;The signal sampling module is set to obtain the sampling signal;
信号处理模块,设置为对采样信号进行处理,得到采样信号对应的参考符号和误差成分,其中,在采样信号为第一采样信号的情况下,第一采样信号对应的参考符号为第一参考符号,第一采样信号对应的误差成分为第一误差成分;在采样信号为第二采样信号的情况下,第二采样信号对应的参考符号为第二参考符号,第二采样信号对应的误差成分为第二误差成分,第一采样信号和第二采样信号在时序上连续;The signal processing module is configured to process the sampled signal to obtain the reference symbol and error component corresponding to the sampled signal. In the case where the sampled signal is the first sampled signal, the reference symbol corresponding to the first sampled signal is the first reference symbol , The error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is The second error component, the first sampling signal and the second sampling signal are continuous in time sequence;
逻辑生成模块,设置为根据第一参考符号、第一误差成分、第二参考符号和第二误差成分,生成逻辑关系;A logic generation module, configured to generate a logic relationship based on the first reference symbol, the first error component, the second reference symbol, and the second error component;
相位判断模块,设置为根据逻辑关系的计算结果,确认采样点的相位状态。The phase judgment module is set to confirm the phase state of the sampling point according to the calculation result of the logical relationship.
本申请实施例提供一种鉴相器,包括:处理器,处理器设置为在执行计算机程序时实现上述任一实施例的方法。The embodiment of the present application provides a phase detector, including a processor, and the processor is configured to implement the method of any of the foregoing embodiments when a computer program is executed.
本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时,实现上述任一实施例的方法。The embodiments of the present application also provide a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the method of any of the foregoing embodiments is implemented.
附图说明Description of the drawings
图1为一实施例提供的一种时钟数据恢复方法的流程示意图;FIG. 1 is a schematic flowchart of a clock data recovery method provided by an embodiment;
图2为一实施例提供的一种逻辑关系微架构图;FIG. 2 is a micro-architecture diagram of a logical relationship provided by an embodiment;
图3为一实施例提供的图2所对应的鉴相器的仿真结果;FIG. 3 is a simulation result of the phase detector corresponding to FIG. 2 provided by an embodiment;
图4为一实施例提供的另一种时钟数据恢复方法的流程示意图;4 is a schematic flowchart of another method for clock data recovery provided by an embodiment;
图5为一实施例提供的另一种逻辑关系微架构图;FIG. 5 is a diagram of another logical relationship micro-architecture provided by an embodiment;
图6为一实施例提供的图5所对应的鉴相器的仿真结果;FIG. 6 is a simulation result of the phase detector corresponding to FIG. 5 provided by an embodiment;
图7为一实施例提供的一种时钟数据恢复装置的结构示意图;FIG. 7 is a schematic structural diagram of a clock data recovery device provided by an embodiment;
图8为一实施例提供的一种鉴相器的结构示意图。Fig. 8 is a schematic structural diagram of a phase detector provided by an embodiment.
具体实施方式Detailed ways
下文中将结合附图对本申请的实施例进行详细说明。Hereinafter, the embodiments of the present application will be described in detail with reference to the accompanying drawings.
在通信系统(例如高速串行(光纤)通信序列化器与反序列化器(SERializer/DESerializer,SerDes)系统(以下简称SerDes系统))中,CDR是一个非常重要的模块,CDR设置为对SerDes接收机的模拟-数字转换器(Analog-to-Digital Converter,ADC)采样得到的数据信号进行处理并恢复出正确的采样时钟相位,保证接收到的数据信号的正确性。因此,CDR的性能对SerDes系统的链路质量十分重要。CDR的核心是鉴相器,鉴相器的性能主要受ADC的采样速率、鉴相区间的大小、鉴相器的线性度和鉴相增益的大小的影响。In communication systems (such as high-speed serial (optical) communication serializers and deserializers (SERializer/DESerializer, SerDes) system (hereinafter referred to as SerDes system)), CDR is a very important module, and CDR is set to The data signal sampled by the analog-to-digital converter (ADC) of the receiver is processed and the correct sampling clock phase is recovered to ensure the correctness of the received data signal. Therefore, the performance of CDR is very important to the link quality of the SerDes system. The core of the CDR is the phase detector. The performance of the phase detector is mainly affected by the sampling rate of the ADC, the size of the phase detector interval, the linearity of the phase detector and the magnitude of the phase detector gain.
目前,SerDes接收机的ADC采样得到的数据信号大多采用PAM-N(N=2 n,n为正整数)模式进行调制。随着数据信号传输速率的不断提高,一方面,对于2倍波特率鉴相器(例如Bang-Bang鉴相器),对采样时钟速率的需求会变高;另一方面,对于工作在波特率下的鉴相器(例如Mueller-Muller鉴相器),在不提供训练序列(即参考符号,由采样得到的数据进行判决生成)的情况下,其鉴相区间会随着N值的不断增大而逐渐减小。 At present, most of the data signals sampled by the ADC of the SerDes receiver are modulated in the PAM-N (N=2 n , n is a positive integer) mode. With the continuous improvement of the data signal transmission rate, on the one hand, for the 2 times baud rate phase detector (such as Bang-Bang phase detector), the demand for the sampling clock rate will become higher; on the other hand, for working in wave The phase detector under special rate (such as the Mueller-Muller phase detector), without providing a training sequence (ie, reference symbols, which are determined and generated from the data obtained by sampling), the phase detection interval will increase with the value of N Constantly increase and gradually decrease.
本申请实施例提供了一种时钟数据恢复方法、装置,鉴相器及存储介质,能够保证鉴相区间的大小,拓宽了锁定捕获范围,减小了相位捕获时间,从而提升时钟数据恢复电路的性能。The embodiments of the present application provide a clock data recovery method, device, phase detector, and storage medium, which can ensure the size of the phase detection interval, broaden the lock capture range, reduce the phase capture time, and improve the performance of the clock data recovery circuit. performance.
本申请中术语“系统”和“网络”在本申请中常被可互换使用。本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对 象,而不是用于限定特定顺序。本申请下述各个实施例可以单独执行,各个实施例之间也可以相互结合执行,本申请实施例对此不作限制。The terms "system" and "network" in this application are often used interchangeably in this application. The terms "first", "second", etc. in the specification, claims, and drawings of this application are used to distinguish different objects, rather than to limit a specific order. The following embodiments of the present application can be executed individually, and the various embodiments can also be implemented in combination with each other, which is not limited by the embodiments of the present application.
下面,对时钟数据恢复方法、装置及其技术效果进行描述。In the following, the method and device for clock data recovery and its technical effects will be described.
图1示出了一实施例提供的一种时钟数据恢复方法的流程示意图,如图1所示,本实施例提供的方法适用于鉴相器(例如Mueller-Muller鉴相器),该方法包括步骤S110至S130。FIG. 1 shows a schematic flow chart of a clock data recovery method provided by an embodiment. As shown in FIG. 1, the method provided in this embodiment is suitable for a phase detector (such as a Mueller-Muller phase detector), and the method includes Steps S110 to S130.
S110、获取采样信号,并对采样信号进行处理,得到采样信号对应的参考符号和误差成分。S110. Obtain a sampled signal, and process the sampled signal to obtain a reference symbol and an error component corresponding to the sampled signal.
鉴相器是一种能够鉴别出输入信号(即采样信号)的相位差的器件,是使输出电压与两个输入信号之间的相位差有确定关系的电路。因此,在获取采样信号时,可以获取至少两个采样信号,并对至少两个采样信号进行处理,得到两个采样信号各自对应的参考符号和误差成分。The phase detector is a device that can identify the phase difference of the input signal (ie, the sampling signal), and is a circuit that makes the output voltage and the phase difference between the two input signals have a definite relationship. Therefore, when acquiring the sampling signal, at least two sampling signals can be acquired, and the at least two sampling signals can be processed to obtain the reference symbols and error components corresponding to the two sampling signals.
在一实施例中,采样信号采用二进制补码的形式表示,以保证下述符号判决得到的0或1为需要用来进行逻辑计算的正确值。In one embodiment, the sampled signal is expressed in the form of twos complement code to ensure that the 0 or 1 obtained by the following symbol decision is the correct value that needs to be used for logic calculation.
在一实施例中,对采样信号进行处理,得到采样信号对应的参考符号和误差成分的方法,可以包括步骤1和步骤2这两个步骤。In an embodiment, the method of processing the sampled signal to obtain the reference symbol and the error component corresponding to the sampled signal may include two steps of step 1 and step 2.
步骤1:对采样信号Sig(n)进行符号判决,得到采样信号Sig(n)对应的参考符号S[n]。Step 1: Perform symbol decision on the sampled signal Sig(n) to obtain the reference symbol S[n] corresponding to the sampled signal Sig(n).
可选的,参考符号S[n]的取值为0或者1。当S[n]=0时,表示采样信号Sig(n)不为负值;或者,当S[n]=1时,采样信号Sig(n)为负值。如此,无论PAM-N的N值大小,参考符号只有两个可能的取值,这样大大降低了对参考符号的误判概率。Optionally, the value of the reference symbol S[n] is 0 or 1. When S[n]=0, it means that the sampling signal Sig(n) is not a negative value; or, when S[n]=1, the sampling signal Sig(n) is a negative value. In this way, regardless of the value of N of PAM-N, the reference symbol has only two possible values, which greatly reduces the probability of misjudgment of the reference symbol.
步骤2:根据采样信号Sig(n)和采样信号Sig(n)对应的参考符号S[n],获取 采样信号Sig(n)对应的误差成分。Step 2: Obtain the error component corresponding to the sampling signal Sig(n) according to the sampling signal Sig(n) and the reference symbol S[n] corresponding to the sampling signal Sig(n).
其中,步骤2中的获取采样信号对应的误差成分的方法,可以包括如下循环执行n次的两个步骤:Wherein, the method for obtaining the error component corresponding to the sampled signal in step 2 may include the following two steps of cyclically executing n times:
步骤a):消除Sig(i)的符号成分,得到Sig(i-1),其中,Sig(i-1)=Sig(i)+(2*S[i]-1)*A/2 (n-i)Step a): Eliminate the symbolic components of Sig(i) to obtain Sig(i-1), where Sig(i-1)=Sig(i)+(2*S[i]-1)*A/2 ( ni) ;
步骤b):对Sig(i-1)进行符号判决,得到S[i-1];Step b): Perform symbol judgment on Sig(i-1) to obtain S[i-1];
令i分别取n到1的整数,重复执行步骤a)和步骤b)n次,将得到的{S[n-1],S[n-2],…,S[0]}作为采样信号对应的误差成分;可见,误差成分共包括n个比特(bit)值,误差信号的精度有了质的提高。Let i take an integer from n to 1, repeat steps a) and b) n times, and use the obtained {S[n-1],S[n-2],...,S[0]} as the sampling signal Corresponding error components; it can be seen that the error components include n bit values, and the accuracy of the error signal has been qualitatively improved.
其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数,A为采样信号幅值绝对值的平均值。 Among them, n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and A is the average value of the absolute value of the sampled signal amplitude.
n为大于或者等于log 2N的最小整数表示:当log 2N为整数时,n=log 2N;当log 2N不为整数时,n等于log 2N向上取整的值。 n is the smallest integer greater than or equal to log 2 N: when log 2 N is an integer, n=log 2 N; when log 2 N is not an integer, n is equal to the value of log 2 N rounded up.
本申请以获取两个采样信号为例,两个采样信号分别为第一采样信号和第二采样信号,那么,当采样信号为第一采样信号时,第一采样信号对应的参考符号为第一参考符号,第一采样信号对应的误差成分为第一误差成分;当采样信号为第二采样信号时,第二采样信号对应的参考符号为第二参考符号,第二采样信号对应的误差成分为第二误差成分,第一采样信号和第二采样信号在时序上连续。可以理解的是,第一采样信号在时序上可以位于第二采样信号之前,也可以位于第二采样信号之后,下述实施例均是以第一采样信号在时序上位于第二采样信号之前进行描述的(即第一采样信号的序号为k-1,第二采样信号的序号为k)。若第一采样信号在时序上位于第二采样信号之后,那么第二采样信号的序号应为k-1,第一采样信号的序号为k。This application takes the acquisition of two sampling signals as an example. The two sampling signals are the first sampling signal and the second sampling signal. Then, when the sampling signal is the first sampling signal, the reference symbol corresponding to the first sampling signal is the first sampling signal. Reference symbol, the error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is The second error component, the first sampling signal and the second sampling signal are continuous in time sequence. It can be understood that the first sampling signal may be located before the second sampling signal in time sequence, or may be located after the second sampling signal. The following embodiments are performed based on the first sampling signal being located before the second sampling signal in time sequence. Described (that is, the sequence number of the first sampled signal is k-1, and the sequence number of the second sampled signal is k). If the first sampling signal is behind the second sampling signal in time sequence, the sequence number of the second sampling signal should be k-1, and the sequence number of the first sampling signal should be k.
以N=8为例,即采样信号采用PAM-8模式进行调制,n=log 28=3,那么,对第一采样信号进行处理,得到第一采样信号对应的第一参考符号和第一误差 成分的过程,包括: Take N=8 as an example, that is, the sampling signal is modulated in PAM-8 mode, n=log 2 8=3, then the first sampling signal is processed to obtain the first reference symbol and the first sampling signal corresponding to the first sampling signal. The error component process includes:
1)对第一采样信号Sig(3) k-1进行符号判决,得到第一采样信号Sig(3) k-1对应的第一参考符号S[3] k-11) for the first sampling signal Sig (3) k-1 symbol decisions, to obtain a first sampling signal Sig (3) k-1 corresponding to the first reference symbol S [3] k-1.
2)消除Sig(3) k-1的符号成分,得到Sig(2) k-1,其中,Sig(2) k-1=Sig(3) k-1+(2*S[3] k-1-1)*A。 2) Eliminate the symbolic components of Sig(3) k-1 to obtain Sig(2) k-1 , where Sig(2) k-1 = Sig(3) k-1 +(2*S[3] k- 1 -1)*A.
3)对Sig(2) k-1进行符号判决,得到S[2] k-13) Perform symbol judgment on Sig(2) k-1 to obtain S[2] k-1 .
4)消除Sig(2) k-1的符号成分,得到Sig(1) k-1,其中,Sig(1) k-1=Sig(2) k-1+(2*S[2] k-1-1)*A/2。 4) Eliminate the symbolic components of Sig(2) k-1 to obtain Sig(1) k-1 , where Sig(1) k-1 = Sig(2) k-1 +(2*S[2] k- 1 -1)*A/2.
5)对Sig(1) k-1进行符号判决,得到S[1] k-15) Perform symbol judgment on Sig(1) k-1 to obtain S[1] k-1 .
6)消除Sig(1) k-1的符号成分,得到Sig(0) k-1,其中,Sig(0) k-1=Sig(1) k-1+(2*S[1] k-1-1)*A/4。 6) Eliminate the symbolic components of Sig(1) k-1 to obtain Sig(0) k-1 , where Sig(0) k-1 = Sig(1) k-1 +(2*S[1] k- 1 -1)*A/4.
7)对Sig(0) k-1进行符号判决,得到S[0] k-17) Perform symbol judgment on Sig(0) k-1 to obtain S[0] k-1 .
8)将得到的{S[2] k-1,S[1] k-1,S[0] k-1}作为第一采样信号对应的第一误差成分。 8) Use the obtained {S[2] k-1 , S[1] k-1 , S[0] k-1 } as the first error component corresponding to the first sampling signal.
同理,对第二采样信号进行处理,得到第二采样信号对应的第二参考符号和第二误差成分的过程包括:Similarly, the process of processing the second sampling signal to obtain the second reference symbol and the second error component corresponding to the second sampling signal includes:
1)对第二采样信号Sig(3) k进行符号判决,得到第二采样信号Sig(3) k对应的第二参考符号S[3] k1) of the second sampling signal Sig (3) k for symbol decision, to obtain a second sampling signal Sig (3) k corresponding to the second reference symbol S [3] k.
2)消除Sig(3) k的符号成分,得到Sig(2) k,其中,Sig(2) k=Sig(3) k+(2*S[3] k-1)*A。 2) Eliminate the symbolic components of Sig(3) k to obtain Sig(2) k , where Sig(2) k = Sig(3) k + (2*S[3] k -1)*A.
3)对Sig(2) k进行符号判决,得到S[2] k3) Perform symbol judgment on Sig(2) k to obtain S[2] k .
4)消除Sig(2) k的符号成分,得到Sig(1) k,其中,Sig(1) k=Sig(2) k+(2*S[2] k-1)*A/2。 4) Eliminate the symbol components of Sig(2) k to obtain Sig(1) k , where Sig(1) k = Sig(2) k + (2*S[2] k -1)*A/2.
5)对Sig(1) k进行符号判决,得到S[1] k5) Perform symbol judgment on Sig(1) k to obtain S[1] k .
6)消除Sig(1) k的符号成分,得到Sig(0) k,其中, Sig(0) k=Sig(1) k+(2*S[1] k-1)*A/4。 6) Eliminate the symbol components of Sig(1) k to obtain Sig(0) k , where Sig(0) k = Sig(1) k + (2*S[1] k -1)*A/4.
7)对Sig(0) k进行符号判决,得到S[0] k7) Perform symbol judgment on Sig(0) k to obtain S[0] k .
8)将得到的{S[2] k,S[1] k,S[0] k}作为第二采样信号对应的第二误差成分。 8) Use the obtained {S[2] k , S[1] k , S[0] k } as the second error component corresponding to the second sampling signal.
S120、根据第一参考符号、第一误差成分、第二参考符号和第二误差成分,生成逻辑关系。S120: Generate a logical relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component.
其中,根据第一参考符号、第一误差成分、第二参考符号和第二误差成分,生成的逻辑关系如式(1)所示:Among them, according to the first reference symbol, the first error component, the second reference symbol, and the second error component, the generated logical relationship is as shown in formula (1):
Figure PCTCN2020132691-appb-000001
Figure PCTCN2020132691-appb-000001
其中,
Figure PCTCN2020132691-appb-000002
为“异或”逻辑运算,⊙为“同或”逻辑运算,&为“与”逻辑运算,∪() |为连续求“或”运算;k-1为第一采样信号的序号,k为第二采样信号的序号,其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数,i分别取n-1到0的整数。
among them,
Figure PCTCN2020132691-appb-000002
Is the "exclusive OR" logic operation, ⊙ is the "exclusive OR" logic operation, & is the "AND" logic operation, ∪() | is the continuous OR operation; k-1 is the serial number of the first sampled signal, and k is The sequence number of the second sampling signal, where n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and i is an integer from n-1 to 0 respectively.
逻辑关系采用逻辑运算实现,使实现时序降低到了约
Figure PCTCN2020132691-appb-000003
即时间复杂度为log 2(log 2N)。其中
Figure PCTCN2020132691-appb-000004
t 、t &、t |分别为一个异或门、同或门、与门、或门的硬件实现时间,
Figure PCTCN2020132691-appb-000005
为向上取整运算。
The logic relationship is realized by logic operation, which reduces the realization sequence to approximately
Figure PCTCN2020132691-appb-000003
That is, the time complexity is log 2 (log 2 N). among them
Figure PCTCN2020132691-appb-000004
t , t & , t | are the hardware realization time of an XOR gate, XOR gate, AND gate, or gate respectively,
Figure PCTCN2020132691-appb-000005
It is round up operation.
S130、根据逻辑关系的计算结果,确认采样点的相位状态。S130: Confirm the phase state of the sampling point according to the calculation result of the logical relationship.
示例性的,若式(1)中early=1,则采样点的相位偏早,需要将采样点右移;或者,Exemplarily, if early=1 in formula (1), the phase of the sampling point is too early, and the sampling point needs to be shifted to the right; or,
若式(1)中late=1,则采样点的相位偏迟,需要将采样点左移;或者,If late=1 in formula (1), the phase of the sampling point is late, and the sampling point needs to be shifted to the left; or,
若式(1)中early=0,且late=0,则采样点的相位保持不变。If early=0 in formula (1) and late=0, the phase of the sampling point remains unchanged.
下面罗列一些示例性实施方式,用于说明本申请实施例中图1提供的时钟数据恢复方法。在下述实施例中,以N=4为例,即采样信号采用PAM-4模式进行调制,n=log 24=2。 Some exemplary implementation manners are listed below to illustrate the clock data recovery method provided in FIG. 1 in the embodiments of the present application. In the following embodiments, N=4 is taken as an example, that is, the sampling signal is modulated in the PAM-4 mode, and n=log 2 4=2.
定义采样的PAM-N信号的幅值分布关于0对称(即幅值的统计平均为0)。假设采样信号对应的四个基准电平幅值分别为{-1,-1/3,+1/3,+1},即采样信号幅值绝对值的平均值为2/3,采样信号采用二进制补码的形式表示。It is defined that the amplitude distribution of the sampled PAM-N signal is symmetrical about 0 (that is, the statistical average of the amplitude is 0). Assuming that the four reference level amplitudes corresponding to the sampled signal are {-1, -1/3, +1/3, +1}, that is, the average value of the absolute value of the sampled signal amplitude is 2/3, and the sampled signal adopts Represented in two's complement form.
第一步:对第一采样信号进行处理。Step 1: Process the first sampled signal.
第一采样信号用Sig(2) k-1表示,对第一采样信号Sig(2) k-1进行符号判决,得到第一采样信号Sig(2) k-1对应的第一参考符号S[2] k-1。其中,当S[2] k-1=0时,表示Sig(2) k-1不为负值;当S[2] k-1=1时,表示Sig(2) k-1为负值。 First sampling signal (2) k-1 is represented by Sig, the first sampling signal Sig (2) k-1 symbol decision performed to obtain a first sampling signal Sig (2) k-1 corresponding to the first reference symbol S [ 2] k-1 . Among them, when S[2] k-1 =0, it means Sig(2) k-1 is not negative; when S[2] k-1 =1, it means Sig(2) k-1 is negative .
消除Sig(2) k-1的符号成分,得到Sig(1) k-1,其中,Sig(1) k-1=Sig(2) k-1+(2*S[2] k-1-1)*2/3。并对Sig(1) k-1进行符号判决,得到S[1] k-1。其中,当S[1] k-1=0时,表示Sig(1) k-1不为负值;当S[1] k-1=1时,表示Sig(1) k-1为负值。 Eliminate the symbolic components of Sig(2) k-1 to obtain Sig(1) k-1 , where Sig(1) k-1 = Sig(2) k-1 +(2*S[2] k-1- 1)*2/3. And perform symbol judgment on Sig(1) k-1 to obtain S[1] k-1 . Among them, when S[1] k-1 =0, it means that Sig(1) k-1 is not negative; when S[1] k-1 =1, it means Sig(1) k-1 is negative .
消除Sig(1) k-1的符号成分,得到Sig(0) k-1,其中,Sig(0) k-1=Sig(1) k-1+(2*S[1] k-1-1)*1/3。并对Sig(0) k-1进行符号判决,得到S[0] k-1。其中,当S[0] k-1=0时,表示Sig(0) k-1不为负值;当S[0] k-1=1时,表示Sig(0) k-1为负值。 Eliminate the symbolic components of Sig(1) k-1 to obtain Sig(0) k-1 , where Sig(0) k-1 = Sig(1) k-1 +(2*S[1] k-1- 1)*1/3. And perform symbol judgment on Sig(0) k-1 to obtain S[0] k-1 . Among them, when S[0] k-1 =0, it means that Sig(0) k-1 is not negative; when S[0] k-1 =1, it means Sig(0) k-1 is negative .
由此可知,第一采样信号的第一参考符号为S[2] k-1,第一采样信号的第一误差成分为{S[1] k-1,S[0] k-1}。 It can be seen that the first reference symbol of the first sampling signal is S[2] k-1 , and the first error component of the first sampling signal is {S[1] k-1 , S[0] k-1 }.
第二步:对第二采样信号进行处理。Step 2: Process the second sampled signal.
第二采样信号用Sig(2) k表示,对第二采样信号Sig(2) k进行符号判决,得到第二采样信号Sig(2) k对应的第二参考符号S[2] k。其中,当S[2] k=0时,表示Sig(2) k 不为负值;当S[2] k=1时,表示Sig(2) k为负值。 Second sampling signal (2) k is represented by Sig, a second sampling signal Sig (2) k for symbol decision, the second reference symbol to obtain a second sampling signal Sig (2) k corresponding to S [2] k. Among them, when S[2] k =0, it means that Sig(2) k is not a negative value; when S[2] k =1, it means that Sig(2) k is a negative value.
消除Sig(2) k的符号成分,得到Sig(1) k,其中,Sig(1) k=Sig(2) k+(2*S[2] k-1)*2/3。并对Sig(1) k进行符号判决,得到S[1] k。其中,当S[1] k=0时,表示Sig(1) k不为负值;当S[1] k=1时,表示Sig(1) k为负值。 Eliminate the symbolic components of Sig(2) k to obtain Sig(1) k , where Sig(1) k = Sig(2) k + (2*S[2] k -1)*2/3. And perform symbol judgment on Sig(1) k to obtain S[1] k . Among them, when S[1] k =0, it means that Sig(1) k is not a negative value; when S[1] k =1, it means that Sig(1) k is a negative value.
消除Sig(1) k的符号成分,得到Sig(0) k,其中,Sig(0) k=Sig(1) k+(2*S[1] k-1-1)*1/3。并对Sig(0) k进行符号判决,得到S[0] k。其中,当S[0] k=0时,表示采样信号Sig(0) k不为负值;当S[0] k=1时,表示采样信号Sig(0) k为负值。 Eliminate the symbol components of Sig(1) k to obtain Sig(0) k , where Sig(0) k = Sig(1) k + (2*S[1] k-1 -1)*1/3. And perform symbol judgment on Sig(0) k to obtain S[0] k . Among them, when S[0] k =0, it means that the sampling signal Sig(0) k is not a negative value; when S[0] k =1, it means that the sampling signal Sig(0) k is a negative value.
由此可知,第二采样信号的第二参考符号为S[2] k,第二采样信号的第二误差成分为{S[1] k,S[0] k}。 It can be seen that the second reference symbol of the second sampling signal is S[2] k , and the second error component of the second sampling signal is {S[1] k , S[0] k }.
第三步:生成逻辑关系。Step 3: Generate logical relationships.
由第一步和第二步可知,第一采样信号的第一参考符号为S[2] k-1,第一采样信号的第一误差成分为{S[1] k-1,S[0] k-1},第二采样信号的第二参考符号为S[2] k,第二采样信号的第二误差成分为{S[1] k,S[0] k},参考式(1)可得: From the first and second steps, the first reference symbol of the first sampled signal is S[2] k-1 , and the first error component of the first sampled signal is {S[1] k-1 , S[0 ] k-1 }, the second reference symbol of the second sampling signal is S[2] k , and the second error component of the second sampling signal is {S[1] k ,S[0] k }, referring to equation (1 )Available:
Figure PCTCN2020132691-appb-000006
Figure PCTCN2020132691-appb-000006
其中,图2示出了一实施例提供的一种逻辑关系微架构图。Among them, FIG. 2 shows a logical relationship micro-architecture diagram provided by an embodiment.
第四步:确认采样点的相位状态。Step 4: Confirm the phase status of the sampling point.
根据第三步中得到的逻辑关系,计算逻辑关系的结果。若early=1,则表示采样点的相位偏早,需要将采样点右移;或者,若late=1,则表示采样点的相位偏迟,需要将采样点左移;或者,若early=0,且late=0,则表示无明确迟早信号,采样点的相位保持不变。According to the logical relationship obtained in the third step, the result of the logical relationship is calculated. If early=1, it means that the phase of the sampling point is too early, and the sampling point needs to be shifted to the right; or, if late=1, it means that the phase of the sampling point is late, and the sampling point needs to be shifted to the left; or, if early=0 , And late=0, it means that there is no clear signal sooner or later, and the phase of the sampling point remains unchanged.
图3示出了一实施例提供的图2所对应的鉴相器的仿真结果。是在存在相同标准差的相位噪声下,通过数值仿真得到的鉴相曲线对比图。从图3中可知,其中虚线为传统Mueller-Muller(MM)鉴相器的鉴相曲线,实线为图2所对应 的鉴相器的鉴相曲线;横轴表示相位差,单位为发送/接收采样信号的单位时间间隔(Unit Interval,UI),纵轴表示对应相位差下鉴相器平均输出值的相对值,其中,曲线上点与原点之间的连线的斜率为鉴相增益的相对值,该鉴相增益的相对值用于比较不同鉴相增益的相对大小。Fig. 3 shows a simulation result of the phase detector corresponding to Fig. 2 provided by an embodiment. It is a comparison chart of phase discrimination curves obtained through numerical simulation in the presence of phase noise with the same standard deviation. It can be seen from Figure 3 that the dotted line is the phase detection curve of the traditional Mueller-Muller (MM) phase detector, and the solid line is the phase detection curve of the phase detector corresponding to Figure 2; the horizontal axis represents the phase difference, and the unit is send/ The unit interval (Unit Interval, UI) of receiving the sampled signal, the vertical axis represents the relative value of the average output value of the phase detector under the corresponding phase difference, where the slope of the line between the point on the curve and the origin is the phase detector gain Relative value, the relative value of the phase discrimination gain is used to compare the relative magnitude of different phase discrimination gains.
本申请实施例提供的时钟数据恢复方法其实现与电路工艺无关,并且不需要2倍波特率采样,并且N值变化,可保持鉴相区间在-π~+π之间,即可从任意相位点开始捕获。有效鉴相区间内鉴相增益变化更为平稳,拓宽了锁定捕获范围,减小了相位捕获时间,显著提高了时钟数据恢复电路的性能。同时,将传统采用的数值计算方法,改进简化为用数字逻辑方法实现,对硬件的复杂度、功耗要求降低。The implementation of the clock data recovery method provided by the embodiment of the application has nothing to do with the circuit process, and does not require sampling at 2 times the baud rate, and the value of N changes, and the phase discrimination interval can be maintained between -π~+π. The phase point starts to capture. The phase detection gain changes more smoothly in the effective phase detection interval, which broadens the lock capture range, reduces the phase capture time, and significantly improves the performance of the clock data recovery circuit. At the same time, the traditional numerical calculation method is improved and simplified into a digital logic method, which reduces the complexity and power consumption of the hardware.
图4示出了一实施例提供的另一种时钟数据恢复方法的流程示意图,如图4所示,本实施例提供的方法适用于鉴相器(例如Mueller-Muller鉴相器),与图1所示的时钟数据恢复方法相比,当采样信号幅值绝对值的平均值为2 j时(j为整数),可以简化对采样信号进行处理的过程,不再需要对采样信号进行符号判决和消除符号成分的操作。该方法包括步骤S210至S230。 Figure 4 shows a schematic flowchart of another clock data recovery method provided by an embodiment. As shown in Figure 4, the method provided by this embodiment is suitable for a phase detector (such as a Mueller-Muller phase detector). Compared with the clock data recovery method shown in 1, when the average value of the absolute value of the sampled signal amplitude is 2 j (j is an integer), the process of processing the sampled signal can be simplified, and the symbol decision of the sampled signal is no longer necessary. And the operation of eliminating symbolic components. The method includes steps S210 to S230.
S210、获取采样信号,将采样信号的最高位比特作为采样信号对应的参考符号S[n],并将从表示真实信号的幅值为2 j的比特开始的n个比特分别逻辑取反后,作为采样信号对应的误差成分{S[n-1],S[n-2],…,S[0]};其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数。 S210. Obtain a sampled signal, use the highest bit of the sampled signal as the reference symbol S[n] corresponding to the sampled signal, and after logically invert the n bits starting from the bit representing the real signal with an amplitude of 2 j, As the error component corresponding to the sampling signal {S[n-1],S[n-2],...,S[0]}; where n is the smallest integer greater than or equal to log 2 N, and N is the level of PAM number.
鉴相器是一种能够鉴别出输入信号(即采样信号)的相位差的器件,是使输出电压与两个输入信号之间的相位差有确定关系的电路。因此,在获取采样信号时,可以获取至少两个采样信号,并对至少两个采样信号进行处理,得到两个采样信号各自对应的参考符号和误差成分。The phase detector is a device that can identify the phase difference of the input signal (ie, the sampling signal), and is a circuit that makes the output voltage and the phase difference between the two input signals have a definite relationship. Therefore, when acquiring the sampling signal, at least two sampling signals can be acquired, and the at least two sampling signals can be processed to obtain the reference symbols and error components corresponding to the two sampling signals.
在一实施例中,采样信号采用二进制补码的形式表示,以保证其表述形式0 或1为需要用来进行逻辑计算的正确值。In one embodiment, the sampled signal is expressed in the form of twos complement to ensure that the expression form 0 or 1 is the correct value that needs to be used for logic calculation.
需要说明的是,采样信号需要满足:采样信号从表示真实信号的幅值为2 j的比特开始,幅值为2 j的比特之后包括的比特的数量大于或者等于n-1。否则无法取出n个比特进行逻辑取反后作为采样信号对应的误差成分。 It should be noted that the sampling signal needs to meet the following requirements: the sampling signal starts from the bit representing the real signal with an amplitude of 2 j , and the number of bits included after the bit with the amplitude of 2 j is greater than or equal to n-1. Otherwise, the n bits cannot be taken out for logical inversion as the error component corresponding to the sampling signal.
本申请以获取两个采样信号为例,两个采样信号分别为第一采样信号和第二采样信号,那么,当采样信号为第一采样信号时,第一采样信号对应的参考符号为第一参考符号,第一采样信号对应的误差成分为第一误差成分;当采样信号为第二采样信号时,第二采样信号对应的参考符号为第二参考符号,第二采样信号对应的误差成分为第二误差成分,第一采样信号和第二采样信号在时序上连续。可以理解的是,第一采样信号在时序上可以位于第二采样信号之前,也可以位于第二采样信号之后。This application takes the acquisition of two sampling signals as an example. The two sampling signals are the first sampling signal and the second sampling signal. Then, when the sampling signal is the first sampling signal, the reference symbol corresponding to the first sampling signal is the first sampling signal. Reference symbol, the error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is The second error component, the first sampling signal and the second sampling signal are continuous in time sequence. It can be understood that the first sampling signal may be located before the second sampling signal in time sequence, or may be located after the second sampling signal.
以N=16为例,即采样信号采用PAM-16模式进行调制,n=log 216=4,那么,假设第一采样信号的二进制补码的最高5个比特为11100,且左起第二个比特1表示真实信号的幅值为2 j。将第一采样信号的最高位比特1作为第一采样信号对应的第一参考符号S[4] k-1,并将表示真实信号的幅值为2 j的比特1开始的4个比特(1100)分别逻辑取反后作为第一采样信号对应的第一误差成分{S[3] k-1,S[2] k-1,S[1] k-1,S[0] k-1}。 Take N=16 as an example, that is, the sampling signal is modulated in PAM-16 mode, n=log 2 16=4, then, suppose the highest 5 bits of the twos complement of the first sampling signal are 11100, and the second from the left One bit 1 indicates that the amplitude of the real signal is 2 j . The most significant bit of the first sampling signal as a first sampling signal corresponding to the first reference symbol S [4] k-1, and represents the magnitude of the real signal is 2 j bits 4 bits starting with 1 (1100 ) Respectively logically inverted as the first error component corresponding to the first sampling signal {S[3] k-1 ,S[2] k-1 ,S[1] k-1 ,S[0] k-1 } .
同理,假设第二采样信号的二进制补码的最高5个比特为11010,且左起第二个比特1表示真实信号的幅值为2 j。将第二采样信号的最高位比特1作为第二采样信号对应的第二参考符号S[4] k,并表示真实信号的幅值为2 j的比特1开始的4个比特(1010)分别逻辑取反后作为第二采样信号对应的第二误差成分{S[3] k,S[2] k,S[1] k,S[0] k}。 In the same way, it is assumed that the highest five bits of the two's complement code of the second sampled signal are 11010, and the second bit from the left 1 indicates that the amplitude of the real signal is 2 j . Take the most significant bit 1 of the second sampling signal as the second reference symbol S[4] k corresponding to the second sampling signal, and indicate that the real signal's amplitude is 2 j and the 4 bits (1010) starting from bit 1 are logically respectively After being inverted, it is used as the second error component {S[3] k , S[2] k , S[1] k , S[0] k } corresponding to the second sampling signal.
S220、根据第一参考符号、第一误差成分、第二参考符号和第二误差成分,生成逻辑关系。S220: Generate a logical relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component.
其中,根据第一参考符号、第一误差成分、第二参考符号和第二误差成分, 生成的逻辑关系如式(2)所示:Among them, according to the first reference symbol, the first error component, the second reference symbol, and the second error component, the generated logical relationship is as shown in formula (2):
Figure PCTCN2020132691-appb-000007
Figure PCTCN2020132691-appb-000007
其中,
Figure PCTCN2020132691-appb-000008
为“异或”逻辑运算,⊙为“同或”逻辑运算,&为“与”逻辑运算,∪() |为连续求“或”运算;k-1为第一采样信号的序号,k为第二采样信号的序号,其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数,i分别取n-1到0的整数。
among them,
Figure PCTCN2020132691-appb-000008
Is the "exclusive OR" logic operation, ⊙ is the "exclusive OR" logic operation, & is the "AND" logic operation, ∪() | is the continuous OR operation; k-1 is the serial number of the first sampled signal, and k is The sequence number of the second sampling signal, where n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and i is an integer from n-1 to 0 respectively.
逻辑关系采用逻辑运算实现,使实现时序降低到了约
Figure PCTCN2020132691-appb-000009
即时间复杂度为log 2(log 2N)。其中
Figure PCTCN2020132691-appb-000010
t 、t &、t |分别为一个异或门、同或门、与门、或门的硬件实现时间,
Figure PCTCN2020132691-appb-000011
为向上取整运算。
The logic relationship is realized by logic operation, which reduces the realization sequence to approximately
Figure PCTCN2020132691-appb-000009
That is, the time complexity is log 2 (log 2 N). among them
Figure PCTCN2020132691-appb-000010
t , t & , t | are the hardware realization time of an XOR gate, XOR gate, AND gate, or gate respectively,
Figure PCTCN2020132691-appb-000011
It is round up operation.
S230、根据逻辑关系的计算结果,确认采样点的相位状态。S230: Confirm the phase state of the sampling point according to the calculation result of the logical relationship.
示例性的,若式(2)中early=1,则采样点的相位偏早,需要将采样点右移;或者,Exemplarily, if early=1 in formula (2), the phase of the sampling point is too early, and the sampling point needs to be shifted to the right; or,
若式(2)中late=1,则采样点的相位偏迟,需要将采样点左移;或者,If late=1 in formula (2), the phase of the sampling point is late, and the sampling point needs to be shifted to the left; or,
若式(2)中early=0,且late=0,则采样点的相位保持不变。If early=0 in formula (2) and late=0, the phase of the sampling point remains unchanged.
下面罗列一些示例性实施方式,用于说明本申请实施例中图4提供的时钟数据恢复方法。在下述实施例中,以N=8为例,即采样信号采用PAM-8模式进行调制,n=log 28=3。 Some exemplary implementation manners are listed below to illustrate the clock data recovery method provided in FIG. 4 in the embodiment of the present application. In the following embodiments, N=8 is taken as an example, that is, the sampling signal is modulated in the PAM-8 mode, and n=log 2 8=3.
定义采样的PAM-N信号的幅值分布关于0对称(即幅值的统计平均为0)。假设采样信号对应的八个基准电平幅值分别为{-7/8,-5/8,-3/8,-1/8,+1/8,+3/8,+5/8, +7/8},即采样信号幅值绝对值的平均值为1/2(即j=-1),采样信号采用二进制补码的形式表示,并且左起第二个比特表示的真实信号的幅值为1/2。It is defined that the amplitude distribution of the sampled PAM-N signal is symmetrical about 0 (that is, the statistical average of the amplitude is 0). Assume that the eight reference level amplitudes corresponding to the sampled signal are (-7/8, -5/8, -3/8, -1/8, +1/8, +3/8, +5/8, +7/8}, that is, the average value of the absolute value of the sampled signal amplitude is 1/2 (ie j=-1), the sampled signal is expressed in the form of twos complement, and the second bit from the left represents the real signal The amplitude is 1/2.
第一步:对第一采样信号进行处理。Step 1: Process the first sampled signal.
假设接收到第一采样信号的二进制补码形式有m个bit,其中m最小应为4,形式为a k-1,m-1a k-1,m-2...a k-1,1a k-1,0,可表示数值范围为-1~1-2 (1-m),即有:第一参考符号S[3] k-1=a k-1,m-1Suppose that the twos complement form of the received first sampled signal has m bits, where m should be at least 4, and the form is a k-1, m-1 a k-1, m-2 ... a k-1, 1 a k-1,0 , which can represent the range of values from -1 to 1-2 (1-m) , that is: the first reference symbol S[3] k-1 = a k-1, m-1 .
a k-1,m-2表示真实信号的幅值为1/2,即从a k-1,m-2开始向后数3个比特,并分别对a k-1,m-2、a k-1,m-3和a k-1,m-4逻辑取反,得到S[2] k-1、S[1] k-1和S[0] k-1a k-1, m-2 indicates that the amplitude of the real signal is 1/2, that is , count 3 bits backward from a k-1, m-2 , and respectively compare a k-1, m-2 , a K-1, m-3 and a k-1, m-4 are logically inverted to obtain S[2] k-1 , S[1] k-1 and S[0] k-1 .
由此可知,第一采样信号的第一参考符号为a k-1,m-1,第一采样信号的第一误差成分为{a k-1,m-2,a k-1,m-3,a k-1,m-4}。 It can be seen that the first reference symbol of the first sampling signal is a k-1, m-1 , and the first error component of the first sampling signal is {a k-1, m-2 , a k-1, m- 3 ,a k-1,m-4 }.
第二步:对第二采样信号进行处理。Step 2: Process the second sampled signal.
假设接收到第二采样信号的二进制补码形式有m个bit,其中m最小应为4,形式为a k,m-1a k,m-2...a k,1a k,0,可表示数值范围为-1~1-2 (1-m),即有:第二参考符号S[3] k=a k,m-1Suppose that the twos complement form of the received second sampling signal has m bits, where m should be at least 4, and the form is a k,m-1 a k,m-2 ...a k,1 a k,0 , The range of values that can be expressed is -1~1-2 (1-m) , that is, there is: the second reference symbol S[3] k = a k, m-1 .
a k,m-2表示真实信号的幅值为1/2,即从a k,m-2开始向后数3个比特,并分别对a k,m-2、a k,m-3和a k,m-4逻辑取反,得到S[2] k、S[1] k和S[0] ka k, m-2 indicates that the amplitude of the real signal is 1/2, that is, 3 bits count backward from a k, m-2 , and a k, m-2 , a k, m-3 and The logic of a k, m-4 is inverted, and S[2] k , S[1] k and S[0] k are obtained .
由此可知,第二采样信号的第二参考符号为a k,m-1,第二采样信号的第二误差成分为{a k,m-2,a k,m-3,a k,m-4}。 It can be seen that the second reference symbol of the second sampling signal is a k, m-1 , and the second error component of the second sampling signal is {a k, m-2 , a k, m-3 , a k, m -4 }.
第三步:生成逻辑关系。Step 3: Generate logical relationships.
由第一步和第二步可知,第一采样信号的第一参考符号为a k-1,m-1,第一采样信号的第一误差成分为{a k-1,m-2,a k-1,m-3,a k-1,m-4},第二采样信号的第二参考符号为a k,m-1,第二采样信号的第二误差成分为{a k,m-2,a k,m-3,a k,m-4}参考 式(2)可得: From the first and second steps, the first reference symbol of the first sampled signal is a k-1, m-1 , and the first error component of the first sampled signal is {a k-1, m-2 , a k-1,m-3 , ak-1,m-4 }, the second reference symbol of the second sampled signal is ak,m-1 , and the second error component of the second sampled signal is { ak,m -2 , a k, m-3 , a k, m-4 } Refer to formula (2) to obtain:
Figure PCTCN2020132691-appb-000012
Figure PCTCN2020132691-appb-000012
其中,图5示出了一实施例提供的另一种逻辑关系微架构图。Among them, FIG. 5 shows another logical relationship micro-architecture diagram provided by an embodiment.
第四步:确认采样点的相位状态。Step 4: Confirm the phase status of the sampling point.
根据第三步中得到的逻辑关系,计算逻辑关系的结果。若early=1,则表示采样点的相位偏早,需要将采样点右移;或者,若late=1,则表示采样点的相位偏迟,需要将采样点左移;或者,若early=0,且late=0,则表示无明确迟早信号,采样点的相位保持不变。According to the logical relationship obtained in the third step, the result of the logical relationship is calculated. If early=1, it means that the phase of the sampling point is too early, and the sampling point needs to be shifted to the right; or, if late=1, it means that the phase of the sampling point is late, and the sampling point needs to be shifted to the left; or, if early=0 , And late=0, it means that there is no clear signal sooner or later, and the phase of the sampling point remains unchanged.
图6示出了一实施例提供的图5所对应的鉴相器的仿真结果。是在存在相同标准差的相位噪声下,通过数值仿真得到的鉴相曲线对比图。从图6中可知,其中虚线为传统MM鉴相器的鉴相曲线,实线为图5所对应的鉴相器的鉴相曲线;横轴表示相位差,单位为发送/接收采样信号的单位时间间隔(Unit Interval,UI),纵轴表示对应相位差下鉴相器平均输出值的相对值,其中,曲线上点与原点之间的连线的斜率为鉴相增益的相对值,该鉴相增益的相对值用于比较不同鉴相增益的相对大小。Fig. 6 shows a simulation result of the phase detector corresponding to Fig. 5 provided by an embodiment. It is a comparison chart of phase discrimination curves obtained through numerical simulation in the presence of phase noise with the same standard deviation. It can be seen from Figure 6 that the dotted line is the phase detection curve of the traditional MM phase detector, and the solid line is the phase detection curve of the phase detector corresponding to Figure 5; the horizontal axis represents the phase difference, and the unit is the unit of sending/receiving sampled signals. Unit Interval (UI). The vertical axis represents the relative value of the average output value of the phase detector under the corresponding phase difference. The slope of the line between the point on the curve and the origin is the relative value of the phase detector gain. The relative value of phase gain is used to compare the relative magnitude of different phase discrimination gains.
本申请实施例提供的时钟数据恢复方法其实现与电路工艺无关,并且不需要2倍波特率采样,并且N值变化,可保持鉴相区间在-π~+π之间,即可从任意相位点开始捕获。有效鉴相区间内鉴相增益变化更为平稳,拓宽了锁定捕获范围,减小了相位捕获时间,显著提高了时钟数据恢复电路的性能。同时,将传统采用的数值计算方法,改进简化为用数字逻辑方法实现,对硬件的复杂度、功耗要求降低。并且与上述图1所示的时钟数据恢复方法相比,可以简化对采样信号进行处理的过程,不再需要对采样信号进行符号判决和消除符号成分的 操作。The implementation of the clock data recovery method provided by the embodiment of the application has nothing to do with the circuit process, and does not require sampling at 2 times the baud rate, and the value of N changes, and the phase discrimination interval can be maintained between -π~+π. The phase point starts to capture. The phase detection gain changes more smoothly in the effective phase detection interval, which broadens the lock capture range, reduces the phase capture time, and significantly improves the performance of the clock data recovery circuit. At the same time, the traditional numerical calculation method is improved and simplified into a digital logic method, which reduces the complexity and power consumption of the hardware. In addition, compared with the clock data recovery method shown in FIG. 1, the process of processing the sampled signal can be simplified, and it is no longer necessary to perform symbol judgment and remove symbol components of the sampled signal.
图7为一实施例提供的一种时钟数据恢复装置的结构示意图,该时钟数据恢复装置可以配置于鉴相器中,如图7所示,包括:信号采样模块10,信号处理模块11,逻辑生成模块12和相位判断模块13。FIG. 7 is a schematic structural diagram of a clock data recovery device provided by an embodiment. The clock data recovery device can be configured in a phase detector, as shown in FIG. 7, comprising: a signal sampling module 10, a signal processing module 11, and logic The generation module 12 and the phase judgment module 13.
信号采样模块10,设置为采样信号。The signal sampling module 10 is set as a sampling signal.
信号处理模块11,设置为对采样信号进行处理,得到采样信号对应的参考符号和误差成分,其中,当采样信号为第一采样信号时,第一采样信号对应的参考符号为第一参考符号,第一采样信号对应的误差成分为第一误差成分;当采样信号为第二采样信号时,第二采样信号对应的参考符号为第二参考符号,第二采样信号对应的误差成分为第二误差成分,第一采样信号和第二采样信号在时序上连续。The signal processing module 11 is configured to process the sampled signal to obtain the reference symbol and error component corresponding to the sampled signal, where, when the sampled signal is the first sampled signal, the reference symbol corresponding to the first sampled signal is the first reference symbol, The error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal is the second error Component, the first sampling signal and the second sampling signal are continuous in time sequence.
逻辑生成模块12,设置为根据第一参考符号、第一误差成分、第二参考符号和第二误差成分,生成逻辑关系。The logic generating module 12 is configured to generate a logic relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component.
相位判断模块13,设置为根据逻辑关系的计算结果,确认采样点的相位状态。The phase judgment module 13 is configured to confirm the phase state of the sampling point according to the calculation result of the logical relationship.
本实施例提供的时钟数据恢复装置为实现上述实施例的时钟数据恢复方法,本实施例提供的时钟数据恢复装置实现原理类似,此处不再赘述。The clock data recovery device provided in this embodiment implements the clock data recovery method of the foregoing embodiment, and the implementation principle of the clock data recovery device provided in this embodiment is similar, and will not be repeated here.
在一实施例中,信号处理模块11,是设置为对采样信号Sig(n)进行符号判决,得到采样信号Sig(n)对应的参考符号S[n];根据采样信号Sig(n)和采样信号对应的参考符号S[n],获取采样信号对应的误差成分。In one embodiment, the signal processing module 11 is configured to perform symbol decision on the sampled signal Sig(n) to obtain the reference symbol S[n] corresponding to the sampled signal Sig(n); according to the sampled signal Sig(n) and the sample The reference symbol S[n] corresponding to the signal is used to obtain the error component corresponding to the sampled signal.
在一实施例中,信号处理模块11,是设置为令i分别取n到1的整数,重复执行步骤a)和步骤b),将得到的{S[n-1],S[n-2],…,S[0]}作为采样信号对应的误差成分;其中,步骤a)消除Sig(i)的符号成分,得到Sig(i-1),其中,Sig(i-1)=Sig(i)+(2*S[i]-1)*A/2 (n-i);步骤b)对Sig(i-1)进行符号判决,得到S[i-1]; n为大于或者等于log 2N的最小整数,N为脉冲幅度调制PAM的电平数,A为采样信号幅值绝对值的平均值。 In one embodiment, the signal processing module 11 is set to let i take an integer from n to 1, and repeat steps a) and b) to obtain {S[n-1], S[n-2 ],...,S[0]} as the error component corresponding to the sampled signal; among them, step a) eliminates the symbol component of Sig(i) to obtain Sig(i-1), where Sig(i-1)=Sig( i)+(2*S[i]-1)*A/2 (ni) ; Step b) Perform symbol judgment on Sig(i-1) to obtain S[i-1]; n is greater than or equal to log 2 The smallest integer of N, N is the level number of the pulse amplitude modulation PAM, and A is the average value of the absolute value of the amplitude of the sampled signal.
在一实施例中,当采样信号幅值绝对值的平均值为2 j;信号处理模块11,是设置为将采样信号的最高位比特作为采样信号对应的参考符号S[n],并将从表示真实信号的幅值为2 j的比特开始的n个比特分别逻辑取反后作为采样信号对应的误差成分{S[n-1],S[n-2],…,S[0]};其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数,j为整数。 In one embodiment, when the average value of the absolute value of the sampled signal amplitude is 2 j ; the signal processing module 11 is set to use the highest bit of the sampled signal as the reference symbol S[n] corresponding to the sampled signal, It means that the n bits starting from the bit whose amplitude of the real signal is 2 j are logically inverted and used as the error component corresponding to the sampled signal {S[n-1],S[n-2],...,S[0]} ; Among them, n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and j is an integer.
在一实施例中,逻辑关系为:In an embodiment, the logical relationship is:
Figure PCTCN2020132691-appb-000013
Figure PCTCN2020132691-appb-000013
其中,
Figure PCTCN2020132691-appb-000014
为“异或”逻辑运算,⊙为“同或”逻辑运算,&为“与”逻辑运算,∪() |为连续求“或”运算;k-1为第一采样信号的序号,k为第二采样信号的序号,其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数,i分别取n-1到0的整数。
among them,
Figure PCTCN2020132691-appb-000014
Is the "exclusive OR" logic operation, ⊙ is the "exclusive OR" logic operation, & is the "AND" logic operation, ∪() | is the continuous OR operation; k-1 is the serial number of the first sampled signal, and k is The sequence number of the second sampling signal, where n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and i is an integer from n-1 to 0 respectively.
在一实施例中,逻辑生成模块12,设置为若early=1,则采样点的相位偏早;或者,若late=1,则采样点的相位偏迟;或者,若early=0,且late=0,则采样点的相位保持不变。In an embodiment, the logic generation module 12 is set to if early=1, the phase of the sampling point is early; or, if late=1, the phase of the sampling point is late; or, if early=0, and late =0, the phase of the sampling point remains unchanged.
在一实施例中,采样信号采用二进制补码的形式表示。In an embodiment, the sampled signal is represented in the form of twos complement.
本申请实施例还提供了一种鉴相器,包括:处理器,处理器设置为在执行计算机程序时实现如本申请任意实施例所提供的方法。图8为一实施例提供的一种鉴相器的结构示意图,如图8所示,该鉴相器包括处理器60、存储器61和 通信接口62;鉴相器中处理器60的数量可以是至少一个,图8中以一个处理器60为例;鉴相器中的处理器60、存储器61、通信接口62可以通过总线或其他方式连接,图8中以通过总线连接为例。总线表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。The embodiment of the present application further provides a phase detector, including a processor, which is configured to implement the method provided in any embodiment of the present application when the computer program is executed. FIG. 8 is a schematic structural diagram of a phase detector provided by an embodiment. As shown in FIG. 8, the phase detector includes a processor 60, a memory 61, and a communication interface 62; the number of processors 60 in the phase detector may be At least one, one processor 60 is taken as an example in FIG. 8; the processor 60, the memory 61, and the communication interface 62 in the phase detector may be connected by a bus or other methods. In FIG. 8, the connection by a bus is taken as an example. The bus represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure among multiple bus structures.
存储器61作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序以及模块,如本申请实施例中的方法对应的程序指令/模块。处理器60通过运行存储在存储器61中的软件程序、指令以及模块,从而执行鉴相器的至少一种功能应用以及数据处理,即实现上述的时钟数据恢复方法。As a computer-readable storage medium, the memory 61 can be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 60 executes at least one functional application and data processing of the phase detector by running the software programs, instructions, and modules stored in the memory 61, that is, realizes the above-mentioned clock data recovery method.
存储器61可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据鉴相器的使用所创建的数据等。此外,存储器61可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器61可包括相对于处理器60远程设置的存储器,这些远程存储器可以通过网络连接至鉴相器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 61 may include a storage program area and a storage data area. The storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the phase detector, and the like. In addition, the memory 61 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 61 may include a memory remotely provided with respect to the processor 60, and these remote memories may be connected to the phase detector through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
通信接口62可设置为数据的接收与发送。The communication interface 62 can be configured to receive and send data.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现如本申请任意实施例所提供的方法。The embodiment of the present application also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the method as provided in any embodiment of the present application is implemented.
本申请实施例的计算机存储介质,可以采用至少一个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储 介质包括(非穷举的列表):具有至少一个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、带电可擦式可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium of the embodiment of the present application may adopt any combination of at least one computer-readable medium. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. Computer-readable storage media include (non-exhaustive list): electrical connections with at least one wire, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM) ), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage devices, Magnetic storage device, or any suitable combination of the above. In this application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,数据信号中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and the computer-readable program code is carried in the data signal. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或多种程序设计语言组合来编写用于执行本公开操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++、Ruby、Go,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来 通过因特网连接)。The computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination of multiple programming languages. The programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, Ruby, Go also includes conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network-including Local Area Network (LAN) or Wide Area Network (WAN)-or it can be connected to an external computer ( For example, use an Internet service provider to connect via the Internet).
本领域内的技术人员应明白,术语用户终端涵盖任何适合类型的无线用户设备,例如移动电话、便携数据处理装置、便携网络浏览器或车载移动台。Those skilled in the art should understand that the term user terminal encompasses any suitable type of wireless user equipment, such as a mobile phone, a portable data processing device, a portable web browser, or a vehicle-mounted mobile station.
一般来说,本申请的多种实施例可以在硬件或专用电路、软件、逻辑或其任何组合中实现。例如,一些方面可以被实现在硬件中,而其它方面可以被实现在可以被控制器、微处理器或其它计算装置执行的固件或软件中,尽管本申请不限于此。In general, the various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, although the present application is not limited thereto.
本申请的实施例可以通过移动装置的数据处理器执行计算机程序指令来实现,例如在处理器实体中,或者通过硬件,或者通过软件和硬件的组合。计算机程序指令可以是汇编指令、指令集架构(Instruction Set Architecture,ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码。The embodiments of the present application may be implemented by executing computer program instructions by a data processor of a mobile device, for example, in a processor entity, or by hardware, or by a combination of software and hardware. Computer program instructions can be assembly instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or written in any combination of one or more programming languages Source code or object code.
本申请附图中的任何逻辑流程的框图可以表示程序步骤,或者可以表示相互连接的逻辑电路、模块和功能,或者可以表示程序步骤与逻辑电路、模块和功能的组合。计算机程序可以存储在存储器上。存储器可以具有任何适合于本地技术环境的类型并且可以使用任何适合的数据存储技术实现,例如但不限于只读存储器(ROM)、随机访问存储器(RAM)、光存储器装置和系统(数码多功能光碟(Digital Versatile Disc,DVD)或CD光盘)等。计算机可读介质可以包括非瞬时性存储介质。数据处理器可以是任何适合于本地技术环境的类型,例如但不限于通用计算机、专用计算机、微处理器、数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑器件(Field-Programmable Gate Array,FGPA)以及基于多核处理器架构的处理器。The block diagram of any logic flow in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions. The computer program can be stored on the memory. The memory can be of any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical storage devices and systems (digital multi-function optical discs) (Digital Versatile Disc, DVD) or CD disc) etc. Computer-readable media may include non-transitory storage media. The data processor can be any type suitable for the local technical environment, such as but not limited to general-purpose computers, special-purpose computers, microprocessors, digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (ASICs) ), programmable logic devices (Field-Programmable Gate Array, FGPA), and processors based on multi-core processor architecture.

Claims (10)

  1. 一种时钟数据恢复方法,包括:A method for clock data recovery, including:
    获取采样信号,并对所述采样信号进行处理,得到采样信号对应的参考符号和误差成分,其中,在采样信号为第一采样信号的情况下,第一采样信号对应的参考符号为第一参考符号,第一采样信号对应的误差成分为第一误差成分;在采样信号为第二采样信号的情况下,第二采样信号对应的参考符号为第二参考符号,第二采样信号对应的误差成分为第二误差成分,所述第一采样信号和所述第二采样信号在时序上连续;Obtain the sampled signal and process the sampled signal to obtain the reference symbol and error component corresponding to the sampled signal. In the case where the sampled signal is the first sampled signal, the reference symbol corresponding to the first sampled signal is the first reference Symbol, the error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the error component corresponding to the second sampling signal Is the second error component, the first sampling signal and the second sampling signal are continuous in time sequence;
    根据所述第一参考符号、所述第一误差成分、所述第二参考符号和所述第二误差成分,生成逻辑关系;Generate a logical relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component;
    根据所述逻辑关系的计算结果,确认采样点的相位状态。According to the calculation result of the logical relationship, the phase state of the sampling point is confirmed.
  2. 根据权利要求1所述的方法,其中,对所述采样信号进行处理,得到采样信号对应的参考符号和误差成分,包括:The method according to claim 1, wherein processing the sampled signal to obtain a reference symbol and an error component corresponding to the sampled signal comprises:
    对所述采样信号Sig(n)进行符号判决,得到所述采样信号Sig(n)对应的参考符号S[n];Perform a symbol decision on the sample signal Sig(n) to obtain a reference symbol S[n] corresponding to the sample signal Sig(n);
    根据所述采样信号Sig(n)和所述采样信号Sig(n)对应的参考符号S[n],获取所述采样信号Sig(n)对应的误差成分。According to the sampling signal Sig(n) and the reference symbol S[n] corresponding to the sampling signal Sig(n), the error component corresponding to the sampling signal Sig(n) is obtained.
  3. 根据权利要求2所述的方法,其中,获取所述采样信号Sig(n)对应的误差成分,包括:The method according to claim 2, wherein obtaining the error component corresponding to the sampling signal Sig(n) comprises:
    消除Sig(i)的符号成分,得到Sig(i-1),其中,Sig(i-1)=Sig(i)+(2*S[i]-1)*A/2 (n-i)Eliminate the symbolic components of Sig(i) to obtain Sig(i-1), where Sig(i-1)=Sig(i)+(2*S[i]-1)*A/2 (ni) ;
    对Sig(i-1)进行符号判决,得到S[i-1];Perform symbol judgment on Sig(i-1) to obtain S[i-1];
    令i分别取n到1的整数,重复执行上述步骤,将得到的{S[n-1],S[n-2],…,S[0]}作为所述采样信号对应的误差成分;Let i take an integer from n to 1 respectively, repeat the above steps, and use the obtained {S[n-1], S[n-2],...,S[0]} as the error component corresponding to the sampling signal;
    其中,n为大于或者等于log 2N的最小整数,N为脉冲幅度调制PAM的电平数,A为采样信号幅值绝对值的平均值。 Among them, n is the smallest integer greater than or equal to log 2 N, N is the number of levels of the pulse amplitude modulation PAM, and A is the average value of the absolute value of the sampled signal amplitude.
  4. 根据权利要求1所述的方法,其中,在采样信号幅值绝对值的平均值为2 j的情况下; The method according to claim 1, wherein when the average value of the absolute value of the amplitude of the sampled signal is 2 j ;
    对所述采样信号进行处理,得到采样信号对应的参考符号和误差成分,包括:Processing the sampled signal to obtain the reference symbol and error component corresponding to the sampled signal includes:
    将所述采样信号的最高位比特作为所述采样信号对应的参考符号S[n],并将从表示真实信号的幅值为2 j的比特开始的n个比特分别逻辑取反后,作为所述采样信号对应的误差成分{S[n-1],S[n-2],…,S[0]};其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数,j为整数。 The highest bit of the sampled signal as said reference symbol corresponding to the sampling signal S [n], and represents the magnitude of the real signal is 2 j bits starting n bits after each logical negation, as the The error component corresponding to the sampled signal {S[n-1],S[n-2],...,S[0]}; where n is the smallest integer greater than or equal to log 2 N, and N is the level of PAM Number, j is an integer.
  5. 根据权利要求3或4所述的方法,其中,所述逻辑关系为:The method according to claim 3 or 4, wherein the logical relationship is:
    Figure PCTCN2020132691-appb-100001
    Figure PCTCN2020132691-appb-100001
    其中,
    Figure PCTCN2020132691-appb-100002
    为“异或”逻辑运算,⊙为“同或”逻辑运算,&为“与”逻辑运算,∪() |为连续求“或”运算;k-1为所述第一采样信号的序号,k为所述第二采样信号的序号,其中,n为大于或者等于log 2N的最小整数,N为PAM的电平数,i分别取n-1到0的整数。
    among them,
    Figure PCTCN2020132691-appb-100002
    Is the "exclusive OR" logical operation, ⊙ is the "exclusive OR" logical operation, & is the "AND" logical operation, ∪() | is the continuous "OR"operation; k-1 is the serial number of the first sampled signal, k is the sequence number of the second sampling signal, where n is the smallest integer greater than or equal to log 2 N, N is the number of PAM levels, and i is an integer from n-1 to 0, respectively.
  6. 根据权利要求5所述的方法,其中,根据所述逻辑关系的计算结果,确认采样点的相位状态,包括:The method according to claim 5, wherein, according to the calculation result of the logical relationship, confirming the phase state of the sampling point comprises:
    响应于所述逻辑关系的计算结果为early=1,确定所述采样点的相位偏早;或者,In response to the calculation result of the logical relationship being early=1, it is determined that the phase of the sampling point is too early; or,
    响应于述逻辑关系的计算结果为late=1,确定所述采样点的相位偏迟;或者,In response to the calculation result of the logical relationship being late=1, it is determined that the phase of the sampling point is late; or,
    响应于述逻辑关系的计算结果为early=0且late=0,确定所述采样点的相位保持不变。In response to the calculation result of the logical relationship being early=0 and late=0, it is determined that the phase of the sampling point remains unchanged.
  7. 根据权利要求1所述的方法,其中,所述采样信号采用二进制补码的形式表示。The method according to claim 1, wherein the sampling signal is represented in the form of twos complement.
  8. 一种时钟数据恢复装置,包括:信号采样模块,信号处理模块,逻辑生成模块和相位判断模块;A clock data recovery device, including: a signal sampling module, a signal processing module, a logic generation module and a phase judgment module;
    所述信号采样模块,设置为获取采样信号;The signal sampling module is configured to obtain a sampling signal;
    所述信号处理模块,设置为对所述采样信号进行处理,得到采样信号对应的参考符号和误差成分,其中,在采样信号为第一采样信号的情况下,第一采样信号对应的参考符号为第一参考符号,第一采样信号对应的误差成分为第一误差成分;在采样信号为第二采样信号的情况下,第二采样信号对应的参考符号为第二参考符号,第二采样信号对应的误差成分为第二误差成分,所述第一采样信号和所述第二采样信号在时序上连续;The signal processing module is configured to process the sampling signal to obtain a reference symbol and an error component corresponding to the sampling signal. In the case where the sampling signal is the first sampling signal, the reference symbol corresponding to the first sampling signal is The first reference symbol, the error component corresponding to the first sampling signal is the first error component; when the sampling signal is the second sampling signal, the reference symbol corresponding to the second sampling signal is the second reference symbol, and the second sampling signal corresponds to The error component of is a second error component, and the first sampling signal and the second sampling signal are continuous in time sequence;
    所述逻辑生成模块,设置为根据所述第一参考符号、所述第一误差成分、所述第二参考符号和所述第二误差成分,生成逻辑关系;The logic generation module is configured to generate a logic relationship according to the first reference symbol, the first error component, the second reference symbol, and the second error component;
    所述相位判断模块,设置为根据所述逻辑关系的计算结果,确认采样点的相位状态。The phase judgment module is configured to confirm the phase state of the sampling point according to the calculation result of the logical relationship.
  9. 一种鉴相器,包括:处理器,所述处理器设置为在执行计算机程序时,实现如权利要求1-7中任一所述的时钟数据恢复方法。A phase detector, comprising: a processor configured to implement the clock data recovery method according to any one of claims 1-7 when a computer program is executed.
  10. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,实现如权利要求1-7中任一所述的时钟数据恢复方法。A computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the clock data recovery method according to any one of claims 1-7 is realized.
PCT/CN2020/132691 2019-11-29 2020-11-30 Method and apparatus for clock data recovery, phase detector and storage medium WO2021104516A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911205457.5A CN112882872A (en) 2019-11-29 2019-11-29 Clock data recovery method and device, phase discriminator and storage medium
CN201911205457.5 2019-11-29

Publications (1)

Publication Number Publication Date
WO2021104516A1 true WO2021104516A1 (en) 2021-06-03

Family

ID=76039650

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132691 WO2021104516A1 (en) 2019-11-29 2020-11-30 Method and apparatus for clock data recovery, phase detector and storage medium

Country Status (2)

Country Link
CN (1) CN112882872A (en)
WO (1) WO2021104516A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710152B (en) * 2022-02-11 2024-04-30 北京大学 Baud rate phase detector circuit using alternate edges

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150016497A1 (en) * 2013-07-12 2015-01-15 Lsi Corporation Clock and data recovery architecture with adaptive digital phase skew
WO2016106548A1 (en) * 2014-12-30 2016-07-07 华为技术有限公司 Clock recovery apparatus
CN109076032A (en) * 2016-02-23 2018-12-21 华为技术有限公司 Calibration phase offset and the FFE auxiliary CDR for improving Baudrate sampling phase-sensitive detector gain
CN109787615A (en) * 2018-12-29 2019-05-21 光梓信息科技(上海)有限公司 Frequency discriminator, PAM4 data clock frequency locking means, restoration methods and circuit
US10447509B1 (en) * 2018-08-23 2019-10-15 Credo Technology Group Limited Precompensator-based quantization for clock recovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150016497A1 (en) * 2013-07-12 2015-01-15 Lsi Corporation Clock and data recovery architecture with adaptive digital phase skew
WO2016106548A1 (en) * 2014-12-30 2016-07-07 华为技术有限公司 Clock recovery apparatus
CN109076032A (en) * 2016-02-23 2018-12-21 华为技术有限公司 Calibration phase offset and the FFE auxiliary CDR for improving Baudrate sampling phase-sensitive detector gain
US10447509B1 (en) * 2018-08-23 2019-10-15 Credo Technology Group Limited Precompensator-based quantization for clock recovery
CN109787615A (en) * 2018-12-29 2019-05-21 光梓信息科技(上海)有限公司 Frequency discriminator, PAM4 data clock frequency locking means, restoration methods and circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MAITY SHOVAN; MEHROTRA PARIKHA; SEN SHREYAS: "An Improved Update Rate Baud Rate CDR for Integrating Human Body Communication Receiver", 2018 IEEE BIOMEDICAL CIRCUITS AND SYSTEMS CONFERENCE (BIOCAS), IEEE, 17 October 2018 (2018-10-17), pages 1 - 4, XP033483285, DOI: 10.1109/BIOCAS.2018.8584820 *

Also Published As

Publication number Publication date
CN112882872A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US11438134B2 (en) Phase detection method, phase detection circuit, and clock recovery apparatus
US8605828B2 (en) Blind mechanism for demodulating offset QPSK signals in the presence of carrier phase error
US10904046B2 (en) Variable gain amplifier and sampler offset calibration without clock recovery
US10887077B1 (en) Method and apparatus for a one bit per symbol timing recovery phase detector
WO2021104516A1 (en) Method and apparatus for clock data recovery, phase detector and storage medium
US20220103407A1 (en) Fsk radio-frequency demodulators
US10237096B2 (en) Processing of a faster-than-Nyquist signaling reception signal
US20230291633A1 (en) Probabilistic shaping qam dynamic equalization and digital signal processing method
US11838156B2 (en) Continuous time linear equalization and bandwidth adaptation using asynchronous sampling
US10616015B2 (en) Signal processing system and method, and apparatus
US10177876B2 (en) Sequence detector
WO2022052933A1 (en) Signal processing method and related device
WO2021143470A1 (en) Reference signal processing method and apparatus, first communication node, and second communication node
EP2950493B1 (en) Bit likelihood calculation device and bit likelihood calculation method
CN114567534A (en) Soft decision method, device, computer equipment and computer readable storage medium
CN109565436B (en) Clock and data recovery in PAM-4 transmission systems
US9722816B2 (en) Precoding in faster-than-nyquist communications
WO2022218265A1 (en) Symbol sending method, symbol receiving method, sending device, receiving device, and storage medium
WO2016090557A1 (en) Method for detecting sending sequence, receiver and receiving device
US9094077B2 (en) Slope detecting receiver
CN116633741A (en) Signal demodulation method and device and electronic equipment
JPH03278724A (en) Data receiver
CN116961774A (en) Probability shaping signal generation and detection method, storage medium and device
CN112260698A (en) Dynamic correction factor configuration method in LDPC decoder

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20893900

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20893900

Country of ref document: EP

Kind code of ref document: A1