查看完整版本: 誰能把ppc上得 nspice改到 palm pda

andy2000a 2007-10-9 18:45

誰能把ppc上得 nspice改到 palm pda

http://meeting.uni.lu/andre.stemper/
有 source code  又沒有 高手把他 轉成  treo650  arm base tools  ... 都是 arm base  xscal cpu   應該可能吧InstallationTo install NGSpice-PPC simply copy the "ng" directory contained in the zip file to the root directory of your device. If you want to have a link in the Start Menu: in the [i]"file explorer"[/i], create a link to [i]NGSpice.exe[/i] and copy it to [i]"/windows/start menu" [/i](or [i]startmen? in the german version)
SimulationUse your favorite text editor and write the circuit description.
Personally I'm using [url=http://www.rainer-keuchel.de/wince/vim.html][color=#0000ff]Rainer Keuchel's VIM port[/color][/url] as it supports syntax highlighting for spice circuit files. But every other text editor able to save raw ascii text can be used.
Start [i]ngspice.exe[/i] by clicking on it. (Or on a link, if you made one.)
The program shows 3 textfields. The upper field shows the simulator's answers, the bottom right field shows the status and the bottom left field is the command prompt.
Simulation can now be controlled with the same commands you would use on your desktop machine. (e.g. rc3.cir [i][enter][/i] run [i][enter][/i] plot v(3) [i][enter][/i])
A new graph window will appear after each plot command.
The window can be closed by clicking on the [i]"X"[/i] in it's titlebar. When clicking a little bit left to the [i]"X"[/i], it can be toggled to fullscreen mode. The window can also be moved around by clicking and dragging the titlebar. It can be resized by dragging the thin frame which surrounds it.
A Task-Switcher like Harald-René's [url=http://www.hfrmobile.com/app_Switch_T1/index.htm][color=#0000ff]switch[/color][/url] is very usefull at this point to change between different graphs, the simulator and the editor.
Ngspice homepage
[url=http://ngspice.sourceforge.net/][color=#800080]http://ngspice.sourceforge.net/[/color][/url]

ARM GCC Crosscompiler
(As found on n0p's home page)
[url=http://n0p.tonych.info/?Devel][color=#0000ff]http://n0p.tonych.info/?Devel[/color][/url]

Mamaich's webpage:
[url=http://mamaich.uni.cc/fr_pocket.htm][color=#0000ff]http://mamaich.uni.cc/fr_pocket.htm[/color][/url]

VimCE:
[url=http://www.rainer-keuchel.de/wince/vim.html][color=#0000ff]http://www.rainer-keuchel.de/wince/vim.html[/color][/url]

Harald-René's Switch:
[url=http://www.hfrmobile.com/app_Switch_T1/index.htm][color=#0000ff]http://www.hfrmobile.com/app_Switch_T1/index.htm[/color][/url]
Dell Axim x51V (480x640)
[url=http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_VGA01.jpg][img]http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_VGA01.jpg[/img][/url] [url=http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_VGA02.jpg][img]http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_VGA02.jpg[/img][/url] [url=http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_VGA03.jpg][img]http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_VGA03.jpg[/img][/url]
HP iPAQ h5550 (200x320)
[url=http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_QVGA01.jpg][img]http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_QVGA01.jpg[/img][/url] [url=http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_QVGA02.jpg][img]http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_QVGA02.jpg[/img][/url] [url=http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_QVGA03.jpg][img]http://meeting.uni.lu/andre.stemper/images/ngspice-ppc/SRN_QVGA03.jpg[/img][/url]

Copyright 2007 André Stemper - All Rights Reserved
Last modified on Monday, 08-Oct-2007 09:31:30 CEST
[/i]

andy2000a 2007-10-9 19:00

find  

[url]http://prc-tools.sourceforge.net/[/url]

PilRC - Palm GCC Resource Compiler 2.9 PalmOS (68K)
[url]http://www.ardiri.com/palm/download.php?file=pilrc_w32.zip[/url]

那位懂code  分析下吧

spice examples
(from synopsys examples)

Low_Pass.sp 3rd order low-pass Butterworth
.OPTION POST PROBE DCSTEP=1e8
.PARAM a=1.0 b=1.0 ap1=1.0 fp1=0.0 ap2=0.5 fp2=0.1379
.AC DEC 25 0.01 10
.PROBE AC VDB(out) VDB(outg) VP(out) VP(outg)
.TRAN .5 200
.PROBE V(in) V(outg) V(out)
VIN in 0 AC 1 PULSE(0,1,0,1,1,48,100)
* 3rd order low-pass described by G Element
Glow_pass 0 outg POLE in 0 a / b ap1,fp1 ap2,fp2
Rg outg 0 1
R1 in 2 1
R2 2 3 1
R3 3 4 1
C1 2 0 1.392
C2 4 0 0.2024
C3 3 out 3.546
Eopamp out 0 OPAMP 4 out
.END



-----
BJT   
*file:bjtbeta.sp
*test for bipolar beta variation.
*analyses : dc current sweep
*beta calculated with algebraics as parameter beta
.option post probe
.param piee=0 pvce=10
.dc piee dec 10 1u 100m
.probe dc ic=par('i(qn1)') beta=par('i(qn1)/i2(qn1)')
iee 3 0 piee
vce 1 0 pvce
qn1 2 0 3 n1
rcc 1 2 2
.model n1 npn  is=1e-14 bf=100
+              ne=2    ikf=20ma ise=200
*
.end

----
------
OPA LM324
*file: alm124.sp  ac, noise, transient opamp analysis
* demonstration of automatic opamp generator
* validate:
*        positive and negative slew-rate for 10 volt input
*                        in unity gain configuration
*
*        unity gain frequency in open-loop configuration
*
*        max gain at low frequency
*
* hspice features used:
*        resistor with different dc and ac values to setup amplifier
*                for unity gain dc operating point and open-loop for
*                ac analysis
*
*        measure statement for measuring transient slew rate
*        measure statement for measuring ac maximum gain
*        measure statement for measuring ac unity gain
*
*
.option post nomod autostop  search=' '
.op vol
.ac dec 10 1hz  10meghz

.probe ac vm(out0) vp(out0)

.noise v(out0) v(in)
.probe noise onoise inoise

.tran 1u 40us 5us .15ms
.probe tran v(in) v(out0)

.measure tran 'srpos'     trig v(out0) val=2v rise=1
+                         targ v(out0) val=3v rise=1
.measure tran 'srneg'     trig v(out0) val=-2v fall=1
+                         targ v(out0) val=-3v fall=1
.measure ac   'unitfreq'  trig at=1
+                         targ vdb(out0) val=0 fall=1
.measure ac   'phasemargin'  find vp(out0)
+                         when vdb(out0)=0
.measure ac   'gain(db)'      max vdb(out0)
.measure ac   'gain(mag)'      max vm(out0)

vcc   vcc gnd  +15v
vee   vee gnd  -15v
vin in   gnd  ac=1 pwl 0us   0v 1us   0v 1.1us +10v 15us +10v 15.2us -10v
+               100us -10v

.model alm124 amp
+       c2=  30.00p       srpos=    .5meg       srneg= .5meg
+       ib=  45n           ibos=    3n            vos=  4m
+     freq=  1meg        delphs=    25           cmrr=  85
+     rout=  50             av=    100k          isc=  40m
+    vopos=  14.5         voneg=    -14.5         pwr=  142m
+      vcc=  16             vee=     -16         temp=  25.00
+     psrr=  100            dis=    8.00e-16      jis=  8.00e-16
*
*  unity gain resistor divider mode
*
rfeed  out0  in- 10k ac=10000g
rin     in  in- 10k
rin+    in+ gnd 10k
x0  in-  in+ out0  vcc vee alm124
rout0  out0 gnd    2k
cout0  out0 gnd  100p

.end
页: [1]
查看完整版本: 誰能把ppc上得 nspice改到 palm pda