Set project compile inputs

Set a project's top module, include directories and defines, then save the settings.

Set compile inputs for the selected project in Cloud 2.1.2.10 or Digital Design Studio 2.1.2.3 for Windows. These settings apply to this project.

Open project settings

  1. Open a project whose settings you can edit. Choose File → Settings → Project settings.

Set the top module

  1. Choose Project → General.

  2. Enter the module name in Top module, or leave it blank for automatic detection.

Project settings open on Project → General. Under Project compile inputs, the Top module field shows Use the workspace design top and Primary target is set to Generic ASIC. Under Current compile inputs, Compile sources says This workspace does not report resolved values., and Include directories and Defines each show 0 configured with an Open link. The page also shows This project only, Reset defaults and Save.

Project → General holds the Top module field; Current compile inputs shows how many include directories and defines the project has.

Add include directories

  1. Choose Project → Include directories.

  2. Enter a path relative to the project root, such as rtl/include, and choose Add. You can paste several paths, one per line.

  3. Use the arrow buttons to change the search order. Use the remove button to remove a row.

Project settings open on Project → Include directories. The page says that paths are relative to the project root and searched from the top, and that paths outside the project are rejected. It shows No directories added, a path field showing rtl/include, an Add button and the note that pasting several lines adds one directory per line and that the arrows change the search order. Search order in use says This workspace does not report its resolved search order.

Project → Include directories: enter a path relative to the project root, then choose Add.

Add defines

  1. Choose Project → Defines.

  2. Enter NAME or NAME=VALUE, such as DEBUG or WIDTH=32, and choose Add. You can paste several defines, one per line.

  3. Edit the Name and Value cells as needed. A define without a value is defined as 1. Use the remove button to remove a row.

Save the project settings

Choose Save after editing. Reopen the project to apply the saved values.

Dashboard, windows and the workspace