A long lifetime, low error rate RRAM design with self-repair module*Project supported by the New Century Excellent Talents in University (No. NCET-12-0165) and the National Natural Science Foundation of China (Nos. 61472123, 61272396). (November 2016)