diff --git a/src/SpiceSharpParser/ModelReaders/Netlist/Spice/Readers/EntityGenerators/Models/MosfetModelGenerator.cs b/src/SpiceSharpParser/ModelReaders/Netlist/Spice/Readers/EntityGenerators/Models/MosfetModelGenerator.cs index af0a5704..fbe89fda 100644 --- a/src/SpiceSharpParser/ModelReaders/Netlist/Spice/Readers/EntityGenerators/Models/MosfetModelGenerator.cs +++ b/src/SpiceSharpParser/ModelReaders/Netlist/Spice/Readers/EntityGenerators/Models/MosfetModelGenerator.cs @@ -17,7 +17,7 @@ public MosfetModelGenerator() Levels.Add(1, (string name, string type, string version) => { var m = new Mosfet1Model(name); - switch (type) + switch (type.ToLower()) { case "nmos": m.SetParameter("nmos", true); break; case "pmos": m.SetParameter("pmos", true); break; @@ -29,7 +29,7 @@ public MosfetModelGenerator() Levels.Add(2, (string name, string type, string version) => { var m = new Mosfet2Model(name); - switch (type) + switch (type.ToLower()) { case "nmos": m.SetParameter("nmos", true); break; case "pmos": m.SetParameter("pmos", true); break; @@ -41,7 +41,7 @@ public MosfetModelGenerator() Levels.Add(3, (string name, string type, string version) => { var m = new Mosfet3Model(name); - switch (type) + switch (type.ToLower()) { case "nmos": m.SetParameter("nmos", true); break; case "pmos": m.SetParameter("pmos", true); break;