Class Mosfet2
A Level 2 Mosfet using models by A. Vladimirescu and S. Liu, The Simulation of MOS Integrated Circuits Using SPICE2, ERL Memo No. M80/7, Electronics Research Laboratory University of California, Berkeley, October 1980.
Inheritance
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
[Pin(0, "Drain")]
[Pin(1, "Gate")]
[Pin(2, "Source")]
[Pin(3, "Bulk")]
[Connected(0, 2)]
[Connected(0, 3)]
public class Mosfet2 : Component<Parameters>, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IParameterized<Parameters>, IRuleSubject
Constructors
Mosfet2(string)
Initializes a new instance of the Mosfet2 class.
Declaration
public Mosfet2(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the device. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Mosfet2(string, string, string, string, string, string)
Initializes a new instance of the Mosfet1 class.
Declaration
public Mosfet2(string name, string d, string g, string s, string b, string model)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name. |
string | d | The drain node. |
string | g | The gate node. |
string | s | The source node. |
string | b | The bulk node. |
string | model | The mosfet model. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
PinCount
The pin count for mofsets.
Declaration
[ParameterName("pincount")]
[ParameterInfo("Number of pins")]
public const int PinCount = 4
Field Value
Type | Description |
---|---|
int |
Methods
CreateBehaviors(ISimulation)
Creates the behaviors and stores them in the specified container.
Declaration
public override void CreateBehaviors(ISimulation simulation)
Parameters
Type | Name | Description |
---|---|---|
ISimulation | simulation | The simulation. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentException | Thrown if the simulation does not use an IComplexSimulationState. |
TypeNotFoundException | Thrown if a required behavior or parameter set could not be found. |
AmbiguousTypeException | Thrown if a behavior or parameter set could not be resolved unambiguously. |