Commit Graph

8121 Commits

Author SHA1 Message Date
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
Holger Vogt bb7034b559 Rename test_osdi_libs to osdi_libs 2022-12-19 10:44:59 +01:00
Holger Vogt edd4a2343c ADMS is declared deprectaed and is replaced by OpenVAF/OSDI. 2022-12-17 14:46:52 +01:00
Holger Vogt b1e70f05a0 Update with Semimod download page 2022-12-17 14:35:05 +01:00
Holger Vogt 88cbb4f0fe Rename test_osdi_win to test_osdi_libs 2022-12-17 14:30:59 +01:00
Holger Vogt 745172df54 Mextram models: plotting with thicker lines 2022-12-17 14:13:04 +01:00
Holger Vogt 842c595fdc Update to the examples for osdi 2022-12-16 21:55:22 +01:00
Holger Vogt 6fb845a813 Update for all MSVC project files:
Update to VC2022 with v143 and /openmp:llvm (due to openmp task)
Add missing osdi files
Add missing udevices.c and logicexp.c
2022-12-16 21:55:22 +01:00
Pascal Kuthe e8cca6900b slightly optimize predictor 2022-12-16 21:55:21 +01:00
Pascal Kuthe 850b456cb2 compile with -std=gnu11 instead of -std=c11 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 2c6aea435a remove OSDI specific test_cases 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
Pascal Kuthe 95712ea48a add predictor to compile_min 2022-12-16 21:55:20 +01:00
Holger Vogt e99e80989b No longer needed, replaced by vngspice.vcxproj 2022-12-16 21:55:20 +01:00
Holger Vogt 5f761fc62e Linear area transfer curves 2022-12-16 21:55:20 +01:00
Holger Vogt 361830f0aa Replace A dvice by N device 2022-12-16 21:55:20 +01:00
Holger Vogt d1fe111787 BSIMCMG preliminary test cases 2022-12-16 21:55:20 +01:00
Holger Vogt f8738e7eaf Update to device lib: device name starts with N 2022-12-16 21:55:20 +01:00
Holger Vogt 4ee150ed8d Remove preprocessor flag XSPICE from MS project file, add it to config.h
instead.
Add OSDI-specific files to project.
2022-12-16 21:55:20 +01:00
Holger Vogt 71a2a3103b Revert "remove unused"
This reverts commit cc2707cfdb.
2022-12-16 21:55:19 +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 81ac1a83b5 device name now starts with N (instead of A). 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 2c579bab67 Move XSPICE preprocessor flag from vcxproj file to config.h 2022-12-16 21:55:19 +01:00
Holger Vogt 7d53e5f75c enable OSDI 2022-12-16 21:55:19 +01:00
Holger Vogt 6d126518cb (non-working) PSP102 examples 2022-12-16 21:55:19 +01:00
Holger Vogt f8d9294e57 New and updated test cases 2022-12-16 21:55:18 +01:00
Holger Vogt fdfb31b900 Do not add to monitored files 2022-12-16 21:55:18 +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 d49aa4a645 Visual Studio 2022 project files,
replacing the original project files.
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
Holger Vogt ed438b43bc Add case 'a' to fcn translate.
This is a hack, to be removed/altered when switching to
reference designator N instead of A.
2022-12-16 21:55:18 +01:00
Holger Vogt e9fc1de05a Initialze sim_param_vals 2022-12-16 21:55:17 +01:00
Holger Vogt 337b59016d remove __attribute__, replace by __declspec 2022-12-16 21:55:17 +01:00
Holger Vogt e5a7992db2 Add include file shlwapi.h 2022-12-16 21:55:17 +01:00
Holger Vogt 494f56ce6c undefine XSPICE, define OSDI 2022-12-16 21:55:17 +01:00
Holger Vogt b45a19103f remove unused 2022-12-16 21:55:17 +01:00
Pascal Kuthe b28708cf82 prototype for Verilog-A integration using OSDI and OpenVAF
This initial prototype is capable of performing DC, transient and AC
analysis. Not all features of OSDI are supported yet and there are still
some open questions regarding ngspice integration. However many usecase
already work very well and a large amount of CMC models are supported.
The biggest missing feature right now is noise analysis.

test: test case for diode DC working with SH

test: add transient analysis to osdi_diode test

test: added docu text to osdi_diode test

test: added test case directories

fix: bug in osdi_load

test: small change to netlist

fix: implement DEVunsetup

fix: correct behaviour for MODEINITSMSIG

test: osdi diode enable all analysis modes

removed netlist

ignoring test results

added the build of the diode shared object to the python test script

deleting old stuff and always rebuilding the shared object

added diode_va.c to the repo

preparing CI

Create .gitlab-ci.yml file

(testing) add res, cap and multiple devices test

feat: use osdi command to load files

Previously OSDI shared object files were loaded from fixed directories.
This was unreliable, inconvenient and caused conflicts with XSPICE.

This commit remove the old loading mechanism and instead introduces the
`osdi` command that can load (a list of) osdi object files (like the
codemodel command for XSPICE). A typical usecase will use this as a
precommand in the netlist:

.control
pre_osdi foo.osdi
.endc

If the specified file is a relative path it is first resolved relative
to the parent directory of the netlist. If the osdi command is invoked
from the interactive prompt the file is resolved relative to the current
working directory instead.

This commit also moves osdi from the devices folder to the root src
folder like xspice. This better reflects the role of the code as users
may otherthwise (mistakenly) assume that osdi is just another
handwritten model.

test: update tests to new command

fix: do not ignore first parameter

feat: implement log message callback

fix: don't generate ddt matrix/rhs in DC sweep

fix: missing linker script

update to osdi 0.3

(testing) simplify test cases, fix bug

(testing) multiple devices test improvement

(testig) node collapsing bugfix

test: increase tolerance in tests

feat: update to newest OSDI header

fix: temperature update dt behaviour

fix: ignored models

fix: compilation script

fix: allow hicum/l2 to compile with older c++ compilers

fix: set required compiler flags for osdi

fix: disable x by default

fix: add missing SPICE functions

fix: update diode to latest ngspice version

feat: implement python CMC test runner

doc: Add README_OSDI.md

fix: make testing script work with python version before 3.9

fix: free of undefined local variable

fix: do not calculate time derivative during tran op

update osdi version

fixes for compilation on windows
2022-12-16 21:55:17 +01:00
Holger Vogt 95b21de8a1 Re-add optional selection of Berkeley model parameters. 2022-12-14 13:26:02 +01:00
h_vogt 831382cc7d Add log plots
Add sim vs. Temp.
Add y-labels
2022-12-13 21:07:27 +01:00
Brian Taylor daca402291 Distinguish between set/reset delays when possible. 2022-12-11 16:08:40 +01:00
Brian Taylor be2fe6d128 Make it optional to use zl/zh/lz/hz delays for utgate. 2022-12-11 16:08:31 +01:00