Error in ocean script!

Discussion in 'Cadence' started by Samiran, Jun 8, 2010.

  1. Samiran

    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
     
    Samiran, Jun 8, 2010
    #1
  2. Samiran

    olivier burg Guest


    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
     
    olivier burg, Jul 1, 2010
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.