The plot I-V is not coming properly. The output curve should come in first and third quadrant but it is coming in second and fourth. Is there any issue with anode/cathode of my diode?
-Fahim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
as given in the ngspice doc I am getting complete zero on left to x-axis and rising towards negative y-axis on right of x-axis. It should actually be in the first quadrant instead of 4th quadrant.
Any idea what may went wrong in my netlist.
-Fahim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The current is negative for positive diode voltage because you are measuring the SOURCE current, not
the diode current (I initially made the same error as you :-)
-marcel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am just trying to simulate simple diode circuit. I am not getting any error but the output is not coming as expected.
The code is
The D.lib content is
The plot I-V is not coming properly. The output curve should come in first and third quadrant but it is coming in second and fourth. Is there any issue with anode/cathode of my diode?
-Fahim
You have BV = 8V, looks like a zener.
I change the model to
.model 1n4148 D (is=2.495E-09 rs=4.755E-01 n=1.679E+00
+tt=3.030E-09 cjo=1.700E-12 vj=1 m=1.959E-01
+bv=1.000E+02 ibv=1.000E-04)
as given in the ngspice doc I am getting complete zero on left to x-axis and rising towards negative y-axis on right of x-axis. It should actually be in the first quadrant instead of 4th quadrant.
Any idea what may went wrong in my netlist.
-Fahim
The current is negative for positive diode voltage because you are measuring the SOURCE current, not
the diode current (I initially made the same error as you :-)
-marcel
Thanks it solve my problem.
Now I am plotting as 'plot -i(v1) vs v(1)' And it is giving me the expected output.
Is there anyway to direct find out the current though diode instead of via some voltage source? Something like i(d1).
Thanks once again.
You can access all characteristics of all devices
with @device[param]. It is not practical to
have separate commands for all of these.
Here is your example. (Note that 'plot' allows
functions of vectors).
-marcel
Thanks. This will help a lot.
Hi, Marcel,
Is there documenation in the manual which oultines the various parameters which may be accessed like this? such as [id], [p] etc?
Clyde
Chapter 31 of the manual.
Anything that says OUT in the tables can be accessed.
--
Kind regards,
Justin Fisher.
Sent from my phone.
Thank you. I saw the tables, but dismissed them the first read through. This is a big help.
Clyde