Returning to
The address detection circuit 35 judges whether the row address RADD2 is indicating the address of the normal word line WL that has a defect or not. The boundary detection circuit 36 judges whether the row address RADD2 is indicating the address of the normal word line WLN positioned at the end of the normal-word-line area A1 or not. The usage detection circuit 37 is a circuit which judges whether the redundant word line RWL adjacent to the redundant word line RWL serving as the target of the target-row refresh is used or not.