Re: Gnucap is complaining that my MOSFET is not a BJT
al davis <[email protected]> Mon, 11 Oct 2010 10:55:03 -0400
| Newsgroups | gmane.comp.gnu.gnucap.general |
|---|---|
| Message-ID | <[email protected]> |
On Sunday 10 October 2010, Bryan Poling wrote: > Admittedly, I am probably doing something wrong here, but > when I try to run a simulation on an interleaved > switch-mode DC buck converter (in which I have 2 MOSFETS), I > get a complaint that my second MOSFET is not a BJT. I cannot > find anything anywhere where I suggest that it is, so I > don't know what's going on here. I am pretty new to GnuCap > (I have used BJT's before but not MOSFETS). Any help would > be appreciated. Here is my Simulation Script: .............. > .model StandardNMOS NMOS(LEVEL=1) .............. > Q2 2 4 5 StandardNMOS ........ > Q1 2 1 3 StandardNMOS In Spice format, the first letter of the label determines the device type. The letter "Q" says it is a BJT. You need to use the letter "M" instead. This behavior is Spice compatible. Other formats (Spectre, Verilog) do not have this restriction.