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 02/14/2013
Status Active
Type General Article
Tools