next up previous contents index
Next: Display Up: Control Functions Previous: Current Cell   Contents   Index

Database

(int) RenameCell(oldname, newname)
This function will rename the cell in memory named oldname to newname, and update all references. The function returns 1 if the operation was successful, 0 otherwise. The oldname cell must exist in memory, and the newname can not clash with an existing cell or library device.

Clear(name)
If name is not empty, any matching symbol and all its descendents are cleared from the database, unless they are referenced by another symbol not being cleared. If name is null or empty, the entire database is cleared. This function is obviously very dangerous.

ClearAll()
This will clear all symbols from the present symbol table, clear and delete any other symbol tables that may be defined, and reset the layer tables to their original state as defined in the technology file, deleting any layers created subsequently. This function does not automatically open a new symbol. This is for server mode, to give the system a good scrubbing between jobs.

(int) IsCellInMem(>cellname)
This function returns 1 if the string cellname is the name of a cell in the current symbol table, 0 otherwise. If the string contains a path prefix, it will be ignored, and the last (filename) component used for the test.

(int) IsFileInMem(filename)
This will compare the string filename to the source file names saved with top-level cells in the current symbol table. If filename is a full path, the function returns 1 if an exact match is found. If filename is not rooted, the function returns 1 if the last path component matches. In either case, 0 is returned if no match is seen. Only the top-level cells are searched, so filenames of subcells in Xic native hierarchies will not be found.

(int) NumCellsInMem()
This function returns an integer giving the number of cells in the current symbol table.

(stringlist_handle) ListCellsInMem()
This function returns a handle to a list of strings, sorted alphabetically, giving the names of all cells in the current symbol table.

(stringlist_handle) ListTopCellsInMem()
This function returns a handle to a list of strings, sorted alphabetically, giving the names of top-level cells in the current symbol table. These are the cells that are not used as subcells, in either physical or electrical mode.

(stringlist_handle) ListModCellsInMem()
This function returns a handle to a list of strings, sorted alphabetically, giving the names of modified cells in the current symbol table. A cell is modified if the contents have changed since the cell was read or last written to disk.

(stringlist_handle) ListTopFilesInMem()
This function returns a handle to a list of strings, alphabetically sorted, giving the source file names of the top-level cells in the current symbol table.


next up previous contents index
Next: Display Up: Control Functions Previous: Current Cell   Contents   Index
Stephen R. Whiteley 2006-10-23