View previous topic :: View next topic |
Author |
Message |
nomind Apprentice
Joined: 03 Feb 2005 Posts: 270
|
Posted: Mon Nov 14, 2005 10:30 pm Post subject: SPICE Segmentation violation |
|
|
Hello,
I'm wondering if anyone here has any experience with the Portage implementation of SPICE (circuit simulation). Whenever I try to run a spice script, the bloody thing segfaults. Any clues as to why?
Thanks |
|
Back to top |
|
|
zatalian Apprentice
Joined: 27 Aug 2002 Posts: 179 Location: Gent, Belgium
|
Posted: Tue Nov 15, 2005 11:47 am Post subject: |
|
|
What version of spice is that? There are a few spice versions in portage.
sci-electronics/ng-spice-rework is working fine over here after it got installed while emerging geda. |
|
Back to top |
|
|
nomind Apprentice
Joined: 03 Feb 2005 Posts: 270
|
Posted: Tue Nov 15, 2005 7:05 pm Post subject: |
|
|
Thanks for the reply!
I'm using sci-electronics/spice (version 3.5.5, the current stable), and have temporarily switched to gnucap, since it's mostly spice-compatible. However, I will definitely unmask ng-spice-rework and give it a shot.
Thank you. |
|
Back to top |
|
|
zatalian Apprentice
Joined: 27 Aug 2002 Posts: 179 Location: Gent, Belgium
|
Posted: Wed Nov 16, 2005 10:04 am Post subject: |
|
|
Looks like i have sci-electronics/spice installed to.
It is working without segfaults over here.
What circuit are you trying to simulate? |
|
Back to top |
|
|
nomind Apprentice
Joined: 03 Feb 2005 Posts: 270
|
Posted: Sun Nov 27, 2005 11:49 pm Post subject: |
|
|
Sorry for the delay in replying. I haven't logged in here for more than a week.
Even the simplest circuits segfault spice. However, for thoroughness, here's the circuit I'm trying to simulate:
Code: |
common-emitter amplifier
vinput 1 0 sin (0 1.5 2000 0 0)
r1 1 2 1k
q1 3 2 0 mod1
rspkr 3 4 8
v1 4 0 dc 15
.model mod1 npn
.tran 0.02m 0.74m
.plot tran v(1,0) i(v1)
.end
|
ngspice works great though (well almost; it doesn't segfault, but it does complain about the "level").
I guess I should tone down the CFLAGS for sci-electronics/spice
Thanks |
|
Back to top |
|
|
|