I have a netlist that specifies a resistor as:
R_R2 VREF N05436 rpo2 W=2.4u L=620u
The foundry's model library includes:
.subckt rpo2 n1 n2 l=length w=width
.param rsh=8 dw=0.06u ptc1=8.67e-4 ptc2=0 pvc1=3.22e-4 pvc2=-3.01e-5 pt='temper'
.param tfac='1.0+ptc1*(pt-25.0)+ptc2*(pt-25.0)*(pt-25.0)'
r1 n1 n2 'rsh*l/(w-dw)*(1+pvc1*abs(v(n2,n1))+pvc2*v(n2,n1)*v(n2,n1))*tfac'
.ends rpo2
When I run an Hspice simulation I get the error message:
Definition of model/subckt "rpo2" is not found for the element "xi1.x_i2.r_r2". Please specify a defined model/subckt name.
I have tried changing the resistor's name in the netlist to "X_R2", since the library uses a .subckt definition, rather than a model, but the same error message occurs (with "...x_r2").
My Hspice input file does include the library with ".lib 'libraryfilename.lib' ". The N and P MOS models in the library are found OK.
Why can't the .subckt/model be found?
Sorry for how the .subckt looks. I spent a lot of time trying to get the text to have the correct line breaks; it would look fine in the entry window, but the line breaks kept getting removed in the final version.
.libfile or is there a licensing issue that prevents you from doing so? \$\endgroup\$