首页 / design / oaOccVectorInst

oaOccVectorInst

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

概览

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

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

详细说明

The oaOccVectorInst class implements a occurrence vector instance in a occurrence hierarchy。 A vector instance represents several copies of the instance master with a range of index numbers to differentiate them。 oaOccVectorInst objects are always in the occurrence domain。

方法总览

状态 Python 调用
obj.getInst()
obj.getModInst()
obj.getDef()
obj.getStart()
obj.getStop()
obj.getBit(bitIndex)
obj.getName(name)
obj.getPathName(name)
obj.getName(name)
obj.getName(ns, name)
obj.getPathName(pathName)
obj.getPathName(ns, pathName)
_design.oaOccVectorInst.find(occurrence, baseName, start, stop)

方法说明

obj.getInst()

绑定状态: 已绑定

Python 调用: obj.getInst()

This function returns the corresponding instance in the block domain。 NULL will be returned if the master design for this instance does not have a top block。 从 oaOccInst 重新实现。

返回

  • A pointer to an oaVectorInst。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getInst()

obj.getModInst()

绑定状态: 已绑定

Python 调用: obj.getModInst()

This function returns the corresponding instance in the module domain。 NULL will be returned if this instance is an occurrence of a physical-only instance。 从 oaOccInst 重新实现。

返回

  • A pointer to an oaModVectorInst。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getModInst()

obj.getDef()

绑定状态: 已绑定

Python 调用: obj.getDef()

This function returns the occurrence vectorInstDef for this occurrence vectorInst。 The occurrence vectorInstDef is used to access all occurrence vectorInts with the same baseName。

返回

  • A pointer to an oaOccVectorInstDef。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getDef()

obj.getStart()

绑定状态: 已绑定

Python 调用: obj.getStart()

This function returns the start index of this occurrence vectorInst。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getStart()

obj.getStop()

绑定状态: 已绑定

Python 调用: obj.getStop()

This function returns the stop index of this occurrence vectorInst。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getStop()

obj.getBit(bitIndex)

绑定状态: 已绑定

Python 调用: obj.getBit(bitIndex)

This function returns a pointer to the vectorInstBit that corresponds to the specified bitIndex bit of this vectorInst。 For example, if this is a vectorInst "i[7:0]" and bitIndex is zero, this function will return the vectorInstBit corresponding to "i[7]"。

参数

  • bitIndex: Specifies which bit of the instance to return。

返回

  • A pointer to an oaOccVectorInstBit。

异常

  • oacInvalidBitIndexIntoInst

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getBit(bitIndex)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this occVectorInst。

参数

  • name: The name of the occVectorInst to return。

Python 示例

from oapy._oa import _design

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

obj.getPathName(name)

绑定状态: 已绑定

Python 调用: obj.getPathName(name)

This function returns the full path name of this instance, relative to the top occurrence in the occurrence hierarchy containing this instance。

参数

  • name: The pathName of the occVectorInst to return。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getPathName(name)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

Python 调用: obj.getName(ns, name)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getName(ns, name)

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getPathName(pathName)

obj.getPathName(ns, pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(ns, pathName)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInst
obj.getPathName(ns, pathName)

_design.oaOccVectorInst.find(occurrence, baseName, start, stop)

绑定状态: 已绑定

Python 调用: _design.oaOccVectorInst.find(occurrence, baseName, start, stop)

This function searches the specified occurrence looking for a vectorInst with the specified baseName and range。 If baseName is hierarchical, this function will descend into lower levels of occurrence hierarchy, expanding the hierarchy and binding the master designs as needed。 The vectorInst is returned if found, otherwise NULL is returned。

参数

  • occurrence: The occurrence in which to search。
  • baseName: The base name of the instance to find。
  • start: The start bit index of the instance to find。
  • stop: The stop bit index of the instance to find。

返回

  • A pointer to the oaOccVectorInst。

Python 示例

from oapy._oa import _design

_design.oaOccVectorInst.find(occurrence, baseName, start, stop)