Resistor
From Vlsiwiki
Revision as of 23:37, 8 November 2009 by Test (Talk | contribs) (Created page with '`include "discipline.h" `include "constants.h" // $Date: 1997/08/28 05:46:25 $ // $Revision: 1.1 $ // // // Based on the OVI Verilog-A Language Reference Manual, version 1.0 199…')
`include "discipline.h" `include "constants.h"
// $Date: 1997/08/28 05:46:25 $ // $Revision: 1.1 $ // // // Based on the OVI Verilog-A Language Reference Manual, version 1.0 1996 // // //------------------- // res // // - resistor // // vp,vn: terminals (V,A) // // INSTANCE parameters // r = resistance (Ohms) // // MODEL parameters // {none} //
module res(vp, vn); inout vp, vn; electrical vp, vn; parameter real r = 0;
analog V(vp, vn) <+ r*I(vp, vn);
endmodule