This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WEBENCH® Tools/LM5116: .end DOES NOT MATCH .SUBCKT

Part Number: LM5116
Other Parts Discussed in Thread: CSD19531Q5A

Tool/software: WEBENCH® Design Tools


**** 09/14/20 12:35:44 ******* PSpice 17.4.0 (Nov 2018) ******* ID# 0 ********

** Profile: "SCHEMATIC1-test" [ C:\Users\naman\Documents\Rightbot_Design\TI_Pspice\lm5116-pspicefiles\schematic1\test.sim ]


**** CIRCUIT DESCRIPTION


******************************************************************************


** Creating circuit file "test.cir"
** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

*Libraries:
* Profile Libraries :
* Local Libraries :
* From [PSPICE NETLIST] section of C:\SPB_Data\cdssetup\OrCAD_PSpiceTIPSpice_Install\17.4.0\PSpice.ini file:
.lib "nom_pspti.lib"
.lib "nom.lib"

*Analysis directives:
.TRAN 0 1 0
.OPTIONS ADVCONV
.PROBE64 V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
.INC "..\SCHEMATIC1.net"

**** INCLUDING SCHEMATIC1.net ****
* source LM5116
X_U2 N00204 N00288 N00358 N00481 N00526 0 N00607 N00794 N00814 N02270 0
+ 0 N01220 0 N01177 N01041 0 N00980 N01035 N00937 0 LM5116_TRANS
V_V1 N00204 0 52Vdc
R_R1 N00288 N00204 60.4K TC=0,0
R_R2 0 N00288 2.1K TC=0,0
R_R3 0 N00358 22K TC=0,0
R_R4 N00204 N00481 1Meg TC=0,0
C_C1 0 N00526 2n TC=0,0
C_C2 0 N00607 100n TC=0,0
C_C3 N00806 N00794 330p TC=0,0
C_C4 N00814 N00794 22p TC=0,0
R_R5 N00814 N00806 232K TC=0,0
C_C5 N00980 N00937 100n TC=0,0
D_D1 N01041 N00980 Dbreak
C_C6 0 N01041 1u TC=0,0
X_X1 N00204 N01035 N00937 CSD19531Q5A
X_X2 N00937 N01177 N01220 CSD19531Q5A
X_X3 N00204 N01035 N00937 CSD19531Q5A
X_X4 N00937 N01177 N01220 CSD19531Q5A
C_C7 N00204 0 2.2u TC=0,0
C_C8 0 N00204 2.2u TC=0,0
R_R6 0 N01220 2m TC=0,0
C_C9 0 N02270 270u TC=0,0
C_C10 0 N02270 270u TC=0,0
R_R7 N00794 N02270 221K TC=0,0
R_R8 0 N00794 11.8K TC=0,0
L_L1 N00937 N02270 10uH
I_I1 N02270 0 DC 20Adc

**** RESUMING test.cir ****
.END

WARNING(ORPSIM-15223): Library file C:\SPB_Data\cdssetup\pspTILibDir\nom_pspti.lib has changed since index file nom_pspti.ind was created.

WARNING(ORPSIM-15227): The timestamp changed from Mon Jul 20 09:52:32 2020 to Mon Sep 14 12:34:34 2020.

INFO(ORPSIM-15422): Making new index file nom_pspti.ind for library file nom_pspti.lib.

Index has 82519 entries from 4323 file(s).
+ ( 78 9.04E-12 )
+ ( 79 9.03E-12 )
+ ( 80 9.03E-12 )
+ ( 81 9.03E-12 )
+ ( 82 9.05E-12 )
+ ( 83 9.09E-12 )
+ ( 84 9.15E-12 )
+ ( 85 9.27E-12 )
+ ( 86 9.48E-12 )
+ ( 87 9.78E-12 )
+ ( 88 9.75E-12 )
+ ( 89 9.72E-12 )
+ ( 90 9.69E-12 )
+ ( 91 9.66E-12 )
+ ( 92 9.63E-12 )
+ ( 93 9.60E-12 )
+ ( 94 9.57E-12 )
+ ( 95 9.55E-12 )
+ ( 96 9.51E-12 )
+ ( 97 9.51E-12 )
+ ( 98 9.51E-12 )
+ ( 99 9.51E-12 )
+ ( 100 9.51E-12 )
r2 6 0 1e6
c1 3 7 1e-15
v1 7 0 DC 0.0V
e3 8 0 value {1*I(v1)}
r3 8 0 1e6
g1 1 2 value {-v(6,0)*v(8,0)}
.ends cg
------$
ERROR(ORPSIM-16362): Name on .ENDS does not match .SUBCKT
+ ( 78 3.49E-10 )
+ ( 79 3.46E-10 )
+ ( 80 3.43E-10 )
+ ( 81 3.41E-10 )
+ ( 82 3.39E-10 )
+ ( 83 3.36E-10 )
+ ( 84 3.34E-10 )
+ ( 85 3.32E-10 )
+ ( 86 3.30E-10 )
+ ( 87 3.27E-10 )
+ ( 88 3.26E-10 )
+ ( 89 3.24E-10 )
+ ( 90 3.22E-10 )
+ ( 91 3.21E-10 )
+ ( 92 3.19E-10 )
+ ( 93 3.18E-10 )
+ ( 94 3.17E-10 )
+ ( 95 3.16E-10 )
+ ( 96 3.15E-10 )
+ ( 97 3.15E-10 )
+ ( 98 3.15E-10 )
+ ( 99 3.15E-10 )
+ ( 100 3.15E-10 )
r2 6 0 1e6
c1 3 7 1e-15
v1 7 0 DC 0.0V
e3 8 0 value {1*I(v1)}
r3 8 0 1e6
g1 1 2 value {-v(6,0)*v(8,0)}
.ends cd
------$


ERROR(ORPSIM-16362): Name on .ENDS does not match .SUBCKT

How to solve this issue of .End does not match .subckt??

  • Hi Naman,

    We should end the subckt with same name as we started it. Can you try to make it same? Removing the subckt name from .ends should also help( E.g. Use .ends only instead of .ends cd). 

    PSpice, being a Windows tool, removes the last 2 characters from each line when reading the input files. So if the LIB was saved as a UNIX text file and only has a single “LF” end-of-line character, an extra character would be removed and the error occurs.

    Kindly refer below E2E thread for more details: https://e2e.ti.com/support/tools/sim-hw-system-design/f/234/t/969668

    Best Regards,

    Bhushan