To prepare to simulate using a SPICE or Spectre language model, you must give the elaborator the location of the model file. Two ways you can specify the location of model files are as follows:
- Define the
MODELPATHvariable in thehdl.var
- Use the
-modelpathoption forxmelab
To include a subcircuit in your design, use an amsd block and reference subcircuit files.
If you have an undefined node in a subcircuit, you must declare that node using an explicit global statement in the top-level scope of your design. For example, the following statement declares two global signals:
global 0 gnd vdd!
