Main Content

Project Folder

Folder specification for workflow-specific files

Since R2023b

Model Configuration Pane: Target

Description

Specify a folder for workflow-specific files. Any created files are placed in this folder, such as the generated IP core or synthesis tool project files. The generated HDL code is placed in the directory specified by Code Generation Folder.

If the Project Folder is empty, HDL Coder™ generates the files in the current directory. When Project Folder is set to a new value, the Code Generation Folder parameter updates to <ProjectFolder>/hdlsrc, so that the generated HDL code and workflow files generate in the same top-level directory. If you prefer to keep your generated HDL code in a separate directory, you can update the Code Generation Folder value after changing Project Folder.

Settings

' ' (Default)

The default project folder is your working folder.

Tips

To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

For example, to store generated files and folders into a custom project folder for the symmetric_fir subsystem inside the sfir_fixed model, use either of these methods:

  • Pass the parameter as an argument to the makehdl function.

    makehdl('sfir_fixed/symmetric_fir','ProjectFolder','C:/Temp/hdlprj')
  • Use hdlset_param to set the parameter on the model. Then generate HDL code using makehdl.

    hdlset_param('sfir_fixed','ProjectFolder','C:/Temp/hdlprj')
    makehdl('sfir_fixed/symmetric_fir')

Recommended Settings

No recommended settings.

Programmatic Use

Parameter: ProjectFolder
Type: Character vector
Value: A valid path to your project folder
Default: ''

Version History

Introduced in R2023b

See Also

Functions

Model Settings