Browse Source

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

pre-master-46
Holger Vogt 5 years ago
parent
commit
896f7cbc6d
  1. 3
      visualc/ng_shared_xspice_v/README.xspice
  2. 25
      visualc/ng_shared_xspice_v/share/ngspice/scripts/spinit

3
visualc/ng_shared_xspice_v/README.xspice

@ -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

25
visualc/ng_shared_xspice_v/share/ngspice/scripts/spinit

@ -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
Loading…
Cancel
Save