AnsweredAssumed Answered

How to create and use a link to SPICE file

Question asked by JERRY_MARKETOS on May 6, 2004
I thought this information already existed in a post on the forum here,
but the search function didn't reveal anything so I'll post this one...

To create a link to SPICE file in GENESYS:

Note:  Information on this item is contained in the GENESYS Help menu.
Main menu HELP, Contents, switch to "Search" tab, then search for SPICE LINK
and choose the response "link to SPICE file", and inside the information that
comes up, also follow the link to the section in the user's guide.

The process is pretty straightforward overall, but I think the biggest stumbling
block is that the SPICE file is most often stored in a seperate workspace, then
called from the workspace where we're doing the simulation.  People often
don't realize the setup is this way.

Step 1: Create a new workspace to hold the SPICE model.
1a) Right click the "Design" folder and choose "Add link to Spice file"
(also called "Add Spice Model Link").
1b) This brings a dialogue allowing you to name the link.  Keep the default SPICE1, click OK.
1c) Next, you'll be asked if you wish to save the file into the Genesys Model directory.
Choose yes, and give it a name.  This names the Genesys .wsp file that will hold the Spice model.
1d) Next, you'll be presented with a dialogue box where you browse to the actual Spice file.
Click the icon with the three periods (to the left of the OK button) and browse to the SPICE model
location.  Choose the desired Spice model file and click OK.
1e) Most often, it will next read the name of the Spice model and then ask you if you desire
to change the name of the Spice model (from step 1b) to the new name, usually part-number specific.
Most often, the desire is to click "Yes", but the choice is  yours.
1f) Click SAVE in the workspace, then close.  We're done.  What we just did was to create a new
workspace (saved in the Model directory), and put a link to our Spice model in that workspace.

Note1:  The steps above end up with one single SPICE model saved in one workspace.
By repeating steps 1a-onward, you can add several different SPICE models into one workspace.
This is often done to save an entire family of models in one location.  For instance, to save
the entire family of BJT NPN transistors from a given vendor in one place.

Note2:  The main reason for holding the SPICE model in a seperate
workspace is so it can be used over and over again in the future
without having to link to it repeatedly.

Step 2:  Create the workspace that will use the SPICE model.
2a) Create a new workspace and place a component with the appropriate number of pins.
(This often includes diodes, transistors, or "N"-port blocks gotten from the linear components menu)
2b) In the component that will link to the SPICE model, open its dialogue box and click the MODEL button.
This brings up the "Change Model" dialogue box, which automatically looks in the Genesys Model directory.
The "Category" chooses from among the different workspaces in the Model directory.
The "New Model" chooses among the different Spice links that can be contained in the workspace.

Note:  As Spice models are nonlinear, they will require bias (unless the model contains only R,L,C
...which is rare).  Bias calculation requires presence of the HARBEC nonlinear analysis module.