Compact Modeling for Mosfet Devices