|
From: <lo...@mu...> - 2007-05-28 07:33:10
|
Hello all,
Rubén Gómez Antolí escribió:
> Hello all,
>
> I need to deal with some large libs from Pspice that looks like this:
>
> .SUBCKT Scr anode gate cathode PARAMS:
> + Vdrm=400v Vrrm=400v Idrm=10u
> + Ih=6ma dVdt=5e7
> + Igt=5ma Vgt=0.7v
> + Vtm=1.7v Itm=24
> + Ton=1u Toff=15u
>
> [...]
> There are any form (easy as possible) to convert it in a way that
> Ngspice can use it?
Ok, I encounter that I need to compile ngspice with numparam option
actived. Yes, only this, but I get a error running example.cir include
in ngspice code:
-- console output ---------
ngspice -b example.cir -r borra.raw
Got 1 devices.
Added device: spice2poly
Got 0 udns.
Got 17 devices.
Added device: climit
Added device: divide
Added device: d_dt
Added device: gain
Added device: hyst
Added device: ilimit
Added device: int
Added device: limit
Added device: mult
Added device: oneshot
Added device: pwl
Added device: sine
Added device: slew
Added device: square
Added device: summer
Added device: s_xfer
Added device: triangle
Got 0 udns.
Got 26 devices.
Added device: adc_bridge
Added device: dac_bridge
Added device: d_and
Added device: d_buffer
Added device: d_dff
Added device: d_dlatch
Added device: d_fdiv
Added device: d_inverter
Added device: d_jkff
Added device: d_nand
Added device: d_nor
Added device: d_open_c
Added device: d_open_e
Added device: d_or
Added device: d_osc
Added device: d_pulldown
Added device: d_pullup
Added device: d_ram
Added device: d_source
Added device: d_srff
Added device: d_srlatch
Added device: d_state
Added device: d_tff
Added device: d_tristate
Added device: d_xnor
Added device: d_xor
Got 0 udns.
Got 9 devices.
Added device: aswitch
Added device: capacitor
Added device: cmeter
Added device: core
Added device: inductor
Added device: lcouple
Added device: lmeter
Added device: potentiometer
Added device: zener
Got 0 udns.
Got 4 devices.
Added device: d_to_real
Added device: real_delay
Added device: real_gain
Added device: real_to_v
Got 2 udns.
Added udn: int
Added udn: real
Circuit: * Param-example
Error: unknown subckt: x1 input output myfilter 1k 1nf
Error: there aren't any circuits loaded.
-------- end of console output ----
------------ example.cir -------------
* Param-example
.param amplitude= 1V
X1 input output myfilter 1k 1nF
V1 input 0 AC {amplitude}
.subckt myfilter in out
+ params: rval=100k cval= 100nF
Ra in p1 {2*rval}
Rb p1 out {2*rval}
C1 p1 0 {2*cval}
Ca in p2 {cval}
Cb p2 out {cval}
R1 p2 0 {rval}
.ends myfilter
.end
------------- end of example.cir ------------
Is there something broken in my ngspice?
<Wish mode> When we have ngspice's debian packages? </Wish mode>
I run this in a powerpc apple machine with Debian Sid. I note this
because I had encounter with some troubles with Kjwaves about endian.
Thanks in advance.
Salud y Revolución.
Lobo.
--
Libertad es poder elegir en cualquier momento. Ahora yo elijo GNU/Linux,
para no atar mis manos con las cadenas del soft propietario.
---------
Desde El Ejido, en Almería, usuario registrado Linux #294013
http://www.counter.li.org
|