Skip to content

Commit

Permalink
Prepare for ngspice-40
Browse files Browse the repository at this point in the history
  • Loading branch information
holvo committed Mar 24, 2023
1 parent 311ddea commit 8064898
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 27 deletions.
9 changes: 2 additions & 7 deletions DEVICES
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ Table of contents
12.4 BSIMSOI - SOI model (partially/full depleted devices)
12.5 SOI3 - STAG SOI3 Model
13. Verilog-A models
13.1 EKV MOS model
13.2 PSP MOS model 102
13.3 PSP MOS model 103
13.4 HICUM0 Bipolar Model
13.5 Mextram Bipolar Model
14. XSPICE code models
15. Digital Building Blocks (U instances)

Expand Down Expand Up @@ -831,8 +826,8 @@ will be updated every time the device specific code is altered or changed to ref
13.7 PSP 103.8
13.8 r2_cmc

More may be made available, user compiled models are possible as well
(See ngspice manual, chapter 13).
More models are available at https://github.com/dwarning/VA-Models,
user compiled models are possible as well (See ngspice manual, chapter 13).


14. XSpice code models
Expand Down
6 changes: 3 additions & 3 deletions FAQ
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Ngspice F.A.Q.Version 2.9 (ngspice-39 release)
Ngspice F.A.Q.Version 2.9 (ngspice-40 release)

Maintained by Holger Vogt
Last update: Jan 24 2023
Last update: Mar 24 2023

This document contains the Frequently Asked Questions (and Answers)
for ngspice project.
Expand Down Expand Up @@ -252,7 +252,7 @@

The latest version released is:

* ngspice-39 (released on Jan 31 2023)
* ngspice-40 (released on Mar 26 2023)


2.2. What are the latest features in the current release?
Expand Down
20 changes: 9 additions & 11 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Ngspice installation instructions
=================================

Important notice: since ngspice-35 there has been an update
Important notice: since ngspice-39 there has been an update
to the XSPICE code models (analog.cm etc.). Therefore it
is not sufficient to only re-make the main executable,
you will have to compile and install the code models as well,
Expand All @@ -28,7 +28,7 @@ Table of contents
8 Operation Controls
9 NGSPICE COMPILATION UNDER WINDOWS OS
9.1 How to make ngspice with MINGW and MSYS
9.2 make ngspice with MS Visual Studio 2019 or 2022
9.2 make ngspice with MS Visual Studio 2022
9.3 make ngspice with pure CYGWIN
9.4 ngspice console app with MINGW or CYGWIN
9.5 cross compiling ngspice for Windows from LINUX
Expand Down Expand Up @@ -580,9 +580,9 @@ This file describes the procedures to install ngspice from sources.
script compile_min_shared.sh.


9.2 make ngspice with MS Visual Studio 2019 and 2022
9.2 make ngspice with MS Visual Studio 2022

ngspice may be compiled with MS Visual Studio 2019 or newer.
ngspice may be compiled with MS Visual Studio 2022 or newer.

CIDER and XSPICE are included, the code models for XSPICE
(*.cm) are made as well.
Expand All @@ -594,13 +594,13 @@ This file describes the procedures to install ngspice from sources.
The directory (visualc) with its files
vngspice.sln (project starter) and
vngspice.vcproj (project contents)
allows to compile and link ngspice with MS Visual Studio 2019.
allows to compile and link ngspice with MS Visual Studio 2022.

/visualc/include contains a dedicated config.h file. It contains the
preprocessor definitions required to properly compile the code.
strings.h has been necessary during setting up the project.

Install Microsoft Visual Studio 2019 Community with C/C++. For
Install Microsoft Visual Studio 2022 Community with C/C++. For
example, the German edition is available at no cost from
https://www.visualstudio.com/de/vs/community/.

Expand All @@ -612,7 +612,7 @@ This file describes the procedures to install ngspice from sources.

Goto /ngspice/visualc.

Start MS Visual Studio 2019 by double click onto vngspice.sln.
Start MS Visual Studio 2022 by double click onto vngspice.sln.

After MS Visual Studio has opened up, select debug or release version
by checking 'Build' , 'Configuration Manager', 'Debug' or 'ReleaseOmp'.
Expand Down Expand Up @@ -722,11 +722,9 @@ cross-compile-shared.sh.
sudo port install automake autoconf libtool bison flex ncurses xorg-libXaw
readline fontconfig freetype libomp SM ICE
4. Execute this command:
./autogen.sh or ./autogen.sh --adms (if you want to enable ADMS)
./autogen.sh
5. Configure NGSPICE invoking "./configure". A complete set of feature is:
./configure --enable-cider --enable-xspice --enable-openmp --enable-pss --with-readline=yes --enable-debug=no
or (if you want to enable ADMS)
./configure --enable-adms --enable-cider --enable-xspice --enable-openmp --enable-pss --with-readline=yes --enable-debug=no
6. Compile NGSPICE invoking "make -j4"
7. Install NGSPICE invoking "make install" or "sudo make install"

Expand All @@ -749,7 +747,7 @@ Resulting dependencies of ngspice
/usr/lib/libSystem.B.dylib
/usr/local/lib/gcc/11/libgcc_s.1.dylib

10.5 About compilers
10.4 About compilers
A compile script compile_macos_clang.sh contains all necessary steps for compiling
with the Xcode clang/llvm compiler. This compiler however does not support -fopenmp.
Therefore you may download and install gcc, e.g. from Homebrew and run the new
Expand Down
6 changes: 0 additions & 6 deletions README_OSDI.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,4 @@ To compile NGSPICE with OSDI support ensure that the `--enable-predictor` and `-
The `compile_linux.sh` file enables these flags by default.


## Example/Test Case

A simple handwritten diode can be found in `test_cases/diode/diode.c`.
In the same directory a script named `test_diode.py` is provided that will compile this model and run some example simulations.
After the script has finished the compilation result `diode.osdi` and the netlist can then be found in `test_cases/diode/test_osdi`.


0 comments on commit 8064898

Please sign in to comment.