21.3.85 set_active_testbench
(Ask a Question)Description
This Tcl command sets the active testbench module to be executed during the
simulation process.
Important: To specify a custom
list of stimulus files needed for the simulation, use the
associate_stimulus command.set_active_testbench "<testbench_name>::<library_name>,<file_path>"
Error Codes
| Error Code | Description |
|---|---|
| None | None |
Supported Families
| Supported Families |
|---|
| PolarFire® |
| RTG4™ |
| SmartFusion® 2 |
| IGLOO® 2 |
Example
Example 1: This example instructs the tool to use the tb1 module
from the work library and specifies the location of the source file
(stimulus/tb1.v).
set_active_testbench "tb1::work,stimulus/tb1.v"
Example 2: This example instructs the tool to use the sdtb1
SmartDesign testbench module from the work library and specifies
the location of the source file (component/work/sdtb1/sdtb1.v).
set_active_testbench "sdtb1::work,component/work/sdtb1/sdtb1.v"
