Patent ID: 11862225
Assignee: CHANGXIN MEMORY TECHNOLOGIES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A comparison circuit, comprising:
a reference adjustment circuit, configured to: receive a first reference signal and output a second reference signal, wherein a voltage value of the second reference signal is equal to a voltage value of the first reference signal multiplied by an equivalent coefficient; and further configured to receive an adjustment signal, and unidirectionally adjust the equivalent coefficient within a preset value interval when the adjustment signal is received;
a signal receiving circuit, configured to receive the second reference signal and an external signal, and output a comparison signal, wherein the voltage value of the second reference signal is a voltage value inputted into the signal receiving circuit, an actual voltage to be compared with a voltage value of the external signal is a voltage value of a third reference signal, the voltage value of the third reference signal is equivalent to the voltage value of the second reference signal and an offset voltage of the signal receiving circuit which comes from an inevitable deviation in the device manufacturing process, and wherein when the voltage value of the external signal is greater than the voltage value of the third reference signal, a first comparison signal is output; and when the voltage value of the external signal is smaller than the voltage value of the third reference signal, a second comparison signal is output; and
a control circuit, configured to: receive an enable signal and the comparison signal; and during a period of continuously receiving the enable signal, output the adjustment signal when one of the first comparison signal or the second comparison signal is received, and terminate the output of the adjustment signal when the received comparison signal jumps from one of the first comparison signal or the second comparison signal to the other,
wherein the reference adjustment circuit comprises an operational amplifier and a plurality of series resistors, the operational amplifier has a non-inverting input terminal, an inverting input terminal and an output terminal, the non-inverting input terminal is configured to receive the first reference signal, a first number of resistors are connected in series between the inverting input terminal and the output terminal, and a second number of resistors are connected in series between the inverting input terminal and a ground terminal;
the operation of unidirectionally adjusting the equivalent coefficient within the preset value interval comprises: controlling an output terminal of the reference adjustment circuit to be connected to a far ground terminal of a resistor, in an order from the output terminal to the ground terminal, or in an order from the ground terminal to the output terminal,
wherein the signal receiving circuit comprises:
a signal amplifying sub-circuit, having a first input terminal that is configured to receive the external signal, a second input terminal that is configured to receive the second reference signal, a first output terminal that is configured to output a reference amplified signal, and a second output terminal that is configured to output an external amplified signal, wherein an absolute value of a difference between a voltage value of the reference amplified signal and a voltage value of the external amplified signal is greater than an absolute value of a difference between the voltage value of the second reference signal and the voltage value of the external signal; and
a data comparison sub-circuit, wherein a non-inverting input terminal of the data comparison sub-circuit is configured to receive the reference amplified signal, and a inverting input terminal of data comparison sub-circuit is configured to receive the external amplified signal, and the data comparison sub-circuit is configured to output the first comparison signal when the voltage value of the external amplified signal is greater than the voltage value of the reference amplified signal, and output the second comparison signal when the voltage value of the external amplified signal is smaller than the voltage value of the reference amplified signal.