diff --git a/visualc/ng_shared_xspice_v/README.xspice b/visualc/ng_shared_xspice_v/README.xspice index 1cbc8baf1..00637914f 100644 --- a/visualc/ng_shared_xspice_v/README.xspice +++ b/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 diff --git a/visualc/ng_shared_xspice_v/share/ngspice/scripts/spinit b/visualc/ng_shared_xspice_v/share/ngspice/scripts/spinit new file mode 100644 index 000000000..5397b802f --- /dev/null +++ b/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