Pam4 signal linearity correction method and system
By generating a reference voltage and calculating the correction coefficients using a fitted logic model, the digital logic corrects the V1 and V2 levels of the PAM4 signal, solving the problems of hardware area and adaptive correction in existing technologies, and achieving fast and low-cost linear correction of the PAM4 signal.
Patent Information
- Application Number
- CN202611643951.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
Existing PAM4 signal correction methods cannot simultaneously achieve low hardware area, no channel bandwidth loss, full swing adaptation, and fast correction, making it difficult to guarantee transmission BER (bit/response ratio).
By generating positive and negative reference voltages, the proportional coefficient k of the nonlinear distortion of the DAC circuit is determined. The correction coefficient is calculated using the fitted logic model, and the digital logic corrects the V1 and V2 levels to ensure that the levels are evenly distributed.
It achieves fast and low-cost full-domain linear correction of PAM4 signals without affecting the high-speed performance of analog DACs, ensuring BER performance.
Smart Images

Figure CN123144757A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of high-speed interface technology, and more specifically, to a PAM4 signal linearity correction method and system. Background Technology
[0002] With the increasing bandwidth demands of high-speed communication and Ethernet protocols, four-level pulse amplitude modulation (PAM4) is gradually replacing traditional two-level NRZ modulation, becoming the mainstream solution for high-speed SerDes transceiver links. At the same baud rate, PAM4 doubles the channel transmission capacity and is widely used in high-speed differential interfaces of 56G and above. The PAM4 transmitter (TX) typically uses a DAC (digital-to-analog converter) to generate the signal level. Mainstream DAC architectures include SST source-serial type, CML current-mode logic type, and SST / CML hybrid architecture.
[0003] Figure 1 This is a block diagram of the output stage of a standard PAM4 transmitter (TX). The transmitter includes a link layer, a digital logic core, and a digital-to-analog converter. The link layer outputs PAM4 four-level logic code (e.g., differential levels -3 / -1 / 1 / 3) to the digital logic core, which converts the four-level logic code into n-bit binary code (e.g., bit). <n-1:0>The signal is fed into the digital-to-analog converter, which outputs a differential PAM4 analog signal. Figure 2 This is a schematic diagram of the SST type analog DAC output circuit of a standard PAM4. This SSTDAC consists of multiple units (X1, X2 to X3) with switches and series resistors R. n- ¹) The unit is arranged from least significant bit to most significant bit, generating differential output positive and negative signals with external termination resistors; the digital logic core performs code value conversion based on the programmable output swing S, using n-bit binary code (e.g., bit). <n-1:0>The corresponding binary intermediate code b'100…0 serves as the common-mode reference voltage. Combined with the configuration swing amplitude S, it is divided into , , , Four sets of output differential levels. Figure 3 For an ideal PAM4 linear eye diagram, under ideal conditions, the four levels V0, V1, V2, and V3 are uniformly distributed, the spacing between adjacent levels is S / 3, and the three sets of eye heights are equal. Figure 4 This is a schematic diagram of the input-output relationship of an ideal DAC circuit. The horizontal axis represents the input code, and the vertical axis represents the output voltage. With b'100…0 as the midpoint, the curve is a straight line passing through the midpoint, representing the strict linearity between the input code and the output voltage of the ideal DAC. Figure 6 This diagram illustrates the input-output relationship of a DAC circuit after linearity degradation. The horizontal axis represents the input code, and the vertical axis represents the output voltage. With b'100…0 as the midpoint, the curve is S-shaped, with the middle section being approximately linear and the two ends exhibiting saturation curvature, indicating nonlinear distortion in the actual DAC output. Combined with… Figure 3 , Figure 4 , Figure 6 In an ideal link, the DAC input code and output voltage remain linear, and the PAM4 four levels are evenly distributed; however, the nonlinear characteristics of a real DAC will cause the PAM4 level to shift.
[0004] The PAM4 transmitter linearity (RLM) requirement is no less than 95%. Due to the non-ideal effects of the DAC, the output level spacing may shift. Figure 5 This is the actual eye diagram of PAM4 with nonlinear distortion. (Comparison) Figure 3 Ideal eye diagram Figure 5 The spacing between V1 and V2 levels decreases, while the spacing between V0 and V1, and between V2 and V3 increases. The eye height in the middle is greater than that of the upper and lower eye groups. After high-speed channel attenuation, the distorted eye diagram shrinks further, and the bit error rate (BER) at the receiver deteriorates. Therefore, RLM linearity correction is required at the PAM4 transmitter. To meet the fine voltage adjustment requirements of TXFIR equalization for 56G and above protocols, the DAC voltage adjustment accuracy needs to be within 10mV. The differential peak-to-peak swing is typically 600mV to 1200mV. The PAM4 output DAC must be at least 6-bit, with 7-8-bit high-precision DACs being the industry mainstream. High-bit-width DACs support RLM correction through digital logic.
[0005] Different DAC architectures have different nonlinear mechanisms, but all of them will degrade the output linearity. In CML-type DACs (pure CML, SST / CML hybrid), under large swing conditions, the tail current source MOSFET is prone to leaving the saturation region, and the output current deviates with the voltage, resulting in uneven distribution of the four levels. The nonlinearity is aggravated as the output swing increases. Figure 2 Although the pure SSTDAC has no tail current source nonlinearity, the on-resistance of the switching MOS is related to the drain voltage. The on-resistance is different for different code values, which also causes level shift and RLM drop. Simulation of the full code scan of the 7-bit DAC shows that when scanning the input code 0~127, the differential output curve is convex and nonlinear. The larger the swing, the greater the linear deviation. The distortion is symmetrical about the common-mode voltage.
[0006] Existing calibration schemes are divided into analog calibration and digital adaptive calibration. Analog calibration has high hardware costs, poor swing adjustment flexibility, and attenuates high-speed signal bandwidth, so it is now rarely used, and digital adaptive calibration has become the mainstream. Existing digital schemes mainly include fixed non-adaptive calibration and on-chip ADC full-range measurement calibration. Both have drawbacks: fixed calibration schemes pre-measure chip nonlinearity and write fixed correction coefficients, which cannot adapt to changes in process angle, voltage, temperature, and output swing, and are difficult to stably meet the RLM≥95% specification; on-chip ADC full-range measurement calibration acquires the output voltage code by code through the ADC or DAC mirror circuit and reconstructs the code-voltage mapping to achieve calibration, but connecting the ADC to a high-speed channel will introduce load and degrade bandwidth and eye diagram; the number of DAC mirror units increases exponentially with the bit width, resulting in large chip area overhead; full code acquisition and mapping reconstruction are time-consuming and cannot meet the real-time calibration requirements of high-speed links.
[0007] In summary, existing digital adaptive correction schemes struggle to simultaneously achieve low hardware area overhead, no channel bandwidth loss, full-swing adaptability, and rapid correction. There is an urgent need in this field for a correction scheme that eliminates the need for an ADC, minimizes chip footprint, does not compromise high-speed channel performance, and can adaptively generate correction coefficients based on chip technology, operating environment, and programmable swing, thereby rapidly completing full-domain linear correction of PAM4 signals' RLM and ensuring transmission BER (bit / response ratio). Summary of the Invention
[0008] In view of the above problems, the purpose of this invention is to provide a PAM4 signal linearity correction method and system to solve the problem that existing PAM4 signal correction methods cannot simultaneously achieve low hardware area and adaptive correction.
[0009] The PAM4 signal linearity correction method provided by this invention is applied to the DAC circuit of a PAM4 transmitter with a bit width of not less than 6 bits; wherein the four output levels of the DAC circuit are V0 level, V1 level, V2 level, and V3 level; the correction method includes: A positive first reference voltage, a positive second reference voltage, a negative first reference voltage, and a negative second reference voltage are generated based on a preset voltage comparison circuit. The proportional coefficient k reflecting the nonlinear distortion of the DAC circuit is determined by the positive first reference voltage and the positive second reference voltage, or by the negative first reference voltage and the negative second reference voltage. The scaling factor k is processed by a preset fitting logic model to determine the first correction factor for V2 level and the second correction factor for V1 level. The V2 level is corrected by the first correction coefficient, and the V1 level is corrected by the second correction coefficient, so that the V0, V1, V2 and V3 levels are evenly distributed.
[0010] Alternatively, the first forward reference voltage can be the highest forward voltage, the second forward reference voltage can be the second highest forward voltage, and the highest forward voltage can be three times the second highest forward voltage; and / or, The first negative reference voltage is the lowest negative voltage, the second negative reference voltage is the second lowest negative voltage, and the lowest negative voltage is three times the second lowest negative voltage.
[0011] Alternatively, the voltage comparison circuit may include a mirror detection circuit, which includes a first mirror unit and a second mirror unit; wherein the first mirror unit is used to generate a positive first reference voltage and a negative first reference voltage; and the second mirror unit is used to generate a positive second reference voltage and a negative second reference voltage.
[0012] Alternatively, the voltage comparison circuit may also include a voltage divider branch, a comparator, and logic circuitry; among which, The process of determining the proportional coefficient k, which reflects the nonlinear distortion of the DAC circuit, based on a preset voltage comparison circuit using a positive first reference voltage and a positive second reference voltage includes: configuring a voltage divider branch to generate a first adjustable comparison voltage based on the positive first reference voltage and the positive second reference voltage; inputting the first adjustable comparison voltage and the positive second reference voltage into a comparator; iteratively adjusting the voltage division ratio of the voltage divider branch through logic circuitry until the comparator determines that the first adjustable comparison voltage is equal to the positive second reference voltage; the corresponding voltage division ratio at this point is the proportional coefficient k. The process of determining the proportional coefficient k, which reflects the nonlinear distortion of the DAC circuit, based on a preset voltage comparison circuit using a negative first reference voltage and a negative second reference voltage includes: configuring a voltage divider branch to generate a second adjustable comparison voltage based on the ratio of the negative first reference voltage and the negative second reference voltage; inputting the second adjustable comparison voltage and the negative second reference voltage into a comparator; iteratively adjusting the voltage division ratio of the voltage divider branch through logic circuitry until the comparator determines that the second adjustable comparison voltage is equal to the negative second reference voltage; the corresponding voltage division ratio at this point is the proportional coefficient k.
[0013] Alternatively, the fitting logic model can be configured with a fitting curve equation; and the process of processing the scaling factor k through the preset fitting logic model to determine the first correction factor for V2 level and the second correction factor for V1 level includes: Substituting the proportional coefficient k into the fitted curve equation, the first correction coefficient for V2 level and the second correction coefficient for V1 level are solved using the fitted curve equation; where... The fitted curve equation is f(x) = -ax² + bx; where a and b are positive numbers.
[0014] Alternatively, the coefficients of the fitted curve equation can be derived as follows:
[0015] In the formula, m=3, To find the maximum range of the DAC circuit, substituting 'a' into the fundamental polynomial yields the global voltage fitting function equation:
[0016] The first correction coefficient for level V2 and the second correction coefficient for level V1 are calculated based on the global voltage fitting function equation.
[0017] On the other hand, the present invention also provides a PAM4 signal linearity correction system, comprising: a proportional coefficient determination module, a correction coefficient determination module, and a level correction module; wherein, The proportional coefficient determination module is used to generate a positive first reference voltage, a positive second reference voltage, a negative first reference voltage, and a negative second reference voltage, and to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit based on the positive first reference voltage and the positive second reference voltage, or to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit based on the negative first reference voltage and the negative second reference voltage, based on the preset voltage comparison circuit. The correction coefficient determination module is used to process the proportional coefficient k through a preset fitting logic model to determine the first correction coefficient for V2 level and the second correction coefficient for V1 level. The level correction module is used to correct the V2 level by a first correction coefficient and the V1 level by a second correction coefficient, so that the V0 level, V1 level, V2 level and V3 level are equally spaced.
[0018] Alternatively, the scaling factor determination module may include a mirror reference voltage generation unit and a scaling factor solution logic unit; wherein, The mirror reference voltage generation unit is used to generate a positive first reference voltage, a negative first reference voltage, a positive second reference voltage, and a negative second reference voltage; The proportional coefficient calculation logic unit is used to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit through the positive first reference voltage and the positive second reference voltage, or through the negative first reference voltage and the negative second reference voltage.
[0019] Alternatively, the proportional coefficient calculation logic unit may include a comparison voltage generation subunit, a comparison subunit, and an iterative adjustment logic subunit; wherein, The comparison voltage generation subunit is used to generate a first adjustable comparison voltage based on a voltage divider branch configured with a positive first reference voltage and a positive second reference voltage; or, it is used to generate a second adjustable comparison voltage based on a voltage divider branch configured with a negative first reference voltage and a negative second reference voltage. The comparison subunit is used to compare the first adjustable comparison voltage with the positive second reference voltage; or, to compare the second adjustable comparison voltage with the negative second reference voltage. The iterative adjustment logic subunit is used to iteratively adjust the voltage division ratio of the voltage divider branch until the first adjustable comparison voltage is equal to the positive second reference voltage. The corresponding voltage division ratio at this time is the proportional coefficient k.
[0020] Compared with existing technologies, the above-mentioned linearity correction method and system based on PAM4 signals have the following advantages: First, a reference voltage is used to determine the proportional coefficient k, which reflects the nonlinear distortion of the DAC circuit. Then, the proportional coefficient is processed through a preset fitting logic model to determine the correction coefficient. Finally, the level is corrected through the correction coefficient to achieve linearity correction of the PAM4 signal. This scheme does not process the analog output DAC, but uses digital logic correction entirely, which does not affect the high-speed performance of the analog DAC.
[0021] To achieve the foregoing and related objectives, one or more aspects of the invention include the features which will be described in detail below and specifically pointed out in the claims. The following description and accompanying drawings illustrate certain exemplary aspects of the invention. However, these aspects indicate only a few of the various ways in which the principles of the invention can be used. Furthermore, the invention is intended to include all such aspects and their equivalents. Attached Figure Description
[0022] Other objects and results of the invention will become more apparent and readily understood with reference to the following description taken in conjunction with the accompanying drawings and the contents of the claims, and with a more complete understanding of the invention. In the drawings: Figure 1 This is a schematic diagram of the existing conventional PAM4 output stage (TX). Figure 2 This is a schematic diagram of a common analog DAC output scheme for a conventional PAM4. Figure 3 Eye diagram for ideal PAM4 linearity; Figure 4 A schematic diagram of the input-output relationship of an ideal DAC circuit; Figure 5 Eye diagram of PAM4 linearity after linearity degradation; Figure 6 This is a schematic diagram of the input-output relationship of a DAC circuit after linearity degradation. Figure 7 This is a conceptual diagram illustrating the correction of the PAM4 signal linearity correction method for the PAM4 output stage (TX) according to an embodiment of the present invention. Figure 8 This is a conceptual diagram illustrating the correction of the input-output relationship of a DAC circuit using the PAM4 signal linearity correction method provided in an embodiment of the present invention. Figure 9 This is a raw image of a PAM4 signal focused on the upper half, according to an embodiment of the present invention. Figure 10 This is a schematic diagram of signal correction focusing on the upper half of the PAM4 signal according to an embodiment of the present invention; Figure 11 This is a schematic diagram showing the comparison of the signal before and after correction, focusing on the upper half of the PAM4 signal according to an embodiment of the present invention; Figure 12 This is an internal logic diagram of a correction circuit provided according to an embodiment of the present invention; Figure 13 This is an internal logic diagram of a voltage comparison circuit provided according to an embodiment of the present invention. Detailed Implementation
[0023] In the following description, numerous specific details are set forth for illustrative purposes and to provide a thorough understanding of one or more embodiments. However, it will be apparent that these embodiments may also be implemented without these specific details. In other instances, well-known structures and devices are shown in block diagram form for ease of description of one or more embodiments.
[0024] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. The terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, unless otherwise explicitly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0025] Before detailing the specific process of the PAM4 signal linearity correction method provided by this invention, a brief introduction to the concept of the PAM4 signal linearity correction method provided by this invention will be given first. Figure 7 A schematic diagram of the PAM4 signal linearity correction method provided in an embodiment of the present invention is shown for the correction of the PAM4 output stage (TX). Figure 8 This diagram illustrates a conceptual design for correcting the input-output relationship of a DAC circuit using the PAM4 signal linearity correction method provided in an embodiment of the present invention. Figure 7 and Figure 8 As can be seen, the solution provided by this invention achieves PAM4 signal linearity correction by adding a correction circuit to the TX circuit; specifically, based on the original common-mode input of b'100…000, +S generates V3, +S / 3 generates V2, -S / 3 generates V1, and -S generates V0, for a total of four output levels, which are generated by… Figure 8 It can be seen that the output swing difference (i.e., the three eye heights of PAM4) is small at the top and bottom, and large in the middle; therefore, it is necessary to... Figure 7 By adding a correction circuit to the digital logic, the positions of V1 and V2 are adjusted, thereby making the four output levels equally distributed.
[0026] The PAM4 signal linearity correction method provided by this invention will be described in detail below. Figure 9 This diagram shows the original signal image focused on the upper half of the PAM4 signal according to an embodiment of the present invention. Figure 10 This diagram illustrates signal correction focusing on the upper half of a PAM4 signal according to an embodiment of the present invention. Figure 11 This is a schematic diagram showing a comparison of the signal before and after correction, focusing on the upper half of the PAM4 signal according to an embodiment of the present invention. Figure 12 This is an internal logic diagram of the correction circuit provided according to an embodiment of the present invention. Figure 13 This is an internal logic diagram of a voltage comparison circuit provided according to an embodiment of the present invention.
[0027] Combination Figures 9 to 13 It is understood that the PAM4 signal linearity correction method provided by this invention is applied to the DAC circuit of a PAM4 transmitter with a bit width of not less than 6 bits; wherein, the four output levels of the DAC circuit are V0 level, V1 level, V2 level, and V3 level; the correction method includes: A positive first reference voltage, a positive second reference voltage, a negative first reference voltage, and a negative second reference voltage are generated based on a preset voltage comparison circuit. The proportional coefficient k reflecting the nonlinear distortion of the DAC circuit is determined by the positive first reference voltage and the positive second reference voltage, or by the negative first reference voltage and the negative second reference voltage. The scaling factor k is processed by a preset fitting logic model to determine the first correction factor for V2 level and the second correction factor for V1 level. The V2 level is corrected by the first correction coefficient, and the V1 level is corrected by the second correction coefficient, so that the V0, V1, V2 and V3 levels are evenly distributed.
[0028] Specifically, for the upper half of the PAM4 signal, the first positive reference voltage is preferably selected as the highest positive voltage, and the second positive reference voltage is preferably selected as the second highest positive voltage, with the highest positive voltage preferably being three times the second highest positive voltage. For the lower half of the PAM4 signal, the first negative reference voltage is preferably selected as the lowest negative voltage, and the second negative reference voltage is preferably selected as the second lowest negative voltage, with the lowest negative voltage preferably being three times the second lowest negative voltage. It should be noted that in practical applications, since most high-speed PAM4 signals are differential signals, the nonlinear effects are mostly symmetrical around Vmin. Therefore, in practical applications, if the high-speed PAM4 signal is a differential signal, the first correction coefficient for the V2 level can be determined using only the first and second positive reference voltages. The V2 level is then corrected using this first correction coefficient, and finally, the V1 level can be corrected based on the symmetry.
[0029] Specifically, to realize the various functions of the voltage comparison circuit, the voltage comparison circuit includes a mirror detection circuit, which includes a first mirror unit and a second mirror unit; wherein, the first mirror unit is used to generate a positive first reference voltage and a negative first reference voltage; and the second mirror unit is used to generate a positive second reference voltage and a negative second reference voltage.
[0030] In addition, the voltage comparison circuit also includes a voltage divider branch, a comparator, and a logic circuit. The process of determining the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit based on the preset voltage comparison circuit through a positive first reference voltage and a positive second reference voltage includes: configuring the voltage divider branch to generate a first adjustable comparison voltage based on the positive first reference voltage and the positive second reference voltage; inputting the first adjustable comparison voltage and the positive second reference voltage into the comparator; iteratively adjusting the voltage division ratio of the voltage divider branch through the logic circuit until the comparator determines that the first adjustable comparison voltage is equal to the positive second reference voltage; the corresponding voltage division ratio at this time is the proportional coefficient k.
[0031] The process of determining the proportional coefficient k, which reflects the nonlinear distortion of the DAC circuit, based on a preset voltage comparison circuit using a negative first reference voltage and a negative second reference voltage includes: configuring a voltage divider branch to generate a second adjustable comparison voltage based on the ratio of the negative first reference voltage and the negative second reference voltage; inputting the second adjustable comparison voltage and the negative second reference voltage into a comparator; iteratively adjusting the voltage division ratio of the voltage divider branch through logic circuitry until the comparator determines that the second adjustable comparison voltage is equal to the negative second reference voltage; the corresponding voltage division ratio at this point is the proportional coefficient k.
[0032] Furthermore, to determine the positive coefficients, the fitting logic model is configured with a fitting curve equation; and the process of processing the proportional coefficients through the preset fitting logic model to determine the first correction coefficient for V2 level and the second correction coefficient for V1 level includes: Substituting the proportional coefficient k into the fitted curve equation, the first correction coefficient for V2 level and the second correction coefficient for V1 level are solved using the fitted curve equation; where... The fitted curve equation is f(x) = -ax² + bx; where a and b are positive numbers.
[0033] Furthermore, the derivation formula for the coefficients of the fitted curve equation is as follows:
[0034] In the formula, m=3, S_max is the maximum range of the DAC circuit, and substituting a into the basic polynomial (such as F(x)=-ax²+bx) yields the global voltage fitting function equation as follows:
[0035] The first correction coefficient for level V2 and the second correction coefficient for level V1 are calculated based on the global voltage fitting function equation.
[0036] It should be noted that, for ease of explanation, the solution provided by this invention can be entirely focused on the upper half of the PAM4 signal. Since most high-speed PAM4 signals are differential signals, the nonlinear effect is symmetrical about Vmin. Furthermore, even for single-ended PAM4 signals, the nonlinearity caused by non-ideal effects such as the tail current source entering the linear region generally exhibits a symmetrical shape. The lower half can be derived similarly and will not be elaborated further. Therefore, the focus is on... Figure 8 We will analyze the right half of the graph, and for the sake of mathematical simplicity, we will set the center point b'100…00 of the horizontal coordinate to 0.
[0037] The process of the PAM4 signal linearity correction method provided by the present invention will be described in detail below by way of examples, such as Figure 9 As shown, if the configured swing S is the maximum value of the DAC range, and B is the highest point of the swing, then the horizontal coordinate X(B) on the output voltage line is the maximum settable swing value Smax, i.e. At point A, the second highest point, is a point on the output voltage line with an abscissa of X(A) = X(B) / m. Its swing ratio Y(B) / Y(A) should be m under ideal linearity. However, due to non-ideal linearity, it has decreased to k. Clearly, k... <m。
[0038] The curve is fitted using the formula Y=F(X), which is valid within the range of the transformed x-axis (from 0 to...). Within a given point (a), the following conditions must be met: continuous and continuously differentiable, with a positive first derivative and a negative second derivative. Subsequently, the coefficients of the equation can be calculated using the origin, the second highest point A, and the highest point B. Specifically, the fitted equation can be f(x) = -ax^2 + bx, where a and b are positive numbers.
[0039] Since f(X(B)) = k f(X(A)), therefore F[Smax]=k f[Smax / m], This leads to the conclusion that a = b (1-k / m) / Smax / (1-k / m²), This leads to the conclusion that: F(x) = -[b (1-k / m) / Smax / (1-k / m^2)]x^2+bx (Formula 1) If the final swing amplitude input is S, then F(X(V3)) = F(S) = 3 F[X(V2')] Substituting into Formula 1, we get: [(1-k / m) / Smax / (1-k / m²)]X(V2')²-X(V2')= {[(1-k / m) / Smax / (1-k / m²)]S²-S} / 3 From this, the horizontal coordinate of V2' can be solved, which is the first correction coefficient of the V2 level. Figure 7 The correction circuit in the middle calculates the correction amount using the above algorithm, and then passes this correction amount to the digital core. The digital core can then perform the relevant corrections when outputting V1 and V2.
[0040] On the other hand, the present invention also provides a PAM4 signal linearity correction system, comprising: a proportional coefficient determination module, a correction coefficient determination module, and a level correction module; wherein, The proportional coefficient determination module is used to generate a positive first reference voltage, a positive second reference voltage, a negative first reference voltage, and a negative second reference voltage, and to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit based on the positive first reference voltage and the positive second reference voltage, or, based on the negative first reference voltage and the negative second reference voltage, to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit. The correction coefficient determination module is used to process the proportional coefficient k through a preset fitting logic model to determine the first correction coefficient for V2 level and the second correction coefficient for V1 level. The level correction module is used to correct the V2 level by a first correction coefficient and the V1 level by a second correction coefficient, so that the V0 level, V1 level, V2 level and V3 level are equally spaced.
[0041] Alternatively, the scaling factor determination module may include a mirror reference voltage generation unit and a scaling factor solution logic unit; wherein, The mirror reference voltage generation unit is used to generate a positive first reference voltage, a negative first reference voltage, a positive second reference voltage, and a negative second reference voltage; The proportional coefficient calculation logic unit is used to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit through the positive first reference voltage and the positive second reference voltage, or through the negative first reference voltage and the negative second reference voltage.
[0042] Alternatively, the proportional coefficient calculation logic unit may include a comparison voltage generation subunit, a comparison subunit, and an iterative adjustment logic subunit; wherein, The comparison voltage generation subunit is used to generate a first adjustable comparison voltage based on a voltage divider branch configured with a positive first reference voltage and a positive second reference voltage; or, it is used to generate a second adjustable comparison voltage based on a voltage divider branch configured with a negative first reference voltage and a negative second reference voltage. The comparison subunit is used to compare the first adjustable comparison voltage with the positive second reference voltage; or, to compare the second adjustable comparison voltage with the negative second reference voltage. The iterative adjustment logic subunit is used to iteratively adjust the voltage division ratio of the voltage divider branch until the first adjustable comparison voltage is equal to the positive second reference voltage. The corresponding voltage division ratio at this time is the proportional coefficient k. Alternatively, it is used to iteratively adjust the voltage division ratio of the voltage divider branch until the second adjustable comparison voltage is equal to the negative second reference voltage. The corresponding voltage division ratio at this time is the proportional coefficient k.
[0043] Compared with existing technologies, the above-mentioned linearity correction method and system based on PAM4 signals have the following advantages: 1. No processing is performed on the analog output DAC; the correction is entirely based on digital logic, which does not affect the high-speed performance of the analog DAC. 2. The calibration circuit can use as few as four mirror units to generate relevant voltages and calculate the fitting coefficients, which is far less area than using a full-fledged output DAC mirror circuit. Furthermore, it only requires comparing the ratios and does not require an ADC circuit to test the accurate voltage values. The calibration circuit is relatively simple and easy to implement. 3. The scheme that uses the mirrored element fitting formula and takes the swing amplitude S as input to calculate the correction amount is more flexible than the correction scheme that directly gives a fixed correction.
[0044] As per the above reference Figures 7 to 13 The PAM4 signal linearity correction method and system according to the present invention are described by way of example. However, those skilled in the art should understand that various modifications can be made to the PAM4 signal linearity correction method and system proposed in the present invention without departing from the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the content of the appended claims.
Claims
1. A method for linearity correction of PAM4 signals, characterized in that, A DAC circuit applied to the transmitter of a PAM4 transmitter with a bit width of not less than 6 bits; wherein the four output levels of the DAC circuit are V0 level, V1 level, V2 level, and V3 level; the correction method includes: A positive first reference voltage, a positive second reference voltage, a negative first reference voltage, and a negative second reference voltage are generated based on a preset voltage comparison circuit. The proportional coefficient k reflecting the nonlinear distortion of the DAC circuit is determined by the positive first reference voltage and the positive second reference voltage, or by the negative first reference voltage and the negative second reference voltage. The scaling factor k is processed by a preset fitting logic model to determine the first correction factor for V2 level and the second correction factor for V1 level. The V2 level is corrected by the first correction coefficient, and the V1 level is corrected by the second correction coefficient, so that the V0, V1, V2 and V3 levels are evenly distributed.
2. The PAM4 signal linearity correction method as described in claim 1, characterized in that, The first forward reference voltage is the highest forward voltage, the second forward reference voltage is the second highest forward voltage, and the highest forward voltage is three times the second highest forward voltage: and / or, The first negative reference voltage is the lowest negative voltage, the second negative reference voltage is the second lowest negative voltage, and the lowest negative voltage is three times the second lowest negative voltage.
3. The PAM4 signal linearity correction method as described in claim 2, characterized in that, The voltage comparison circuit includes a mirror detection circuit, which includes a first mirror unit and a second mirror unit; wherein, the first mirror unit is used to generate a positive first reference voltage and a negative first reference voltage; and the second mirror unit is used to generate a positive second reference voltage and a negative second reference voltage.
4. The PAM4 signal linearity correction method as described in claim 3, characterized in that, The voltage comparison circuit also includes a voltage divider branch, a comparator, and logic circuitry; among which, The process of determining the proportional coefficient k, which reflects the nonlinear distortion of the DAC circuit, based on a preset voltage comparison circuit using a positive first reference voltage and a positive second reference voltage includes: configuring a voltage divider branch to generate a first adjustable comparison voltage based on the positive first reference voltage and the positive second reference voltage; inputting the first adjustable comparison voltage and the positive second reference voltage into a comparator; iteratively adjusting the voltage division ratio of the voltage divider branch through logic circuitry until the comparator determines that the first adjustable comparison voltage is equal to the positive second reference voltage; the corresponding voltage division ratio at this point is the proportional coefficient k. The process of determining the proportional coefficient k, which reflects the nonlinear distortion of the DAC circuit, based on a preset voltage comparison circuit using a negative first reference voltage and a negative second reference voltage includes: configuring a voltage divider branch to generate a second adjustable comparison voltage based on the ratio of the negative first reference voltage and the negative second reference voltage; inputting the second adjustable comparison voltage and the negative second reference voltage into a comparator; iteratively adjusting the voltage division ratio of the voltage divider branch through logic circuitry until the comparator determines that the second adjustable comparison voltage is equal to the negative second reference voltage; the corresponding voltage division ratio at this point is the proportional coefficient k.
5. The PAM4 signal linearity correction method as described in claim 4, characterized in that, The fitting logic model is configured with a fitting curve equation; and the process of processing the scaling factor k through the preset fitting logic model to determine the first correction factor for V2 level and the second correction factor for V1 level includes: Substituting the proportional coefficient k into the fitted curve equation, the first correction coefficient for V2 level and the second correction coefficient for V1 level are solved using the fitted curve equation; where... The fitted curve equation is f(x) = -ax² + bx; where a and b are positive numbers, and x is the input variable.
6. The PAM4 signal linearity correction method as described in claim 5, characterized in that, The derivation formula for the coefficients of the fitted curve equation is as follows: In the formula, m=3, To find the maximum range of the DAC circuit, substituting 'a' into the fundamental polynomial yields the global voltage fitting function equation: The first correction coefficient for level V2 and the second correction coefficient for level V1 are calculated based on the global voltage fitting function equation.
7. A PAM4 signal linearity correction system, characterized in that, include: The module includes a proportional coefficient determination module, a correction coefficient determination module, and a level correction module; among which, The proportional coefficient determination module is used to generate a positive first reference voltage, a positive second reference voltage, a negative first reference voltage, and a negative second reference voltage, and to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit based on the positive first reference voltage and the positive second reference voltage, or to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit based on the negative first reference voltage and the negative second reference voltage, based on the preset voltage comparison circuit. The correction coefficient determination module is used to process the proportional coefficient k through a preset fitting logic model to determine the first correction coefficient for V2 level and the second correction coefficient for V1 level. The level correction module is used to correct the V2 level by a first correction coefficient and the V1 level by a second correction coefficient, so that the V0 level, V1 level, V2 level and V3 level are equally spaced.
8. The PAM4 signal linearity correction system as described in claim 7, characterized in that, The scaling factor determination module includes a mirror reference voltage generation unit and a scaling factor solution logic unit; wherein, The mirror reference voltage generation unit is used to generate a positive first reference voltage, a negative first reference voltage, a positive second reference voltage, and a negative second reference voltage; The proportional coefficient calculation logic unit is used to determine the proportional coefficient k reflecting the nonlinear distortion of the DAC circuit through the positive first reference voltage and the positive second reference voltage, or through the negative first reference voltage and the negative second reference voltage.
9. The PAM4 signal linearity correction system as described in claim 8, characterized in that, The proportional gain calculation logic unit includes a comparison voltage generation subunit, a comparison subunit, and an iterative adjustment logic subunit; among which, The comparison voltage generation subunit is used to generate a first adjustable comparison voltage based on a voltage divider branch configured with a positive first reference voltage and a positive second reference voltage; or, it is used to generate a second adjustable comparison voltage based on a voltage divider branch configured with a negative first reference voltage and a negative second reference voltage. The comparison subunit is used to compare the first adjustable comparison voltage with the positive second reference voltage; or, to compare the second adjustable comparison voltage with the negative second reference voltage. The iterative adjustment logic subunit is used to iteratively adjust the voltage division ratio of the voltage divider branch until the first adjustable comparison voltage is equal to the positive second reference voltage. The corresponding voltage division ratio at this time is the proportional coefficient k.
