TCL API Overview Lab1
TCL API Overview Lab1
© 2021 Synopsys, Inc. This Synopsys software and all associated documentation are proprietary to Synopsys, Inc. and may only
be used pursuant to the terms and conditions of a written license agreement with Synopsys, Inc. All other use, reproduction,
modification, or distribution of the Synopsys software or the associated documentation is strictly prohibited.
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
https://www.synopsys.com/company/legal/trademarks-brands.html.
All other product or company names may be trademarks of their respective owners.
Free and Open-Source Licensing Notices
If applicable, Free and Open -Source Software (FOSS) licensing notices are available in the product installation.
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.
www.synopsys.com
Learning Objectives
Lab Duration:
30 minutes
Directory Structure
Tcl_API_Overview_Lab1 Current working directory
PLL OpenAccess Design library
getInstPinOrigin.tcl TCL procedure to return
instance pin origin
lib.defs Library Definitions file
Relevant Files
../PDK Technology Library
Unix% cd Tcl_API_Overview_Lab1
3. Open schematic or layout views of the copied vco cell and observe the hierarchy.
Note: If you press tab after de::open command a list of available libraries is
brought up. Using successive tabs you can select the required cellView
6. Make sure that view depth (leStopLevel) is greater than 0. Generate shapes on {m1
drawing} lpp they should overlap shapes on {m1 pin} lpp in 1x level of hierarchy for
each deFigure, using le::generateShapes command.
7. Create Path connecting I0:Z terminal with I1:A terminal using le::createPath
command.
• Lpp: {m1 drawing}
• Width: 0.12
• Points: To get start/end points use getInstPinOrigin procedure.
Example:
set startPoint [getInstPinOrigin I0 Z]
Example:
set startPoint [getInstPinOrigin vco LFIN]
1. source getInstPinOrigin.tcl
2. set ctx [de::open [dm::findCellView layout -
cellName test -libName PLL]]
set design [db::getAttr editDesign –of $ctx]
3. set bbox [db::getAttr bBox -of $design]