-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
As far as I can understand, mosfet models are resolved as follows:
- MosfetModelGenerator will resolve a
PMOSorNMOSmodel and will read theLEVELproperty 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.
marcin-golebiowski
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request