create instance parameter
This commit is contained in:
parent
faf0d29095
commit
c0246e42a5
|
|
@ -39,13 +39,13 @@
|
||||||
// ADMS specific definitions
|
// ADMS specific definitions
|
||||||
`ifdef insideADMS
|
`ifdef insideADMS
|
||||||
`define P(p) (*p*)
|
`define P(p) (*p*)
|
||||||
`define MODEL @(initial_model)
|
`define INITIAL_MODEL @(initial_model)
|
||||||
`define INSTANCE @(initial_instance)
|
`define INITIAL_INSTANCE @(initial_instance)
|
||||||
`define NOISE @(noise)
|
`define NOISE @(noise)
|
||||||
`else
|
`else
|
||||||
`define P(p)
|
`define P(p)
|
||||||
`define MODEL
|
`define INITIAL_MODEL
|
||||||
`define INSTANCE
|
`define INITIAL_INSTANCE
|
||||||
`define NOISE
|
`define NOISE
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
|
|
@ -128,3 +128,6 @@
|
||||||
`define MPIsw(nam,def,uni, des) (*units=uni, desc=des*) parameter integer nam=def from[ 0: 1] ;
|
`define MPIsw(nam,def,uni, des) (*units=uni, desc=des*) parameter integer nam=def from[ 0: 1] ;
|
||||||
`define MPIty(nam,def,uni, des) (*units=uni, desc=des*) parameter integer nam=def from[ -1: 1] exclude 0 ;
|
`define MPIty(nam,def,uni, des) (*units=uni, desc=des*) parameter integer nam=def from[ -1: 1] exclude 0 ;
|
||||||
|
|
||||||
|
`define IPRnb(nam,def,uni, des) (*units=uni, type="instance", desc=des*) parameter real nam=def;
|
||||||
|
`define IPRcz(nam,def,uni, des) (*units=uni, type="instance", desc=des*) parameter real nam=def from[ 0:inf);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ else
|
||||||
my_gmin = $simparam("gmin");
|
my_gmin = $simparam("gmin");
|
||||||
|
|
||||||
// Initialize model constants
|
// Initialize model constants
|
||||||
|
`INITIAL_INSTANCE
|
||||||
|
begin
|
||||||
// Impact ionization constants (NPN - PNP)
|
// Impact ionization constants (NPN - PNP)
|
||||||
|
|
||||||
if (TYPE == 1) begin
|
if (TYPE == 1) begin
|
||||||
|
|
@ -85,4 +86,4 @@ inv_VGZEB_Tr = 1.0 / VGZEB_Tr;
|
||||||
inv_VDE = 1.0 / VDE;
|
inv_VDE = 1.0 / VDE;
|
||||||
|
|
||||||
// end: RvdT, November 2008; Zener tunneling current model
|
// end: RvdT, November 2008; Zener tunneling current model
|
||||||
|
end
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
// Mextram parameters
|
// Mextram parameters
|
||||||
`MPIco( LEVEL ,504 ,"" ,504 ,505 ,"Model level" )
|
`MPIco( LEVEL ,504 ,"" ,504 ,505 ,"Model level" )
|
||||||
`MPRco( TREF ,25.0 ,"" ,-273.0 ,inf ,"Reference temperature" )
|
`MPRco( TREF ,25.0 ,"" ,-273.0 ,inf ,"Reference temperature" )
|
||||||
`MPRnb( DTA ,0.0 ,"" ,"Difference between the local and global ambient temperatures" )
|
`IPRnb( DTA ,0.0 ,"" ,"Difference between the local and global ambient temperatures" )
|
||||||
`MPIcc( EXMOD ,1 ,"" ,0 ,2 ,"Flag for extended modeling of the reverse current gain" )
|
`MPIcc( EXMOD ,1 ,"" ,0 ,2 ,"Flag for extended modeling of the reverse current gain" )
|
||||||
`MPIcc( EXPHI ,1 ,"" ,0 ,1 ,"Flag for the distributed high-frequency effects in transient" )
|
`MPIcc( EXPHI ,1 ,"" ,0 ,1 ,"Flag for the distributed high-frequency effects in transient" )
|
||||||
`MPIcc( EXAVL ,0 ,"" ,0 ,1 ,"Flag for extended modeling of avalanche currents" )
|
`MPIcc( EXAVL ,0 ,"" ,0 ,1 ,"Flag for extended modeling of avalanche currents" )
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
`MPRnb( ATH ,0.0 ,"" ,"Temperature coefficient of the thermal resistance" )
|
`MPRnb( ATH ,0.0 ,"" ,"Temperature coefficient of the thermal resistance" )
|
||||||
`endif
|
`endif
|
||||||
|
|
||||||
`MPRoo( MULT ,1.0 ,"" ,0.0 ,inf ,"Multiplication factor" )
|
`IPRcz( MULT ,1.0 ,"" ,"Multiplication factor" )
|
||||||
`MPIty( TYPE ,1 ,"" ,"Flag for NPN (1) or PNP (-1) transistor type" )
|
`MPIty( TYPE ,1 ,"" ,"Flag for NPN (1) or PNP (-1) transistor type" )
|
||||||
`MPRoc( GMIN ,1.0e-13 ,"" ,0.0 ,1e-10 ,"Minimum conductance" )
|
`MPRoc( GMIN ,1.0e-13 ,"" ,0.0 ,1e-10 ,"Minimum conductance" )
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue