Transistor-Level Numerical Simulation and Compact Circuit Modeling