Jim Monte
1665b53b84
[PATCH #59 ] Made INP*Cat() functions more modular and efficient. Also
eliminated the possibility of a buffer overrun in INPstrCat() due to an error
in the calling funciton.
7 years ago
Jim Monte
1c5176282b
[PATCH #52 ] General cleanup of word list processing, such as adding
comments and const. Also added a new function wl_from_string() to convert a
single word into a word list. This function can be useful when calling a
function taking a single-word word list.
7 years ago
Jim Monte
10474a06a8
[PATCH #50 ] Ensured no buffer overrun for long namess and improved
efficiency of compare. Also made more modular.
7 years ago
Holger Vogt
9a9b7c68d0
unify the numerical constants
7 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
Jim Monte
0183964d6f
[PATCH #41 ] Made constants agree across ngspice simulator. File const.h
is the source of the values with all other files referencing it.
7 years ago
Holger Vogt
61039c2736
add a new function gettok_model to consider {...} expressions
in VDMOS .model statements
7 years ago
Jim Monte
0ddd4a8456
Fixed excess buffer allocation and converted wordlist to string more efficiently
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
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
56701e3d10
add rotation angle to text output, currently used only by postscript,
ignored by all others
8 years ago
h_vogt
87be5b9a41
Do not set Bit 8 in an ANSI char, when \ or ^ occured in a string. Thus the full ANSI set is now available in ngspice strings. The setting of Bit 8 was not exploitet anywhere, but did not allow using the characters from extended ANSI.
9 years ago
Holger Vogt
19380903cc
add missing evtshared.h to the distribution
8 years ago
Holger Vogt
25cdf95262
replace deprecated sys_errlist[errno] by call to strerror(errno)
8 years ago
Holger Vogt
3930e27501
New compatibility modes (set ngbehavior=??): PS LT LTPS PSA LTA LTPSA
PS: PSPICE comp. in .include files., LT: LTSPICE comp. in .include files.
LTPS: both, PSA: PSPICE comp. in complete input deck,
LTA and LTPSA: comp. in complete input deck for LT or both.
Add functions uplim, dnlim, uplim_tanh, dnlim_tanh.
Replace
D1 A K SDMOD
.MODEL SDMOD D (Roff=1000 Ron=0.7 Rrev=0.2 Vfwd=1 Vrev=10 Revepsilon=0.2 Epsilon=0.2 Ilimit=7 Revilimit=7)
by
ad1 a k asmod
.model asmod sidiode(Roff=1000 Ron=0.7 Rrev=0.2 Vfwd=1 Vrev=10 Revepsilon=0.2 Epsilon=0.2 Ilimit=7 Revilimit=7)
8 years ago
Holger Vogt
d636f7899b
cp_enqvar() returns freshly malloced variables as well
as variables owned by somebody else, e.g. from ft_curckt->ci_vars.
The new function parameter tbfreed notifies the caller if the
variable is malloced here and may be freed safely.
8 years ago
Holger Vogt
800c9711f2
add a flag 'type of the union' to safely free model->param[i]->element,
if it contain a malloced string
8 years ago
Holger Vogt
d3b7619754
add a flag timezero to trnoise_state
falg is true as long as time = 0. Allows
to detect the change from time == 0 to time > 0
only then the 1/f data may be created anew (e.g.
due to multiple 'run' commands
8 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
Holger Vogt
7ca61b3c98
New command 'setseed' with function com_sseed
to set the random number generator
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
824ac4fbc9
make functions static or add function prototypes
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
Holger Vogt
417dbfef72
undo the previous commits dealing with snprintf,
use the C99 compliant function also with MS Visual Studio
8 years ago
Holger Vogt
7153891293
raise buffer size by 1 to retain previous resolution
8 years ago
h_vogt
1066bf0a7b
Store the numparam dicoS structure for each circuit in a list.
Functions to add, remove, retrive dicoS from the list
and to update dicoS, if the circuit has been changed.
Keeping dicoS is necessary because it may be used by measure.
This patch prevents (huge) memory leaks by overwriting
dicoS if multiple calls to the 'source' command are executed.
10 years ago
h_vogt
7198056a41
patch no. 16 by Thomy add a function cm_get_circuit to allow accessing the circuit structure ckt from within an XSPICE code model. This is a change to the interface and requires recopiling all code models!
10 years ago
h_vogt
11bafd70ea
update to callback functions SendEvtData, SendInitEvtData
9 years ago
h_vogt
c890435383
clarify pointers to data structures for event nodes
9 years ago
h_vogt
b5f31ec2b1
version conflict rersolved in sharedspice.c
9 years ago
h_vogt
e36b028cdb
add wantevtdata if event output should be sent to caller
9 years ago
h_vogt
b621875abf
sharedspice.h, .c, prepare adding callback functions: new ngSpice_Init_Evt() and function pointers
9 years ago
h_vogt
fc42cef878
New functions for XSPICE event node data exported from shared ngspice: ngGet_Evt_NodeInfo(char*) and ngSpice_AllEvtNodes(void)
9 years ago
rlar
1a39d3f59d
spicelib/parser, support instance parameter defaults on .model lines
8 years ago
h_vogt
d4adb027d2
avoid retrace in output graph by adding label 'noretraceplot'
to the plot command, that creates a lin plot trying to avoid retracing
10 years ago
Holger Vogt
c1a64d9f49
make inp_compat_mode glabal
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
Holger Vogt
c0c3470dff
add the simple vdmos capacitance model instead of Meyer's model
8 years ago
rlar
45a70b3a53
rewrite, use enum instead of #define sequences
see branch "rewrite-defines2enum"
8 years ago
rlar
a729c2860c
sensitivity, drop redundant #defines SENS_LIN/OCT/DEC/DEFPERT
use SENS_LINEAR/OCTAVE/DECADE/DEFPERTUB instead
8 years ago
rlar
b803b294b4
frontend/parser/lexical.c, cp_lexer(), allow # and * comment
Both, whether interactive or not.
Especially for command scripts.
9 years ago
rlar
4ec2717079
struct card, #5/6, rewrite from type "card" to "struct card"
9 years ago
rlar
10a353ebf4
struct card, #4/6, drop typedef card
For readability and to allow variables to have the name "card"
(avoid name collision with typedef "card")
9 years ago
rlar
511cdd7188
struct card, #3/6, rename members from struct line to struct card
9 years ago
rlar
981fed70ca
struct card, #2/6, drop struct line
struct line is an overlay of struct card.
9 years ago
rlar
8d93511a96
struct card, #1/6, minor cleanup
9 years ago
rlar
41c0ee45a2
introduce GENinstanceFree() and GENmodelFree()
To abstract away the business of releasing the memory
of a struct GENmodel or struct GENinstance.
8 years ago
rlar
8c7d7051ae
GENmodel, GENinstance, change layout, #4/4, complete the change
currently each and every device specific instance and model structure
duplicates the memory layout of a struct GENmodel / GENinstance
further the first structure elements behind a GENinstance header
are reinterpreted as a sort of a generic "node" array.
This business is very error prone, and makes it difficult to
extend struct GENmodel / struct GENinstance.
This patch makes this business much more bearable.
8 years ago
rlar
2c9bfecbad
GENmodel, GENinstance, change layout, #3/4, coccinelle semantic patch
8 years ago