17.1.9.1.5 set_top_level
(Ask a Question)Description
Specify the name of the top-level module in RTL.
set_top_level [-lib <libname>] <name>
Arguments
| Parameter | Type | Description |
|---|---|---|
| -lib <libname> | String | The library to search for the top-level module or entity (Optional). |
| name | String | The top-level module or entity name. |
| Return Type | Description |
|---|---|
| 0 | Command succeeded. |
| 1 | Command failed. There is an error. You can observe the error message in the console. |
List of Errors
| Error Code | Error Message | Description |
|---|---|---|
|
ERR0023 | Required parameter top level is missing | The top level option is mandatory and must be specified. |
|
ERR0023 | Parameter—lib is missing value | The 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 failed | Error in RTL elaboration process. The error message can be observed from the console. |
Example
set_top_level {top}
set_top_level -lib hdl top
