1
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ Are you able to provide a link to the full .lib file or is there a licensing issue that prevents you from doing so? \$\endgroup\$ Commented Mar 14 at 19:12

1 Answer 1

1
\$\begingroup\$

I missed an important detail: the foundry's library file contains a number of different libraries. I solved the problem of the .subckt not being found by adding another line to the hspice input file, and specifying, with an additional parameter, the library with the resistor .subckt:

.lib libraryfile.lib RES

My original .lib call specified the MOS library with the additional parameter "TT" - I assumed that this was needed only to specify the process conditions (Normal, Fast-Fast, Fast-Slow, etc.). It does do this, but only for the MOS library.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.