mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
Adding spinit with path (to be edited by the user) to code models
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user