Spectre simulation ADE vs command line

M

Michael Durr

Guest
I'm able to successfully run a spectre simulation via ADE with version
4.4.6. But if I use Simulation -> Netlist -> Recreate and save the
resulting netlist to file and try to simulate it with >spectre
my_netlist.scs I get a completely different simulation result.

I'm a bit puzzled as to why this would be. Surely spectre is using
the exact same netlist in either case.

Any ideas?

Thanks,

Michael
 
Michael:
Look in the netlist directory for a file called runSimulation. Do you
get different results if you run runSimulation?
---
Erik

mcdurr@yahoo.com (Michael Durr) wrote in message news:<8698e2fa.0308011432.390a53b6@posting.google.com>...
I'm able to successfully run a spectre simulation via ADE with version
4.4.6. But if I use Simulation -> Netlist -> Recreate and save the
resulting netlist to file and try to simulate it with >spectre
my_netlist.scs I get a completely different simulation result.

I'm a bit puzzled as to why this would be. Surely spectre is using
the exact same netlist in either case.

Any ideas?

Thanks,

Michael
 
Thanks Erik.

If I simulate via ADE the simulation completes and I get reasonable
looking output.

If I use Simulation -> Netlist -> Recreate and save the resulting
netlist to file and try to simulate it with >spectre my_netlist.scs,
Spectre immediately finds fatal errors (models complaining about
divide by zero).

Now if I use runSimulation I will get identical output to that when I
run in ADE until spectre reports that it is entering remote command
mode, at which point spectre has another error.

So this leads me to believe that one of the command line options in
runSimulation is causing a different execution. My run simulation
contains the command:
spectre -env artist4.4.6 +log ../psf/spectre.out +inter=mpsc
+mpssession=spectre0_280 -format psfbin -raw ../psf input.scs

Now I've issolated these options and I'll always get that divide by
zero error unless I'm using the interactive options.

It's a bit disturbing that the batch mode result is different than the
interactive mode result.

Any explanation or other things I should try?

Thanks,

Michael

erikwanta@starband.net (Erik Wanta) wrote in message news:<84018314.0308011707.54af4cca@posting.google.com>...
Michael:
Look in the netlist directory for a file called runSimulation. Do you
get different results if you run runSimulation?
---
Erik

mcdurr@yahoo.com (Michael Durr) wrote in message news:<8698e2fa.0308011432.390a53b6@posting.google.com>...
I'm able to successfully run a spectre simulation via ADE with version
4.4.6. But if I use Simulation -> Netlist -> Recreate and save the
resulting netlist to file and try to simulate it with >spectre
my_netlist.scs I get a completely different simulation result.

I'm a bit puzzled as to why this would be. Surely spectre is using
the exact same netlist in either case.

Any ideas?

Thanks,

Michael
 
That's exactly right Erik. If I run:
spectre -env artist4.4.6 +log ../psf/spectre.out -format psfbin -raw
.../psf input.scs

I'll get fatal errors where the model complains about divide by zero.
If I simulate in ADE no errors are produced and I get a reasonable
simulation result.

Michael

erikwanta@starband.net (Erik Wanta) wrote in message news:<84018314.0308041314.365fe8ce@posting.google.com>...
Michael:
It is my understanding that +inter=mpsc +mpssession=spectre0_280 is
information needed when running in ADE so that artist can talk to
spectre. Are you saying that if you run:
spectre -env artist4.4.6 +log ../psf/spectre.out -format psfbin -raw
../psf input.scs

from the netlist directory, you get a different result than the ADE
result?
---
Erik

mcdurr@yahoo.com (Michael Durr) wrote in message news:<8698e2fa.0308040828.3bf6371a@posting.google.com>...
Thanks Erik.

If I simulate via ADE the simulation completes and I get reasonable
looking output.

If I use Simulation -> Netlist -> Recreate and save the resulting
netlist to file and try to simulate it with >spectre my_netlist.scs,
Spectre immediately finds fatal errors (models complaining about
divide by zero).

Now if I use runSimulation I will get identical output to that when I
run in ADE until spectre reports that it is entering remote command
mode, at which point spectre has another error.

So this leads me to believe that one of the command line options in
runSimulation is causing a different execution. My run simulation
contains the command:
spectre -env artist4.4.6 +log ../psf/spectre.out +inter=mpsc
+mpssession=spectre0_280 -format psfbin -raw ../psf input.scs

Now I've issolated these options and I'll always get that divide by
zero error unless I'm using the interactive options.

It's a bit disturbing that the batch mode result is different than the
interactive mode result.

Any explanation or other things I should try?

Thanks,

Michael

erikwanta@starband.net (Erik Wanta) wrote in message news:<84018314.0308011707.54af4cca@posting.google.com>...
Michael:
Look in the netlist directory for a file called runSimulation. Do you
get different results if you run runSimulation?
---
Erik

mcdurr@yahoo.com (Michael Durr) wrote in message news:<8698e2fa.0308011432.390a53b6@posting.google.com>...
I'm able to successfully run a spectre simulation via ADE with version
4.4.6. But if I use Simulation -> Netlist -> Recreate and save the
resulting netlist to file and try to simulate it with >spectre
my_netlist.scs I get a completely different simulation result.

I'm a bit puzzled as to why this would be. Surely spectre is using
the exact same netlist in either case.

Any ideas?

Thanks,

Michael
 
I don't think that I'm using compiled models. In either case
CMI_CONFIG is nil. If I create the ocean script and run it as you
instruct it simulates without error.

If I run >spectre input.scs from the command line the error message is
something like this:
Error found by spectr in model:instance during hierarchy flattening.
model_file: model: parameter 'w': Attempt to divide by zero.

If I run from the command line with spectre 5.0 it also runs without
error. The error only seems to occur with spectre 4.4.6.

Michael

erikwanta@starband.net (Erik Wanta) wrote in message news:<84018314.0308051825.5bd46730@posting.google.com>...
Michael:
Are you using compiled models? If so, there is a variable called
CMI_CONFIG that might be set in Cadence, but not in the terminal where
your are running command line. Type getShellEnvVar("CMI_CONFIG") in
the CIW to confirm.

You could generate an OCEAN script and see if that runs:
outPort=outfile("test.ocn")
asiWriteOceanScript(outPort asiGetCurrentSession() ?fullKey t)
close(outPort)

ocean < test.ocn or ocean and then load("test.ocn")

Can you post the error?
---
Erik


mcdurr@yahoo.com (Michael Durr) wrote in message news:<8698e2fa.0308051105.7af7f82b@posting.google.com>...
That's exactly right Erik. If I run:
spectre -env artist4.4.6 +log ../psf/spectre.out -format psfbin -raw
../psf input.scs

I'll get fatal errors where the model complains about divide by zero.
If I simulate in ADE no errors are produced and I get a reasonable
simulation result.

Michael

erikwanta@starband.net (Erik Wanta) wrote in message news:<84018314.0308041314.365fe8ce@posting.google.com>...
Michael:
It is my understanding that +inter=mpsc +mpssession=spectre0_280 is
information needed when running in ADE so that artist can talk to
spectre. Are you saying that if you run:
spectre -env artist4.4.6 +log ../psf/spectre.out -format psfbin -raw
../psf input.scs

from the netlist directory, you get a different result than the ADE
result?
---
Erik

mcdurr@yahoo.com (Michael Durr) wrote in message news:<8698e2fa.0308040828.3bf6371a@posting.google.com>...
Thanks Erik.

If I simulate via ADE the simulation completes and I get reasonable
looking output.

If I use Simulation -> Netlist -> Recreate and save the resulting
netlist to file and try to simulate it with >spectre my_netlist.scs,
Spectre immediately finds fatal errors (models complaining about
divide by zero).

Now if I use runSimulation I will get identical output to that when I
run in ADE until spectre reports that it is entering remote command
mode, at which point spectre has another error.

So this leads me to believe that one of the command line options in
runSimulation is causing a different execution. My run simulation
contains the command:
spectre -env artist4.4.6 +log ../psf/spectre.out +inter=mpsc
+mpssession=spectre0_280 -format psfbin -raw ../psf input.scs

Now I've issolated these options and I'll always get that divide by
zero error unless I'm using the interactive options.

It's a bit disturbing that the batch mode result is different than the
interactive mode result.

Any explanation or other things I should try?

Thanks,

Michael

erikwanta@starband.net (Erik Wanta) wrote in message news:<84018314.0308011707.54af4cca@posting.google.com>...
Michael:
Look in the netlist directory for a file called runSimulation. Do you
get different results if you run runSimulation?
---
Erik

mcdurr@yahoo.com (Michael Durr) wrote in message news:<8698e2fa.0308011432.390a53b6@posting.google.com>...
I'm able to successfully run a spectre simulation via ADE with version
4.4.6. But if I use Simulation -> Netlist -> Recreate and save the
resulting netlist to file and try to simulate it with >spectre
my_netlist.scs I get a completely different simulation result.

I'm a bit puzzled as to why this would be. Surely spectre is using
the exact same netlist in either case.

Any ideas?

Thanks,

Michael
 

Welcome to EDABoard.com

Sponsor

Back
Top