Change the order of source files in the active fileset
Syntax
reorder_files [‑fileset <arg>] [‑before <arg>] [‑after <arg>] [‑front]
[‑back] [‑auto] [‑disable_unused] [‑quiet] [‑verbose] <files>...
Usage
Name | Description |
---|---|
[-fileset]
|
Fileset to reorder |
[-before]
|
Move the listed files before this file |
[-after]
|
Move the listed files after this file |
[-front]
|
Move the listed files to the front (default) |
[-back]
|
Move the listed files to the back |
[-auto]
|
Automatically re-orders the given fileset |
[-disable_unused]
|
Disables all files not associated with the TOP design unit |
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
<files>
|
Files to move |
Categories
Description
Reorders source files in the specified fileset. Takes the files indicated and places them at the front of, the back of, or before or after other files within the fileset. This command also has an auto reorder feature that reorders the files based on the requirements of the current top module in the design.
Arguments
-fileset
<arg> - (Optional) The fileset in which to reorder files. The default is the sources_1 source fileset.
-before
<arg> - (Optional) Place the specified files before this file in the fileset. The file must be specified with the full path name in the fileset.
-after
<arg> - (Optional) Place the specified files after this file in the fileset. The file must be specified with the full path name in the fileset.
-front
- (Optional) Place the specified files at the front of the list of files in the fileset.
-back
- (Optional) Place the specified files at the back of the list of files in the fileset.
-auto
- (Optional) Enable automatic reordering based on the hierarchy requirements of the current top-module in the project. Often used after changing the top module with the "set_property top
" command.
-disable_unused
- (Optional) Disable any files not currently used by the hierarchy based on the top-module. Often used after changing the top module with the "set_property top
" command.
-quiet
- (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose
- (Optional) Temporarily override any message limits and return all messages from this command.
set_msg_config
command.<files> - (Required) One or more files to relocate in the fileset. Files must be specified by their full path name in the fileset, and are reordered in the order they are specified.
Examples
reorder_files -front {C:/Data/FPGA/file1.vhdl C:/Data/FPGA/file2.vhdl}
-fileset
argument is not specified.set_property top block1 [current_fileset]
reorder_files -auto -disable_unused