21.3.81 save_project_as

Description

This Tcl command saves the current project in Libero SoC with a different name and in a specified directory. You must specify a location using the -location parameter.

save_project_as -name "project name" \
                -location "project location" \
                [-files "all | project | sources" ] \
                [-replace_links "TRUE | FALSE" ]

Arguments

ParameterTypeDescription
namestringSpecifies the name of your new project.
locationstringMust include the complete path of the PRJ file. If you do not provide the full path, Libero SoC infers that you want to save the project to your current working directory. This is a required parameter.
filesstringSpecifies the files you want to copy into your new project.
  • all - copies all your files into your new project.
  • project - copies only your Libero SoC project files into your new project.
  • sources - copies only the source files into your new project.
replace_linksbooleanSpecifies whether or not you want to update your file links in your new project.
  • true | 0 - replaces (updates) the file links in your project during your save.
  • false | 1 - saves your project without updating the file links.

Error Codes

Error CodeDescription

None

Required parameter 'name' is missing.

None

Required parameter 'location' is missing.

None

replace_links: Invalid argument value: 'value' (expecting TRUE, 1, true, FALSE, 0 or false).

None

files: Invalid argument value: 'value' (expecting all, project or sources).

None

Parameter 'param_name' is not defined. Valid command formatting is 'save_project_as -location "project location" -name "project name" [-replace_links "TRUE | FALSE"] [-archive_project "TRUE | FALSE"] [-files "all | project | sources"] [-designer_views "all | current | none"] '.

Supported Families

Supported Families
PolarFire®
RTG4
SmartFusion® 2
IGLOO® 2

Example

Saves your current Libero SoC project as mydesign.prjx in the c:/netlists/testprj/mydesign directory.

save_project_as -location {c:/netlists/testprj/mydesign} -name mydesign.prjx

See Also