Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

schInstallHDL

schInstallHDL( 
g_library 
t_cellName 
t_viewName 
t_srcName 
[ g_createSymbol ]
[ g_overrideIfExist ]
)
=> t / nil

Description

Installs a Verilog HDL source file as an HDL cellview and creates the cell, view, and cellview objects in the library if necessary. This function can also create a matching symbol cellview.

Arguments

g_library

Either a library name string or a library identifier returned by ddGetObj.

t_cellName

Name of the cell.

t_viewName

Name of the view.

t_srcName

Path to the Verilog HDL source file; must be enclosed in quotation marks.

g_createSymbol

Boolean flag that specifies whether a matching symbol is created.

g_overrideIfExist

Boolean flag that specifies whether the specified cellview can be replaced if it already exists. The default value is nil. When the default value is specified, an error message is displayed if the specified cellview already exists. When the value is t, the cellview gets replaced.

Value Returned

t

Installed a Verilog HDL source file as an HDL cellview and created the cell, view, and cellview objects in the library if necessary.

nil

Verilog HDL source file installation was unsuccessful.

Examples

Creates the HDL cellview myDesign functional in the library myLib.

lib = ddGetObj( "myLib" )
schInstallHDL( lib "myDesign" "functional" "myDesign.v" )

In addition to creating the HDL cellview myDesign functional in the library myLib, it creates a matching myDesign symbol cellview and overwrites the symbol if it already exists.

schInstallHDL( lib "myDesign" "functional" "myDesign.v" t t)

Return to top
 ⠀
X