21.17.5 set_top_level

Description

Specify the name of the top-level module in RTL.

set_top_level [-lib <libname>] <name>

Arguments

ParameterTypeDescription
-lib <libname>StringThe library to search for the top-level module or entity (Optional).
nameStringThe top-level module or entity name.
Return TypeDescription
0Command succeeded.
1Command failed. There is an error. You can observe the error message in the console.

List of Errors

Error CodeError MessageDescription

ERR0023

Required parameter top level is missingThe top level option is mandatory and must be specified.

ERR0023

Parameter—lib is missing valueThe lib option is specified without values.

ERR0014

Unable to find top level <top> in library <lib>The specified top-level module is not defined in the provided library. To fix this error, the top module or library name must be corrected.

ERR0017

Elaborate failedError in the RTL elaboration process. The error message can be observed from console.

Supported Families

PolarFire®
PolarFire SoC
RTG4
SmartFusion® 2
IGLOO® 2

Example

set_top_level {top} 
set_top_level -lib hdl top