Difference between revisions of "Resistor"

From Vlsiwiki
Jump to: navigation, search
 
Line 32: Line 32:
 
  <br />
 
  <br />
 
  endmodule
 
  endmodule
 +
 +
Taken from Cadence AHDL Library, RES.va

Latest revision as of 05:09, 13 November 2009

`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

Taken from Cadence AHDL Library, RES.va