Affirma: How to save spectre.fc in parametric simulation

Discussion in 'Cadence' started by Svetozar Broussev, Oct 7, 2004.

  1. Hello,

    I would like to save the transient final conditions (spectre.fc by default)
    of a circuit after running a parametric simulation. I would like to have the
    results for each run separately, so I can run after that pss and pnoise
    analysis whenever I want to.

    What Affrima does, it just saves one single file spectre.fc, perhaps the
    last run. Is there any simple way to make the parametric simulation and have
    at the end different *.fc files?

    Thanks,
    Svetozar
    --
     
    Svetozar Broussev, Oct 7, 2004
    #1
  2. Hi Svetozar,

    You can use some of the magic characters that spectre supports in file
    name specifications.

    In general with spectre native sweeps this works well - I would tend
    to specify my writefinal as "%A.fc" - where %A is the analysis name.
    However, if you're using the parametric analysis tool in ADE this
    doesn't work so well, since all points in the sweep name the same
    name.

    You could in theory use %T (time) or %P (process id) but these are
    the same for the whole simulation, since by default spectre does not
    restart for each point in a parametric run.

    So if you really want to do this, you can do it by doing:

    envSetVal("spectre.envOpts" "controlMode" 'string "batch")

    this needs to be done before you start ADE. Then in the writefinal
    specification, set it to (say)

    %A_%T_%P.fc

    Regards,

    Andrew.
     
    Andrew Beckett, Oct 13, 2004
    #2
  3. Thanks Andrew,

    I finally get it working. Running spectre in batch mode gives different *.fc
    files. The bad thing is that you have to know in advance what you are
    planning to do, before you start ADE.

    Meanwhile I found another solution, using ocean script. Although I haven't
    been ocean before, I easily created my own script. Using the Result browser,
    I located the original ocean script generated by ADE, and just by copy/paste
    I created many single runs having different options, including different
    *.fc files. It also gives a great freedom in running simulations in
    non-parametric fashion. The bad thing is that each run overwrites the data
    from the previous run, probably this could also be solved somehow.
    Anyway, I got what I wanted to.

    Regards
    Svetozar
     
    Svetozar Broussev, Oct 19, 2004
    #3
  4. You can change the results directory by using resultsDir(), to stop it
    overwriting the data from previous runs.

    Andrew.
     
    Andrew Beckett, Oct 20, 2004
    #4
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.