oaModVectorInst
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModVectorInst 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModVectorInst 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModVectorInst class implements a vector instance of a design master in the module domain。 A vector instance represents several copies of the instance master with a range of index numbers to differentiate them。 An oaModVectorInst object is always in the module domain。 It is an instance of a design as opposed to an oaModModuleVectorInst , which is a vector instance of a local module。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getDef() |
| ✅ | obj.getStart() |
| ✅ | obj.getStop() |
| ✅ | obj.getBit(bitIndex) |
| ✅ | obj.getName(name) |
| ✅ | obj.setBaseName(baseName) |
| ✅ | obj.setRange(start, stop) |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | _design.oaModVectorInst.create(module, master, baseName, start, stop, params=NULL) |
| ✅ | _design.oaModVectorInst.create(module, libName, cellName, viewName, baseName, start, stop, params=NULL) |
| ✅ | _design.oaModVectorInst.find(module, baseName, start, stop) |
| ✅ | _design.oaModVectorInst.isValidName(module, baseName, start, stop) |
方法说明
obj.getDef()
绑定状态: 已绑定
Python 调用: obj.getDef()
This function returns the module vectorInstDef for this module vectorInst。 The module vectorInstDef is used to access all module vectorInsts with the same baseName but different index ranges。
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.getDef()
obj.getStart()
绑定状态: 已绑定
Python 调用: obj.getStart()
This function returns the start index of this module vectorInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.getStart()
obj.getStop()
绑定状态: 已绑定
Python 调用: obj.getStop()
This function returns the stop index of this module vectorInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
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 oaModVectorInstBit。
异常
oacInvalidBitIndexIntoInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.getBit(bitIndex)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the vectorName of this modVectorInst。
参数
name: The name of the modVectorInst to return。
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.getName(name)
obj.setBaseName(baseName)
绑定状态: 已绑定
Python 调用: obj.setBaseName(baseName)
This function changes the base name of this vectorInst。 Exceptions are thrown if the new name is the name of an existing scalar, an arrayInst, or if another vectorInst exists whose indices overlap with this vectorInst, or if the given baseName matches the form of the system-generated scalarInst name。
异常
oacCannotSetNameOfImplicitInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.setBaseName(baseName)
obj.setRange(start, stop)
绑定状态: 已绑定
Python 调用: obj.setRange(start, stop)
This function sets the start and stop bit indices of this vectorInst。
参数
start: The new start value to give this instance。stop: The new stop value to give this instance。
异常
oacInstNameOverlapsOtherInst。oacCannotSetNameOfImplicitInst。oacInvalidBusStartStopRange。
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.setRange(start, stop)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
Python 示例
from oapy._oa import _design
# assume obj is a oaModVectorInst
obj.getName(ns, name)
_design.oaModVectorInst.create(module, master, baseName, start, stop, params=NULL)
绑定状态: 已绑定
Python 调用: _design.oaModVectorInst.create(module, master, baseName, start, stop, params=NULL)
This function creates a new vector instance of the master design inside of the specified parent module。 This form of the create function identifies the master by name。 The master does not have to be open and it does not have to exist yet when this form is used。 The specified baseName and start/stop indices are first checked to verify that they are legal and don't specify an instance that already exists。 The optional params argument is used if the master design is a pcell。
参数
module: The module in which to create the instance。libName: The libary name of the master design。cellName: The cell name of the master design。viewName: The view name of the master design。baseName: The base name of the instance。start: The start index。stop: The stop index。params: Optional parameter array for pCell instances。
异常
oacInvalidSuperMaster。
Python 示例
from oapy._oa import _design
_design.oaModVectorInst.create(module, master, baseName, start, stop, params=NULL)
_design.oaModVectorInst.create(module, libName, cellName, viewName, baseName, start, stop, params=NULL)
绑定状态: 已绑定
Python 调用: _design.oaModVectorInst.create(module, libName, cellName, viewName, baseName, start, stop, params=NULL)
This function creates a new vector instance of the master design inside of the specified parent module。 This form uses a pointer to the master design The specified baseName and start/stop indices are first checked to verify that they are legal and don't specify an instance that already exists。 The optional params argument is used if the master design is a pcell。
参数
module: The module in which to create the instance。master: The master design。baseName: The base name of the instance。start: The start index。stop: The stop index。params: Optional parameter array for pCell instances。
异常
oacInvalidSuperMaster。
Python 示例
from oapy._oa import _design
_design.oaModVectorInst.create(module, libName, cellName, viewName, baseName, start, stop, params=NULL)
_design.oaModVectorInst.find(module, baseName, start, stop)
绑定状态: 已绑定
Python 调用: _design.oaModVectorInst.find(module, baseName, start, stop)
This function searches the specified module for a module vectorInst with the specified name and start or stop bits。 The function returns the instance if it finds one。 Otherwise, NULL is returned。
Python 示例
from oapy._oa import _design
_design.oaModVectorInst.find(module, baseName, start, stop)
_design.oaModVectorInst.isValidName(module, baseName, start, stop)
绑定状态: 已绑定
Python 调用: _design.oaModVectorInst.isValidName(module, baseName, start, stop)
This function returns a boolean value that indicates if the specified baseName, combined with the start and stop values, is a valid new oaModVectorInst in the specified module。
Python 示例
from oapy._oa import _design
_design.oaModVectorInst.isValidName(module, baseName, start, stop)