Compact modeling of TANOS program/erase operations for SPICE-like circuit simulations