Andrew Beckett
Senior Fellow
Offline
Life, don't talk to me about Life...
Posts: 1742
Bracknell, UK
|
It sounds as if you created a view with the tool "text editor", and put a spectre subckt in it. If so, that's not how you do it.
You need to create a symbol, and then (usually) copy that symbol to a view called "spectre". This acts as a "stopping" view to tell the netlister not to expand the hierarchy any more.
You then need to set up the CDF for the component. Go to Tools->CDF->Edit CDF in the CIW, and browse to pick your component. Change the CDF type to Base (this is important, otherwise it doesn't get saved).
Add any parameters that need to be passed into your subckt. Make sure these parameters have a type of string, parseAsNumber set to yes, parseAsCEL set to yes. In the simulation information section, hit Edit, and then change the simulator cyclic to "spectre". For instParameters list the names of any parameters that need to be passed into the subckt - using the names that appear in the subckt. Hopefully these are the same as you've called them in the parameters section of the CDF, if not you'll need to use the propMapping field - search in the docs for that if you need it (I don't want to confuse you).
Set the component name in the spectre simInfo to the name of your subckt. Set the term Order to list the pin names on your symbol, in the same order they appear in your subckt.
Then, in ADE, specify Setup->Model Libraries, and reference the file containing your subckt model, in the same way other models are provided.
I hope that helps. This is covered in the documentation (can't remember where off the top of my head), by the way.
Best Regards,
Andrew.
|