Difference between revisions of "Resistor"

From Vlsiwiki
Jump to: navigation, search
(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…')
 
Line 1: Line 1:
`include "discipline.h"
+
`include "discipline.h"
`include "constants.h"
+
`include "constants.h"
 
+
<br />
// $Date: 1997/08/28 05:46:25 $
+
// $Date: 1997/08/28 05:46:25 $
// $Revision: 1.1 $
+
// $Revision: 1.1 $
//
+
//
//
+
//
// Based on the OVI Verilog-A Language Reference Manual, version 1.0 1996
+
// Based on the OVI Verilog-A Language Reference Manual, version 1.0 1996
//
+
//
//
+
//
//-------------------
+
//-------------------
// res
+
// res
//
+
//
// -  resistor
+
// -  resistor
//
+
//
// vp,vn: terminals (V,A)
+
// vp,vn: terminals (V,A)
//
+
//
// INSTANCE parameters
+
// INSTANCE parameters
//    r = resistance (Ohms)
+
//    r = resistance (Ohms)
//
+
//
// MODEL parameters
+
// MODEL parameters
//    {none}
+
//    {none}
//
+
//
 
+
<br />
module res(vp, vn);
+
module res(vp, vn);
inout vp, vn;
+
inout vp, vn;
electrical vp, vn;
+
electrical vp, vn;
parameter real r = 0;
+
parameter real r = 0;
 
+
<br />
  analog
+
analog
      V(vp, vn) <+ r*I(vp, vn);
+
V(vp, vn) <+ r*I(vp, vn);
 
+
<br />
endmodule
+
endmodule

Revision as of 05:08, 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