Post Go back to editing

Wrong gds value for level 3 MOSFET

Category: Software
Product Number: LTspice
Software Version: 26.0.2 MacOs
Hi,

I am running a simulation envolving an NMOS LEVEL3 model from cmosedu.com (for teaching purposes).
I use LTspice 26.0.2 for MacOS.
 
It seems that the gds value that appears in the Ouput Log after an OP analysis (w/ logopinfo option) is wrong.
Performing a DC sweep of Vds around its DC value (1.31V in my case) and plotting d(Id) gives a quite different value (about 4.5x smaller).
This second one happens to be almost exactly the same as the one I get from an OP analysis in ngspice (printing @M1[gm]).
 
I was wondering whether it could be a bug. 
I have attached my test schematic in which:
-- OP analysis --> Output log gives 33.8mS
-- DC Analysis --> plotting d(id(M1)) gives 7.5uS
 
Thanks in advance.
Pif.
  • Dear  ,

    Thank you for bringing this to our attention. The root cause of the discrepancy you observed is a bug in the MOS3 model code which LTspice inherited from spice3. It'll be fixed in the next release.

    I haven't checked myself, but it would appear that ngspice (also based on spice3) had this already corrected.

    Meanwhile, you can work around it by setting VMAX=0 in the .model card, if this is acceptable to you.

    Best Regards,
    Mathias

  • Hi mborn, and thank you for your reply. 

    Thanks for the tip too. With VMAX=0, I do get the same value in both analyses.
    It's off by about 30% though (10uS instead of 7.5u).

    Anyway, that's fine for me.

    Thanks again.

    Pif.

    PS: In my initial post, I meant that I got gds in ngspice by printing @M1[gds] and not @M1[gm], obviously

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.