Holger Vogt
3d1cbf93ee
Add a predifined variable 'skywaterpdk' to speed up circuit
loading and parsing.
If set, it removes quoting tokens for params. This requires
that Skywater PDK does adequately stick to the ngspice syntax
to put params in between braces. As far as tests go, it does.
It also set the number of nodes for MSO devices to 4, so no lengthy
search is required.
2 years ago
Holger Vogt
fe3222a118
Add an option nginfo to enable a status report during simulation
(currently available only with MS Windows GUI version).
3 years ago
Holger Vogt
0ee5e3f32a
Add a control language function cvector, to create a complex vector.
Let vec1 = cvector(50)
will generate a complex vector, with the real part values
increasing from 0 to 49, the imaginary values are set to 0.
Useful in ac loops to store result data.
3 years ago
Holger Vogt
71571a1432
Add function atanh to .control section
3 years ago
Holger Vogt
1605d293d0
Add function integ to control language
Trapezoidal rule for integrating a vector.
4 years ago
Holger Vogt
e93a19e3e8
Allow math characters in node names
Add a function ft_getpnames_quotes()
It puts quotes " around tokens xxx, when these are enclosed as
V(xxx) and contain arithmetic characters. V(R*C) becomes
V("R*C"). After settig up the parse tree, the quotes are removed again.
Thus these math character remain part of the node name and are not
parsed as parts of an equation.
4 years ago
Holger Vogt
fe28feae4e
Cut out part of each vector of the current tran plot,
from times cut-tstart to cut-tstop and copy these
into a new tran plot. A new scale vector 'time' will be
generated as well. Vectors that are shorter than the
new scale vector will not be copied.
6 years ago
Jim Monte
a53cd3a3e9
fixed path created by ngdirname in Windows. Also added const to parameters whose arguments do not change and fixed some potential buffer overruns.
6 years ago
Holger Vogt
e9603dcdeb
enable inp_dodeck() to return an error state,
if error, inp_spsource() will return error as well
6 years ago
Holger Vogt
f9307d0beb
enable returning inp_spsource() with an error code
6 years ago
Jim Monte
2068c4fffb
Added -D/--define option to define a variable from the command line.
6 years ago
Jim Monte
de4788cfe5
Added conjugate function conj().
6 years ago
Jim Monte
8141a634d7
Fixed several issues related to plotting and vector lifetimes and made ownership of vectors clearer. The issues in bugs 419, 423, 425, and 426 were related and were addressed here.
6 years ago
Jim Monte
068df274bf
Made ft_numparse() thread-safe (no internal static variables) and prepared to support ngspice variable type CP_NUM.
6 years ago
Jim Monte
b7d8c61cd9
Cleaned up code to locate a vector in a plot by name. The code was made more modular, and special names like allv are handled more efficiently
6 years ago
Holger Vogt
b9901a2569
[PATCH 47] Refactored ft_getnames() and used the new function in
com_let().
7 years ago
Jim Monte
b66412f517
[PATCH] Changed prototypes of some functions having parameters that
should not be changed to const and added assorted comments. Also two very
minor efficiency improvements.
7 years ago
Holger Vogt
40411197e0
add function get_plot(name) to return address of named plot
7 years ago
Holger Vogt
be6eca1dbb
add 'option norefvalue' to suppress printing the reference value.
7 years ago
Holger Vogt
d1a8637a29
store deck for command mc_source for each circuit in ft_curckt->ci_mcdeck
remove this storage during remcirc
keep most recent deck in recent_deck
8 years ago
h_vogt
5c3a6a3829
new command 'mc_source' to internally reload circuit
We store a copy of the whole deck in 'mc_deck'.
'mc_source' can be used to re-read this copy.
10 years ago
rlar
511cdd7188
struct card, #3/6, rename members from struct line to struct card
9 years ago
rlar
511389ad10
inpcom.c, introduce find_back_assignment()
9 years ago
rlar
5238f0b1cb
inpcom.c, find_assignment(), const'ify and declare extern
9 years ago
rlar
2809ccaa13
shrink scope of expr_w_temper
9 years ago
rlar
e35429a222
inpcom.c, introduce rem_tlist()
9 years ago
rlar
ab409ad62e
protect vec_free() and free_pnode() macro for use in non braced blocks
if ()
vec_free()
9 years ago
rlar
c7811a76df
ngspice/fteext.h, whitespace and spelling
9 years ago
rlar
ac336c9920
options.c, cleanup inp_getoptsc()
10 years ago
h_vogt
ae80067fef
cmath2.c, new function stddev to calculate the standard deviation of all elements of a vector
10 years ago
rlar
b302dbe975
inp.c, cleanup using new function `line_nconc()'
10 years ago
h_vogt
c28c5d307a
inp.c, remove bug with handling of options: options stemming from a command file are kept, options from sourced circuit are removed with ckt
10 years ago
rlar
00e571dc00
frontend/inpcom.c, declare search_identifier() non static
10 years ago
h_vogt
9f62057973
introduce include file "ngspice/randnumb.h"
10 years ago
rlar
6156ebd930
fteext.h, remove prototype for nonexistant 'zigset()'
10 years ago
rlar
18426c755d
harmonise `struct circ' variables, `ckt' --> `ci'
10 years ago
rlar
29dde7206a
frontend/parse.c, introduce `alloc_pnode()'
11 years ago
rlar
e609c7411d
src/frontend/vectors.c, abstraction, introduce `vec_iszero()'
11 years ago
rlar
8be0829b9b
frontend/breakp.c, bug fix, "#306 Deleting breakpoint causes Internal Error in status"
The "delete" command destroyed the whole list of stored breakpoints
instead of just the specified one.
Thanks to "jpcgt", who reported this in
"#306 Deleting breakpoint causes Internal Error in status"
http://sourceforge.net/p/ngspice/bugs/306/
11 years ago
rlar
c6a8429258
src/maths/cmaths, implement `nint()' (.control language)
12 years ago
rlar
99eade8ec9
cleanup, rename cx_ln --> cx_log (.control language)
12 years ago
rlar
c926f46986
cleanup, rename rename cx_log --> cx_log10 (.control language)
12 years ago
rlar
aa7a7606c7
avoid multiple declarations of controlled_exit(), add 'noreturn' attribute
13 years ago
rlar
d598630b72
inpcom.c, cleanup inp_readall() #1/7, introduce inp_read()
13 years ago
dwarning
075b620a86
introduce `cx_sortorder()' function
13 years ago
dwarning
4635a19ba9
introduce unwrap, minimum and maximum function
13 years ago
dwarning
6a3da0105b
fft and ifft as vector functions
13 years ago
rlar
23d0f41e66
ft_find_analysis_parm(), change signature
13 years ago
rlar
fc2dd436fe
abstraction, new function `ft_find_analysis_parm()'
13 years ago
rlar
9d0500027c
abstraction, new function `ft_find_analysis()'
13 years ago