首页 / design / oaBitOrder

oaBitOrder

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

概览

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

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

详细说明

The oaBitOrder class encapsulates the enumerated values that specify the bit order for the following vectored objects: oaBusNet definitions ( oaBusNetDef , oaModBusNetDef , oaOccBusNetDef ) oaBusTerm definitions ( oaBusTermDef , oaModBusTermDef , oaOccBusTermDef ) oaVectorInst definitions ( oaVectorInstDef , oaModVectorInstDef , oaOccVectorInstDef ) For example, A[9:1] and A[0:7] are both legal bus names。 oaBitOrder provides information about whether the vector definition should be interpreted as A[9:0] or A[0:9]。 The bit order of an explicit vector definition is independent of the order within individual objects with the same base name。 For example, the bit order of an explicit oaBusNetDef is independent of the order within individual oaBusNets 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 oaBusNets。 See Enum Wrappers in the Programmers Guide for a discussion of enum wrappers。 enum oaBitOrderEnum Enumeration values: oacNoneBitOrder "none" Specifies that the bus definition has no bit order。 oacAscendingBitOrder "ascending" Specifies that the bus definition has an ascending bit order。 The interpretation of the range of the bits in the bus definition should be from minIndex to maxIndex。 oacDescendingBitOrder "descending" Specifies that the bus definition has a descending bit order。 The interpretation of the range of the bits in the bus definition should be from maxIndex to minIndex。

构造函数

_design.oaBitOrder(valueIn)

obj = _design.oaBitOrder(valueIn)

_design.oaBitOrder(name)

obj = _design.oaBitOrder(name)

方法总览

状态 Python 调用
obj.getName()

方法说明

obj.getName()

绑定状态: 已绑定

Python 调用: obj.getName()

This function returns the name string associated with the encapsulated oaBitOrderEnum value。

Python 示例

from oapy._oa import _design

# assume obj is a oaBitOrder
obj.getName()