Sim QA: Test LTspice parameters and ako models of BJTs

This commit is contained in:
Mikolaj Wielgus 2022-10-20 03:59:17 +02:00
parent 662f6c7d83
commit 00c04e74ed
2 changed files with 32 additions and 1 deletions

View File

@ -624,3 +624,28 @@
*+ vbc_max = 123.456E+07
*+ vce_max = 123.456E+07
*+)
* LTspice Gummel-Poon parameters.
.MODEL _6_NPN_GUMMELPOON NPN(
+ IS=000.000E+07
+ NF=100.001E+07
+ ISE=200.002E+07
+ NE=300.003E+07
+ BF=400.004E+07
+ IKF=500.005E+07
+ VAF=600.006E+07
+ NR=700.007E+07
+ ISC=800.008E+07
+ NC=900.009E+07
*
+ BVCBO=1
+ NBVCBO=2
+ TBVCBO1=3
+ TBVCBO2=4
+ BVBE=5
+ IBVBE=6
+ NBVBE=7
+)
* AKO model.
.MODEL _7_NPN_GUMMELPOON AKO:_6_NPN_GUMMELPOON

View File

@ -277,7 +277,7 @@ BOOST_AUTO_TEST_CASE( Bjts )
const std::vector<SIM_LIBRARY::MODEL> models = m_library->GetModels();
BOOST_CHECK_EQUAL( models.size(), 6 );
BOOST_CHECK_EQUAL( models.size(), 8 );
for( int i = 0; i < models.size(); ++i )
{
@ -318,6 +318,12 @@ BOOST_AUTO_TEST_CASE( Bjts )
{ "c10", "qp0", "ich", "hf0", "hfe", "hfc", "hjei", "ahjei", "rhjei",
"hjci" } );
break;
case 6:
case 7:
TestTransistor( model, modelName, i, SIM_MODEL::TYPE::NPN_GUMMELPOON,
{ "is", "nf", "ise", "ne", "bf", "ikf", "vaf", "nr", "isc", "nc" } );
break;
}
}
}