Python API Reference Manual L-2016.06
Total Page:16
File Type:pdf, Size:1020Kb
Python API Reference Manual L-2016.06 Copyright and Proprietary Information Notice © 2016 Synopsys, Inc. All rights reserved. This software and documentation contain confidential and proprietary information that is the property of Synopsys, Inc. The software and documentation are furnished under a license agreement and may be used or copied only in accordance with the terms of the license agreement. No part of the software and documentation may be reproduced, transmitted, or translated, in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without prior written permission of Synopsys, Inc., or as expressly provided by the license agreement. Destination Control Statement All technical data contained in this publication is subject to the export control laws of the United States of America. Disclosure to nationals of other countries contrary to United States law is prohibited. It is the reader’s responsibility to determine the applicable regulations and to comply with them. Disclaimer SYNOPSYS, INC., AND ITS LICENSORS MAKE NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Trademarks Synopsys and certain Synopsys product names are trademarks of Synopsys, as set forth at http://www.synopsys.com/Company/Pages/Trademarks.aspx. All other product or company names may be trademarks of their respective owners. Third-Party Links Any links to third-party websites included in this document are for your convenience only. Synopsys does not endorse and is not responsible for such websites and their practices, including privacy practices, availability, and content. Synopsys, Inc. 690 E. Middlefield Road Mountain View, CA 94043 www.synopsys.com Python API Reference Manual L-2016.06 2 CONTENTS INTRODUCTION .............................................................................................................. 6 Summary Description ..................................................................................................... 7 Basic Structure .............................................................................................................. 11 Units .............................................................................................................................. 13 Python Interpreter ......................................................................................................... 13 Python Documentation Conventions ............................................................................ 13 BASIC GEOMETRIC CLASSES .................................................................................... 14 Point .............................................................................................................................. 14 Range ............................................................................................................................ 19 Segment......................................................................................................................... 25 Box ................................................................................................................................ 29 Direction ....................................................................................................................... 39 Location ........................................................................................................................ 43 Orientation .................................................................................................................... 44 Transform ...................................................................................................................... 45 Font ............................................................................................................................... 48 PathStyle ....................................................................................................................... 49 GapStyle ........................................................................................................................ 49 PHYSICAL COMPONENT CLASSES ........................................................................... 51 Shape Classes ................................................................................................................ 66 Shape ......................................................................................................................... 66 Arc............................................................................................................................. 67 Donut......................................................................................................................... 69 Dot............................................................................................................................. 70 Ellipse ....................................................................................................................... 72 Line ........................................................................................................................... 74 Path ........................................................................................................................... 76 PathSeg ..................................................................................................................... 79 Polygon ..................................................................................................................... 81 Rect ........................................................................................................................... 83 Text ........................................................................................................................... 87 TextDisplay ............................................................................................................... 90 AttrDisplay ................................................................................................................ 91 PHYSICAL COMPONENT RELATED CLASSES ........................................................ 95 Instance Classes ............................................................................................................ 95 Instance ..................................................................................................................... 95 InstanceArray .......................................................................................................... 101 Contact .................................................................................................................... 104 AbutContact ............................................................................................................ 108 ArrayInstContact ..................................................................................................... 110 Grouping Classes ........................................................................................................ 112 Grouping ................................................................................................................. 112 CompoundComponent ............................................................................................ 117 Derived CompoundComponent Classes ..................................................................... 122 Python API Reference Manual L-2016.06 3 Bar ........................................................................................................................... 122 ContactRing ............................................................................................................ 125 DeviceContact ......................................................................................................... 129 MultiPath................................................................................................................. 133 RoutePath ................................................................................................................ 139 Boundary Classes ........................................................................................................ 146 Boundary ................................................................................................................. 146 PRBoundary ............................................................................................................ 147 Via Classes .................................................................................................................. 149 Via ........................................................................................................................... 149 StdVia ..................................................................................................................... 151 CustomVia .............................................................................................................. 153 PHYSICAL COMPONENT REFERENCE CLASSES ................................................. 155 PhysicalCompRef ....................................................................................................... 156 GroupingRef ............................................................................................................... 162 InstanceRef ................................................................................................................. 162 InstanceArrayRef .......................................................................................................