Download electrical modelling interface
Transcript
ELECTRICAL MODELLING INTERFACE SPICENODE IINSTANCE::getspicenode (CHAR *namelist, BOOL required) Description Retrieves the SPICE node number for a particular pin. The node number can be used to access values in RHS (voltage) vectors and as a parameter of the ISPICECKT::allocsmp function. Typically, a model will call this function in its implementation of ISPICEMODEL::setup and will preserve the returned values as member variables representing each of its pins. Note that this function will only find nodes for which the model's implementation of ISPICEMODEL::isanalog returned TRUE. Parameters CHAR *namelist A comma separated list of possible names for the pin. BOOL required If TRUE, the pin must exist or else an error will be logged and the simulation will be aborted at the end of the netlist loading process. Return Value SPICENODE The ordinal of the node within the SPICE kernel, or -1 if the pin was not found.