首页 / design / oaOccBusNetDef

oaOccBusNetDef

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

概览

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

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

详细说明

The oaOccBusNetDef class implements the definition of an occurrence busNet, including its base name and bit-range。 All busNets in an occurrence with the same base name are managed by the same busNet definition。 The oaOccBusNetDef class tracks the minimum and maximum indices referred to by all of its corresponding busNet and busNetBit objects。 The bit order of an explicit oaOccBusNetDef is independent of the order within individual oaOccBusNets 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 oaOccBusNets。 A busNetDef can be 'sparse' (have missing bits)。 Busses do not have to start or end at zero。 For example, a<22:25> is a legal bus name。 Bus indexes must be non-negative。 The oaOccBusNetDef 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.getBusNets()
obj.getBusNetBits()
_design.oaOccBusNetDef.find(occurrence, name)

方法说明

obj.getMinIndex()

绑定状态: 已绑定

Python 调用: obj.getMinIndex()

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

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetDef
obj.getMinIndex()

obj.getMaxIndex()

绑定状态: 已绑定

Python 调用: obj.getMaxIndex()

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

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetDef
obj.getMaxIndex()

obj.getNumBits()

绑定状态: 已绑定

Python 调用: obj.getNumBits()

This function returns the number of bits covered by the busses in this oaOccBusNetDef。 The number of bits is equal to abs(MSB - LSB) + 1; it is not necessarily the number of busNetBits present in this busNetDef。 To get the number of busNetBits in this busnetDef, use oaOccBusNetDef::getBusNetBits() .getCount()。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetDef
obj.getNumBits()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

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

参数

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

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

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

参数

  • name: The returned busNetDef name。

Python 示例

from oapy._oa import _design

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

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

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

参数

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

Python 示例

from oapy._oa import _design

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

obj.getPathName(ns, pathName)

绑定状态: 已绑定

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

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

参数

  • pathName: The returned path name。

Python 示例

from oapy._oa import _design

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

obj.getBitOrder()

绑定状态: 已绑定

Python 调用: obj.getBitOrder()

This function returns the bitOrder associated with this oaOccBusNetDef。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetDef
obj.getBitOrder()

obj.isImplicit()

绑定状态: 已绑定

Python 调用: obj.isImplicit()

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

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetDef
obj.isImplicit()

obj.getBusNets()

绑定状态: 已绑定

Python 调用: obj.getBusNets()

This function returns a collection of oaOccBusNet objects in this oaOccBusNetDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetDef
obj.getBusNets()

obj.getBusNetBits()

绑定状态: 已绑定

Python 调用: obj.getBusNetBits()

This function returns a collection of oaOccBusNetBit objects in this oaOccBusNetDef object。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetDef
obj.getBusNetBits()

_design.oaOccBusNetDef.find(occurrence, name)

绑定状态: 已绑定

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

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

参数

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

返回

  • A pointer to the oaOccBusNetDef。

Python 示例

from oapy._oa import _design

_design.oaOccBusNetDef.find(occurrence, name)