Error in ocean script!

S

Samiran

Guest
Dear all,

I am trying to run a batch simulation through ocean script where
dependent upon input signal frequency transient analysis simulation
time will be fixed. For this my approach is:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
....
stop_time = 1/freq ; freq is a design variable which changes in
each iteration.
....
analysis('tran ?start 0 ?stop stop_time ?errpreset "conservative" ?
write "spectre.ic" ?writefinal "spectre.fc" ?annotate "status" ?
finalTimeOp t ?maxiters "5" ?threshold "0.0" ?detail "node" ?sort
"name" )
....

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

But when I run the script I am getting an error:

Error found by spectre during transient analysis `tran'.
Stop time must follow start.
Analysis `tran' terminated prematurely due to error.

But when I hard code the stop_time inside the script like I have shown
below, it is working fine.

stop_time = 0.2m

Please help me!!!

Regards
Samiran
 
On Jun 8, 12:04 pm, Samiran <samiran....@gmail.com> wrote:
Dear all,

I am trying to run a batch simulation through ocean script where
dependent upon input signal frequency transient analysis simulation
time will be fixed. For this my approach is:

///////////////////////////////////////////////////////////////////////////­////////////////////////////////////////
...
stop_time =  1/freq   ; freq is a design variable which changes in
each iteration.
...
analysis('tran ?start 0 ?stop stop_time  ?errpreset "conservative"  ?
write "spectre.ic"  ?writefinal "spectre.fc"  ?annotate "status"  ?
finalTimeOp t  ?maxiters "5"  ?threshold "0.0"  ?detail "node"  ?sort
"name"  )
...

///////////////////////////////////////////////////////////////////////////­////////////////////////////////////////

But when I run the script I am getting an error:

Error found by spectre during transient analysis `tran'.
    Stop time must follow start.
Analysis `tran' terminated prematurely due to error.

But when I hard code the stop_time inside the script like I have shown
below, it is working fine.

stop_time = 0.2m

Please help me!!!

Regards
Samiran

What about stop_time = 1.0/freq instead of stop_time = 1/freq ?
I think 1 / freq is considered as integer / real and returns an
integer, so that if e.g freq=1M, stop_time = 1/1M returns 0 - hence
the spectre error -,
but stop_time=1.0/1M returns 1e-6.

Oliver
 

Welcome to EDABoard.com

Sponsor

Back
Top