spectre alter from within ocean?

D

danmc

Guest
I can't seem to figure out how to access the spectre "alter" statement
from within ocean. Is there a way? It would be really unfortunate if
not.

Thanks
-Dan
 
Dan:
There is always a way. At first I used definitionFile() to load in a
file with alter statements which works in spectre but not in ultrasim.
I therefore switched to modelFile() to load in a file with alter
statements which works in both spectre and ultrasim.

modelFile(
'("mypath/mymodel.scs")
'("/mypath/alter_include")
)

An example alter include file is shown below. Note that in mmsim 6.0
usr1 and higher one can vary subcircuit parameters with ultrasim (see
sub= lines below).

alter_include:
simulator lang=spectre
alter0 alter param=a value=-1.4546
alter1 alter param=b value=1.65504
alter2 alter param=c value=1.38451
alter3 alter param=e value=0.963143

alter4 alter sub=I1.N2 param=e value=-0.93574
alter5 alter sub=I1.N2 param=f value=1.04871
---
Erik

danmc wrote:
I can't seem to figure out how to access the spectre "alter" statement
from within ocean. Is there a way? It would be really unfortunate if
not.

Thanks
-Dan
 
hey, thats a neat trick. I guess I need to stick in my various
analysis statements in there too. Thanks for the idea!

-Dan
 

Welcome to EDABoard.com

Sponsor

Back
Top