UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 50451

Vivado - How to select the top level module using Tcl

Description

How can I set the top level file with Tcl?

Solution

Syntax
set_property top <module_name> [current_fileset]
set_property top_file {<top_file_location>} [current_fileset]
Example
set_property top wave_gen [current_fileset]
set_property top_file {C:\projects\Lab5\LAB5\LAB5.srcs\sources_1\imports\ISE_project\wave_gen.v} [current_fileset]
AR# 50451
Date Created 10/19/2012
Last Updated 02/14/2013
Status Active
Type General Article
Tools
  • Vivado