21.3.99 use_source_file

Description

This Tcl command defines a module for your project.

use_source_file \
-file {full pathname} \
-module value

Arguments

ParameterTypeDescription
filestringSpecifies the Verilog or VHDL file. Value is the name of the file you wish use (including the full pathname). This is mandatory.
modulestringSpecifies the module in which you want to use the file. This is mandatory.

Error Codes

Error CodeDescription
NoneRequired parameter 'file' is missing.
NoneRequired parameter 'module' is missing.
None'file1.vhd' does not define module 'top'.
None'/prj/hdl/file1.v' is not in the project.

Supported Families

Supported Families
PolarFire®
RTG4
SmartFusion® 2
IGLOO® 2

Example

Specify file1.vhd in the ./project/hdl directory, in the module named top.

use_source_file -file "./project/hdl/file1.vhd" -module "top"