Commit Graph

5831 Commits

Author SHA1 Message Date
h_vogt 40e3d4bf95 examples/various: tests and loops using alterparam 2018-05-15 23:00:33 +02:00
h_vogt 7dd81327ec new command 'alterparam', to be used in conjunction with 'mc_source'
add command 'alterparam paramname=pvalue'
  to change a global .param

add command 'alterparam subcktname pname=vpval'
  to change a parameter inside of a subcircuit
2018-05-15 22:46:06 +02:00
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.
2018-05-15 22:45:29 +02:00
h_vogt 464f855d1d subckt.c, introduce new function inp_deckcopy_oc()
copy a deck
  without li_actual,
  without comment lines
  without .control section
2018-05-15 22:45:10 +02:00
rlar dc604c75d5 inpcom.c, whitespace 2018-05-15 22:43:43 +02:00
rlar 0f1b75a95b inpcom.c, abstraction, introduce bogus_find_subckt()
extracted from inp_fix_inst_calls_for_numparam().
This code is and was evil, as it does not respect scoping rules.
2018-05-15 22:43:23 +02:00
rlar 0a21c17d8b a rough test 2018-05-15 22:43:07 +02:00
rlar c8aac12374 regression test for device.c "alter" 2018-05-15 22:33:50 +02:00
rlar 0f5386899e asrcacld.c, bug fix, reciproc tc coefficient 2018-05-15 22:33:00 +02:00
Holger Vogt 73db0477c0 vdmosdist.c, white spaces 2018-05-04 20:35:16 +02:00
Holger Vogt 54c8abfdd4 update with recent model parameters 2018-05-04 20:35:15 +02:00
Holger Vogt ed3941c87d ksubthres added to model parameter sets using weak inversion. Weak inversion characteristics are aligned by comparing LTSPICE and ngspice simulations, ksubthres is selected to offer best fit. 2018-05-04 20:35:15 +02:00
Holger Vogt 68fbc49216 vdmos.c, sort parameters 2018-05-04 20:35:14 +02:00
Holger Vogt cbfeb2caaf update to actual status, parameter list added 2018-05-04 20:35:13 +02:00
Holger Vogt 1ef7791b58 Excerpt from lt-mos-models-2012.lib by selecting all parameters sets containing weak inversion info. Models parameter sets are modified by adding the parameter ksubthres. 2018-05-04 20:35:12 +02:00
Holger Vogt 285de59446 enable alternative weak inversion model if parameter subslope is given 2018-05-04 20:35:11 +02:00
Holger Vogt 93e34540b8 introduce parameter ksubthres, compatible to LTSPICE 2018-05-04 20:35:10 +02:00
Holger Vogt a0867ff1a3 bugfix: collapse the correct nodes if RB is zero or not given 2018-05-04 20:35:09 +02:00
Holger Vogt 2474c28a54 Alternative simple weak inversion model
according to https://www.anasoft.co.uk/MOS1Model.htm.
Fits existing LTSPICE models by adapting the slope parameter.
2018-05-04 20:35:08 +02:00
Holger Vogt 0ece0d0c1c make breakdown voltage internally always positive 2018-05-04 20:35:07 +02:00
Holger Vogt 63be243f72 Add a simple quasi saturation model according to V. d'Alessandro e.a., 2001 2018-05-04 20:35:07 +02:00
Holger Vogt 72e03e7eab replace parameter name subthres by subslope 2018-05-04 20:35:06 +02:00
Holger Vogt 5ba25a8716 change parameter to scalef when calculating n empirical compromise between smooth curve and reduction of Id slightly above threshold 2018-05-04 20:35:05 +02:00
Holger Vogt 3ee3ab39a9 Choose better interpolation and default parameters 2018-05-04 20:35:04 +02:00
Holger Vogt 729eac4e84 cweakinv, add model parameter model->VDMOSsubshift 2018-05-04 20:35:03 +02:00
Holger Vogt f0d131fb8a cweakinv, introduce sine scaling fucntion scalef() 2018-05-04 20:35:02 +02:00
Holger Vogt 284f68765d frontend/vectors.c, readability of warning message 2018-05-04 20:35:01 +02:00
Holger Vogt 68125ea3cf allow reading LTSPICE ascii raw files with 'load' command
by discarding 'Offset:'
2018-05-04 20:35:00 +02:00
Holger Vogt 43a6339071 rename VDMOS_CGS, VDMOS_CGD, VDMOS_CDS to VDMOS_CAPGS, VDMOS_CAPGD, VDMOS_CAPDS C: current, CAP: capacitance, V: voltage, G: conductance, Q: charge 2018-05-04 20:34:59 +02:00
Holger Vogt b4b6e3ebf8 Add the bulk diode to the ac calculation 2018-05-04 20:34:58 +02:00
Holger Vogt 972e5b8f49 remove unused .dc 2018-05-04 20:34:57 +02:00
Holger Vogt 87e8b366ad Add gate resistor to AC calculation 2
Add matrix entries for gate resistor
2018-05-04 20:34:56 +02:00
Holger Vogt a64d4c1484 Example: Compare ac gain and phase of simple amplifier with either internal or external gate resistor 2018-05-04 20:34:55 +02:00
Holger Vogt a504e07b47 Example: compare carrents and capacitance of VDMOS diode and standard diode 2018-05-04 20:34:55 +02:00
Holger Vogt 5d6e3348c9 Add gate resistor to AC calculation 1
Replace g (gate) by gp (gate prime) in existing matrix loading
2018-05-04 20:34:54 +02:00
Holger Vogt 1e77bc6fa8 add example for capacitance 2018-05-04 20:34:53 +02:00
Holger Vogt 570aacbf02 Remove VDMOS_CBS, VDMOS_CBD, VDMOS_CB 2018-05-04 20:34:52 +02:00
Holger Vogt 2b444a3423 remove unused parameters VDMOS_VBS/VBD and VDMOS_CAPBD/BS/GS/GD/GB 2018-05-04 20:34:51 +02:00
Holger Vogt 33a68b7321 return only half of the capacitance cgs and cgd 2018-05-04 20:34:50 +02:00
Holger Vogt 8f1b63c273 update of status 2018-05-04 20:34:49 +02:00
Holger Vogt d23ef75059 example with weak inversion comparison 2018-05-04 20:34:48 +02:00
Holger Vogt 4b78c0bc93 subthres for same example files added
(not yet calibrated with LTSPICE subthres parameter)
2018-05-04 20:34:48 +02:00
Holger Vogt 62297b2450 add weak inversion current capability
calibration of parameter subthres with LTSPICE is still missing.
2018-05-04 20:34:47 +02:00
rlar 013d70681f drop vdmos-1.el 2018-05-04 20:34:46 +02:00
rlar ce2e704f56 up, where to ? fixme, there are more ... 2018-05-04 20:34:45 +02:00
rlar ede0fb1caa cleanup 2018-05-04 20:34:44 +02:00
Holger Vogt eb552858e4 update of status 2018-05-04 20:34:43 +02:00
Holger Vogt 4a3c707036 add parallel resistor rds (between outer drain and source nodes, parallel to bulk diode) 2018-05-04 20:34:42 +02:00
Holger Vogt b7c6145f5e rename the device multiplier m to mu, not to mix it up with the Body diode grading coefficient m 2018-05-04 20:34:41 +02:00
Holger Vogt 7d2daf2025 make nodes 3 and 4 the same 2018-05-04 20:34:40 +02:00