High-precision serial PRBS generation and error code detection system

By using two pseudo-random code generation circuits and delay generation circuits in high-speed serial data transmission system for phase alignment, combining asynchronous counters and shielded signals, high-precision code error detection and real-time bit error rate statistics are achieved, and the current solution is solved In some technology, the error error of the error detection loop generates randomness and high synchronous circuit area and power consumption.

CN119011078AActive Publication Date: 2024-11-22HANGZHOU NOVACORE MICROELECTRONICS TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410954946.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-22
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

In the existing high-speed serial data transmission system, the error detection loop has a large randomness in the randomness of the code error detection loop, a large synchronization circuit area and high power consumption, making it difficult to achieve high-precision error detection and real-time data sampling.

Method used

Two pseudo-random code generation circuits and delay generation circuits are used for phase alignment, and the phase of the pseudo-random code sequence is adjusted through the phase detection circuit and the digital feedback loop to realize error detection and statistics, and use asynchronous counters and masked signals to perform real-time errors. Bit rate statistics.

Benefits of technology

High-precision code error detection is realized, the area and power consumption of the code error detection loop is reduced, and data can be obtained in real time under low overhead state, making up for the shortcomings of traditional code error detection circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011078A_ABST
    Figure CN119011078A_ABST
Patent Text Reader

Abstract

The invention discloses a high-precision serial PRBS generation and error code detection system, and the system comprises a first pseudo-random code generation circuit which is configured to generate a first pseudo-random code sequence, and obtains a second pseudo-random code sequence after the first pseudo-random code sequence passes through a clock data recovery circuit; the second pseudo-random code generation circuit is configured to generate a third pseudo-random code sequence, detect the phase difference between the third pseudo-random code sequence and the second pseudo-random code sequence through a phase detection circuit, and perform time delay adjustment on the third pseudo-random code sequence according to the phase difference through a time delay generation circuit to obtain the third pseudo-random code sequence after phase alignment; the pseudo-random code detection circuit is configured to detect error codes in the second pseudo-random code sequence based on the third pseudo-random code sequence after phase alignment; and the error code counting circuit is configured to count the error code rate in real time based on the error code detection result of the pseudo-random code detection circuit. Accurate error code detection can be realized, and the defects of a traditional error code detection and generation circuit are overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of high-speed interface circuits, and in particular to a high-precision serial PRBS generation and error detection system. Background Art

[0002] In the high-speed serial data transmission system SerDes (Serializer-Deserializer), the transmitter encodes the lower-speed parallel data and completes the data serialization, and then converts the transmitted data into a differential signal through the driving circuit and outputs it to the interconnect line. At the receiving end, the receiver extracts the clock information from the data stream, samples the data with the recovered clock, and recovers the transmitted data signal. This process is called clock data recovery (CDR). The recovered data is further converted to serial and decoded. The clock data recovery circuit is a key module for realizing high-speed serial communication. It recovers the clock signal from the serial data, then retimes the data to recover the data, and eliminates the jitter introduced during the data transmission process.

[0003] As data rates continue to increase, non-ideal factors such as noise have an increasingly greater impact on signals, causing signal quality to decline and waveform degradation, which can lead to data misidentification, or bit errors. In high-speed serial transmission systems, due to the influence of non-ideal factors during the transmission process, the data received by the receiving end is not ideal, but a superposition of the ideal signal and the influence of the transmission process. Jitter is an important factor causing bit errors. Whether the CDR circuit at the receiving end can recover the correct clock signal from the data stream superimposed with the jitter signal and sample the correct data is an important performance indicator of the high-speed serial interface circuit.

[0004] Pseudo Random Binary Sequence (PRBS) is widely used in the bit error rate test of communication systems because it is easy to generate a suitable sequence through a linear feedback shift register (LFSR) at both the transmitter and the receiver. To calculate the bit error at the receiver, the serial code stream at the receiver needs to be bit synchronized with the code stream at the transmitter. After the synchronization is completed, the digital sequence of the receiver and the digital sequence of the code stream at the transmitter are compared to perform bit error detection and counting. Taking the SerDes chip as an example, after entering the pseudo random code test mode, the pseudo random code generation circuit inside the chip generates a high-speed pseudo random code. After inputting it into the signal channel link, the signal channel link recovers the high-speed clock and high-speed data. The error detection loop detects the bit errors generated by the data recovered after passing through the signal channel link system path, and the bit error rate is calculated. Since the clock and data will have a relative phase delay after passing through the path, it may be wrong to directly use the clock to sample the data. In addition, the existing solution consists of a pseudo-random code generation circuit and an error detection loop. Due to the existence of the loop, when there is an error at the input end, 1-3 errors will be randomly reported to the output end. Therefore, the existing error generation and detection solution is not suitable for high-precision error detection scenarios.

[0005] In addition, the prior art generally uses a multi-bit synchronous circuit to implement a multi-bit register. In a parallel pseudo-random code error detection and statistics circuit, the number of registers for error statistics is very large and the number of bits is high. If both the speed and accuracy of the multi-bit synchronous circuit are to be taken into account and real-time reading and sampling are to be achieved, a large number of carry-lookahead synchronous adders are required to synchronize the data. However, the synchronous adder has a large area and high power consumption, and is not suitable for a parallel pseudo-random code error detection and statistics circuit. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes a high-precision serial PRBS generation and error detection system, which introduces a delay generation circuit to calibrate the clock, thereby aligning the phase relationship between the clock and the data. The present invention can also realize that the pseudo-random code detection circuit and the error statistics circuit can work in a low-overhead (i.e., small occupied area and low power consumption) state while acquiring data in real time.

[0007] The technical solution adopted by the present invention is as follows:

[0008] The present invention provides a high-precision serial PRBS generation and error detection system, comprising:

[0009] A first pseudo-random code generating circuit is configured to generate a first pseudo-random code sequence PRBS data, and obtain a second pseudo-random code sequence CDR data_delay after passing through a clock data recovery circuit;

[0010] The second pseudo-random code generating circuit is configured to generate a third pseudo-random code sequence PRBS data', and detect the phase difference with the second pseudo-random code sequence CDR data_delay through the phase detection circuit, and then adjust the delay of the third pseudo-random code sequence PRBS data' according to the phase difference through the delay generating circuit to obtain a third pseudo-random code sequence PRBS data'_delay after phase alignment; the third pseudo-random code sequence PRBS data' has the same data as the first pseudo-random code sequence PRBSdata, and the phase is the same or different;

[0011] The pseudo-random code detection circuit is configured to detect bit errors in the second pseudo-random code sequence CDR data_delay based on the third pseudo-random code sequence PRBS data'_delay after phase alignment;

[0012] The bit error statistics circuit is configured to calculate the bit error rate in real time based on the bit error detection result of the pseudo-random code detection circuit.

[0013] Furthermore, when the phase detection circuit detects the phase difference between the third pseudo-random code sequence PRBS data' generated by the second pseudo-random code generating circuit and the second pseudo-random code sequence CDR data_delay recovered by the clock data recovery circuit, the delay generating circuit is controlled based on the digital feedback loop to perform delay adjustment on the third pseudo-random code sequence PRBS data' generated by the second pseudo-random code generating circuit according to the phase difference, thereby obtaining the third pseudo-random code sequence PRBSdata'_delay after phase alignment.

[0014] Further, the phase detection circuit includes a first D flip-flop, a second D flip-flop and a third D flip-flop, the clock end of the first D flip-flop inputs a sampling clock, the data end inputs a third pseudo-random code sequence PRBS data', and the output end generates first data; the clock end of the second D flip-flop inputs a sampling clock, the data end inputs the first data, and the output end generates second data; the clock end of the third D flip-flop inputs an edge sampling clock, the data end inputs a third pseudo-random code sequence PRBS data', and the output end generates third data, and the edge sampling clock is 180° phase apart from the sampling clock.

[0015] Furthermore, the sampling clock is introduced by a clock recovered by a clock data recovery circuit, that is, the sampling clock is the same as the clock used by the second pseudo-random code sequence CDR data_delay.

[0016] Furthermore, when the first data is equal to the third data, it indicates that the sampling is advanced; when the second data is equal to the third data, it indicates that the sampling is delayed; the first data, the second data and the third data are statistically analyzed to obtain phase information, and the phase information is output to the delay generation circuit through a digital feedback loop to finally align the data.

[0017] Furthermore, when an external input or a timed shielding signal is input, the bit error detection and bit error statistics are suspended; after waiting for digital sampling data, the shielding signal is reset to zero and the bit error statistics are continued.

[0018] Furthermore, the bit error statistics circuit includes a logic circuit and an asynchronous counter, the first input end of the logic circuit is connected to the bit error signal, the second input end is connected to the shielding signal, and the output end is electrically connected to the asynchronous counter, so as to count the bit error signal; the shielding signal can shield the bit error signal from being transmitted to the asynchronous counter.

[0019] Furthermore, the logic circuit includes a NOT gate unit and a NOR gate unit, the input end of the NOT gate unit is connected to the bit error signal, the output end of the NOT gate unit is electrically connected to the first input end of the NOR gate unit, the second input end of the NOR gate unit is connected to the shielding signal, and the output end of the NOR gate unit is electrically connected to the asynchronous counter.

[0020] Furthermore, the asynchronous counter includes N D flip-flops connected in series one after another, where N is a positive integer.

[0021] Furthermore, the high-precision serial PRBS generation and error detection system also includes a digital register, a signal input end of the digital register is electrically connected to a signal output end of the error statistics circuit, and receives the error rate information transmitted in real time by the error statistics circuit based on the corresponding timing.

[0022] The beneficial effects of the present invention are:

[0023] (1) Compared with the traditional pseudo-random code generation and detection circuit, the present invention performs phase alignment through two pseudo-random code generation circuits and a time delay generation circuit, that is, the two pseudo-random code generation circuits output a PRBS sequence with the same data (but the phase is not necessarily the same), one of which is recovered by the clock data recovery circuit, and the other is adjusted by the time delay generation circuit to achieve the same phase as the data recovered by the clock data recovery circuit, and then enters the pseudo-random code detection circuit after sampling, thereby realizing bit error detection. The present invention can realize accurate bit error detection, making up for the defects of traditional bit error detection and generation circuits.

[0024] (2) Although the synchronous counter can well realize real-time synchronization and transfer data, the problem of using the synchronous counter as an error statistics circuit is that in a parallel pseudo-random code error detection and statistics circuit, the number of synchronous counters and the number of bits for error statistics are very large. Since the scale and power consumption of the synchronous counter will increase exponentially with the increase of the number of bits, it is difficult to obtain the advantages of scale and power consumption. The present invention utilizes an asynchronous error statistics circuit and a shielding signal (pause signal) to transmit real-time error rate information through the corresponding timing, so that the error detection circuit and the error statistics circuit can work in a low-overhead state while acquiring data in real time, that is, the occupied area is small and the power consumption is low. Therefore, the present invention uses timing and a very small cost to control the scale while also having a great advantage in power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 The present invention is a schematic diagram of a high-precision serial PRBS generation and error detection system.

[0026] Figure 2 The present invention is a flow chart of a high-precision serial PRBS generation and error detection system.

[0027] Figure 3 This is a schematic diagram of a phase detection circuit of the present invention.

[0028] Figure 4 It is a timing diagram of a phase detection circuit of the present invention.

[0029] Figure 5 The invention is a block diagram of an existing parallel pseudo-random code error detection and statistics circuit based on an asynchronous adder.

[0030] Figure 6 The present invention is a block diagram of an existing parallel pseudo-random code error detection and statistics circuit based on a carry-lookahead adder.

[0031] Figure 7 The present invention is a logic circuit schematic diagram of a bit error statistics circuit. DETAILED DESCRIPTION

[0032] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, the specific implementation methods of the present invention are now described. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the embodiments described are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0033] like Figure 1The figure shows a schematic diagram of a high-precision serial PRBS generation and error detection system of the present embodiment, the system comprising a first pseudo-random code generation circuit PRBS Gen1, a second pseudo-random code generation circuit PRBS Gen2, a pseudo-random code detection circuit PRBS Checker and an error statistics circuit BER Statistics, wherein the first pseudo-random code generation circuit PRBSGen1 is configured to generate a first pseudo-random code sequence PRBS data, and obtain a second pseudo-random code sequence CDR data_delay after passing through a clock data recovery circuit CDR; the second pseudo-random code generation circuit PRBS Gen2 is configured to generate a third pseudo-random code sequence PRBS data' (the data is the same as the first pseudo-random code sequence PRBS data, but the phase is not necessarily the same), firstly detect the phase difference with the second pseudo-random code sequence CDR data_delay through a phase detection circuit PD, and then adjust the delay of the third pseudo-random code sequence PRBS data' according to the phase difference through a delay generation circuit PI to obtain a third pseudo-random code sequence PRBS data'_delay after phase alignment; the pseudo-random code detection circuit PRBS Checker is configured to use the third pseudo-random code sequence PRBS data' after phase alignment data'_delay is used as the basis to detect the bit errors in the second pseudo random code sequence CDR data_delay; the bit error statistics circuit BER Statistics is configured to count the bit error rate in real time based on the bit error detection result of the pseudo random code detection circuit PRBS Checker. Figure 1 In the diagram, Analog represents the analog circuit part, and Digital represents the digital circuit part.

[0034] like Figure 2 The figure shows a flow chart of a high-precision serial PRBS generation and error detection system of the present embodiment. First, two pseudo-random code generation circuits (i.e., the first generation circuit PRBS Gen1 and the second pseudo-random code generation circuit PRBS Gen2) output PRBS sequences with the same data (but the phases are not necessarily the same), one of which is recovered by the clock data recovery circuit CDR, and the other is adjusted in phase by the time delay generation circuit PI to achieve the same phase as the data recovered by the clock data recovery circuit CDR; then, after sampling, it enters the pseudo-random code detection circuit PRBS Checker to achieve error detection.

[0035] Preferably, after the phase detection circuit PD detects the phase difference between the third pseudo-random code sequence PRBS data' generated by the second pseudo-random code generating circuit PRBS Gen2 and the second pseudo-random code sequence CDR data_delay recovered by the clock data recovery circuit CDR, the digital feedback loop PDC controls the delay generating circuit PI to perform delay adjustment on the third pseudo-random code sequence PRBS data' generated by the second pseudo-random code generating circuit PRBS Gen2 according to the phase difference, thereby obtaining the third pseudo-random code sequence PRBS data'_delay after phase alignment.

[0036] Preferably, if Figure 3 The schematic diagram of a phase detection circuit of the present embodiment is shown. The phase detection circuit PD includes a first D flip-flop, a second D flip-flop and a third D flip-flop. The sampling clock is input to the clock end of the first D flip-flop, the third pseudo-random code sequence PRBS data' is input to the data end, and the first data is generated at the output end; the sampling clock is input to the clock end of the second D flip-flop, the first data is input to the data end, and the second data is generated at the output end; the edge sampling clock is input to the clock end of the third D flip-flop, the third pseudo-random code sequence PRBS data' is input to the data end, and the third data is generated at the output end. Among them, the sampling clocks input to the first D flip-flop and the second D flip-flop are introduced by the clock recovered by the clock data recovery circuit CDR, that is, the same as the clock used by the second pseudo-random code sequence CDR data_delay; the edge sampling clock input to the third D flip-flop is 180° apart from the sampling clock.

[0037] like Figure 4 The figure shows a timing diagram of a phase detection circuit of the present embodiment. When the first data is equal to the third data, it indicates that the sampling is advanced; when the second data is equal to the third data, it indicates that the sampling is delayed; the first data, the second data and the third data are counted to obtain the phase information, and the phase information is output to the delay generation circuit PI through a digital feedback loop to finally align the data.

[0038] Preferably, the pseudo-random code detection circuit PRBS Checker can be implemented by using a high-speed XOR gate.

[0039] like Figure 5 The figure shows the existing parallel pseudo-random code error detection and statistics circuit based on asynchronous adder, where Hold represents the shielding signal, CKB represents the error signal, DFF0~DFF M Both represent D flip-flops. Figure 5In the process of high-speed bit error counting, the multi-bit counter (i.e., adder) is an asynchronous circuit, and real-time data collection is not possible. Therefore, it is necessary to cooperate with the digital timing to complete real-time data collection, that is, first shield the signal Hold, wait for the back-end data to stabilize, and then obtain the data of the asynchronous circuit through sampling. For comparison, Figure 6 The figure shows an existing parallel pseudo-random code error detection and statistics circuit based on a carry-lookahead adder, in which a 4-bit carry-lookahead adder has surpassed the scale of a 32-bit asynchronous adder. More bits will lead to a larger scale, and the cost performance is very low.

[0040] In this embodiment, when the shielding signal Hold generated by external input or timing is input, the error detection and error statistics are suspended; after waiting for the digital sampling data, the shielding signal Hold is reset to zero and the error statistics are continued. This embodiment uses an asynchronous error statistics circuit and a shielding signal Hold to transmit real-time error rate information through a corresponding timing sequence, so that the error detection circuit and the error statistics circuit can work in a low-overhead state while acquiring data in real time, that is, the occupied area is small and the power consumption is low.

[0041] Preferably, the bit error counting circuit includes a logic circuit and an asynchronous counter, the first input end of the logic circuit is connected to the bit error signal CKB, the second input end is connected to the shielding signal Hold, and the output end is electrically connected to the asynchronous counter, so as to count the bit error signal CKB, and the shielding signal Hold can shield (pause) the bit error signal CKB from being transmitted to the asynchronous counter. More preferably, Figure 7 The figure shows a logic circuit schematic diagram of a bit error statistics circuit of the present embodiment. The logic circuit includes a NOT gate unit and a NOR gate unit. The input end of the NOT gate unit is connected to the bit error signal CKB, the output end of the NOT gate unit is electrically connected to the first input end of the NOR gate unit, the second input end of the NOR gate unit is connected to the shielding signal Hold, and the output end of the NOR gate unit is electrically connected to an asynchronous counter; the asynchronous counter includes N D flip-flops connected in series one after another, where N is a positive integer.

[0042] Preferably, the high-precision serial PRBS generation and error detection system of this embodiment also includes a digital register, the signal input end of the digital register is electrically connected to the signal output end of the error statistics circuit, and receives the error rate information transmitted in real time by the error statistics circuit based on the corresponding timing.

[0043] The premise for the normal operation of the bit error statistics circuit of this embodiment is that, since it is necessary to shield the signal Hold to temporarily suspend the bit error statistics work, the bit error information lost during this period cannot affect the final result of the final bit error rate. The bit error statistics circuit of this embodiment is a probabilistic statistics circuit, and a small amount of uncounted information does not affect the final result.

[0044] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A high-precision serial PRBS generation and error detection system, characterized in that: include: A first pseudo-random code generating circuit is configured to generate a first pseudo-random code sequence PRBS data, and obtain a second pseudo-random code sequence CDR data_delay after passing through a clock data recovery circuit; The second pseudo-random code generating circuit is configured to generate a third pseudo-random code sequence PRBS data', and detect the phase difference with the second pseudo-random code sequence CDR data_delay through the phase detection circuit, and then adjust the delay of the third pseudo-random code sequence PRBS data' according to the phase difference through the delay generating circuit to obtain a third pseudo-random code sequence PRBS data'_delay after phase alignment; the third pseudo-random code sequence PRBS data' has the same data as the first pseudo-random code sequence PRBS data, and the phase is the same or different; The pseudo-random code detection circuit is configured to detect bit errors in the second pseudo-random code sequence CDR data_delay based on the third pseudo-random code sequence PRBS data'_delay after phase alignment; The bit error statistics circuit is configured to calculate the bit error rate in real time based on the bit error detection result of the pseudo-random code detection circuit.

2. A high-precision serial PRBS generation and error detection system according to claim 1, characterized in that: When the phase detection circuit detects the phase difference between the third pseudo-random code sequence PRBS data' generated by the second pseudo-random code generating circuit and the second pseudo-random code sequence CDR data_delay recovered by the clock data recovery circuit, the delay generating circuit is controlled based on the digital feedback loop to perform delay adjustment on the third pseudo-random code sequence PRBSdata' generated by the second pseudo-random code generating circuit according to the phase difference, thereby obtaining the third pseudo-random code sequence PRBS data'_delay after phase alignment.

3. A high-precision serial PRBS generation and error detection system according to claim 1, characterized in that: The phase detection circuit comprises a first D flip-flop, a second D flip-flop and a third D flip-flop, wherein a sampling clock is input to a clock terminal of the first D flip-flop, a third pseudo-random code sequence PRBS data' is input to a data terminal, and a first data is generated at an output terminal; The clock terminal of the second D flip-flop inputs a sampling clock, the data terminal inputs first data, and the output terminal generates second data; The clock terminal of the third D flip-flop inputs an edge sampling clock, the data terminal inputs a third pseudo-random code sequence PRBS data', and the output terminal generates third data. The edge sampling clock is 180° apart from the sampling clock in phase.

4. A high-precision serial PRBS generation and error detection system according to claim 3, characterized in that: The sampling clock is introduced by a clock recovered by a clock data recovery circuit, that is, the sampling clock is the same as the clock used by the second pseudo-random code sequence CDR data_delay.

5. A high-precision serial PRBS generation and error detection system according to claim 4, characterized in that: When the first data is equal to the third data, it indicates that the sampling is advanced; when the second data is equal to the third data, it indicates that the sampling is delayed; the first data, the second data and the third data are counted to obtain phase information, and the phase information is output to the delay generation circuit through a digital feedback loop to finally align the data.

6. A high-precision serial PRBS generation and error detection system according to claim 1, characterized in that: When an external input or a timed shielding signal is input, the error detection and error statistics are suspended; after waiting for the digital sampling data, the shielding signal is reset to zero and the error statistics are continued.

7. A high-precision serial PRBS generation and error detection system according to claim 6, characterized in that: The bit error statistics circuit includes a logic circuit and an asynchronous counter. The first input end of the logic circuit is connected to the bit error signal, the second input end is connected to the shielding signal, and the output end is electrically connected to the asynchronous counter, so as to count the bit error signal; the shielding signal can shield the bit error signal from being transmitted to the asynchronous counter.

8. A high-precision serial PRBS generation and error detection system according to claim 7, characterized in that: The logic circuit includes a NOT gate unit and a NOR gate unit, the input end of the NOT gate unit is connected to a bit error signal, the output end of the NOT gate unit is electrically connected to a first input end of the NOR gate unit, the second input end of the NOR gate unit is connected to a shielding signal, and the output end of the NOR gate unit is electrically connected to the asynchronous counter.

9. A high-precision serial PRBS generation and error detection system according to claim 7, characterized in that: The asynchronous counter includes N D flip-flops connected in series one after another, where N is a positive integer.

10. A high-precision serial PRBS generation and error detection system according to claim 1, characterized in that: It also includes a digital register, a signal input end of the digital register is electrically connected to a signal output end of the bit error statistics circuit, and receives bit error rate information transmitted in real time by the bit error statistics circuit based on a corresponding timing.

Citation Information

Patent Citations

  • High-speed digital communication line error code detection device and method

    CN101771525A

  • PRBS generation and self-detection system and PRBS self-detection method

    CN117783836A

  • System and method for providing a clock and data recovery circuit with a fast bit error rate self test capability

    US7571360B1

Cited By

  • Synchronization method for multiple card insertion channels, electronic equipment and storage medium

    CN122457222A