next up previous contents
Next: The class EvaluationAlgorithm Up: Code implementation Previous: Code implementation   Contents

The classes CircuitNetlist and Circuit

The public and protected methods of class CircuitNetlist are:
\begin{listing}{1}
class CircuitNetList
{
private:
...
\par protected:
char *F...
...nst char* name ) const;
int TranPos( const char* name ) const;
};
\end{listing}
This class provides some method to return the i-th transistor by means of operator[], either by calling it with the relative number of transistor or with its name. Also the class provides the methods to return the effective power supply node (the ground node is assumed to be always the node 0).
Internally the class contains the list of all the transistors and all the capacitors present in the original netlist.

The public and protected methods of class Circuit are:
\begin{listingcont}
class Circuit : public CircuitNetList
{
private:
...
public...
...storList& TList,
unsigned int& n , unsigned int& p) const;
};
\end{listingcont}
The class provides the method Simulate(const double *NewWidth ) that invokes the simulator of the circuit with the new transistor widths NewWidth. It provides also some methods ...Width(...) that return the sum of the widths of all the transistors connected to a node and a few methods CapStatic...(...) that return the sum of all the capacitances connected between a node and the power supply node or between a node and the ground node. These methods are useful for the FAST model.


next up previous contents
Next: The class EvaluationAlgorithm Up: Code implementation Previous: Code implementation   Contents
marco+site@equars.com