Skip to content

Request to allow adding mosfet models to existing ones #172

@svenboulanger

Description

@svenboulanger

As far as I can understand, mosfet models are resolved as follows:

  • MosfetModelGenerator will resolve a PMOS or NMOS model and will read the LEVEL property to decide which model it maps to.
  • MosfetGenerator will then generate a transistor based on the model type.

As far as I can see, mosfet model levels and mosfet instances can only be defined in the constructor, but what I need to be able to is add support for models as needed, and make any combination:

var parser = new SpiceNetlistParser();
var parseResult = parser.ParseNetlist(netlistContent);

var spiceSharpReader = new SpiceSharpReader();
spiceSharpReader.UseBSIM1(level: 4); // This line would allow me to use BSIM1 on level=4.
spiceSharpReader.UseBSIM3v24(level: 39); // This line would allow me to also use BSIM 3.2.4 on level=39.
var spiceSharpModel = spiceSharpReader.Read(parseResult.FinalModel);

The UseBSIM1 and UseBSIM3v24 methods would be extension methods. But I cannot find any way to access the Level and Mosfets property in the generators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions