A module to extract electrical parameter from the design. More...
A module contain several methods to extract electrical parameter from the design.
caluclate the resistance of a single polygon. As ports for the calculation the point array segment port1 and port2 will be used, e.g. a 1 for port1 will use the polygon segment between pointArray.point(1) and pointArray.point(2) as port. The returned value times the square resistance will result in the absolute resistance of the structure.
extract the component comp from the design. All extraction information is store in the component library.
add the shape to the shapes used for inductance calculation. As for the inducatance calculation in general path elements are assumed to have a current flow in the drawong plane and polygon are assumed to have a current flow perpendicular to the drawing plane. The shorted currenct flow through all shapes of an conductor is assumed. (introduced with release 20180505)
Adds all selectec shapes to a new conductor for the inducance caluclation.(introduced with release 20180505)
starts the calculation of the inductance (introduced with release 20180505)
removes all shapes added before from the inductance calculation. (introduced with release 20180505)
Returns: the result of the inductance calculation. If con1=con2 the selft inductance of the conductor is returned. Apart from that the coupling is returned. (introduced with release 20180505)
// setup and performs the extraction
layout->extractionTool->inductanceClear();
layout->drawing->deselectAll();
layout->drawing->activeLayer=1;
layout->drawing->selectActiveLayer();
layout->extractionTool->inductanceAddSelection();
layout->drawing->deselectAll();
layout->drawing->activeLayer=6;
layout->drawing->selectActiveLayer();
layout->extractionTool->inductanceAddSelection();
layout->drawing->deselectAll();
layout->extractionTool->inductanceCalc(1000000);
debug("output self inductance in nH");
debug(layout->extractionTool->inductanceResult(0,0)*1000000000); //output in nH
devices created by prior device extractions are removed from the current cell. Use device cells are removed as well.
set the detaillevel for calculation of the resistance. Allowed values are from 0 (fastest) to 100 (most detailed).