dbSetHierCacheUsage
dbSetHierCacheUsage(
t_usage
[ d_cvId ]
)
=> t / nil
Description
Sets the intended hierarchical cache usage for a given design, if specified; otherwise, it sets the usage for the session. The subset of operations permitted by both the session and design cache usages is enabled for the design.
Arguments
|
t_usage
|
Specifies the operations for which the hierarchical cache can be used. Cache usage defines the intended policy. This policy is then implemented during respective future operations on the cellview such as dbSave() and dbOpenHier().
The loadOnly operation indicates that the hierarchical cache should be used when loading the design hierarchy. The saveOnly operation indicates that the hierarchical cache should be saved together with the cellview that contains it, which is typically the top design in the hierarchy.
Valid values: none, saveOnly, loadOnly, saveAndLoad
|
|
d_cvId
|
Database ID of the cellview that contains the hierarchical cache. If specified, the cache usage is set for the cellview and not for the session.
|
Value Returned
|
t
|
The cache usage was set.
|
|
nil
|
The cache usage was not set.
|
Example
Sets the session usage to allow only the save operations using the hierarchical cache.
dbSetHierCacheUsage("saveOnly")
=> t
Sets the usage for the cellview to allow both save and load operations on the hierarchical cache. Because the session usage is still saveOnly, only the save operation is permitted for this cellview.
cv = dbOpenCellViewByType("test" "hierTop" "layout" "maskLayout" "a")
dbSetHierCacheUsage("saveAndLoad" cv)
=> t
Related Topics
dbDeleteHierCache
dbGetHierCacheUsage
dbHasValidHierCache
Return to top