1. Field of the Invention
The present invention relates to a semiconductor apparatus, and particularly to a comparator circuit used in an input circuit.
2. Description of Related Art
In recent years, a signal transmission method with small amplitude has been adopted as a high-speed interface. For example there are various circuits for HSTL (High Speed Transceiver Logic) and SSTL (Stub Terminated Transceiver Logic) as JEDEC standard. An input circuit of such an interface includes a comparator (comparator circuit) for receiving a signal with small amplitude.
A comparator circuit using a differential circuit is widely known in the art.
As shown in
A comparator circuit 12 shown in
As shown in
In a conventional comparator circuit shown in
As shown in
Furthermore in the comparator circuits 91 and 92, characteristics of the NMOS transistors (MN91 and MN92) comprising a transistor pair could fluctuate depending on a semiconductor apparatus (chip) due to production tolerance. For example if a threshold of the MN91 and MN92 increases, response of the comparator circuit delays. If the threshold of the MN91 and MN92 decreases, response of the comparator circuit speeds up. The production tolerance variations cause a fluctuation in circuit characteristics (delay) of the comparator circuits 91 and 92. In such a comparator circuit, response time to output for the input signal of the comparator circuit varies depending on a comparator circuit mounted to a semiconductor apparatus. In this example NMOS transistors are used to form a transistor pair. However even in a case the transistor pair is comprised of PMOS transistors, the production tolerance variations could cause the response time to output for the input signal of the comparator circuit to change.
As shown in
Furthermore in the input differential receiver circuit 131 disclosed in Japanese Unexamined Patent Application Publication No. 11-068855, the positive input node N131 is also connected to an output driver circuit. Thus the input differential receiver circuit 131 is influenced by power supply and ground of the output driver circuit, although the negative input node N132 is not influenced. Therefore there is a difference in the ways the positive input node N131 and the negative input node N132 are influenced by the power supply and the ground fluctuation. There is no description regarding an internal circuit of the input differential receiver circuit 131 in Japanese Unexamined Patent Application Publication No. 11-068855. However if the internal circuit is configured in the similar manner as the comparator circuit 91 of a conventional technique, response time to output for an input signal of the comparator circuit could vary depending on a comparator circuit mounted to a semiconductor apparatus due to production tolerance.
As described in the foregoing, it has now been discovered that in a conventional comparator circuit, a fluctuation is generated in the response time to output for the input signal of the comparator circuit.
According to an aspect of the present invention, there is provided a comparator circuit that includes a differential circuit having a transistor pair comprised of PMOS transistors or NMOS transistors with their sources connected to each other, a first PMOS transistor having a source connected to a first power supply, a drain connected to a first node, and a gate connected to a reference voltage input terminal, a first NMOS transistor having a source connected to a second power supply, a drain connected to the first node, and a gate connected to the reference voltage input terminal, a second PMOS transistor having a source connected to the first power supply, a drain connected to the first node, and a gate applied with a voltage of the second power supply, a second NMOS transistor having a source connected to the second power supply, a drain connected to the first node, and a gate applied with a voltage of the first power supply, a third PMOS transistor having a source connected to the first power supply, a drain connected to a second node, and a gate connected to a signal input terminal, a third NMOS transistor having a source connected to the second power supply, a drain connected to the second node, and a gate connected to a signal input terminal, a fourth PMOS transistor having a source connected to the first power supply, a drain connected to the second node, and a gate applied with a voltage of the second power supply, and a fourth NMOS transistor having a source connected to the second power supply, a drain connected to the second node, and a gate applied with a voltage of the first power supply. The first and the second power supplies are supplied to the differential circuit, one of the transistors forming the transistor pair includes a gate connected to the first node, and another transistor forming the transistor pair includes a gate connected to the second gate, and the differential circuit outputs a comparison result between a voltage of a signal inputted to the signal input terminal and a reference voltage applied to the reference voltage input terminal as a comparison result between a voltage value of the first node and a voltage value of the second node.
According to another aspect of the present invention, there is provided a semiconductor apparatus having a reference voltage generation circuit and a comparator circuit that includes a differential circuit having a transistor pair comprised of PMOS transistors or NMOS transistors with their sources connected to each other, a first PMOS transistor having a source connected to a first power supply, a drain connected to a first node, and a gate connected to a reference voltage input terminal, a first NMOS transistor having a source connected to a second power supply, a drain connected to the first node, and a gate connected to the reference voltage input terminal, a second PMOS transistor having a source connected to the first power supply, a drain connected to the first node, and a gate applied with a voltage of the second power supply, a second NMOS transistor having a source connected to the second power supply, a drain connected to the first node, and a gate applied with a voltage of the first power supply, a third PMOS transistor having a source connected to the first power supply, a drain connected to a second node, and a gate connected to a signal input terminal, a third NMOS transistor having a source connected to the second power supply, a drain connected to the second node, and a gate connected to a signal input terminal, a fourth PMOS transistor having a source connected to the first power supply, a drain connected to the second node, and a gate applied with a voltage of the second power supply, and a fourth NMOS transistor having a source connected to the second power supply, a drain connected to the second node, and a gate applied with a voltage of the first power supply. The first and the second power supplies are supplied to the differential circuit of the comparator circuit, one of the transistors forming the transistor pair includes a gate connected to the first node, and another transistor forming the transistor pair includes a gate connected to the second gate, the differential circuit outputs a comparison result between a voltage of a signal inputted to the signal input terminal and a reference voltage applied to the reference voltage input terminal as a comparison result between a voltage value of the first node and a voltage value of the second node, and the reference voltage generation circuit operates on a third and a fourth power supply that are different from the first and the second power supplies.
According to another aspect of the present invention, there is provided a comparator circuit that include a comparator unit connected between a first power supply and a second power supply, a first noise tracing unit for inputting a first signal based on a first input signal to the comparator unit, and connected between the first power supply and the second power supply and a second noise tracing unit for inputting a second signal based on a second input signal to the comparator unit, and connected between the first power supply and the second power supply.
The circuit formed as above enables to reduce fluctuation in response time to output for the input signal of the comparator circuit, which is caused by a fluctuation in power supply or ground voltage of the comparator circuit due to noise. Furthermore, the circuit allows to reduce fluctuation in response time to output for the input signal of the comparator circuit due to production tolerance.
The present invention enables to reduce a fluctuation in response time to output for an input signal of a comparator circuit.
The above and other objects, advantages and features of the present invention will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:
The invention will be now described herein with reference to illustrative embodiments. Those skilled in the art will recognize that many alternative embodiments can be accomplished using the teachings of the present invention and that the invention is not limited to the embodiments illustrated for explanatory purposes.
A first embodiment of the present invention is described hereinafter in detail with reference to the drawings. In a comparator circuit of this invention, a reference voltage VREF is inputted to an input terminal (hereinafter referred to as a reference voltage input terminal), and a signal VIN outputted by a previous circuit, for example, to be compared against is inputted to another input terminal (hereinafter referred to as a signal input terminal). A comparator circuit of this embodiment is formed on a chip as a semiconductor integrated circuit, for example. A reference voltage generation circuit for supplying a reference voltage is formed on the same chip.
The comparator unit (differential circuit) 1 includes a PMOS transistors MP1 and MP2, and NMOS transistors MN1, MN2, and MN3. Sources of the transistors MP1 and MP2 are connected to a power supply VDD (a first power supply). Gates of the PMOS transistors MP1 and MP2 are connected to a drain of the transistor MP1. A drain of the PMOS transistor MP1 is connected to a drain of the NMOS transistor MN1. A drain of the PMOS transistor MP2 is connected to a drain of the NMOS transistor MN2. Sources of the NMOS transistors MN1 and MN2 are connected to a drain of the NMOS transistor MN3. A gate of the NMOS transistor MN1 is connected to an output node REF2 of the noise tracing unit 2-1. The noise tracing unit 2-1 is formed on a side of the reference voltage input terminal explained later in detail. A gate of the NMOS transistor MN2 is connected to an output node A2 of the noise tracing unit 2-2. The noise tracing unit 2-2 is formed on a side of the signal input terminal explained later in detail. The NMOS transistors MN1 and MN2 form a transistor pair to be a differential input unit of the comparator unit 1. A source of the NMOS transistor MN3 is connected to the ground GND (a second power supply). A bias voltage VBIAS (fixed voltage) is applied to a gate of the NMOS transistor MN3. The NMOS transistor MN3 is connected as a constant current source.
The noise tracing unit 2-1 is provided to the side of the reference voltage input terminal (terminal REF1) and the noise tracing unit 2-2 is provided to the side of the signal input terminal (terminal A1). The noise tracing unit 2-1 on the side of the reference voltage input terminal includes PMOS transistors MP3 and MP4, and NMOS transistors MN4 and MN5. Sources of the PMOS transistors MP3 and MP4 are connected to the power supply VDD, the same power supply the comparator unit 1 is connected thereto. A gate of the PMOS transistor MP3 is connected to the reference voltage input terminal REF1, and a drain is connected to a drain of the NMOS transistor MN4. A gate of the PMOS transistor MP4 is connected to the ground GND, the same ground GND the comparator unit 1 is connected thereto. A gate of the NMOS transistor MN4 is connected to the reference voltage input terminal REF1. A gate of the NMOS transistor MN5 is connected to the power supply VDD, the same power supply the comparator unit 1 is connected thereto. Sources of the NMOS transistors MN4 and MN5 are connected to the ground GND, the same ground GND the comparator unit 1 is connected thereto. A node that drains of the PMOS transistors MP3 and MP4, and NMOS transistors MN4 and MN5 are connected thereto corresponds to an output node REF2 of the noise tracing unit 2-1. The PMOS transistor MP3 and the NMOS transistor MN4 form an inverter for amplifying the reference voltage. The PMOS transistor MP4 and NMOS transistor MN5 form a voltage divider for dividing the reference voltage.
The noise tracing unit 2-2 of the signal input terminal side includes PMOS transistors MP5 and MP6, and NMOS transistors MN6 and MN7. The noise tracing unit 2-2 of the signal input terminal side has the same configuration as the noise tracing unit 2-1 of the reference voltage input terminal side except for nodes an input and an output are connected thereto. Specifically the PMOS transistors MP5 and NMOS transistors MN6 are connected in series between the power supply VDD, which is the same power supply the comparator unit 1 is connected thereto, and the ground GND. A gate of the PMOS transistor MP5 is connected to the ground GND, and a gate of the NMOS transistor MN6 is connected to the power supply VDD. The PMOS transistor MP6 and the NMOS transistor MN7 are connected in series between the power supply VDD, which is the same power supply the comparator unit 1 is connected thereto, and the ground GND. The signal input terminal A1 is connected to gates of the PMOS transistors MP6 and MN7. A node that drains of the PMOS transistors MP5 and MP6 and drains of the NMOS transistors MN6 and MN7 are commonly connected thereto corresponds to the output node A2 of the noise tracing unit 2-2. The PMOS transistor MP6 and the NMOS transistor MN6 form an inverter for amplifying the input voltage. The PMOS transistor MP5 and NMOS transistor MN6 form a voltage divider for dividing the input voltage.
The output terminal OUT of the comparator circuit 10 of the first embodiment is a node between the PMOS transistor MP2 and the NMOS transistor MN2 of the comparator unit 1. The comparator circuit outputs “L” level (low-level) to the reference voltage VREF if a voltage VIN of a signal inputted to the signal input terminal is low, and outputs “H” (high-level) if the voltage VIN is high (hereinafter “low level” is referred to as “L”, while “high-level” is referred to as “H”). In the comparator circuit shown in
The MOS transistors formed in the noise tracing units 2-1 and 2-2 are formed in the same process as the MOS transistors in the comparator unit 1. Specifically, the NMOS transistors MN4, MN5, MN6, and MN7 in the noise tracing units 2-1 and 2-2 are formed at the same time as the NMOS transistors MN1 and MN2 in the comparator unit 1. Therefore, a production tolerance among the NMOS transistors MN4, MN5, MN6, and MN7 can be ignored.
An operation of the comparator circuit 10 formed as above is described hereinafter in detail. A basic operation in a case there is no voltage fluctuation in the power supply VDD and the ground GND is described first. The reference voltage VREF is applied to the reference voltage input terminal REF1. The voltage VIN to be compared is applied to the signal input terminal A1.
In the following description of basic operation, the reference voltage VREF applied to the reference voltage input terminal REF1 is an intermediate voltage that makes the PMOS transistor MP3 and the NMOS transistor MN4 be semiconductive. In this case, the voltage VREF2 of the node REF2 is a voltage obtained by dividing a potential difference (voltage difference) between the power supply VDD and the ground GND by a parallel resistance of the PMOS transistors MP3 and MP4, and a parallel resistance of the NMOS transistors MN4 and MN5. Accordingly a specified voltage VREF2 based on the reference voltage VREF is applied to a gate of the NMOS transistor MN1 of the comparator unit 1.
At this time a voltage VgsN1 between a gate and a source of the NMOS transistor MN1 has a value obtained by subtracting an amount of voltage drop in the NMOS transistor MN3 from the voltage VREF2 that is supplied to the gate of the NMOS transistor MN1. To simplify the explanation, the NMOS transistor MN3 is hereinafter referred to as an ideal current source (resistance=0). Therefore the explanation assumes that the voltage between the gate and the source of the NMOS transistor MN1 equals to a gate voltage (potential) of the NMOS transistor MN1.
In the noise tracing circuit 2-2, the voltage VA2 of node A2 is obtained by dividing a potential difference (voltage difference) between the power supply VDD and the ground GND by a parallel resistance of the PMOS transistor MP5, and a parallel resistance of the NMOS transistors MN6 and MN7. A resistance value of the PMOS transistor MP6 and the NMOS transistor MN7 is determined according to a voltage of a signal inputted to the signal input terminal A1. Accordingly the voltage VA2 of the node A2 is determined according to the voltage VIN of a signal inputted to the signal input terminal A1.
Since the noise tracing circuit 2-2 is formed in the same manner as the noise tracing circuit 2-1, if an input voltage VIN that equals to the VREF is inputted to the signal input terminal A1, the voltage VA2 equals VREF2.
If the voltage VIN to be applied to the signal input terminal A1 is a voltage V1 (“H” level) that is higher than the reference voltage VREF, a resistance of the NMOS transistor MN7 is reduced and a resistance of the PMOS transistor MP6 increases in the noise tracing circuit 2-2. Accordingly a voltage drop of the PMOS transistor MP6 increases. Thus the voltage VA2 of the node A2 becomes V2, which is lower than VREF (see
If the voltage applied to the input signal terminal A1 is a voltage V1′ (“L” level) that is lower than VREF, a resistance of the PMOS transistor MP6 is reduced and the resistance of the NMOS transistor MN7 increases. Accordingly a voltage drop of the PMOS transistor MP6 reduces. Thus the voltage VA2 of the node A2 becomes V2′, which is higher than VREF (see
As described in the foregoing, when changing the voltage VIN to be applied to the signal input terminal A1 to “L”—“H”—“L” (changing VIN to V1′—V1—V1′), the voltage VA2 of the node A2 changes to V2′—V2—V2′ as indicated with the dashed line in
An operation in a case where a fluctuation exists in the power supply and the ground of the comparator circuit is described hereinafter. In this embodiment, the abovementioned power supply of the reference voltage generation circuit operates on a separate and stable power supply that is independent from the power supply of the comparator circuit for generating a reference voltage. Thus the power supply of the reference voltage generation circuit in this embodiment does not fluctuate. Accordingly the reference voltage VREF applied to the reference voltage input terminal REF1 does not fluctuate but a voltage with a constant value is supplied. Furthermore in this embodiment, the signal applied to the signal input terminal A1 is outputted from a separate chip, for example, so that it is not influenced by a power supply fluctuation in the comparator circuit.
The noise tracing circuit 2-1 of the reference voltage input side outputs a voltage to the output node REF2, where the voltage is obtained by dividing a potential difference (voltage difference) of the power supply VDD and the ground GND by the PMOS transistors MP3 and MP4, and the NMOS transistors MN4 and MN5. Therefore if the power supply or the ground fluctuates, the voltage of the output node REF2 fluctuates correspondingly (see the part for VREF2 in
The noise tracing circuit 2-2 of the signal input side outputs a voltage to the output node A2, where the voltage is obtained by dividing a potential difference (voltage difference) of the power supply VDD and the ground GND by the PMOS transistors MP5 and MP6, and the NMOS transistors MN6 and MN7. If the power supply VDD or the ground GND fluctuates, the voltage of the output node A2 fluctuates correspondingly (see
In
Furthermore, the voltage supplied to the gate of the NMOS transistor MN2 (the voltage VA2 of the output node A2) basically changes in order of high voltage (V2′)—low voltage (V2)—high voltage (V2′). The voltage supplied to the gate of the NMOS transistor MN2 further being superposed with the fluctuation in the power supply and the ground over the change (see
Thus with the comparator circuit of this embodiment, even if the power supply and the ground fluctuate, a voltage reflecting the fluctuation is supplied to the gates of the NMOS transistors MN1 and MN2 in the comparator unit 1. In this example as described in the foregoing, the NMOS transistor MN3 is assumed to be an ideal current source (resistance=0), and a voltage between the gate and the source of the NMOS transistor MN1 is assumed to equal the gate voltage of the NMOS transistor MN1. Accordingly
As obvious from
Furthermore in this embodiment, the transistors MN5 and MN6 are NMOS transistors formed at the same time as the NMOS transistors in the comparator unit 1. If a threshold of the NMOS transistors MN1 and MN2 exceeds a target value, a switching speed of the comparator unit 1 delays. On the other hand, in a comparator circuit of this embodiment, the NMOS transistors MN5 and MN6 are formed at the same time as the NMOS transistors MN1 and MN2. Thereby, on-resistances of the NMOS transistors MN5 and MN6 become larger corresponding to threshold increase in the NMOS transistor MN1 and MN2. Accordingly voltage drops of the NMOS transistor MN5 and MN6 increases. Specifically, voltages of the output node REF2 and the output node A2 increase, accordingly gate voltages of the NMOS transistors MN1 and MN2 increases to speed up the switching speed.
Conversely if the threshold of a NMOS transistor decreases lower than a target value, a switching speed of the comparator unit 1 speeds up. Since the NMOS transistors MN5 and MN6 are formed at the same time as the transistor MN1 and MN2, on resistances of the NMOS transistors MN5 and MN6 decreases. Accordingly voltages of the output node REF 2 and the output node A2 decrease, thereby slowing down the switching speed. That is, by forming the NMOS transistors MN5 and MN6 at the same time as the NMOS transistors MN1 and MN2, it is possible to reduce fluctuation in response time caused by production tolerance variations.
In the circuit shown in
The explanation referring to FIGS. 4 to 6 uses an example where both the power supply VDD and the ground shift because of noise. However the noise tracing circuit of this embodiment can be applied to a case where either of the power supply VDD or the ground GND fluctuates. For example if the power supply VDD fluctuates to VDD+ΔVDD due to noise, a change in voltages of the output node REF2 and the A2 is reduced by a resistance ratio of the NMOS transistor and the PMOS transistor. If on resistances of the NMOS transistors MN4 and MN5, and the PMOS transistors MP3 and MP4 are all equal, a change in the voltage of the output node REF2 is ΔVDD/2. Further, if on resistances of the NMOS transistor MN6 and the PMOS transistor MP5 are equal, a change in the voltage of the output node A2 is approximately ΔVDD/2, although it varies depending on the level inputted to the signal input terminal A1.
In the second embodiment, the control circuit 3 is a circuit for switching between a normal operation and a test operation of the comparator circuit. In this embodiment, the control circuit 3 specifies the output terminal M1 to be “L” level, and the output terminal M2 to be “L” level.
The test here indicates a test for measuring leakage current of a comparator circuit. To conduct such a test, a steady-state current flowing from the power supply VDD to the ground GND needs to be eliminated.
In the comparator circuit of the second embodiment when conducting such a test, the control circuit 3 outputs signals to turn off the PMOS transistors MP4, MP5, MP7, and MP8, and the NMOS transistors MN5, MN6, MN8, and MN9. This removes a steady-state current flowing the noise tracing unit. Accordingly it is possible to prevent a steady-state current from flowing and exerting an influence in measuring leakage current.
The control circuit 3 outputs signals (control signals) from the output terminals M1 and M2. Then the signal from M1 switches on/off (i.e. conductive/non-conductive) of the PMOS transistors MP4 and MP5, and the switching devices MP7 and MP8. The signal from M2 switches on/off (i.e. conductive/non-conductive) of the NMOS transistors MN5 and MN6, and the switching devices MN8 and MN9. In a normal operation, the PMOS transistors MP4, MP5, MP7, and MP8, and NMOS transistors MN5, MN6, MN8, and MN9 are all turned on (conductive). In a test operation the transistors are all turned off (non-conductive). It means that output levels of the M1 and M2 are reversed. Further, it is desirable that if the output levels of the M1 and M2 are “H”, the output levels equal to the power supply, and if the output levels are “L”, they equal to the ground of the comparator circuit. In
In the circuit of the second embodiment, the PMOS transistors MP7 and MP8 are provided closer to the power supply side than the input terminal REF1, and NMOS transistors MN8 and MN9 are provided closer to the ground side than the A1, and outputs signals to the output terminals M1 and M2 to turn off those transistors. However as shown in
A comparator circuit of the present invention is not restricted to an input circuit to be an interface of a semiconductor apparatus. The present invention can be applied to an input unit inside a semiconductor apparatus. For example in a case where both a logic and an analog circuits are mounted to a semiconductor apparatus, and a case where two circuits use different power supply voltage, power supply and ground are provided to each of the circuit. In such a semiconductor apparatus, since the power supply and the ground are separated, the power supply and the ground voltages may fluctuate by each separated region. In such a case, it is possible to prevent a delay fluctuation caused by a fluctuation in the power supply and the ground of a circuit receiving a signal by using the comparator circuit of the present invention to receive signals from circuit having different power supply and ground, even inside the semiconductor apparatus. Furthermore to design a semiconductor apparatus, a delay verification is performed in consideration of production tolerance variations. However the circuit of the present invention induces only a few delay fluctuation caused by production tolerance variation, thereby making a design easier.
As an analog circuit described in the foregoing, there are a PLL circuit and a reference voltage generation circuit. Especially for the reference voltage generation circuit, one or a small number of the reference voltage generation circuits are often mounted to a semiconductor apparatus to provide reference voltages to a plurality of comparator circuit etc. Those reference voltage generation circuits are mounted to a region isolated from the power supply and the ground as with the abovementioned case so as not to be influenced by noise of nearby circuits. A separate power supply (third power supply) and ground (fourth power supply) are supplied to the reference voltage generation circuit other than power supplies for other circuit in the semiconductor apparatus. The present invention is applicable to a case where the reference voltage VREF is supplied from such reference voltage generation circuits. The present invention is especially applicable to a case where a signal having less noise by the power supply and the ground is inputted to a comparator circuit, and the power supply and the ground of the comparator circuit fluctuates due to noise. In light of this, a reference voltage generation circuit placed to a region isolated from the power supply and the ground may be mounted to a comparator circuit of the present invention.
As described in the foregoing, the comparator circuit of this invention provides a noise tracing unit to enable a reference voltage and an input voltage to be compared to change reflecting fluctuations of the power supply. By comparing the voltages that changes reflecting the fluctuation in the power supply, it is possible to have a stable response time to a change in input voltage to be compared against. Further, by forming transistors comprising a differential input stage at the same time as the transistors of a noise tracing unit, it is possible to suppress a fluctuation in response time caused by production tolerance variations.
It is apparent that the present invention is not limited to the above embodiment and it may be modified and changed without departing from the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2005-250031 | Aug 2005 | JP | national |