How to generate code from a project template?

To generate code from a project template you use the new e Project From Template Wizard.

Invoke it from the button near the New Verilog Project Wizard button: New Project From Template Button or from the Verilog perspective use menu File > New > e Project From Template then folow the steps:

  1. Specfiy Template Directory and Target Directory
  2. Specify Parameters
  3. Configure the Project

Step 1. Specfiy Directories

Specify the template directory and the destination directory where the code will be generated.

Template Source.

Step 2. Specify Parameters

DVT automatically recognizes the parameters by scanning the template directory recursively.

If default values are specified in the template.config file they are automatically filled in.

You can edit values as needed. You may restore to defaults as well.

If the template directory was developed using DVT and configured as a project (it includes .project and .dvt files) you may chose to inherit its settings (top files, SPECMAN_PATH etc.).

Template Source.

Step 3-4. Specify SPECMAN_PATH, Top Files etc. - like regular wizard

You can further configure the project, like in the regular new project wizard.

If you choose to inherit settings from the project template, SPECMAN_PATH, Top Files etc. are configured automatically, replacing the parameters if any.

Template Source.