首页 / design / oaRow

oaRow

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

概览

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

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

详细说明

The oaRow class implements a row of sites where an instance can be placed。 A row represents a potential location for placement of standard cells, macros, or devices。 A row is defined as an area associated with an oaSiteDef 。 The oaSiteDef has information allowing for the specification of the placeable objects within a row。 A row is a repetition of a site element in a given direction (horizontal or vertical)。 The orientation of these site elements in a row is relative to the orientation of the row。 The oaRow class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.getHeader()
obj.getSiteDef()
obj.getSiteDefName(name)
obj.getName(name)
obj.getOrigin(origin)
obj.getOrient()
obj.getNumSites()
obj.getSiteOrient()
obj.getSiteSpacing()
obj.isBound()
obj.setSiteDef(siteDef)
obj.setName(name)
obj.setOrigin(origin)
obj.setOrient(orient)
obj.setNumSites(numSites)
obj.setSiteOrient(siteOrient)
obj.setSiteSpacing(siteSpacing)
_design.oaRow.create(block, siteDef, name, origin, rowOrient, numSites, siteOrient, siteSpacing=0)
_design.oaRow.create(block, siteDef, origin, rowOrient, numSites, siteOrient, siteSpacing=0)
_design.oaRow.find(block, name)

方法说明

obj.getHeader()

绑定状态: 已绑定

Python 调用: obj.getHeader()

This function returns the oaRowHeader object associated with this row。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getHeader()

obj.getSiteDef()

绑定状态: 已绑定

Python 调用: obj.getSiteDef()

This function attempts to return the siteDef associated with this row。 If the row cannot bound, NULL is returned。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getSiteDef()

obj.getSiteDefName(name)

绑定状态: 已绑定

Python 调用: obj.getSiteDefName(name)

This function attempts to return the name of the siteDef object associated with this row。

参数

  • name: The siteDef object name。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getSiteDefName(name)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function fills out name with the name of this row。

参数

  • name: The row name。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getName(name)

obj.getOrigin(origin)

绑定状态: 已绑定

Python 调用: obj.getOrigin(origin)

This function fills out origin with the origin of this row。

参数

  • origin: The row origin。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getOrigin(origin)

obj.getOrient()

绑定状态: 已绑定

Python 调用: obj.getOrient()

This function returns the orientation of this row。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getOrient()

obj.getNumSites()

绑定状态: 已绑定

Python 调用: obj.getNumSites()

This function returns the number of sites of this row。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getNumSites()

obj.getSiteOrient()

绑定状态: 已绑定

Python 调用: obj.getSiteOrient()

This function returns the orientation of site associated with this row。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getSiteOrient()

obj.getSiteSpacing()

绑定状态: 已绑定

Python 调用: obj.getSiteSpacing()

This function returns the spacing between the sites in this row。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.getSiteSpacing()

obj.isBound()

绑定状态: 已绑定

Python 调用: obj.isBound()

This function returns a boolean value that indicates if the siteDef associated with this row is currently bound to the master。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.isBound()

obj.setSiteDef(siteDef)

绑定状态: 已绑定

Python 调用: obj.setSiteDef(siteDef)

This function sets the siteDef of this row to the specified siteDef。

参数

  • siteDef: The siteDef name。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.setSiteDef(siteDef)

obj.setName(name)

绑定状态: 已绑定

Python 调用: obj.setName(name)

This function sets the name of this row to the specified value。

参数

  • name: The row name。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.setName(name)

obj.setOrigin(origin)

绑定状态: 已绑定

Python 调用: obj.setOrigin(origin)

This function sets the origin of the row to the specified origin。

参数

  • origin: The origin to set。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.setOrigin(origin)

obj.setOrient(orient)

绑定状态: 已绑定

Python 调用: obj.setOrient(orient)

This function sets the orientation of this row to the specified value。

参数

  • orient: The row orientation。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.setOrient(orient)

obj.setNumSites(numSites)

绑定状态: 已绑定

Python 调用: obj.setNumSites(numSites)

This function sets the number of sites of this row to the specified value。

参数

  • numSites: The number of sites in this row。

异常

  • oacRowZeroNumSitesNotAllowed

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.setNumSites(numSites)

obj.setSiteOrient(siteOrient)

绑定状态: 已绑定

Python 调用: obj.setSiteOrient(siteOrient)

This function sets the site orientation of this row to the specified value。

参数

  • siteOrient: The site orientation of this row。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.setSiteOrient(siteOrient)

obj.setSiteSpacing(siteSpacing)

绑定状态: 已绑定

Python 调用: obj.setSiteSpacing(siteSpacing)

This function sets the spacing between the sites of this row to the specified value。

参数

  • siteSpacing: The spacing for the sites of this row。

Python 示例

from oapy._oa import _design

# assume obj is a oaRow
obj.setSiteSpacing(siteSpacing)

_design.oaRow.create(block, siteDef, name, origin, rowOrient, numSites, siteOrient, siteSpacing=0)

绑定状态: 已绑定

Python 调用: _design.oaRow.create(block, siteDef, name, origin, rowOrient, numSites, siteOrient, siteSpacing=0)

This function creates a row object with the specified attributes。 This function lets you specify the siteDef object to associate with the new row。 A name for the new row is automatically generated with the default prefix "R__%d", where d refers to a unique integer。 An exception is thrown if the siteDef is from a technology database that is not included in the graph of referenced technology databases for the technology database currently bound to the design containing the row。

参数

  • block: The block in which to create the row。
  • siteDef: The siteDef that associates with the row。
  • origin: The origin of the row。
  • rowOrient: The orientation of the row。
  • numSites: The number of sites of the row。
  • siteOrient: The orientation of the sites relative to the row。
  • siteSpacing: The optional spacing between the sites。

返回

  • oaRow* if the row was created。

异常

  • oacRowZeroNumSitesNotAllowed
  • oacSiteDefNotInTechAssociatedWithDesign

Python 示例

from oapy._oa import _design

_design.oaRow.create(block, siteDef, name, origin, rowOrient, numSites, siteOrient, siteSpacing=0)

_design.oaRow.create(block, siteDef, origin, rowOrient, numSites, siteOrient, siteSpacing=0)

绑定状态: 已绑定

Python 调用: _design.oaRow.create(block, siteDef, origin, rowOrient, numSites, siteOrient, siteSpacing=0)

This function creates a row object with the specified attributes。 This function lets you specify the siteDef object to associate with the new row and the name for the new row。 An exception is thrown if the siteDef is from a technology database that is not included in the graph of referenced technology databases for the technology database currently bound to the design containing the row。

参数

  • block: The block in which to create the row。
  • siteDef: The siteDef that associates with the row。
  • name: The row name。
  • origin: The origin of the row。
  • rowOrient: The orientation of the row。
  • numSites: The number of sites of the row。
  • siteOrient: The orientation of the sites。
  • siteSpacing: The optional spacing between the sites。

返回

  • oaRow* if the row was created。

异常

  • oacRowNameExists
  • oacRowZeroNumSitesNotAllowed
  • oacSiteDefNotInTechAssociatedWithDesign

Python 示例

from oapy._oa import _design

_design.oaRow.create(block, siteDef, origin, rowOrient, numSites, siteOrient, siteSpacing=0)

_design.oaRow.find(block, name)

绑定状态: 已绑定

Python 调用: _design.oaRow.find(block, name)

This function searches the specified design for a row with the specified name。 If the row is found, it is returned。 Otherwise, NULL is returned。

参数

  • block: The block to search。
  • name: The name of the oaRow object to find。

返回

  • The oaRow pointer or NULL。

Python 示例

from oapy._oa import _design

_design.oaRow.find(block, name)