current_fileset - 2022.1 English

Vivado Design Suite Tcl Command Reference Guide (UG835)

Document ID
Release Date
2022.1 English

Get the current fileset (any type) or set the current fileset (applicable to simulation filesets only)


current_fileset [‑constrset] [‑simset] [‑quiet] [‑verbose] [<fileset>...]


Current fileset (the current srcset by default).


Name Description
[-constrset] Get the current constraints fileset
[-simset] Get the current active simulation fileset
[-quiet] Ignore command errors
[-verbose] Suspend message limits during command execution
[<fileset>] Specify the simulation fileset to set as current (active); optional




Get the active source, constraint, or simulation fileset within the current project.

When used without any options, current_fileset sets and returns the sources_1 set as the active fileset.

This command can also be used to set the current simulation fileset.
Note: Use set_property CONSTRSET to define the active constraint set on a synthesis or implementation run.


-constrset - (Optional) Return the currently active constraint set.

-simset - (Optional) Return or set the currently active simulation fileset.

-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.
Note: Any errors encountered on the command-line, while launching the command, will be returned. Only errors occurring inside the command will be trapped.
-verbose - (Optional) Temporarily override any message limits and return all messages from this command.
Note: Message limits can be defined with the set_msg_config command.

<fileset> - (Optional) The name of the simulation fileset to make active. This argument sets the active simulation fileset in projects with multiple filesets. When <fileset> is not specified, the sources_1 fileset is returned as the active fileset.


The following example returns the name of the currently active constraint fileset:
current_fileset -constrset
The following example sets sim_2 as the active simulation set:
current_fileset -simset sim_2