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.

TINA-TI: Invalid .ENDS command error

Other Parts Discussed in Thread: TINA-TI

Hello

I am trying to import a SPICE model for a bi-polar transistor which I could not find in the built-in library.

It is BF869 and its model parameters can be found here http://web.rfoe.net:8000/ZILIAOXIAZAI/PHILIPS/models/spicespar/data/BF869.html.

Since it is just described by a .model directive, I wrapped it up by .subckt as suggested in herehttps://e2e.ti.com/support/development_tools/webench_design_center/f/234/t/240300 and saved as a .cir file.

It looks like this:

.SUBCKT BF869TRAN C B E
Q1 C B E BF869
*
.MODEL BF869 NPN(IS=7.974E-15 ISE=2.266E-16 ISC=4.33E-12 XTI=3
+ BF=122 BR=6.235 IKF=0.01029 IKR=0.02746 XTB=1.5
+ VAF=25.51 VAR=19.43 VJE=0.4581 VJC=0.197
+ RE=0.3814 RC=0.439 RB=1 RBM=0.5 IRB=1E-06
+ CJE=1.742E-11 CJC=5.045E-12 XCJC=0.1041 FC=0.8555
+ NF=0.993 NR=0.999 NE=1.18 NC=1.397 MJE=0.3092 MJC=0.1947
+ TF=7.073E-10 TR=1E-08 PTF=0 ITF=0.1495 VTF=6.144 XTF=289.5
+ EG=1.11 KF=1E-9 AF=1 MFG=PHILIPS)
*
.ENDS

However opening it in the netlist editor of TINA-TI and compiling it ended up with an error of "Invalid .ENDS command."

Then I also tried to compile a simple macro like this:

.SUBCKT LPF 1 2 3
R1 1 2 1k
C1 2 3 1u
.ENDS LPF

To my surprise, this also failed with the same "Invalid .ENDS command" error, which totally baffled me...

I'm using Version 9.3.100.244 SF-TI. Any help will be appreciated.

  • Hi,

    "Netlist Editor" expects a valid SPICE netlist, the first character of which should be a "*".

    The forum post you referred to uses "New Macro Wizard", not the "Netlist Editor". It is also under the tools menu. Once the wizard comes up, you specify a name for the macro, then the file you saved, then click "Next" and follow through. A "macro" (.tsm file) will be created which contains the file you saved and can be inserted to your design schematic (.tsc file).

    Regards,
    JC

  • Hi JC,

    If you fail to compile in Netlist Editor, you also fail in New Macro Wizard with the same error message.

    But anyway your first point was exactly what I was missing. Adding "*" seems to have fixed the problem. Thanks for that.
    In that regard, I think it would be nice if the error message was more instructive ( such as "Missing * at the first line").

    Best,

    ht