Product Documentation
Virtuoso Technology Data SKILL Reference
Product Version IC23.1, June 2023

techOpenTechFile

techOpenTechFile( 
t_libName 
t_binaryName
[ t_mode ] 
) 
=> d_techID / nil

Description

Loads a binary technology database in virtual memory with the specified mode (r, w, and a) and returns the database identifier of that database.

The libName argument specifies the library that the technology database will be loaded from. If the specified library contains the technology database, that database will be opened using the requested mode. If the library is a design library that is attached to another library for technology data, the technology database from the attached technology library will be opened. If the library is a design library that is attached to the default Cadence technology database, then if the mode requested is ‘r’, the default Cadence technology database will be opened. If the library is a design library that is attached to the default Cadence technology database, if the mode is ‘a’ or ‘w’, an empty technology database will be created in the library.

The libName of the dbId for the technology database can be queried after the function is complete to determine if the technology database loaded is defined in the requested library or is from an attached technology library.

If you open a technology library in write mode, the contents of the disk file are deleted. Therefore, you must use this function with extreme care.

Arguments

t_libName

Name of the library from which the technology database is opened.

t_binaryName

The name of the binary technology library to open. This argument is no longer used, but needs to be specified to pass the syntax check.

Valid values: Any string

t_mode

The mode in which to open the file.

Valid values: r (read only), w (delete contents and load empty file), a (append or edit mode)

Default: r

If you do not specify a mode, or if you specify r mode, the file can only be read. If you specify w mode, the contents of the disk file are deleted, or truncated, and an empty technology file is loaded into virtual memory. If you specify a mode, the binary technology database is loaded in append mode, which means that you can edit the contents of the file.

Value Returned

d_techID

Database identifier of the technology database loaded into virtual memory.

nil

The technology library or file does not exist.

Example

techID = techOpenTechFile("cellTechLib" "tech" "a")
=> db:25675212

Opens the technology database from the library named “cellTechLib”, and loads it into virtual memory in append mode. Sets the variable techID to that database.


Return to top
 ⠀
X