📄 readme
字号:
This directory holds a codemodel which enables ngspice to handle SPICE2 POLY attributes on controlled sources. In short, when a SPICE 2netlist is read in, any controlled sources with POLY attributes aretranslated into codemodel devices with an associated .model whichinvokes spice2poly to evaluate the polynomial. To use this model, you need to do the following:1. Compile the rest of ngspice/tclspice in the usual way from thebase directory. Make sure you do configure --enable-xspice whenconfiguring.2. Download and install SPICE Opus (available fromhttp://www.fe.uni-lj.si/). From this you need the program cmpp, aswell as some of the include files. 3. Edit the Makefile in this directory and make the variable CMPPDIRpoint to the base location of your Opus installation. (Hint: Iplace it in /usr/local/opus.)4. Edit the Makefile in the directory below (icm_spice2poly/) andmake the variable CMPDIR point to the base location of your Opusinstallation. 5. Do "make" in this directory. The makefiles are set upto do all the necessary stuff to turn the spice2poly sources into ashared object named spice2poly.cm which you can load into ngspice.(Alternatively, you can do "make codemodels" from $(top_srcdir); Ihave included codemodels as a target which cd's into this directoryand does "make".)6. Read the codemodel into ngspice in the following way:ngspice 1 -> codemodel /usr/local/lib/spice/spice2poly.cm(Of course, you should point to the location where *you* builtspice2poly.cm!) You might want to put this invocation into yourspinit file (which usually lives in $(top_srcdir)/src/).7. Then read in your SPICE netlist. SPICE 2 POLY attributes incontrolled sources will be translated into .models invoking thespice2poly codemodel. You should be able to run ngspice and simulatein the usual way!----------------------------------------------------------------------Please send any comments/questions/bug reports to:Stuart Brorsonsdb@cloud9.net-- SDB 6.19.2003
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -