21.3.67 organize_sources
(Ask a Question)Description
This Tcl command enables you to set the source file order in the Libero SoC.
To specify the file order:
- In the Design Flow window, right-click Synthesize or Simulation tool and choose . The Organize Source Files dialog box appears.
- Click the Use list of files organized by User radio button to Add/Remove source files for the selected tool.
- Use the Up and Down arrows to change the order of the Associated Source files.
organize_sources [-file filename ] [-mode "new | add | remove" ] \
-module value -tool "synthesis | simulation" \
[-use_default value ]Arguments
| Parameter | Type | Description |
|---|---|---|
| file | string | Specifies the name of the file to which you want to associate your source files. It is optional. Default is empty. |
| mode | string | Specifies whether you are creating a new source files association, adding, or removing for the selected tool; possible values are:
|
| module | string | Sets the module, where value is the name of the module. You can specify as {<module::work>} or {<module>} <module>. This is mandatory. |
| tool | string | Identifies the intended use for the file, possible values are:
|
| use_default | string | Uses the default values for synthesis or simulation; possible values are:
|
Error Codes
| Error Code | Description |
|---|---|
| None | 'file' is not in the project. |
| None | Required parameter 'module' is missing. |
| None | mode: Invalid argument value: 'mode_value' (expecting new, add or remove). |
| None | tool: Invalid argument value: 'designer' (expecting synthesis or simulation). |
None | Parameter 'param_name' is not defined. Valid command formatting is 'organize_sources [-file "file"]* [-mode "new | add | remove"] -module "module" -tool "synthesis | simulation" [-use_default "TRUE | FALSE"] ' . |
Supported Families
| Supported Families |
|---|
| PolarFire® |
| RTG4™ |
| SmartFusion® 2 |
| IGLOO® 2 |
Example
The example organizes a new stimulus file 'stim.vhd' using default settings.
organize_sources -file "stim.vhd" -mode "new" -module "stimulus" \
-tool "synthesis" -use_default "TRUE"