You need to use EasyEDA editor to create some projects before publishing
Bug in ngspice release 25
1516 3
andyfierman 11 years ago
A few days ago I found a problem in ngspice where a MAXIM opamp model would not run properly but a simple netlist *with the same lines in it that caused a problem in the MAXIM model* would run OK. So I posted a question in the ngspice users mailing list: http://sourceforge.net/mailarchive/message.php?msg_id=31588607 it shows the problem and my request for help. Further down the page, the reply suggests that it is a known bug in ngspice and has been fixed but not yet released. Maybe you don't need to read the whole post and the netlists that go with it (the MAXIM model is big!). What is more important to think about is how ngspice may be updated in EE because this bug in ngspice breaks some of the MAXIM opamp models. I do not know how many model may be broken by this but the way MAXIM have written the macromodel it looks like it may be used in a similar form for several other devices.
Comments
dillon 11 years ago
No problem. I can built ngspice from source code from their git repository. Maybe we need to find some guys to help us to modify Ngpsice source codes. Then EE simulation will be much faster( We can integrate EE model in source code and a good way to find EE's libs and give a good wave data), and will give our users more friendly error or warming message. I can do this, I don't have enough time. :) Thanks.
Reply
andyfierman 11 years ago
Yeay! That's fixed it!! :) "Maybe we need to find some guys to help us to modify Ngpsice source codes. Then EE simulation will be much faster( We can integrate EE model in source code and a good way to find EE's libs and give a good wave data), and will give our users more friendly error or warming message. " That would be a very good idea. i) We need to have a way to do .step and .meas functions. ii) The EE waveform display is nice but it soon gets hard to read with more than 2 or 3 traces. There needs to be a way to put traces into separate graphs (like ngspice.com, LTspice and CL) iii) Better cursors to show deltaX and deltaY iv) There also needs to be a way to do plot arithmetic. Plotting a frequency response as a Bode plot of V(out)/V(in) for a simple amplifier works OK: http://localhost/easyeda/file_view_MAXIM-opamp-stage-gain_7GASM4mEW.htm but trying to plot the loop gain as a Bode plot of V(out)/V(fb): http://localhost/easyeda/file_view_MAXIM-opamp-loop-gain_ImRLFXf9r.htm is not possible. Using the `par(’expression’)` (ngspice manual section 15.4.10 ) like this: `.save loopgain = V(out)/V(fb)` does not produce the right output when plotted in a .ac simulation. Loop gain is a very important thing to be able to plot because it is the graph that shows gain and phase margins. Important stuff for SMPS and Control System design! Audio amplifier designers will be interested in it too.
Reply
example 11 years ago
Making a good wave view is our plan, this is a big thing for EE.
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,建议访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice