The invention relates to a circuit and method for
processing general discrete magnitudes. The circuit comprises a configuring module, a first
comparator, a second
comparator, a first data register, a second data register and a logic circuit, wherein the configuring module is used for configuring reference voltages according to the types of the discrete magnitudes, the anisotropic input end of the first
comparator is connected with a first reference
voltage vrefA, the second comparator is connected with a second reference
voltage verfB, and the first comparator and the second comparator are respectively connected with (n-1) paths of discrete magnitudes. The first comparator is connected with the first data register, and the second comparator is connected with the second data register. The first data register is used for storing a comparison result, the second data register is used for storing a comparison result, and the logic circuit is used for comparing the results, conducting a logical operation according to parity and outputting an (n-1) bit operation result. According to the circuit and method for
processing general discrete magnitudes, the reference voltages are configured according to the types of the discrete magnitudes existing in the
system, and the discrete magnitude
processing result is identified through logical processing.