After learning in on making libs and handling nested subcircuits, I have one that finally works.
I have come up with messages of say: param1.param2.X1 where working backward I can find those things in the spice subcircuit but this one is not there. Below is the total messages (I.X1 near the end):
Warning: Ignoring unknown instance parameter “TBL•X1” of device I1•X1.
Warning: Unexpected number, “0”, in device I1•X1.
Warning: Unexpected number, “0”, in device I1•X1.
Warning: Unexpected number, “0.3”, in device I1•X1.
Warning: Unexpected number, “80N”, in device I1•X1.
Warning: Unexpected number, “0.6”, in device I1•X1.
Warning: Unexpected number, “0U8”, in device I1•X1.
Warning: Unexpected number, “18”, in device I1•X1.
Warning: Unexpected number, “3U”, in device I1•X1.
C:\Users\A53461\OneDrive - Microchip Technology Inc\Gstuff\SIM\ITR-4.qsch
Warning: Source I1•X1 has no value, 0 assumed
BSIM3v3.3.0 Parameter Checking. Model = SMSMOSFET•X2
So, X1 is the component in the schematic and the circuit is:
.SUBCKT VOM1271T A K -out +out
XU1 A K 0 N001 VO1263
XU2 +out N001 +out 0 I-FAST_TOFF
.ends
.SUBCKT I-FAST_TOFF Iin Iout NC2 NC1
V1 Iin Iout 0
W1 NC1 NC2 V1 W1
.model W1 CSW(Ron=100K Roff=10Meg IT=1uA)
.ends
.SUBCKT VO1263 A K -Iout +Iout
XU1 A K N001 K IRLED1
XU2 N001 K -Iout +Iout GAIN-MOD
R1 -Iout +Iout 1Meg
- Zout of driver
.ends
.SUBCKT IRLED1 1 2 3 4
F1 4 3 V1 1
V1 5 2 0
D1 1 5 D1
.model D1 D(IS=1P N=1.948621 RS=1.560495 BV=6 IBV=10U CJO=18.8P VJ=0.532794 M=0.27985 EG=1.424 TT=500N)
.ends
.SUBCKT GAIN-MOD +Iin -Iin -Iout +Iout
F1 -Iout +Iout V1 0.001
*current gain of driver
V1 +Iin -Iin 0
.backanno
.ends
I expected to find I1 in there (that’s eye one) but no.
Any ideas what it refers to?
Thanks
Gary