User guide

16-15
SWIFT VMC Models and SmartModels
Using the CLI to Access the Command Channel
You can also use the CLI to access the command channel during
simulation. For example:
cli_0> set circuit.model.cmd$str = "show doc";
cli_1> once #1;
cli_2> .
cli_3> set circuit.model.do$model$cmd=1;
cli_4> once #1;
cli_5> .
Loading Memories at the Start of Runtime
SmartModel memory models have an attribute called MemoryFile.
You can use this attribute to load the contents of a file into these
memories at runtime. To do so use a defparam statement. For
example:
defparam
test.designinst.modelinst.MemoryFile="mem_vec_file";
Here VCS treats the attribute as if it were a parameter in an instance.
This method enables you to load a memory when simulation starts.
To load a memory after simulation starts use the LMTV window
command $lm_load_file system task. Refer to "Using LMTV
SmartModel Window Commands" on page 16-10.