werner2101 / spicelib

Tools to collect and test spice models
http://www.h-renrew.de/h/spicelib/doc/index.html
BSD 2-Clause "Simplified" License
34 stars 10 forks source link

NXP bipolar model errors: upstream report #4

Open werner2101 opened 14 years ago

werner2101 commented 14 years ago

I've wrote an upstream report to NXP about the errors in the models.

This Issue entry just tracks the progress.


Subject: low quality of pspice models Date: 2009-10-05

Dear Sir/Madam,

NXP provides spice models but the quality of the model files is very low.

There are several errors in the bipolar models provided by nxp: http://www.nxp.com/models/spicespar/zip/SST.zip

Please forward the appended text to the QA department.

Regards Werner Hoch

Here are the explanations of the errors, grouped by error type Please consider to fix the errors.

1. simple Syntax error

Model usage has a trailing NPN. that's wrong.

model file BCX56.prm replace "1 BCX56 NPN" with "1 BCX56"

2. Model definition does not match it's usage

model file 2PB709ART.prm replace "QTR1" with "TR1"

model file PBSS4540X.prm replace "1 PBSS4540X" with "1 PB4540X"

model file PDTC123YT.prm replace "TC2233Y" with "TC223Y"

3. Misplaces comment "*" of required statements

model file PBSS8110AS.prm replace "*.SUBCKT" with ".SUBCKT"

model file PBSS5160K.prm replace "*.MODEL" with ".MODEL"

model file PBSS5160U.prm replace "*.MODEL" with ".MODEL"

4. open nodes due to wrong node names

model file BCV47.prm replace "LE 3 333" with "LE 3 33"

model file PXTA14.prm replace "LE 3 333" with "LE 3 33"

5. misplaced .ENDS statement

The following model files contain a simple model without subcircuit. But even if there is no subcircuit, there's a ".ENDS" statement that usually ends a subcircuit definition. That's wrong. All ".ENDS" statements have to be removed. model files: 2PA1576Q.prm 2PA1576R.prm 2PA1576S.prm 2PC4081Q.prm 2PC4081R.prm 2PC4081S.prm 2PC4617Q.prm 2PC4617R.prm BC807-25.prm BC807-25W.prm BC807-40.prm BC807-40W.prm BC807.prm BC807W.prm BC817-16.prm BC817-16W.prm BC817-25.prm BC817-25W.prm BC817-40.prm BC817-40W.prm BC817.prm BC817W.prm BC846A.prm BC846AT.prm BC846AW.prm BC846B.prm BC846BT.prm BC846BW.prm BC846.prm BC846W.prm BC847A.prm BC847AT.prm BC847AW.prm BC847B.prm BC847BT.prm BC847BW.prm BC847C.prm BC847CT.prm BC847.prm BC847W.prm BC848B.prm BC848W.prm BC856AT.prm BC856AW.prm BC856B.prm BC856BT.prm BC856BW.prm BC856.prm BC856W.prm BC857A.prm BC857AT.prm BC857AW.prm BC857B.prm BC857BT.prm BC857BW.prm BC857C.prm BC857CT.prm BC857CW.prm BC857.prm BC857W.prm BC858B.prm BC858W.prm BC868.prm BC869.prm BCP51.prm BCP52-16.prm BCP53-16.prm BCP54-16.prm BCP55-16.prm BCP56-16.prm BCP69.prm BCW29.prm BCW30.prm BCX17.prm BCX18.prm BCX19.prm BCX51.prm BCX70G.prm BCX70H.prm BCX70J.prm BCX70K.prm BF550.prm BF620.prm BF622.prm BF820.prm BF820W.prm BF822.prm BF824W.prm BF840.prm BFS19.prm BFS20.prm BSR14.prm BSR19A.prm MMBT2222A.prm MMBT3904.prm MMBT3906.prm PMBT2222A.prm PMBT2222.prm PMBT2907A.prm PMBT2907.prm PMBT4403.prm PMBT5550.prm PMBT5551.prm PMSS3906.prm PMST2222A.prm PMST2222.prm PMST2369.prm PMST2907A.prm PMST4403.prm PMST5088.prm PMST5089.prm PMST5550.prm PMST5551.prm

werner2101 commented 13 years ago

related commit: 4edd29a63c408b7710b4

short update: nxp has changed most of the model definitions since the my mail to nxp. They fixed some errors, but introduced many more.

Most of the restistor equiped transistors don't have any resistor in the model.

The wrong .ENDS statmends are still there. But that's not a big issue, since this can be fixed automatically