Commit Graph

6707 Commits

Author SHA1 Message Date
Holger Vogt acbae39c1b Prevent from endless loop 2023-01-28 14:16:37 +01:00
Holger Vogt 7e36c72735 Remove the debug printout 2023-01-27 16:46:55 +01:00
Holger Vogt 87517b6f7a Add a user definable variable enable_noisy_r (for .spiceinit)
to enable noise calculation for all behavioral resistors.
May locally be switched off by instance parameter noisy=0
May locally be enabled by instance parameter noisy=1.
2023-01-27 11:19:57 +01:00
Holger Vogt 7414206f4a Add searchpath for *.osdi relative to ngspice executable 2023-01-27 10:08:16 +01:00
Holger Vogt 01980f6425 fix comment 2023-01-27 10:07:05 +01:00
Holger Vogt 5387314c5e Do not try to load *.osdi automatically 2023-01-27 10:02:39 +01:00
Holger Vogt cef1a24275 Error message to stderr 2023-01-25 14:52:51 +01:00
Holger Vogt 3a283b2630 Update the example structure for OSDI/OpenVAF:
all compiled models into lib/ngspice
spinit updated to load the models via command 'osdi'
local calls with 'pre_osdi' commanted out.
2023-01-25 13:12:27 +01:00
dwarning daa270d4a0 correct header entry 2023-01-23 12:58:50 +01:00
dwarning cc84401ee6 bsim4 version update from 4.8.1 to 4.8.2 2023-01-23 12:58:45 +01:00
Holger Vogt 9d391bd046 Revert "Change the default model parameters so that reasonable"
This reverts commit 738e351f59.
2023-01-23 12:57:55 +01:00
Pascal Kuthe e88b8ffb74 properly abort for invalid OSDI paramters 2023-01-20 11:24:08 +01:00
Holger Vogt 738e351f59 Change the default model parameters so that reasonable
0.35µm transistor characteristics are achieved.

QUA preocessing is untouched.
2023-01-20 11:17:14 +01:00
Holger Vogt 90c407ada0 better comment 2023-01-17 23:00:17 +01:00
Holger Vogt c75f954cd6 Enhance the search path for osdi files: when not found rel. to
inputdir, search rel. to current working directory.
2023-01-17 22:14:33 +01:00
Holger Vogt 4dd137c3da Add boolean variables as flags when XSPICE and/or OSDI are enabled 2023-01-17 22:13:12 +01:00
Holger Vogt 245855e414 Add a shunt resistor of 1e15 Ohms to any X (subcircuit call) line
when the node name contain 'unconnected' and .probe alli is called.
2023-01-13 13:49:25 +01:00
Holger Vogt 61274c50e2 The modulo function a % n should accept a==0.
The fix adds this to the control section function parser. The numparam
parser already has this feature. n==0 is rejected as usual.
2023-01-13 13:47:52 +01:00
Brian Taylor 37acfffc6e ERROR messages should be printed to stderr. 2023-01-10 11:19:53 +01:00
Brian Taylor a6b4f779fb Fix some comments. 2023-01-08 09:19:44 +01:00
Francesco Lannutti 0e30430506 enable compiling without XSPICE on specific OSs 2023-01-06 18:01:48 +01:00
Francesco Lannutti 4407614094 OSDI: fix const declaration, unused variables 2023-01-06 18:00:48 +01:00
Holger Vogt 864e722f4a For memcpy in PREDICTOR 2023-01-06 17:28:39 +01:00
Holger Vogt b1a806c35d A preliminary fix to bug report 612
Don't set series voltage sources when flag probe_alli_nox
is set in .spiceinit
2023-01-06 11:50:45 +01:00
Holger Vogt e8eae7aa85 Update to fcn tprint:
allow multiple printouts in a single simulation run,
without overwriting the previous printout.
2023-01-04 22:44:16 +01:00
Holger Vogt 1a50ca33cd enable 'off', 'print', 'save' being part of a node name.
Only plain 'off' (case of bipolar), or 'print', 'save'
(in case of CIDER) will not be allowed.
2023-01-04 15:35:21 +01:00
Brian Taylor 0d74a07316 Ensure that amatch output is not binary data. 2022-12-31 15:03:35 +01:00
Brian Taylor 9acee01604 Add variable ps_udevice_exit. If set non-zero, ngspice will exit if there is an error processing f_logicexp or f_pindly. 2022-12-31 15:03:31 +01:00
Brian Taylor de1c835edd Return errors from f_logicexp and f_pindly without calling exit. 2022-12-31 15:03:26 +01:00
Brian Taylor 3ca9f037bd Add more error checks for f_logicexp and f_pindly. 2022-12-31 15:03:18 +01:00
holger aacd4350c3 Prevent memory leak while "PREDICTOR" is selected 2022-12-27 18:02:04 +01:00
Brian Taylor dacbf453ab Remove the old inverter code. 2022-12-22 22:26:09 +01:00
Brian Taylor 6cb94f26a4 Refactor new_gen_output_models. 2022-12-22 22:26:03 +01:00
dwarning 96ba61ae1e add instance parameter mulu0 for mobility reduction bsim4.5 and 4.6 2022-12-22 14:19:50 +01:00
Holger Vogt 4335ca299b For OSDI n devices: Enable model translation,
if model has been inside subcircuit.
2022-12-21 22:07:11 +01:00
Giles Atkinson b576716caa Add limited support for string-valued parameters in .param lines.
The right-hand side of an assignment may be a string expression
made up from quoted strings, and identifiers for other string parameters,
optionally in braces.  There may be no un-quoted spaces.
Example: .param str4=str1"String 4"str2{str3}

Subcircuits may have default and actual string parameters, but the values
must be single identifiers, not quoted strings or string expressions.
2022-12-19 14:02:35 +01:00
Pascal Kuthe e8cca6900b slightly optimize predictor 2022-12-16 21:55:21 +01:00
Pascal Kuthe aa504f0eea ensure config.h is always included in cktdefs.h to ensure correct
type signature
2022-12-16 21:55:21 +01:00
Pascal Kuthe bca48b5e78 ensure compilation succedes without OSDI 2022-12-16 21:55:21 +01:00
Pascal Kuthe c90f791a5f removed unneded changes 2022-12-16 21:55:21 +01:00
Pascal Kuthe c1f37e61c0 fix opvar readout 2022-12-16 21:55:21 +01:00
Pascal Kuthe 29f3108fab fix typos 2022-12-16 21:55:21 +01:00
Pascal Kuthe 23e9d417a4 add openmp support for osdi 2022-12-16 21:55:20 +01:00
Holger Vogt 1cfda7c374 Suppress model type warning when device is of type N. 2022-12-16 21:55:19 +01:00
Holger Vogt 27f50ade31 Prevent double definition error when both OSDI and XSPICE are enabled. 2022-12-16 21:55:19 +01:00
Holger Vogt dee718108b Replace 'a' by 'n' for OSDI device 2022-12-16 21:55:19 +01:00
Holger Vogt 5034cf5923 Move reference designator from A to N
replace inp2n by a copy of inp2a
OSDI is now called in case N: in inppas2
2022-12-16 21:55:19 +01:00
Holger Vogt a2285e5a70 Revert previous commit: now treat a devices like ordinary devices. 2022-12-16 21:55:18 +01:00
Holger Vogt c2395a5b5a Preliminary fix to get_number_terminals:
check for tokens with '=' to stop and get number of nodes by
stepping back.
2022-12-16 21:55:18 +01:00
Holger Vogt cdc0e6f22a Exclude XSPICE specific error message.
Don't call fcn get_adevice_model_name().

Return a fixed value (5) for number of nodes:
This is wrong. It has to be replaced by a safe
method to figure out the number of terminals for
varying Verilog-A device models.
2022-12-16 21:55:18 +01:00