[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Is there a basic tutorial: Schematic->Netlists->Spice?
John Doty wrote:
> On Jul 15, 2009, at 2:56 PM, Daniel B. Thurman wrote:
>
>> Is there a step-by-step tutorial around somewhere
>> for the beginner?
>>
> www.brorson.com/gEDA/SPICE/intro.html
>
>
> John Doty Noqsi Aerospace, Ltd.
> http://www.noqsi.com/
> jpd@xxxxxxxxx
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>
I have read and followed the instructions:
(1) Download and install the spice model package
into the directory:
/usr/local/geda/share/models/
Otherwise, edit file: TwoStageAmp.sch
and update the pathname to where
"spice/bjt/2N3904.mod" is located.
(2) Edit the file: TwoStageAmp.sch and update the
pathname to where Simulation.cmd file is located.
I have used the Gnu Spice Gui tool, was able to directly
load the TwoStageAmp.sch file and it automatically generated
the netlist internally but could not figure out how to do
the simulation part.
As a wild try, I have changed the values of:
DC Analysis:
==========
Start Voltage = 1V
Stop Voltage = 15V
Step Increment = 1V
Signal Source = Vcc
AC Analysis:
==========
Start Frequency = 1.00 Hz
Stop Frequency = 10.00 kHz
Steps/Decade = 1
Signal Source = Vinput 10.00 mV
Transient Analysis:
==============
Start Time = 0.00 msec
Stop Time = 100 msec
Step Increment = 1.00 msec
Signal Source = Vinput, Sinsoid: Amplitude=1mV, Frequency=1 Khz
Running the simulator, the console says:
======================================
*************** PROCESS COMMAND ***************
/usr/bin/ngspice -n -b /home/<me>/Desktop/gEDA/TwoStageAmp/TwoStageAmp.ckt
*************** PROCESS RESPONSE **************
Circuit: *****************************************************
Error on line 19 : q1 vcoll1 vbase1 vem1 2n3904
unable to find definition of model - default assumed
Error on line 20 : q2 vcoll2 vbase2 vem2 2n3904
unable to find definition of model - default assumed
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
AC operating point failed -
Last Node Voltages
------------------
Node Last Voltage Previous Iter
---- ------------ -------------
1 0 0
vbase1 3.04089e-137 4.85117e-151
2 -9.4771e-137 0
vbase2 -2.98549e-139 -1.77611e-153
vem1 1.2428e-138 3.70095e-151
vem2 -4.05949e-141 -6.14736e-154
vcoll2 1.57882e-139 2.39084e-153
vout 0 0
vcoll1 -9.4771e-137 -8.55212e-151
2n3904 0 0
vcc 0 0
vin 0 0
vinput#branch 0 0
vcc#branch -2.74852e-140 0
DC solution failed -
Last Node Voltages
------------------
Node Last Voltage Previous Iter
---- ------------ -------------
1 0 0
vbase1 3.04089e-137 4.85117e-151
2 -9.4771e-137 0
vbase2 -2.98549e-139 -1.77611e-153
vem1 1.2428e-138 3.70095e-151
vem2 -4.05949e-141 -6.14736e-154
vcoll2 1.57882e-139 2.39084e-153
vout 0 0
vcoll1 -9.4771e-137 -8.55212e-151
2n3904 0 0
vcc 0 0
vin 0 0
vinput#branch 0 0
vcc#branch -2.74852e-140 0
Transient solution failed -
Last Node Voltages
------------------
======================================
Follows with a popup error that says:
"Couldn't find the data section in the results file."
So, what am I doing wrong?
Thanks
Dan
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user