Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbReopen

dbReopen( 
d_cellViewId 
t_mode 
) 
=> t / nil 

Description

Changes the mode of the specified cellview to the given mode.

Arguments

d_cellViewId

A cellview ID.

t_mode

A character representing the new mode.

Valid values:

  • r (read) - Reopens the cellview in read mode. When you use the function to change from edit to read-only mode, your changes are discarded immediately.
  • a (append) - Reopens the cellview in append mode. When you use the function to change from read-only mode or scratch mode to append mode, a conditional refresh might be performed. For example, if there are timestamp changes on the disk file, a refresh action is performed. Otherwise, the cellview data is kept as it is.
  • w (write) - Reopens the cellview in write mode, in which the contents of the cellview are truncated.
  • s (scratch) - Reopens the cellview in scratch mode.

Values Returned

t

The mode change is successful.

nil

The mode change is not successful.

Examples

Re-open the cellview for append mode.

cv = dbOpenCellViewByType("lib" "decoder" "schematic" "" "r")
dbReopen(cv "a")
cv~>mode
=> "a"

Re-open the cellview for scratch mode.

dbReopen(cv "s")
cv~>mode
=> "s"

Return to top
 ⠀
X