21.3.2 add_library
(Ask a Question)Description
This Tcl command adds a VHDL library to your project. To add a library, right-click the design module name in the Design Hierarchy select and Add VHDL Library from the context menu.
add_library -library "library name"Arguments
| Parameter | Type | Description | 
|---|---|---|
| library | string | Specifies the name of your new library. | 
Error Codes
Error Code  | Description  | 
|---|---|
None  | Required parameter 'library' is missing.  | 
None  | Parameter 'param_name' is not defined. Valid command formatting is 'add_library -library "library name."  | 
Supported Families
| 
                                     Supported Families  | 
|---|
| PolarFire® | 
| RTG4™ | 
| SmartFusion® 2 | 
| IGLOO® 2 | 
Example
Create a new library with 'my_lib' name in your project.
add_library -library my_lib