首页 / design / oaModScalarNet

oaModScalarNet

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

概览

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

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

详细说明

The oaModScalarNet class implements a scalar (single-bit) net。

方法总览

状态 Python 调用
obj.getName(name)
obj.setName(name)
obj.getName(name)
obj.getName(ns, name)
_design.oaModScalarNet.create(module, name, type=oacSignalSigType, isGlobal=false)
_design.oaModScalarNet.create(module, type=oacSignalSigType, isGlobal=false)
_design.oaModScalarNet.find(module, name)
_design.oaModScalarNet.isValidName(module, name)

方法说明

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this scalar net。

参数

  • name: The net name to return。

Python 示例

from oapy._oa import _design

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

obj.setName(name)

绑定状态: 已绑定

Python 调用: obj.setName(name)

This function sets the name of this oaModScalarNet object。 The name is also updated for each of the occurrences that the net appears in。

参数

  • name: The new name to be set for this net。

异常

  • oacNetExists
  • oacImplicitModuleNetExists
  • oacImplicitBlockNetExists
  • oacScalarNetNameMatchesBusBaseName
  • oacInvalidHierNetName
  • oacCannotSetNameOfNetInBundleNet

Python 示例

from oapy._oa import _design

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

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaModScalarNet.create(module, name, type=oacSignalSigType, isGlobal=false)

绑定状态: 已绑定

Python 调用: _design.oaModScalarNet.create(module, name, type=oacSignalSigType, isGlobal=false)

This function creates a scalarNet in the specified module with an automatically generated name。 The default name prefix for automatically generated names is N__%d, where d is an integer that makes the name unique。

参数

  • module: The module in which to create the net。 This module may be any module inside of a cellview。
  • type: The signal type; the default value is oacSignalSigType。
  • isGlobal: The flag to indicate whether this is a global net。

异常

  • oacNetExists
  • oacImplicitModuleNetExists
  • oacImplicitBlockNetExists
  • oacScalarNetNameMatchesBusBaseName
  • oacInvalidHierNetName

Python 示例

from oapy._oa import _design

_design.oaModScalarNet.create(module, name, type=oacSignalSigType, isGlobal=false)

_design.oaModScalarNet.create(module, type=oacSignalSigType, isGlobal=false)

绑定状态: 已绑定

Python 调用: _design.oaModScalarNet.create(module, type=oacSignalSigType, isGlobal=false)

This function creates a scalarNet with the specified name in the given module。 The function checks the specified name to verify it is unused。 If the name is used on an implicit net, that implicit net is set to explicit and nothing else is processed。

参数

  • module: The module in which to create the net。 This module may be any module inside of a design。
  • name: The name of the scalar net to create。
  • sigType: The signal type。
  • isGlobal: The flag to indicate global net; the default is false。

异常

  • oacNetExists
  • oacImplicitModuleNetExists
  • oacImplicitBlockNetExists
  • oacScalarNetNameMatchesBusBaseName
  • oacInvalidHierNetName

Python 示例

from oapy._oa import _design

_design.oaModScalarNet.create(module, type=oacSignalSigType, isGlobal=false)

_design.oaModScalarNet.find(module, name)

绑定状态: 已绑定

Python 调用: _design.oaModScalarNet.find(module, name)

This function searches the specified module for a scalarNet with the specified name。 The function returns the net if it is found。 Otherwise, NULL is returned。

参数

  • module: The module to search。
  • name: The scalar net name to find。

返回

  • The scalar net name or NULL。

Python 示例

from oapy._oa import _design

_design.oaModScalarNet.find(module, name)

_design.oaModScalarNet.isValidName(module, name)

绑定状态: 已绑定

Python 调用: _design.oaModScalarNet.isValidName(module, name)

This function returns a boolean value that indicates if the specified name is valid for a new oaModScalarNet in the specified module。

参数

  • module: The module to search。
  • name: The scalar net name to find。

Python 示例

from oapy._oa import _design

_design.oaModScalarNet.isValidName(module, name)