rram simulation