oaTrackPattern
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaTrackPattern 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaTrackPattern 当前在 oapy 中可用的 Python 接口。
详细说明
The oaTrackPattern class defines the position and number of routing tracks。 Routing tracks are used by grided routers to determine preferred locations for routes。 Tracks are defined as a grid - possibly non uniform - covering the area of the design。 Track patterns are similar to RouteGridPitch and RouteGridOffset constraints (see the built-in Routing constraint section in Creating and Modeling Process Rules and Constraints in the Programmers Guide)。 The routing constraints are the overall technology plan。 Track patterns are generally initialized by a router after considering the routing constraints and the details of a given design such as the width of the available vias。 The track patterns often will be usable only by the router that created them。 TrackPatterns can be horizontal or vertical and at least one of each must exist in a design for it to have a usable routing grid。 Each TrackPattern declares a set of uniformly spaced routing tracks。 TrackPatterns with isHorizontal set will define a horizontally spaced set of vertical routing tracks, and TrackPatterns with isHorizontal unset will define a set of vertically spaced horizontal routing tracks。 The startCoord of the TrackPattern with isHorizontal set will be the left X coordinate of the first track and the startCoord of the TrackPattern with isHorizontal unset will define the bottom Y coordinate of the lowest track。 An oaTrackPattern can optionally have an oaLayerNumber, in which case the trackPattern only applies to the specified layer。 Non-uniform grids may be declared by using multiple TrackPatterns for a given direction。 The oaTrackPattern class can be observed by deriving from oaObserver
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.isHorizontal() |
| ✅ | obj.getStartCoord() |
| ✅ | obj.getNumTracks() |
| ✅ | obj.getTrackSpacing() |
| ✅ | obj.hasRoutingLayer() |
| ✅ | obj.getRoutingLayer() |
| ✅ | obj.setHorizontal(isHorizontal) |
| ✅ | obj.setStartCoord(start) |
| ✅ | obj.setNumTracks(num) |
| ✅ | obj.setTrackSpacing(spacing) |
| ✅ | obj.setRoutingLayer(layer) |
| ✅ | obj.removeRoutingLayer() |
| ✅ | _design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing, routingLayer) |
| ✅ | _design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function deletes this trackPattern, removing it from the database。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.destroy()
obj.isHorizontal()
绑定状态: 已绑定
Python 调用: obj.isHorizontal()
This function returns the flag that indicates if this trackPattern is horizontal。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.isHorizontal()
obj.getStartCoord()
绑定状态: 已绑定
Python 调用: obj.getStartCoord()
This function gets the starting coordinates of the trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.getStartCoord()
obj.getNumTracks()
绑定状态: 已绑定
Python 调用: obj.getNumTracks()
This function gets the number of track lines of this trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.getNumTracks()
obj.getTrackSpacing()
绑定状态: 已绑定
Python 调用: obj.getTrackSpacing()
This function gets the space value between two track lines in this trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.getTrackSpacing()
obj.hasRoutingLayer()
绑定状态: 已绑定
Python 调用: obj.hasRoutingLayer()
This function returns true if the trackPattern is assigned to a layer。 Otherwise, the function returns false。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.hasRoutingLayer()
obj.getRoutingLayer()
绑定状态: 已绑定
Python 调用: obj.getRoutingLayer()
This function gets the layer number of this trackPattern。 If the trackPattern has not been assigned to a layer, the result is undefined。 See also hasRoutingLayer。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.getRoutingLayer()
obj.setHorizontal(isHorizontal)
绑定状态: 已绑定
Python 调用: obj.setHorizontal(isHorizontal)
This function sets the horizontal field of the trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.setHorizontal(isHorizontal)
obj.setStartCoord(start)
绑定状态: 已绑定
Python 调用: obj.setStartCoord(start)
This function sets the starting coordinate field of the trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.setStartCoord(start)
obj.setNumTracks(num)
绑定状态: 已绑定
Python 调用: obj.setNumTracks(num)
This function sets the number of the track lines of this trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.setNumTracks(num)
obj.setTrackSpacing(spacing)
绑定状态: 已绑定
Python 调用: obj.setTrackSpacing(spacing)
This function sets the trackSpacing of this trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.setTrackSpacing(spacing)
obj.setRoutingLayer(layer)
绑定状态: 已绑定
Python 调用: obj.setRoutingLayer(layer)
This function sets the routing layer for this trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.setRoutingLayer(layer)
obj.removeRoutingLayer()
绑定状态: 已绑定
Python 调用: obj.removeRoutingLayer()
This function removes the routing layer from this trackPattern。
Python 示例
from oapy._oa import _design
# assume obj is a oaTrackPattern
obj.removeRoutingLayer()
_design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing, routingLayer)
绑定状态: 已绑定
Python 调用: _design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing, routingLayer)
This function creates a new trackPattern in the specified block with the specified attributes。
参数
block: The block in which to create the new TrackPattern。isHorizontal: Determines if the pattern is horizontal。startCoord: The starting coordinate for the pattern。numTracks: The number of tracks defined by the pattern。trackSpacing: The spacing for the pattern。
Python 示例
from oapy._oa import _design
_design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing, routingLayer)
_design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing)
绑定状态: 已绑定
Python 调用: _design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing)
This function creates a new trackPattern in the specified block with the specified attributes。 This trackPattern only applies to the specified layer。
参数
block: The block in which to create the new TrackPattern。isHorizontal: Determines if the pattern is horizontal。startCoord: The starting coordinate for the pattern。numTracks: The number of tracks defined by the pattern。trackSpacing: The spacing for the pattern。routingLayer: The layer this trackPattern applies to。
Python 示例
from oapy._oa import _design
_design.oaTrackPattern.create(block, isHorizontal, startCoord, numTracks, trackSpacing)