Improvement of sensing margin and reset switching fail of RRAM. (June 2019)