API¶
Main¶
Layer¶
-
class Layer¶
Defines a layer, data for this object is usually loaded from the “layers” section in the technology file
Public Types
Public Functions
-
Layer()¶
Public Members
-
QString name¶
Name of layer, for example “M1”.
-
int number¶
GDS layer number.
-
int datatype¶
GDS layer datatype.
-
QMap<QString, int> datatypes¶
-
MATERIAL_TYPE material¶
Type of material.
-
QString previous¶
Previous layer in routing stack, i.e CO for M1.
-
QString next¶
Next layer in routing stack, i.e VIA1 for M1.
-
QString pin¶
Name of pin layer for this layer, i.e. M1_pin.
-
QString res¶
Name of resistor layer for this layer, i.e. M1_res.
-
QString color¶
Color of this layer to use in GUI, QColor names can be used.
-
bool nofill¶
Fill rectangle of this layer in GUI.
-
bool visible¶
Whether this layer is visible in GUI.
-
Layer()¶
Rules¶
-
class Rules : public QObject¶
Public Functions
-
Rules()¶
-
inline ~Rules()¶
-
Device *getDevice(QString dev)¶
-
qreal get(QString layer, QString rule)¶
-
bool hasRule(QString layer, QString rule)¶
-
double spiceUnit()¶
-
QString layerToColor(QString name)¶
-
int layerToNumber(QString name)¶
-
int layerToDataType(QString name)¶
-
inline int gamma()¶
-
inline int grid()¶
-
void setRules(QJsonObject job)¶
-
bool isLayerBeforeLayer(QString layer1, QString layer2)¶
-
QString getNextLayer(QString lay)¶
-
QString getPreviousLayer(QString lay)¶
-
double toMicron(int val)¶
-
QString removeDataType(QString layer)¶
-
QString getDataType(QString layer)¶
-
Rules()¶
Design¶
-
class Design : public cIcCore::Cell¶
Public Functions
-
Design()¶
-
bool read(QString filename)¶
-
bool readCells(QString filename)¶
-
inline QList<QString> cellNames()¶
-
cIcSpice::Subckt *getSpiceSubckt(QJsonObject jobj, QList<QJsonObject> *reverse_parents, QString name)¶
-
virtual QJsonObject toJson()¶
-
virtual void fromJson(QJsonObject o)¶
-
QJsonObject readJson(QString filename)¶
-
void readJsonFile(QString filename)¶
-
void writeJsonFile(QString filename, QJsonObject info)¶
-
void addIncludePath(QString path)¶
-
void setPrefix(QString prefix)¶
-
bool hasTopCells()¶
-
Design()¶
Console¶
-
class Console¶
Basics¶
Point¶
-
class Point¶
Rect¶
-
class Rect : public QObject¶
Subclassed by cIcCore::Cell, cIcCore::Port, cIcCore::Text
Public Functions
-
Rect()¶
-
~Rect()¶
-
Rect(QString layer, int left, int bottom, int width, int height)¶
-
bool isHorizontal()¶
-
bool isVertical()¶
-
QString layer()¶
Name of GDS layer.
-
inline QString net()¶
Net name of this net.
-
inline void setNet(QString net)¶
-
inline Rules *getRules()¶
Get the cIcCore::Rules object.
-
inline int left()¶
-
inline int right()¶
x1
-
inline int top()¶
x2
-
inline int bottom()¶
y1
-
inline int width()¶
y2
-
inline int height()¶
x2 - x1
-
inline int centerX()¶
y2 - y1
-
inline int centerY()¶
x1 + (x2 - x1)/2
-
inline bool empty()¶
y1 + (y2 - y1)/2
-
inline int x1()¶
Is this rectangle empty, x1=x2=y1=y2.
-
inline int y1()¶
-
inline int x2()¶
-
inline int y2()¶
-
inline virtual void translate(int ax, int ay)¶
Move this rectangle by ax and ay.
-
inline virtual void moveTo(int x, int y)¶
Move this rectangle to x and y.
-
inline virtual void moveCenter(int x, int y)¶
Place center of this rectangel at x and y.
-
inline virtual void adjust(int dx)¶
Increase the size of this rectangle by dx on all sides.
-
inline virtual void adjust(int dx1, int dy1, int dx2, int dy2)¶
-
Rect *adjustedOnce(int xp1)¶
Get a rectangele where each side is moved by xp1. Useful for generating a rectangle to enclose this rectangle by a certain amount
-
virtual void mirrorX(int ax)¶
Mirror around ax, will send “updated()”.
-
virtual void mirrorY(int ay)¶
Mirror arround ay, will send “updated()”.
-
inline void setPoint1(int x1, int y1)¶
-
inline void setPoint2(int x2, int y2)¶
-
bool isRect()¶
-
bool isInstance()¶
Check if this is an cIcCore::Instance object.
-
bool isRoute()¶
Check if this is a cIcCore::Routeobject.
-
bool isCut()¶
Check if this is a cIcCore::Cut object.
-
bool isCell()¶
Check if this is a cIcCore::Cell object.
-
bool isLayoutCell()¶
Check if this is a cIcCore::LayoutCell object.
-
bool isPort()¶
Check if this is a cIcCore::Port object.
-
bool isText()¶
Check if this is a cIcCore::Text object.
-
int snap(int x)¶
Snap to grid, defult 5 ångstrøm.
-
virtual QString toString()¶
Convert a rectangle to a string that can be printed to console, useful for debug.
-
void rotate(int i)¶
-
virtual QJsonObject toJson()¶
-
virtual void fromJson(QJsonObject o)¶
-
void setPrefix(QString prefix)¶
Public Slots
-
void setLayer(QString layer)¶
Set GDS layer name.
-
inline void setLeft(int left)¶
Set the left coordinate (x1)
-
inline void setRight(int right)¶
Set the right coordinate (x2)
-
inline void setTop(int top)¶
Set the top coordinate (y2)
-
inline void setBottom(int bottom)¶
Set the bottom coordinate (y1)
-
inline void setWidth(int width)¶
Set width, moves x2.
-
inline void setHeight(int height)¶
Set height, moves y2.
-
inline void setRect(int x, int y, int width, int height)¶
-
inline void setRect(QString layer, int x, int y, int width, int height)¶
Signals
-
void updated()¶
Notify listeners when the rectangle has moved.
Public Static Functions
-
Rect()¶
Port¶
-
class Port : public cIcCore::Rect¶
Port is a net name attached to a rectangle
Subclassed by cIcCore::InstancePort
Public Functions
-
Port()¶
-
~Port()¶
-
explicit Port(QString name)¶
-
QString name()¶
Net name.
-
void setName(QString name)¶
-
QString pinLayer()¶
-
virtual void mirrorX(int ay) override¶
Mirror around ax, will send “updated()”.
-
virtual void mirrorY(int ax) override¶
Mirror arround ay, will send “updated()”.
-
virtual QString toString()¶
Convert a rectangle to a string that can be printed to console, useful for debug.
-
inline bool isInstancePort()¶
-
virtual QJsonObject toJson() override¶
-
virtual void fromJson(QJsonObject o) override¶
Public Members
-
bool spicePort¶
Public Slots
-
void updateRect()¶
-
Port()¶
InstancePort¶
Text¶
Basic Cells¶
Cell¶
-
class Cell : public cIcCore::Rect¶
Base class for all cells, usually inherited to provide specialization. The methods of this class is called in the following order when a cell is created: place(); route(); paint();
Subclassed by cIcCore::Cut, cIcCore::Design, cIcCore::Guard, cIcCore::Instance, cIcCore::LayoutCell, cIcCore::PatternTile, cIcCore::Route, cIcCore::RouteRing
Public Functions
-
Cell()¶
-
~Cell()¶
-
virtual void add(Rect *rect)¶
Add a rectangle to the cell, hooks updated() of the child to updateBoundingRect.
-
virtual void translate(int dx, int dy) override¶
Move this cell, and all children by dx and dy.
-
virtual void mirrorX(int ax) override¶
Mirror this cell, and all children around ax.
-
virtual void mirrorY(int ay) override¶
Mirror this cell, and all children around ay.
-
virtual void moveTo(int ax, int ay) override¶
Move this cell, and all children to ax and ay.
-
virtual void moveCenter(int ax, int ay) override¶
Center this cell, and all children on ax and ay.
-
void meta(QJsonObject obj)¶
-
void boundaryIgnoreRouting(QJsonValue obj)¶
Center this cell, and all children on ax and ay.
-
void setBoundaryIgnoreRouting(bool bir)¶
-
bool boundaryIgnoreRouting()¶
-
void mirrorCenterX()¶
Mirror this cell, and all children around horizontal center point (basically flip horizontal)
-
void mirrorCenterY()¶
-
virtual Rect calcBoundingRect()¶
Calculate the extent of this cell. Should be overriden by children.
-
virtual QString toString() override¶
Convert cell to a human readable format, useful for debug.
-
inline bool isPhysicalOnly()¶
Mark as a physcial only cell.
-
inline bool setPhysicalOnly(bool val)¶
-
inline QString name()¶
Name of this cell.
-
inline QString setName(QString val)¶
-
inline void setLibCell(bool isLibCell)¶
-
inline void setLibPath(QString path)¶
-
inline QString libPath()¶
-
inline void setUsed(bool isUsed)¶
-
inline bool isUsed()¶
-
QList<QString> allPortNames()¶
-
Port *updatePort(QString name, Rect *r)¶
Update rectangle of port, if port does not exist a new one is created
-
bool isASpicePort(QString name)¶
-
virtual void place()¶
Place children.
-
virtual void paint()¶
Paint children, useful with a method after route.
-
virtual void addAllPorts()¶
Automatically add remaing ports.
-
virtual QList<Rect*> findRectanglesByRegex(QString regex, QString layer)¶
Find all rectangles by regular expression.
-
virtual QJsonObject toJson() override¶
-
virtual void fromJson(QJsonObject o) override¶
-
void addEnclosingLayers(QList<QString> layers)¶
-
virtual void updateUsedChildren()¶
Public Slots
-
void updateBoundingRect()¶
Properties
- bool physicalOnly
Mark a cell as physical only.
- Accessors:\n isPhysicalOnly(), setPhysicalOnly()
-
Cell()¶
Cut¶
-
class Cut : public cIcCore::Cell¶
Public Functions
-
Cut(QString layer1, QString layer2, int horizontal_cuts, int vertical_cuts)¶
-
~Cut()¶
Public Static Functions
-
static QString makeName(QString layer1, QString layer2, int horizontal_cuts, int vertical_cuts)¶
-
static Instance *getInstance(QString layer1, QString layer2, int horizontal_cuts, int vertical_cuts)¶
-
static QList<Rect*> getCutsForRects(QString layer1, QList<Rect*>, int horizontal_cuts, int vertical_cuts)¶
-
static QList<Rect*> getCutsForRects(QString layer1, QList<Rect*>, int horizontal_cuts, int vertical_cuts, bool alignLeft)¶
-
Cut(QString layer1, QString layer2, int horizontal_cuts, int vertical_cuts)¶
Instance¶
-
class Instance : public cIcCore::Cell¶
Subclassed by cIcCore::InstanceCut
Public Functions
-
Instance()¶
-
~Instance()¶
-
inline QString instanceName()¶
-
inline QString id()¶
-
virtual Rect calcBoundingRect() override¶
Calculate the extent of this cell. Should be overriden by children.
-
inline QString angle()¶
-
void setAngle(QString angle)¶
-
inline cIcSpice::SubcktInstance *subcktInstance()¶
-
void setSubcktInstance(cIcSpice::SubcktInstance *inst)¶
-
virtual QList<Rect*> findRectanglesByRegex(QString regex, QString layer) override¶
Find all rectangles by regular expression.
-
virtual QString toString() override¶
Convert cell to a human readable format, useful for debug.
-
virtual QJsonObject toJson() override¶
-
virtual void fromJson(QJsonObject o) override¶
-
void setCell(QString cell)¶
-
virtual void updateUsedChildren() override¶
-
Instance()¶
InstanceCut¶
Pattern Cells¶
PatternTile¶
-
class PatternTile : public cIcCore::Cell¶
Subclassed by cIcCore::PatternCapacitor, cIcCore::PatternHighResistor, cIcCore::PatternResistor, cIcCore::PatternTransistor, cIcCore::ResistorCell
Public Functions
-
PatternTile()¶
-
PatternTile(const PatternTile&)¶
-
~PatternTile()¶
-
void fillCoordinatesFromString(QJsonArray ar)¶
fillCoordinatesFromString
-
void verticalMultiplyVector(QJsonArray ar)¶
verticalMultiplyVector
EXPERIMENTAL! Vector length must be the same length as the number of rows in fillCoordinatesFromString. Multiplies the height of a cell with the number in the vector multiplier
-
void getRuleForHorizontalGrid(QJsonArray ar)¶
-
void getRuleForVerticalGrid(QJsonArray ar)¶
-
void copyColumn(QJsonObject obj)¶
Copy a column set of a fillCoordinateFromStrings
A CopyColumn object consists of the following { “count” : int, “offset” : int, “length” : int, [“position” : int] }
count is the number of times to copy the column set
offset is the column set index from left edge of string
length is the length of the column set
position is optional, and if not set will be equal to offset. If position is given, then the copies of a column is inserted at that point
- Parameters:
QJsonObject – Array of CopyColumn objects
-
void copyRow(QJsonObject obj)¶
Copy a row set of a fillCoordinateFromStrings
A CopyRows object consists of the following { “count” : int, “offset” : int, “length” : int, [“position” : int] }
count is the number of times to copy the row set
offset is the row set index from top edge of string
length is the length of the row set
position is optional, and if not set will be equal to offset. If position is given, then the copies of a row set is inserted at that point
- Parameters:
QJsonObject – Array of CopyRows objects
-
void copyLayer(QJsonArray ar)¶
-
void addEnclosure(QJsonArray ar)¶
-
void addEnclosureByRectangle(QJsonArray ar)¶
-
void addEnclosuresByRectangle(QJsonArray ar)¶
-
virtual QMap<QString, QVariant> initFillCoordinates()¶
-
inline virtual void onFillCoordinate(QChar, QString, int, int, QMap<QString, QVariant>&)¶
-
inline virtual void endFillCoordinate(QMap<QString, QVariant>&)¶
-
virtual void paint() override¶
Paint children, useful with a method after route.
-
virtual Rect calcBoundingRect()¶
Calculate the extent of this cell. Should be overriden by children.
-
inline qreal minPolyLength()¶
-
inline qreal setMinPolyLength(qreal val)¶
-
inline bool metalUnderMetalRes()¶
-
inline void setMetalUnderMetalRes(bool val)¶
-
inline qreal verticalGrid()¶
-
inline qreal setVerticalGrid(qreal val)¶
-
inline double verticalGridMultiplier()¶
-
inline double setVerticalGridMultiplier(double val)¶
-
inline int horizontalGrid()¶
-
inline int setHorizontalGrid(int val)¶
-
inline double horizontalGridMultiplier()¶
-
inline double setHorizontalGridMultiplier(double val)¶
-
inline qreal widthoffset()¶
-
inline qreal setWidthoffset(qreal widthoffset)¶
-
inline qreal heightoffset()¶
-
inline qreal setHeightoffset(qreal heightoffset)¶
-
inline qreal xoffset()¶
-
inline qreal setXoffset(qreal xoffset)¶
-
inline int polyWidthAdjust()¶
-
inline int setPolyWidthAdjust(int val)¶
-
inline qreal yoffset()¶
-
inline qreal setYoffset(qreal yoffset)¶
-
inline int mirrorPatternString()¶
-
inline int setMirrorPatternString(int mirrorPatternString)¶
Public Members
-
QMap<QChar, PatternData*> Pattern¶
Properties
- qreal minPolyLength
minimum poly length
- Accessors:\n minPolyLength(), setMinPolyLength()
- qreal widthoffset
offset to add to the width
- Accessors:\n widthoffseth(), setWidthOffset()
- qreal heightoffset
offset to add to the width
- Accessors:\n height(), setHeightOffset()
- qreal verticalGrid
Override vertical grid.
- Accessors:\n verticalGrid(), setVerticalGrid()
- qreal horizontalGrid
Override horizontal grid.
- Accessors:\n horizontalGrid(), setHorizontalGrid()
- double verticalGridMultiplier
multiply vertical grid by an number
- Accessors:\n verticalGridMultiplier(), setVerticalGridMultiplier()
- double horizontalGridMultiplier
multiply horizontal grid by an number
- Accessors:\n horizontalGridMultiplier(), setHorizontalGridMultiplier()
- qreal yoffset
add offset to Y origin coordinate
- Accessors:\n yoffset(), setYoffset()
- qreal xoffset
add offset to X origin coordinate
- Accessors:\n xoffset(), setXoffset()
- int mirrorPatternString
Mirror the pattern string after creation.
- Accessors:\n mirrorPatternString(), setMirrorPatternString()
- int polyWidthAdjust
Adjust the poly width.
- Accessors:\n polyWidthAdjust(), setPolyWidthAdjust()
- bool metalUnderMetalRes
Add metal under metal-resistor layer, depends on technology.
- Accessors:\n metalUnderMetalRes(), setMetalUnderMetalRes()
Public Static Attributes
-
static QMap<QString, QStringList> Patterns¶
-
PatternTile()¶
PatternResistor¶
-
class PatternResistor : public cIcCore::PatternTile¶
Public Functions
-
PatternResistor()¶
-
PatternResistor(const PatternResistor &mos)¶
-
~PatternResistor()¶
-
virtual QMap<QString, QVariant> initFillCoordinates()¶
-
virtual void onFillCoordinate(QChar c, QString layer, int x, int y, QMap<QString, QVariant> &data)¶
-
virtual void endFillCoordinate(QMap<QString, QVariant> &data)¶
-
PatternResistor()¶
PatternHighResistor¶
-
class PatternHighResistor : public cIcCore::PatternTile¶
PatternCapacitor¶
-
class PatternCapacitor : public cIcCore::PatternTile¶
PatternTransistor¶
-
class PatternTransistor : public cIcCore::PatternTile¶
Public Functions
-
PatternTransistor()¶
-
~PatternTransistor()¶
-
inline QString mosType()¶
-
inline void setMosType(QString mosType)¶
-
virtual QMap<QString, QVariant> initFillCoordinates()¶
-
virtual void onFillCoordinate(QChar c, QString layer, int x, int y, QMap<QString, QVariant> &data)¶
-
virtual void endFillCoordinate(QMap<QString, QVariant> &data)¶
-
virtual QJsonObject toJson()¶
-
virtual void fromJson(QJsonObject o)¶
Properties
- QString mosType
-
PatternTransistor()¶
Route¶
Route¶
-
class Route : public cIcCore::Cell¶
Public Functions
-
Route(QString net, QString layer, QList<Rect*> start, QList<Rect*> stop, QString options, QString routeType)¶
-
~Route()¶
-
virtual void addStartCuts()¶
-
virtual void addEndCuts()¶
-
void routeUHorizontal()¶
-
void addVertical(int x)¶
-
void hasMatch(QString options)¶
-
int getIntegerFromMatch(QString regex, QString options, int defaultValue)¶
-
QString getQStringFromMatch(QString regex, QString options, QString defaultValue)¶
-
Route(QString net, QString layer, QList<Rect*> start, QList<Rect*> stop, QString options, QString routeType)¶
Guard¶
Graph¶
RouteRing¶
-
class RouteRing : public cIcCore::Cell¶
Public Functions
-
RouteRing()¶
-
RouteRing(QString layer, QString name, Rect *size, QString location, int xgrid, int ygrid, int width)¶
-
~RouteRing()¶
-
void trimRouteRing(QString location, QString whichEndToTrim)¶
-
virtual void translate(int dx, int dy) override¶
Move this cell, and all children by dx and dy.
-
virtual void moveTo(int ax, int ay) override¶
Move this cell, and all children to ax and ay.
-
RouteRing()¶
Layout Cells¶
LayoutCell¶
-
class LayoutCell : public cIcCore::Cell¶
Subclassed by cIcCells::CDAC, cIcCells::CapCell, cIcCells::CapCellV2, cIcCells::PhCapCell, cIcCells::SAR, cIcCore::LayoutRotateCell
Public Functions
-
LayoutCell()¶
-
LayoutCell(const LayoutCell&)¶
-
~LayoutCell()¶
-
void setYoffsetHalf(QJsonValue obj)¶
-
void noPowerRoute(QJsonValue obj)¶
-
void placeHorizontal(QJsonValue obj)¶
-
void addDirectedRoute(QJsonArray obj)¶
-
void addConnectivityRoute(QJsonArray obj)¶
-
void addPortOnRect(QJsonArray obj)¶
-
void addPortRectangle(QJsonArray obj)¶
-
void addVia(QJsonArray obj)¶
-
void addConnectivityVia(QJsonArray obj)¶
-
void addPortVia(QJsonArray obj)¶
-
void addVerticalRect(QJsonArray obj)¶
-
void addRouteRing(QJsonArray obj)¶
-
void parseSubckt(QJsonObject obj)¶
-
void addPowerRing(QJsonArray obj)¶
-
void addRouteConnection(QJsonArray obj)¶
-
void addPowerConnection(QJsonArray obj)¶
-
void trimRouteRing(QJsonArray obj)¶
-
void addRectangle(QJsonArray obj)¶
-
void addRouteHorizontalRect(QString layer, QString rectpath, int x, QString name)¶
-
void addRouteHorizontalRect(QJsonArray obj)¶
-
void addGuard(QJsonArray obj)¶
-
void addHorizontalRect(QJsonArray obj)¶
-
void alternateGroup(QJsonValue obj)¶
-
void resetOrigin(QJsonValue obj)¶
-
void addPortOnEdge(QJsonArray obj)¶
-
void addPortOnEdge(QString layer, QString port, QString location, QString routeType, QString options)¶
-
void setSpiceParam(QJsonArray obj)¶
-
void addGuard(QString port, double gridMultiplier, QList<QString> layers)¶
-
void noPowerRoute()¶
-
Instance *addInstance(cIcSpice::SubcktInstance *ckt, int x, int y)¶
-
void addRectangle(QString layer, int x1, int y1, int width, int height, QString angle)¶
-
void addPortRectangle(QString layer, int x1, int y1, int width, int height, QString angle, QString port)¶
-
void addConnectivityRoute(QString layer, QString regex, QString routeType, QString options, QString cuts, QString excludeInstances, QString includeInstances)¶
-
void trimRouteRing(QString path, QString location, QString whichEndToTrim)¶
-
void addRouteRing(QString layer, QString name, QString location, int widthmult, int spacemult)¶
-
void addRouteRing(QString layer, QString name, QString location, int widthmult, int spacemult, bool useGridForSpace)¶
-
void addPowerRing(QString layer, QString name, QString location, int widthmult, int spacemult)¶
-
void addPowerConnection(QString name, QString includeInstances, QString location)¶
-
void addRouteConnection(QString path, QString includeInstances, QString layer, QString location, QString options)¶
-
void addRouteConnection(QString path, QString includeInstances, QString layer, QString location, QString options, QString routeTypeOverride)¶
-
virtual void place() override¶
Place children.
-
virtual void addAllPorts() override¶
Automatically add remaing ports.
-
virtual void routePower()¶
-
virtual void paint() override¶
Paint children, useful with a method after route.
-
QList<QString> nodeGraphList()¶
-
QStringList expandBus(QString name)¶
-
virtual QList<Rect*> findRectanglesByNode(QString node, QString filterChild, QString filterInstance)¶
-
virtual void fromJson(QJsonObject obj) override¶
-
virtual QJsonObject toJson() override¶
-
void addPowerRoute(QString net, QString excludeInstances)¶
-
LayoutCell()¶
LayoutRotateCell¶
-
class LayoutRotateCell : public cIcCore::LayoutCell¶
Complex Cells¶
CapCell¶
-
class CapCell : public cIcCore::LayoutCell¶
Public Functions
-
virtual void place()¶
Place children.
-
virtual Rect calcBoundingRect()¶
Calculate the extent of this cell. Should be overriden by children.
-
void addContacts(QString name, QString node, int y, QList<int> array, Rect *r)¶
-
Rect *getAvssConnectRect(Rect *rect)¶
-
void usem3(QJsonValue obj)¶
Use Metal 3.
-
void usem5(QJsonValue obj)¶
Use Metal 5 shield.
-
void heightIncreaseMult(QJsonValue obj)¶
Increase multiplier height.
-
virtual void place()¶
CDAC¶
-
class CDAC : public cIcCore::LayoutCell¶
SAR¶
-
class SAR : public cIcCore::LayoutCell¶
Public Functions
-
virtual void place()¶
Place children.
-
virtual void route()¶
Route children.
-
void usem5(QJsonValue obj)¶
Use Metal 5 shield.
-
int getCellWidth(SARgroup groups, QString group)¶
-
cIcCore::Instance *placeAlternateMirror(SARgroup groups, QString group, int i, int x, int y, int xoffset)¶
-
int addSarRouting(int y, int msw, int mw)¶
-
virtual void place()¶
Spice¶
SpiceObject¶
-
class SpiceObject : public QObject¶
Subclassed by cIcSpice::SpiceDevice, cIcSpice::Subckt, cIcSpice::SubcktInstance
Public Functions
-
SpiceObject()¶
-
SpiceObject(const SpiceObject&)¶
-
~SpiceObject()¶
-
QString name()¶
-
virtual QJsonObject toJson()¶
-
void fromJson(QJsonObject o)¶
-
virtual QString setName(QString val)¶
-
int lineNumber()¶
-
int setLineNumber(int val)¶
-
QList<QString> spiceStr()¶
-
QList<QString> setSpiceStr(QList<QString> val)¶
-
QStringList nodes()¶
-
QStringList setNodes(QStringList val)¶
-
QVariantMap properties()¶
-
QString spiceType()¶
-
void setSpiceType(QString type)¶
-
QString deviceName()¶
-
void setDeviceName(QString name)¶
-
virtual QString toSpice(QString instance, QStringList nodes)¶
-
virtual void setProperty(QString key, int val)¶
-
virtual void setProperty(QString key, QString val)¶
-
virtual void setProperty(QString key, double val)¶
-
virtual bool hasProperty(QString key)¶
-
virtual QString getPropertyString(QString key)¶
-
void setPrefix(QString prefix)¶
Properties
- QString name
- QStringList spiceStr
- QStringList nodes
- int lineNumber
-
SpiceObject()¶
SpiceDevice¶
-
class SpiceDevice : public cIcSpice::SpiceObject¶
Subclassed by cIcSpice::Capacitor, cIcSpice::Mosfet, cIcSpice::Resistor
Mosfet¶
-
class Mosfet : public cIcSpice::SpiceDevice¶
Resistor¶
-
class Resistor : public cIcSpice::SpiceDevice¶
Public Functions
-
Resistor(QStringList n)¶
-
Resistor()¶
-
void init(QStringList n)¶
-
~Resistor()¶
-
virtual QString toSpice(QString instance, QStringList nodes)¶
-
virtual QJsonObject toJson()¶
-
virtual void fromJson(QJsonObject o)¶
-
virtual QString toSpice()¶
Public Members
-
double width¶
-
Resistor(QStringList n)¶
Capacitor¶
-
class Capacitor : public cIcSpice::SpiceDevice¶
Subckt¶
-
class Subckt : public cIcSpice::SpiceObject¶
Public Functions
-
Subckt()¶
-
Subckt(QList<QString> buffer)¶
-
~Subckt()¶
-
virtual QJsonObject toJson()¶
-
virtual void fromJson(QJsonObject o)¶
-
void parse(QList<QString> buffer, int line)¶
-
inline QList<SubcktInstance*> instances()¶
-
inline QList<SpiceDevice*> devices()¶
-
inline void setLibPath(QString path)¶
-
inline QString libPath()¶
-
inline void add(SubcktInstance *s)¶
-
inline void add(SpiceDevice *s)¶
-
SubcktInstance *getInstance(QString name)¶
-
inline void addSubckt()¶
Properties
- QString name
Public Static Functions
-
static Subckt *getInstanceSubckt(SubcktInstance*)¶
-
Subckt()¶
SubcktInstance¶
-
class SubcktInstance : public cIcSpice::SpiceObject¶
Public Functions
-
SubcktInstance()¶
-
SubcktInstance(QString buffer)¶
-
SubcktInstance(const SubcktInstance&)¶
-
~SubcktInstance()¶
-
virtual QString setName(QString val)¶
-
inline QString subcktName()¶
-
inline QString setSubcktName(QString val)¶
-
inline QString groupName()¶
-
inline QString groupTag()¶
-
void parse(QString buffer, int line_number)¶
-
virtual QJsonObject toJson()¶
-
virtual void fromJson(QJsonObject o)¶
Properties
- QString subcktName
-
SubcktInstance()¶
SpiceParser¶
-
class SpiceParser : public QObject¶