首页 / design / oaOccVectorInstDef

oaOccVectorInstDef

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

概览

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

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

详细说明

The oaOccVectorInstDef class implements the definition of an occurrence vectorInst, including its base name and bit-range。 All vectorInsts in an occurrence with the same base name are managed by the same vectorInst definition。 The oaOccvectorInstDef class tracks the minimum and maximum indices referred to by all of its corresponding vectorInst objects。 The bit order of an explicit oaOccVectorInstDef is independent of the order within individual oaOccVectorInsts with the same base name。 Verilog requires a single wire declaration for a given base name, and the range of that declaration covers all of the bit indices used by the sub-ranges that correspond to oaOccVectorInsts。 A vectorInstDef can be 'sparse' (have missing bits)。 Vectors do not have to start or end at zero。 For example, a[22:25] is a legal vectorInst name。 Vector indexes must be non-negative。 The oaOccVectorInstDef class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.getMinIndex()
obj.getMaxIndex()
obj.getNumBits()
obj.getName(name)
obj.getName(ns, name)
obj.getPathName(pathName)
obj.getPathName(ns, pathName)
obj.getBitOrder()
obj.isImplicit()
obj.getVectorInsts()
obj.getVectorInstBits()
_design.oaOccVectorInstDef.find(occurrence, name)

方法说明

obj.getMinIndex()

绑定状态: 已绑定

Python 调用: obj.getMinIndex()

This function returns the smallest bit number in use for this oaOccVectorInstDef object。 This is the smallest index used across all vectorInsts associated with this oaOccVectorInstDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInstDef
obj.getMinIndex()

obj.getMaxIndex()

绑定状态: 已绑定

Python 调用: obj.getMaxIndex()

This function returns the largest bit number in use for this oaOccVectorInstDef object。 This is the largest index used across all vectorInsts associated with this oaOccVectorInstDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInstDef
obj.getMaxIndex()

obj.getNumBits()

绑定状态: 已绑定

Python 调用: obj.getNumBits()

This function returns the number of bits covered by the vectorInsts in this oaOccVectorInstDef。 The number of bits is equal to abs(maxIndex - minIndex) + 1。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInstDef
obj.getNumBits()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the local name of this vectorInstDef in the specified nameSpace in the specified name string。 The name is relative to the parent occurrence of this vectorInstDef。

参数

  • ns: The nameSpace used to map the name。
  • name: The returned vectorInstDef name。

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

This function returns the local name of this vectorInstDef within its parent occurrence。

参数

  • name: The returned vectorInstDef name。

Python 示例

from oapy._oa import _design

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

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

This function returns the full path name of this vectorInstDef in the specified nameSpace in the specified pathName string。 The pathName is relative to the top occurrence in the occurrence hierarchy containing this vectorInstDef。

参数

  • ns: The nameSpace used to map the name。
  • pathName: The returned path name。

Python 示例

from oapy._oa import _design

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

obj.getPathName(ns, pathName)

绑定状态: 已绑定

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

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

参数

  • pathName: The returned path name。

Python 示例

from oapy._oa import _design

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

obj.getBitOrder()

绑定状态: 已绑定

Python 调用: obj.getBitOrder()

This function returns the bitOrder associated with this oaOccVectorInstDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInstDef
obj.getBitOrder()

obj.isImplicit()

绑定状态: 已绑定

Python 调用: obj.isImplicit()

This function returns a boolean indicating whether this oaOccVectorInstDef was implicitly created or not。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInstDef
obj.isImplicit()

obj.getVectorInsts()

绑定状态: 已绑定

Python 调用: obj.getVectorInsts()

This function returns a collection of oaOccVectorInst and oaOccModuleVectorInst objects associated with this oaOccVectorInstDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInstDef
obj.getVectorInsts()

obj.getVectorInstBits()

绑定状态: 已绑定

Python 调用: obj.getVectorInstBits()

This function returns a collection of oaOccVectorInstBit and oaOccModuleVectorInstBit objects associated with this oaOccVectorInstDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccVectorInstDef
obj.getVectorInstBits()

_design.oaOccVectorInstDef.find(occurrence, name)

绑定状态: 已绑定

Python 调用: _design.oaOccVectorInstDef.find(occurrence, name)

This function searches the specified occurrence looking for a vectorInstDef with the specified baseName。 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 vectorInstDef is returned if found, otherwise NULL is returned。

参数

  • occurrence: The occurrence in which to search。
  • baseName: The base name of the vectorInstDef to find。

返回

  • A pointer to the oaOccVectorInstDef。

Python 示例

from oapy._oa import _design

_design.oaOccVectorInstDef.find(occurrence, name)