[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: newbie opamp blues



OK, here is the latest. I reviewed opamp-1.sym and opamp-2.sym. Neither one had even a semblance of anything resembling a pin attribute.

So, I renamed opamp-1.sym and copied in the one you sent in your email.

Then, using refdes=U1, file=/yadda/yadda/ua741.inc and model=UA741, gnetlist still puts "unknown" into the circuit:
XU1 0 2 5 4 1 unknown
V1 3 0 DC 2V
V2 4 5 DC 24V
R1 3 2 10k
R2 2 1 40k
*vvvvvvvv Included SPICE model from /usr/src/geda-install/share/gEDA/sym/spice/ua741.inc vvvvvvvv
...etc...


So I put it in manually, then run ngspice. Now ngspice is failing big time. I get the exact same errors if I change file to OP07.inc and model=OP07, and put "OP07" on the XU1 manually.

[djlogan@server chapter5]$ ngspice -b problem_5_48.cir -o problem_5_48.out
Note: trying dynamic Gmin stepping
Trying gmin =   5.6234E-03 Note: One successful Gmin step
Trying gmin =   3.1623E-03 Note: One successful Gmin step
Trying gmin =   1.3335E-03 Note: One successful Gmin step
Trying gmin =   3.6517E-04 Note: One successful Gmin step
Trying gmin =   5.2330E-05 Note: One successful Gmin step
Trying gmin =   5.2330E-06 Note: One successful Gmin step
Trying gmin =   5.2330E-07 Note: One successful Gmin step
Trying gmin =   4.5316E-07 Note: One successful Gmin step
Trying gmin =   3.9242E-07 Note: One successful Gmin step
Trying gmin =   3.1623E-07 Note: One successful Gmin step
Trying gmin =   2.5483E-07 Note: One successful Gmin step
Trying gmin =   2.2876E-07 Note: One successful Gmin step
Trying gmin =   1.9456E-07 Note: One successful Gmin step
Trying gmin =   1.6548E-07 Note: One successful Gmin step
Trying gmin =   1.2980E-07 Note: One successful Gmin step
Trying gmin =   1.2216E-07 Note: One successful Gmin step
Trying gmin =   1.1941E-07 Note: One successful Gmin step
Trying gmin =   1.1672E-07 Note: One successful Gmin step
Trying gmin =   1.1280E-07 Note: One successful Gmin step
Trying gmin =   1.0717E-07 Note: One successful Gmin step
Trying gmin =   1.0580E-07 Note: One successful Gmin step
Trying gmin =   1.0446E-07 Note: One successful Gmin step
Trying gmin =   1.0379E-07 Note: One successful Gmin step
Trying gmin =   1.0346E-07 Note: One successful Gmin step
Trying gmin =   1.0313E-07 Note: One successful Gmin step
Trying gmin =   1.0304E-07 Note: One successful Gmin step
Trying gmin =   1.0304E-07 Warning: last gmin step failed
Warning: dynamic gmin stepping failed
Note: starting source stepping
Supplies reduced to   0.0000% Note: One successful source step
Supplies reduced to   0.1000% Note: One successful source step
Supplies reduced to   0.2000% Note: One successful source step
Supplies reduced to   0.3500% Note: One successful source step
Supplies reduced to   0.5750% Note: One successful source step
Supplies reduced to   0.9125% Note: One successful source step
Supplies reduced to   1.4188% Note: One successful source step
Supplies reduced to   2.1781% Note: One successful source step
Supplies reduced to   3.3172% Note: One successful source step
Supplies reduced to   4.4563% Note: One successful source step
Supplies reduced to   5.5953% Note: One successful source step
Supplies reduced to   5.5953% Note: One successful source step
Supplies reduced to   5.8516% Note: One successful source step
Supplies reduced to   6.1079% Note: One successful source step
Supplies reduced to   6.4923% Note: One successful source step
Supplies reduced to   7.0690% Note: One successful source step
Supplies reduced to   7.0690% Note: One successful source step
Supplies reduced to   7.1555% Note: One successful source step
Supplies reduced to   7.2420% Note: One successful source step
Supplies reduced to   7.3285% Note: One successful source step
Supplies reduced to   7.3285% Warning: source stepping failed
doAnalyses: Too many iterations without convergence

run simulation(s) aborted


Stuart Brorson wrote:

OK, maybe now you'll give me a little credit. I apologize for not having the time to fiddle with this until I can figure out how to get it work, but I have a LOT of work to do already.



Credit where credit's due! Good work on trying! Keep up the good work!



Missing Attributes (refdes and pin number)
Missing Attributes (refdes and pin number)
Missing Attributes (refdes and pin number)
Missing Attributes (refdes and pin number)


[. . . snip! . . .]



Any ideas? I didn't recopy your opamp-1.sym because one already existed. Is the one that already exists defective?



It looks to me like your symbol is defective. Try one of these:

1.  Look at the pin attributes on the symbol itself.  Verify that all
   pins have a pinnumber attribute.
2.  Run "gsymcheck" on the symbol you want to use.  It will tell you
   if your symbol has a problem.
3.  Use the opamp symbol I posted last time.  It has all pin attrbutes
   already set up for use in op amp simulations.
4.  Post your schematic and op amp symbol here for us to look at &
   check.

Also, did you set the "refdes" attribute in your opamp?

Stuart