21.3.5 associate_stimulus
(Ask a Question)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
| Parameter | Type | Description |
|---|---|---|
| file | string | Specifies the absolute path and name of the file to which you want to associate your stimulus files. |
| mode | string | Specifies whether you are creating a new stimulus association, adding or removing. Possible values are:
|
| module | string | Sets the module, where value is the name of the module. This is mandatory. |
| Return Type | Description |
|---|---|
| None | None |
Error Codes
| Error Code | Description |
|---|---|
| None | 'file' is not in the project. |
| None | Required 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