An adaptive calibrable ODT circuit for FPGA
By designing an adaptively calibrated ODT circuit in the FPGA, and using the current mirror unit and calibration module to realize adaptive adjustment and calibration of the terminal resistance, the problem of unstable impedance matching of existing ODT circuits when PVT and signal voltage changes is solved. , improves signal transmission quality.
Patent Information
- Application Number
- CN201911398719.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-30
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2039-12-30
AI Technical Summary
When existing ODT circuits face PVT changes and transmission signal voltage changes, it is difficult to maintain the stability of impedance matching, affecting the signal transmission quality.
An adaptively calibrated ODT circuit is designed, including an ODT circuit module, a first calibration module and a second calibration module. Through the current mirror unit, reference resistor, comparator and control unit, adaptive adjustment and calibration of the terminal resistor are achieved to ensure the stability of impedance matching.
The ODT circuit automatically adjusts the circuit current when the transmission signal voltage changes, keeps the impedance of the terminal matching resistor unchanged, reduces the impact of PVT on impedance, and improves the signal transmission quality.
Smart Images

Figure CN111077938B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of high-speed interfaces of FPGAs, and in particular relates to an adaptive calibrable ODT circuit applied to FPGAs. Background Art
[0002] FPGA is a logic device composed of many logic units, including gates, lookup tables and triggers. It has rich hardware resources, powerful parallel processing capabilities and flexible reconfiguration capabilities, and has been increasingly widely used in many fields such as data processing, communication, and networking.
[0003] With the development of integrated circuits, the interface transmission speed is getting higher and higher. When the transmitter and the receiver communicate at high speed, because the transmission line has a characteristic impedance, a matching resistor equal to the characteristic impedance of the transmission line will be connected to the input end of the receiver side to reduce signal reflection and ensure the quality of signal transmission. The ODT (On Die Termination) circuit integrates the off-chip matching resistor inside the chip to achieve impedance matching. There are two circuit forms of impedance matching, such as Figure 1a-1b As shown, one is to connect the input terminal to vccio / 2 with a pull-up resistor, and the other is to connect both pull-up and pull-down resistors, and the pull-up resistor is connected to the power supply vccio, and the pull-down resistor is grounded, and finally the Thevenin equivalent circuit is used as the impedance matching. Usually, the matching impedance of the ODT circuit will be affected by PVT (process error, application voltage factor and application temperature factor in the chip manufacturing process) and the voltage change of the interface transmission signal, resulting in changes in its resistance value. How to provide stable and accurate impedance matching has become a difficulty in ODT. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, the present invention provides an adaptive calibrated ODT circuit applied to FPGA. The technical problem to be solved by the present invention is achieved by the following technical solution:
[0005] The present invention provides an adaptive calibrable ODT circuit applied to FPGA, characterized in that it comprises: an ODT circuit module, a first calibration module and a second calibration module, wherein:
[0006] The ODT circuit module includes a first terminal resistance unit and a second terminal resistance unit, wherein:
[0007] The first terminal resistance unit and the second terminal resistance unit complete adaptive adjustment to keep impedance unchanged in response to the voltage change of the transmission signal;
[0008] The first calibration module is connected to the first terminal resistance unit and is used to calibrate the first terminal resistance unit;
[0009] The second calibration module is connected to the second terminal resistance unit and is used to calibrate the second terminal resistance unit;
[0010] The first calibration module includes a first current mirror unit, a reference resistor, a comparator and a control unit, wherein:
[0011] The first current mirror unit is used to provide a first current and a second current, and connect the reference resistor and the first terminal resistor unit;
[0012] The reference resistor is used to generate a reference voltage according to the first current, and the first terminal resistance unit is used to generate a first terminal resistance voltage according to the second current;
[0013] The reference voltage is input into the first input terminal of the comparator, the first terminal resistance voltage is input into the second input terminal, and the comparison result is output into the output terminal;
[0014] The control unit is connected to the output end of the comparator, and is used to output a control signal according to the comparison result, and the first terminal resistance unit completes calibration in response to the control signal;
[0015] The second calibration module includes a second current mirror unit, the reference resistor, the comparator and the control unit, and the connection relationship thereof is the same as that of the first calibration module. The second terminal resistance unit completes calibration in response to the control signal.
[0016] In one embodiment of the present invention, the first terminal resistance unit includes a first PMOS transistor, a first enabling unit and a plurality of first equivalent resistance units, wherein:
[0017] The gate of the first PMOS tube is connected to the signal transmission end, and the drain is connected to the ground end;
[0018] The first enabling unit is connected in series between the power supply voltage terminal and the source of the first PMOS tube;
[0019] A plurality of the first equivalent resistance parts are connected in parallel between the signal transmission end and the ground end.
[0020] In one embodiment of the present invention, the first enabling unit includes an inverter, an NMOS transistor, a PMOS transistor and a transmission gate, wherein:
[0021] The input end of the inverter receives the second enable signal, and the output end is connected to the gate of the NMOS tube;
[0022] The drain of the NMOS tube is connected to the power supply voltage terminal, and the source is connected to the source of the first PMOS tube;
[0023] The source of the PMOS tube is connected to the power supply voltage terminal, and the drain is connected to the source of the first PMOS tube;
[0024] The input end of the transmission gate is connected to the ground end, the output end is connected to the gate of the PMOS tube, and the control end receives a first enable signal and a second enable signal respectively, and the first enable signal and the second enable signal are a pair of differential signals.
[0025] In one embodiment of the present invention, the first equivalent resistance unit includes an inverter, two NMOS transistors and a transmission gate, wherein:
[0026] The input end of the inverter receives the control signal, and the output end is connected to a gate of the NMOS tube;
[0027] The drains of the two NMOS tubes are both connected to the signal transmission end, and the sources are both connected to the ground end;
[0028] The input end of the transmission gate is connected to the source of the first PMOS tube, the output end is connected to the gate of another NMOS tube, and the control end receives the control signal.
[0029] In one embodiment of the present invention, the second terminal resistance unit includes a first NMOS transistor, a second enabling unit and a plurality of second equivalent resistance units, wherein:
[0030] The gate of the first NMOS tube is connected to the signal transmission terminal, and the drain is connected to the power supply voltage terminal;
[0031] The second enabling part is connected in series between the source of the first NMOS tube and the ground terminal;
[0032] A plurality of the second equivalent resistance parts are connected in parallel between the power supply voltage terminal and the signal transmission terminal.
[0033] In one embodiment of the present invention, the second enabling unit includes an inverter, an NMOS transistor, a PMOS transistor and a transmission gate, wherein:
[0034] The input end of the inverter receives a first enable signal, and the output end is connected to the gate of the PMOS tube;
[0035] The source of the PMOS tube is connected to the source of the first NMOS tube, and the drain is connected to the ground terminal;
[0036] The drain of the NMOS tube is connected to the source of the first NMOS tube, and the source is connected to the ground terminal;
[0037] The input end of the transmission gate is connected to the power supply voltage end, the output end is connected to the gate of the NMOS tube, and the control end receives a first enable signal and a second enable signal respectively, and the first enable signal and the second enable signal are a pair of differential signals.
[0038] In one embodiment of the present invention, the second equivalent resistance unit includes an inverter, two PMOS tubes and a transmission gate, wherein:
[0039] The input end of the inverter receives the control signal, and the output end is connected to a gate of the PMOS tube;
[0040] The sources of the two PMOS tubes are both connected to the power supply voltage terminal, and the drains are both connected to the signal transmission terminal;
[0041] The input end of the transmission gate is connected to the source of the first NMOS tube, the output end is connected to the gate of another PMOS tube, and the control end receives the control signal.
[0042] In one embodiment of the present invention, the first current mirror unit includes a first MOS transistor, a second MOS transistor, a third MOS transistor, a fourth MOS transistor, a fifth MOS transistor, a sixth MOS transistor, a first switch, a second switch, a third switch and a current source, wherein:
[0043] The first MOS tube, the second MOS tube, the third MOS tube, the fourth MOS tube, the fifth MOS tube and the sixth MOS tube are all PMOS tubes;
[0044] The sources of the first MOS tube, the third MOS tube and the fifth MOS tube are all connected to the power supply voltage terminal;
[0045] The gate of the first MOS tube is respectively connected to the gate of the third MOS tube, the drain of the second MOS tube and the gate of the fifth MOS tube;
[0046] The source of the second MOS tube is connected to the drain of the first MOS tube, and the gate is respectively connected to the gate of the fourth MOS tube and the gate of the sixth MOS tube, and the gate bias voltage of the second MOS tube is provided by a bandgap circuit inside the FPGA chip;
[0047] The source of the fourth MOS tube is connected to the drain of the third MOS tube, and the source of the sixth MOS tube is connected to the drain of the fifth MOS tube;
[0048] The first switch and the current source are connected in series between the drain of the second MOS tube and the ground terminal in sequence;
[0049] The second switch is connected in series between the drain of the fourth MOS tube and the reference resistor;
[0050] The third switch is connected in series between the drain of the sixth MOS tube and the first terminal resistance unit.
[0051] In one embodiment of the present invention, a first end of the reference resistor is connected to a first input end of the comparator, and a second end of the reference resistor is connected to a ground end.
[0052] In one embodiment of the present invention, the control unit includes a counter, a temperature decoder, a controller and a fourth switch connected in sequence, wherein the input end of the counter is connected to the output end of the comparator, and the fourth switch is connected to the ODT circuit module.
[0053] Compared with the prior art, the present invention has the following beneficial effects:
[0054] 1. The adaptive calibrable ODT circuit applied to FPGA of the present invention can automatically adjust the circuit current when the terminal resistance of the ODT circuit module changes when the transmitted signal swing changes, so that the impedance of the terminal matching resistance remains unchanged.
[0055] 2. The adaptive calibrable ODT circuit applied to FPGA of the present invention is provided with a calibration module, through which the impedance of the terminal matching resistor can be calibrated, thereby reducing the influence of PVT on its impedance.
[0056] 3. The adaptive calibrable ODT circuit applied to FPGA of the present invention can adjust the terminal matching resistance to adapt to different protocols based on the configurability of FPGA.
[0057] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1a-1b This is the existing impedance matching mode provided by the present invention;
[0059] Figure 2 It is a module schematic diagram of an adaptive calibrable ODT circuit applied to FPGA provided by an embodiment of the present invention;
[0060] Figure 3 is a circuit structure diagram of an ODT circuit module provided by an embodiment of the present invention;
[0061] Figure 4 is a circuit structure diagram of a first calibration module provided in an embodiment of the present invention;
[0062] Figure 5 It is a circuit structure diagram of a second calibration module provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, an adaptive calibrable ODT circuit applied to FPGA proposed by the present invention is described in detail below in combination with the accompanying drawings and specific implementation methods.
[0064] The above and other technical contents, features and effects of the present invention are clearly presented in the following detailed description of the specific implementation modes in conjunction with the accompanying drawings. Through the description of the specific implementation modes, the technical means and effects adopted by the present invention to achieve the predetermined purpose can be more deeply and specifically understood. However, the attached drawings are only for reference and explanation purposes and are not used to limit the technical solutions of the present invention.
[0065] Embodiment 1
[0066] See also Figure 2 , Figure 2It is a module schematic diagram of an adaptive calibrable ODT circuit applied to FPGA provided by an embodiment of the present invention. As shown in the figure, the adaptive calibrable ODT circuit applied to FPGA of this embodiment includes an ODT circuit module 1, a first calibration module 2 and a second calibration module 3, wherein the ODT circuit module 1 includes a first terminal resistance unit 101 and a second terminal resistance unit 102, wherein the first terminal resistance unit 101 and the second terminal resistance unit 102 complete adaptive adjustment to keep the impedance unchanged in response to the voltage change of the transmission signal; the first calibration module 2 is connected to the first terminal resistance unit 101, and is used to calibrate the first terminal resistance unit 101; the second calibration module 3 is connected to the second terminal resistance unit 102, and is used to calibrate the second terminal resistance unit 102; the first calibration module 2 includes a first current mirror unit A1, a reference resistor Req, a comparator COMP and a control unit B, wherein the first current Mirror unit A1 is used to provide a first current and a second current, and connects a reference resistor Req and a first terminal resistor unit 101; the reference resistor Req is used to generate a reference voltage according to the first current, and the first terminal resistor unit 101 is used to generate a first terminal resistor voltage according to the second current; the reference voltage is input to the first input terminal of the comparator COMP, the first terminal resistor voltage is input to the second input terminal, and the comparison result is output to the output terminal; the control unit B is connected to the output terminal of the comparator COMP, and is used to output a control signal according to the comparison result, and the first terminal resistor unit 101 completes calibration in response to the control signal; the second calibration module 3 includes a second current mirror unit A2, a reference resistor Req, a comparator COMP and a control unit B, and the connection relationship thereof is the same as that of the first calibration module 2, and the second terminal resistor unit 102 completes calibration in response to the control signal.
[0067] Please refer to Figure 3 , Figure 3 It is a circuit structure diagram of an ODT circuit module provided by an embodiment of the present invention. As shown in the figure, specifically, the first terminal resistance unit 101 includes a first PMOS tube PM1, a first enabling part and a plurality of first equivalent resistance parts R1, wherein the gate of the first PMOS tube PM1 is connected to the signal transmission end, and the drain is connected to the ground end GND; the first enabling part is connected in series between the power supply voltage end vccio and the source of the first PMOS tube PM1; and the plurality of first equivalent resistance parts R1 are connected in parallel between the signal transmission end and the ground end GND.
[0068] In this embodiment, the first enabling unit includes an inverter, an NMOS transistor, a PMOS transistor and a transmission gate, wherein the input end of the inverter receives the second enabling signal The output end is connected to the gate of the NMOS tube; the drain of the NMOS tube is connected to the power supply voltage terminal vccio, and the source is connected to the source of the first PMOS tube PM1; the source of the PMOS tube is connected to the power supply voltage terminal vccio, and the drain is connected to the source of the first PMOS tube PM1; the input end of the transmission gate is connected to the ground terminal GND, the output end is connected to the gate of the PMOS tube, and the control end receives the first enable signal en and the second enable signal respectively The first equivalent resistance part R1 includes an inverter, two NMOS tubes and a transmission gate, wherein the input end of the inverter receives a control signal, and the output end is connected to the gate of an NMOS tube; the drains of the two NMOS tubes are connected to the signal transmission end, and the sources are connected to the ground end GND; the input end of the transmission gate is connected to the source of the first PMOS tube PM1, the output end is connected to the gate of another NMOS tube, and the control end receives the control signal.
[0069] In this embodiment, the first enable signal en and the second enable signal It is a pair of differential signals. The first enabling part controls the opening and closing of the first terminal resistance unit 101 according to the received enabling signal, and the several first equivalent resistance parts R1 connected in parallel are opened and closed according to the received control signal, thereby realizing the adjustment of the equivalent resistance value of the several first equivalent resistance parts R1.
[0070] Furthermore, the second terminal resistance unit 102 includes a first NMOS tube NM1, a second enabling part and a plurality of second equivalent resistance parts R2, wherein the gate of the first NMOS tube NM1 is connected to the signal transmission end, and the drain is connected to the power supply voltage end vccio; the second enabling part is connected in series between the source of the first NMOS tube NM1 and the ground end GND; and the plurality of second equivalent resistance parts R2 are connected in parallel between the power supply voltage end vccio and the signal transmission end.
[0071] In this embodiment, the second enabling unit includes an inverter, an NMOS tube, a PMOS tube and a transmission gate, wherein the input end of the inverter receives the first enabling signal en, and the output end is connected to the gate of the PMOS tube; the source of the PMOS tube is connected to the source of the first NMOS tube NM1, and the drain is connected to the ground terminal GND; the drain of the NMOS tube is connected to the source of the first NMOS tube NM1, and the source is connected to the ground terminal GND; the input end of the transmission gate is connected to the power supply voltage terminal vccio, the output end is connected to the gate of the NMOS tube, and the control end receives the first enabling signal en and the second enabling signal respectively. The second equivalent resistance part R2 includes an inverter, two PMOS tubes and a transmission gate, wherein the input end of the inverter receives a control signal, and the output end is connected to the gate of a PMOS tube; the sources of the two PMOS tubes are both connected to the power supply voltage terminal vccio, and the drains are both connected to the signal transmission end; the input end of the transmission gate is connected to the source of the first NMOS tube NM1, the output end is connected to the gate of another PMOS tube, and the control end receives the control signal.
[0072] In this embodiment, the first enable signal en and the second enable signal It is a pair of differential signals. The second enabling part controls the opening and closing of the second terminal resistance unit 102 according to the received enabling signal, and the second equivalent resistance part R2 is opened and closed according to the received control signal, thereby realizing the adjustment of the equivalent resistance value of several second equivalent resistance parts R2.
[0073] For further information, see Figure 4 , Figure 4 It is a circuit structure diagram of a first calibration module provided by an embodiment of the present invention. As shown in the figure, the first current mirror unit A1 includes a first MOS tube M1, a second MOS tube M2, a third MOS tube M3, a fourth MOS tube M4, a fifth MOS tube M5, a sixth MOS tube M6, a first switch S1, a second switch S2, a third switch S3 and a current source IB, wherein the current source IB is provided by a bandgap circuit in the FPGA chip, and its current is an ideal current source that is independent of the power supply voltage and temperature.
[0074] The first MOS tube M1, the second MOS tube M2, the third MOS tube M3, the fourth MOS tube M4, the fifth MOS tube M5 and the sixth MOS tube M6 are all PMOS tubes; the sources of the first MOS tube M1, the third MOS tube M3 and the fifth MOS tube M5 are all connected to the power supply voltage terminal vccio; the gate of the first MOS tube M1 is respectively connected to the gate of the third MOS tube M3, the drain of the second MOS tube M2 and the gate of the fifth MOS tube M5; the source of the second MOS tube M2 is connected to the drain of the first MOS tube M1, and the gate is respectively connected to the gate of the fourth MOS tube M4 and the gate of the sixth MOS tube M6, and the second The gate bias voltage pbias of the MOS tube M2 is provided by the bandgap circuit inside the FPGA chip; the source of the fourth MOS tube M4 is connected to the drain of the third MOS tube M3, and the source of the sixth MOS tube M6 is connected to the drain of the fifth MOS tube M5; the first switch S1 and the current source IB are connected in series between the drain of the second MOS tube M2 and the ground terminal GND in sequence; the second switch S2 is connected in series between the drain of the fourth MOS tube M4 and the reference resistor Req; the third switch S3 is connected in series between the drain of the sixth MOS tube M6 and the first terminal resistance unit 101, and the other end of the first terminal resistance unit 101 is connected to the ground terminal GND. The first MOS tube M1, the second MOS tube M2, the third MOS tube M3, the fourth MOS tube M4, the fifth MOS tube M5 and the sixth MOS tube M6 form a common source and common gate current mirror structure according to the electrical connection, which can accurately provide the current required for the mirror.
[0075] The first end of the reference resistor Req is connected to the first input end of the comparator COMP, and the second end is connected to the ground GND. The control unit B includes a counter B1, a temperature decoder B2, a controller B3 and a fourth switch S4 connected in sequence, wherein the input end of the counter B1 is connected to the output end of the comparator COMP, and the fourth switch S4 is connected to the inverter input end of the first equivalent resistor part R1 and the control end of the transmission gate.
[0076] For further information, see Figure 5 , Figure 5 : is a circuit structure diagram of a second calibration module provided by an embodiment of the present invention. As shown in the figure, it is worth noting that the second current mirror unit A2 further includes a seventh MOS tube M7, an eighth MOS tube M8, a ninth MOS tube M9, a tenth MOS tube M10 and a fifth switch S5 compared with the first current source unit A1. Among them, the seventh MOS tube M7, the eighth MOS tube M8, the ninth MOS tube M9 and the tenth MOS tube M10 are all NMOS tubes.
[0077] The third switch S3 is connected in series between the drain of the sixth MOS tube M6 and the drain of the seventh MOS tube M7; the gate of the seventh MOS tube M7 is connected to the gate of the ninth MOS tube M9, and the source is connected to the drain of the eighth MOS tube M8; the gate of the eighth MOS tube M8 is connected to the drain of the seventh MOS tube M7 and the gate of the tenth MOS tube M10 respectively, and the source of the eighth MOS tube M8 and the source of the tenth MOS tube M10 are both connected to the ground terminal GND; the source of the ninth MOS tube M9 is connected to the drain of the tenth MOS tube M10; the fifth switch S5 is connected in series between the drain of the ninth MOS tube M9 and the second terminal resistance unit 102, and the other end of the second terminal resistance unit 102 is connected to the power supply voltage terminal vccio; the fourth switch S4 is connected to the inverter input end of the plurality of second equivalent resistance parts R2 and the control end of the transmission gate. The gate bias voltage nbias of the seventh MOS tube M7 is provided by the bandgap circuit inside the FPGA chip. In this embodiment, since the source end of the second equivalent resistor R2 is connected to the power supply end in the ODT circuit module 1, it is necessary to add a mirror current source formed by electrically connecting the seventh MOS transistor M7, the eighth MOS transistor M8, the ninth MOS transistor M9 and the tenth MOS transistor M10 to provide the current required for the mirror, and the mirror ratio is 1:1.
[0078] In the adaptive calibrable ODT circuit applied to FPGA of the present embodiment, the terminal resistance of the ODT circuit module can automatically adjust the circuit current when the transmitted signal swing changes, so that the impedance of the terminal matching resistance remains unchanged. Moreover, since a calibration module is provided, the impedance of the terminal matching resistance can be calibrated through the calibration module, reducing the influence of PVT on its impedance. In addition, the adaptive calibrable ODT circuit applied to FPGA of the present embodiment can adjust the terminal matching resistance to adapt to different protocols based on the configurability of FPGA.
[0079] Further, the specific working process of the adaptive calibrable ODT circuit applied to FPGA of this embodiment is described as follows. The adaptive calibrable ODT circuit applied to FPGA of this embodiment includes an ODT calibration circuit, namely, a first calibration module 2 and a second calibration module 3, and an ODT circuit, namely, an ODT circuit module 1. Taking the first calibration module 2 as an example, the working process of the ODT calibration circuit is described.
[0080] The first switch S1, the second switch S2, the third switch S3 and the fourth switch S4 are closed, and the first calibration module 2 forms the current I2 and the current I3 through the first current mirror unit A1 based on the current I1 formed by the current source IB, wherein the current I2 and the current I3 are proportional mirror currents of the current I1, wherein I2=I1, I3=10*I2, and in this embodiment, the current I2 is used as the first current, and the current I3 is used as the second current. Figure 4 As shown, the reference resistor Req and the current I2 generate a reference voltage Vref=vccio / 2; the first terminal resistance unit 101 and the current I3 generate a voltage V1. Among them, the ratio of the resistance value of the reference resistor Req and the equivalent resistance value of the first terminal resistance unit 101 is I3 / I2. For example, if the equivalent resistance value of the first terminal resistance unit 101 is 100Ω according to the protocol requirements, then the resistance value of the reference resistor Req is 1000Ω. The reference resistor Req is an internal adjustable resistor, which can be adjusted according to the protocol requirements, for example 800Ω / 1000Ω / 1200Ω. Its adjustment protocol is the same as the adjustment protocol of the first terminal resistance unit 101.
[0081] like Figure 4 As shown, the voltage V1 is compared with the reference voltage vref. If the output of the comparator COMP is low, then the counter B1 is incremented by 1, the temperature decoder B2 converts the binary count into a temperature code, and the controller B3 outputs a control signal according to the temperature code to reduce the impedance of the first terminal resistance unit 101. The first terminal resistance unit 101 increases the number of the first equivalent resistance parts R1 connected in parallel according to the received control signal, thereby reducing the impedance of the first terminal resistance unit 101. Until the comparator COMP outputs high for the first time, the counter B1 is latched and the control signal of the controller B3 is stored. At this time, the calibration of the first terminal resistance unit 101 is completed, and then the first switch S1, the second switch S2, the third switch S3 and the fourth switch S4 are turned off.
[0082] Compare the voltage V1 with the reference voltage vref. If the output of the comparator COMP is high, then the counter B1 is reduced by 1, the temperature decoder B2 converts the binary count into a temperature code, and the controller B3 outputs a control signal according to the temperature code to increase the impedance of the first terminal resistance unit 101. The first terminal resistance unit 101 reduces the number of the first equivalent resistance parts R1 connected in parallel according to the received control signal, thereby increasing the impedance of the first terminal resistance unit 101. Until the comparator COMP outputs a low value for the first time, the counter B1 is latched and the control signal of the controller B3 is stored. At this time, the calibration of the first terminal resistance unit 101 is completed, and then the first switch S1, the second switch S2, the third switch S3 and the fourth switch S4 are turned off. In this embodiment, the initial value of the counter B1 is given by the protocol and is used to roughly adjust the impedance of the first terminal resistance unit 101 under different protocols.
[0083] The calibration principle of the second calibration module 3 is the same as that of the first calibration module 2, and will not be repeated here.
[0084] Further, the adaptive modulation process of the ODT circuit module of this embodiment is specifically described, as follows: Figure 3As shown, the ODT circuit module 1 includes a first equivalent resistor part R1 and a second equivalent resistor part R2. The first equivalent resistor part R1 and the second equivalent resistor part R2 both form an impedance through a diode and a saturation region MOS tube, and the first equivalent resistor part R1 and the second equivalent resistor part R2 can be adaptively adjusted according to the voltage change of the transmission signal so that their impedance remains unchanged.
[0085] The second equivalent resistor R2 acts as a pull-up resistor. When the voltage vih of the transmission signal increases, the conduction capability of the first NMOS transistor NM1 increases, and the voltage at its source P_gate increases, which will reduce the conduction capability of the PMOS transistor (p1 in the figure) at the second equivalent resistor R2, and reduce the current I2 flowing through it, and finally keep its impedance R2 = (vccio-vih) / I2 basically unchanged. On the contrary, if the voltage vih of the transmission signal decreases, the conduction capability of the first NMOS transistor NM1 decreases, and the voltage at its source P_gate decreases, which will increase the conduction capability of the PMOS transistor (p1 in the figure) at the second equivalent resistor R2, and increase the current I2 flowing through it, and finally keep its impedance R2 = (vccio-vih) / I2 basically unchanged.
[0086] The first equivalent resistor R1 acts as a pull-down resistor. When the voltage vih of the transmission signal increases, the conduction capacity of the first PMOS tube PM1 decreases, and the voltage at its source N_gate increases, which increases the conduction capacity of the NMOS tube (n1 in the figure) at the first equivalent resistor R1, thereby increasing the current I1 flowing therethrough, and ultimately keeping the impedance R1=vih / I1 basically unchanged. On the contrary, if the voltage vih of the transmission signal decreases, the conduction capacity of the first PMOS tube PM1 increases, and the voltage at its source N_gate decreases, which decreases the conduction capacity of the NMOS tube (n1 in the figure) at the first equivalent resistor R1, thereby decreasing the current I1 flowing therethrough. Ultimately, the impedance R1=vih / I1 remains basically unchanged. This solves the problem that the impedance of the ODT circuit module 1 is affected by the voltage change of the transmission signal.
[0087] Specifically, under the condition of power supply voltage vccio=1.5v, the voltage of the transmission signal changes from 0.2*vccio to 0.8*vccio, and the impedance difference is less than 1Ω at most. Under the condition of power supply voltage vccio=1.35v, the voltage of the transmission signal changes from 0.2*vccio to 0.8*vccio, and the impedance difference is 3Ω at most.
[0088] The use process of the adaptive calibrable ODT circuit applied to FPGA in this embodiment is as follows. First, through the control signal of the controller B3 of the first calibration module 2, several first equivalent resistors R1 in parallel are turned on or off, so as to adjust the pull-down resistor impedance so that it meets the impedance required by the protocol. This adjustment process is adjusted by the protocol. The protocol is fixed, the value of the counter B1 is fixed, and the number of switches of several first equivalent resistors R1 in parallel is fixed, which is a coarse adjustment. Similarly, the pull-up resistor impedance can also be adjusted in the same way. Secondly, fine adjustment is performed on the basis of this adjustment, that is, the impedance of the first terminal resistance unit 101 and the second terminal resistance unit 102 is calibrated using the first calibration module 2 and the second calibration module 3. During its working process, the impedance value of the first terminal resistance unit 101 and the second terminal resistance unit 102 can be adaptively adjusted according to the voltage change of the transmission signal. In this embodiment, the impedance value of each parallel first equivalent resistor R1 is proportional, and the impedance value of each parallel second equivalent resistor R2 is proportional. The controller B circuit is controlled by the control signal ( Figure 3 pen1 / nen1, pen2 / nen2, pen3 / nen3…) are used to adjust the impedance value.
[0089] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. An adaptive calibrable ODT circuit applied to FPGA, characterized in that: include: An ODT circuit module (1), a first calibration module (2) and a second calibration module (3), wherein: The ODT circuit module (1) comprises a first terminal resistance unit (101) and a second terminal resistance unit (102), wherein the first terminal resistance unit (101) and the second terminal resistance unit (102) perform adaptive adjustment to keep impedance unchanged in response to voltage changes of a transmission signal; the first calibration module (2) is connected to the first terminal resistance unit (101) and is used to calibrate the first terminal resistance unit (101); the second calibration module (3) is connected to the second terminal resistance unit (102) and is used to calibrate the second terminal resistance unit (102); wherein, The first terminal resistance unit (101) comprises a first PMOS tube (PM1), a first enabling part and a plurality of first equivalent resistance parts (R1), wherein the gate of the first PMOS tube (PM1) is connected to the signal transmission end, and the drain is connected to the ground end (GND); the first enabling part is connected in series between the power supply voltage end (vccio) and the source of the first PMOS tube (PM1); and the plurality of first equivalent resistance parts (R1) are connected in parallel between the signal transmission end and the ground end (GND); The first enabling unit comprises an inverter, an NMOS tube, a PMOS tube and a transmission gate, wherein the input end of the inverter receives the second enabling signal (en), and the output end is connected to the gate of the NMOS tube; the drain of the NMOS tube is connected to the power supply voltage end (vccio), and the source is connected to the source of the first PMOS tube (PM1); the source of the PMOS tube is connected to the power supply voltage end (vccio), and the drain is connected to the source of the first PMOS tube (PM1); the input end of the transmission gate is connected to the ground end (GND), the output end is connected to the gate of the PMOS tube, and the control end receives the first enabling signal (en) and the second enabling signal (en) respectively, and the first enabling signal (en) and the second enabling signal (en) are a pair of differential signals; The first equivalent resistance part (R1) comprises an inverter, two NMOS tubes and a transmission gate, wherein the input end of the inverter receives a control signal, and the output end is connected to the gate of one of the NMOS tubes; the drains of the two NMOS tubes are both connected to the signal transmission end, and the sources are both connected to the ground end (GND); the input end of the transmission gate is connected to the source of the first PMOS tube (PM1), the output end is connected to the gate of the other NMOS tube, and the control end receives the control signal; The first calibration module (2) comprises a first current mirror unit (A1), a reference resistor (Req), a comparator (COMP) and a control unit (B), wherein the first current mirror unit (A1) is used to provide a first current and a second current, and connect the reference resistor (Req) and the first terminal resistance unit (101); the reference resistor (Req) is used to generate a reference voltage according to the first current, and the first terminal resistance unit (101) is used to generate a first terminal resistance voltage according to the second current; the reference voltage is input to a first input terminal of the comparator (COMP), the first terminal resistance voltage is input to a second input terminal, and a comparison result is output to an output terminal; the control unit (B) is connected to the output terminal of the comparator (COMP), and is used to output the control signal according to the comparison result, and the first terminal resistance unit (101) completes calibration in response to the control signal; The second calibration module (3) comprises a second current mirror unit (A2), the reference resistor (Req), the comparator (COMP) and the control unit (B), and the connection relationship thereof is the same as that of the first calibration module (2). The second terminal resistance unit (102) completes calibration in response to the control signal.
2. The adaptive calibrable ODT circuit applied to FPGA according to claim 1, characterized in that: The second terminal resistance unit (102) comprises a first NMOS transistor (NM1), a second enabling unit and a plurality of second equivalent resistance units (R2), wherein: The gate of the first NMOS tube (NM1) is connected to the signal transmission terminal, and the drain is connected to the power supply voltage terminal (vccio); The second enabling unit is connected in series between the source of the first NMOS tube (NM1) and the ground terminal (GND); A plurality of the second equivalent resistance parts (R2) are connected in parallel between the power supply voltage terminal (vccio) and the signal transmission terminal.
3. The adaptive calibrable ODT circuit applied to FPGA according to claim 2, characterized in that: The second enabling unit includes an inverter, an NMOS transistor, a PMOS transistor and a transmission gate, wherein: The input end of the inverter receives a first enable signal (en), and the output end is connected to the gate of the PMOS tube; The source of the PMOS tube is connected to the source of the first NMOS tube (NM1), and the drain is connected to the ground terminal (GND); The drain of the NMOS tube is connected to the source of the first NMOS tube (NM1), and the source is connected to the ground terminal (GND); The input end of the transmission gate is connected to the power supply voltage end (vccio), the output end is connected to the gate of the NMOS tube, and the control end receives a first enable signal (en) and a second enable signal (en) respectively, and the first enable signal (en) and the second enable signal (en) are a pair of differential signals.
4. The adaptive calibrable ODT circuit applied to FPGA according to claim 2, characterized in that: The second equivalent resistance part (R2) includes an inverter, two PMOS tubes and a transmission gate, wherein: The input end of the inverter receives the control signal, and the output end is connected to a gate of the PMOS tube; The sources of the two PMOS tubes are both connected to the power supply voltage terminal (vccio), and the drains are both connected to the signal transmission terminal; The input end of the transmission gate is connected to the source of the first NMOS tube (NM1), the output end is connected to the gate of another PMOS tube, and the control end receives the control signal.
5. The adaptive calibrable ODT circuit applied to FPGA according to claim 1, characterized in that: The first current mirror unit (A1) comprises a first MOS transistor (M1), a second MOS transistor (M2), a third MOS transistor (M3), a fourth MOS transistor (M4), a fifth MOS transistor (M5), a sixth MOS transistor (M6), a first switch (S1), a second switch (S2), a third switch (S3) and a current source (IB), wherein: The first MOS tube (M1), the second MOS tube (M2), the third MOS tube (M3), the fourth MOS tube (M4), the fifth MOS tube (M5) and the sixth MOS tube (M6) are all PMOS tubes; The source electrodes of the first MOS tube (M1), the third MOS tube (M3) and the fifth MOS tube (M5) are all connected to the power supply voltage terminal (vccio); The gate of the first MOS tube (M1) is respectively connected to the gate of the third MOS tube (M3), the drain of the second MOS tube (M2) and the gate of the fifth MOS tube (M5); The source of the second MOS tube (M2) is connected to the drain of the first MOS tube (M1), and the gate is respectively connected to the gate of the fourth MOS tube (M4) and the gate of the sixth MOS tube (M6), and the gate bias voltage (pbias) of the second MOS tube (M2) is provided by a bandgap circuit inside the FPGA chip; The source of the fourth MOS tube (M4) is connected to the drain of the third MOS tube (M3), and the source of the sixth MOS tube (M6) is connected to the drain of the fifth MOS tube (M5); The first switch (S1) and the current source (IB) are connected in series between the drain of the second MOS tube (M2) and a ground terminal (GND); The second switch (S2) is connected in series between the drain of the fourth MOS transistor (M4) and the reference resistor (Req); The third switch (S3) is connected in series between the drain of the sixth MOS tube (M6) and the first terminal resistance unit (101).
6. The adaptive calibrable ODT circuit applied to FPGA according to claim 1, characterized in that: A first end of the reference resistor (Req) is connected to a first input end of the comparator (COMP), and a second end of the reference resistor (Req) is connected to a ground end (GND).
7. The adaptive calibrable ODT circuit applied to FPGA according to claim 1, characterized in that: The control unit (B) comprises a counter (B1), a temperature decoder (B2), a controller (B3) and a fourth switch (S4) which are connected in sequence, wherein an input end of the counter (B1) is connected to an output end of the comparator (COMP), and the fourth switch (S4) is connected to the ODT circuit module (1).
Citation Information
Patent Citations
Self-adaptive adjustable ODT circuit applied to FPGA
CN211319101U
