21.13.1.31 new_project
(Ask a Question)Description
This Tcl command creates a SmartDebug project that enables the user to debug the design. Either DDC can be used to create a project or construct automatically with DDC.
new_project [-location {project location}] \
[-name {name of the new SmarDebug project}] \
-import_ddc {path to the DDC file} \
[-auto_construct {"TRUE"|"FALSE"}] \
[-set_programmer {set debug programmer}]
Arguments
Parameter | Type | Description |
---|---|---|
location | string | Specifiy the location of the project where user wants to create the project. Must not be an existing directory. This parameter is optional. If -location option is omitted, the tool creates a new project in the current directory. |
name | string | Specifiy name of the new project. This parameter is optional. This parameter is optional. If this option is omitted, the tool creates a new project with 'untitled_project' name. |
import_ddc | string | Specifiy the path to the DDC(Design Debug Data Container) file exported from Libero to be imported. Set empty parameter value if -auto_construct is 1. |
auto_construct | boolean | Valid values are:TRUE or 1, FALSE or 0(default). Specify 1 or TRUE if you want to create new project importing DDC file otherwise specify 0 or FALSE. This parameter is optional. |
set_programmer | string | Set ID code of the programmer. This parameter is optional. |
Return Type | Description |
---|---|
None | None |
Error Codes
Error Code | Description |
---|---|
None | Parameter 'param_name' is not defined. Valid command formatting is 'new_project [-location "project folder"] [-name "name"] [-import_ddc "DDC file"] [-auto_construct "TRUE | FALSE"] [-set_programmer "set debug programmer"]. |
.
Supported Families
PolarFire |
SmartFusion 2 |
IGLOO 2 |
RTG4 |
Example
Create new project using Standalone SmartDebug:
new_project -location {/exprj} \
-name {exprj} \
-import_ddc {./src/top.ddc} \
-auto_construct 0 \
-set_programmer {AF01QVEAF}
See Also
import_ddc_file