summaryrefslogtreecommitdiff
path: root/Windows/spice/docs/README.shared-xspice
diff options
context:
space:
mode:
authorrahulp132020-03-03 05:31:58 +0530
committerrahulp132020-03-03 05:31:58 +0530
commitdfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch)
tree1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/docs/README.shared-xspice
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/docs/README.shared-xspice')
-rw-r--r--Windows/spice/docs/README.shared-xspice31
1 files changed, 31 insertions, 0 deletions
diff --git a/Windows/spice/docs/README.shared-xspice b/Windows/spice/docs/README.shared-xspice
new file mode 100644
index 00000000..706bda63
--- /dev/null
+++ b/Windows/spice/docs/README.shared-xspice
@@ -0,0 +1,31 @@
+Enabling XSPICE data transfer over the shared ngspice api.
+
+This branch enhances shared ngspice capability to event driven XSPICE data transfer.
+
+The shared library (dll) exports three new function:
+ngSpice_Init_Evt() provides addresses for two new callback functions.
+ To be called upon initialization.
+ngGet_Evt_NodeInfo() provides info for a specific node.
+ngSpice_AllEvtNodes() provides a list of all event nodes.
+
+There are two new callback functions
+
+sendinitevt() sends info upon the event nodes: name, type an dcorresponding index
+and is calles once per event nodes upon initialization of the circuit.
+
+sendevt() is called each time, when for a given event node, that is determined
+by index, a time step has been accepted and its value has changed. This allows
+to immediately make use of that value in the calling process.
+
+For details on the definitions you may have a look at sharedspice.h.
+
+There is an example caller file (currently tested only under Windows,
+and compiled with Visual Studio) in directory ngspice\visualc\ng_shared_xspice_v.
+
+There is also a new feature: The 'save' command accepts the flag none of run in
+shared mode. Then there is no internal storage of analog output data, they are
+still available with the callback function ng_data. The above mentioned example
+file now includes a testrun2 to demonstrate this feature.
+
+The already existing fcn ngGet_Vec_Info(evtnode) will return an analog vector
+derived from event node evtnode containing 1 and 0.