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.
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.
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 VOS
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 VOS
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.
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
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
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.
Number | Date | Country | Kind |
---|---|---|---|
P2006-165071 | Jun 2006 | JP | national |