This script reads a file containing an HSPICE or Spectre circuit model definition, adds the appropriate model to the active schematic and assigns all the model parameters specified in the file. There is significant error checking to make sure things go smoothly with this process.
To use the script:
Prepare your file. The file must only contain the .model statement from the netlist. You must also prepare the file to specify the appropriate AWR model. In these files there are model lines, they either being with "model" or ".model". The 3rd word on that line defines the name of the model that will be used. If necessary, replace this 3rd word with the corresponding AWR element model name, e.g. "SDIODE", "GBJT3", "MOSN3_4A", etc. There are some common names that are already mapped to the appropriate models including:
NPN in the netlist will use the GBJT AWR model.
BSIM3V3 in the netlist will use the BSIM3 AWR model.
PNP in the netlist will use the GBJT_PNP AWR model.
Open the schematic where you would like the model to be created.
Run the script as described above
A dialog will open asking you to browse to your file.
When you are finished, you will see the model in your schematic. You will also see a log indicating what model parameters were changed.
If the script runs across any model parameters it doesn't recognize, they are also listed in the log as such.