Skip to main content

Sources and libraries

TerosHDL projects are composed of files, which are hierarchically organized into libraries. There are different ways to add files to a TerosHDL project, which will be detailed below.

Once you have added your files/libraries to the project, you must select the toplevel. This allows TerosHDL to compute the hierarchy, dependency diagram, and it will be useful for external tools.

Additionally, your current project and files will be used for the error checker (linter).

Adding sources to a project

;

ActionDescription
BrowserSelect files from explorer
Load from list of filesLoad list of files files into the project (see above)
Load from VUnit run.pyLoad files from a VUnit run.py
Add all HDL files from a directory and subdirectoriesAdd all HDL files recursively from a directory
Add all files from a directoryAdd all files from a directory
info

The CSV format (list of files) is:

library, file path relative to the CSV or absolute
library, file path relative to the CSV or absolute

For example:

file_0.sv
file_1.vhd
file_2.vhd

or

lib_0, file_1.vhd
file_2.vhd
lib_0, file_3.vhd

Adding libraries to a project

Click on the add button, select library, and enter the name. Then, you can add files to your library:

;

Selecting the toplevel

Select the top level of your project so that TerosHDL can compute the hierarchy. Additionally, this top level will be used when you run an external tool:

;

Removing files and libraries

Exporting a project