simulation 1T1MEM cell