Disclosure of Invention
In view of the above, the present invention provides a high-speed LVDS interface circuit and a chip, which can improve the working speed of the interface circuit by using a charge pump technology and a high-frequency compensation technology.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a high-speed LVDS interface circuit comprises a first charge pump circuit, a second charge pump circuit, a four-quadrant switch circuit and a common-mode feedback circuit; the four-quadrant switching circuit includes first to fourth transistors M1-M4The first charge pump circuit comprises a fifth transistor M and a sixth transistor M5、M6And a first capacitor C1The second charge pump circuit comprises a seventh transistor M and an eighth transistor M7、M8And a second capacitor C2The common mode feedback circuit comprises a first resistor R1A second resistor R2A third capacitor C3An operational amplifier OPA, a first current source I1And a second current source I2;
A first current source I1One end of the first, second, fifth and seventh crystals is connected with a voltage source, and the other end is connected with the first, second, fifth and seventh crystalsBody tube M1、M2、M5、M7Is connected to the source of (a); first transistor M1And the third transistor M3Is connected to the drain of the second transistor M2And the fourth transistor M4Is connected to the drain of the first transistor M1Source of and second transistor M2Is connected to the source of the third transistor M3And the fourth transistor M4Is connected to the source of (a); third transistor M3Is connected to the clock signal CLK, a fourth transistor M4The gate of (2) is connected with a reverse clock signal NCLK; first and third transistors M1、M3The nodes between the drains are connected to the first resistor R1And a first capacitor C1Is connected to one end of a second and a fourth transistor M2、M4The nodes between the drains are respectively connected with the second resistors R2And a second capacitor C2Is connected with one end of the connecting rod; a first resistor R1And the other end of the second resistor R2The other end of the voltage-sharing circuit is connected with a common-mode voltage VcmConnected, the forward input port of the operational amplifier OPA and the common-mode voltage VcmConnected to a negative input port and a third capacitor C3Is connected to a third capacitor C3Is connected to the output of the operational amplifier OPA and controls a second current source I2The magnitude of the current of (c); fifth and sixth transistors M5、M6Are connected to a clock signal CLK, a seventh and an eighth transistor M7、M8The grid of the grid is connected with and connected with a reverse clock signal; fifth and sixth transistors M5、M6And the drain electrodes of the first and second capacitors C1Is connected to the other end of the sixth transistor M6Is grounded, the fifth transistor M5Gate of and the first transistor M1The gate of (1) is connected; seventh and eighth transistors M7、M8And the drain electrodes of the first and second capacitors C2Is connected to the other end of the eighth transistor M8Is grounded, a seventh transistor M7And the second transistor M2The gate of (1) is connected; a first resistor R1Near the first capacitor C1One end of the positive voltage output port VOUTPTwo resistors R2Near the second capacitance C2Is a reverse voltage output port VOUTN.
A high-speed LVDS interface chip comprises the high-speed LVDS interface circuit and a packaging structure, wherein a forward voltage port corresponding to a forward voltage output port VOUTP and a reverse voltage port corresponding to a reverse voltage output port VOUTN are arranged outside the packaging structure, adjusting inductors Ind _ tune are arranged among the forward voltage output port and the forward voltage port and among the reverse voltage output port and the reverse voltage port, adjusting capacitors Ctune are arranged outside the forward voltage port and the reverse voltage port, and the adjusting inductors and the adjusting capacitors are used for performing high-frequency resonance compensation on a parasitic circuit generated by the packaging structure.
Compared with the prior art, the invention has the advantages that:
1) the traditional pre-emphasis technology needs an extra always-on current source to inject current so as to improve the interface speed. The invention adopts the charge pump technology, only charges and discharges the capacitor, and saves the power consumption.
2) The conventional interface circuit adopts miller compensation technology, and a capacitor exists in a current source path (actually, the current source is an alternating current path because the common-mode bandwidth of the circuit is low). The chip of the invention has a compensation structure, and the compensation structure has no parasitic capacitance in a signal/current source, and can improve the interface speed.
3) The compensation structure of the invention is a Q value compensation circuit, which can reduce the parasitic influence of a high-frequency chip and ensure the high-frequency performance of the interface.
4) Under the SMIC180nm process, the working speed of the chip can be improved to 2.2 GHz.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, a high-speed LVDS interface circuit includes a first charge pump circuit, a second charge pump circuit, a four-quadrant switch circuit, and a common-mode feedback circuit; the four-quadrant switching circuit includes first to fourth transistors M1-M4The first charge pump circuit comprises a fifth transistor M and a sixth transistor M5、M6And a first capacitor C1The second charge pump circuit comprises a seventh transistor M and an eighth transistor M7、M8And a second capacitor C2The common mode feedback circuit comprises a first resistor R1A second resistor R2A third capacitor C3An operational amplifier OPA, a first current source I1And a second current source I2;
A first current source I1One end of the first transistor M is connected with a voltage source, and the other end is connected with the first, second, fifth and seventh transistors M1、M2、M5、M7Is connected to the source of (a); first transistor M1And the third transistor M3Is connected to the drain of the second transistor M2And the fourth transistor M4Is connected to the drain of the first transistor M1Source of and second transistor M2Is connected to the source of the third transistor M3And the fourth transistor M4Is connected to the source of (a); third transistor M3Is connected to the clock signal CLK, a fourth transistor M4The gate of (2) is connected with a reverse clock signal NCLK; first and third transistors M1、M3The nodes between the drains are connected to the first resistor R1And a first capacitor C1Is connected to one end of a second and a fourth transistor M2、M4The nodes between the drains are respectively connected with the second resistors R2And a second capacitor C2Is connected with one end of the connecting rod; a first resistor R1And the other end of the second resistor R2The other end of the voltage-sharing circuit is connected with a common-mode voltage VcmConnected, the forward input port of the operational amplifier OPA and the common-mode voltage VcmConnected to a negative input port and a third capacitor C3Is connected to a third capacitor C3Is connected to the output of the operational amplifier OPA and controlsA second current source I2The magnitude of the current of (c); fifth and sixth transistors M5、M6Are connected to a clock signal CLK, a seventh and an eighth transistor M7、M8The grid of the grid is connected with and connected with a reverse clock signal; fifth and sixth transistors M5、M6And the drain electrodes of the first and second capacitors C1Is connected to the other end of the sixth transistor M6Is grounded, the fifth transistor M5Gate of and the first transistor M1The gate of (1) is connected; seventh and eighth transistors M7、M8And the drain electrodes of the first and second capacitors C2Is connected to the other end of the eighth transistor M8Is grounded, a seventh transistor M7And the second transistor M2The gate of (1) is connected; a first resistor R1Near the first capacitor C1One end of the positive voltage output port VOUTP and a second resistor R2Near the second capacitance C2Is a reverse voltage output port VOUTN.
The circuit employs charge pump technology. When CLK is low, current passes through transistor M1To node VOUTP and thus through resistor R1(ii) a At this time M5Opening, C1The upper plate stores positive charges, the lower plate stores negative charges, and the positive charges of the lower plate flow to the resistor R1Increasing the flow through R1Instantaneous current, the rise/fall time of the output clock can be reduced.
Specifically, when the circuit starts to operate, V from the resistorCMPort to input port of amplifier, output port of amplifier through current source and transistor M3To the resistance VCMPorts, forming a common-mode negative feedback loop, the operational amplifier being virtually short, hence VCMThe voltage is equal to 1.25V.
When CLK is low, NCLK is high, M5On, M6C to1Upper pole plate passes through M5Charging, the lower polar plate is charged with equal amount of negative charges, and the positive charges flowing out of the lower polar plate are:
Q1(+)=C1×U (1)
the positive charge flows through a resistor R1At the time from CLK low to CLK high, the charge is released as alpha Q1. α is a process-dependent coefficient.
M1、M4On, M2、M3Cut off, NCLK is high, C2The positive charge of the upper plate begins to pass through M8Relief, C2The lower plate starts to absorb positive charges (negative charges decrease). The following relationships are generally satisfied in the design:
C1=C2 (2)
so that the absorbed charge is α Q during the period from CLK low to CLK high1. Assuming parasitic capacitance C exists at VOUTP nodegThe node voltage is from U1Jump to U2The jump time satisfies the following formula:
ΔT=Cg(U1-U2)/I (3)
i is the current flowing into node VOUTP, and when no charge pump circuit is present, I is generally I1350 mA; when a charge pump circuit is present:
I=0.35+2αQ1/T (4)
in the above equation, T is the period of the clock. As is apparent from this equation, with the charge pump technique, the current flowing into the load capacitance increases, and therefore, the output clock rise/fall Δ T decrease can be obtained from equation (3).
In addition, the common mode feedback circuit in the circuit adopts a single-stage capacitance compensation technology, only the dominant pole is pushed leftwards, and the compensation mode can reduce the load capacitance on the current source path, so that the working speed is improved.
A high-speed LVDS interface chip comprises the high-speed LVDS interface circuit and a packaging structure, wherein a forward voltage port corresponding to a forward voltage output port VOUTP and a reverse voltage port corresponding to a reverse voltage output port VOUTN are arranged outside the packaging structure.
The general chip needs to connect the PAD and the chip pin, bo, through the bonding wireThe bonding wire is equivalent to an inductor, and the chip pins and the pads are equivalent to capacitors. As shown in fig. 2, the signal flows out of the VOUTP interface, CgIs parasitic capacitance of PAD and metal line, Ind1 is parasitic inductance of bonding line, CloadIs the load capacitance and R is the load impedance. When the output clock signal jumps, the inductor and the capacitor are used as energy storage elements and can be charged and discharged to a certain degree, backflow is generated, the change of the clock signal is blocked, and the quality of the output signal is reduced. The parasitic circuit deteriorates signal rise and fall time at high frequency, and causes a series of problems such as signal overshoot.
Therefore, adjusting inductors Ind _ tune can be arranged between the forward voltage output port and the forward voltage port and between the reverse voltage output port and the reverse voltage port, adjusting capacitors Ctune can be arranged outside the forward voltage port and the reverse voltage port, and the parasitic circuit generated by the packaging structure is subjected to high-frequency resonance compensation by using the adjusting inductors and the adjusting capacitors.
As shown in fig. 3, the inductance L ═ C of Ind _ tune is obtained by the above compensation structuregAnd in the circuit:
C=Cload+Cg (5)
from VOUTP, the output equivalent load is:
in the above formula L1Is the inductance value of Ind1, W represents the signal corner frequency, and j represents the imaginary number.
When R is relatively small, the above formula is equivalent to:
the resonant frequency and the Q value satisfy the following formula:
when the time domain signal is passed through the impedance represented by equation (7), there are:
in the above formula, T is 1/(W)0/2/pi)。
Usually, the Q value is 0.5, and the signal overshoot and rise/fall time are well balanced. Thus Q is 1/(W)0RC) is 0.5, when inductance value L of Ind _ tune is Cg,
The capacitance value of Ctune satisfies the following formula:
the circuit can obtain good high-frequency performance.