21.3.5 associate_stimulus

Description

This Tcl command associates a stimulus file in your project. Before running simulation, you must associate a test bench. If you attempt to run simulation without an associated test bench, the Libero SoC Project Manager asks you to associate a test bench or open the simulator without a test bench.

associate_stimulus [-file {absolute path and name of the file}] \
                   [-mode "new | add | remove" ] -module "module"

Arguments

ParameterTypeDescription
filestringSpecifies the absolute path and name of the file to which you want to associate your stimulus files.
modestringSpecifies whether you are creating a new stimulus association, adding or removing. Possible values are:
  • new - creates a new stimulus file association.
  • add - adds a stimulus file to an existing association.
  • remove - removes a stimulus file association.
modulestringSets the module, where value is the name of the module. This is mandatory.
Return TypeDescription
NoneNone

Error Codes

Error CodeDescription
None'file' is not in the project.
NoneRequired parameter 'module' is missing.
None

Parameter 'module' has illegal value.

None

Parameter 'param_name' is not defined. Valid command formatting is 'associate_stimulus [-file "file"]* [-mode "new | add | remove"] -module "module" '

None

mode: Invalid argument value: 'value' (expecting new, add or remove).

Supported Families

Supported Families
PolarFire®
RTG4
SmartFusion® 2
IGLOO® 2

Example

The following example associates a new stimulus file 'stim.vhd' for stimulus.

associate_stimulus -file stim.vhd -mode new -module stimulus

See Also