首页 / design / oaBlock

oaBlock

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaBlockoapy 中可用,可通过 _design 模块访问。

本页汇总 oaBlock 当前在 oapy 中可用的 Python 接口。

详细说明

The oaBlock class is a container for the physical implementation of a design。 There is at most one oaBlock object per design which contains all the figures for its design。 An oaBlock also contains the physical netlist in the form of oaInst and oaNet objects。 The oaBlock class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.destroy()
obj.getModule()
obj.getDBUPerUU()
obj.getUserUnits()
obj.getBBox(bBox)
obj.getEEQMaster(master)
obj.getSitePattern(pattern)
obj.getSymmetry()
obj.getTermsByPosition(array)
obj.hasConnectivity()
obj.hasMultiBitNet()
obj.hasMultiBitTerm()
obj.hasMultiTermNet()
obj.hasGlobalNet()
obj.isVisibleToModule()
obj.setSymmetry(val)
obj.setEEQMaster(master)
obj.setSitePattern(pattern)
obj.setVisibleToModule()
obj.hasDefaultConstraintGroup()
obj.getDefaultConstraintGroup()
obj.initForRegionQuery()
obj.getAssignments()
obj.getBlockages()
obj.getBoundaries()
obj.getBusNetDefs()
obj.getBusTermDefs()
obj.getConnectDefs()
obj.getClusters()
obj.getFigGroups()
obj.getGCellPatterns()
obj.getGuides()
obj.getInstHeaders()
obj.getInsts(filterFlags=oacInstIterNotImplicit)
obj.getInstTerms(filterFlags=oacInstTermIterNotImplicit)
obj.getLPPHeaders()
obj.getLayerHeaders()
obj.getMarkers()
obj.getPins()
obj.getNets(filterFlags=oacNetIterAll|oacNetIterNotImplicit)
obj.getRoutes()
obj.getRowHeaders()
obj.getRows()
obj.getScanChains()
obj.getShapes()
obj.getSteiners()
obj.getTerms(filterFlags=oacTermIterAllNotHidden|oacTermIterNotImplicit)
obj.getTrackPatterns()
obj.getVectorInstDefs()
obj.getVias()
obj.getViaHeaders()
_design.oaBlock.create(design, visibleToModule=true)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function destroys this block。 All objects that belong to this block also will be destroyed。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.destroy()

obj.getModule()

绑定状态: 已绑定

Python 调用: obj.getModule()

This function returns the top module that corresponds to this block。 The top block in a design may have a corresponding top module。 The correspondence of a top module and a top block is established by the visibleToBlock parameter passed to oaDesign::setTopModule and the visibleToModule parameter passed to oaBlock::create 。 This function returns NULL if this block does not have a corresponding top module, meaning this block is not visible in the module domain。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getModule()

obj.getDBUPerUU()

绑定状态: 已绑定

Python 调用: obj.getDBUPerUU()

This function returns the database-units-per-user-units scale factor for this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getDBUPerUU()

obj.getUserUnits()

绑定状态: 已绑定

Python 调用: obj.getUserUnits()

This function returns the requested user-unit information for the block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getUserUnits()

obj.getBBox(bBox)

绑定状态: 已绑定

Python 调用: obj.getBBox(bBox)

This function returns the bounding box of this oaDesign object。 If the bounding box is out of date, it is updated。

参数

  • bBox: The bounding box to return。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getBBox(bBox)

obj.getEEQMaster(master)

绑定状态: 已绑定

Python 调用: obj.getEEQMaster(master)

This function gets the electrically equivalent master (EEQMaster) of this block。 If an EEQMaster does not exist, an empty string is returned。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getEEQMaster(master)

obj.getSitePattern(pattern)

绑定状态: 已绑定

Python 调用: obj.getSitePattern(pattern)

This function returns the site pattern of this design。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getSitePattern(pattern)

obj.getSymmetry()

绑定状态: 已绑定

Python 调用: obj.getSymmetry()

This function returns the symmetry associated with this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getSymmetry()

obj.getTermsByPosition(array)

绑定状态: 已绑定

Python 调用: obj.getTermsByPosition(array)

This function retrieves the terminals in this block that have been assigned a position and returns them in the specified oaTermArray 。 A position in the array may be NULL to reflect that there is no terminal assigned to that position。 The position of a terminal in the array reflects the position assigned to the terminal。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getTermsByPosition(array)

obj.hasConnectivity()

绑定状态: 已绑定

Python 调用: obj.hasConnectivity()

This function returns true if this block contains any connectivity。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.hasConnectivity()

obj.hasMultiBitNet()

绑定状态: 已绑定

Python 调用: obj.hasMultiBitNet()

This function returns true if this block contains any multiple bit nets。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.hasMultiBitNet()

obj.hasMultiBitTerm()

绑定状态: 已绑定

Python 调用: obj.hasMultiBitTerm()

This function returns true if this block contains any multiple bit terminals。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.hasMultiBitTerm()

obj.hasMultiTermNet()

绑定状态: 已绑定

Python 调用: obj.hasMultiTermNet()

This function returns true if this block contains any nets that have more than one terminal associated with it。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.hasMultiTermNet()

obj.hasGlobalNet()

绑定状态: 已绑定

Python 调用: obj.hasGlobalNet()

This function returns true if this block contains any global nets。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.hasGlobalNet()

obj.isVisibleToModule()

绑定状态: 已绑定

Python 调用: obj.isVisibleToModule()

This function returns a boolean indicating whether this block is visible to the module domain。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.isVisibleToModule()

obj.setSymmetry(val)

绑定状态: 已绑定

Python 调用: obj.setSymmetry(val)

This function sets the symmetry of this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.setSymmetry(val)

obj.setEEQMaster(master)

绑定状态: 已绑定

Python 调用: obj.setEEQMaster(master)

This function sets the electrically equivalent master of this design。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.setEEQMaster(master)

obj.setSitePattern(pattern)

绑定状态: 已绑定

Python 调用: obj.setSitePattern(pattern)

This function sets the site pattern of this design。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.setSitePattern(pattern)

obj.setVisibleToModule()

绑定状态: 已绑定

Python 调用: obj.setVisibleToModule()

This function sets this block to be visible to the module domain。 If this block is already visible to module, this function does nothing。 Otherwise, this function creates a top module which inherits all the existing occ/block objects in the top occurrence (top block), then sets the top block to be visible to module。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.setVisibleToModule()

obj.hasDefaultConstraintGroup()

绑定状态: 已绑定

Python 调用: obj.hasDefaultConstraintGroup()

This function returns a boolean indicating whether there are constraints associated with this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.hasDefaultConstraintGroup()

obj.getDefaultConstraintGroup()

绑定状态: 已绑定

Python 调用: obj.getDefaultConstraintGroup()

This function returns the constraint group for this block。 Constraints in this constraint group apply to all of the objects within the block。 A new group is created if no constraints exist on the block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getDefaultConstraintGroup()

obj.initForRegionQuery()

绑定状态: 已绑定

Python 调用: obj.initForRegionQuery()

This function initializes the regionQuery structures used by this block and all blocks bound into its hierarchy。 This can be used to do all the prep work at once rather than doing it on demand。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.initForRegionQuery()

obj.getAssignments()

绑定状态: 已绑定

Python 调用: obj.getAssignments()

This function returns a collection of assignments in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getAssignments()

obj.getBlockages()

绑定状态: 已绑定

Python 调用: obj.getBlockages()

This function returns a collection of blockages in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getBlockages()

obj.getBoundaries()

绑定状态: 已绑定

Python 调用: obj.getBoundaries()

This function returns a collection of area boundaries in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getBoundaries()

obj.getBusNetDefs()

绑定状态: 已绑定

Python 调用: obj.getBusNetDefs()

This function returns a collection of busNetDefs in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getBusNetDefs()

obj.getBusTermDefs()

绑定状态: 已绑定

Python 调用: obj.getBusTermDefs()

This function returns a collection of busTermDefs in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getBusTermDefs()

obj.getConnectDefs()

绑定状态: 已绑定

Python 调用: obj.getConnectDefs()

This function returns a collection of connectDefs in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getConnectDefs()

obj.getClusters()

绑定状态: 已绑定

Python 调用: obj.getClusters()

This function returns a collection of clusters in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getClusters()

obj.getFigGroups()

绑定状态: 已绑定

Python 调用: obj.getFigGroups()

This function returns a collection of the figGroups in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getFigGroups()

obj.getGCellPatterns()

绑定状态: 已绑定

Python 调用: obj.getGCellPatterns()

This function returns the gCell patterns of this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getGCellPatterns()

obj.getGuides()

绑定状态: 已绑定

Python 调用: obj.getGuides()

This function returns a collection of guides in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getGuides()

obj.getInstHeaders()

绑定状态: 已绑定

Python 调用: obj.getInstHeaders()

This function returns a collection of instHeaders in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getInstHeaders()

obj.getInsts(filterFlags=oacInstIterNotImplicit)

绑定状态: 已绑定

Python 调用: obj.getInsts(filterFlags=oacInstIterNotImplicit)

This function returns a collection of instances in this block。 The filter flag bits are defined below and may be logically OR'd together to refine the contents of the collection。

参数

  • filterFlags: Specifies what the collection contains。 The bit flags are defined as follows: oacInstIterSingleBit: the collection contains single-bit instances oacInstIterNotImplicit: the collection will not contain any implicitly created instances。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getInsts(filterFlags=oacInstIterNotImplicit)

obj.getInstTerms(filterFlags=oacInstTermIterNotImplicit)

绑定状态: 已绑定

Python 调用: obj.getInstTerms(filterFlags=oacInstTermIterNotImplicit)

This function returns a collection of instTerms in this block。

参数

  • filterFlags: Specifies what the collection contains。 The bits flags are defined as follows:。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getInstTerms(filterFlags=oacInstTermIterNotImplicit)

obj.getLPPHeaders()

绑定状态: 已绑定

Python 调用: obj.getLPPHeaders()

This function returns a collection of layer/purpose pair headers in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getLPPHeaders()

obj.getLayerHeaders()

绑定状态: 已绑定

Python 调用: obj.getLayerHeaders()

This function returns a collection of layerHeaders in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getLayerHeaders()

obj.getMarkers()

绑定状态: 已绑定

Python 调用: obj.getMarkers()

This function returns a collection of markers in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getMarkers()

obj.getPins()

绑定状态: 已绑定

Python 调用: obj.getPins()

This function returns a collection of pins in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getPins()

obj.getNets(filterFlags=oacNetIterAll|oacNetIterNotImplicit)

绑定状态: 已绑定

Python 调用: obj.getNets(filterFlags=oacNetIterAll|oacNetIterNotImplicit)

This function returns a collection of nets in this block。 The filter flag bits are defined below:。

参数

  • filterFlags: This specifies what the collection contains。 The bit flags are defined as follows: oacNetIterAll: the collection contains all nets oacNetIterSingleBit: the collection contains single-bit nets oacNetIterBundle: the collection contains all the bundleNets in the block oacNetIterPreferred: the collection only contains the preferred nets; equivalent nets are omitted oacNetIterNotImplicit: the collection contains explicitly created nets。

异常

  • oacInvalidBlockNetIterFlags

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getNets(filterFlags=oacNetIterAll|oacNetIterNotImplicit)

obj.getRoutes()

绑定状态: 已绑定

Python 调用: obj.getRoutes()

This function returns a collection of routes in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getRoutes()

obj.getRowHeaders()

绑定状态: 已绑定

Python 调用: obj.getRowHeaders()

This function returns a collection of rowHeaders in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getRowHeaders()

obj.getRows()

绑定状态: 已绑定

Python 调用: obj.getRows()

This function returns a collection of rows in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getRows()

obj.getScanChains()

绑定状态: 已绑定

Python 调用: obj.getScanChains()

This function returns a collection of scan chains in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getScanChains()

obj.getShapes()

绑定状态: 已绑定

Python 调用: obj.getShapes()

This function returns a collection of shapes in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getShapes()

obj.getSteiners()

绑定状态: 已绑定

Python 调用: obj.getSteiners()

This function returns a collection of Steiners in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getSteiners()

obj.getTerms(filterFlags=oacTermIterAllNotHidden|oacTermIterNotImplicit)

绑定状态: 已绑定

Python 调用: obj.getTerms(filterFlags=oacTermIterAllNotHidden|oacTermIterNotImplicit)

This function returns a collection of terms in this block。 The filter flag bits are defined below:。

参数

  • filterFlags: Specifies what the collection contains。 The bit flags are defined as follows: oacTermIterAllNotHidden: the collection contains all terminals that are not hidden oacTermIterAll: the collection contains all terminals oacTermIterSingleBit: the collection contains single-bit terminals oacTermIterBundle: the collection contains all the bundleTerms in the block oacTermIterNotImplicit: the collection contains explicitly created terminals。

异常

  • oacInvalidBlockTermIterFlags

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getTerms(filterFlags=oacTermIterAllNotHidden|oacTermIterNotImplicit)

obj.getTrackPatterns()

绑定状态: 已绑定

Python 调用: obj.getTrackPatterns()

This function returns a collection of trackPatterns in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getTrackPatterns()

obj.getVectorInstDefs()

绑定状态: 已绑定

Python 调用: obj.getVectorInstDefs()

This function returns a collection of vectorInstDefs in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getVectorInstDefs()

obj.getVias()

绑定状态: 已绑定

Python 调用: obj.getVias()

This function returns a collection of vias in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getVias()

obj.getViaHeaders()

绑定状态: 已绑定

Python 调用: obj.getViaHeaders()

This function returns a collection of viaHeaders in this block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlock
obj.getViaHeaders()

_design.oaBlock.create(design, visibleToModule=true)

绑定状态: 已绑定

Python 调用: _design.oaBlock.create(design, visibleToModule=true)

This function creates the top block in the specified design。 The visibleToModule argument specifies whether the block data in the design is to be visible to the module domain or not。 Note! It is possible to specify when a creating a connectivity object whether or not that object is visible to the module domain。 If the block is visible to the module domain, a top module will be created if it does not, or the existing top module will be set to be visible to block。 Exceptions are thrown if the top block already exists, or if is tries to create a block which is not visible to module domain in a design with module, or if there's a conflict on the names with the existing modules。

参数

  • design: The design in which to create the block。
  • visibleToModule: If true, the block data in this design is visible to the module domain。

异常

  • oacTopBlockAlreadyExists
  • oacCannotCreateBlockOnlyInModuleDesign
  • oacModuleExists

Python 示例

from oapy._oa import _design

_design.oaBlock.create(design, visibleToModule=true)