首页 / wafer / oaWafer

oaWafer

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

概览

oaWaferoapy 中可用,可通过 _wafer 模块访问。

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

详细说明

oaWafer 类实现一种 wafer 数据库,它是 cell 的特定 view。 This class is the main object for storing the description of a wafer and the reticles frames, and images to associate with the wafer。 All oaWafers are implemented as a file in an oaView 。 They are all associated with a triplet of library, cell, and view names, and this set of names is used to identify them。 The oaWafer class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.close()
obj.purge()
obj.save()
obj.saveAs(libName, cellName, viewName)
obj.reopen(mode)
obj.revert()
obj.getLibName(libName)
obj.getCellName(cellName)
obj.getViewName(viewName)
obj.getLibName(ns, libStr)
obj.getCellName(ns, cellStr)
obj.getViewName(ns, viewStr)
obj.getTimeStamp(type)
obj.getTimeStamp(def)
obj.getMode()
obj.getRefCount()
obj.getCreateTime()
obj.getReadInTime()
obj.getLastSavedTime()
obj.getDBUPerWU()
obj.getWaferUnits()
obj.getWaferDesc()
obj.setDBUPerWU(value)
obj.setWaferUnits(value)
obj.isModified()
obj.isUndoEnabled()
obj.enableUndo(value=true)
obj.undo()
obj.redo()
obj.setCp()
obj.calcVMSize()
obj.getFeatures(dataModelRev, features)
obj.getReticles()
obj.getReticleRefs()
obj.getFrames()
obj.getImages()
_wafer.oaWafer.open(libName, cellName, viewName, mode='r')
_wafer.oaWafer.find(libName, cellName, viewName)
_wafer.oaWafer.exists(libName, cellName, viewName)
_wafer.oaWafer.destroy(libName, cellName, viewName)
_wafer.oaWafer.getRevNumber()
_wafer.oaWafer.getOpenWafers()

方法说明

obj.close()

绑定状态: 已绑定

Python 调用: obj.close()

This function decrements the reference count of this wafer by one。 If the count goes to zero, the wafer is purged from memory。 If the wafer has never been saved, the last close that purges the wafer will also remove the database file, view directory, and cell directory if that cell was empty。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.close()

obj.purge()

绑定状态: 已绑定

Python 调用: obj.purge()

This function closes and removes this wafer from memory, regardless of its reference count。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.purge()

obj.save()

绑定状态: 已绑定

Python 调用: obj.save()

This function saves this wafer to disk。 The wafer remains open and all of its in-memory data remains valid including its undo data。

异常

  • oacDataNotCompatibleOnSave: Design contains incompatible data and cannot be saved。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.save()

obj.saveAs(libName, cellName, viewName)

绑定状态: 已绑定

Python 调用: obj.saveAs(libName, cellName, viewName)

This function saves this wafer to disk using the specified library, cell, and view names。 The wafer remains open and all of its in-memory data remains valid including its undo data。

参数

  • libName: The name of an existing library。
  • cellName: The name of a cell。
  • viewName: The name of a view。

异常

  • oacWaferLibNotFound
  • oacDataNotCompatibleOnSave: Design contains incompatible data and cannot be saved。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.saveAs(libName, cellName, viewName)

obj.reopen(mode)

绑定状态: 已绑定

Python 调用: obj.reopen(mode)

This function attempts to reopen this wafer using the specified access mode。 The contents of the wafer may be reset or even truncated depending upon the new access mode。 The open mode of this wafer is changed to mode。 Note: The refCount of the wafer is not affected。

参数

  • mode: The mode to reopen the wafer in 'r' for read 'w' for write 'a' for append 'A' for append in override mode, which is not typically used。 Refer to Compatibility for OpenAccess Applications and Data in the Programmers Guide for more information。

异常

  • oacInvalidAccessMode
  • oacWaferCannotChangeScratchMode
  • oacWaferBeingPurged
  • oacDataNotCompatibleOnOpenInAppendMode: The design contains new features that are not understood by this version of OpenAccess and cannot be opened in append mode。
  • oacDataNotCompatibleOnOpenInEditableMode: The design contains new features that are not understood by this version of OpenAccess and cannot be opened in 'a'ppend or 'A'ppend mode。
  • oacCannotDowngradeDatabase: The database was opened in ‘A’ mode and cannot be reopened in 'a' mode。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.reopen(mode)

obj.revert()

绑定状态: 已绑定

Python 调用: obj.revert()

This function reloads the contents of this wafer from disk。 If the wafer is opened in write mode, it will simply be truncated。 Note that the wafer's access mode is not affected。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.revert()

obj.getLibName(libName)

绑定状态: 已绑定

Python 调用: obj.getLibName(libName)

This function returns the name of the library associated with this wafer in the nameSpace specified。

参数

  • ns: The nameSpace used to get the library name string。
  • libStr: The name string of the library is returned in libStr。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getLibName(libName)

obj.getCellName(cellName)

绑定状态: 已绑定

Python 调用: obj.getCellName(cellName)

This function returns the name of the cell associated with this wafer in the nameSpace specified。

参数

  • ns: The nameSpace used to get the cell name string。
  • cellStr: The name string of the cell is returned in cellStr。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getCellName(cellName)

obj.getViewName(viewName)

绑定状态: 已绑定

Python 调用: obj.getViewName(viewName)

This function returns the name of the view associated with this wafer in the nameSpace specified。

参数

  • ns: The nameSpace used to get the view name string。
  • viewStr: The name string of the view is returned in viewStr。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getViewName(viewName)

obj.getLibName(ns, libStr)

绑定状态: 已绑定

Python 调用: obj.getLibName(ns, libStr)

此函数返回与此 wafer 关联的库名称,返回形式为 oaScalarName。

参数

  • libName: The name of the library is returned in libName。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getLibName(ns, libStr)

obj.getCellName(ns, cellStr)

绑定状态: 已绑定

Python 调用: obj.getCellName(ns, cellStr)

此函数返回与此 wafer 关联的 cell 名称,返回形式为 oaScalarName。

参数

  • cellName: The name of the cell is returned in cellName。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getCellName(ns, cellStr)

obj.getViewName(ns, viewStr)

绑定状态: 已绑定

Python 调用: obj.getViewName(ns, viewStr)

此函数返回与此 wafer 关联的 view 名称,返回形式为 oaScalarName。

参数

  • viewName: The name of the view is returned in viewName。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getViewName(ns, viewStr)

obj.getTimeStamp(type)

绑定状态: 已绑定

Python 调用: obj.getTimeStamp(type)

This function returns the timeStamp value for the specified application object。

参数

  • def: The application object to check。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getTimeStamp(type)

obj.getTimeStamp(def)

绑定状态: 已绑定

Python 调用: obj.getTimeStamp(def)

This function returns the timeStamp value for the specified wafer datatype。

参数

  • type: The wafer datatype to check。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getTimeStamp(def)

obj.getMode()

绑定状态: 已绑定

Python 调用: obj.getMode()

This function returns the mode in which this wafer is currently opened。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getMode()

obj.getRefCount()

绑定状态: 已绑定

Python 调用: obj.getRefCount()

This function returns the number of times this wafer is opened without being closed。 This includes both internal and external opens。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getRefCount()

obj.getCreateTime()

绑定状态: 已绑定

Python 调用: obj.getCreateTime()

This function returns the time at which this wafer database was created。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getCreateTime()

obj.getReadInTime()

绑定状态: 已绑定

Python 调用: obj.getReadInTime()

This function returns the time at which this wafer was read in from disk。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getReadInTime()

obj.getLastSavedTime()

绑定状态: 已绑定

Python 调用: obj.getLastSavedTime()

This function returns the time at which this wafer was last saved。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getLastSavedTime()

obj.getDBUPerWU()

绑定状态: 已绑定

Python 调用: obj.getDBUPerWU()

This function returns the number of database units per waferUnit currently set for this wafer。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getDBUPerWU()

obj.getWaferUnits()

绑定状态: 已绑定

Python 调用: obj.getWaferUnits()

This function returns the wafer-unit information for this wafer。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getWaferUnits()

obj.getWaferDesc()

绑定状态: 已绑定

Python 调用: obj.getWaferDesc()

This function returns a pointer to the wafer description associated with this wafer。 NULL is returned if no wafer description has been created yet。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getWaferDesc()

obj.setDBUPerWU(value)

绑定状态: 已绑定

Python 调用: obj.setDBUPerWU(value)

This function changes the database units per wafer units for this wafer。

参数

  • value: Specifies the number of database units corresponds to one wafer unit。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.setDBUPerWU(value)

obj.setWaferUnits(value)

绑定状态: 已绑定

Python 调用: obj.setWaferUnits(value)

This function changes the wafer units used for this wafer。

参数

  • value: The wafer-unit value to set。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.setWaferUnits(value)

obj.isModified()

绑定状态: 已绑定

Python 调用: obj.isModified()

This function returns a boolean indicating whether or not this wafer has been modified but not saved。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.isModified()

obj.isUndoEnabled()

绑定状态: 已绑定

Python 调用: obj.isUndoEnabled()

This function returns a boolean indicating whether undo is enabled for this wafer。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.isUndoEnabled()

obj.enableUndo(value=true)

绑定状态: 已绑定

Python 调用: obj.enableUndo(value=true)

This function enables or disables undo functionality for this wafer。 If enabled, all changes made to this wafer are logged so that undo() can restore the wafer to earlier states。 If disabled, all undo information is discarded and changes are not logged。

参数

  • value: Specifies whether to enable or disable undo。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.enableUndo(value=true)

obj.undo()

绑定状态: 已绑定

Python 调用: obj.undo()

This function undoes all changes made to this wafer since the last undo checkpoint was set。 Note that only changes to managed objects in the oaWafer are undone。 Utility objects that contain pointers to a managed object are not affected。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.undo()

obj.redo()

绑定状态: 已绑定

Python 调用: obj.redo()

This function redoes the changes that were most recently undone。 This call has an affect only if undo is enabled, undo() is called for this wafer, and there are no changes since the last undo() was performed。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.redo()

obj.setCp()

绑定状态: 已绑定

Python 调用: obj.setCp()

This function sets an undo checkpoint for this wafer。 Each call to undo() restores the contents of the wafer to its state when undo is enabled or when a call to setCp() is made。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.setCp()

obj.calcVMSize()

绑定状态: 已绑定

Python 调用: obj.calcVMSize()

This function calculates and returns the amount of virtual memory this wafer is currently using。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.calcVMSize()

obj.getFeatures(dataModelRev, features)

绑定状态: 已绑定

Python 调用: obj.getFeatures(dataModelRev, features)

This function returns the data model revision number for the database, as well as an array of the features currently in the database。 The application can iterate through the array to get the ID for each feature present。 Each feature ID corresponds to an oaFeatureIDEnum value。

参数

  • dataModelRev: returned data model revision。
  • features: returned feature array。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getFeatures(dataModelRev, features)

obj.getReticles()

绑定状态: 已绑定

Python 调用: obj.getReticles()

This function returns a collection of reticles in this wafer。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getReticles()

obj.getReticleRefs()

绑定状态: 已绑定

Python 调用: obj.getReticleRefs()

This function returns a collection of reticle references in this wafer。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getReticleRefs()

obj.getFrames()

绑定状态: 已绑定

Python 调用: obj.getFrames()

This function returns the collection of frames in this wafer。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getFrames()

obj.getImages()

绑定状态: 已绑定

Python 调用: obj.getImages()

This function returns the collection of images in this wafer。

Python 示例

from oapy._oa import _wafer

# assume obj is a oaWafer
obj.getImages()

_wafer.oaWafer.open(libName, cellName, viewName, mode='r')

绑定状态: 已绑定

Python 调用: _wafer.oaWafer.open(libName, cellName, viewName, mode='r')

This function attempts to open the wafer with the specified library, cell, and view names with the specified access mode。 If successful, the wafer is returned。 The reference count of the wafer is incremented once for each successful open call, so it is important each call to open() is matched by a call to close() 。

参数

  • libName: The name of an existing library。
  • cellName: The name of a cell。
  • viewName: The name of a view。
  • mode: The mode in which to open the wafer 'r' for read 'w' for write 'a' for append to modify an existing wafer 'A' for append in override mode, which is not typically used。 Refer to Compatibility for OpenAccess Applications and Data in the Programmers Guide for more information。

异常

  • oacWaferLibNotFound
  • oacDataNotCompatibleOnOpen: The design contains new features that are not understood by this version of OpenAccess and cannot be opened。
  • oacDataNotCompatibleOnOpenInAppendMode: The design contains new features that are not understood by this version of OpenAccess and cannot be opened in append mode。

Python 示例

from oapy._oa import _wafer

_wafer.oaWafer.open(libName, cellName, viewName, mode='r')

_wafer.oaWafer.find(libName, cellName, viewName)

绑定状态: 已绑定

Python 调用: _wafer.oaWafer.find(libName, cellName, viewName)

This function attempts to find a wafer with the specified library, cell, and view names。 If the specified view is open, it is returned, otherwise NULL is returned。

参数

  • libName: The name of an existing library。
  • cellName: The name of a cell。
  • viewName: The name of a view。

Python 示例

from oapy._oa import _wafer

_wafer.oaWafer.find(libName, cellName, viewName)

_wafer.oaWafer.exists(libName, cellName, viewName)

绑定状态: 已绑定

Python 调用: _wafer.oaWafer.exists(libName, cellName, viewName)

This function returns a boolean indicating whether a wafer is currently open with the specified library, cell, and view names, or whether the wafer is found on disk。 If the wafer is found on disk, it database file must have a non-zero size in order to be recognized。

参数

  • libName: The name of an existing library。
  • cellName: The name of a cell。
  • viewName: The name of a view。

Python 示例

from oapy._oa import _wafer

_wafer.oaWafer.exists(libName, cellName, viewName)

_wafer.oaWafer.destroy(libName, cellName, viewName)

绑定状态: 已绑定

Python 调用: _wafer.oaWafer.destroy(libName, cellName, viewName)

This function attempts to remove the wafer from disk。 An exception is thrown if the wafer is currently opened or if the wafer cannot be found on disk。

参数

  • libName: The name of an existing library。
  • cellName: The name of an existing cell。
  • viewName: The name of an existing view。

Python 示例

from oapy._oa import _wafer

_wafer.oaWafer.destroy(libName, cellName, viewName)

_wafer.oaWafer.getRevNumber()

绑定状态: 已绑定

Python 调用: _wafer.oaWafer.getRevNumber()

This function returns the revision number of the internal format for the wafer database。

Python 示例

from oapy._oa import _wafer

_wafer.oaWafer.getRevNumber()

_wafer.oaWafer.getOpenWafers()

绑定状态: 已绑定

Python 调用: _wafer.oaWafer.getOpenWafers()

This function returns a collection of open wafers。

Python 示例

from oapy._oa import _wafer

_wafer.oaWafer.getOpenWafers()