Comparator circuit

Information

  • Patent Application
  • 20070290724
  • Publication Number
    20070290724
  • Date Filed
    June 12, 2007
    17 years ago
  • Date Published
    December 20, 2007
    16 years ago
Abstract
According to one embodiment, a comparator circuit includes: a plurality of comparator elements connected in parallel between at least one input signal line and at least one output signal line, each of the comparator elements comparing at least one input potential on the at least one input signal line and outputting comparison result to the at least one output signal line; and a switching device capable of setting each of the comparator elements to either an operation state to compare the at least one input potential or a non-operation state not to compare the at least one input potential, the switching device switching the number of comparator elements which are set to the operation state.
Description

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

A general architecture that implements the various features of the invention will now be described with reference to the drawings. The drawings and the associated descriptions are provided to illustrate embodiments of the invention and not to limit the scope of the invention.



FIG. 1 is an exemplary circuit diagram showing a comparator circuit according to an embodiment of the invention;



FIG. 2 is an exemplary circuit diagram showing a comparator element which is a part of the comparator circuit in the embodiment;



FIG. 3 is an exemplary correspondence table showing output signals of NAND circuits and an AND circuit in the embodiment;



FIG. 4 is an exemplary timing chart of a comparator circuit according to a conventional art;



FIG. 5 is an exemplary timing chart of the comparator circuit in the embodiment; and



FIG. 6 is an exemplary circuit diagram showing the comparator circuit according to a conventional art.





DETAILED DESCRIPTION

Various embodiments according to the invention will be described hereinafter with reference to the accompanying drawings. In general, according to one embodiment of the invention, a comparator circuit includes: a plurality of comparator elements connected in parallel between at least one input signal line and at least one output signal line, each of the comparator elements comparing at least one input potential on the at least one input signal line and outputting comparison result to the at least one output signal line; and a switching device capable of setting each of the comparator elements to either an operation state to compare the at least one input potential or a non-operation state not to compare the at least one input potential, the switching device switching the number of comparator elements which are set to the operation state.



FIG. 1 shows a circuit diagram of a comparator circuit 1 according to this embodiment. The comparator circuit 1 has a large number of comparator elements 101 to 10N connected in parallel, and a switching circuit 20 for setting each of the comparator elements 101 to 10N to either the operation state or the non-operation state. The plurality of comparator elements 101 to 10N are connected in parallel between input signal lines Lin and output signal lines Lout. Further, each of the plurality of comparator elements 101 to 10N is connected to the switching circuit 20.


Each of the comparator elements 101 to 10N takes in two input potentials Vinp, Vinn via the two input signal lines Lin, and compares the magnitude of the two input potentials Vinp, Vinn. Then, each of the comparator elements 101 to 10N outputs comparison results of the two input potentials Vinp, Vinn as two output potentials Voutp, Voutn via the two output signal lines Lout. Specifically, when the input potential Vinp is larger than the input potential Vinn, a logic high potential (in other words, a power supply voltage VDD or 1) is outputted as the output potential Voutp, and a logic low potential (in other words, a ground potential VSS or 0) is outputted as the output potential Voutn. On the other hand, when the input potential Vinp is smaller than the input potential Vinn, the logic low potential is outputted as the output potential Voutp, and the logic high potential is outputted as the output potential Voutn.


The switching circuit 20 is a device to switch the number of comparator elements 101 to 10N which are set to the operation state. Specifically, the switching circuit 20 is connected to each of the comparator elements 101 to 10N, and outputs control signals CTRL [1] to CTRL [N] to the respective comparator elements 101 to 10N. The control signals CTRL [1] to CTRL [N] are signals for setting the comparator elements 101 to 10N to either the operation state or the non-operation state. The comparator elements 101 to 10N are set to turn to the operation state when the control signals CTRL [1] to CTRL [N] are 0, and the comparator elements 101 to 10N are set to turn to the non-operation state when the control signals CTRL [1] to CTRL [N] are 1. Note that the comparator elements 101 to 10N may be set to turn to the operation state when the control signals CTRL [1] to CTRL [N] are 1, and the comparator elements 101 to 10N may be set to turn to the non-operation state when the control signals CTRL [1] to CTRL [N] are 0.


The switching circuit 20 takes in a command signal COM from the outside, and determines the number of comparator elements 101 to 10N to be set to the operation state based on this command signal COM. Specifically, the switching circuit 20 determines whether to set the control signals CTRL [1] to CTRL [N] to be outputted to the respective comparator elements 101 to 10N to 0 or 1 based on the command signal COM. Such a command signal COM is a signal to instruct comparison accuracy required for the comparator circuit 1. Note that the switching circuit 20 may be realized by executing a program by an MPU (Micro Processing Unit) or the like, or may be realized using a dedicated circuit performing processing of outputting the control signals.


As described above, when the comparator circuit 1 is constructed by connecting a plurality of comparator elements 101 to 10N in parallel, the comparison accuracy of the comparator circuit 1 can be improved. Specifically, the comparison accuracy of the comparator circuit 1 is limited by DC offsets inherent in the comparator elements 101 to 10N connected in parallel, but the DC offsets VOSN of the group of comparator elements 101 to 10N connected in parallel correspond to 1/√n of the DC offset VOS1 of one comparator element. Thus, by constructing the comparator circuit 1 by connecting a plurality of comparator elements 101 to 10N in parallel, the comparison accuracy of the comparator circuit 1 can be improved.


In the comparator circuit 1 of this embodiment, the number n of comparator elements 101 to 10N set to the operation state by the switching circuit 20 can be switched. Since the respective DC offsets of the comparator elements disperse to a positive side and a negative side randomly, the larger the number of the comparator elements 101 to 10N set to the operation state is increased, the more the respective DC offsets of the comparator elements 101 to 10N cancel out each other, and the DC offset as the entire comparator circuit 1 becomes small. On the other hand, the smaller the number of comparator elements 101 to 10N set to the operation state, the larger the DC offset as the entire comparator circuit 1 becomes. Specifically, in the comparator circuit 1 of this embodiment, the DC offsets VOSN (=VOS1/√n) can be adjusted and the comparison accuracy with the comparator circuit 1 can be adjusted as the entire comparator circuit 1. Therefore, when high comparison accuracy is required for the comparator circuit 1, the more number of comparator elements 101 to 10N are turned to the operation state to thereby meet the requirement of the comparison accuracy. On the other hand, when comparison accuracy is not required so much for the comparison circuit 1, the less number of comparator elements 101 to 10N are turned to the non-operation state so as to lower the comparison accuracy of the comparator circuit 1, as well as to reduce consumed power in the comparator circuit 1.


When the comparator circuit 1 is a part of a parallel type A/D converting circuit for converting an analog signal read from a recording medium into a digital signal, the command signal COM to instruct comparison accuracy required for the comparator circuit 1 is preferably a signal showing the type of the recording medium. For example, when the recording medium is a read-only DVD-ROM (Digital Versatile Disc-Read Only Memory), there is a relatively low probability of occurrence of erroneous conversion when an analog signal read from the DVD-ROM is converted into a digital signal. On the other hand, in the case of the DVD-RAM (Digital Versatile Disc-Random Access Memory) capable of rewriting storage contents, there is a relatively high probability of occurrence of erroneous conversion when an analog signal read from the DVD-RAM is converted into a digital signal. Since the probability of occurrence of erroneous conversion when an analog signal is converted into a digital signal differs in this manner depending on the type of a recording medium, the switching circuit 20 may determine the number of comparator elements 101 to 10N to be set to the operation state according to the signal indicating the type of a recording medium. Specifically, when the switching circuit 20 takes in a signal COM indicating that it is a recording medium having a low probability of occurrence of erroneous conversion, it can achieve power saving while lowering the comparison accuracy of input potentials moderately by decreasing the number of comparator elements set to the operation state. On the other hand, when the switching circuit 20 takes in a signal COM indicating that it is a recording medium having a high probability of occurrence of erroneous conversion, it can increase the comparison accuracy of input potentials to suppress the erroneous conversion by increasing the number of comparator elements set to the operation state.


Further, when the comparator circuit 1 is a part of a parallel type A/D converting circuit for converting an analog signal read from a recording medium into a digital signal, the command signal COM to instruct comparison accuracy required for the comparator circuit 1 is preferably a signal showing the surface condition of the recording medium. For example, when a surface of a DVD is unclean or scratched, there is a relatively high probability of occurrence of erroneous conversion when an analog signal read from the DVD is converted into a digital signal. On the other hand, when the surface of the DVD is clean or unscratched, there is a relatively low probability of occurrence of erroneous conversion when an analog signal read from the DVD is converted into a digital signal. Since the probability of occurrence of erroneous conversion when an analog signal is converted into a digital signal differs in this manner depending on the surface condition of a recording medium, the comparator circuit 1 may determine the number of comparator elements 101 to 10N to be set to the operation state according to the signal indicating the surface condition of a recording medium. Specifically, when the switching circuit 20 takes in a signal COM indicating that the surface condition of a recording medium is good, it can achieve power saving while lowering the comparison accuracy of input potentials moderately by decreasing the number of comparator elements set to the operation state. On the other hand, when the switching circuit 20 takes in a signal COM indicating that the surface condition of a recording medium is bad, it can increase the comparison accuracy of input potentials to suppress the erroneous conversion by increasing the number of comparator elements set to the operation state.


Examples of the above-described recording medium include optical disks such as DVDs (Digital Versatile Disks) and CDs (Compact Disks), magnetic disks such as HDs (Hard Disks) and FDs (Floppy Disks), optical disks such as MOs (Magneto-Optical Disks), and the like. Note that an example in which the comparator circuit 1 is a part of a parallel-type A/D converting circuit is explained, but the application of the comparator circuit 1 is not limited to this; the comparator circuit 1 may be used as a component of another type of circuit.



FIG. 2 shows a circuit diagram of each of the comparator elements 101 to 10N which is a part of the above-described comparator circuit 1. In the comparator elements 101 to 10N, a drain of a transistor M3 and a drain of a transistor M5 are connected with each other, and the transistors M3 and M5 form an inverter. Similarly, a drain of a transistor M4 and a drain of a transistor M6 are connected with each other, and the transistors M4 and M6 form another inverter. Note that in this embodiment, the transistors M3 and M4 are N-channel type transistors, and the transistors M5 and M6 are P-channel type transistors.


The two inverters are connected by cross-coupling. Specifically, a gate of the transistor M3 and the drain of the transistor M4 are connected with each other, and a gate of the transistor M4 and the drain of the transistor M3 are connected with each other. A gate of the transistor M5 and the drain of the transistor M6 are connected with each other, and a gate of the transistor M6 and the drain of the transistor M5 are connected with each other


A source of the transistor M3 and a source of the transistor M4 are connected with each other, and a source of the transistor M5 and a source of the transistor M6 are connected with each other. Here, the transistors M3 and M4 function as an N-channel differential amplifier, and the transistors M5 and M6 function as a P-channel differential amplifier. A circuit formed by the transistors M3 to M6 is a circuit body performing an operation of comparing the input potentials Vinp, Vinn.


The drain of the transistor M3 and the drain of the transistor M5 are connected to an input end for inputting the input potential Vinp. The drain of the transistor M4 and the drain of the transistor M6 are connected to an input end for inputting the input potential Vinn. Further, the drain of the transistor M3 and the drain of the transistor M5 are connected to an output end for outputting the output potential Voutp. The drain of the transistor M4 and the drain of the transistor M6 are connected to an output end for outputting the output potential Voutn.


The output potentials Voutp, Voutn outputted from the two output ends are signals indicating a result of comparing the magnitude of the two input potentials Vinp, Vinn. Specifically, when the input potential Vinp is larger than the input potential Vinn, the output potential Voutp is the logic high potential VDD, and the output potential Voutn is the logic low potential VSS. On the other hand, when the input potential Vinp is smaller than the input potential Vinn, the output potential Voutp is the logic low potential VSS and the output potential Voutn is the logic high potential VDD.


Note that although the comparator circuit 1 of this embodiment is configured such that the two input potentials Vinp, Vinn are taken in via the two input signal lines Lin and the two input potentials Vinp, Vinn are compared with each other, the comparator circuit 1 may be configured such that one input potential Vinp is taken in via one input signal line Lin, and the one input potential Vinp is compared with a reference potential Vref. Further, although the comparator circuit 1 of this embodiment is configured such that the two output potentials Voutp, Voutn are outputted via the two output signal lines Lout, the comparator circuit 1 may be configured such that the comparison result is indicated by only the output potential Voutp outputted via one output signal line Lout.


A transistor M8 is a power supply switch disposed between the sources of the transistor M5 and transistor M6 and the logic high potential VDD, and turns to a connected state when 0 is applied to its gate to thereby supply the logic high potential VDD to the circuit body M3 to M6, and turns to a non-connected state when 1 is applied to its gate to thereby disconnect the circuit body M3 to M6 from the logic high potential VDD. Further, a transistor M7 is a grounding switch disposed between the sources of the transistor M3 and transistor M4 and the logic low potential VSS, and turns to a connected state when 1 is applied to its gate to thereby ground the circuit body M3 to M6, and turns to a non-connected state when 0 is applied to its gate to thereby disconnect the circuit body M3 to M6 from the logic low potential VSS. Note that in this embodiment, the transistor M7 is an N-channel type transistor, and the transistor M8 is a P-channel type transistor.


The transistor M1 is an input switch disposed between the input end to which the input potential Vinp is inputted and the drains of the transistors M3 and M5, and turns to a connected state when 0 is applied to its gate to thereby supply the input potential Vinp to the circuit body M3 to M6, and turns to a non-connected state when 1 is applied to its gate to thereby disconnect the input end for inputting the input potential Vinn from the circuit body M3 to M6. Further, the transistor M2 is an input switch disposed between the input end to which the input potential Vinn is inputted and the drains of the transistors M4 and M6, and turns to a connected-state when 0 is applied to its gate to thereby supply the input potential Vinn to the circuit body M3 to M6, and disconnects the input end for inputting the input potential Vinn from the circuit body M3 to M6 when 1 is applied to its gate. Note that in this embodiment, the transistors M1 and M2 are P-channel type transistors.


A NAND circuit 11 takes in a control signal CTRL and a clock CLK and outputs either 1 or 0 to the gates of the transistors M1 and M2 for driving the transistors M1 and M2. Further, a NAND circuit 12 takes in the control signal CTRL and the clock signal CLK and outputs either 1 or 0 to the gate of the transistor M8 for driving the transistor M8. Further, an AND circuit 13 takes in the control signal CTRL and the clock signal CLK to output either 1 or 0 to the gate of the transistor M7 to thereby drive the transistor M7. A correspondence table of output signals of the two NAND circuits 11, 12 and the AND circuit 13 corresponding to the control signal CTRL and the clock signal CLK is shown in FIG. 3. Note that each of the NAND circuit 11, the NAND circuit 12, and the AND circuit 13 corresponds to a switch setting device.


Next, the operation of the comparator elements 101 to 10N of this embodiment will be described. When the control signal CTRL is 0, the comparator elements 101 to 10N are set to the operation state. Now, when the clock signal CLK is 0, the two transistors M1 and M2 for taking the two input potentials Vinp, Vinn into the circuit body M3 to M6 turn to connected states, and hence the two input potentials Vinp, Vinn are supplied to the circuit body M3 to M6. On the other hand, the two transistors M7 and M8 for connecting to the logic high potential VDD and the logic low potential VSS turn to non-connected states, and hence the logic high potential VDD and the logic low potential VSS are not supplied to the circuit body M3 to M6, resulting in that the comparison of the two input potentials Vinp, Vinn is not performed.


When the clock signal CLK changes from 0 to 1 in the above-described state, the two transistors M1 and M2 for taking the two input potentials Vinp, Vinn into the circuit body M3 to M6 change from the connected states to non-connected states, and hence the input end of the two input potentials Vinp, Vinn are disconnected from the circuit body M3 to M6. On the other hand, the two transistors M7 and M8 for connecting to the logic high potential VDD and the logic low potential VSS change from the non-connected states to connected states, and hence the difference between the two input potentials Vinp, Vinn already supplied to the circuit body M3 to M6 is amplified, and a comparison result is outputted as the output potentials Voutp, Voutn from the output end.


Here, the transistors M3 to M6 function as a latch. Specifically, the transistors M3 to M6 keep retaining a state that one of the output potentials Voutp, Voutn is the logic high potential VDD, and the other one of them is the logic low potential VSS. Then, when the clock signal CLK returns again from 1 to 0, the two transistors M7 and M8 for connecting to the logic high potential VDD and the logic low potential VSS turn to non-connected states, and hence the retaining of the output potentials Voutp, Voutn finishes. Note that when the clock signal CLK returns again from 1 to 0, the two transistors M1 and M2 for taking the two input potentials Vinp, Vinn into the circuit body M3 to M6 turn to connected states, and hence the two input potentials Vinp, Vinn are outputted as they are as the output potentials Voutp, Voutn from the output end.


When the control signal CTRL is 1, the comparator elements 101 to 10N are set to non-connected states. Now, when the clock signal CLK is either 0 or 1, the two transistors M1 and M2 for taking the two input potentials Vinp, Vinn into the circuit body M3 to M6 turn to non-connected states, and hence the two input potentials Vinp, Vinn are not supplied to the circuit body M3 to M6. Further, the two transistors M7 and M8 for connecting to the logic high potential VDD and the logic low potential VSS both turn to non-connected states, and hence the circuit body M3 to M6 turns to a disconnected state from the logic high potential VDD and the logic low potential VSS.


In the above-described comparator circuit 1 of this embodiment, the switching circuit 20 sets the comparator elements 101 to 10N to non-connected states, and the NAND circuit 12 sets the transistor M8 to a non-connected state, to thereby electrically disconnect the circuit body M3 to M6 from the logic high potential VDD. If the circuit body M3 to M6 were connected to the logic high potential VDD when the comparator elements 101 to 10N are set to non-connected states, the differential amplifier M5, M6 connected to the logic high potential VDD is allowed to operate and causes the time constant of the entire circuit to change, and thus the comparison accuracy of the comparator circuit 1 is impaired. In this aspect, as in this embodiment, when the comparator elements 101 to 10N are set to non-connected states, the circuit body M3 to M6 of each of the comparator elements 101 to 10N is electrically disconnected from the logic high potential VDD with the transistor M8 being a high impedance, which result in that the comparator elements 101 to 10N which are set to the non-connected states do not affect the comparison operation of the other comparator elements 101 to 10N, and thereby the comparison accuracy as the entire comparator circuit 1 can be maintained.


With reference to FIG. 4 and FIG. 5, the effect of the comparator circuit according to the above-described embodiment will be described. FIG. 4 is a timing chart of a comparator circuit according to a conventional art, and FIG. 5 is a timing chart of the comparator circuit according to this embodiment. In the comparator circuit according to a conventional art between time t1 and time t2, according to that the difference Vinp−Vinn between input potentials is 0 or higher, the difference Voutp−Voutn between output potentials is VDD−VSS. However, between time t3 and time t4, even though the difference Vinp−Vinn between input potentials is 0 or lower, the difference Voutp−Voutn between output potentials is VDD−VSS since the absolute value of an input conversion offset voltage VOS,in is large. In this point, in the comparator circuit of this embodiment, since it is possible to adjust and reduce the input conversion offset voltage VOS,in/√n, the difference Voutp−Voutn between output potentials between time t3 and time t4 can be VDD−VSS according to that the difference Vinp−Vinn between input potentials is 0 or lower, and therefore a misjudgment due to DC offsets can be prevented.


While certain embodiments of the inventions have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.

Claims
  • 1. A comparator circuit, comprising: a plurality of comparator elements connected in parallel between at least one input signal line and at least one output signal line, each of said comparator elements configured to compare at least one input potential on the at least one input signal line and to output a comparison result to the at least one output signal line; anda switching device capable of setting each of said comparator elements to either an operation state to compare the at least one input potential or a non-operation state not to compare the at least one input potential, said switching device to switch the number of comparator elements which are set to the operation state.
  • 2. The comparator circuit according to claim 1, wherein said switching device is configured to provide each of said comparator elements with a control signal for setting said each comparator element to either the operation state or the non-operation state.
  • 3. The comparator circuit according to claim 1, wherein said switching device is configured to take in a signal indicating comparison accuracy required for said comparator circuit, and to determine the number of comparator elements to be set to the operation state based on the signal.
  • 4. The comparator circuit according to claim 3, wherein said comparator circuit is a part of a circuit for converting an analog signal read from a recording medium into a digital signal;wherein the signal indicating comparison accuracy required for said comparator circuit is a signal indicating a type of the recording medium; andwherein said switching device is configured to determine the number of comparator elements to be set to the operation state based on the signal indicating the type of the recording medium.
  • 5. The comparator circuit according to claim 3, wherein said comparator circuit is a part of a circuit for converting an analog signal read from a recording medium into a digital signal;wherein the signal indicating comparison accuracy required for said comparator circuit is a signal indicating a surface condition of the recording medium; andwherein said switching device is configured to determine the number of comparator elements to be set to the operation state based on the signal indicating the surface condition of the recording medium.
  • 6. The comparator circuit according to claim 4, wherein the recording medium is an optical disk, a magnetic disk or a magneto-optical disk.
  • 7. The comparator circuit according to claim 1, wherein each of said comparator elements includes a circuit body for performing an operation of comparing input potentials on the input signal lines and a switch disposed between a power supply potential and the circuit body, and comprisesa switch setting device for setting the switch connected to comparator elements which are set to the non-operation state to non-connected states, and disconnects the circuit body from the power supply potential.
  • 8. The comparator circuit according to claim 1, wherein each of said comparator elements includes a circuit body for performing an operation of comparing input potentials on the input signal lines, wherein:the circuit body has a first P-channel type transistor, a second P-channel type transistor, a first N-channel type transistor, and a second N-channel type transistor;a source of the first P-channel type transistor and a source of the second P-channel type transistor are connected with each other;a drain of the first P-channel type transistor and a gate of the second P-channel type transistor are connected with each other, and a drain of the second P-channel type transistor and a gate of the first P-channel type transistor are connected with each other;the drain of the first P-channel type transistor and a drain of the first N-channel type transistor are connected with each other, and the drain of the second P-channel type transistor and a drain of the second N-channel type transistor are connected with each other;a first input signal line and a first output signal line are connected to the drain of the first P-channel type transistor, and a second input signal line and a second output signal line are connected to the drain of the second P-channel type transistor;the drain of the first N-channel type transistor and a gate of the second N-channel type transistor are connected with each other, and the drain of a second N-channel type transistor and the gate of the first N-channel type transistor are connected with each other; anda source of the first N-channel type transistor and a source of the second N-channel type transistor are connected with each other.
  • 9. The comparator circuit according to claim 8, wherein each of said comparator elements includes:an input switch disposed between the circuit body and the input signal lines;a grounding switch disposed between the circuit body and a ground potential;a switch setting device for setting, when said each comparator element is set to the operation state, the input switch to a connected state and the grounding switch to a non-connected state according to a clock signal of a logic high potential, and setting the input switch to a non-connected state and the grounding switch to a connected state according to a clock signal of a logic low potential.
Priority Claims (1)
Number Date Country Kind
P2006-165071 Jun 2006 JP national