A_Programmer wrote on Jul 7th, 2006, 11:04pm:Thanks a lot Geoffrey. Do you mean that I should add:
`define q 1.6e-19
in my verilog code?
Yikes! No, you should have a few digits more. Right now, the AMS LRM says
`define P_Q 1.602176462e-19
whereas BSIM3 has hard-coded
#define Charge_q 1.60219e-19
You can try that value, or you can try to find the actual value used in Spice, if you have the source code.