SmartSpice Shared Mode API

SmartSpice API, shared mode, was developed in order to provide an easy to use solution for products requiring the analog SPICE core engine as an integral part of their functionality. It is a fast and reliable application programming interface used by several SILVACO’s and customer’s tools. The main idea is to allow a client tool to dynamically link with SPICE shared object from pre-installed SmartSpice release package. For convenience, there is a small static library, called ‘testspice’, which can be used to make integration process seamless. In this article we are going to use this library to demonstrate how to use SPICE shared mode API on simple example. The example is ‘testLiteShared.cpp’ can be found with testspice.

First, we have to declare a server object which will provide basic services associated with the current application instance:

CSpiceSharedServer oServer(argc, argv);

The class declaration is in MySpiceShared.h file which must be included. The arguments (argc and argv) are those passed to the main program’s procedure.

Next, we have to initialize the server by calling ‘Initialize’ method of CSpiceSharedServer class: