An ultra-compact MOS model in nanometer technologies