A 16Mb dual-mode ReRAM macro with sub-14ns computing-in-memory and memory functions enabled by self-write termination scheme | IEEE Conference Publication | IEEE Xplore