The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Composing input.scs with cmdline (spectre)
https://designers-guide.org/forum/YaBB.pl?num=1139924635

Message started by chase.ng on Feb 14th, 2006, 5:43am

Title: Composing input.scs with cmdline (spectre)
Post by chase.ng on Feb 14th, 2006, 5:43am

Hi all,

Anyone know how to compose spectre input.scs using command line? Other than clicking the green traffic light in the analog design environment GUI. I need to automate some for the simulations.

Thanks.

CHASE

Title: Re: Composing input.scs with cmdline (spectre)
Post by bernd on Feb 14th, 2006, 6:09am

Maybe OCEAN (Open Command Environment for Analysis), will
be helpful for you.

Have a look at the online docs for the 'OCEAN Reference' guide.

Bernd

Title: Re: Composing input.scs with cmdline (spectre)
Post by chase.ng on Feb 17th, 2006, 4:39am

Apperantly OCEAN does not have anything that can create a netlist. Script written in OCEAN assumes that the netlist and input.scs already being composed.

Title: Re: Composing input.scs with cmdline (spectre)
Post by bernd on Feb 17th, 2006, 5:17am

I found these commands within 3 minutes in the OCEAN Reference manual.

simulator( 'spectre )
design( t_lib t_cell t_view )
createNetlist( ?display "nil" )

Tested them, and they do create a netlist!

Bernd

Title: Re: Composing input.scs with cmdline (spectre)
Post by Andrew Beckett on Feb 18th, 2006, 6:25am

Bernd is quite correct. The only limitation is that you can't create a netlist from the ocean executable - but you can from DFII executables (e.g. icms. If you don't want it to be graphical, you can always use icms -nograph -restore myScript.ocn .

Regards,

Andrew.

Title: Re: Composing input.scs with cmdline (spectre)
Post by chase.ng on Feb 22nd, 2006, 6:22am

Hi all,

Yeah, thanks a lot, that remind me that I did try out the createNetlist from ocean executable long long time ago but no netlist is created. I thought it cannot be used.

Chase

Title: Re: Composing input.scs with cmdline (spectre)
Post by chase.ng on Feb 27th, 2006, 12:14pm

Hi all,

It works, anyway, 1 more question, how can I change the directory the netlist being created?

chase

Title: Re: Composing input.scs with cmdline (spectre)
Post by Andrew Beckett on Feb 28th, 2006, 7:41am

Use this at the beginning of your OCEAN script:


Code:
envSetVal("asimenv.startup" "projectDir" 'string  "/path/to/my/simRoot")


Note, it will still create the directory structure underneath that cellname/simulator/viewname/netlist as is used in ADE. Nothing you can do about that, sorry!

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.