Adding spinit with path (to be edited by the user) to code models

This commit is contained in:
Holger Vogt 2021-08-06 12:31:16 +02:00
parent 9a2d968577
commit 896f7cbc6d
2 changed files with 28 additions and 0 deletions

View File

@ -5,4 +5,7 @@ Compile shared ngspice with Debug and 64 bit
Compile the example caller with Visual Studio
using ng_shared_test_v.sln.
Edit share/ngspice/scripts/spinit to enter the
proper path for the XSPICE code models.
Start the example with calling ng_shared_start.bat

View File

@ -0,0 +1,25 @@
* Modified ngspice init file
*set rndseed=12
** ascii rawfile **
set filetype=ascii
** frontend debug output **
*set ngdebug
** asking after quit **
*set askquit
** set the number of threads in openmp
** default (if compiled with --enable-openmp) is: 2
set num_threads=4
strcmp __flag $program "ngspice"
if $__flag = 0
* Load the codemodels
codemodel C:/Spice64d/lib/ngspice/spice2poly.cm
codemodel C:/Spice64d/lib/ngspice/analog.cm
codemodel C:/Spice64d/lib/ngspice/digital.cm
codemodel C:/Spice64d/lib/ngspice/xtradev.cm
codemodel C:/Spice64d/lib/ngspice/xtraevt.cm
codemodel C:/Spice64d/lib/ngspice/table.cm
end
unset __flag