Download VCS user guide

Transcript
vmm_scenario_gen::replace_scenario()
Replaces a scenario descriptor.
SystemVerilog
virtual function void replace_scenario(string name,
<class-name>_scenario scenario);
OpenVera
Not supported.
Description
Registers the specified scenario under the specified name, replacing
the scenario that is previously registered under that name, if any.
The name under which a scenario is registered does not need to be
the same as the name of a kind of scenario, which is defined in the
scenario descriptor using the
vmm_scenario_gen::define_scenario() method. The same
scenario may be registered multiple times under different names,
therefore creating an alias to the same scenario.
Registering a scenario implicitly appends it to the scenario set, if it is
not already in the vmm_scenario_gen::scenario_set[$]
array. The replaced scenario is removed from the scenario set, if it is
not also registered under another name.
Example
Example B-38
`vmm_scenario_gen(atm_cell, "atm trans")
VMM User Guide
B-118