h_vogt
daf01920df
digital n-input x m-output look-up table gate provided by Tim Edwards
2016-11-05 20:32:54 +01:00
h_vogt
e7157dae52
add xspice digital model d_lut (digital n-input look-up table gate) provided by Tim Edwards
2016-11-05 20:32:54 +01:00
h_vogt
c687c3763b
main.c, misccoms.c, preliminary fix to bug no. 315 longjmp creates segfault under Windows 10 (VS and MINGW), when WM_CLOSE is activated. Set signal handler function to cp_evloop, which leads to com_quit here, undo this function again in com_quit to avoid loops if segfault occurs in com_quit.
2016-11-05 20:32:54 +01:00
h_vogt
31889516e5
numparam, use NESTINGDEPTH for the nupa dico stack too
2016-11-05 20:32:54 +01:00
h_vogt
862df7fadb
subckt.c, xpressn.c, spicenum.c, add level information for .subckt entries nupa_scan is totally without level info. This preliminary fix at least lets us decide to issue a warning if subckt have equal names and are on the same level. Still nupa_scan only enters the first entry into its hash table, irrespective of its level.
2016-11-05 20:32:54 +01:00
h_vogt
29701bef02
MC_ring_ts.sp, example for using the variable 'sharedmode'
2016-11-05 20:32:54 +01:00
h_vogt
aa13929dde
inp.c, sharedspice.c, enable adding scripts by 'circbyline'
2016-11-05 20:32:54 +01:00
h_vogt
13d31ea742
sharedspice.c, add variable sharedmode, to be used in scripts.
...
Is set active when shared spice is running.
2016-11-05 20:32:53 +01:00
h_vogt
88efdd23e6
update to Monte Carlo examples
2016-11-05 20:32:53 +01:00
h_vogt
6704c04a42
inp.c, randnumb.c, option seedinfo
...
Print seed information only when option is set.
2016-11-05 20:32:53 +01:00
h_vogt
d49ece80e3
examples Monte_Carlo, replace variable rndseed by function setseed
2016-11-05 20:32:53 +01:00
h_vogt
0b39676549
inp.c, enable .option seed=val || random || 'random'
...
setting the seed value of the random number generator either to val
or to a random number drawn from the amount
of seconds passed since 1.1.1970
May be overrideden at any time later by command 'setseed newval'
2016-11-05 20:32:53 +01:00
h_vogt
64739d83b6
randnumb.c, main.c, sharedspice.c,spinit.in
...
replace 'set seed = val' by 'setseed val'
no more check_seed in every random number calculation
2016-11-05 20:32:53 +01:00
h_vogt
32ad029a0e
command.c, add command 'setseed'
...
randnumb.c, add function com_sseed
for immediately setting the seed of the random number generator
'setseed' uses variable rndseed as seed
'setseed <n>' uses <n> as seed and sets rndseed to <n>
2016-11-05 20:32:41 +01:00
h_vogt
eb65ff8ec8
inp.c, xpressn.c, cmath2.c, apply gauss1() instead of gauss0()
...
-> reproducible start value if 'set rndseed=val' is given.
2016-11-05 20:32:41 +01:00
h_vogt
5aabd5e8f2
redo random number generation
...
wallace.c, main.c, randnumb.c, sharedspice.c:
set a seed value by getpid, may be overridden by 'set rndseed=val'
add func gauss1() returning only a single value
speed up gauss0()
add checkseed() to rgauss() and poisson() to read 'rndseed', if changed
2016-11-05 20:32:41 +01:00
h_vogt
802c7c3261
misccoms.c, clear controls upon 'quit'
2016-11-05 20:32:40 +01:00
h_vogt
35fabfc845
misccoms.c, enable freeing more memory allocations upon 'quit'
...
reduces valgrind 'still reachable' allocations
will finally allow using 'virtual leak detector' on Windows
2016-11-05 20:32:40 +01:00
h_vogt
0df6750947
variable.c, introduce cp_remvar_all() to free all variables
2016-11-05 20:32:40 +01:00
h_vogt
4a351a6b1a
main.c free argv after its use (Win GUI only)
2016-11-05 20:32:40 +01:00
h_vogt
ec7ac317aa
inpcom.c, enable current measurement in B-line like
...
Isup 1 0 1
Rsup 1 0 2
Bsup 2 0 i=i(Isup)
Rb 2 0 1
2016-11-05 20:32:31 +01:00
h_vogt
ffed264540
spiceif.c, remove memory leak ** to be tested thouroughly **
2016-11-05 20:32:31 +01:00
h_vogt
16da4a20fd
misccoms.c, call function to delete some structures in sharedspice.c upon 'quit'
2016-11-05 20:32:18 +01:00
h_vogt
f4c93195a3
sharedspice.c, add functions to delete myvec, pvc, vecsa
2016-11-05 20:32:17 +01:00
h_vogt
4f49cd743a
inp.c, correction for shared ngspice
2016-11-05 20:31:55 +01:00
h_vogt
a9cec7ae48
inpcom.c, debugging, tprint...
2016-11-05 20:30:28 +01:00
h_vogt
7ca8998805
compile instructions for LINUX as a script
2016-11-05 20:30:28 +01:00
h_vogt
a185be81c4
inp.c, shift agauss evaluation before subckt substitution. So parameters with agauss are set once only for all devices.
2016-11-05 20:30:28 +01:00
h_vogt
9066cdbe00
Monte Carlo simulation with commercial libraries circuit and .control section in a single file
2016-11-05 20:30:28 +01:00
h_vogt
00d19d89c4
Monte Carlo simulation examples file using commercial HSPICE compatible libraries. Start with 'ngspice MC_ring_ts.sp'.
2016-11-05 20:30:28 +01:00
h_vogt
b6be4c4155
add dicoS->linecount to safely delete dynrefptr[i],
...
linecount may change if circuits are changed or deleted.
2016-11-05 20:30:06 +01:00
h_vogt
21d6127ee3
spiceif.c, fixme marker
2016-11-05 20:30:05 +01:00
h_vogt
2d1c46db8f
postcoms.c, remove leak by deleting hash table of variables if 'destroy' is executed. Add deleting pl->pl_env.
2016-11-05 20:30:05 +01:00
h_vogt
06adfa3753
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.
2016-11-05 20:30:05 +01:00
h_vogt
c6eb18aef8
runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted
2016-11-05 20:30:05 +01:00
h_vogt
0e7b0f1f96
inpcom.c: remove white spaces in command files debug output of command files
2016-11-05 20:30:05 +01:00
h_vogt
d7deb374e6
replace function name eval_agauss_bsource by eval_agauss to reflect its actual usage
2016-11-05 20:30:05 +01:00
h_vogt
dc8494a1b1
inp.c, add .param lines to evaluation of agauss etc.
2016-11-05 20:30:05 +01:00
h_vogt
2f8e5747c9
inpcom.c, debugging, tprint...
2016-11-05 20:30:05 +01:00
h_vogt
42e6e381ff
comment out subckts before dealing with models
2016-11-05 20:27:46 +01:00
h_vogt
ddbd312c1d
.model treatment in fcn comment_out_unused_subckt_models() removed
2016-11-05 20:27:45 +01:00
h_vogt
b173113a11
update og function inp_rem_unused_models() recogizes levels, binning models
2016-11-05 20:27:45 +01:00
h_vogt
f3e844fb10
inpcom.c, add function inp_rem_unused_models()
2016-11-05 20:27:45 +01:00
h_vogt
0f09f214ac
inpcom.c, get_number_terminals(), ignore "save" and "print" when CIDER
2016-11-05 20:27:45 +01:00
h_vogt
be613e0f47
inpcom.c, add function inp_get_elem_ident()
2016-11-05 20:27:45 +01:00
h_vogt
96ce548316
inpcom.c, add fcn inp_check_scope_sub()
2016-11-05 20:27:45 +01:00
h_vogt
cd2417dd5c
inpcom.c, add function inp_check_scope_mod()
2016-11-05 20:27:45 +01:00
h_vogt
9c2ccfb649
inpcom.c, debugging, tprint...
2016-11-05 20:27:45 +01:00
h_vogt
6b72886e20
inpcom.c, tprint(), print levels correction to inp_add_levels()
2016-11-05 20:27:44 +01:00
h_vogt
33048cc51f
inpcom.c, inp_add_levels(), add level info to each line in deck
2016-11-05 20:27:44 +01:00