This disclosure relates to the field of
semiconductor technology, providing a memory and its operating method to mitigate the damage caused by
row hammer attacks. The memory includes a
memory array and a
control circuit. The
control circuit is configured to, upon meeting preset conditions, respond to a command address
signal and a
mode control signal to enter a first mode, whereby it begins updating the count
memory cell corresponding to the active word line at a first moment, and begins pre-charging the active word line at a second moment, using the count data as the count value for
row hammer refresh; or, upon not meeting preset conditions, respond to the command address
signal and the
mode control signal to enter a second mode, whereby it does not perform an update operation on the count
memory cell corresponding to the active word line, and begins pre-charging the active word line at a second moment, using the activation count value of the active word line in a dynamic
lookup table as the count value for
row hammer refresh. This achieves a balance between flexible configuration and
reliability assurance, mitigating the damage caused by row hammer attacks.