gEDA

電子電路

簡介

電池

電阻

電容

電感

電晶體

直流電

交流電

整流器

三用電表

數位電路

通訊電路

教學影片

電路DIY

麵包板

萬用板

洗電路

元件列表

畫電路圖

fritzing

gEDA

XCircuit

TinyCAD

DIA

KiCAD

IsSpice

訊息

相關網站

參考文獻

最新修改

簡體版

English

  1. http://www.geda-project.org/

簡介

What is the gEDA suite?

The gEDA suite is the collection of all the various tools that are part of, associated with, or just plain work with the gEDA project’s software. Currently the gEDA suite includes:

gEDA/gaf – schematic capture and netlisting
ngspice – SPICE simulation
gnucap – analog simulation
gspiceui – GUI front end for ngspice/gnucap
pcb – PCB layout
gerbv – Gerber viewer
Icarus Verilog – Verilog simulator
GTKWave – Digital waveform viewer
wcalc – Transmission line and electromagnetic structure analysis

安裝

http://wiki.geda-project.org/geda:installation

Windows distributions

MinGW hooks are built into many of the gEDA applications. Therefore, knowledgeable individuals have been able to build, install, and run many of the tools on Windows systems. Also, the tools do run on Windows under the Cygwin environment. However, binary executables for most of the gEDA Suite are not currently distributed by the gEDA Project. If you are a developer and wish to provide ongoing support for Windows, please contact the project via the geda-user e-mailing list.

Please see the cygwin page on this wiki for more information on building gEDA using cygwin.

This worked to install geda on Windows XP on 3/9/2012:

Get the snapshot file “build-20120307.zip” from http://www.delorie.com/pcb/geda-windows/ into a new folder gEDA on the C:/ hard drive.
Extract the zipped files into the same folder (C:/gEDA).
Run the geda-runtime.exe file to install runtime.
Run the pcb-20110918.exe file to install pcb.
Set environment variables under control panel → system → Advanced tab
Click on “Environment Variables” (at bottom)
Create the following User Variables (click on “New” to create):
Name: PATH Value: \gEDA\bin
Name: GUILE_LOAD_PATH Value: \gEDA\share\guile\1.8
Name: GEDADATA Value: \gEDA\share\gEDA
Copy the file “loaders.cache” from C:/Program Files/gEDA/bin and paste it into the existing folder C:/gEDA/lib/gdk-pixbuf-2.0/2.10.0
The gschem program now should work properly. To run it, go to folder C:/gEDA/bin/ and double-click on the file “gschem.exe”/
Create a subfolder C:/gEDA/Schematics, and save all of the files you create with gschem within this folder (or in further subfolders).

Name     Notes     Tarball     Description
gEDA/gaf (stable)     README     1.6.2-20110115     Schematic capture, netlister, symbols, symbol checker, and utils
gEDA/gaf (unstable)     README     1.7.2-20111231     Schematic capture, netlister, symbols, symbol checker, and utils
PCB     Announcement     20110918     Printed Circuit Board layout tool
gerbv     Announcement     2.6.0     Gerber file viewer
xgsch2pcb     Announcement     0.1.3    Graphical front-end for the gschem → pcb workflow
gnucap         devel     GPLed mixed-mode/mixed-level circuit simulator
Icarus Verilog         Stable snapshots     Verilog simulation and synthesis tool
GSpiceUI         Homepage    GUI Frontend to SPICE
GTKWave         Homepage     Electronic waveform viewer
gwave         Homepage     Analog waveform viewer
ngspice         Download     An improved SPICE

ngspice 的用法

注意:如果不是用系統管理員帳號,必須在「開始/命令提示字元」按下右鍵選擇「以系統管理員身分執行」,否則因為 ngspice 預設安裝路徑為 c:\spice 而會有無法寫入資料夾的問題而導致 fatal error !

*********************************************************************
* Starting ngspice within the dos window (cmd.exe) , interactive mode:
* (also an example for using xspice extension)

* Open a DOS window.

*** DOS window:

set PATH=%PATH%;C:\Spice\bin

cd C:\Spice\examples\transimpedanceamp

ngspice output.net

*** ngspice window:

run
display
* end display with 'q'
plot vout2

* write all data into raw file to actual directory C:\Spice\tests\transimpedanceamp:
write timp.raw
* write only input and output
write timp2.raw v3#branch vout2
quit

Calling a source file in a different directory is done by:

ngspice D:\testinput\output.net

*********************************************************************
*********************************************************************
* Use ngnutmeg for plotting within the dos window (cmd.exe), using the 
raw file timp.raw created above:

* Open a DOS window.

*** DOS window:

set PATH=%PATH%;C:\Spice\bin

cd C:\Spice\examples\transimpedanceamp

ngnutmeg timp.raw

*** ngnutmeg window:

plot vout2
plot i(v3)

quit
*********************************************************************

*********************************************************************
* Starting ngspice within the dos window (cmd.exe) , batch mode, using
* .plot and/or .print commands in the input file (printer plot output),
* no raw file, similar to SPICE2G6:

* Open a DOS window.

*** DOS window:

set PATH=%PATH%;C:\Spice\bin

cd C:\Spice\examples\

ngspice -b -o cs.out cs_mixtv4.inp

* The ouput will be plotted and printed to C:\Spice\examples\cs.out.

* If you enter
ngspice -b -r cs.raw -o cs.out cs_mixtv4.inp
* instead, you will get a raw file (simulator output data), 
* .print and .plot will be ignored. 
* You may plot the data by using ngnutmeg (see example above).

*********************************************************************
*********************************************************************
* A numparam example with convergence and ringing problems
(Xiaoqun Wu e.a.: "Bifurcation Behavior of SPICE Simulations of Switching Converters: A Systematic
Analysis of Erroneous Results", IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 22, NO. 5, SEPTEMBER 2007, p.1743

dos window (cmd.exe) , interactive mode:

* Open a DOS window.

*** DOS window:

set PATH=%PATH%;C:\Spice\bin

cd C:\Spice\examples\numparam

ngspice power.cir

*** ngspice window:

run
plot vc#branch

*** compare to literature by selecting appropriate plot windows using right mouse tab

* write all data into raw file to actual directory C:\Spice\examples\numparam:
write power-all.raw
* write only relevant output
write  power.raw vc#branch
quit

*********************************************************************
*********************************************************************
* Running ngspice from  a different directory (for example D:\tmp)
* Starting ngspice within the dos window (cmd.exe) , interactive mode:

* Extract ngspice.zip to D:\tmp

* Edit spinit (found in D:\tmp\Spice\share\ngspice\scripts) to have the correct
  path for the XSPICE codemodels:
  Line
  codemodel C:/Spice/lib/spice/spice2poly.cm
  has to be replaced by
  codemodel D:/temp/Spice/lib/spice/spice2poly.cm
  the other codemodels lines have to be changed respectively.

* Open a DOS window.

*** DOS window:

set SPICE_LIB_DIR=D:\tmp\Spice\share\ngspice
set PATH=%PATH%;D:\tmp\Spice\bin
cd D:\tmp\Spice\examples\transimpedanceamp
D:

ngspice output.net

*** ngspice window:

run
plot vout2

* write all data into raw file to actual directory D:\tmp\Spice\tests\transimpedanceamp:
write timp.raw
* write only input and output
write timp2.raw v3#branch vout2
quit

*********************************************************************
*********************************************************************
* Running ngspice from  a different directory (for example D:\tmp)
* Starting ngspice within the dos window (cmd.exe) , interactive mode
  or starting with double click on ngspice in MS explorer:

* Extract ngspice.zip to D:\tmp
* under Windows XP you may put the following lines into C:\autoexec.bat:

set SPICE_LIB_DIR=D:\tmp\Spice\share\ngspice
set PATH=%PATH%;D:\tmp\Spice\bin

* Edit spinit (found in D:\tmp\share\ngspice\scripts) to have the correct
  path for the XSPICE codemodels:
  Line
  codemodel C:/Spice/lib/spice/spice2poly.cm
  has to be replaced by
  codemodel D:/temp/Spice/lib/spice/spice2poly.cm
  the other codemodels lines have to be changed respectively.

* You may then start immediately after opening the command window (cmd.exe)
  with:

cd D:\tmp\Spice\examples\transimpedanceamp
D:

ngspice output.net

*** ngspice window:

run
plot vout2

* write all data into raw file to actual directory D:\tmp\Spice\tests\transimpedanceamp:
write timp.raw
* write only input and output
write timp2.raw v3#branch vout2
quit

*********************************************************************

*********************************************************************
*********************************************************************
* spinit

* spinit is used to set options or to set varioables. spinit is read into ngspice 
  before any input file. The codemeodel path for xspice may be set as well.

  There is a search sequence for spinit.
  1) If the invironmental variable is SPICE_LIB_DIR is set to a path, e.g. to
  SPICE_LIB_DIR=D:\tmp\Spice\share\ngspice, then spinit is searched for
  in D:\tmp\Spice\share\ngspice\scripts. If not set then we look for it in 
  C:\Spice\share\ngspice\scripts. If this path is not available or spinit is
  not there, then ngspice searches for spinit in the path where ngspice.exe
  resides. If not found there, a warning note is issued.

* .spiceinit

* .spiceinit is read directly after the spinit file. You may keep spinit as is, 
  and put any personal preset variables or scripts into .spiceinit. Data in
  .spiceinit will override data from spinit. 
  ngspice will search for .spiceinit either in your home directory or in the 
  directory where ngspice.exe is located.  

*********************************************************************
*********************************************************************
* Universial, simple install

  Put ngspice.exe and spinit into a subdirectory myspice\bin
  Put the codemodels (e.g. analog.cm) into a subdirectoty myspice\codemodels.
  Edit spinit and change the codemodel lines to

  codemodel ../codemodels/spice2poly.cm

  etc. 

  Instead of 'myspice' you may now choose any directory for your installation
  of \bin and \codemodels, even C:\ will work.

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License