Remove TL072.031 from regression test.

This commit is contained in:
Jeff Young 2023-01-31 14:40:46 +00:00
parent 6dd7f09e2b
commit 9ca539b416
4 changed files with 39 additions and 47 deletions

View File

@ -1,6 +1,8 @@
* A dual opamp ngspice model
* Actual circuit uses TL072.301, available from TI, but we substitute a similar
* model for the regression test to avoid any potential licensing issues.
.subckt TL072c 1out 1in- 1in+ vcc- 2in+ 2in- 2out vcc+
.include TL072.301
XU1A 1in+ 1in- vcc+ vcc- 1out TL072
XU1B 2in+ 2in- vcc+ vcc- 2out TL072
.include TL072-like.lib
XU1A 1in+ 1in- vcc+ vcc- 1out OPAMP
XU1B 2in+ 2in- vcc+ vcc- 2out OPAMP
.ends

View File

@ -0,0 +1,33 @@
* An opamp similar to the TI TL072.
* IN+ IN- Vcc Vee OUT
.subckt OPAMP 1 2 101 102 82
*
J1 11 2 10 JX
J2 12 1 10 JX
D1 82 53 DX
D2 54 82 DX
D3 90 91 DX
D4 92 90 DX
D5 102 101 DX
R1 6 9 100000
R2 8 82 150
R3 7 99 150
R4 10 99 1000000
R5 102 11 3500
R6 102 12 3500
R7 101 102 2100
HLIM 90 0 V4 1K
GA 6 0 11 12 300E-6
GCM 0 6 10 99 9E-9
ISS 101 10 DC 200E-6
V1 9 0 DC 0
V2 101 53 DC 2.5
V3 54 102 DC 2.5
V4 7 8 DC 0
V5 91 0 DC 15
V6 0 92 DC 15
FB 7 99 POLY(5) V1 V2 V3 V5 V6 0 5E6 -5E6 5E6 5E6 -5E6
EGND 99 0 POLY(2) (101,0) (102,0) 0 0.5 0.5
.model DX D(is=800E-18)
.model JX PJF(is=15E-12 beta=270E-6 vto=-1)
.ends

View File

@ -1,43 +0,0 @@
* TL072 OPERATIONAL AMPLIFIER "MACROMODEL" SUBCIRCUIT
* CREATED USING PARTS RELEASE 4.01 ON 06/16/89 AT 13:08
* (REV N/A) SUPPLY VOLTAGE: +/-15V
* CONNECTIONS: NON-INVERTING INPUT
* | INVERTING INPUT
* | | POSITIVE POWER SUPPLY
* | | | NEGATIVE POWER SUPPLY
* | | | | OUTPUT
* | | | | |
.SUBCKT TL072 1 2 3 4 5
*
C1 11 12 3.498E-12
C2 6 7 15.00E-12
DC 5 53 DX
DE 54 5 DX
DLP 90 91 DX
DLN 92 90 DX
DP 4 3 DX
EGND 99 0 POLY(2) (3,0) (4,0) 0 .5 .5
FB 7 99 POLY(5) VB VC VE VLP VLN 0 4.715E6 -5E6 5E6 5E6 -5E6
GA 6 0 11 12 282.8E-6
GCM 0 6 10 99 8.942E-9
ISS 3 10 DC 195.0E-6
HLIM 90 0 VLIM 1K
J1 11 2 10 JX
J2 12 1 10 JX
R2 6 9 100.0E3
RD1 4 11 3.536E3
RD2 4 12 3.536E3
RO1 8 5 150
RO2 7 99 150
RP 3 4 2.143E3
RSS 10 99 1.026E6
VB 9 0 DC 0
VC 3 53 DC 2.200
VE 54 4 DC 2.200
VLIM 7 8 DC 0
VLP 91 0 DC 25
VLN 0 92 DC 25
.MODEL DX D(IS=800.0E-18)
.MODEL JX PJF(IS=15.00E-12 BETA=270.1E-6 VTO=-1)
.ENDS


View File

@ -130,7 +130,7 @@ BOOST_FIXTURE_TEST_CASE( DualNMOSAmp, TEST_SIM_REGRESSIONS_FIXTURE )
MOCK_EXPECT( program.GetLocalEnvVariables ).returns( ENV_VAR_MAP() );
TestNetlist( "issue13162" );
TestTranPoint( 0.030, { { "V(out)", 0.535 } } );
TestTranPoint( 0.030, { { "V(out)", 0.557 } } );
TestTranPoint( 0.035, { { "V(out)", -1.437 } } );
}