Vitis Model Composer creates a cache entry
when you simulate a model with an imported block created using xmcImportFunction. When you simulate the model again, Model Composer uses the
cached entry for the block to initiate the simulation faster. It only refreshes the cache if
you change the function or supporting source files. You can manage the simulation cache in
Model Composer using the following command from the MATLAB
command prompt:
>> xmcSimCache
The usage for this command is as follows.
| Command | Description |
|---|---|
xmcSimCache('enable')
|
Enable the simulation cache. This is enabled by default. |
xmcSimCache('disable')
|
Disable the simulation cache. |
xmcSimCache('isEnabled')
|
Returns the state of the simulation cache. |
xmcSimCache('setLocation',
<dir>)
|
Specify a directory to use for the simulation cache. For example:
|
xmcSimCache('setDefaultLocation')
|
Restore the simulation cache to its default location. |
xmcSimCache('getLocation')
|
Return the current location of the simulation cache. |
xmcSimCache('clear')
|
Clear the entire simulation cache. |
xmcSimCache('clear', 'release',
<version>)
|
Clear simulation cache entries for the specified release version.
For example:
|
xmcSimCache('clear', 'days',
<number>)
|
Clear simulation cache entries older than or equal to the
specified number of days. For example:
|
xmcSimCache('clear', 'id',
<vals>)
|
Clear simulation cache entries by the cache ID. For example:
|