A multi-scale methodology connecting device physics to compact models and circuit applications for OxRAM technology