The embodiment of the present disclosure provides a
data bus inversion circuit and a memory, wherein the
data bus inversion circuit comprises: a preprocessing circuit configured to receive a comparison result of current data and previous data, and to preprocess the comparison result to output a preprocessing
signal; a first comparison circuit configured to receive the preprocessing
signal and output a first comparison
signal based on the preprocessing signal; the first comparison signal is used to determine whether a number of preset values in the comparison result is greater than or equal to a first value, wherein the preset value represents that corresponding bit data of the current data and the previous data is different; a second comparison circuit configured to receive the preprocessing signal and output a second comparison signal based on the preprocessing signal; the second comparison signal is used to determine whether the number of preset values is greater than or equal to a second value; and a
signal processing circuit configured to receive the first comparison signal, the second comparison signal and a data inversion signal corresponding to the previous data, and output a data inversion signal of the current data.