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

dbGetHierCacheUsage

dbGetHierCacheUsage(
[ d_cvId ]
) 
=> t_usageType / nil

Description

Returns the current hierarchical cache usage for a given design, if specified. If not specified, it returns the usage for the current session. The subset of operations included in both the design and session usages is enabled for the design.

Arguments

d_cvId

Database ID of the cellview that may be using a hierarchical cache. If specified, the cache usage for that cellview is returned. Otherwise, the session cache usage is returned.

Value Returned

t_usageType

The operations that the hierarchical cache may be used for.

The loadOnly operation indicates that the hierarchical cache is used when loading the design hierarchy. The saveOnly operation indicates that the hierarchical cache is saved together with the cellview that contains it, which is typically the top design in the hierarchy.

Valid returned values: none, saveOnly, loadOnly, saveAndLoad

nil

An error occurred.

Example

Returns the cache usage for the session:

dbSetHierCacheUsage("saveOnly")
dbGetHierCacheUsage()
=> "saveOnly"

Returns the cache usage for the cellview:

cv = dbOpenCellViewByType("test" "hierTop" "layout" "maskLayout" "a")
dbSetHierCacheUsage("saveAndLoad" cv)
dbGetHierCacheUsage(cv)
=> "saveAndLoad"

Related Topics

dbDeleteHierCache

dbHasValidHierCache

dbSetHierCacheUsage


Return to top
 ⠀
X