Inverter transfer curves and SRAM noise margin evaluation based on an ultra-compact MOS model